react-router 7.7.0-pre.2 → 7.7.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 (30) hide show
  1. package/CHANGELOG.md +9 -13
  2. package/dist/{production/chunk-CLUOEFXR.js → development/chunk-4ADB4KIO.js} +130 -130
  3. package/dist/development/{chunk-XPO7SIPX.mjs → chunk-EF7DTUVF.mjs} +2 -2
  4. package/dist/development/{chunk-NMPYIXDO.mjs → chunk-T3VM44WY.mjs} +2 -2
  5. package/dist/development/{chunk-3JI27NJZ.js → chunk-V6PEDDZI.js} +1 -1
  6. package/dist/development/dom-export.js +3 -3
  7. package/dist/development/dom-export.mjs +3 -3
  8. package/dist/development/index-react-server-client.js +4 -4
  9. package/dist/development/index-react-server-client.mjs +2 -2
  10. package/dist/development/index-react-server.js +1 -1
  11. package/dist/development/index-react-server.mjs +1 -1
  12. package/dist/development/index.js +97 -97
  13. package/dist/development/index.mjs +3 -3
  14. package/dist/development/lib/types/internal.js +1 -1
  15. package/dist/development/lib/types/internal.mjs +1 -1
  16. package/dist/{development/chunk-XUCF2MWW.js → production/chunk-2TYFPE3B.js} +130 -130
  17. package/dist/production/{chunk-LW7Q6L7E.js → chunk-5KHO4FML.js} +1 -1
  18. package/dist/production/{chunk-RXNLZWLS.mjs → chunk-GNZILI6H.mjs} +2 -2
  19. package/dist/production/{chunk-V7D4RPWA.mjs → chunk-WPPIQDYG.mjs} +2 -2
  20. package/dist/production/dom-export.js +3 -3
  21. package/dist/production/dom-export.mjs +3 -3
  22. package/dist/production/index-react-server-client.js +4 -4
  23. package/dist/production/index-react-server-client.mjs +2 -2
  24. package/dist/production/index-react-server.js +1 -1
  25. package/dist/production/index-react-server.mjs +1 -1
  26. package/dist/production/index.js +97 -97
  27. package/dist/production/index.mjs +3 -3
  28. package/dist/production/lib/types/internal.js +1 -1
  29. package/dist/production/lib/types/internal.mjs +1 -1
  30. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _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.7.0-pre.2
2
+ * react-router v7.7.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -61,7 +61,7 @@
61
61
 
62
62
 
63
63
 
64
- var _chunk3JI27NJZjs = require('./chunk-3JI27NJZ.js');
64
+ var _chunk5KHO4FMLjs = require('./chunk-5KHO4FML.js');
65
65
 
66
66
  // lib/components.tsx
67
67
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -72,9 +72,9 @@ function mapRouteProperties(route) {
72
72
  hasErrorBoundary: route.hasErrorBoundary || route.ErrorBoundary != null || route.errorElement != null
73
73
  };
