react-router 7.14.1 → 7.15.0

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 (72) hide show
  1. package/CHANGELOG.md +105 -0
  2. package/dist/development/{browser-D-3-U2Jj.d.mts → browser-CRsXgNrY.d.mts} +2 -2
  3. package/dist/{production/browser-D-3-U2Jj.d.mts → development/browser-wDl1FZEL.d.ts} +2 -2
  4. package/dist/{production/chunk-3SUPTI2U.js → development/chunk-2D5H3HU3.js} +7 -7
  5. package/dist/development/{chunk-OE4NN4TA.mjs → chunk-5KNZJZUH.mjs} +362 -213
  6. package/dist/development/{chunk-YMKMFAYZ.js → chunk-AM3XM4LS.js} +314 -172
  7. package/dist/development/{chunk-BFXCU3MI.mjs → chunk-RMD3H4O3.mjs} +81 -62
  8. package/dist/development/{chunk-3F6IB66O.js → chunk-Z5YQYACE.js} +146 -139
  9. package/dist/{production/context-BzhbVly6.d.mts → development/context-BQs41HrG.d.mts} +94 -42
  10. package/dist/development/{routeModules-CM_clkdE.d.ts → data-BVUf681J.d.mts} +89 -56
  11. package/dist/{production/routeModules-CM_clkdE.d.ts → development/data-BqZ2x964.d.ts} +79 -46
  12. package/dist/development/dom-export.d.mts +9 -9
  13. package/dist/development/dom-export.d.ts +9 -9
  14. package/dist/development/dom-export.js +37 -40
  15. package/dist/development/dom-export.mjs +12 -15
  16. package/dist/development/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-CSv-KZBk.d.ts} +123 -121
  17. package/dist/{production/index-react-server-client-WSaoxloq.d.mts → development/index-react-server-client-Ck_yZ1qL.d.mts} +102 -100
  18. package/dist/development/index-react-server-client.d.mts +3 -3
  19. package/dist/development/index-react-server-client.d.ts +3 -3
  20. package/dist/development/index-react-server-client.js +4 -4
  21. package/dist/development/index-react-server-client.mjs +2 -2
  22. package/dist/development/index-react-server.d.mts +107 -36
  23. package/dist/development/index-react-server.d.ts +107 -36
  24. package/dist/development/index-react-server.js +60 -33
  25. package/dist/development/index-react-server.mjs +60 -33
  26. package/dist/development/index.d.mts +11 -11
  27. package/dist/development/index.d.ts +11 -11
  28. package/dist/development/index.js +174 -155
  29. package/dist/development/index.mjs +3 -3
  30. package/dist/{production/instrumentation-CMVbvxj9.d.ts → development/instrumentation-DlJ2QV7d.d.ts} +73 -21
  31. package/dist/development/lib/types/internal.d.mts +2 -2
  32. package/dist/development/lib/types/internal.d.ts +2 -2
  33. package/dist/development/lib/types/internal.js +1 -1
  34. package/dist/development/lib/types/internal.mjs +1 -1
  35. package/dist/development/{register-D1WlEpq9.d.ts → register-Bsscfj79.d.ts} +1 -1
  36. package/dist/{production/register-D1WlEpq9.d.ts → development/register-Df8okEea.d.mts} +1 -1
  37. package/dist/production/{browser-CtktEGQs.d.ts → browser-CRsXgNrY.d.mts} +2 -2
  38. package/dist/{development/browser-CtktEGQs.d.ts → production/browser-wDl1FZEL.d.ts} +2 -2
  39. package/dist/production/{chunk-G5ZWO7Q6.mjs → chunk-23ZOHYE5.mjs} +81 -62
  40. package/dist/{development/chunk-7VLQJKNG.js → production/chunk-7YXKJMLN.js} +7 -7
  41. package/dist/production/{chunk-SPR7R4GU.mjs → chunk-GM3PW4GX.mjs} +362 -213
  42. package/dist/production/{chunk-UVEQGZIH.js → chunk-LCJTIOKZ.js} +314 -172
  43. package/dist/production/{chunk-LIOP3ILM.js → chunk-YBQJ3ABE.js} +146 -139
  44. package/dist/{development/context-BzhbVly6.d.mts → production/context-BQs41HrG.d.mts} +94 -42
  45. package/dist/{development/routeModules-Djumx26z.d.mts → production/data-BVUf681J.d.mts} +79 -46
  46. package/dist/production/{routeModules-Djumx26z.d.mts → data-BqZ2x964.d.ts} +89 -56
  47. package/dist/production/dom-export.d.mts +9 -9
  48. package/dist/production/dom-export.d.ts +9 -9
  49. package/dist/production/dom-export.js +37 -40
  50. package/dist/production/dom-export.mjs +12 -15
  51. package/dist/production/{index-react-server-client-CimaPp9o.d.ts → index-react-server-client-CSv-KZBk.d.ts} +123 -121
  52. package/dist/{development/index-react-server-client-WSaoxloq.d.mts → production/index-react-server-client-Ck_yZ1qL.d.mts} +102 -100
  53. package/dist/production/index-react-server-client.d.mts +3 -3
  54. package/dist/production/index-react-server-client.d.ts +3 -3
  55. package/dist/production/index-react-server-client.js +4 -4
  56. package/dist/production/index-react-server-client.mjs +2 -2
  57. package/dist/production/index-react-server.d.mts +107 -36
  58. package/dist/production/index-react-server.d.ts +107 -36
  59. package/dist/production/index-react-server.js +60 -33
  60. package/dist/production/index-react-server.mjs +60 -33
  61. package/dist/production/index.d.mts +11 -11
  62. package/dist/production/index.d.ts +11 -11
  63. package/dist/production/index.js +174 -155
  64. package/dist/production/index.mjs +3 -3
  65. package/dist/{development/instrumentation-CMVbvxj9.d.ts → production/instrumentation-DlJ2QV7d.d.ts} +73 -21
  66. package/dist/production/lib/types/internal.d.mts +2 -2
  67. package/dist/production/lib/types/internal.d.ts +2 -2
  68. package/dist/production/lib/types/internal.js +1 -1
  69. package/dist/production/lib/types/internal.mjs +1 -1
  70. package/dist/{development/register-aE9ob3TK.d.mts → production/register-Bsscfj79.d.ts} +1 -1
  71. package/dist/production/{register-aE9ob3TK.d.mts → register-Df8okEea.d.mts} +1 -1
  72. 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.14.1
2
+ * react-router v7.15.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -14,7 +14,7 @@
14
14
 
15
15
 
16
16
 
17
- var _chunk3SUPTI2Ujs = require('./chunk-3SUPTI2U.js');
17
+ var _chunk7YXKJMLNjs = require('./chunk-7YXKJMLN.js');
18
18
 
19
19
 
20
20
 
@@ -40,7 +40,7 @@ var _chunk3SUPTI2Ujs = require('./chunk-3SUPTI2U.js');
40
40
 
41
41
 
42
42
 
43
- var _chunkLIOP3ILMjs = require('./chunk-LIOP3ILM.js');
43
+ var _chunkYBQJ3ABEjs = require('./chunk-YBQJ3ABE.js');
44
44
 
45
45
 
46
46
 
@@ -149,7 +149,9 @@ var _chunkLIOP3ILMjs = require('./chunk-LIOP3ILM.js');
149
149
 
150
150
 
151
151
 
152
- var _chunkUVEQGZIHjs = require('./chunk-UVEQGZIH.js');
152
+
153
+
154
+ var _chunkLCJTIOKZjs = require('./chunk-LCJTIOKZ.js');
153
155
 
154
156
  // lib/dom/ssr/server.tsx
