react-router 7.9.2-pre.0 → 7.9.2-pre.2

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 (30) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/development/{chunk-ED2JHW2I.js → chunk-BMRATXNU.js} +1 -1
  3. package/dist/development/{chunk-VM65TX2A.js → chunk-CVJRSTVH.js} +270 -156
  4. package/dist/development/{chunk-EPSRV6KC.mjs → chunk-IM5OGALA.mjs} +116 -2
  5. package/dist/{production/chunk-HAV7J4RO.mjs → development/chunk-Z2FQBQSH.mjs} +63 -58
  6. package/dist/development/dom-export.js +3 -3
  7. package/dist/development/dom-export.mjs +3 -3
  8. package/dist/development/index-react-server-client.js +4 -4
  9. package/dist/development/index-react-server-client.mjs +2 -2
  10. package/dist/development/index-react-server.js +1 -1
  11. package/dist/development/index-react-server.mjs +1 -1
  12. package/dist/development/index.js +157 -152
  13. package/dist/development/index.mjs +3 -3
  14. package/dist/development/lib/types/internal.js +1 -1
  15. package/dist/development/lib/types/internal.mjs +1 -1
  16. package/dist/{development/chunk-PVJ3J6E6.mjs → production/chunk-54D6QT34.mjs} +63 -58
  17. package/dist/production/{chunk-22I2H6CR.js → chunk-JZBSSDER.js} +1 -1
  18. package/dist/production/{chunk-K4BWIVAI.js → chunk-MZDKBHOP.js} +270 -156
  19. package/dist/production/{chunk-662O2YDJ.mjs → chunk-QE6DSGL5.mjs} +116 -2
  20. package/dist/production/dom-export.js +3 -3
  21. package/dist/production/dom-export.mjs +3 -3
  22. package/dist/production/index-react-server-client.js +4 -4
  23. package/dist/production/index-react-server-client.mjs +2 -2
  24. package/dist/production/index-react-server.js +1 -1
  25. package/dist/production/index-react-server.mjs +1 -1
  26. package/dist/production/index.js +157 -152
  27. package/dist/production/index.mjs +3 -3
  28. package/dist/production/lib/types/internal.js +1 -1
  29. package/dist/production/lib/types/internal.mjs +1 -1
  30. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.9.2-pre.0
2
+ * react-router v7.9.2-pre.2
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -54,8 +54,8 @@
54
54
 
55
55
 
56
56
 
57
- var _chunkK4BWIVAIjs = require('./chunk-K4BWIVAI.js');
58
57
 
58
+ var _chunkMZDKBHOPjs = require('./chunk-MZDKBHOP.js');
59
59
 
60
60
 
61
61
 
@@ -145,7 +145,8 @@ var _chunkK4BWIVAIjs = require('./chunk-K4BWIVAI.js');
145
145
 
146
146
 
147
147
 
148
- var _chunk22I2H6CRjs = require('./chunk-22I2H6CR.js');
148
+
149
+ var _chunkJZBSSDERjs = require('./chunk-JZBSSDER.js');
149
150
 
150
151
  // lib/dom/ssr/server.tsx