74
74
  if (route.Component) {
75
- if (_chunk3JI27NJZjs.ENABLE_DEV_WARNINGS) {
75
+ if (_chunk5KHO4FMLjs.ENABLE_DEV_WARNINGS) {
76
76
  if (route.element) {
77
- _chunk3JI27NJZjs.warning.call(void 0,
77
+ _chunk5KHO4FMLjs.warning.call(void 0,
78
78
  false,
79
79
  "You should not include both `Component` and `element` on your route - `Component` will be used."
80
80
  );
@@ -86,9 +86,9 @@ function mapRouteProperties(route) {
86
86
  });
87
87
  }
88
88
  if (route.HydrateFallback) {
89
- if (_chunk3JI27NJZjs.ENABLE_DEV_WARNINGS) {
89
+ if (_chunk5KHO4FMLjs.ENABLE_DEV_WARNINGS) {
90
90
  if (route.hydrateFallbackElement) {
91
- _chunk3JI27NJZjs.warning.call(void 0,
91
+ _chunk5KHO4FMLjs.warning.call(void 0,
92
92
  false,
93
93
  "You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."
94
94
  );
@@ -100,9 +100,9 @@ function mapRouteProperties(route) {
100
100
  });
101
101
  }
102
102
  if (route.ErrorBoundary) {
103
- if (_chunk3JI27NJZjs.ENABLE_DEV_WARNINGS) {
103
+ if (_chunk5KHO4FMLjs.ENABLE_DEV_WARNINGS) {
104
104
  if (route.errorElement) {
105
- _chunk3JI27NJZjs.warning.call(void 0,
105
+ _chunk5KHO4FMLjs.warning.call(void 0,
106
106
  false,
107
107
  "You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."
108
108
  );
@@ -120,11 +120,11 @@ var hydrationRouteProperties = [
120
120
  "hydrateFallbackElement"
121
121
  ];
122
122
  function createMemoryRouter(routes, opts) {
123
- return _chunk3JI27NJZjs.createRouter.call(void 0, {
123
+ return _chunk5KHO4FMLjs.createRouter.call(void 0, {
124
124
  basename: _optionalChain([opts, 'optionalAccess', _2 => _2.basename]),
125
125
  unstable_getContext: _optionalChain([opts, 'optionalAccess', _3 => _3.unstable_getContext]),
126
126
  future: _optionalChain([opts, 'optionalAccess', _4 => _4.future]),
127
- history: _chunk3JI27NJZjs.createMemoryHistory.call(void 0, {
127
+ history: _chunk5KHO4FMLjs.createMemoryHistory.call(void 0, {
128
128
  initialEntries: _optionalChain([opts, 'optionalAccess', _5 => _5.initialEntries]),
129
129
  initialIndex: _optionalChain([opts, 'optionalAccess', _6 => _6.initialIndex])
130
130
  }),
@@ -176,12 +176,12 @@ function RouterProvider({
176
176
  }
177
177
  });
178
178
  deletedFetchers.forEach((key) => fetcherData.current.delete(key));
179
- _chunk3JI27NJZjs.warnOnce.call(void 0,
179
+ _chunk5KHO4FMLjs.warnOnce.call(void 0,
180
180
  flushSync === false || reactDomFlushSyncImpl != null,
181
181
  'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
182
182
  );
183
183
  let isViewTransitionAvailable = router.window != null && router.window.document != null && typeof router.window.document.startViewTransition === "function";
184
- _chunk3JI27NJZjs.warnOnce.call(void 0,
184
+ _chunk5KHO4FMLjs.warnOnce.call(void 0,
185
185
  viewTransitionOpts == null || isViewTransitionAvailable,
186
186
  "You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
187
187
  );
@@ -306,7 +306,7 @@ function RouterProvider({
306
306
  }),
307
307
  [router, navigator, basename]
308
308
  );
309
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
309
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.FetchersContext.Provider, { value: fetcherData.current }, /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.ViewTransitionContext.Provider, { value: vtContext }, /* @__PURE__ */ React.createElement(
310
310
  Router,
311
311
  {
312
312
  basename,
@@ -330,7 +330,7 @@ function DataRoutes({
330
330
  future,
331
331
  state
332
332
  }) {
333
- return _chunk3JI27NJZjs.useRoutesImpl.call(void 0, routes, void 0, state, future);
333
+ return _chunk5KHO4FMLjs.useRoutesImpl.call(void 0, routes, void 0, state, future);
334
334
  }
335
335
  function MemoryRouter({
336
336
  basename,
@@ -340,7 +340,7 @@ function MemoryRouter({
340
340
  }) {
341
341
  let historyRef = React.useRef();
342
342
  if (historyRef.current == null) {
343
- historyRef.current = _chunk3JI27NJZjs.createMemoryHistory.call(void 0, {
343
+ historyRef.current = _chunk5KHO4FMLjs.createMemoryHistory.call(void 0, {
344
344
  initialEntries,
345
345
  initialIndex,
346
346
  v5Compat: true
@@ -375,23 +375,23 @@ function Navigate({
375
375
  state,
376
376
  relative
377
377
  }) {
378
- _chunk3JI27NJZjs.invariant.call(void 0,
379
- _chunk3JI27NJZjs.useInRouterContext.call(void 0, ),
378
+ _chunk5KHO4FMLjs.invariant.call(void 0,
379
+ _chunk5KHO4FMLjs.useInRouterContext.call(void 0, ),
380
380
  // TODO: This error is probably because they somehow have 2 versions of
381
381
  // the router loaded. We can help them understand how to avoid that.
382
382
  `<Navigate> may be used only in the context of a <Router> component.`
383
383
  );
384
- let { static: isStatic } = React.useContext(_chunk3JI27NJZjs.NavigationContext);
385
- _chunk3JI27NJZjs.warning.call(void 0,
384
+ let { static: isStatic } = React.useContext(_chunk5KHO4FMLjs.NavigationContext);
385
+ _chunk5KHO4FMLjs.warning.call(void 0,
386
386
  !isStatic,
387
387
  `<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`
388
388
  );
389
- let { matches } = React.useContext(_chunk3JI27NJZjs.RouteContext);
390
- let { pathname: locationPathname } = _chunk3JI27NJZjs.useLocation.call(void 0, );
391
- let navigate = _chunk3JI27NJZjs.useNavigate.call(void 0, );
392
- let path = _chunk3JI27NJZjs.resolveTo.call(void 0,
389
+ let { matches } = React.useContext(_chunk5KHO4FMLjs.RouteContext);
390
+ let { pathname: locationPathname } = _chunk5KHO4FMLjs.useLocation.call(void 0, );
391
+ let navigate = _chunk5KHO4FMLjs.useNavigate.call(void 0, );
392
+ let path = _chunk5KHO4FMLjs.resolveTo.call(void 0,
393
393
  to,
394
- _chunk3JI27NJZjs.getResolveToMatches.call(void 0, matches),
394
+ _chunk5KHO4FMLjs.getResolveToMatches.call(void 0, matches),
395
395
  locationPathname,
396
396
  relative === "path"
397
397
  );
@@ -402,10 +402,10 @@ function Navigate({
402
402
  return null;
403
403
  }
404
404
  function Outlet(props) {
405
- return _chunk3JI27NJZjs.useOutlet.call(void 0, props.context);
405
+ return _chunk5KHO4FMLjs.useOutlet.call(void 0, props.context);
406
406
  }
407
407
  function Route(_props) {
408
- _chunk3JI27NJZjs.invariant.call(void 0,
408
+ _chunk5KHO4FMLjs.invariant.call(void 0,
409
409
  false,
410
410
  `A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`
411
411
  );
@@ -418,8 +418,8 @@ function Router({
418
418
  navigator,
419
419
  static: staticProp = false
420
420
  }) {
421
- _chunk3JI27NJZjs.invariant.call(void 0,
422
- !_chunk3JI27NJZjs.useInRouterContext.call(void 0, ),
421
+ _chunk5KHO4FMLjs.invariant.call(void 0,
422
+ !_chunk5KHO4FMLjs.useInRouterContext.call(void 0, ),
423
423
  `You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`
424
424
  );
425
425
  let basename = basenameProp.replace(/^\/*/, "/");
@@ -433,7 +433,7 @@ function Router({
433
433
  [basename, navigator, staticProp]
434
434
  );
435
435
  if (typeof locationProp === "string") {
436
- locationProp = _chunk3JI27NJZjs.parsePath.call(void 0, locationProp);
436
+ locationProp = _chunk5KHO4FMLjs.parsePath.call(void 0, locationProp);
437
437
  }
438
438
  let {
439
439
  pathname = "/",
@@ -443,7 +443,7 @@ function Router({
443
443
  key = "default"
444
444
  } = locationProp;
445
445
  let locationContext = React.useMemo(() => {
446
- let trailingPathname = _chunk3JI27NJZjs.stripBasename.call(void 0, pathname, basename);
446
+ let trailingPathname = _chunk5KHO4FMLjs.stripBasename.call(void 0, pathname, basename);
447
447
  if (trailingPathname == null) {
448
448
  return null;
449
449
  }
@@ -458,20 +458,20 @@ function Router({
458
458
  navigationType
459
459
  };
460
460
  }, [basename, pathname, search, hash, state, key, navigationType]);
461
- _chunk3JI27NJZjs.warning.call(void 0,
461
+ _chunk5KHO4FMLjs.warning.call(void 0,
462
462
  locationContext != null,
463
463
  `<Router basename="${basename}"> is not able to match the URL "${pathname}${search}${hash}" because it does not start with the basename, so the <Router> won't render anything.`
464
464
  );
465
465
  if (locationContext == null) {
466
466
  return null;
467
467
  }
468
- return /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.LocationContext.Provider, { children, value: locationContext }));
468
+ return /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.NavigationContext.Provider, { value: navigationContext }, /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.LocationContext.Provider, { children, value: locationContext }));
469
469
  }
470
470
  function Routes({
471
471
  children,
472
472
  location
473
473
  }) {
474
- return _chunk3JI27NJZjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
474
+ return _chunk5KHO4FMLjs.useRoutes.call(void 0, createRoutesFromChildren(children), location);
475
475
  }
476
476
  function Await({
477
477
  children,
@@ -526,10 +526,10 @@ var AwaitErrorBoundary = class extends React.Component {
526
526
  throw promise._error;
527
527
  }
528
528
  if (status === 2 /* error */) {
529
- return /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.AwaitContext.Provider, { value: promise, children: errorElement });
529
+ return /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.AwaitContext.Provider, { value: promise, children: errorElement });
530
530
  }
531
531
  if (status === 1 /* success */) {
532
- return /* @__PURE__ */ React.createElement(_chunk3JI27NJZjs.AwaitContext.Provider, { value: promise, children });
532
+ return /* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.AwaitContext.Provider, { value: promise, children });
533
533
  }
534
534
  throw promise;
535
535
  }
@@ -537,7 +537,7 @@ var AwaitErrorBoundary = class extends React.Component {
537
537
  function ResolveAwait({
538
538
  children
539
539
  }) {
540
- let data = _chunk3JI27NJZjs.useAsyncValue.call(void 0, );
540
+ let data = _chunk5KHO4FMLjs.useAsyncValue.call(void 0, );
541
541
  let toRender = typeof children === "function" ? children(data) : children;
542
542
  return /* @__PURE__ */ React.createElement(React.Fragment, null, toRender);
543
543
  }
@@ -555,11 +555,11 @@ function createRoutesFromChildren(children, parentPath = []) {
555
555
  );
556
556
  return;
557
557
  }
558
- _chunk3JI27NJZjs.invariant.call(void 0,
558
+ _chunk5KHO4FMLjs.invariant.call(void 0,
559
559
  element.type === Route,
560
560
  `[${typeof element.type === "string" ? element.type : element.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`
561
561
  );
562
- _chunk3JI27NJZjs.invariant.call(void 0,
562
+ _chunk5KHO4FMLjs.invariant.call(void 0,
563
563
  !element.props.index || !element.props.children,
564
564
  "An index route cannot have child routes."
565
565
  );
@@ -593,14 +593,14 @@ function createRoutesFromChildren(children, parentPath = []) {
593
593
  }
594
594
  var createRoutesFromElements = createRoutesFromChildren;
595
595
  function renderMatches(matches) {
596
- return _chunk3JI27NJZjs._renderMatches.call(void 0, matches);
596
+ return _chunk5KHO4FMLjs._renderMatches.call(void 0, matches);
597
597
  }
598
598
  function useRouteComponentProps() {
599
599
  return {
600
- params: _chunk3JI27NJZjs.useParams.call(void 0, ),
601
- loaderData: _chunk3JI27NJZjs.useLoaderData.call(void 0, ),
602
- actionData: _chunk3JI27NJZjs.useActionData.call(void 0, ),
603
- matches: _chunk3JI27NJZjs.useMatches.call(void 0, )
600
+ params: _chunk5KHO4FMLjs.useParams.call(void 0, ),
601
+ loaderData: _chunk5KHO4FMLjs.useLoaderData.call(void 0, ),
602
+ actionData: _chunk5KHO4FMLjs.useActionData.call(void 0, ),
603
+ matches: _chunk5KHO4FMLjs.useMatches.call(void 0, )
604
604
  };
605
605
  }
606
606
  function WithComponentProps({
@@ -617,9 +617,9 @@ function withComponentProps(Component2) {
617
617
  }
618
618
  function useHydrateFallbackProps() {
619
619
  return {
620
- params: _chunk3JI27NJZjs.useParams.call(void 0, ),
621
- loaderData: _chunk3JI27NJZjs.useLoaderData.call(void 0, ),
622
- actionData: _chunk3JI27NJZjs.useActionData.call(void 0, )
620
+ params: _chunk5KHO4FMLjs.useParams.call(void 0, ),
621
+ loaderData: _chunk5KHO4FMLjs.useLoaderData.call(void 0, ),
622
+ actionData: _chunk5KHO4FMLjs.useActionData.call(void 0, )
623
623
  };
624
624
  }
625
625
  function WithHydrateFallbackProps({
@@ -636,10 +636,10 @@ function withHydrateFallbackProps(HydrateFallback) {
636
636
  }
637
637
  function useErrorBoundaryProps() {
638
638
  return {
639
- params: _chunk3JI27NJZjs.useParams.call(void 0, ),
640
- loaderData: _chunk3JI27NJZjs.useLoaderData.call(void 0, ),
641
- actionData: _chunk3JI27NJZjs.useActionData.call(void 0, ),
642
- error: _chunk3JI27NJZjs.useRouteError.call(void 0, )
639
+ params: _chunk5KHO4FMLjs.useParams.call(void 0, ),
640
+ loaderData: _chunk5KHO4FMLjs.useLoaderData.call(void 0, ),
641
+ actionData: _chunk5KHO4FMLjs.useActionData.call(void 0, ),
642
+ error: _chunk5KHO4FMLjs.useRouteError.call(void 0, )
643
643
  };
644
644
  }
645
645
  function WithErrorBoundaryProps({
@@ -724,7 +724,7 @@ var supportedFormEncTypes = /* @__PURE__ */ new Set([
724
724
  ]);
725
725
  function getFormEncType(encType) {
726
726
  if (encType != null && !supportedFormEncTypes.has(encType)) {
727
- _chunk3JI27NJZjs.warning.call(void 0,
727
+ _chunk5KHO4FMLjs.warning.call(void 0,
728
728
  false,
729
729
  `"${encType}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${defaultEncType}"`
730
730
  );
@@ -740,7 +740,7 @@ function getFormSubmissionInfo(target, basename) {
740
740
  let body;
741
741
  if (isFormElement(target)) {
742
742
  let attr = target.getAttribute("action");
743
- action = attr ? _chunk3JI27NJZjs.stripBasename.call(void 0, attr, basename) : null;
743
+ action = attr ? _chunk5KHO4FMLjs.stripBasename.call(void 0, attr, basename) : null;
744
744
  method = target.getAttribute("method") || defaultMethod;
745
745
  encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
746
746
  formData = new FormData(target);
@@ -752,7 +752,7 @@ function getFormSubmissionInfo(target, basename) {
752
752
  );
753
753
  }
754
754
  let attr = target.getAttribute("formaction") || form.getAttribute("action");
755
- action = attr ? _chunk3JI27NJZjs.stripBasename.call(void 0, attr, basename) : null;
755
+ action = attr ? _chunk5KHO4FMLjs.stripBasename.call(void 0, attr, basename) : null;
756
756
  method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
757
757
  encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
758
758
  formData = new FormData(form, target);
@@ -789,16 +789,16 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
789
789
  try {
790
790
  if (isBrowser) {
791
791
  window.__reactRouterVersion = // @ts-expect-error
792
- "7.7.0-pre.2";
792
+ "7.7.0";
793
793
  }
794
794
  } catch (e) {
795
795
  }
796
796
  function createBrowserRouter(routes, opts) {
797
- return _chunk3JI27NJZjs.createRouter.call(void 0, {
797
+ return _chunk5KHO4FMLjs.createRouter.call(void 0, {
798
798
  basename: _optionalChain([opts, 'optionalAccess', _12 => _12.basename]),
799
799
  unstable_getContext: _optionalChain([opts, 'optionalAccess', _13 => _13.unstable_getContext]),
800
800
  future: _optionalChain([opts, 'optionalAccess', _14 => _14.future]),
801
- history: _chunk3JI27NJZjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _15 => _15.window]) }),
801
+ history: _chunk5KHO4FMLjs.createBrowserHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _15 => _15.window]) }),
802
802
  hydrationData: _optionalChain([opts, 'optionalAccess', _16 => _16.hydrationData]) || parseHydrationData(),
803
803
  routes,
804
804
  mapRouteProperties,
@@ -809,11 +809,11 @@ function createBrowserRouter(routes, opts) {
809
809
  }).initialize();
810
810
  }
811
811
  function createHashRouter(routes, opts) {
812
- return _chunk3JI27NJZjs.createRouter.call(void 0, {
812
+ return _chunk5KHO4FMLjs.createRouter.call(void 0, {
813
813
  basename: _optionalChain([opts, 'optionalAccess', _20 => _20.basename]),
814
814
  unstable_getContext: _optionalChain([opts, 'optionalAccess', _21 => _21.unstable_getContext]),
815
815
  future: _optionalChain([opts, 'optionalAccess', _22 => _22.future]),
816
- history: _chunk3JI27NJZjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _23 => _23.window]) }),
816
+ history: _chunk5KHO4FMLjs.createHashHistory.call(void 0, { window: _optionalChain([opts, 'optionalAccess', _23 => _23.window]) }),
817
817
  hydrationData: _optionalChain([opts, 'optionalAccess', _24 => _24.hydrationData]) || parseHydrationData(),
818
818
  routes,
819
819
  mapRouteProperties,
@@ -839,7 +839,7 @@ function deserializeErrors(errors) {
839
839
  let serialized = {};
840
840
  for (let [key, val] of entries) {
841
841
  if (val && val.__type === "RouteErrorResponse") {
842
- serialized[key] = new (0, _chunk3JI27NJZjs.ErrorResponseImpl)(
842
+ serialized[key] = new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(
843
843
  val.status,
844
844
  val.statusText,
845
845
  val.data,
@@ -875,7 +875,7 @@ function BrowserRouter({
875
875
  }) {
876
876
  let historyRef = React2.useRef();
877
877
  if (historyRef.current == null) {
878
- historyRef.current = _chunk3JI27NJZjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
878
+ historyRef.current = _chunk5KHO4FMLjs.createBrowserHistory.call(void 0, { window: window2, v5Compat: true });
879
879
  }
880
880
  let history = historyRef.current;
881
881
  let [state, setStateImpl] = React2.useState({
@@ -903,7 +903,7 @@ function BrowserRouter({
903
903
  function HashRouter({ basename, children, window: window2 }) {
904
904
  let historyRef = React2.useRef();
905
905
  if (historyRef.current == null) {
906
- historyRef.current = _chunk3JI27NJZjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
906
+ historyRef.current = _chunk5KHO4FMLjs.createHashHistory.call(void 0, { window: window2, v5Compat: true });
907
907
  }
908
908
  let history = historyRef.current;
909
909
  let [state, setStateImpl] = React2.useState({
@@ -972,7 +972,7 @@ var Link = React2.forwardRef(
972
972
  viewTransition,
973
973
  ...rest
974
974
  }, forwardedRef) {
975
- let { basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
975
+ let { basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
976
976
  let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX.test(to);
977
977
  let absoluteHref;
978
978
  let isExternal = false;
@@ -982,22 +982,22 @@ var Link = React2.forwardRef(
982
982
  try {
983
983
  let currentUrl = new URL(window.location.href);
984
984
  let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
985
- let path = _chunk3JI27NJZjs.stripBasename.call(void 0, targetUrl.pathname, basename);
985
+ let path = _chunk5KHO4FMLjs.stripBasename.call(void 0, targetUrl.pathname, basename);
986
986
  if (targetUrl.origin === currentUrl.origin && path != null) {
987
987
  to = path + targetUrl.search + targetUrl.hash;
988
988
  } else {
989
989
  isExternal = true;
990
990
  }
991
991
  } catch (e) {
992
- _chunk3JI27NJZjs.warning.call(void 0,
992
+ _chunk5KHO4FMLjs.warning.call(void 0,
993
993
  false,
994
994
  `<Link to="${to}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
995
995
  );
996
996
  }
997
997
  }
998
998
  }
999
- let href = _chunk3JI27NJZjs.useHref.call(void 0, to, { relative });
1000
- let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunk3JI27NJZjs.usePrefetchBehavior.call(void 0,
999
+ let href = _chunk5KHO4FMLjs.useHref.call(void 0, to, { relative });
1000
+ let [shouldPrefetch, prefetchRef, prefetchHandlers] = _chunk5KHO4FMLjs.usePrefetchBehavior.call(void 0,
1001
1001
  prefetch,
1002
1002
  rest
1003
1003
  );
@@ -1024,13 +1024,13 @@ var Link = React2.forwardRef(
1024
1024
  ...prefetchHandlers,
1025
1025
  href: absoluteHref || href,
1026
1026
  onClick: isExternal || reloadDocument ? onClick : handleClick,
1027
- ref: _chunk3JI27NJZjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1027
+ ref: _chunk5KHO4FMLjs.mergeRefs.call(void 0, forwardedRef, prefetchRef),
1028
1028
  target,
1029
1029
  "data-discover": !isAbsolute && discover === "render" ? "true" : void 0
1030
1030
  }
1031
1031
  )
1032
1032
  );
1033
- return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunk3JI27NJZjs.PrefetchPageLinks, { page: href })) : link;
1033
+ return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React2.createElement(React2.Fragment, null, link, /* @__PURE__ */ React2.createElement(_chunk5KHO4FMLjs.PrefetchPageLinks, { page: href })) : link;
1034
1034
  }
1035
1035
  );
1036
1036
  Link.displayName = "Link";
@@ -1046,10 +1046,10 @@ var NavLink = React2.forwardRef(
1046
1046
  children,
1047
1047
  ...rest
1048
1048
  }, ref) {
1049
- let path = _chunk3JI27NJZjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1050
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1051
- let routerState = React2.useContext(_chunk3JI27NJZjs.DataRouterStateContext);
1052
- let { navigator, basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
1049
+ let path = _chunk5KHO4FMLjs.useResolvedPath.call(void 0, to, { relative: rest.relative });
1050
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1051
+ let routerState = React2.useContext(_chunk5KHO4FMLjs.DataRouterStateContext);
1052
+ let { navigator, basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
1053
1053
  let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
1054
1054
  // eslint-disable-next-line react-hooks/rules-of-hooks
1055
1055
  useViewTransitionState(path) && viewTransition === true;
@@ -1062,7 +1062,7 @@ var NavLink = React2.forwardRef(
1062
1062
  toPathname = toPathname.toLowerCase();
1063
1063
  }
1064
1064
  if (nextLocationPathname && basename) {
1065
- nextLocationPathname = _chunk3JI27NJZjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1065
+ nextLocationPathname = _chunk5KHO4FMLjs.stripBasename.call(void 0, nextLocationPathname, basename) || nextLocationPathname;
1066
1066
  }
1067
1067
  const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
1068
1068
  let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
@@ -1157,10 +1157,10 @@ function ScrollRestoration({
1157
1157
  storageKey,
1158
1158
  ...props
1159
1159
  }) {
1160
- let remixContext = React2.useContext(_chunk3JI27NJZjs.FrameworkContext);
1161
- let { basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
1162
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1163
- let matches = _chunk3JI27NJZjs.useMatches.call(void 0, );
1160
+ let remixContext = React2.useContext(_chunk5KHO4FMLjs.FrameworkContext);
1161
+ let { basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
1162
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1163
+ let matches = _chunk5KHO4FMLjs.useMatches.call(void 0, );
1164
1164
  useScrollRestoration({ getKey, storageKey });
1165
1165
  let ssrKey = React2.useMemo(
1166
1166
  () => {
@@ -1214,13 +1214,13 @@ function getDataRouterConsoleError(hookName) {
1214
1214
  return `${hookName} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1215
1215
  }
1216
1216
  function useDataRouterContext(hookName) {
1217
- let ctx = React2.useContext(_chunk3JI27NJZjs.DataRouterContext);
1218
- _chunk3JI27NJZjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1217
+ let ctx = React2.useContext(_chunk5KHO4FMLjs.DataRouterContext);
1218
+ _chunk5KHO4FMLjs.invariant.call(void 0, ctx, getDataRouterConsoleError(hookName));
1219
1219
  return ctx;
1220
1220
  }
1221
1221
  function useDataRouterState(hookName) {
1222
- let state = React2.useContext(_chunk3JI27NJZjs.DataRouterStateContext);
1223
- _chunk3JI27NJZjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1222
+ let state = React2.useContext(_chunk5KHO4FMLjs.DataRouterStateContext);
1223
+ _chunk5KHO4FMLjs.invariant.call(void 0, state, getDataRouterConsoleError(hookName));
1224
1224
  return state;
1225
1225
  }
1226
1226
  function useLinkClickHandler(to, {
@@ -1231,14 +1231,14 @@ function useLinkClickHandler(to, {
1231
1231
  relative,
1232
1232
  viewTransition
1233
1233
  } = {}) {
1234
- let navigate = _chunk3JI27NJZjs.useNavigate.call(void 0, );
1235
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1236
- let path = _chunk3JI27NJZjs.useResolvedPath.call(void 0, to, { relative });
1234
+ let navigate = _chunk5KHO4FMLjs.useNavigate.call(void 0, );
1235
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1236
+ let path = _chunk5KHO4FMLjs.useResolvedPath.call(void 0, to, { relative });
1237
1237
  return React2.useCallback(
1238
1238
  (event) => {
1239
1239
  if (shouldProcessLinkClick(event, target)) {
1240
1240
  event.preventDefault();
1241
- let replace = replaceProp !== void 0 ? replaceProp : _chunk3JI27NJZjs.createPath.call(void 0, location) === _chunk3JI27NJZjs.createPath.call(void 0, path);
1241
+ let replace = replaceProp !== void 0 ? replaceProp : _chunk5KHO4FMLjs.createPath.call(void 0, location) === _chunk5KHO4FMLjs.createPath.call(void 0, path);
1242
1242
  navigate(to, {
1243
1243
  replace,
1244
1244
  state,
@@ -1263,13 +1263,13 @@ function useLinkClickHandler(to, {
1263
1263
  );
1264
1264
  }
1265
1265
  function useSearchParams(defaultInit) {
1266
- _chunk3JI27NJZjs.warning.call(void 0,
1266
+ _chunk5KHO4FMLjs.warning.call(void 0,
1267
1267
  typeof URLSearchParams !== "undefined",
1268
1268
  `You cannot use the \`useSearchParams\` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.`
1269
1269
  );
1270
1270
  let defaultSearchParamsRef = React2.useRef(createSearchParams(defaultInit));
1271
1271
  let hasSetSearchParamsRef = React2.useRef(false);
1272
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1272
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1273
1273
  let searchParams = React2.useMemo(
1274
1274
  () => (
1275
1275
  // Only merge in the defaults if we haven't yet called setSearchParams.
@@ -1282,7 +1282,7 @@ function useSearchParams(defaultInit) {
1282
1282
  ),
1283
1283
  [location.search]
1284
1284
  );
1285
- let navigate = _chunk3JI27NJZjs.useNavigate.call(void 0, );
1285
+ let navigate = _chunk5KHO4FMLjs.useNavigate.call(void 0, );
1286
1286
  let setSearchParams = React2.useCallback(
1287
1287
  (nextInit, navigateOptions) => {
1288
1288
  const newSearchParams = createSearchParams(
@@ -1299,8 +1299,8 @@ var fetcherId = 0;
1299
1299
  var getUniqueFetcherId = () => `__${String(++fetcherId)}__`;
1300
1300
  function useSubmit() {
1301
1301
  let { router } = useDataRouterContext("useSubmit" /* UseSubmit */);
1302
- let { basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
1303
- let currentRouteId = _chunk3JI27NJZjs.useRouteId.call(void 0, );
1302
+ let { basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
1303
+ let currentRouteId = _chunk5KHO4FMLjs.useRouteId.call(void 0, );
1304
1304
  return React2.useCallback(
1305
1305
  async (target, options = {}) => {
1306
1306
  let { action, method, encType, formData, body } = getFormSubmissionInfo(
@@ -1336,12 +1336,12 @@ function useSubmit() {
1336
1336
  );
1337
1337
  }
1338
1338
  function useFormAction(action, { relative } = {}) {
1339
- let { basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
1340
- let routeContext = React2.useContext(_chunk3JI27NJZjs.RouteContext);
1341
- _chunk3JI27NJZjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1339
+ let { basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
1340
+ let routeContext = React2.useContext(_chunk5KHO4FMLjs.RouteContext);
1341
+ _chunk5KHO4FMLjs.invariant.call(void 0, routeContext, "useFormAction must be used inside a RouteContext");
1342
1342
  let [match] = routeContext.matches.slice(-1);
1343
- let path = { ..._chunk3JI27NJZjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1344
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1343
+ let path = { ..._chunk5KHO4FMLjs.useResolvedPath.call(void 0, action ? action : ".", { relative }) };
1344
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1345
1345
  if (action == null) {
1346
1346
  path.search = location.search;
1347
1347
  let params = new URLSearchParams(path.search);
@@ -1358,21 +1358,21 @@ function useFormAction(action, { relative } = {}) {
1358
1358
  path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1359
1359
  }
1360
1360
  if (basename !== "/") {
1361
- path.pathname = path.pathname === "/" ? basename : _chunk3JI27NJZjs.joinPaths.call(void 0, [basename, path.pathname]);
1361
+ path.pathname = path.pathname === "/" ? basename : _chunk5KHO4FMLjs.joinPaths.call(void 0, [basename, path.pathname]);
1362
1362
  }
1363
- return _chunk3JI27NJZjs.createPath.call(void 0, path);
1363
+ return _chunk5KHO4FMLjs.createPath.call(void 0, path);
1364
1364
  }
1365
1365
  function useFetcher({
1366
1366
  key
1367
1367
  } = {}) {
1368
1368
  let { router } = useDataRouterContext("useFetcher" /* UseFetcher */);
1369
1369
  let state = useDataRouterState("useFetcher" /* UseFetcher */);
1370
- let fetcherData = React2.useContext(_chunk3JI27NJZjs.FetchersContext);
1371
- let route = React2.useContext(_chunk3JI27NJZjs.RouteContext);
1370
+ let fetcherData = React2.useContext(_chunk5KHO4FMLjs.FetchersContext);
1371
+ let route = React2.useContext(_chunk5KHO4FMLjs.RouteContext);
1372
1372
  let routeId = _optionalChain([route, 'access', _31 => _31.matches, 'access', _32 => _32[route.matches.length - 1], 'optionalAccess', _33 => _33.route, 'access', _34 => _34.id]);
1373
- _chunk3JI27NJZjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1374
- _chunk3JI27NJZjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1375
- _chunk3JI27NJZjs.invariant.call(void 0,
1373
+ _chunk5KHO4FMLjs.invariant.call(void 0, fetcherData, `useFetcher must be used inside a FetchersContext`);
1374
+ _chunk5KHO4FMLjs.invariant.call(void 0, route, `useFetcher must be used inside a RouteContext`);
1375
+ _chunk5KHO4FMLjs.invariant.call(void 0,
1376
1376
  routeId != null,
1377
1377
  `useFetcher can only be used on routes that contain a unique "id"`
1378
1378
  );
@@ -1387,7 +1387,7 @@ function useFetcher({
1387
1387
  }, [router, fetcherKey]);
1388
1388
  let load = React2.useCallback(
1389
1389
  async (href, opts) => {
1390
- _chunk3JI27NJZjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1390
+ _chunk5KHO4FMLjs.invariant.call(void 0, routeId, "No routeId available for fetcher.load()");
1391
1391
  await router.fetch(fetcherKey, routeId, href, opts);
1392
1392
  },
1393
1393
  [fetcherKey, routeId, router]
@@ -1412,7 +1412,7 @@ function useFetcher({
1412
1412
  FetcherForm2.displayName = "fetcher.Form";
1413
1413
  return FetcherForm2;
1414
1414
  }, [fetcherKey]);
1415
- let fetcher = state.fetchers.get(fetcherKey) || _chunk3JI27NJZjs.IDLE_FETCHER;
1415
+ let fetcher = state.fetchers.get(fetcherKey) || _chunk5KHO4FMLjs.IDLE_FETCHER;
1416
1416
  let data = fetcherData.get(fetcherKey);
1417
1417
  let fetcherWithComponents = React2.useMemo(
1418
1418
  () => ({
@@ -1442,7 +1442,7 @@ function getScrollRestorationKey(location, matches, basename, getKey) {
1442
1442
  key = getKey(
1443
1443
  {
1444
1444
  ...location,
1445
- pathname: _chunk3JI27NJZjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1445
+ pathname: _chunk5KHO4FMLjs.stripBasename.call(void 0, location.pathname, basename) || location.pathname
1446
1446
  },
1447
1447
  matches
1448
1448
  );
@@ -1463,10 +1463,10 @@ function useScrollRestoration({
1463
1463
  let { restoreScrollPosition, preventScrollReset } = useDataRouterState(
1464
1464
  "useScrollRestoration" /* UseScrollRestoration */
1465
1465
  );
1466
- let { basename } = React2.useContext(_chunk3JI27NJZjs.NavigationContext);
1467
- let location = _chunk3JI27NJZjs.useLocation.call(void 0, );
1468
- let matches = _chunk3JI27NJZjs.useMatches.call(void 0, );
1469
- let navigation = _chunk3JI27NJZjs.useNavigation.call(void 0, );
1466
+ let { basename } = React2.useContext(_chunk5KHO4FMLjs.NavigationContext);
1467
+ let location = _chunk5KHO4FMLjs.useLocation.call(void 0, );
1468
+ let matches = _chunk5KHO4FMLjs.useMatches.call(void 0, );
1469
+ let navigation = _chunk5KHO4FMLjs.useNavigation.call(void 0, );
1470
1470
  React2.useEffect(() => {
1471
1471
  window.history.scrollRestoration = "manual";
1472
1472
  return () => {
@@ -1485,7 +1485,7 @@ function useScrollRestoration({
1485
1485
  JSON.stringify(savedScrollPositions)
1486
1486
  );
1487
1487
  } catch (error) {
1488
- _chunk3JI27NJZjs.warning.call(void 0,
1488
+ _chunk5KHO4FMLjs.warning.call(void 0,
1489
1489
  false,
1490
1490
  `Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${error}).`
1491
1491
  );
@@ -1532,7 +1532,7 @@ function useScrollRestoration({
1532
1532
  }
1533
1533
  }
1534
1534
  } catch (e2) {
1535
- _chunk3JI27NJZjs.warning.call(void 0,
1535
+ _chunk5KHO4FMLjs.warning.call(void 0,
1536
1536
  false,
1537
1537
  `"${location.hash.slice(
1538
1538
  1
@@ -1570,7 +1570,7 @@ function usePrompt({
1570
1570
  when,
1571
1571
  message
1572
1572
  }) {
1573
- let blocker = _chunk3JI27NJZjs.useBlocker.call(void 0, when);
1573
+ let blocker = _chunk5KHO4FMLjs.useBlocker.call(void 0, when);
1574
1574
  React2.useEffect(() => {
1575
1575
  if (blocker.state === "blocked") {
1576
1576
  let proceed = window.confirm(message);
@@ -1588,21 +1588,21 @@ function usePrompt({
1588
1588
  }, [blocker, when]);
1589
1589
  }
1590
1590
  function useViewTransitionState(to, opts = {}) {
1591
- let vtContext = React2.useContext(_chunk3JI27NJZjs.ViewTransitionContext);
1592
- _chunk3JI27NJZjs.invariant.call(void 0,
1591
+ let vtContext = React2.useContext(_chunk5KHO4FMLjs.ViewTransitionContext);
1592
+ _chunk5KHO4FMLjs.invariant.call(void 0,
1593
1593
  vtContext != null,
1594
1594
  "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
1595
1595
  );
1596
1596
  let { basename } = useDataRouterContext(
1597
1597
  "useViewTransitionState" /* useViewTransitionState */
1598
1598
  );
1599
- let path = _chunk3JI27NJZjs.useResolvedPath.call(void 0, to, { relative: opts.relative });
1599
+ let path = _chunk5KHO4FMLjs.useResolvedPath.call(void 0, to, { relative: opts.relative });
1600
1600
  if (!vtContext.isTransitioning) {
1601
1601
  return false;
1602
1602
  }
1603
- let currentPath = _chunk3JI27NJZjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1604
- let nextPath = _chunk3JI27NJZjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1605
- return _chunk3JI27NJZjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunk3JI27NJZjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1603
+ let currentPath = _chunk5KHO4FMLjs.stripBasename.call(void 0, vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1604
+ let nextPath = _chunk5KHO4FMLjs.stripBasename.call(void 0, vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1605
+ return _chunk5KHO4FMLjs.matchPath.call(void 0, path.pathname, nextPath) != null || _chunk5KHO4FMLjs.matchPath.call(void 0, path.pathname, currentPath) != null;
1606
1606
  }
1607
1607
 
1608
1608
  // lib/dom/server.tsx
@@ -1613,7 +1613,7 @@ function StaticRouter({
1613
1613
  location: locationProp = "/"
1614
1614
  }) {
1615
1615
  if (typeof locationProp === "string") {
1616
- locationProp = _chunk3JI27NJZjs.parsePath.call(void 0, locationProp);
1616
+ locationProp = _chunk5KHO4FMLjs.parsePath.call(void 0, locationProp);
1617
1617
  }
1618
1618
  let action = "POP" /* Pop */;
1619
1619
  let location = {
@@ -1642,7 +1642,7 @@ function StaticRouterProvider({
1642
1642
  hydrate = true,
1643
1643
  nonce
1644
1644
  }) {
1645
- _chunk3JI27NJZjs.invariant.call(void 0,
1645
+ _chunk5KHO4FMLjs.invariant.call(void 0,
1646
1646
  router && context,
1647
1647
  "You must provide `router` and `context` to <StaticRouterProvider>"
1648
1648
  );
@@ -1665,7 +1665,7 @@ function StaticRouterProvider({
1665
1665
  hydrateScript = `window.__staticRouterHydrationData = JSON.parse(${json});`;
1666
1666
  }
1667
1667
  let { state } = dataRouterContext.router;
1668
- return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunk3JI27NJZjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunk3JI27NJZjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunk3JI27NJZjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunk3JI27NJZjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1668
+ return /* @__PURE__ */ React3.createElement(React3.Fragment, null, /* @__PURE__ */ React3.createElement(_chunk5KHO4FMLjs.DataRouterContext.Provider, { value: dataRouterContext }, /* @__PURE__ */ React3.createElement(_chunk5KHO4FMLjs.DataRouterStateContext.Provider, { value: state }, /* @__PURE__ */ React3.createElement(_chunk5KHO4FMLjs.FetchersContext.Provider, { value: fetchersContext }, /* @__PURE__ */ React3.createElement(_chunk5KHO4FMLjs.ViewTransitionContext.Provider, { value: { isTransitioning: false } }, /* @__PURE__ */ React3.createElement(
1669
1669
  Router,
1670
1670
  {
1671
1671
  basename: dataRouterContext.basename,
@@ -1696,14 +1696,14 @@ function DataRoutes2({
1696
1696
  future,
1697
1697
  state
1698
1698
  }) {
1699
- return _chunk3JI27NJZjs.useRoutesImpl.call(void 0, routes, void 0, state, future);
1699
+ return _chunk5KHO4FMLjs.useRoutesImpl.call(void 0, routes, void 0, state, future);
1700
1700
  }
1701
1701
  function serializeErrors(errors) {
1702
1702
  if (!errors) return null;
1703
1703
  let entries = Object.entries(errors);
1704
1704
  let serialized = {};
1705
1705
  for (let [key, val] of entries) {
1706
- if (_chunk3JI27NJZjs.isRouteErrorResponse.call(void 0, val)) {
1706
+ if (_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, val)) {
1707
1707
  serialized[key] = { ...val, __type: "RouteErrorResponse" };
1708
1708
  } else if (val instanceof Error) {
1709
1709
  serialized[key] = {
@@ -1753,14 +1753,14 @@ function getStatelessNavigator() {
1753
1753
  };
1754
1754
  }
1755
1755
  function createStaticHandler2(routes, opts) {
1756
- return _chunk3JI27NJZjs.createStaticHandler.call(void 0, routes, {
1756
+ return _chunk5KHO4FMLjs.createStaticHandler.call(void 0, routes, {
1757
1757
  ...opts,
1758
1758
  mapRouteProperties
1759
1759
  });
1760
1760
  }
1761
1761
  function createStaticRouter(routes, context, opts = {}) {
1762
1762
  let manifest = {};
1763
- let dataRoutes = _chunk3JI27NJZjs.convertRoutesToDataRoutes.call(void 0,
1763
+ let dataRoutes = _chunk5KHO4FMLjs.convertRoutesToDataRoutes.call(void 0,
1764
1764
  routes,
1765
1765
  mapRouteProperties,
1766
1766
  void 0,
@@ -1793,7 +1793,7 @@ function createStaticRouter(routes, context, opts = {}) {
1793
1793
  actionData: context.actionData,
1794
1794
  errors: context.errors,
1795
1795
  initialized: true,
1796
- navigation: _chunk3JI27NJZjs.IDLE_NAVIGATION,
1796
+ navigation: _chunk5KHO4FMLjs.IDLE_NAVIGATION,
1797
1797
  restoreScrollPosition: null,
1798
1798
  preventScrollReset: false,
1799
1799
  revalidation: "idle",
@@ -1828,7 +1828,7 @@ function createStaticRouter(routes, context, opts = {}) {
1828
1828
  createHref,
1829
1829
  encodeLocation,
1830
1830
  getFetcher() {
1831
- return _chunk3JI27NJZjs.IDLE_FETCHER;
1831
+ return _chunk5KHO4FMLjs.IDLE_FETCHER;
1832
1832
  },
1833
1833
  deleteFetcher() {
1834
1834
  throw msg("deleteFetcher");
@@ -1837,7 +1837,7 @@ function createStaticRouter(routes, context, opts = {}) {
1837
1837
  throw msg("dispose");
1838
1838
  },
1839
1839
  getBlocker() {
1840
- return _chunk3JI27NJZjs.IDLE_BLOCKER;
1840
+ return _chunk5KHO4FMLjs.IDLE_BLOCKER;
1841
1841
  },
1842
1842
  deleteBlocker() {
1843
1843
  throw msg("deleteBlocker");
@@ -1855,10 +1855,10 @@ function createStaticRouter(routes, context, opts = {}) {
1855
1855
  };
1856
1856
  }
1857
1857
  function createHref(to) {
1858
- return typeof to === "string" ? to : _chunk3JI27NJZjs.createPath.call(void 0, to);
1858
+ return typeof to === "string" ? to : _chunk5KHO4FMLjs.createPath.call(void 0, to);
1859
1859
  }
1860
1860
  function encodeLocation(to) {
1861
- let href = typeof to === "string" ? to : _chunk3JI27NJZjs.createPath.call(void 0, to);
1861
+ let href = typeof to === "string" ? to : _chunk5KHO4FMLjs.createPath.call(void 0, to);
1862
1862
  href = href.replace(/ $/, "%20");
1863
1863
  let encoded = ABSOLUTE_URL_REGEX2.test(href) ? new URL(href) : new URL(href, "http://localhost");
1864
1864
  return {