react-router 7.13.2 → 7.14.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.
- package/CHANGELOG.md +67 -0
- package/dist/development/{browser-Bfn3xw9E.d.ts → browser-C9Ar1yxG.d.ts} +13 -10
- package/dist/development/{browser-Di6-vSl-.d.mts → browser-vtIR1Kpe.d.mts} +13 -10
- package/dist/development/{chunk-UALY5CBT.mjs → chunk-2UH5WJXA.mjs} +21 -7
- package/dist/development/{chunk-GO74ODU3.js → chunk-IK6APEEG.js} +191 -118
- package/dist/development/{chunk-HPFFRPKK.js → chunk-NXTEWSJO.js} +99 -99
- package/dist/development/{chunk-UVKPFVEO.mjs → chunk-QFMPRPBF.mjs} +192 -119
- package/dist/development/{chunk-LLP6DRWX.js → chunk-WAVMRYR2.js} +7 -7
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.d.ts +1 -1
- package/dist/development/dom-export.js +65 -54
- package/dist/development/dom-export.mjs +34 -23
- package/dist/{production/index-react-server-client-BcrVT7Dd.d.mts → development/index-react-server-client-BwWaHAr3.d.mts} +7 -5
- package/dist/development/{index-react-server-client-CCwMoQIT.d.ts → index-react-server-client-luDbagNU.d.ts} +7 -5
- package/dist/development/index-react-server-client.d.mts +1 -1
- package/dist/development/index-react-server-client.d.ts +1 -1
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +12 -3
- package/dist/development/index-react-server.d.ts +12 -3
- package/dist/development/index-react-server.js +58 -18
- package/dist/development/index-react-server.mjs +58 -18
- package/dist/development/index.d.mts +4 -4
- package/dist/development/index.d.ts +4 -4
- package/dist/development/index.js +101 -87
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.d.mts +10 -10
- package/dist/development/lib/types/internal.d.ts +10 -10
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{browser-Bfn3xw9E.d.ts → browser-C9Ar1yxG.d.ts} +13 -10
- package/dist/production/{browser-Di6-vSl-.d.mts → browser-vtIR1Kpe.d.mts} +13 -10
- package/dist/production/{chunk-CAFVLUDY.js → chunk-355DUZMC.js} +7 -7
- package/dist/production/{chunk-LKUVSIBA.js → chunk-4TJ7T2OQ.js} +191 -118
- package/dist/production/{chunk-XAAX7KIK.js → chunk-FPT5DLVJ.js} +99 -99
- package/dist/production/{chunk-2BDJPJTA.mjs → chunk-HZQGQD2X.mjs} +192 -119
- package/dist/production/{chunk-PY35PE22.mjs → chunk-X5LK27NZ.mjs} +21 -7
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.d.ts +1 -1
- package/dist/production/dom-export.js +65 -54
- package/dist/production/dom-export.mjs +34 -23
- package/dist/{development/index-react-server-client-BcrVT7Dd.d.mts → production/index-react-server-client-BwWaHAr3.d.mts} +7 -5
- package/dist/production/{index-react-server-client-CCwMoQIT.d.ts → index-react-server-client-luDbagNU.d.ts} +7 -5
- package/dist/production/index-react-server-client.d.mts +1 -1
- package/dist/production/index-react-server-client.d.ts +1 -1
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +12 -3
- package/dist/production/index-react-server.d.ts +12 -3
- package/dist/production/index-react-server.js +58 -18
- package/dist/production/index-react-server.mjs +58 -18
- package/dist/production/index.d.mts +4 -4
- package/dist/production/index.d.ts +4 -4
- package/dist/production/index.js +101 -87
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.d.mts +10 -10
- package/dist/production/lib/types/internal.d.ts +10 -10
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- 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.
|
|
2
|
+
* react-router v7.14.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWAVMRYR2js = require('./chunk-WAVMRYR2.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkLLP6DRWXjs = require('./chunk-LLP6DRWX.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkNXTEWSJOjs = require('./chunk-NXTEWSJO.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -149,7 +149,7 @@ var _chunkHPFFRPKKjs = require('./chunk-HPFFRPKK.js');
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var
|
|
152
|
+
var _chunkIK6APEEGjs = require('./chunk-IK6APEEG.js');
|
|
153
153
|
|
|
154
154
|
// lib/dom/ssr/server.tsx
|
|
155
155
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -162,7 +162,7 @@ function ServerRouter({
|
|
|
162
162
|
url = new URL(url);
|
|
163
163
|
}
|
|
164
164
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
165
|
-
let routes =
|
|
165
|
+
let routes = _chunkIK6APEEGjs.createServerRoutes.call(void 0,
|
|
166
166
|
manifest.routes,
|
|
167
167
|
routeModules,
|
|
168
168
|
context.future,
|
|
@@ -175,7 +175,7 @@ function ServerRouter({
|
|
|
175
175
|
let routeId = match.route.id;
|
|
176
176
|
let route = routeModules[routeId];
|
|
177
177
|
let manifestRoute = context.manifest.routes[routeId];
|
|
178
|
-
if (route && manifestRoute &&
|
|
178
|
+
if (route && manifestRoute && _chunkIK6APEEGjs.shouldHydrateRouteLoader.call(void 0,
|
|
179
179
|
routeId,
|
|
180
180
|
route.clientLoader,
|
|
181
181
|
manifestRoute.hasLoader,
|
|
@@ -184,9 +184,9 @@ function ServerRouter({
|
|
|
184
184
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
let router =
|
|
187
|
+
let router = _chunkNXTEWSJOjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
188
188
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
|
|
189
|
+
_chunkIK6APEEGjs.FrameworkContext.Provider,
|
|
190
190
|
{
|
|
191
191
|
value: {
|
|
192
192
|
manifest,
|
|
@@ -201,8 +201,8 @@ function ServerRouter({
|
|
|
201
201
|
renderMeta: context.renderMeta
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
/* @__PURE__ */ React.createElement(
|
|
205
|
-
|
|
204
|
+
/* @__PURE__ */ React.createElement(_chunkIK6APEEGjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
205
|
+
_chunkNXTEWSJOjs.StaticRouterProvider,
|
|
206
206
|
{
|
|
207
207
|
router,
|
|
208
208
|
context: context.staticHandlerContext,
|
|
@@ -210,7 +210,7 @@ function ServerRouter({
|
|
|
210
210
|
}
|
|
211
211
|
))
|
|
212
212
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
213
|
-
|
|
213
|
+
_chunkIK6APEEGjs.StreamTransfer,
|
|
214
214
|
{
|
|
215
215
|
context,
|
|
216
216
|
identifier: 0,
|
|
@@ -254,18 +254,18 @@ function createRoutesStub(routes, _context) {
|
|
|
254
254
|
let patched = processRoutes(
|
|
255
255
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
256
256
|
// types compared to `RouteObject`
|
|
257
|
-
|
|
258
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0,
|
|
257
|
+
_chunkIK6APEEGjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
258
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0, _chunkIK6APEEGjs.RouterContextProvider)() : {},
|
|
259
259
|
frameworkContextRef.current.manifest,
|
|
260
260
|
frameworkContextRef.current.routeModules
|
|
261
261
|
);
|
|
262
|
-
routerRef.current =
|
|
262
|
+
routerRef.current = _chunkIK6APEEGjs.createMemoryRouter.call(void 0, patched, {
|
|
263
263
|
initialEntries,
|
|
264
264
|
initialIndex,
|
|
265
265
|
hydrationData
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
return /* @__PURE__ */ React2.createElement(
|
|
268
|
+
return /* @__PURE__ */ React2.createElement(_chunkIK6APEEGjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkIK6APEEGjs.RouterProvider, { router: routerRef.current }));
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -279,9 +279,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
279
279
|
id: route.id,
|
|
280
280
|
path: route.path,
|
|
281
281
|
index: route.index,
|
|
282
|
-
Component: route.Component ?
|
|
283
|
-
HydrateFallback: route.HydrateFallback ?
|
|
284
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
282
|
+
Component: route.Component ? _chunkIK6APEEGjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
283
|
+
HydrateFallback: route.HydrateFallback ? _chunkIK6APEEGjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
284
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkIK6APEEGjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
285
285
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
286
286
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
287
287
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -316,7 +316,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
316
316
|
};
|
|
317
317
|
manifest.routes[newRoute.id] = entryRoute;
|
|
318
318
|
routeModules[route.id] = {
|
|
319
|
-
default: newRoute.Component ||
|
|
319
|
+
default: newRoute.Component || _chunkIK6APEEGjs.Outlet,
|
|
320
320
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
321
321
|
handle: route.handle,
|
|
322
322
|
links: route.links,
|
|
@@ -511,7 +511,7 @@ function myUnescape(value) {
|
|
|
511
511
|
return result;
|
|
512
512
|
}
|
|
513
513
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
514
|
-
|
|
514
|
+
_chunkIK6APEEGjs.warnOnce.call(void 0,
|
|
515
515
|
!expires,
|
|
516
516
|
`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
517
|
);
|
|
@@ -565,7 +565,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
565
565
|
let entries = Object.entries(errors);
|
|
566
566
|
let serialized = {};
|
|
567
567
|
for (let [key, val] of entries) {
|
|
568
|
-
if (
|
|
568
|
+
if (_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, val)) {
|
|
569
569
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
570
570
|
} else if (val instanceof Error) {
|
|
571
571
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -590,7 +590,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
590
590
|
|
|
591
591
|
// lib/server-runtime/routeMatching.ts
|
|
592
592
|
function matchServerRoutes(routes, pathname, basename) {
|
|
593
|
-
let matches =
|
|
593
|
+
let matches = _chunkIK6APEEGjs.matchRoutes.call(void 0,
|
|
594
594
|
routes,
|
|
595
595
|
pathname,
|
|
596
596
|
basename
|
|
@@ -612,7 +612,7 @@ async function callRouteHandler(handler, args, future) {
|
|
|
612
612
|
context: args.context,
|
|
613
613
|
unstable_pattern: args.unstable_pattern
|
|
614
614
|
});
|
|
615
|
-
if (
|
|
615
|
+
if (_chunkIK6APEEGjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkIK6APEEGjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
616
616
|
throw new Response(null, result.init);
|
|
617
617
|
}
|
|
618
618
|
return result;
|
|
@@ -731,17 +731,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
731
731
|
controller.close();
|
|
732
732
|
}
|
|
733
733
|
});
|
|
734
|
-
let decoded = await
|
|
734
|
+
let decoded = await _chunkIK6APEEGjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
735
735
|
let data2 = decoded.value;
|
|
736
|
-
if (data2 &&
|
|
737
|
-
let result = data2[
|
|
736
|
+
if (data2 && _chunkIK6APEEGjs.SingleFetchRedirectSymbol in data2) {
|
|
737
|
+
let result = data2[_chunkIK6APEEGjs.SingleFetchRedirectSymbol];
|
|
738
738
|
let init = { status: result.status };
|
|
739
739
|
if (result.reload) {
|
|
740
|
-
throw
|
|
740
|
+
throw _chunkIK6APEEGjs.redirectDocument.call(void 0, result.redirect, init);
|
|
741
741
|
} else if (result.replace) {
|
|
742
|
-
throw
|
|
742
|
+
throw _chunkIK6APEEGjs.replace.call(void 0, result.redirect, init);
|
|
743
743
|
} else {
|
|
744
|
-
throw
|
|
744
|
+
throw _chunkIK6APEEGjs.redirect.call(void 0, result.redirect, init);
|
|
745
745
|
}
|
|
746
746
|
} else {
|
|
747
747
|
invariant2(
|
|
@@ -784,7 +784,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
784
784
|
|
|
785
785
|
// lib/server-runtime/serverHandoff.ts
|
|
786
786
|
function createServerHandoffString(serverHandoff) {
|
|
787
|
-
return
|
|
787
|
+
return _chunkIK6APEEGjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
// lib/server-runtime/headers.ts
|
|
@@ -954,12 +954,12 @@ function getNormalizedPath(request, basename, future) {
|
|
|
954
954
|
pathname = pathname.replace(/\.data$/, "");
|
|
955
955
|
}
|
|
956
956
|
} else {
|
|
957
|
-
if (
|
|
957
|
+
if (_chunkIK6APEEGjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
958
958
|
pathname = basename;
|
|
959
959
|
} else if (pathname.endsWith(".data")) {
|
|
960
960
|
pathname = pathname.replace(/\.data$/, "");
|
|
961
961
|
}
|
|
962
|
-
if (
|
|
962
|
+
if (_chunkIK6APEEGjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
963
963
|
pathname = pathname.slice(0, -1);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
@@ -979,7 +979,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
979
979
|
|
|
980
980
|
// lib/server-runtime/single-fetch.ts
|
|
981
981
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
982
|
-
...
|
|
982
|
+
..._chunkIK6APEEGjs.NO_BODY_STATUS_CODES,
|
|
983
983
|
304
|
|
984
984
|
]);
|
|
985
985
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -1018,7 +1018,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1018
1018
|
return handleQueryError(error);
|
|
1019
1019
|
}
|
|
1020
1020
|
function handleQueryResult(result) {
|
|
1021
|
-
return
|
|
1021
|
+
return _chunkIK6APEEGjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1022
1022
|
}
|
|
1023
1023
|
function handleQueryError(error, status = 500) {
|
|
1024
1024
|
handleError(error);
|
|
@@ -1030,12 +1030,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function staticContextToResponse(context) {
|
|
1032
1032
|
let headers = getDocumentHeaders(context, build);
|
|
1033
|
-
if (
|
|
1033
|
+
if (_chunkIK6APEEGjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1034
1034
|
return new Response(null, { status: context.statusCode, headers });
|
|
1035
1035
|
}
|
|
1036
1036
|
if (context.errors) {
|
|
1037
1037
|
Object.values(context.errors).forEach((err) => {
|
|
1038
|
-
if (!
|
|
1038
|
+
if (!_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1039
1039
|
handleError(err);
|
|
1040
1040
|
}
|
|
1041
1041
|
});
|
|
@@ -1083,7 +1083,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1083
1083
|
return handleQueryError(error);
|
|
1084
1084
|
}
|
|
1085
1085
|
function handleQueryResult(result) {
|
|
1086
|
-
return
|
|
1086
|
+
return _chunkIK6APEEGjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1087
1087
|
}
|
|
1088
1088
|
function handleQueryError(error) {
|
|
1089
1089
|
handleError(error);
|
|
@@ -1095,12 +1095,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1095
1095
|
}
|
|
1096
1096
|
function staticContextToResponse(context) {
|
|
1097
1097
|
let headers = getDocumentHeaders(context, build);
|
|
1098
|
-
if (
|
|
1098
|
+
if (_chunkIK6APEEGjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1099
1099
|
return new Response(null, { status: context.statusCode, headers });
|
|
1100
1100
|
}
|
|
1101
1101
|
if (context.errors) {
|
|
1102
1102
|
Object.values(context.errors).forEach((err) => {
|
|
1103
|
-
if (!
|
|
1103
|
+
if (!_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1104
1104
|
handleError(err);
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
@@ -1164,15 +1164,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1164
1164
|
headers.delete("Location");
|
|
1165
1165
|
headers.set("Content-Type", "text/x-script");
|
|
1166
1166
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1167
|
-
result: request.method === "GET" ? { [
|
|
1167
|
+
result: request.method === "GET" ? { [_chunkIK6APEEGjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1168
1168
|
headers,
|
|
1169
|
-
status:
|
|
1169
|
+
status: _chunkIK6APEEGjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
1172
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1173
1173
|
let redirect2 = headers.get("Location");
|
|
1174
1174
|
if (basename) {
|
|
1175
|
-
redirect2 =
|
|
1175
|
+
redirect2 = _chunkIK6APEEGjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
1178
1178
|
redirect: redirect2,
|
|
@@ -1194,26 +1194,36 @@ function getSingleFetchRedirect(status, headers, basename) {
|
|
|
1194
1194
|
function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
1195
1195
|
let controller = new AbortController();
|
|
1196
1196
|
let timeoutId = setTimeout(
|
|
1197
|
-
() =>
|
|
1197
|
+
() => {
|
|
1198
|
+
controller.abort(new Error("Server Timeout"));
|
|
1199
|
+
cleanupCallbacks();
|
|
1200
|
+
},
|
|
1198
1201
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1199
1202
|
);
|
|
1200
|
-
let
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
+
let abortControllerOnRequestAbort = () => {
|
|
1204
|
+
controller.abort(requestSignal.reason);
|
|
1205
|
+
cleanupCallbacks();
|
|
1206
|
+
};
|
|
1207
|
+
requestSignal.addEventListener("abort", abortControllerOnRequestAbort);
|
|
1208
|
+
let cleanupCallbacks = () => {
|
|
1209
|
+
clearTimeout(timeoutId);
|
|
1210
|
+
requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
|
|
1211
|
+
};
|
|
1212
|
+
return _chunkIK6APEEGjs.encode.call(void 0, data2, {
|
|
1203
1213
|
signal: controller.signal,
|
|
1204
|
-
onComplete:
|
|
1214
|
+
onComplete: cleanupCallbacks,
|
|
1205
1215
|
plugins: [
|
|
1206
1216
|
(value) => {
|
|
1207
1217
|
if (value instanceof Error) {
|
|
1208
1218
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1209
1219
|
return ["SanitizedError", name, message, stack];
|
|
1210
1220
|
}
|
|
1211
|
-
if (value instanceof
|
|
1221
|
+
if (value instanceof _chunkIK6APEEGjs.ErrorResponseImpl) {
|
|
1212
1222
|
let { data: data3, status, statusText } = value;
|
|
1213
1223
|
return ["ErrorResponse", data3, status, statusText];
|
|
1214
1224
|
}
|
|
1215
|
-
if (value && typeof value === "object" &&
|
|
1216
|
-
return ["SingleFetchRedirect", value[
|
|
1225
|
+
if (value && typeof value === "object" && _chunkIK6APEEGjs.SingleFetchRedirectSymbol in value) {
|
|
1226
|
+
return ["SingleFetchRedirect", value[_chunkIK6APEEGjs.SingleFetchRedirectSymbol]];
|
|
1217
1227
|
}
|
|
1218
1228
|
}
|
|
1219
1229
|
],
|
|
@@ -1236,7 +1246,7 @@ function derive(build, mode) {
|
|
|
1236
1246
|
let routes = createRoutes(build.routes);
|
|
1237
1247
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1238
1248
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1239
|
-
let staticHandler =
|
|
1249
|
+
let staticHandler = _chunkIK6APEEGjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1240
1250
|
basename: build.basename,
|
|
1241
1251
|
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1242
1252
|
});
|
|
@@ -1244,7 +1254,7 @@ function derive(build, mode) {
|
|
|
1244
1254
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1245
1255
|
console.error(
|
|
1246
1256
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1247
|
-
|
|
1257
|
+
_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1248
1258
|
);
|
|
1249
1259
|
}
|
|
1250
1260
|
});
|
|
@@ -1262,14 +1272,14 @@ function derive(build, mode) {
|
|
|
1262
1272
|
});
|
|
1263
1273
|
};
|
|
1264
1274
|
if (build.future.v8_middleware) {
|
|
1265
|
-
if (initialContext && !(initialContext instanceof
|
|
1275
|
+
if (initialContext && !(initialContext instanceof _chunkIK6APEEGjs.RouterContextProvider)) {
|
|
1266
1276
|
let error = new Error(
|
|
1267
1277
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1268
1278
|
);
|
|
1269
1279
|
handleError(error);
|
|
1270
1280
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1271
1281
|
}
|
|
1272
|
-
loadContext = initialContext || new (0,
|
|
1282
|
+
loadContext = initialContext || new (0, _chunkIK6APEEGjs.RouterContextProvider)();
|
|
1273
1283
|
} else {
|
|
1274
1284
|
loadContext = initialContext || {};
|
|
1275
1285
|
}
|
|
@@ -1283,10 +1293,10 @@ function derive(build, mode) {
|
|
|
1283
1293
|
if (!build.ssr) {
|
|
1284
1294
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1285
1295
|
if (build.basename && build.basename !== "/") {
|
|
1286
|
-
let strippedPath =
|
|
1296
|
+
let strippedPath = _chunkIK6APEEGjs.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1287
1297
|
if (strippedPath == null) {
|
|
1288
1298
|
errorHandler(
|
|
1289
|
-
new (0,
|
|
1299
|
+
new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1290
1300
|
404,
|
|
1291
1301
|
"Not Found",
|
|
1292
1302
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1309,7 +1319,7 @@ function derive(build, mode) {
|
|
|
1309
1319
|
} else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
|
|
1310
1320
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1311
1321
|
errorHandler(
|
|
1312
|
-
new (0,
|
|
1322
|
+
new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1313
1323
|
404,
|
|
1314
1324
|
"Not Found",
|
|
1315
1325
|
`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.`
|
|
@@ -1329,7 +1339,7 @@ function derive(build, mode) {
|
|
|
1329
1339
|
}
|
|
1330
1340
|
}
|
|
1331
1341
|
}
|
|
1332
|
-
let manifestUrl =
|
|
1342
|
+
let manifestUrl = _chunkIK6APEEGjs.getManifestPath.call(void 0,
|
|
1333
1343
|
build.routeDiscovery.manifestPath,
|
|
1334
1344
|
build.basename
|
|
1335
1345
|
);
|
|
@@ -1362,7 +1372,7 @@ function derive(build, mode) {
|
|
|
1362
1372
|
loadContext,
|
|
1363
1373
|
handleError
|
|
1364
1374
|
);
|
|
1365
|
-
if (
|
|
1375
|
+
if (_chunkIK6APEEGjs.isRedirectResponse.call(void 0, response)) {
|
|
1366
1376
|
response = generateSingleFetchRedirectResponse(
|
|
1367
1377
|
response,
|
|
1368
1378
|
request,
|
|
@@ -1376,7 +1386,7 @@ function derive(build, mode) {
|
|
|
1376
1386
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1377
1387
|
request
|
|
1378
1388
|
});
|
|
1379
|
-
if (
|
|
1389
|
+
if (_chunkIK6APEEGjs.isRedirectResponse.call(void 0, response)) {
|
|
1380
1390
|
response = generateSingleFetchRedirectResponse(
|
|
1381
1391
|
response,
|
|
1382
1392
|
request,
|
|
@@ -1424,7 +1434,7 @@ function derive(build, mode) {
|
|
|
1424
1434
|
return response;
|
|
1425
1435
|
};
|
|
1426
1436
|
if (build.entry.module.unstable_instrumentations) {
|
|
1427
|
-
requestHandler =
|
|
1437
|
+
requestHandler = _chunkIK6APEEGjs.instrumentHandler.call(void 0,
|
|
1428
1438
|
requestHandler,
|
|
1429
1439
|
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1430
1440
|
);
|
|
@@ -1549,7 +1559,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1549
1559
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1550
1560
|
try {
|
|
1551
1561
|
let innerResult = await query(request);
|
|
1552
|
-
if (!
|
|
1562
|
+
if (!_chunkIK6APEEGjs.isResponse.call(void 0, innerResult)) {
|
|
1553
1563
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1554
1564
|
}
|
|
1555
1565
|
return innerResult;
|
|
@@ -1560,7 +1570,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1560
1570
|
} : void 0,
|
|
1561
1571
|
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1562
1572
|
});
|
|
1563
|
-
if (!
|
|
1573
|
+
if (!_chunkIK6APEEGjs.isResponse.call(void 0, result)) {
|
|
1564
1574
|
result = await renderHtml(result, isSpaMode);
|
|
1565
1575
|
}
|
|
1566
1576
|
return result;
|
|
@@ -1575,7 +1585,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1575
1585
|
}
|
|
1576
1586
|
if (context.errors) {
|
|
1577
1587
|
Object.values(context.errors).forEach((err) => {
|
|
1578
|
-
if (!
|
|
1588
|
+
if (!_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1579
1589
|
handleError(err);
|
|
1580
1590
|
}
|
|
1581
1591
|
});
|
|
@@ -1627,10 +1637,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1627
1637
|
} catch (error) {
|
|
1628
1638
|
handleError(error);
|
|
1629
1639
|
let errorForSecondRender = error;
|
|
1630
|
-
if (
|
|
1640
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, error)) {
|
|
1631
1641
|
try {
|
|
1632
1642
|
let data2 = await unwrapResponse(error);
|
|
1633
|
-
errorForSecondRender = new (0,
|
|
1643
|
+
errorForSecondRender = new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1634
1644
|
error.status,
|
|
1635
1645
|
error.statusText,
|
|
1636
1646
|
data2
|
|
@@ -1638,7 +1648,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1638
1648
|
} catch (e) {
|
|
1639
1649
|
}
|
|
1640
1650
|
}
|
|
1641
|
-
context =
|
|
1651
|
+
context = _chunkIK6APEEGjs.getStaticContextFromError.call(void 0,
|
|
1642
1652
|
staticHandler.dataRoutes,
|
|
1643
1653
|
context,
|
|
1644
1654
|
errorForSecondRender
|
|
@@ -1698,7 +1708,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1698
1708
|
return handleQueryRouteError(error);
|
|
1699
1709
|
}
|
|
1700
1710
|
function handleQueryRouteResult(result) {
|
|
1701
|
-
if (
|
|
1711
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, result)) {
|
|
1702
1712
|
return result;
|
|
1703
1713
|
}
|
|
1704
1714
|
if (typeof result === "string") {
|
|
@@ -1707,10 +1717,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1707
1717
|
return Response.json(result);
|
|
1708
1718
|
}
|
|
1709
1719
|
function handleQueryRouteError(error) {
|
|
1710
|
-
if (
|
|
1720
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, error)) {
|
|
1711
1721
|
return error;
|
|
1712
1722
|
}
|
|
1713
|
-
if (
|
|
1723
|
+
if (_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1714
1724
|
handleError(error);
|
|
1715
1725
|
return errorResponseToJson(error, serverMode);
|
|
1716
1726
|
}
|
|
@@ -1833,7 +1843,7 @@ function createSessionStorage({
|
|
|
1833
1843
|
};
|
|
1834
1844
|
}
|
|
1835
1845
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1836
|
-
|
|
1846
|
+
_chunkIK6APEEGjs.warnOnce.call(void 0,
|
|
1837
1847
|
cookie.isSigned,
|
|
1838
1848
|
`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.`
|
|
1839
1849
|
);
|
|
@@ -2025,6 +2035,7 @@ function escapeScript(script) {
|
|
|
2025
2035
|
}
|
|
2026
2036
|
|
|
2027
2037
|
// lib/rsc/server.ssr.tsx
|
|
2038
|
+
var defaultManifestPath = "/__manifest";
|
|
2028
2039
|
var REACT_USE = "use";
|
|
2029
2040
|
var useImpl = React3[REACT_USE];
|
|
2030
2041
|
function useSafe(promise) {
|
|
@@ -2113,7 +2124,7 @@ async function routeRSCServerRequest({
|
|
|
2113
2124
|
const payload = await createFromReadableStream(
|
|
2114
2125
|
detectRedirectResponse.body
|
|
2115
2126
|
);
|
|
2116
|
-
if (serverResponse.status ===
|
|
2127
|
+
if (serverResponse.status === _chunkIK6APEEGjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2117
2128
|
const headers2 = new Headers(serverResponse.headers);
|
|
2118
2129
|
headers2.delete("Content-Encoding");
|
|
2119
2130
|
headers2.delete("Content-Length");
|
|
@@ -2132,11 +2143,11 @@ async function routeRSCServerRequest({
|
|
|
2132
2143
|
let html = await renderHTML(getPayload, {
|
|
2133
2144
|
onError(error) {
|
|
2134
2145
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2135
|
-
renderRedirect =
|
|
2146
|
+
renderRedirect = _chunkIK6APEEGjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2136
2147
|
if (renderRedirect) {
|
|
2137
2148
|
return error.digest;
|
|
2138
2149
|
}
|
|
2139
|
-
let routeErrorResponse =
|
|
2150
|
+
let routeErrorResponse = _chunkIK6APEEGjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2140
2151
|
if (routeErrorResponse) {
|
|
2141
2152
|
renderError = routeErrorResponse;
|
|
2142
2153
|
status = routeErrorResponse.status;
|
|
@@ -2168,7 +2179,7 @@ async function routeRSCServerRequest({
|
|
|
2168
2179
|
if (renderRedirect) {
|
|
2169
2180
|
controller.enqueue(
|
|
2170
2181
|
new TextEncoder().encode(
|
|
2171
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2182
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIK6APEEGjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
|
|
2172
2183
|
)
|
|
2173
2184
|
);
|
|
2174
2185
|
}
|
|
@@ -2204,7 +2215,7 @@ async function routeRSCServerRequest({
|
|
|
2204
2215
|
}
|
|
2205
2216
|
try {
|
|
2206
2217
|
reason = _nullishCoalesce(renderError, () => ( reason));
|
|
2207
|
-
let [status, statusText] =
|
|
2218
|
+
let [status, statusText] = _chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
|
|
2208
2219
|
let retryRedirect;
|
|
2209
2220
|
let reactHeaders = new Headers();
|
|
2210
2221
|
const html = await renderHTML(
|
|
@@ -2241,11 +2252,11 @@ async function routeRSCServerRequest({
|
|
|
2241
2252
|
{
|
|
2242
2253
|
onError(error) {
|
|
2243
2254
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2244
|
-
retryRedirect =
|
|
2255
|
+
retryRedirect = _chunkIK6APEEGjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2245
2256
|
if (retryRedirect) {
|
|
2246
2257
|
return error.digest;
|
|
2247
2258
|
}
|
|
2248
|
-
let routeErrorResponse =
|
|
2259
|
+
let routeErrorResponse = _chunkIK6APEEGjs.decodeRouteErrorResponseDigest.call(void 0,
|
|
2249
2260
|
error.digest
|
|
2250
2261
|
);
|
|
2251
2262
|
if (routeErrorResponse) {
|
|
@@ -2279,7 +2290,7 @@ async function routeRSCServerRequest({
|
|
|
2279
2290
|
if (retryRedirect) {
|
|
2280
2291
|
controller.enqueue(
|
|
2281
2292
|
new TextEncoder().encode(
|
|
2282
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2293
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIK6APEEGjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
|
|
2283
2294
|
)
|
|
2284
2295
|
);
|
|
2285
2296
|
}
|
|
@@ -2320,7 +2331,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2320
2331
|
if (payload.type !== "render") return null;
|
|
2321
2332
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2322
2333
|
for (const match of payload.matches) {
|
|
2323
|
-
if (
|
|
2334
|
+
if (_chunkIK6APEEGjs.shouldHydrateRouteLoader.call(void 0,
|
|
2324
2335
|
match.id,
|
|
2325
2336
|
match.clientLoader,
|
|
2326
2337
|
match.hasLoader,
|
|
@@ -2360,7 +2371,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2360
2371
|
}
|
|
2361
2372
|
}))
|
|
2362
2373
|
};
|
|
2363
|
-
const router =
|
|
2374
|
+
const router = _chunkNXTEWSJOjs.createStaticRouter.call(void 0,
|
|
2364
2375
|
payload.matches.reduceRight((previous, match) => {
|
|
2365
2376
|
const route = {
|
|
2366
2377
|
id: match.id,
|
|
@@ -2405,11 +2416,14 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2405
2416
|
imports: []
|
|
2406
2417
|
}
|
|
2407
2418
|
},
|
|
2408
|
-
routeDiscovery: { mode: "
|
|
2409
|
-
|
|
2419
|
+
routeDiscovery: payload.routeDiscovery.mode === "initial" ? { mode: "initial", manifestPath: defaultManifestPath } : {
|
|
2420
|
+
mode: "lazy",
|
|
2421
|
+
manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
|
|
2422
|
+
},
|
|
2423
|
+
routeModules: _chunkWAVMRYR2js.createRSCRouteModules.call(void 0, payload)
|
|
2410
2424
|
};
|
|
2411
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2412
|
-
|
|
2425
|
+
return /* @__PURE__ */ React3.createElement(_chunkIK6APEEGjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkWAVMRYR2js.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkIK6APEEGjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2426
|
+
_chunkNXTEWSJOjs.StaticRouterProvider,
|
|
2413
2427
|
{
|
|
2414
2428
|
context,
|
|
2415
2429
|
router,
|
|
@@ -2432,7 +2446,7 @@ function deserializeErrors(errors) {
|
|
|
2432
2446
|
let serialized = {};
|
|
2433
2447
|
for (let [key, val] of entries) {
|
|
2434
2448
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2435
|
-
serialized[key] = new (0,
|
|
2449
|
+
serialized[key] = new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
2436
2450
|
val.status,
|
|
2437
2451
|
val.statusText,
|
|
2438
2452
|
val.data,
|
|
@@ -2591,4 +2605,4 @@ function deserializeErrors(errors) {
|
|
|
2591
2605
|
|
|
2592
2606
|
|
|
2593
2607
|
|
|
2594
|
-
exports.Await =
|
|
2608
|
+
exports.Await = _chunkIK6APEEGjs.Await; exports.BrowserRouter = _chunkNXTEWSJOjs.BrowserRouter; exports.Form = _chunkNXTEWSJOjs.Form; exports.HashRouter = _chunkNXTEWSJOjs.HashRouter; exports.IDLE_BLOCKER = _chunkIK6APEEGjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkIK6APEEGjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkIK6APEEGjs.IDLE_NAVIGATION; exports.Link = _chunkNXTEWSJOjs.Link; exports.Links = _chunkIK6APEEGjs.Links; exports.MemoryRouter = _chunkIK6APEEGjs.MemoryRouter; exports.Meta = _chunkIK6APEEGjs.Meta; exports.NavLink = _chunkNXTEWSJOjs.NavLink; exports.Navigate = _chunkIK6APEEGjs.Navigate; exports.NavigationType = _chunkIK6APEEGjs.Action; exports.Outlet = _chunkIK6APEEGjs.Outlet; exports.PrefetchPageLinks = _chunkIK6APEEGjs.PrefetchPageLinks; exports.Route = _chunkIK6APEEGjs.Route; exports.Router = _chunkIK6APEEGjs.Router; exports.RouterContextProvider = _chunkIK6APEEGjs.RouterContextProvider; exports.RouterProvider = _chunkIK6APEEGjs.RouterProvider; exports.Routes = _chunkIK6APEEGjs.Routes; exports.Scripts = _chunkIK6APEEGjs.Scripts; exports.ScrollRestoration = _chunkNXTEWSJOjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkNXTEWSJOjs.StaticRouter; exports.StaticRouterProvider = _chunkNXTEWSJOjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkIK6APEEGjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkIK6APEEGjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkIK6APEEGjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkIK6APEEGjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkIK6APEEGjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkIK6APEEGjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkIK6APEEGjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkIK6APEEGjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkWAVMRYR2js.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkIK6APEEGjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkIK6APEEGjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkIK6APEEGjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkIK6APEEGjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkIK6APEEGjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIK6APEEGjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIK6APEEGjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkIK6APEEGjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkIK6APEEGjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkIK6APEEGjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkIK6APEEGjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkIK6APEEGjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkIK6APEEGjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkIK6APEEGjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunkWAVMRYR2js.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkIK6APEEGjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkIK6APEEGjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkIK6APEEGjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkIK6APEEGjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkIK6APEEGjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkIK6APEEGjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkIK6APEEGjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkNXTEWSJOjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkIK6APEEGjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkIK6APEEGjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkIK6APEEGjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkNXTEWSJOjs.createBrowserRouter; exports.createContext = _chunkIK6APEEGjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkNXTEWSJOjs.createHashRouter; exports.createMemoryRouter = _chunkIK6APEEGjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkIK6APEEGjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkIK6APEEGjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkIK6APEEGjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkNXTEWSJOjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkNXTEWSJOjs.createStaticHandler; exports.createStaticRouter = _chunkNXTEWSJOjs.createStaticRouter; exports.data = _chunkIK6APEEGjs.data; exports.generatePath = _chunkIK6APEEGjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkIK6APEEGjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkIK6APEEGjs.matchPath; exports.matchRoutes = _chunkIK6APEEGjs.matchRoutes; exports.parsePath = _chunkIK6APEEGjs.parsePath; exports.redirect = _chunkIK6APEEGjs.redirect; exports.redirectDocument = _chunkIK6APEEGjs.redirectDocument; exports.renderMatches = _chunkIK6APEEGjs.renderMatches; exports.replace = _chunkIK6APEEGjs.replace; exports.resolvePath = _chunkIK6APEEGjs.resolvePath; exports.unstable_HistoryRouter = _chunkNXTEWSJOjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkNXTEWSJOjs.usePrompt; exports.unstable_useRoute = _chunkIK6APEEGjs.useRoute; exports.useActionData = _chunkIK6APEEGjs.useActionData; exports.useAsyncError = _chunkIK6APEEGjs.useAsyncError; exports.useAsyncValue = _chunkIK6APEEGjs.useAsyncValue; exports.useBeforeUnload = _chunkNXTEWSJOjs.useBeforeUnload; exports.useBlocker = _chunkIK6APEEGjs.useBlocker; exports.useFetcher = _chunkNXTEWSJOjs.useFetcher; exports.useFetchers = _chunkNXTEWSJOjs.useFetchers; exports.useFormAction = _chunkNXTEWSJOjs.useFormAction; exports.useHref = _chunkIK6APEEGjs.useHref; exports.useInRouterContext = _chunkIK6APEEGjs.useInRouterContext; exports.useLinkClickHandler = _chunkNXTEWSJOjs.useLinkClickHandler; exports.useLoaderData = _chunkIK6APEEGjs.useLoaderData; exports.useLocation = _chunkIK6APEEGjs.useLocation; exports.useMatch = _chunkIK6APEEGjs.useMatch; exports.useMatches = _chunkIK6APEEGjs.useMatches; exports.useNavigate = _chunkIK6APEEGjs.useNavigate; exports.useNavigation = _chunkIK6APEEGjs.useNavigation; exports.useNavigationType = _chunkIK6APEEGjs.useNavigationType; exports.useOutlet = _chunkIK6APEEGjs.useOutlet; exports.useOutletContext = _chunkIK6APEEGjs.useOutletContext; exports.useParams = _chunkIK6APEEGjs.useParams; exports.useResolvedPath = _chunkIK6APEEGjs.useResolvedPath; exports.useRevalidator = _chunkIK6APEEGjs.useRevalidator; exports.useRouteError = _chunkIK6APEEGjs.useRouteError; exports.useRouteLoaderData = _chunkIK6APEEGjs.useRouteLoaderData; exports.useRoutes = _chunkIK6APEEGjs.useRoutes; exports.useSearchParams = _chunkNXTEWSJOjs.useSearchParams; exports.useSubmit = _chunkNXTEWSJOjs.useSubmit; exports.useViewTransitionState = _chunkNXTEWSJOjs.useViewTransitionState;
|