151
152
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
@@ -158,7 +159,7 @@ function ServerRouter({
158
159
  url = new URL(url);
159
160
  }
160
161
  let { manifest, routeModules, criticalCss, serverHandoffString } = context;
161
- let routes = _chunk22I2H6CRjs.createServerRoutes.call(void 0,
162
+ let routes = _chunkJZBSSDERjs.createServerRoutes.call(void 0,
162
163
  manifest.routes,
163
164
  routeModules,
164
165
  context.future,
@@ -171,7 +172,7 @@ function ServerRouter({
171
172
  let routeId = match.route.id;
172
173
  let route = routeModules[routeId];
173
174
  let manifestRoute = context.manifest.routes[routeId];
174
- if (route && manifestRoute && _chunk22I2H6CRjs.shouldHydrateRouteLoader.call(void 0,
175
+ if (route && manifestRoute && _chunkJZBSSDERjs.shouldHydrateRouteLoader.call(void 0,
175
176
  routeId,
176
177
  route.clientLoader,
177
178
  manifestRoute.hasLoader,
@@ -180,9 +181,9 @@ function ServerRouter({
180
181
  delete context.staticHandlerContext.loaderData[routeId];
181
182
  }
182
183
  }
183
- let router = _chunkK4BWIVAIjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
184
+ let router = _chunkMZDKBHOPjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
184
185
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
185
- _chunk22I2H6CRjs.FrameworkContext.Provider,
186
+ _chunkJZBSSDERjs.FrameworkContext.Provider,
186
187
  {
187
188
  value: {
188
189
  manifest,
@@ -197,8 +198,8 @@ function ServerRouter({
197
198
  renderMeta: context.renderMeta
198
199
  }
199
200
  },
200
- /* @__PURE__ */ React.createElement(_chunk22I2H6CRjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
201
- _chunkK4BWIVAIjs.StaticRouterProvider,
201
+ /* @__PURE__ */ React.createElement(_chunkJZBSSDERjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
202
+ _chunkMZDKBHOPjs.StaticRouterProvider,
202
203
  {
203
204
  router,
204
205
  context: context.staticHandlerContext,
@@ -206,7 +207,7 @@ function ServerRouter({
206
207
  }
207
208
  ))
208
209
  ), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
209
- _chunk22I2H6CRjs.StreamTransfer,
210
+ _chunkJZBSSDERjs.StreamTransfer,
210
211
  {
211
212
  context,
212
213
  identifier: 0,
@@ -248,18 +249,18 @@ function createRoutesStub(routes, _context) {
248
249
  let patched = processRoutes(
249
250
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
250
251
  // types compared to `AgnosticRouteObject`
251
- _chunk22I2H6CRjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
252
- _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunk22I2H6CRjs.RouterContextProvider)() : {},
252
+ _chunkJZBSSDERjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
253
+ _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkJZBSSDERjs.RouterContextProvider)() : {},
253
254
  frameworkContextRef.current.manifest,
254
255
  frameworkContextRef.current.routeModules
255
256
  );
256
- routerRef.current = _chunkK4BWIVAIjs.createMemoryRouter.call(void 0, patched, {
257
+ routerRef.current = _chunkMZDKBHOPjs.createMemoryRouter.call(void 0, patched, {
257
258
  initialEntries,
258
259
  initialIndex,
259
260
  hydrationData
260
261
  });
261
262
  }
262
- return /* @__PURE__ */ React2.createElement(_chunk22I2H6CRjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkK4BWIVAIjs.RouterProvider, { router: routerRef.current }));
263
+ return /* @__PURE__ */ React2.createElement(_chunkJZBSSDERjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkMZDKBHOPjs.RouterProvider, { router: routerRef.current }));
263
264
  };
264
265
  }
265
266
  function processRoutes(routes, context, manifest, routeModules, parentId) {
@@ -273,9 +274,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
273
274
  id: route.id,
274
275
  path: route.path,
275
276
  index: route.index,
276
- Component: route.Component ? _chunkK4BWIVAIjs.withComponentProps.call(void 0, route.Component) : void 0,
277
- HydrateFallback: route.HydrateFallback ? _chunkK4BWIVAIjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
278
- ErrorBoundary: route.ErrorBoundary ? _chunkK4BWIVAIjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
277
+ Component: route.Component ? _chunkMZDKBHOPjs.withComponentProps.call(void 0, route.Component) : void 0,
278
+ HydrateFallback: route.HydrateFallback ? _chunkMZDKBHOPjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
279
+ ErrorBoundary: route.ErrorBoundary ? _chunkMZDKBHOPjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
279
280
  action: route.action ? (args) => route.action({ ...args, context }) : void 0,
280
281
  loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
281
282
  middleware: route.middleware ? route.middleware.map(
@@ -310,7 +311,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
310
311
  };
311
312
  manifest.routes[newRoute.id] = entryRoute;
312
313
  routeModules[route.id] = {
313
- default: newRoute.Component || _chunkK4BWIVAIjs.Outlet,
314
+ default: newRoute.Component || _chunkMZDKBHOPjs.Outlet,
314
315
  ErrorBoundary: newRoute.ErrorBoundary || void 0,
315
316
  handle: route.handle,
316
317
  links: route.links,
@@ -505,7 +506,7 @@ function myUnescape(value) {
505
506
  return result;
506
507
  }
507
508
  function warnOnceAboutExpiresCookie(name, expires) {
508
- _chunk22I2H6CRjs.warnOnce.call(void 0,
509
+ _chunkJZBSSDERjs.warnOnce.call(void 0,
509
510
  !expires,
510
511
  `The "${name}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
511
512
  );
@@ -559,7 +560,7 @@ function serializeErrors(errors, serverMode) {
559
560
  let entries = Object.entries(errors);
560
561
  let serialized = {};
561
562
  for (let [key, val] of entries) {
562
- if (_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, val)) {
563
+ if (_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, val)) {
563
564
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
564
565
  } else if (val instanceof Error) {
565
566
  let sanitized = sanitizeError(val, serverMode);
@@ -584,7 +585,7 @@ function serializeErrors(errors, serverMode) {
584
585
 
585
586
  // lib/server-runtime/routeMatching.ts
586
587
  function matchServerRoutes(routes, pathname, basename) {
587
- let matches = _chunk22I2H6CRjs.matchRoutes.call(void 0,
588
+ let matches = _chunkJZBSSDERjs.matchRoutes.call(void 0,
588
589
  routes,
589
590
  pathname,
590
591
  basename
@@ -604,7 +605,7 @@ async function callRouteHandler(handler, args) {
604
605
  params: args.params,
605
606
  context: args.context
606
607
  });
607
- if (_chunk22I2H6CRjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunk22I2H6CRjs.isRedirectStatusCode.call(void 0, result.init.status)) {
608
+ if (_chunkJZBSSDERjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkJZBSSDERjs.isRedirectStatusCode.call(void 0, result.init.status)) {
608
609
  throw new Response(null, result.init);
609
610
  }
610
611
  return result;
@@ -723,17 +724,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
723
724
  controller.close();
724
725
  }
725
726
  });
726
- let decoded = await _chunk22I2H6CRjs.decodeViaTurboStream.call(void 0, stream, global);
727
+ let decoded = await _chunkJZBSSDERjs.decodeViaTurboStream.call(void 0, stream, global);
727
728
  let data2 = decoded.value;
728
- if (data2 && _chunk22I2H6CRjs.SingleFetchRedirectSymbol in data2) {
729
- let result = data2[_chunk22I2H6CRjs.SingleFetchRedirectSymbol];
729
+ if (data2 && _chunkJZBSSDERjs.SingleFetchRedirectSymbol in data2) {
730
+ let result = data2[_chunkJZBSSDERjs.SingleFetchRedirectSymbol];
730
731
  let init = { status: result.status };
731
732
  if (result.reload) {
732
- throw _chunk22I2H6CRjs.redirectDocument.call(void 0, result.redirect, init);
733
+ throw _chunkJZBSSDERjs.redirectDocument.call(void 0, result.redirect, init);
733
734
  } else if (result.replace) {
734
- throw _chunk22I2H6CRjs.replace.call(void 0, result.redirect, init);
735
+ throw _chunkJZBSSDERjs.replace.call(void 0, result.redirect, init);
735
736
  } else {
736
- throw _chunk22I2H6CRjs.redirect.call(void 0, result.redirect, init);
737
+ throw _chunkJZBSSDERjs.redirect.call(void 0, result.redirect, init);
737
738
  }
738
739
  } else {
739
740
  invariant2(
@@ -772,7 +773,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
772
773
 
773
774
  // lib/server-runtime/serverHandoff.ts
774
775
  function createServerHandoffString(serverHandoff) {
775
- return _chunk22I2H6CRjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
776
+ return _chunkJZBSSDERjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
776
777
  }
777
778
 
778
779
  // lib/server-runtime/headers.ts
@@ -849,7 +850,7 @@ function prependCookies(parentHeaders, childHeaders) {
849
850
 
850
851
  // lib/server-runtime/single-fetch.ts
851
852
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
852
- ..._chunk22I2H6CRjs.NO_BODY_STATUS_CODES,
853
+ ..._chunkJZBSSDERjs.NO_BODY_STATUS_CODES,
853
854
  304
854
855
  ]);
855
856
  async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
@@ -879,7 +880,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
879
880
  return handleQueryError(error);
880
881
  }
881
882
  function handleQueryResult(result) {
882
- return _chunk22I2H6CRjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
883
+ return _chunkJZBSSDERjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
883
884
  }
884
885
  function handleQueryError(error) {
885
886
  handleError(error);
@@ -891,12 +892,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
891
892
  }
892
893
  function staticContextToResponse(context) {
893
894
  let headers = getDocumentHeaders(context, build);
894
- if (_chunk22I2H6CRjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
895
+ if (_chunkJZBSSDERjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
895
896
  return new Response(null, { status: context.statusCode, headers });
896
897
  }
897
898
  if (context.errors) {
898
899
  Object.values(context.errors).forEach((err) => {
899
- if (!_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, err) || err.error) {
900
+ if (!_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, err) || err.error) {
900
901
  handleError(err);
901
902
  }
902
903
  });
@@ -943,7 +944,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
943
944
  return handleQueryError(error);
944
945
  }
945
946
  function handleQueryResult(result) {
946
- return _chunk22I2H6CRjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
947
+ return _chunkJZBSSDERjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
947
948
  }
948
949
  function handleQueryError(error) {
949
950
  handleError(error);
@@ -955,12 +956,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
955
956
  }
956
957
  function staticContextToResponse(context) {
957
958
  let headers = getDocumentHeaders(context, build);
958
- if (_chunk22I2H6CRjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
959
+ if (_chunkJZBSSDERjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
959
960
  return new Response(null, { status: context.statusCode, headers });
960
961
  }
961
962
  if (context.errors) {
962
963
  Object.values(context.errors).forEach((err) => {
963
- if (!_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, err) || err.error) {
964
+ if (!_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, err) || err.error) {
964
965
  handleError(err);
965
966
  }
966
967
  });
@@ -1024,15 +1025,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
1024
1025
  headers.delete("Location");
1025
1026
  headers.set("Content-Type", "text/x-script");
1026
1027
  return generateSingleFetchResponse(request, build, serverMode, {
1027
- result: request.method === "GET" ? { [_chunk22I2H6CRjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1028
+ result: request.method === "GET" ? { [_chunkJZBSSDERjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1028
1029
  headers,
1029
- status: _chunk22I2H6CRjs.SINGLE_FETCH_REDIRECT_STATUS
1030
+ status: _chunkJZBSSDERjs.SINGLE_FETCH_REDIRECT_STATUS
1030
1031
  });
1031
1032
  }
1032
1033
  function getSingleFetchRedirect(status, headers, basename) {
1033
1034
  let redirect2 = headers.get("Location");
1034
1035
  if (basename) {
1035
- redirect2 = _chunk22I2H6CRjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1036
+ redirect2 = _chunkJZBSSDERjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1036
1037
  }
1037
1038
  return {
1038
1039
  redirect: redirect2,
@@ -1058,7 +1059,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1058
1059
  typeof streamTimeout === "number" ? streamTimeout : 4950
1059
1060
  );
1060
1061
  requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
1061
- return _chunk22I2H6CRjs.encode.call(void 0, data2, {
1062
+ return _chunkJZBSSDERjs.encode.call(void 0, data2, {
1062
1063
  signal: controller.signal,
1063
1064
  plugins: [
1064
1065
  (value) => {
@@ -1066,12 +1067,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1066
1067
  let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
1067
1068
  return ["SanitizedError", name, message, stack];
1068
1069
  }
1069
- if (value instanceof _chunk22I2H6CRjs.ErrorResponseImpl) {
1070
+ if (value instanceof _chunkJZBSSDERjs.ErrorResponseImpl) {
1070
1071
  let { data: data3, status, statusText } = value;
1071
1072
  return ["ErrorResponse", data3, status, statusText];
1072
1073
  }
1073
- if (value && typeof value === "object" && _chunk22I2H6CRjs.SingleFetchRedirectSymbol in value) {
1074
- return ["SingleFetchRedirect", value[_chunk22I2H6CRjs.SingleFetchRedirectSymbol]];
1074
+ if (value && typeof value === "object" && _chunkJZBSSDERjs.SingleFetchRedirectSymbol in value) {
1075
+ return ["SingleFetchRedirect", value[_chunkJZBSSDERjs.SingleFetchRedirectSymbol]];
1075
1076
  }
1076
1077
  }
1077
1078
  ],
@@ -1094,14 +1095,14 @@ function derive(build, mode) {
1094
1095
  let routes = createRoutes(build.routes);
1095
1096
  let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
1096
1097
  let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
1097
- let staticHandler = _chunk22I2H6CRjs.createStaticHandler.call(void 0, dataRoutes, {
1098
+ let staticHandler = _chunkJZBSSDERjs.createStaticHandler.call(void 0, dataRoutes, {
1098
1099
  basename: build.basename
1099
1100
  });
1100
1101
  let errorHandler = build.entry.module.handleError || ((error, { request }) => {
1101
1102
  if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
1102
1103
  console.error(
1103
1104
  // @ts-expect-error This is "private" from users but intended for internal use
1104
- _chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1105
+ _chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1105
1106
  );
1106
1107
  }
1107
1108
  });
@@ -1147,36 +1148,36 @@ var createRequestHandler = (build, mode) => {
1147
1148
  });
1148
1149
  };
1149
1150
  if (_build.future.v8_middleware) {
1150
- if (initialContext && !(initialContext instanceof _chunk22I2H6CRjs.RouterContextProvider)) {
1151
+ if (initialContext && !(initialContext instanceof _chunkJZBSSDERjs.RouterContextProvider)) {
1151
1152
  let error = new Error(
1152
1153
  "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1153
1154
  );
1154
1155
  handleError(error);
1155
1156
  return returnLastResortErrorResponse(error, serverMode);
1156
1157
  }
1157
- loadContext = initialContext || new (0, _chunk22I2H6CRjs.RouterContextProvider)();
1158
+ loadContext = initialContext || new (0, _chunkJZBSSDERjs.RouterContextProvider)();
1158
1159
  } else {
1159
1160
  loadContext = initialContext || {};
1160
1161
  }
1161
1162
  let url = new URL(request.url);
1162
1163
  let normalizedBasename = _build.basename || "/";
1163
1164
  let normalizedPath = url.pathname;
1164
- if (_chunk22I2H6CRjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1165
+ if (_chunkJZBSSDERjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
1165
1166
  normalizedPath = normalizedBasename;
1166
1167
  } else if (normalizedPath.endsWith(".data")) {
1167
1168
  normalizedPath = normalizedPath.replace(/\.data$/, "");
1168
1169
  }
1169
- if (_chunk22I2H6CRjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1170
+ if (_chunkJZBSSDERjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
1170
1171
  normalizedPath = normalizedPath.slice(0, -1);
1171
1172
  }
1172
1173
  let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
1173
1174
  if (!_build.ssr) {
1174
1175
  let decodedPath = decodeURI(normalizedPath);
1175
1176
  if (normalizedBasename !== "/") {
1176
- let strippedPath = _chunk22I2H6CRjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
1177
+ let strippedPath = _chunkJZBSSDERjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
1177
1178
  if (strippedPath == null) {
1178
1179
  errorHandler(
1179
- new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(
1180
+ new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(
1180
1181
  404,
1181
1182
  "Not Found",
1182
1183
  `Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
@@ -1199,7 +1200,7 @@ var createRequestHandler = (build, mode) => {
1199
1200
  } else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
1200
1201
  if (url.pathname.endsWith(".data")) {
1201
1202
  errorHandler(
1202
- new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(
1203
+ new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(
1203
1204
  404,
1204
1205
  "Not Found",
1205
1206
  `Refusing to SSR the path \`${decodedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
@@ -1219,7 +1220,7 @@ var createRequestHandler = (build, mode) => {
1219
1220
  }
1220
1221
  }
1221
1222
  }
1222
- let manifestUrl = _chunk22I2H6CRjs.getManifestPath.call(void 0,
1223
+ let manifestUrl = _chunkJZBSSDERjs.getManifestPath.call(void 0,
1223
1224
  _build.routeDiscovery.manifestPath,
1224
1225
  normalizedBasename
1225
1226
  );
@@ -1254,7 +1255,7 @@ var createRequestHandler = (build, mode) => {
1254
1255
  loadContext,
1255
1256
  handleError
1256
1257
  );
1257
- if (_chunk22I2H6CRjs.isRedirectResponse.call(void 0, response)) {
1258
+ if (_chunkJZBSSDERjs.isRedirectResponse.call(void 0, response)) {
1258
1259
  response = generateSingleFetchRedirectResponse(
1259
1260
  response,
1260
1261
  request,
@@ -1268,7 +1269,7 @@ var createRequestHandler = (build, mode) => {
1268
1269
  params: singleFetchMatches ? singleFetchMatches[0].params : {},
1269
1270
  request
1270
1271
  });
1271
- if (_chunk22I2H6CRjs.isRedirectResponse.call(void 0, response)) {
1272
+ if (_chunkJZBSSDERjs.isRedirectResponse.call(void 0, response)) {
1272
1273
  response = generateSingleFetchRedirectResponse(
1273
1274
  response,
1274
1275
  request,
@@ -1387,7 +1388,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1387
1388
  generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
1388
1389
  try {
1389
1390
  let innerResult = await query(request);
1390
- if (!_chunk22I2H6CRjs.isResponse.call(void 0, innerResult)) {
1391
+ if (!_chunkJZBSSDERjs.isResponse.call(void 0, innerResult)) {
1391
1392
  innerResult = await renderHtml(innerResult, isSpaMode);
1392
1393
  }
1393
1394
  return innerResult;
@@ -1397,7 +1398,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1397
1398
  }
1398
1399
  } : void 0
1399
1400
  });
1400
- if (!_chunk22I2H6CRjs.isResponse.call(void 0, result)) {
1401
+ if (!_chunkJZBSSDERjs.isResponse.call(void 0, result)) {
1401
1402
  result = await renderHtml(result, isSpaMode);
1402
1403
  }
1403
1404
  return result;
@@ -1412,7 +1413,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1412
1413
  }
1413
1414
  if (context.errors) {
1414
1415
  Object.values(context.errors).forEach((err) => {
1415
- if (!_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1416
+ if (!_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1416
1417
  handleError(err);
1417
1418
  }
1418
1419
  });
@@ -1464,10 +1465,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1464
1465
  } catch (error) {
1465
1466
  handleError(error);
1466
1467
  let errorForSecondRender = error;
1467
- if (_chunk22I2H6CRjs.isResponse.call(void 0, error)) {
1468
+ if (_chunkJZBSSDERjs.isResponse.call(void 0, error)) {
1468
1469
  try {
1469
1470
  let data2 = await unwrapResponse(error);
1470
- errorForSecondRender = new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(
1471
+ errorForSecondRender = new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(
1471
1472
  error.status,
1472
1473
  error.statusText,
1473
1474
  data2
@@ -1475,7 +1476,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1475
1476
  } catch (e) {
1476
1477
  }
1477
1478
  }
1478
- context = _chunk22I2H6CRjs.getStaticContextFromError.call(void 0,
1479
+ context = _chunkJZBSSDERjs.getStaticContextFromError.call(void 0,
1479
1480
  staticHandler.dataRoutes,
1480
1481
  context,
1481
1482
  errorForSecondRender
@@ -1534,7 +1535,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1534
1535
  return handleQueryRouteError(error);
1535
1536
  }
1536
1537
  function handleQueryRouteResult(result) {
1537
- if (_chunk22I2H6CRjs.isResponse.call(void 0, result)) {
1538
+ if (_chunkJZBSSDERjs.isResponse.call(void 0, result)) {
1538
1539
  return result;
1539
1540
  }
1540
1541
  if (typeof result === "string") {
@@ -1543,11 +1544,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1543
1544
  return Response.json(result);
1544
1545
  }
1545
1546
  function handleQueryRouteError(error) {
1546
- if (_chunk22I2H6CRjs.isResponse.call(void 0, error)) {
1547
+ if (_chunkJZBSSDERjs.isResponse.call(void 0, error)) {
1547
1548
  error.headers.set("X-Remix-Catch", "yes");
1548
1549
  return error;
1549
1550
  }
1550
- if (_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, error)) {
1551
+ if (_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, error)) {
1551
1552
  handleError(error);
1552
1553
  return errorResponseToJson(error, serverMode);
1553
1554
  }
@@ -1673,7 +1674,7 @@ function createSessionStorage({
1673
1674
  };
1674
1675
  }
1675
1676
  function warnOnceAboutSigningSessionCookie(cookie) {
1676
- _chunk22I2H6CRjs.warnOnce.call(void 0,
1677
+ _chunkJZBSSDERjs.warnOnce.call(void 0,
1677
1678
  cookie.isSigned,
1678
1679
  `The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
1679
1680
  );
@@ -1780,12 +1781,12 @@ function getHydrationData({
1780
1781
  ...state,
1781
1782
  loaderData: { ...state.loaderData }
1782
1783
  };
1783
- let initialMatches = _chunk22I2H6CRjs.matchRoutes.call(void 0, routes, location2, basename);
1784
+ let initialMatches = _chunkJZBSSDERjs.matchRoutes.call(void 0, routes, location2, basename);
1784
1785
  if (initialMatches) {
1785
1786
  for (let match of initialMatches) {
1786
1787
  let routeId = match.route.id;
1787
1788
  let routeInfo = getRouteInfo(routeId);
1788
- if (_chunk22I2H6CRjs.shouldHydrateRouteLoader.call(void 0,
1789
+ if (_chunkJZBSSDERjs.shouldHydrateRouteLoader.call(void 0,
1789
1790
  routeId,
1790
1791
  routeInfo.clientLoader,
1791
1792
  routeInfo.hasLoader,
@@ -1863,7 +1864,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1863
1864
  }
1864
1865
  }
1865
1866
  );
1866
- if (_chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, error)) {
1867
+ if (_chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, error)) {
1867
1868
  return /* @__PURE__ */ React.default.createElement(
1868
1869
  ErrorWrapper,
1869
1870
  {
@@ -1871,7 +1872,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1871
1872
  title: "Unhandled Thrown Response!"
1872
1873
  },
1873
1874
  /* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
1874
- _chunk22I2H6CRjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1875
+ _chunkJZBSSDERjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
1875
1876
  );
1876
1877
  }
1877
1878
  let errorInstance;
@@ -1897,7 +1898,7 @@ function RSCDefaultRootErrorBoundaryImpl({
1897
1898
  function RSCDefaultRootErrorBoundary({
1898
1899
  hasRootLayout
1899
1900
  }) {
1900
- let error = _chunk22I2H6CRjs.useRouteError.call(void 0, );
1901
+ let error = _chunkJZBSSDERjs.useRouteError.call(void 0, );
1901
1902
  if (hasRootLayout === void 0) {
1902
1903
  throw new Error("Missing 'hasRootLayout' prop");
1903
1904
  }
@@ -1942,7 +1943,7 @@ function createCallServer({
1942
1943
  return async (id, args) => {
1943
1944
  let actionId = globalVar.__routerActionID = (_nullishCoalesce(globalVar.__routerActionID, () => ( (globalVar.__routerActionID = 0)))) + 1;
1944
1945
  const temporaryReferences = createTemporaryReferenceSet();
1945
- const response = await fetchImplementation(
1946
+ const payloadPromise = fetchImplementation(
1946
1947
  new Request(location.href, {
1947
1948
  body: await encodeReply(args, { temporaryReferences }),
1948
1949
  method: "POST",
@@ -1951,44 +1952,45 @@ function createCallServer({
1951
1952
  "rsc-action-id": id
1952
1953
  }
1953
1954
  })
1954
- );
1955
- if (!response.body) {
1956
- throw new Error("No response body");
1957
- }
1958
- const payload = await createFromReadableStream(response.body, {
1959
- temporaryReferences
1960
- });
1961
- if (payload.type === "redirect") {
1962
- if (payload.reload) {
1963
- window.location.href = payload.location;
1964
- return;
1955
+ ).then((response) => {
1956
+ if (!response.body) {
1957
+ throw new Error("No response body");
1965
1958
  }
1966
- globalVar.__reactRouterDataRouter.navigate(payload.location, {
1967
- replace: payload.replace
1959
+ return createFromReadableStream(response.body, {
1960
+ temporaryReferences
1968
1961
  });
1969
- return payload.actionResult;
1970
- }
1971
- if (payload.type !== "action") {
1972
- throw new Error("Unexpected payload type");
1973
- }
1974
- if (payload.rerender) {
1975
- React4.startTransition(
1976
- // @ts-expect-error - We have old react types that don't know this can be async
1977
- async () => {
1978
- const rerender = await payload.rerender;
1979
- if (!rerender) return;
1980
- if (landedActionId < actionId && globalVar.__routerActionID <= actionId) {
1981
- landedActionId = actionId;
1982
- if (rerender.type === "redirect") {
1983
- if (rerender.reload) {
1984
- window.location.href = rerender.location;
1985
- return;
1986
- }
1962
+ });
1963
+ globalVar.__reactRouterDataRouter.__setPendingRerender(
1964
+ Promise.resolve(payloadPromise).then(async (payload) => {
1965
+ if (payload.type === "redirect") {
1966
+ if (payload.reload) {
1967
+ window.location.href = payload.location;
1968
+ return () => {
1969
+ };
1970
+ }
1971
+ return () => {
1972
+ globalVar.__reactRouterDataRouter.navigate(payload.location, {
1973
+ replace: payload.replace
1974
+ });
1975
+ };
1976
+ }
1977
+ if (payload.type !== "action") {
1978
+ throw new Error("Unexpected payload type");
1979
+ }
1980
+ const rerender = await payload.rerender;
1981
+ if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {
1982
+ if (rerender.type === "redirect") {
1983
+ if (rerender.reload) {
1984
+ window.location.href = rerender.location;
1985
+ return;
1986
+ }
1987
+ return () => {
1987
1988
  globalVar.__reactRouterDataRouter.navigate(rerender.location, {
1988
1989
  replace: rerender.replace
1989
1990
  });
1990
- return;
1991
- }
1991
+ };
1992
+ }
1993
+ return () => {
1992
1994
  let lastMatch;
1993
1995
  for (const match of rerender.matches) {
1994
1996
  globalVar.__reactRouterDataRouter.patchRoutes(
@@ -1999,29 +2001,32 @@ function createCallServer({
1999
2001
  lastMatch = match;
2000
2002
  }
2001
2003
  window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
2002
- {}
2004
+ {
2005
+ loaderData: Object.assign(
2006
+ {},
2007
+ globalVar.__reactRouterDataRouter.state.loaderData,
2008
+ rerender.loaderData
2009
+ ),
2010
+ errors: rerender.errors ? Object.assign(
2011
+ {},
2012
+ globalVar.__reactRouterDataRouter.state.errors,
2013
+ rerender.errors
2014
+ ) : null
2015
+ }
2003
2016
  );
2004
- React4.startTransition(() => {
2005
- window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
2006
- {
2007
- loaderData: Object.assign(
2008
- {},
2009
- globalVar.__reactRouterDataRouter.state.loaderData,
2010
- rerender.loaderData
2011
- ),
2012
- errors: rerender.errors ? Object.assign(
2013
- {},
2014
- globalVar.__reactRouterDataRouter.state.errors,
2015
- rerender.errors
2016
- ) : null
2017
- }
2018
- );
2019
- });
2020
- }
2017
+ };
2021
2018
  }
2022
- );
2023
- }
2024
- return payload.actionResult;
2019
+ return () => {
2020
+ };
2021
+ }).catch(() => {
2022
+ })
2023
+ );
2024
+ return payloadPromise.then((payload) => {
2025
+ if (payload.type !== "action" && payload.type !== "redirect") {
2026
+ throw new Error("Unexpected payload type");
2027
+ }
2028
+ return payload.actionResult;
2029
+ });
2025
2030
  };
2026
2031
  }
2027
2032
  function createRouterFromPayload({
@@ -2041,7 +2046,7 @@ function createRouterFromPayload({
2041
2046
  populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
2042
2047
  let patches = /* @__PURE__ */ new Map();
2043
2048
  _optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
2044
- _chunk22I2H6CRjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2049
+ _chunkJZBSSDERjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
2045
2050
  if (!patches.has(patch.parentId)) {
2046
2051
  patches.set(patch.parentId, []);
2047
2052
  }
@@ -2063,11 +2068,11 @@ function createRouterFromPayload({
2063
2068
  }
2064
2069
  return [route];
2065
2070
  }, []);
2066
- globalVar.__reactRouterDataRouter = _chunk22I2H6CRjs.createRouter.call(void 0, {
2071
+ globalVar.__reactRouterDataRouter = _chunkJZBSSDERjs.createRouter.call(void 0, {
2067
2072
  routes,
2068
2073
  getContext,
2069
2074
  basename: payload.basename,
2070
- history: _chunk22I2H6CRjs.createBrowserHistory.call(void 0, ),
2075
+ history: _chunkJZBSSDERjs.createBrowserHistory.call(void 0, ),
2071
2076
  hydrationData: getHydrationData({
2072
2077
  state: {
2073
2078
  loaderData: payload.loaderData,
@@ -2077,7 +2082,7 @@ function createRouterFromPayload({
2077
2082
  routes,
2078
2083
  getRouteInfo: (routeId) => {
2079
2084
  let match = payload.matches.find((m) => m.id === routeId);
2080
- _chunk22I2H6CRjs.invariant.call(void 0, match, "Route not found in payload");
2085
+ _chunkJZBSSDERjs.invariant.call(void 0, match, "Route not found in payload");
2081
2086
  return {
2082
2087
  clientLoader: match.clientLoader,
2083
2088
  hasLoader: match.hasLoader,
@@ -2175,9 +2180,9 @@ function createRouterFromPayload({
2175
2180
  routeModules: globalVar.__reactRouterRouteModules
2176
2181
  };
2177
2182
  }
2178
- var renderedRoutesContext = _chunk22I2H6CRjs.createContext.call(void 0, );
2183
+ var renderedRoutesContext = _chunkJZBSSDERjs.createContext.call(void 0, );
2179
2184
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
2180
- let dataStrategy = _chunk22I2H6CRjs.getSingleFetchDataStrategyImpl.call(void 0,
2185
+ let dataStrategy = _chunkJZBSSDERjs.getSingleFetchDataStrategyImpl.call(void 0,
2181
2186
  getRouter,
2182
2187
  (match) => {
2183
2188
  let M = match;
@@ -2231,20 +2236,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
2231
2236
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
2232
2237
  return async (args, basename, targetRoutes) => {
2233
2238
  let { request, context } = args;
2234
- let url = _chunk22I2H6CRjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2239
+ let url = _chunkJZBSSDERjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
2235
2240
  if (request.method === "GET") {
2236
- url = _chunk22I2H6CRjs.stripIndexParam.call(void 0, url);
2241
+ url = _chunkJZBSSDERjs.stripIndexParam.call(void 0, url);
2237
2242
  if (targetRoutes) {
2238
2243
  url.searchParams.set("_routes", targetRoutes.join(","));
2239
2244
  }
2240
2245
  }
2241
2246
  let res = await fetchImplementation(
2242
- new Request(url, await _chunk22I2H6CRjs.createRequestInit.call(void 0, request))
2247
+ new Request(url, await _chunkJZBSSDERjs.createRequestInit.call(void 0, request))
2243
2248
  );
2244
2249
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
2245
- throw new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(404, "Not Found", true);
2250
+ throw new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(404, "Not Found", true);
2246
2251
  }
2247
- _chunk22I2H6CRjs.invariant.call(void 0, res.body, "No response body to decode");
2252
+ _chunkJZBSSDERjs.invariant.call(void 0, res.body, "No response body to decode");
2248
2253
  try {
2249
2254
  const payload = await createFromReadableStream(res.body, {
2250
2255
  temporaryReferences: void 0
@@ -2268,7 +2273,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
2268
2273
  }
2269
2274
  context.get(renderedRoutesContext).push(...payload.matches);
2270
2275
  let results = { routes: {} };
2271
- const dataKey = _chunk22I2H6CRjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2276
+ const dataKey = _chunkJZBSSDERjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
2272
2277
  for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
2273
2278
  results.routes[routeId] = { data: data2 };
2274
2279
  }
@@ -2301,7 +2306,7 @@ function RSCHydratedRouter({
2301
2306
  [createFromReadableStream, payload, fetchImplementation, getContext]
2302
2307
  );
2303
2308
  React4.useEffect(() => {
2304
- _chunk22I2H6CRjs.setIsHydrated.call(void 0, );
2309
+ _chunkJZBSSDERjs.setIsHydrated.call(void 0, );
2305
2310
  }, []);
2306
2311
  React4.useLayoutEffect(() => {
2307
2312
  const globalVar = window;
@@ -2388,7 +2393,7 @@ function RSCHydratedRouter({
2388
2393
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2389
2394
  routeModules
2390
2395
  };
2391
- return /* @__PURE__ */ React4.createElement(_chunk22I2H6CRjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunk22I2H6CRjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkK4BWIVAIjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2396
+ return /* @__PURE__ */ React4.createElement(_chunkJZBSSDERjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkJZBSSDERjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkMZDKBHOPjs.UNSTABLE_TransitionEnabledRouterProvider, { router, flushSync: ReactDOM.flushSync }))));
2392
2397
  }
2393
2398
  function createRouteFromServerManifest(match, payload) {
2394
2399
  let hasInitialData = payload && match.id in payload.loaderData;
@@ -2399,7 +2404,7 @@ function createRouteFromServerManifest(match, payload) {
2399
2404
  // the server loader flow regardless of whether the client loader calls
2400
2405
  // `serverLoader` or not, otherwise we'll have nothing to render.
2401
2406
  match.hasComponent && !match.element;
2402
- _chunk22I2H6CRjs.invariant.call(void 0, window.__reactRouterRouteModules);
2407
+ _chunkJZBSSDERjs.invariant.call(void 0, window.__reactRouterRouteModules);
2403
2408
  populateRSCRouteModules(window.__reactRouterRouteModules, match);
2404
2409
  let dataRoute = {
2405
2410
  id: match.id,
@@ -2450,7 +2455,7 @@ function createRouteFromServerManifest(match, payload) {
2450
2455
  return await callSingleFetch(singleFetch);
2451
2456
  }
2452
2457
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
2453
- throw _chunk22I2H6CRjs.noActionDefinedError.call(void 0, "action", match.id);
2458
+ throw _chunkJZBSSDERjs.noActionDefinedError.call(void 0, "action", match.id);
2454
2459
  },
2455
2460
  path: match.path,
2456
2461
  shouldRevalidate: match.shouldRevalidate,
@@ -2463,7 +2468,7 @@ function createRouteFromServerManifest(match, payload) {
2463
2468
  hasShouldRevalidate: match.shouldRevalidate != null
2464
2469
  };
2465
2470
  if (typeof dataRoute.loader === "function") {
2466
- dataRoute.loader.hydrate = _chunk22I2H6CRjs.shouldHydrateRouteLoader.call(void 0,
2471
+ dataRoute.loader.hydrate = _chunkJZBSSDERjs.shouldHydrateRouteLoader.call(void 0,
2467
2472
  match.id,
2468
2473
  match.clientLoader,
2469
2474
  match.hasLoader,
@@ -2473,7 +2478,7 @@ function createRouteFromServerManifest(match, payload) {
2473
2478
  return dataRoute;
2474
2479
  }
2475
2480
  function callSingleFetch(singleFetch) {
2476
- _chunk22I2H6CRjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2481
+ _chunkJZBSSDERjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
2477
2482
  return singleFetch();
2478
2483
  }
2479
2484
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -2481,7 +2486,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
2481
2486
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
2482
2487
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
2483
2488
  console.error(msg);
2484
- throw new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2489
+ throw new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
2485
2490
  }
2486
2491
  }
2487
2492
  var nextPaths = /* @__PURE__ */ new Set();
@@ -2725,7 +2730,7 @@ async function routeRSCServerRequest({
2725
2730
  const payload = await createFromReadableStream(
2726
2731
  detectRedirectResponse.body
2727
2732
  );
2728
- if (serverResponse.status === _chunk22I2H6CRjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2733
+ if (serverResponse.status === _chunkJZBSSDERjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2729
2734
  const headers2 = new Headers(serverResponse.headers);
2730
2735
  headers2.delete("Content-Encoding");
2731
2736
  headers2.delete("Content-Length");
@@ -2760,7 +2765,7 @@ async function routeRSCServerRequest({
2760
2765
  return reason;
2761
2766
  }
2762
2767
  try {
2763
- const status = _chunk22I2H6CRjs.isRouteErrorResponse.call(void 0, reason) ? reason.status : 500;
2768
+ const status = _chunkJZBSSDERjs.isRouteErrorResponse.call(void 0, reason) ? reason.status : 500;
2764
2769
  const html = await renderHTML(() => {
2765
2770
  const decoded = Promise.resolve(
2766
2771
  createFromReadableStream(createStream())
@@ -2826,7 +2831,7 @@ function RSCStaticRouter({ getPayload }) {
2826
2831
  if (payload.type !== "render") return null;
2827
2832
  let patchedLoaderData = { ...payload.loaderData };
2828
2833
  for (const match of payload.matches) {
2829
- if (_chunk22I2H6CRjs.shouldHydrateRouteLoader.call(void 0,
2834
+ if (_chunkJZBSSDERjs.shouldHydrateRouteLoader.call(void 0,
2830
2835
  match.id,
2831
2836
  match.clientLoader,
2832
2837
  match.hasLoader,
@@ -2866,7 +2871,7 @@ function RSCStaticRouter({ getPayload }) {
2866
2871
  }
2867
2872
  }))
2868
2873
  };
2869
- const router = _chunkK4BWIVAIjs.createStaticRouter.call(void 0,
2874
+ const router = _chunkMZDKBHOPjs.createStaticRouter.call(void 0,
2870
2875
  payload.matches.reduceRight((previous, match) => {
2871
2876
  const route = {
2872
2877
  id: match.id,
@@ -2910,8 +2915,8 @@ function RSCStaticRouter({ getPayload }) {
2910
2915
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
2911
2916
  routeModules: createRSCRouteModules(payload)
2912
2917
  };
2913
- return /* @__PURE__ */ React5.createElement(_chunk22I2H6CRjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunk22I2H6CRjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2914
- _chunkK4BWIVAIjs.StaticRouterProvider,
2918
+ return /* @__PURE__ */ React5.createElement(_chunkJZBSSDERjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkJZBSSDERjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
2919
+ _chunkMZDKBHOPjs.StaticRouterProvider,
2915
2920
  {
2916
2921
  context,
2917
2922
  router,
@@ -2969,7 +2974,7 @@ function deserializeErrors(errors) {
2969
2974
  let serialized = {};
2970
2975
  for (let [key, val] of entries) {
2971
2976
  if (val && val.__type === "RouteErrorResponse") {
2972
- serialized[key] = new (0, _chunk22I2H6CRjs.ErrorResponseImpl)(
2977
+ serialized[key] = new (0, _chunkJZBSSDERjs.ErrorResponseImpl)(
2973
2978
  val.status,
2974
2979
  val.statusText,
2975
2980
  val.data,
@@ -3128,4 +3133,4 @@ function deserializeErrors(errors) {
3128
3133
 
3129
3134
 
3130
3135
 
3131
- exports.Await = _chunkK4BWIVAIjs.Await; exports.BrowserRouter = _chunkK4BWIVAIjs.BrowserRouter; exports.Form = _chunkK4BWIVAIjs.Form; exports.HashRouter = _chunkK4BWIVAIjs.HashRouter; exports.IDLE_BLOCKER = _chunk22I2H6CRjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunk22I2H6CRjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunk22I2H6CRjs.IDLE_NAVIGATION; exports.Link = _chunkK4BWIVAIjs.Link; exports.Links = _chunk22I2H6CRjs.Links; exports.MemoryRouter = _chunkK4BWIVAIjs.MemoryRouter; exports.Meta = _chunk22I2H6CRjs.Meta; exports.NavLink = _chunkK4BWIVAIjs.NavLink; exports.Navigate = _chunkK4BWIVAIjs.Navigate; exports.NavigationType = _chunk22I2H6CRjs.Action; exports.Outlet = _chunkK4BWIVAIjs.Outlet; exports.PrefetchPageLinks = _chunk22I2H6CRjs.PrefetchPageLinks; exports.Route = _chunkK4BWIVAIjs.Route; exports.Router = _chunkK4BWIVAIjs.Router; exports.RouterContextProvider = _chunk22I2H6CRjs.RouterContextProvider; exports.RouterProvider = _chunkK4BWIVAIjs.RouterProvider; exports.Routes = _chunkK4BWIVAIjs.Routes; exports.Scripts = _chunk22I2H6CRjs.Scripts; exports.ScrollRestoration = _chunkK4BWIVAIjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkK4BWIVAIjs.StaticRouter; exports.StaticRouterProvider = _chunkK4BWIVAIjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunk22I2H6CRjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunk22I2H6CRjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunk22I2H6CRjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunk22I2H6CRjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunk22I2H6CRjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunk22I2H6CRjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunk22I2H6CRjs.LocationContext; exports.UNSAFE_NavigationContext = _chunk22I2H6CRjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunk22I2H6CRjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunk22I2H6CRjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunk22I2H6CRjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunk22I2H6CRjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkK4BWIVAIjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkK4BWIVAIjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkK4BWIVAIjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunk22I2H6CRjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunk22I2H6CRjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunk22I2H6CRjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunk22I2H6CRjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunk22I2H6CRjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunk22I2H6CRjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunk22I2H6CRjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkK4BWIVAIjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunk22I2H6CRjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkK4BWIVAIjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunk22I2H6CRjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunk22I2H6CRjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkK4BWIVAIjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkK4BWIVAIjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkK4BWIVAIjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkK4BWIVAIjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkK4BWIVAIjs.createBrowserRouter; exports.createContext = _chunk22I2H6CRjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkK4BWIVAIjs.createHashRouter; exports.createMemoryRouter = _chunkK4BWIVAIjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunk22I2H6CRjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkK4BWIVAIjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkK4BWIVAIjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkK4BWIVAIjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkK4BWIVAIjs.createStaticHandler; exports.createStaticRouter = _chunkK4BWIVAIjs.createStaticRouter; exports.data = _chunk22I2H6CRjs.data; exports.generatePath = _chunk22I2H6CRjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunk22I2H6CRjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunk22I2H6CRjs.matchPath; exports.matchRoutes = _chunk22I2H6CRjs.matchRoutes; exports.parsePath = _chunk22I2H6CRjs.parsePath; exports.redirect = _chunk22I2H6CRjs.redirect; exports.redirectDocument = _chunk22I2H6CRjs.redirectDocument; exports.renderMatches = _chunkK4BWIVAIjs.renderMatches; exports.replace = _chunk22I2H6CRjs.replace; exports.resolvePath = _chunk22I2H6CRjs.resolvePath; exports.unstable_HistoryRouter = _chunkK4BWIVAIjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkK4BWIVAIjs.usePrompt; exports.useActionData = _chunk22I2H6CRjs.useActionData; exports.useAsyncError = _chunk22I2H6CRjs.useAsyncError; exports.useAsyncValue = _chunk22I2H6CRjs.useAsyncValue; exports.useBeforeUnload = _chunkK4BWIVAIjs.useBeforeUnload; exports.useBlocker = _chunk22I2H6CRjs.useBlocker; exports.useFetcher = _chunkK4BWIVAIjs.useFetcher; exports.useFetchers = _chunkK4BWIVAIjs.useFetchers; exports.useFormAction = _chunkK4BWIVAIjs.useFormAction; exports.useHref = _chunk22I2H6CRjs.useHref; exports.useInRouterContext = _chunk22I2H6CRjs.useInRouterContext; exports.useLinkClickHandler = _chunkK4BWIVAIjs.useLinkClickHandler; exports.useLoaderData = _chunk22I2H6CRjs.useLoaderData; exports.useLocation = _chunk22I2H6CRjs.useLocation; exports.useMatch = _chunk22I2H6CRjs.useMatch; exports.useMatches = _chunk22I2H6CRjs.useMatches; exports.useNavigate = _chunk22I2H6CRjs.useNavigate; exports.useNavigation = _chunk22I2H6CRjs.useNavigation; exports.useNavigationType = _chunk22I2H6CRjs.useNavigationType; exports.useOutlet = _chunk22I2H6CRjs.useOutlet; exports.useOutletContext = _chunk22I2H6CRjs.useOutletContext; exports.useParams = _chunk22I2H6CRjs.useParams; exports.useResolvedPath = _chunk22I2H6CRjs.useResolvedPath; exports.useRevalidator = _chunk22I2H6CRjs.useRevalidator; exports.useRouteError = _chunk22I2H6CRjs.useRouteError; exports.useRouteLoaderData = _chunk22I2H6CRjs.useRouteLoaderData; exports.useRoutes = _chunk22I2H6CRjs.useRoutes; exports.useSearchParams = _chunkK4BWIVAIjs.useSearchParams; exports.useSubmit = _chunkK4BWIVAIjs.useSubmit; exports.useViewTransitionState = _chunkK4BWIVAIjs.useViewTransitionState;
3136
+ exports.Await = _chunkMZDKBHOPjs.Await; exports.BrowserRouter = _chunkMZDKBHOPjs.BrowserRouter; exports.Form = _chunkMZDKBHOPjs.Form; exports.HashRouter = _chunkMZDKBHOPjs.HashRouter; exports.IDLE_BLOCKER = _chunkJZBSSDERjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkJZBSSDERjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkJZBSSDERjs.IDLE_NAVIGATION; exports.Link = _chunkMZDKBHOPjs.Link; exports.Links = _chunkJZBSSDERjs.Links; exports.MemoryRouter = _chunkMZDKBHOPjs.MemoryRouter; exports.Meta = _chunkJZBSSDERjs.Meta; exports.NavLink = _chunkMZDKBHOPjs.NavLink; exports.Navigate = _chunkMZDKBHOPjs.Navigate; exports.NavigationType = _chunkJZBSSDERjs.Action; exports.Outlet = _chunkMZDKBHOPjs.Outlet; exports.PrefetchPageLinks = _chunkJZBSSDERjs.PrefetchPageLinks; exports.Route = _chunkMZDKBHOPjs.Route; exports.Router = _chunkMZDKBHOPjs.Router; exports.RouterContextProvider = _chunkJZBSSDERjs.RouterContextProvider; exports.RouterProvider = _chunkMZDKBHOPjs.RouterProvider; exports.Routes = _chunkMZDKBHOPjs.Routes; exports.Scripts = _chunkJZBSSDERjs.Scripts; exports.ScrollRestoration = _chunkMZDKBHOPjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkMZDKBHOPjs.StaticRouter; exports.StaticRouterProvider = _chunkMZDKBHOPjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkJZBSSDERjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkJZBSSDERjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkJZBSSDERjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkJZBSSDERjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkJZBSSDERjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkJZBSSDERjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkJZBSSDERjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkJZBSSDERjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkJZBSSDERjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkJZBSSDERjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkJZBSSDERjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkJZBSSDERjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkMZDKBHOPjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkMZDKBHOPjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkMZDKBHOPjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkJZBSSDERjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkJZBSSDERjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkJZBSSDERjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkJZBSSDERjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkJZBSSDERjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkJZBSSDERjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkJZBSSDERjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkMZDKBHOPjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkJZBSSDERjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkMZDKBHOPjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkJZBSSDERjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkJZBSSDERjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkMZDKBHOPjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkMZDKBHOPjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkMZDKBHOPjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkMZDKBHOPjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkMZDKBHOPjs.createBrowserRouter; exports.createContext = _chunkJZBSSDERjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkMZDKBHOPjs.createHashRouter; exports.createMemoryRouter = _chunkMZDKBHOPjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkJZBSSDERjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkMZDKBHOPjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkMZDKBHOPjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkMZDKBHOPjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkMZDKBHOPjs.createStaticHandler; exports.createStaticRouter = _chunkMZDKBHOPjs.createStaticRouter; exports.data = _chunkJZBSSDERjs.data; exports.generatePath = _chunkJZBSSDERjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkJZBSSDERjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkJZBSSDERjs.matchPath; exports.matchRoutes = _chunkJZBSSDERjs.matchRoutes; exports.parsePath = _chunkJZBSSDERjs.parsePath; exports.redirect = _chunkJZBSSDERjs.redirect; exports.redirectDocument = _chunkJZBSSDERjs.redirectDocument; exports.renderMatches = _chunkMZDKBHOPjs.renderMatches; exports.replace = _chunkJZBSSDERjs.replace; exports.resolvePath = _chunkJZBSSDERjs.resolvePath; exports.unstable_HistoryRouter = _chunkMZDKBHOPjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkMZDKBHOPjs.usePrompt; exports.useActionData = _chunkJZBSSDERjs.useActionData; exports.useAsyncError = _chunkJZBSSDERjs.useAsyncError; exports.useAsyncValue = _chunkJZBSSDERjs.useAsyncValue; exports.useBeforeUnload = _chunkMZDKBHOPjs.useBeforeUnload; exports.useBlocker = _chunkJZBSSDERjs.useBlocker; exports.useFetcher = _chunkMZDKBHOPjs.useFetcher; exports.useFetchers = _chunkMZDKBHOPjs.useFetchers; exports.useFormAction = _chunkMZDKBHOPjs.useFormAction; exports.useHref = _chunkJZBSSDERjs.useHref; exports.useInRouterContext = _chunkJZBSSDERjs.useInRouterContext; exports.useLinkClickHandler = _chunkMZDKBHOPjs.useLinkClickHandler; exports.useLoaderData = _chunkJZBSSDERjs.useLoaderData; exports.useLocation = _chunkJZBSSDERjs.useLocation; exports.useMatch = _chunkJZBSSDERjs.useMatch; exports.useMatches = _chunkJZBSSDERjs.useMatches; exports.useNavigate = _chunkJZBSSDERjs.useNavigate; exports.useNavigation = _chunkJZBSSDERjs.useNavigation; exports.useNavigationType = _chunkJZBSSDERjs.useNavigationType; exports.useOutlet = _chunkJZBSSDERjs.useOutlet; exports.useOutletContext = _chunkJZBSSDERjs.useOutletContext; exports.useParams = _chunkJZBSSDERjs.useParams; exports.useResolvedPath = _chunkJZBSSDERjs.useResolvedPath; exports.useRevalidator = _chunkJZBSSDERjs.useRevalidator; exports.useRouteError = _chunkJZBSSDERjs.useRouteError; exports.useRouteLoaderData = _chunkJZBSSDERjs.useRouteLoaderData; exports.useRoutes = _chunkJZBSSDERjs.useRoutes; exports.useSearchParams = _chunkMZDKBHOPjs.useSearchParams; exports.useSubmit = _chunkMZDKBHOPjs.useSubmit; exports.useViewTransitionState = _chunkMZDKBHOPjs.useViewTransitionState;