155
157
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -162,7 +164,7 @@ function ServerRouter({
162
164
  url = new URL(url);
163
165
  }
164
166
  let { manifest, routeModules, criticalCss, serverHandoffString } = context;
165
- let routes = _chunkUVEQGZIHjs.createServerRoutes.call(void 0,
167
+ let routes = _chunkLCJTIOKZjs.createServerRoutes.call(void 0,
166
168
  manifest.routes,
167
169
  routeModules,
168
170
  context.future,
@@ -175,7 +177,7 @@ function ServerRouter({
175
177
  let routeId = match.route.id;
176
178
  let route = routeModules[routeId];
177
179
  let manifestRoute = context.manifest.routes[routeId];
178
- if (route && manifestRoute && _chunkUVEQGZIHjs.shouldHydrateRouteLoader.call(void 0,
180
+ if (route && manifestRoute && _chunkLCJTIOKZjs.shouldHydrateRouteLoader.call(void 0,
179
181
  routeId,
180
182
  route.clientLoader,
181
183
  manifestRoute.hasLoader,
@@ -184,9 +186,11 @@ function ServerRouter({
184
186
  delete context.staticHandlerContext.loaderData[routeId];
185
187
  }
186
188
  }
187
- let router = _chunkLIOP3ILMjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
189
+ let router = _chunkYBQJ3ABEjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext, {
190
+ branches: context.branches
191
+ });
188
192
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
189
- _chunkUVEQGZIHjs.FrameworkContext.Provider,
193
+ _chunkLCJTIOKZjs.FrameworkContext.Provider,
190
194
  {
191
195
  value: {
192
196
  manifest,
@@ -201,8 +205,8 @@ function ServerRouter({
201
205
  renderMeta: context.renderMeta
202
206
  }
203
207
  },
204
- /* @__PURE__ */ React.createElement(_chunkUVEQGZIHjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
205
- _chunkLIOP3ILMjs.StaticRouterProvider,
208
+ /* @__PURE__ */ React.createElement(_chunkLCJTIOKZjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
209
+ _chunkYBQJ3ABEjs.StaticRouterProvider,
206
210
  {
207
211
  router,
208
212
  context: context.staticHandlerContext,
@@ -210,7 +214,7 @@ function ServerRouter({
210
214
  }
211
215
  ))
212
216
  ), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
213
- _chunkUVEQGZIHjs.StreamTransfer,
217
+ _chunkLCJTIOKZjs.StreamTransfer,
214
218
  {
215
219
  context,
216
220
  identifier: 0,
@@ -235,10 +239,9 @@ function createRoutesStub(routes, _context) {
235
239
  if (routerRef.current == null) {
236
240
  frameworkContextRef.current = {
237
241
  future: {
238
- unstable_passThroughRequests: _optionalChain([future, 'optionalAccess', _2 => _2.unstable_passThroughRequests]) === true,
239
- unstable_subResourceIntegrity: _optionalChain([future, 'optionalAccess', _3 => _3.unstable_subResourceIntegrity]) === true,
240
- v8_middleware: _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) === true,
241
- unstable_trailingSlashAwareDataRequests: _optionalChain([future, 'optionalAccess', _5 => _5.unstable_trailingSlashAwareDataRequests]) === true
242
+ v8_passThroughRequests: _optionalChain([future, 'optionalAccess', _2 => _2.v8_passThroughRequests]) === true,
243
+ v8_middleware: _optionalChain([future, 'optionalAccess', _3 => _3.v8_middleware]) === true,
244
+ unstable_trailingSlashAwareDataRequests: _optionalChain([future, 'optionalAccess', _4 => _4.unstable_trailingSlashAwareDataRequests]) === true
242
245
  },
243
246
  manifest: {
244
247
  routes: {},
@@ -254,18 +257,18 @@ function createRoutesStub(routes, _context) {
254
257
  let patched = processRoutes(
255
258
  // @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
256
259
  // types compared to `RouteObject`
257
- _chunkUVEQGZIHjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
258
- _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0, _chunkUVEQGZIHjs.RouterContextProvider)() : {},
260
+ _chunkLCJTIOKZjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
261
+ _context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _5 => _5.v8_middleware]) ? new (0, _chunkLCJTIOKZjs.RouterContextProvider)() : {},
259
262
  frameworkContextRef.current.manifest,
260
263
  frameworkContextRef.current.routeModules
261
264
  );
262
- routerRef.current = _chunkUVEQGZIHjs.createMemoryRouter.call(void 0, patched, {
265
+ routerRef.current = _chunkLCJTIOKZjs.createMemoryRouter.call(void 0, patched, {
263
266
  initialEntries,
264
267
  initialIndex,
265
268
  hydrationData
266
269
  });
267
270
  }
268
- return /* @__PURE__ */ React2.createElement(_chunkUVEQGZIHjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkUVEQGZIHjs.RouterProvider, { router: routerRef.current }));
271
+ return /* @__PURE__ */ React2.createElement(_chunkLCJTIOKZjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkLCJTIOKZjs.RouterProvider, { router: routerRef.current }));
269
272
  };
270
273
  }
271
274
  function processRoutes(routes, context, manifest, routeModules, parentId) {
@@ -279,9 +282,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
279
282
  id: route.id,
280
283
  path: route.path,
281
284
  index: route.index,
282
- Component: route.Component ? _chunkUVEQGZIHjs.withComponentProps.call(void 0, route.Component) : void 0,
283
- HydrateFallback: route.HydrateFallback ? _chunkUVEQGZIHjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
284
- ErrorBoundary: route.ErrorBoundary ? _chunkUVEQGZIHjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
285
+ Component: route.Component ? _chunkLCJTIOKZjs.withComponentProps.call(void 0, route.Component) : void 0,
286
+ HydrateFallback: route.HydrateFallback ? _chunkLCJTIOKZjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
287
+ ErrorBoundary: route.ErrorBoundary ? _chunkLCJTIOKZjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
285
288
  action: route.action ? (args) => route.action({ ...args, context }) : void 0,
286
289
  loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
287
290
  middleware: route.middleware ? route.middleware.map(
@@ -316,7 +319,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
316
319
  };
317
320
  manifest.routes[newRoute.id] = entryRoute;
318
321
  routeModules[route.id] = {
319
- default: newRoute.Component || _chunkUVEQGZIHjs.Outlet,
322
+ default: newRoute.Component || _chunkLCJTIOKZjs.Outlet,
320
323
  ErrorBoundary: newRoute.ErrorBoundary || void 0,
321
324
  handle: route.handle,
322
325
  links: route.links,
@@ -511,7 +514,7 @@ function myUnescape(value) {
511
514
  return result;
512
515
  }
513
516
  function warnOnceAboutExpiresCookie(name, expires) {
514
- _chunkUVEQGZIHjs.warnOnce.call(void 0,
517
+ _chunkLCJTIOKZjs.warnOnce.call(void 0,
515
518
  !expires,
516
519
  `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.`
517
520
  );
@@ -565,7 +568,7 @@ function serializeErrors(errors, serverMode) {
565
568
  let entries = Object.entries(errors);
566
569
  let serialized = {};
567
570
  for (let [key, val] of entries) {
568
- if (_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, val)) {
571
+ if (_chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, val)) {
569
572
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
570
573
  } else if (val instanceof Error) {
571
574
  let sanitized = sanitizeError(val, serverMode);
@@ -588,31 +591,50 @@ function serializeErrors(errors, serverMode) {
588
591
  return serialized;
589
592
  }
590
593
 
594
+ // lib/server-runtime/invariant.ts
595
+ function invariant2(value, message) {
596
+ if (value === false || value === null || typeof value === "undefined") {
597
+ console.error(
598
+ "The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
599
+ );
600
+ throw new Error(message);
601
+ }
602
+ }
603
+
591
604
  // lib/server-runtime/routeMatching.ts
592
- function matchServerRoutes(routes, pathname, basename) {
593
- let matches = _chunkUVEQGZIHjs.matchRoutes.call(void 0,
594
- routes,
605
+ function matchServerRoutes(manifest, dataRoutes, branches, pathname, basename) {
606
+ let matches = _chunkLCJTIOKZjs.matchRoutesImpl.call(void 0,
607
+ dataRoutes,
595
608
  pathname,
596
- basename
609
+ _nullishCoalesce(basename, () => ( "/")),
610
+ false,
611
+ branches
597
612
  );
598
613
  if (!matches) return null;
599
- return matches.map((match) => ({
600
- params: match.params,
601
- pathname: match.pathname,
602
- route: match.route
603
- }));
614
+ return matches.map((match) => {
615
+ let route = manifest[match.route.id];
616
+ invariant2(
617
+ route,
618
+ `Route with id "${match.route.id}" not found in manifest.`
619
+ );
620
+ return {
621
+ params: match.params,
622
+ pathname: match.pathname,
623
+ route
624
+ };
625
+ });
604
626
  }
605
627
 
606
628
  // lib/server-runtime/data.ts
607
629
  async function callRouteHandler(handler, args, future) {
608
630
  let result = await handler({
609
- request: future.unstable_passThroughRequests ? args.request : stripRoutesParam(stripIndexParam(args.request)),
610
- unstable_url: args.unstable_url,
631
+ request: future.v8_passThroughRequests ? args.request : stripRoutesParam(stripIndexParam(args.request)),
632
+ url: args.url,
611
633
  params: args.params,
612
634
  context: args.context,
613
- unstable_pattern: args.unstable_pattern
635
+ pattern: args.pattern
614
636
  });
615
- if (_chunkUVEQGZIHjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkUVEQGZIHjs.isRedirectStatusCode.call(void 0, result.init.status)) {
637
+ if (_chunkLCJTIOKZjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkLCJTIOKZjs.isRedirectStatusCode.call(void 0, result.init.status)) {
616
638
  throw new Response(null, result.init);
617
639
  }
618
640
  return result;
@@ -656,16 +678,6 @@ function stripRoutesParam(request) {
656
678
  return new Request(url.href, init);
657
679
  }
658
680
 
659
- // lib/server-runtime/invariant.ts
660
- function invariant2(value, message) {
661
- if (value === false || value === null || typeof value === "undefined") {
662
- console.error(
663
- "The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
664
- );
665
- throw new Error(message);
666
- }
667
- }
668
-
669
681
  // lib/server-runtime/dev.ts
670
682
  var globalDevServerHooksKey = "__reactRouterDevServerHooks";
671
683
  function setDevServerHooks(devServerHooks) {
@@ -677,7 +689,7 @@ function getDevServerHooks() {
677
689
  function getBuildTimeHeader(request, headerName) {
678
690
  if (typeof process !== "undefined") {
679
691
  try {
680
- if (_optionalChain([process, 'access', _7 => _7.env, 'optionalAccess', _8 => _8.IS_RR_BUILD_REQUEST]) === "yes") {
692
+ if (process.env.hasOwnProperty("IS_RR_BUILD_REQUEST") && process.env.IS_RR_BUILD_REQUEST === "yes") {
681
693
  return request.headers.get(headerName);
682
694
  }
683
695
  } catch (e) {
@@ -700,12 +712,6 @@ function groupRoutesByParentId(manifest) {
700
712
  });
701
713
  return routes;
702
714
  }
703
- function createRoutes(manifest, parentId = "", routesByParentId = groupRoutesByParentId(manifest)) {
704
- return (routesByParentId[parentId] || []).map((route) => ({
705
- ...route,
706
- children: createRoutes(manifest, route.id, routesByParentId)
707
- }));
708
- }
709
715
  function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesByParentId = groupRoutesByParentId(manifest)) {
710
716
  return (routesByParentId[parentId] || []).map((route) => {
711
717
  let commonRoute = {
@@ -731,17 +737,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
731
737
  controller.close();
732
738
  }
733
739
  });
734
- let decoded = await _chunkUVEQGZIHjs.decodeViaTurboStream.call(void 0, stream, global);
740
+ let decoded = await _chunkLCJTIOKZjs.decodeViaTurboStream.call(void 0, stream, global);
735
741
  let data2 = decoded.value;
736
- if (data2 && _chunkUVEQGZIHjs.SingleFetchRedirectSymbol in data2) {
737
- let result = data2[_chunkUVEQGZIHjs.SingleFetchRedirectSymbol];
742
+ if (data2 && _chunkLCJTIOKZjs.SingleFetchRedirectSymbol in data2) {
743
+ let result = data2[_chunkLCJTIOKZjs.SingleFetchRedirectSymbol];
738
744
  let init = { status: result.status };
739
745
  if (result.reload) {
740
- throw _chunkUVEQGZIHjs.redirectDocument.call(void 0, result.redirect, init);
746
+ throw _chunkLCJTIOKZjs.redirectDocument.call(void 0, result.redirect, init);
741
747
  } else if (result.replace) {
742
- throw _chunkUVEQGZIHjs.replace.call(void 0, result.redirect, init);
748
+ throw _chunkLCJTIOKZjs.replace.call(void 0, result.redirect, init);
743
749
  } else {
744
- throw _chunkUVEQGZIHjs.redirect.call(void 0, result.redirect, init);
750
+ throw _chunkLCJTIOKZjs.redirect.call(void 0, result.redirect, init);
745
751
  }
746
752
  } else {
747
753
  invariant2(
@@ -784,7 +790,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
784
790
 
785
791
  // lib/server-runtime/serverHandoff.ts
786
792
  function createServerHandoffString(serverHandoff) {
787
- return _chunkUVEQGZIHjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
793
+ return _chunkLCJTIOKZjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
788
794
  }
789
795
 
790
796
  // lib/server-runtime/headers.ts
@@ -931,7 +937,7 @@ function isAllowedOrigin(originDomain, allowedActionOrigins = []) {
931
937
  }
932
938
  function parseHostHeader(headers) {
933
939
  let forwardedHostHeader = headers.get("x-forwarded-host");
934
- let forwardedHostValue = _optionalChain([forwardedHostHeader, 'optionalAccess', _9 => _9.split, 'call', _10 => _10(","), 'access', _11 => _11[0], 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]);
940
+ let forwardedHostValue = _optionalChain([forwardedHostHeader, 'optionalAccess', _6 => _6.split, 'call', _7 => _7(","), 'access', _8 => _8[0], 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
935
941
  let hostHeader = headers.get("host");
936
942
  return forwardedHostValue ? {
937
943
  type: "x-forwarded-host",
@@ -947,19 +953,19 @@ function getNormalizedPath(request, basename, future) {
947
953
  basename = basename || "/";
948
954
  let url = new URL(request.url);
949
955
  let pathname = url.pathname;
950
- if (_optionalChain([future, 'optionalAccess', _14 => _14.unstable_trailingSlashAwareDataRequests])) {
956
+ if (_optionalChain([future, 'optionalAccess', _11 => _11.unstable_trailingSlashAwareDataRequests])) {
951
957
  if (pathname.endsWith("/_.data")) {
952
958
  pathname = pathname.replace(/_\.data$/, "");
953
959
  } else {
954
960
  pathname = pathname.replace(/\.data$/, "");
955
961
  }
956
962
  } else {
957
- if (_chunkUVEQGZIHjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
963
+ if (_chunkLCJTIOKZjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
958
964
  pathname = basename;
959
965
  } else if (pathname.endsWith(".data")) {
960
966
  pathname = pathname.replace(/\.data$/, "");
961
967
  }
962
- if (_chunkUVEQGZIHjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
968
+ if (_chunkLCJTIOKZjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
963
969
  pathname = pathname.slice(0, -1);
964
970
  }
965
971
  }
@@ -979,7 +985,7 @@ function getNormalizedPath(request, basename, future) {
979
985
 
980
986
  // lib/server-runtime/single-fetch.ts
981
987
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
982
- ..._chunkUVEQGZIHjs.NO_BODY_STATUS_CODES,
988
+ ..._chunkLCJTIOKZjs.NO_BODY_STATUS_CODES,
983
989
  304
984
990
  ]);
985
991
  async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
@@ -992,7 +998,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
992
998
  } catch (e) {
993
999
  return handleQueryError(new Error("Bad Request"), 400);
994
1000
  }
995
- let handlerRequest = build.future.unstable_passThroughRequests ? request : new Request(handlerUrl, {
1001
+ let handlerRequest = build.future.v8_passThroughRequests ? request : new Request(handlerUrl, {
996
1002
  method: request.method,
997
1003
  body: request.body,
998
1004
  headers: request.headers,
@@ -1011,14 +1017,14 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
1011
1017
  return handleQueryError(error);
1012
1018
  }
1013
1019
  } : void 0,
1014
- unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1020
+ normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1015
1021
  });
1016
1022
  return handleQueryResult(result);
1017
1023
  } catch (error) {
1018
1024
  return handleQueryError(error);
1019
1025
  }
1020
1026
  function handleQueryResult(result) {
1021
- return _chunkUVEQGZIHjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
1027
+ return _chunkLCJTIOKZjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
1022
1028
  }
1023
1029
  function handleQueryError(error, status = 500) {
1024
1030
  handleError(error);
@@ -1030,12 +1036,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
1030
1036
  }
1031
1037
  function staticContextToResponse(context) {
1032
1038
  let headers = getDocumentHeaders(context, build);
1033
- if (_chunkUVEQGZIHjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
1039
+ if (_chunkLCJTIOKZjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
1034
1040
  return new Response(null, { status: context.statusCode, headers });
1035
1041
  }
1036
1042
  if (context.errors) {
1037
1043
  Object.values(context.errors).forEach((err) => {
1038
- if (!_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1044
+ if (!_chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1039
1045
  handleError(err);
1040
1046
  }
1041
1047
  });
@@ -1060,7 +1066,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
1060
1066
  let routesParam = new URL(request.url).searchParams.get("_routes");
1061
1067
  let loadRouteIds = routesParam ? new Set(routesParam.split(",")) : null;
1062
1068
  try {
1063
- let handlerRequest = build.future.unstable_passThroughRequests ? request : new Request(handlerUrl, {
1069
+ let handlerRequest = build.future.v8_passThroughRequests ? request : new Request(handlerUrl, {
1064
1070
  headers: request.headers,
1065
1071
  signal: request.signal
1066
1072
  });
@@ -1076,14 +1082,14 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
1076
1082
  return handleQueryError(error);
1077
1083
  }
1078
1084
  } : void 0,
1079
- unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1085
+ normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1080
1086
  });
1081
1087
  return handleQueryResult(result);
1082
1088
  } catch (error) {
1083
1089
  return handleQueryError(error);
1084
1090
  }
1085
1091
  function handleQueryResult(result) {
1086
- return _chunkUVEQGZIHjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
1092
+ return _chunkLCJTIOKZjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
1087
1093
  }
1088
1094
  function handleQueryError(error) {
1089
1095
  handleError(error);
@@ -1095,12 +1101,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
1095
1101
  }
1096
1102
  function staticContextToResponse(context) {
1097
1103
  let headers = getDocumentHeaders(context, build);
1098
- if (_chunkUVEQGZIHjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
1104
+ if (_chunkLCJTIOKZjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
1099
1105
  return new Response(null, { status: context.statusCode, headers });
1100
1106
  }
1101
1107
  if (context.errors) {
1102
1108
  Object.values(context.errors).forEach((err) => {
1103
- if (!_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1109
+ if (!_chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1104
1110
  handleError(err);
1105
1111
  }
1106
1112
  });
@@ -1164,15 +1170,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
1164
1170
  headers.delete("Location");
1165
1171
  headers.set("Content-Type", "text/x-script");
1166
1172
  return generateSingleFetchResponse(request, build, serverMode, {
1167
- result: request.method === "GET" ? { [_chunkUVEQGZIHjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1173
+ result: request.method === "GET" ? { [_chunkLCJTIOKZjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
1168
1174
  headers,
1169
- status: _chunkUVEQGZIHjs.SINGLE_FETCH_REDIRECT_STATUS
1175
+ status: _chunkLCJTIOKZjs.SINGLE_FETCH_REDIRECT_STATUS
1170
1176
  });
1171
1177
  }
1172
1178
  function getSingleFetchRedirect(status, headers, basename) {
1173
1179
  let redirect2 = headers.get("Location");
1174
1180
  if (basename) {
1175
- redirect2 = _chunkUVEQGZIHjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1181
+ redirect2 = _chunkLCJTIOKZjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
1176
1182
  }
1177
1183
  return {
1178
1184
  redirect: redirect2,
@@ -1209,7 +1215,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1209
1215
  clearTimeout(timeoutId);
1210
1216
  requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
1211
1217
  };
1212
- return _chunkUVEQGZIHjs.encode.call(void 0, data2, {
1218
+ return _chunkLCJTIOKZjs.encode.call(void 0, data2, {
1213
1219
  signal: controller.signal,
1214
1220
  onComplete: cleanupCallbacks,
1215
1221
  plugins: [
@@ -1218,12 +1224,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1218
1224
  let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
1219
1225
  return ["SanitizedError", name, message, stack];
1220
1226
  }
1221
- if (value instanceof _chunkUVEQGZIHjs.ErrorResponseImpl) {
1227
+ if (value instanceof _chunkLCJTIOKZjs.ErrorResponseImpl) {
1222
1228
  let { data: data3, status, statusText } = value;
1223
1229
  return ["ErrorResponse", data3, status, statusText];
1224
1230
  }
1225
- if (value && typeof value === "object" && _chunkUVEQGZIHjs.SingleFetchRedirectSymbol in value) {
1226
- return ["SingleFetchRedirect", value[_chunkUVEQGZIHjs.SingleFetchRedirectSymbol]];
1231
+ if (value && typeof value === "object" && _chunkLCJTIOKZjs.SingleFetchRedirectSymbol in value) {
1232
+ return ["SingleFetchRedirect", value[_chunkLCJTIOKZjs.SingleFetchRedirectSymbol]];
1227
1233
  }
1228
1234
  }
1229
1235
  ],
@@ -1243,18 +1249,18 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
1243
1249
 
1244
1250
  // lib/server-runtime/server.ts
1245
1251
  function derive(build, mode) {
1246
- let routes = createRoutes(build.routes);
1247
1252
  let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
1248
1253
  let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
1249
- let staticHandler = _chunkUVEQGZIHjs.createStaticHandler.call(void 0, dataRoutes, {
1254
+ let staticHandler = _chunkLCJTIOKZjs.createStaticHandler.call(void 0, dataRoutes, {
1250
1255
  basename: build.basename,
1251
- unstable_instrumentations: build.entry.module.unstable_instrumentations
1256
+ instrumentations: build.entry.module.instrumentations,
1257
+ future: build.future
1252
1258
  });
1253
1259
  let errorHandler = build.entry.module.handleError || ((error, { request }) => {
1254
1260
  if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
1255
1261
  console.error(
1256
1262
  // @ts-expect-error This is "private" from users but intended for internal use
1257
- _chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1263
+ _chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
1258
1264
  );
1259
1265
  }
1260
1266
  });
@@ -1263,7 +1269,7 @@ function derive(build, mode) {
1263
1269
  let loadContext;
1264
1270
  let handleError = (error) => {
1265
1271
  if (mode === "development" /* Development */) {
1266
- _optionalChain([getDevServerHooks, 'call', _15 => _15(), 'optionalAccess', _16 => _16.processRequestError, 'optionalCall', _17 => _17(error)]);
1272
+ _optionalChain([getDevServerHooks, 'call', _12 => _12(), 'optionalAccess', _13 => _13.processRequestError, 'optionalCall', _14 => _14(error)]);
1267
1273
  }
1268
1274
  errorHandler(error, {
1269
1275
  context: loadContext,
@@ -1272,14 +1278,14 @@ function derive(build, mode) {
1272
1278
  });
1273
1279
  };
1274
1280
  if (build.future.v8_middleware) {
1275
- if (initialContext && !(initialContext instanceof _chunkUVEQGZIHjs.RouterContextProvider)) {
1281
+ if (initialContext && !(initialContext instanceof _chunkLCJTIOKZjs.RouterContextProvider)) {
1276
1282
  let error = new Error(
1277
1283
  "Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
1278
1284
  );
1279
1285
  handleError(error);
1280
1286
  return returnLastResortErrorResponse(error, serverMode);
1281
1287
  }
1282
- loadContext = initialContext || new (0, _chunkUVEQGZIHjs.RouterContextProvider)();
1288
+ loadContext = initialContext || new (0, _chunkLCJTIOKZjs.RouterContextProvider)();
1283
1289
  } else {
1284
1290
  loadContext = initialContext || {};
1285
1291
  }
@@ -1293,10 +1299,10 @@ function derive(build, mode) {
1293
1299
  if (!build.ssr) {
1294
1300
  let decodedPath = decodeURI(normalizedPathname);
1295
1301
  if (build.basename && build.basename !== "/") {
1296
- let strippedPath = _chunkUVEQGZIHjs.stripBasename.call(void 0, decodedPath, build.basename);
1302
+ let strippedPath = _chunkLCJTIOKZjs.stripBasename.call(void 0, decodedPath, build.basename);
1297
1303
  if (strippedPath == null) {
1298
1304
  errorHandler(
1299
- new (0, _chunkUVEQGZIHjs.ErrorResponseImpl)(
1305
+ new (0, _chunkLCJTIOKZjs.ErrorResponseImpl)(
1300
1306
  404,
1301
1307
  "Not Found",
1302
1308
  `Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
@@ -1319,7 +1325,7 @@ function derive(build, mode) {
1319
1325
  } else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
1320
1326
  if (requestUrl.pathname.endsWith(".data")) {
1321
1327
  errorHandler(
1322
- new (0, _chunkUVEQGZIHjs.ErrorResponseImpl)(
1328
+ new (0, _chunkLCJTIOKZjs.ErrorResponseImpl)(
1323
1329
  404,
1324
1330
  "Not Found",
1325
1331
  `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.`
@@ -1339,30 +1345,36 @@ function derive(build, mode) {
1339
1345
  }
1340
1346
  }
1341
1347
  }
1342
- let manifestUrl = _chunkUVEQGZIHjs.getManifestPath.call(void 0,
1348
+ let manifestUrl = _chunkLCJTIOKZjs.getManifestPath.call(void 0,
1343
1349
  build.routeDiscovery.manifestPath,
1344
1350
  build.basename
1345
1351
  );
1346
1352
  if (requestUrl.pathname === manifestUrl) {
1347
1353
  try {
1348
- let res = await handleManifestRequest(build, routes, requestUrl);
1354
+ let res = await handleManifestRequest(
1355
+ build,
1356
+ staticHandler.dataRoutes,
1357
+ staticHandler._internalRouteBranches,
1358
+ requestUrl
1359
+ );
1349
1360
  return res;
1350
1361
  } catch (e) {
1351
1362
  handleError(e);
1352
1363
  return new Response("Unknown Server Error", { status: 500 });
1353
1364
  }
1354
1365
  }
1355
- let matches = matchServerRoutes(routes, normalizedPathname, build.basename);
1366
+ let matches = matchServerRoutes(
1367
+ build.routes,
1368
+ staticHandler.dataRoutes,
1369
+ staticHandler._internalRouteBranches,
1370
+ normalizedPathname,
1371
+ build.basename
1372
+ );
1356
1373
  if (matches && matches.length > 0) {
1357
1374
  Object.assign(params, matches[0].params);
1358
1375
  }
1359
1376
  let response;
1360
1377
  if (requestUrl.pathname.endsWith(".data")) {
1361
- let singleFetchMatches = matchServerRoutes(
1362
- routes,
1363
- normalizedPathname,
1364
- build.basename
1365
- );
1366
1378
  response = await handleSingleFetchRequest(
1367
1379
  serverMode,
1368
1380
  build,
@@ -1372,7 +1384,7 @@ function derive(build, mode) {
1372
1384
  loadContext,
1373
1385
  handleError
1374
1386
  );
1375
- if (_chunkUVEQGZIHjs.isRedirectResponse.call(void 0, response)) {
1387
+ if (_chunkLCJTIOKZjs.isRedirectResponse.call(void 0, response)) {
1376
1388
  response = generateSingleFetchRedirectResponse(
1377
1389
  response,
1378
1390
  request,
@@ -1383,10 +1395,10 @@ function derive(build, mode) {
1383
1395
  if (build.entry.module.handleDataRequest) {
1384
1396
  response = await build.entry.module.handleDataRequest(response, {
1385
1397
  context: loadContext,
1386
- params: singleFetchMatches ? singleFetchMatches[0].params : {},
1398
+ params: matches ? matches[0].params : {},
1387
1399
  request
1388
1400
  });
1389
- if (_chunkUVEQGZIHjs.isRedirectResponse.call(void 0, response)) {
1401
+ if (_chunkLCJTIOKZjs.isRedirectResponse.call(void 0, response)) {
1390
1402
  response = generateSingleFetchRedirectResponse(
1391
1403
  response,
1392
1404
  request,
@@ -1410,8 +1422,8 @@ function derive(build, mode) {
1410
1422
  let criticalCss = void 0;
1411
1423
  if (build.unstable_getCriticalCss) {
1412
1424
  criticalCss = await build.unstable_getCriticalCss({ pathname });
1413
- } else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call', _18 => _18(), 'optionalAccess', _19 => _19.getCriticalCss])) {
1414
- criticalCss = await _optionalChain([getDevServerHooks, 'call', _20 => _20(), 'optionalAccess', _21 => _21.getCriticalCss, 'optionalCall', _22 => _22(pathname)]);
1425
+ } else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call', _15 => _15(), 'optionalAccess', _16 => _16.getCriticalCss])) {
1426
+ criticalCss = await _optionalChain([getDevServerHooks, 'call', _17 => _17(), 'optionalAccess', _18 => _18.getCriticalCss, 'optionalCall', _19 => _19(pathname)]);
1415
1427
  }
1416
1428
  response = await handleDocumentRequest(
1417
1429
  serverMode,
@@ -1433,15 +1445,13 @@ function derive(build, mode) {
1433
1445
  }
1434
1446
  return response;
1435
1447
  };
1436
- if (build.entry.module.unstable_instrumentations) {
1437
- requestHandler = _chunkUVEQGZIHjs.instrumentHandler.call(void 0,
1448
+ if (build.entry.module.instrumentations) {
1449
+ requestHandler = _chunkLCJTIOKZjs.instrumentHandler.call(void 0,
1438
1450
  requestHandler,
1439
- build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
1451
+ build.entry.module.instrumentations.map((i) => i.handler).filter(Boolean)
1440
1452
  );
1441
1453
  }
1442
1454
  return {
1443
- routes,
1444
- dataRoutes,
1445
1455
  serverMode,
1446
1456
  staticHandler,
1447
1457
  errorHandler,
@@ -1450,7 +1460,6 @@ function derive(build, mode) {
1450
1460
  }
1451
1461
  var createRequestHandler = (build, mode) => {
1452
1462
  let _build;
1453
- let routes;
1454
1463
  let serverMode;
1455
1464
  let staticHandler;
1456
1465
  let errorHandler;
@@ -1459,14 +1468,12 @@ var createRequestHandler = (build, mode) => {
1459
1468
  _build = typeof build === "function" ? await build() : build;
1460
1469
  if (typeof build === "function") {
1461
1470
  let derived = derive(_build, mode);
1462
- routes = derived.routes;
1463
1471
  serverMode = derived.serverMode;
1464
1472
  staticHandler = derived.staticHandler;
1465
1473
  errorHandler = derived.errorHandler;
1466
1474
  _requestHandler = derived.requestHandler;
1467
- } else if (!routes || !serverMode || !staticHandler || !errorHandler || !_requestHandler) {
1475
+ } else if (!serverMode || !staticHandler || !errorHandler || !_requestHandler) {
1468
1476
  let derived = derive(_build, mode);
1469
- routes = derived.routes;
1470
1477
  serverMode = derived.serverMode;
1471
1478
  staticHandler = derived.staticHandler;
1472
1479
  errorHandler = derived.errorHandler;
@@ -1475,7 +1482,7 @@ var createRequestHandler = (build, mode) => {
1475
1482
  return _requestHandler(request, initialContext);
1476
1483
  };
1477
1484
  };
1478
- async function handleManifestRequest(build, routes, url) {
1485
+ async function handleManifestRequest(build, dataRoutes, branches, url) {
1479
1486
  if (build.assets.version !== url.searchParams.get("version")) {
1480
1487
  return new Response(null, {
1481
1488
  status: 204,
@@ -1484,6 +1491,12 @@ async function handleManifestRequest(build, routes, url) {
1484
1491
  }
1485
1492
  });
1486
1493
  }
1494
+ if (url.toString().length > _chunkLCJTIOKZjs.URL_LIMIT) {
1495
+ return new Response(null, {
1496
+ statusText: "Bad Request",
1497
+ status: 400
1498
+ });
1499
+ }
1487
1500
  let patches = {};
1488
1501
  if (url.searchParams.has("paths")) {
1489
1502
  let paths = /* @__PURE__ */ new Set();
@@ -1500,7 +1513,13 @@ async function handleManifestRequest(build, routes, url) {
1500
1513
  });
1501
1514
  });
1502
1515
  for (let path of paths) {
1503
- let matches = matchServerRoutes(routes, path, build.basename);
1516
+ let matches = matchServerRoutes(
1517
+ build.routes,
1518
+ dataRoutes,
1519
+ branches,
1520
+ path,
1521
+ build.basename
1522
+ );
1504
1523
  if (matches) {
1505
1524
  for (let match of matches) {
1506
1525
  let routeId = match.route.id;
@@ -1559,7 +1578,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1559
1578
  generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
1560
1579
  try {
1561
1580
  let innerResult = await query(request);
1562
- if (!_chunkUVEQGZIHjs.isResponse.call(void 0, innerResult)) {
1581
+ if (!_chunkLCJTIOKZjs.isResponse.call(void 0, innerResult)) {
1563
1582
  innerResult = await renderHtml(innerResult, isSpaMode);
1564
1583
  }
1565
1584
  return innerResult;
@@ -1568,9 +1587,9 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1568
1587
  return new Response(null, { status: 500 });
1569
1588
  }
1570
1589
  } : void 0,
1571
- unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1590
+ normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1572
1591
  });
1573
- if (!_chunkUVEQGZIHjs.isResponse.call(void 0, result)) {
1592
+ if (!_chunkLCJTIOKZjs.isResponse.call(void 0, result)) {
1574
1593
  result = await renderHtml(result, isSpaMode);
1575
1594
  }
1576
1595
  return result;
@@ -1585,7 +1604,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1585
1604
  }
1586
1605
  if (context.errors) {
1587
1606
  Object.values(context.errors).forEach((err) => {
1588
- if (!_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1607
+ if (!_chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, err) || err.error) {
1589
1608
  handleError(err);
1590
1609
  }
1591
1610
  });
@@ -1605,6 +1624,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1605
1624
  };
1606
1625
  let entryContext = {
1607
1626
  manifest: build.assets,
1627
+ branches: staticHandler._internalRouteBranches,
1608
1628
  routeModules: createEntryRouteModules(build.routes),
1609
1629
  staticHandlerContext: context,
1610
1630
  criticalCss,
@@ -1637,10 +1657,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1637
1657
  } catch (error) {
1638
1658
  handleError(error);
1639
1659
  let errorForSecondRender = error;
1640
- if (_chunkUVEQGZIHjs.isResponse.call(void 0, error)) {
1660
+ if (_chunkLCJTIOKZjs.isResponse.call(void 0, error)) {
1641
1661
  try {
1642
1662
  let data2 = await unwrapResponse(error);
1643
- errorForSecondRender = new (0, _chunkUVEQGZIHjs.ErrorResponseImpl)(
1663
+ errorForSecondRender = new (0, _chunkLCJTIOKZjs.ErrorResponseImpl)(
1644
1664
  error.status,
1645
1665
  error.statusText,
1646
1666
  data2
@@ -1648,7 +1668,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
1648
1668
  } catch (e) {
1649
1669
  }
1650
1670
  }
1651
- context = _chunkUVEQGZIHjs.getStaticContextFromError.call(void 0,
1671
+ context = _chunkLCJTIOKZjs.getStaticContextFromError.call(void 0,
1652
1672
  staticHandler.dataRoutes,
1653
1673
  context,
1654
1674
  errorForSecondRender
@@ -1701,14 +1721,14 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1701
1721
  return handleQueryRouteError(error);
1702
1722
  }
1703
1723
  } : void 0,
1704
- unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1724
+ normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
1705
1725
  });
1706
1726
  return handleQueryRouteResult(result);
1707
1727
  } catch (error) {
1708
1728
  return handleQueryRouteError(error);
1709
1729
  }
1710
1730
  function handleQueryRouteResult(result) {
1711
- if (_chunkUVEQGZIHjs.isResponse.call(void 0, result)) {
1731
+ if (_chunkLCJTIOKZjs.isResponse.call(void 0, result)) {
1712
1732
  return result;
1713
1733
  }
1714
1734
  if (typeof result === "string") {
@@ -1717,10 +1737,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
1717
1737
  return Response.json(result);
1718
1738
  }
1719
1739
  function handleQueryRouteError(error) {
1720
- if (_chunkUVEQGZIHjs.isResponse.call(void 0, error)) {
1740
+ if (_chunkLCJTIOKZjs.isResponse.call(void 0, error)) {
1721
1741
  return error;
1722
1742
  }
1723
- if (_chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, error)) {
1743
+ if (_chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, error)) {
1724
1744
  handleError(error);
1725
1745
  return errorResponseToJson(error, serverMode);
1726
1746
  }
@@ -1814,7 +1834,7 @@ function createSessionStorage({
1814
1834
  updateData,
1815
1835
  deleteData
1816
1836
  }) {
1817
- let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _23 => _23.name]) || "__session", cookieArg);
1837
+ let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _20 => _20.name]) || "__session", cookieArg);
1818
1838
  warnOnceAboutSigningSessionCookie(cookie);
1819
1839
  return {
1820
1840
  async getSession(cookieHeader, options) {
@@ -1824,7 +1844,7 @@ function createSessionStorage({
1824
1844
  },
1825
1845
  async commitSession(session, options) {
1826
1846
  let { id, data: data2 } = session;
1827
- let expires = _optionalChain([options, 'optionalAccess', _24 => _24.maxAge]) != null ? new Date(Date.now() + options.maxAge * 1e3) : _optionalChain([options, 'optionalAccess', _25 => _25.expires]) != null ? options.expires : cookie.expires;
1847
+ let expires = _optionalChain([options, 'optionalAccess', _21 => _21.maxAge]) != null ? new Date(Date.now() + options.maxAge * 1e3) : _optionalChain([options, 'optionalAccess', _22 => _22.expires]) != null ? options.expires : cookie.expires;
1828
1848
  if (id) {
1829
1849
  await updateData(id, data2, expires);
1830
1850
  } else {
@@ -1843,7 +1863,7 @@ function createSessionStorage({
1843
1863
  };
1844
1864
  }
1845
1865
  function warnOnceAboutSigningSessionCookie(cookie) {
1846
- _chunkUVEQGZIHjs.warnOnce.call(void 0,
1866
+ _chunkLCJTIOKZjs.warnOnce.call(void 0,
1847
1867
  cookie.isSigned,
1848
1868
  `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.`
1849
1869
  );
@@ -1851,7 +1871,7 @@ function warnOnceAboutSigningSessionCookie(cookie) {
1851
1871
 
1852
1872
  // lib/server-runtime/sessions/cookieStorage.ts
1853
1873
  function createCookieSessionStorage({ cookie: cookieArg } = {}) {
1854
- let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _26 => _26.name]) || "__session", cookieArg);
1874
+ let cookie = isCookie(cookieArg) ? cookieArg : createCookie(_optionalChain([cookieArg, 'optionalAccess', _23 => _23.name]) || "__session", cookieArg);
1855
1875
  warnOnceAboutSigningSessionCookie(cookie);
1856
1876
  return {
1857
1877
  async getSession(cookieHeader, options) {
@@ -1915,7 +1935,7 @@ function href(path, ...args) {
1915
1935
  // same regex as in .\router\utils.ts: compilePath().
1916
1936
  (_, param, questionMark) => {
1917
1937
  const isRequired = questionMark === void 0;
1918
- const value = _optionalChain([params, 'optionalAccess', _27 => _27[param]]);
1938
+ const value = _optionalChain([params, 'optionalAccess', _24 => _24[param]]);
1919
1939
  if (isRequired && value === void 0) {
1920
1940
  throw new Error(
1921
1941
  `Path '${path}' requires param '${param}' but it was not provided`
@@ -1925,7 +1945,7 @@ function href(path, ...args) {
1925
1945
  }
1926
1946
  );
1927
1947
  if (path.endsWith("*")) {
1928
- const value = _optionalChain([params, 'optionalAccess', _28 => _28["*"]]);
1948
+ const value = _optionalChain([params, 'optionalAccess', _25 => _25["*"]]);
1929
1949
  if (value !== void 0) {
1930
1950
  result += "/" + value;
1931
1951
  }
@@ -2124,14 +2144,14 @@ async function routeRSCServerRequest({
2124
2144
  const payload = await createFromReadableStream(
2125
2145
  detectRedirectResponse.body
2126
2146
  );
2127
- if (serverResponse.status === _chunkUVEQGZIHjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2147
+ if (serverResponse.status === _chunkLCJTIOKZjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
2128
2148
  const headers2 = new Headers(serverResponse.headers);
2129
2149
  headers2.delete("Content-Encoding");
2130
2150
  headers2.delete("Content-Length");
2131
2151
  headers2.delete("Content-Type");
2132
2152
  headers2.delete("X-Remix-Response");
2133
2153
  headers2.set("Location", payload.location);
2134
- return new Response(_optionalChain([serverResponseB, 'optionalAccess', _29 => _29.body]) || "", {
2154
+ return new Response(_optionalChain([serverResponseB, 'optionalAccess', _26 => _26.body]) || "", {
2135
2155
  headers: headers2,
2136
2156
  status: payload.status,
2137
2157
  statusText: serverResponse.statusText
@@ -2143,11 +2163,11 @@ async function routeRSCServerRequest({
2143
2163
  let html = await renderHTML(getPayload, {
2144
2164
  onError(error) {
2145
2165
  if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
2146
- renderRedirect = _chunkUVEQGZIHjs.decodeRedirectErrorDigest.call(void 0, error.digest);
2166
+ renderRedirect = _chunkLCJTIOKZjs.decodeRedirectErrorDigest.call(void 0, error.digest);
2147
2167
  if (renderRedirect) {
2148
2168
  return error.digest;
2149
2169
  }
2150
- let routeErrorResponse = _chunkUVEQGZIHjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
2170
+ let routeErrorResponse = _chunkLCJTIOKZjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
2151
2171
  if (routeErrorResponse) {
2152
2172
  renderError = routeErrorResponse;
2153
2173
  status = routeErrorResponse.status;
@@ -2179,7 +2199,7 @@ async function routeRSCServerRequest({
2179
2199
  if (renderRedirect) {
2180
2200
  controller.enqueue(
2181
2201
  new TextEncoder().encode(
2182
- `<meta http-equiv="refresh" content="0;url=${_chunkUVEQGZIHjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
2202
+ `<meta http-equiv="refresh" content="0;url=${_chunkLCJTIOKZjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
2183
2203
  )
2184
2204
  );
2185
2205
  }
@@ -2192,7 +2212,7 @@ async function routeRSCServerRequest({
2192
2212
  headers
2193
2213
  });
2194
2214
  }
2195
- if (!_optionalChain([serverResponseB, 'optionalAccess', _30 => _30.body])) {
2215
+ if (!_optionalChain([serverResponseB, 'optionalAccess', _27 => _27.body])) {
2196
2216
  throw new Error("Failed to clone server response");
2197
2217
  }
2198
2218
  const body2 = html.pipeThrough(injectRSCPayload(serverResponseB.body)).pipeThrough(redirectTransform);
@@ -2215,7 +2235,7 @@ async function routeRSCServerRequest({
2215
2235
  }
2216
2236
  try {
2217
2237
  reason = _nullishCoalesce(renderError, () => ( reason));
2218
- let [status, statusText] = _chunkUVEQGZIHjs.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
2238
+ let [status, statusText] = _chunkLCJTIOKZjs.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
2219
2239
  let retryRedirect;
2220
2240
  let reactHeaders = new Headers();
2221
2241
  const html = await renderHTML(
@@ -2252,11 +2272,11 @@ async function routeRSCServerRequest({
2252
2272
  {
2253
2273
  onError(error) {
2254
2274
  if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
2255
- retryRedirect = _chunkUVEQGZIHjs.decodeRedirectErrorDigest.call(void 0, error.digest);
2275
+ retryRedirect = _chunkLCJTIOKZjs.decodeRedirectErrorDigest.call(void 0, error.digest);
2256
2276
  if (retryRedirect) {
2257
2277
  return error.digest;
2258
2278
  }
2259
- let routeErrorResponse = _chunkUVEQGZIHjs.decodeRouteErrorResponseDigest.call(void 0,
2279
+ let routeErrorResponse = _chunkLCJTIOKZjs.decodeRouteErrorResponseDigest.call(void 0,
2260
2280
  error.digest
2261
2281
  );
2262
2282
  if (routeErrorResponse) {
@@ -2290,7 +2310,7 @@ async function routeRSCServerRequest({
2290
2310
  if (retryRedirect) {
2291
2311
  controller.enqueue(
2292
2312
  new TextEncoder().encode(
2293
- `<meta http-equiv="refresh" content="0;url=${_chunkUVEQGZIHjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
2313
+ `<meta http-equiv="refresh" content="0;url=${_chunkLCJTIOKZjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
2294
2314
  )
2295
2315
  );
2296
2316
  }
@@ -2303,7 +2323,7 @@ async function routeRSCServerRequest({
2303
2323
  headers
2304
2324
  });
2305
2325
  }
2306
- if (!_optionalChain([serverResponseB, 'optionalAccess', _31 => _31.body])) {
2326
+ if (!_optionalChain([serverResponseB, 'optionalAccess', _28 => _28.body])) {
2307
2327
  throw new Error("Failed to clone server response");
2308
2328
  }
2309
2329
  const body2 = html.pipeThrough(injectRSCPayload(serverResponseB.body)).pipeThrough(retryRedirectTransform);
@@ -2331,7 +2351,7 @@ function RSCStaticRouter({ getPayload }) {
2331
2351
  if (payload.type !== "render") return null;
2332
2352
  let patchedLoaderData = { ...payload.loaderData };
2333
2353
  for (const match of payload.matches) {
2334
- if (_chunkUVEQGZIHjs.shouldHydrateRouteLoader.call(void 0,
2354
+ if (_chunkLCJTIOKZjs.shouldHydrateRouteLoader.call(void 0,
2335
2355
  match.id,
2336
2356
  match.clientLoader,
2337
2357
  match.hasLoader,
@@ -2371,7 +2391,7 @@ function RSCStaticRouter({ getPayload }) {
2371
2391
  }
2372
2392
  }))
2373
2393
  };
2374
- const router = _chunkLIOP3ILMjs.createStaticRouter.call(void 0,
2394
+ const router = _chunkYBQJ3ABEjs.createStaticRouter.call(void 0,
2375
2395
  payload.matches.reduceRight((previous, match) => {
2376
2396
  const route = {
2377
2397
  id: match.id,
@@ -2398,10 +2418,9 @@ function RSCStaticRouter({ getPayload }) {
2398
2418
  // These flags have no runtime impact so can always be false. If we add
2399
2419
  // flags that drive runtime behavior they'll need to be proxied through.
2400
2420
  v8_middleware: false,
2401
- unstable_subResourceIntegrity: false,
2402
2421
  unstable_trailingSlashAwareDataRequests: true,
2403
2422
  // always on for RSC
2404
- unstable_passThroughRequests: true
2423
+ v8_passThroughRequests: true
2405
2424
  // always on for RSC
2406
2425
  },
2407
2426
  isSpaMode: false,
@@ -2420,10 +2439,10 @@ function RSCStaticRouter({ getPayload }) {
2420
2439
  mode: "lazy",
2421
2440
  manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
2422
2441
  },
2423
- routeModules: _chunk3SUPTI2Ujs.createRSCRouteModules.call(void 0, payload)
2442
+ routeModules: _chunk7YXKJMLNjs.createRSCRouteModules.call(void 0, payload)
2424
2443
  };
2425
- return /* @__PURE__ */ React3.createElement(_chunkUVEQGZIHjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunk3SUPTI2Ujs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkUVEQGZIHjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
2426
- _chunkLIOP3ILMjs.StaticRouterProvider,
2444
+ return /* @__PURE__ */ React3.createElement(_chunkLCJTIOKZjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunk7YXKJMLNjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkLCJTIOKZjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
2445
+ _chunkYBQJ3ABEjs.StaticRouterProvider,
2427
2446
  {
2428
2447
  context,
2429
2448
  router,
@@ -2446,7 +2465,7 @@ function deserializeErrors(errors) {
2446
2465
  let serialized = {};
2447
2466
  for (let [key, val] of entries) {
2448
2467
  if (val && val.__type === "RouteErrorResponse") {
2449
- serialized[key] = new (0, _chunkUVEQGZIHjs.ErrorResponseImpl)(
2468
+ serialized[key] = new (0, _chunkLCJTIOKZjs.ErrorResponseImpl)(
2450
2469
  val.status,
2451
2470
  val.statusText,
2452
2471
  val.data,
@@ -2605,4 +2624,4 @@ function deserializeErrors(errors) {
2605
2624
 
2606
2625
 
2607
2626
 
2608
- exports.Await = _chunkUVEQGZIHjs.Await; exports.BrowserRouter = _chunkLIOP3ILMjs.BrowserRouter; exports.Form = _chunkLIOP3ILMjs.Form; exports.HashRouter = _chunkLIOP3ILMjs.HashRouter; exports.IDLE_BLOCKER = _chunkUVEQGZIHjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkUVEQGZIHjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkUVEQGZIHjs.IDLE_NAVIGATION; exports.Link = _chunkLIOP3ILMjs.Link; exports.Links = _chunkUVEQGZIHjs.Links; exports.MemoryRouter = _chunkUVEQGZIHjs.MemoryRouter; exports.Meta = _chunkUVEQGZIHjs.Meta; exports.NavLink = _chunkLIOP3ILMjs.NavLink; exports.Navigate = _chunkUVEQGZIHjs.Navigate; exports.NavigationType = _chunkUVEQGZIHjs.Action; exports.Outlet = _chunkUVEQGZIHjs.Outlet; exports.PrefetchPageLinks = _chunkUVEQGZIHjs.PrefetchPageLinks; exports.Route = _chunkUVEQGZIHjs.Route; exports.Router = _chunkUVEQGZIHjs.Router; exports.RouterContextProvider = _chunkUVEQGZIHjs.RouterContextProvider; exports.RouterProvider = _chunkUVEQGZIHjs.RouterProvider; exports.Routes = _chunkUVEQGZIHjs.Routes; exports.Scripts = _chunkUVEQGZIHjs.Scripts; exports.ScrollRestoration = _chunkLIOP3ILMjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkLIOP3ILMjs.StaticRouter; exports.StaticRouterProvider = _chunkLIOP3ILMjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkUVEQGZIHjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkUVEQGZIHjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkUVEQGZIHjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkUVEQGZIHjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkUVEQGZIHjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkUVEQGZIHjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkUVEQGZIHjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkUVEQGZIHjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunk3SUPTI2Ujs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkUVEQGZIHjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkUVEQGZIHjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkUVEQGZIHjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkUVEQGZIHjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkUVEQGZIHjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkUVEQGZIHjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkUVEQGZIHjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkUVEQGZIHjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkUVEQGZIHjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkUVEQGZIHjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkUVEQGZIHjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkUVEQGZIHjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkUVEQGZIHjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkUVEQGZIHjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunk3SUPTI2Ujs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkUVEQGZIHjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkUVEQGZIHjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkUVEQGZIHjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkUVEQGZIHjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkUVEQGZIHjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkUVEQGZIHjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkUVEQGZIHjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkLIOP3ILMjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkUVEQGZIHjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkUVEQGZIHjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkUVEQGZIHjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkLIOP3ILMjs.createBrowserRouter; exports.createContext = _chunkUVEQGZIHjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkLIOP3ILMjs.createHashRouter; exports.createMemoryRouter = _chunkUVEQGZIHjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkUVEQGZIHjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkUVEQGZIHjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkUVEQGZIHjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkLIOP3ILMjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkLIOP3ILMjs.createStaticHandler; exports.createStaticRouter = _chunkLIOP3ILMjs.createStaticRouter; exports.data = _chunkUVEQGZIHjs.data; exports.generatePath = _chunkUVEQGZIHjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkUVEQGZIHjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkUVEQGZIHjs.matchPath; exports.matchRoutes = _chunkUVEQGZIHjs.matchRoutes; exports.parsePath = _chunkUVEQGZIHjs.parsePath; exports.redirect = _chunkUVEQGZIHjs.redirect; exports.redirectDocument = _chunkUVEQGZIHjs.redirectDocument; exports.renderMatches = _chunkUVEQGZIHjs.renderMatches; exports.replace = _chunkUVEQGZIHjs.replace; exports.resolvePath = _chunkUVEQGZIHjs.resolvePath; exports.unstable_HistoryRouter = _chunkLIOP3ILMjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkLIOP3ILMjs.usePrompt; exports.unstable_useRoute = _chunkUVEQGZIHjs.useRoute; exports.useActionData = _chunkUVEQGZIHjs.useActionData; exports.useAsyncError = _chunkUVEQGZIHjs.useAsyncError; exports.useAsyncValue = _chunkUVEQGZIHjs.useAsyncValue; exports.useBeforeUnload = _chunkLIOP3ILMjs.useBeforeUnload; exports.useBlocker = _chunkUVEQGZIHjs.useBlocker; exports.useFetcher = _chunkLIOP3ILMjs.useFetcher; exports.useFetchers = _chunkLIOP3ILMjs.useFetchers; exports.useFormAction = _chunkLIOP3ILMjs.useFormAction; exports.useHref = _chunkUVEQGZIHjs.useHref; exports.useInRouterContext = _chunkUVEQGZIHjs.useInRouterContext; exports.useLinkClickHandler = _chunkLIOP3ILMjs.useLinkClickHandler; exports.useLoaderData = _chunkUVEQGZIHjs.useLoaderData; exports.useLocation = _chunkUVEQGZIHjs.useLocation; exports.useMatch = _chunkUVEQGZIHjs.useMatch; exports.useMatches = _chunkUVEQGZIHjs.useMatches; exports.useNavigate = _chunkUVEQGZIHjs.useNavigate; exports.useNavigation = _chunkUVEQGZIHjs.useNavigation; exports.useNavigationType = _chunkUVEQGZIHjs.useNavigationType; exports.useOutlet = _chunkUVEQGZIHjs.useOutlet; exports.useOutletContext = _chunkUVEQGZIHjs.useOutletContext; exports.useParams = _chunkUVEQGZIHjs.useParams; exports.useResolvedPath = _chunkUVEQGZIHjs.useResolvedPath; exports.useRevalidator = _chunkUVEQGZIHjs.useRevalidator; exports.useRouteError = _chunkUVEQGZIHjs.useRouteError; exports.useRouteLoaderData = _chunkUVEQGZIHjs.useRouteLoaderData; exports.useRoutes = _chunkUVEQGZIHjs.useRoutes; exports.useSearchParams = _chunkLIOP3ILMjs.useSearchParams; exports.useSubmit = _chunkLIOP3ILMjs.useSubmit; exports.useViewTransitionState = _chunkLIOP3ILMjs.useViewTransitionState;
2627
+ exports.Await = _chunkLCJTIOKZjs.Await; exports.BrowserRouter = _chunkYBQJ3ABEjs.BrowserRouter; exports.Form = _chunkYBQJ3ABEjs.Form; exports.HashRouter = _chunkYBQJ3ABEjs.HashRouter; exports.IDLE_BLOCKER = _chunkLCJTIOKZjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkLCJTIOKZjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkLCJTIOKZjs.IDLE_NAVIGATION; exports.Link = _chunkYBQJ3ABEjs.Link; exports.Links = _chunkLCJTIOKZjs.Links; exports.MemoryRouter = _chunkLCJTIOKZjs.MemoryRouter; exports.Meta = _chunkLCJTIOKZjs.Meta; exports.NavLink = _chunkYBQJ3ABEjs.NavLink; exports.Navigate = _chunkLCJTIOKZjs.Navigate; exports.NavigationType = _chunkLCJTIOKZjs.Action; exports.Outlet = _chunkLCJTIOKZjs.Outlet; exports.PrefetchPageLinks = _chunkLCJTIOKZjs.PrefetchPageLinks; exports.Route = _chunkLCJTIOKZjs.Route; exports.Router = _chunkLCJTIOKZjs.Router; exports.RouterContextProvider = _chunkLCJTIOKZjs.RouterContextProvider; exports.RouterProvider = _chunkLCJTIOKZjs.RouterProvider; exports.Routes = _chunkLCJTIOKZjs.Routes; exports.Scripts = _chunkLCJTIOKZjs.Scripts; exports.ScrollRestoration = _chunkYBQJ3ABEjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkYBQJ3ABEjs.StaticRouter; exports.StaticRouterProvider = _chunkYBQJ3ABEjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkLCJTIOKZjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkLCJTIOKZjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkLCJTIOKZjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkLCJTIOKZjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkLCJTIOKZjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkLCJTIOKZjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkLCJTIOKZjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkLCJTIOKZjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunk7YXKJMLNjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkLCJTIOKZjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkLCJTIOKZjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkLCJTIOKZjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkLCJTIOKZjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkLCJTIOKZjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkLCJTIOKZjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkLCJTIOKZjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkLCJTIOKZjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkLCJTIOKZjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkLCJTIOKZjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkLCJTIOKZjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkLCJTIOKZjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkLCJTIOKZjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkLCJTIOKZjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunk7YXKJMLNjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkLCJTIOKZjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkLCJTIOKZjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkLCJTIOKZjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkLCJTIOKZjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkLCJTIOKZjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkLCJTIOKZjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkLCJTIOKZjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkYBQJ3ABEjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkLCJTIOKZjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkLCJTIOKZjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkLCJTIOKZjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkYBQJ3ABEjs.createBrowserRouter; exports.createContext = _chunkLCJTIOKZjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkYBQJ3ABEjs.createHashRouter; exports.createMemoryRouter = _chunkLCJTIOKZjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkLCJTIOKZjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkLCJTIOKZjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkLCJTIOKZjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkYBQJ3ABEjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkYBQJ3ABEjs.createStaticHandler; exports.createStaticRouter = _chunkYBQJ3ABEjs.createStaticRouter; exports.data = _chunkLCJTIOKZjs.data; exports.generatePath = _chunkLCJTIOKZjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkLCJTIOKZjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkLCJTIOKZjs.matchPath; exports.matchRoutes = _chunkLCJTIOKZjs.matchRoutes; exports.parsePath = _chunkLCJTIOKZjs.parsePath; exports.redirect = _chunkLCJTIOKZjs.redirect; exports.redirectDocument = _chunkLCJTIOKZjs.redirectDocument; exports.renderMatches = _chunkLCJTIOKZjs.renderMatches; exports.replace = _chunkLCJTIOKZjs.replace; exports.resolvePath = _chunkLCJTIOKZjs.resolvePath; exports.unstable_HistoryRouter = _chunkYBQJ3ABEjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkYBQJ3ABEjs.usePrompt; exports.unstable_useRoute = _chunkLCJTIOKZjs.useRoute; exports.useActionData = _chunkLCJTIOKZjs.useActionData; exports.useAsyncError = _chunkLCJTIOKZjs.useAsyncError; exports.useAsyncValue = _chunkLCJTIOKZjs.useAsyncValue; exports.useBeforeUnload = _chunkYBQJ3ABEjs.useBeforeUnload; exports.useBlocker = _chunkLCJTIOKZjs.useBlocker; exports.useFetcher = _chunkYBQJ3ABEjs.useFetcher; exports.useFetchers = _chunkYBQJ3ABEjs.useFetchers; exports.useFormAction = _chunkYBQJ3ABEjs.useFormAction; exports.useHref = _chunkLCJTIOKZjs.useHref; exports.useInRouterContext = _chunkLCJTIOKZjs.useInRouterContext; exports.useLinkClickHandler = _chunkYBQJ3ABEjs.useLinkClickHandler; exports.useLoaderData = _chunkLCJTIOKZjs.useLoaderData; exports.useLocation = _chunkLCJTIOKZjs.useLocation; exports.useMatch = _chunkLCJTIOKZjs.useMatch; exports.useMatches = _chunkLCJTIOKZjs.useMatches; exports.useNavigate = _chunkLCJTIOKZjs.useNavigate; exports.useNavigation = _chunkLCJTIOKZjs.useNavigation; exports.useNavigationType = _chunkLCJTIOKZjs.useNavigationType; exports.useOutlet = _chunkLCJTIOKZjs.useOutlet; exports.useOutletContext = _chunkLCJTIOKZjs.useOutletContext; exports.useParams = _chunkLCJTIOKZjs.useParams; exports.useResolvedPath = _chunkLCJTIOKZjs.useResolvedPath; exports.useRevalidator = _chunkLCJTIOKZjs.useRevalidator; exports.useRouteError = _chunkLCJTIOKZjs.useRouteError; exports.useRouteLoaderData = _chunkLCJTIOKZjs.useRouteLoaderData; exports.useRoutes = _chunkLCJTIOKZjs.useRoutes; exports.useSearchParams = _chunkYBQJ3ABEjs.useSearchParams; exports.useSubmit = _chunkYBQJ3ABEjs.useSubmit; exports.useViewTransitionState = _chunkYBQJ3ABEjs.useViewTransitionState;