@burdenoff/microfe-devportal 2026.801.1 → 2026.801.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/devportal/AdminDevportalRoutes.js +14 -14
- package/dist/devportal/DevportalRoutes.js +115 -115
- package/dist/devportal/DevportalRoutes.js.map +1 -1
- package/dist/devportal/components/SectionNav.js +1 -0
- package/dist/devportal/components/SectionNav.js.map +1 -1
- package/dist/devportal/components/TelemetryErrorBoundary.js +7 -7
- package/dist/devportal/pages/AnalyticsDashboardPage.js +41 -41
- package/dist/devportal/pages/AnalyticsDashboardPage.js.map +1 -1
- package/dist/devportal/pages/AppLogsPage.js +27 -27
- package/dist/devportal/pages/ApplicationDetailPage.js +929 -929
- package/dist/devportal/pages/ApplicationDetailPage.js.map +1 -1
- package/dist/devportal/pages/ApplicationVersionsPage.js +39 -39
- package/dist/devportal/pages/ApplicationVersionsPage.js.map +1 -1
- package/dist/devportal/pages/CreateWebhookPage.js +55 -55
- package/dist/devportal/pages/EditApplicationPage.js +36 -36
- package/dist/devportal/pages/EditApplicationPage.js.map +1 -1
- package/dist/devportal/pages/EditPhysicalItemPage.js +40 -40
- package/dist/devportal/pages/InvitationDecisionPage.js +25 -25
- package/dist/devportal/pages/ListingPreviewPage.js +36 -36
- package/dist/devportal/pages/OAuthCallbackPage.js +10 -10
- package/dist/devportal/pages/OAuthClientDetailPage.js +27 -27
- package/dist/devportal/pages/OAuthClientDetailPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationDetailPage.js +329 -329
- package/dist/devportal/pages/OrganizationDetailPage.js.map +1 -1
- package/dist/devportal/pages/OrganizationMembersPage.js +181 -181
- package/dist/devportal/pages/OrganizationMembersPage.js.map +1 -1
- package/dist/devportal/pages/PublishPage.js +43 -43
- package/dist/devportal/pages/PublishPage.js.map +1 -1
- package/dist/devportal/pages/RevenueDashboardPage.js +65 -65
- package/dist/devportal/pages/RevenueDashboardPage.js.map +1 -1
- package/dist/devportal/pages/StoreSubmissionPage.js +126 -126
- package/dist/devportal/pages/StoreSubmissionPage.js.map +1 -1
- package/dist/devportal/pages/WebhookDetailPage.js +28 -28
- package/dist/devportal/pages/WebhookDetailPage.js.map +1 -1
- package/dist/devportal/pages/WebhooksPage.js +47 -47
- package/dist/devportal/pages/WebhooksPage.js.map +1 -1
- package/dist/devportal/providers/DevportalProvider.js +12 -12
- package/package.json +1 -1
- package/dist/node_modules/react-router/dist/production/lib/components.js +0 -124
- package/dist/node_modules/react-router/dist/production/lib/components.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/context.js +0 -32
- package/dist/node_modules/react-router/dist/production/lib/context.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/dom.js +0 -83
- package/dist/node_modules/react-router/dist/production/lib/dom/dom.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/lib.js +0 -358
- package/dist/node_modules/react-router/dist/production/lib/dom/lib.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/components.js +0 -188
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/components.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js +0 -8
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/invariant.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/links.js +0 -75
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/links.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/markup.js +0 -15
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/markup.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js +0 -18
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js +0 -10
- package/dist/node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/errors.js +0 -19
- package/dist/node_modules/react-router/dist/production/lib/errors.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/hooks.js +0 -296
- package/dist/node_modules/react-router/dist/production/lib/hooks.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/router/history.js +0 -166
- package/dist/node_modules/react-router/dist/production/lib/router/history.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/router/router.js +0 -33
- package/dist/node_modules/react-router/dist/production/lib/router/router.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/router/url.js +0 -9
- package/dist/node_modules/react-router/dist/production/lib/router/url.js.map +0 -1
- package/dist/node_modules/react-router/dist/production/lib/router/utils.js +0 -236
- package/dist/node_modules/react-router/dist/production/lib/router/utils.js.map +0 -1
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { matchRoutes as e } from "../../router/utils.js";
|
|
2
|
-
import { DataRouterContext as t, DataRouterStateContext as n, useIsRSCRouterContext as r } from "../../context.js";
|
|
3
|
-
import { useLocation as i } from "../../hooks.js";
|
|
4
|
-
import { invariant as a } from "./invariant.js";
|
|
5
|
-
import { singleFetchUrl as o } from "./single-fetch.js";
|
|
6
|
-
import { getKeyedPrefetchLinks as s, getModuleLinkHrefs as c, getNewMatchesForLinks as l } from "./links.js";
|
|
7
|
-
import * as u from "react";
|
|
8
|
-
//#region node_modules/react-router/dist/production/lib/dom/ssr/components.js
|
|
9
|
-
function d() {
|
|
10
|
-
let e = u.useContext(t);
|
|
11
|
-
return a(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
|
|
12
|
-
}
|
|
13
|
-
function f() {
|
|
14
|
-
let e = u.useContext(n);
|
|
15
|
-
return a(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
|
|
16
|
-
}
|
|
17
|
-
var p = u.createContext(void 0);
|
|
18
|
-
p.displayName = "FrameworkContext";
|
|
19
|
-
function m() {
|
|
20
|
-
let e = u.useContext(p);
|
|
21
|
-
return a(e, "You must render this element inside a <HydratedRouter> element"), e;
|
|
22
|
-
}
|
|
23
|
-
function h(e, t) {
|
|
24
|
-
let n = u.useContext(p), [r, i] = u.useState(!1), [a, o] = u.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: d, onTouchStart: f } = t, m = u.useRef(null);
|
|
25
|
-
u.useEffect(() => {
|
|
26
|
-
if (e === "render" && o(!0), e === "viewport") {
|
|
27
|
-
let e = new IntersectionObserver((e) => {
|
|
28
|
-
e.forEach((e) => {
|
|
29
|
-
o(e.isIntersecting);
|
|
30
|
-
});
|
|
31
|
-
}, { threshold: .5 });
|
|
32
|
-
return m.current && e.observe(m.current), () => {
|
|
33
|
-
e.disconnect();
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
}, [e]), u.useEffect(() => {
|
|
37
|
-
if (r) {
|
|
38
|
-
let e = setTimeout(() => {
|
|
39
|
-
o(!0);
|
|
40
|
-
}, 100);
|
|
41
|
-
return () => {
|
|
42
|
-
clearTimeout(e);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
}, [r]);
|
|
46
|
-
let h = () => {
|
|
47
|
-
i(!0);
|
|
48
|
-
}, _ = () => {
|
|
49
|
-
i(!1), o(!1);
|
|
50
|
-
};
|
|
51
|
-
return n ? e === "intent" ? [
|
|
52
|
-
a,
|
|
53
|
-
m,
|
|
54
|
-
{
|
|
55
|
-
onFocus: g(s, h),
|
|
56
|
-
onBlur: g(c, _),
|
|
57
|
-
onMouseEnter: g(l, h),
|
|
58
|
-
onMouseLeave: g(d, _),
|
|
59
|
-
onTouchStart: g(f, h)
|
|
60
|
-
}
|
|
61
|
-
] : [
|
|
62
|
-
a,
|
|
63
|
-
m,
|
|
64
|
-
{}
|
|
65
|
-
] : [
|
|
66
|
-
!1,
|
|
67
|
-
m,
|
|
68
|
-
{}
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
function g(e, t) {
|
|
72
|
-
return (n) => {
|
|
73
|
-
e && e(n), n.defaultPrevented || t(n);
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function _({ page: t, ...n }) {
|
|
77
|
-
let i = r(), { nonce: a } = m(), { router: o } = d(), s = u.useMemo(() => e(o.routes, t, o.basename), [
|
|
78
|
-
o.routes,
|
|
79
|
-
t,
|
|
80
|
-
o.basename
|
|
81
|
-
]);
|
|
82
|
-
return s ? (n.nonce == null && a && (n = {
|
|
83
|
-
...n,
|
|
84
|
-
nonce: a
|
|
85
|
-
}), i ? /* @__PURE__ */ u.createElement(y, {
|
|
86
|
-
page: t,
|
|
87
|
-
matches: s,
|
|
88
|
-
...n
|
|
89
|
-
}) : /* @__PURE__ */ u.createElement(b, {
|
|
90
|
-
page: t,
|
|
91
|
-
matches: s,
|
|
92
|
-
...n
|
|
93
|
-
})) : null;
|
|
94
|
-
}
|
|
95
|
-
function v(e) {
|
|
96
|
-
let { manifest: t, routeModules: n } = m(), [r, i] = u.useState([]);
|
|
97
|
-
return u.useEffect(() => {
|
|
98
|
-
let r = !1;
|
|
99
|
-
return s(e, t, n).then((e) => {
|
|
100
|
-
r || i(e);
|
|
101
|
-
}), () => {
|
|
102
|
-
r = !0;
|
|
103
|
-
};
|
|
104
|
-
}, [
|
|
105
|
-
e,
|
|
106
|
-
t,
|
|
107
|
-
n
|
|
108
|
-
]), r;
|
|
109
|
-
}
|
|
110
|
-
function y({ page: e, matches: t, ...n }) {
|
|
111
|
-
let r = i(), a = u.useMemo(() => {
|
|
112
|
-
if (e === r.pathname + r.search + r.hash) return [];
|
|
113
|
-
let n = o(e, "rsc"), i = !1, a = [];
|
|
114
|
-
for (let e of t) typeof e.route.shouldRevalidate == "function" ? i = !0 : a.push(e.route.id);
|
|
115
|
-
return i && a.length > 0 && n.searchParams.set("_routes", a.join(",")), [n.pathname + n.search];
|
|
116
|
-
}, [
|
|
117
|
-
e,
|
|
118
|
-
r,
|
|
119
|
-
t
|
|
120
|
-
]);
|
|
121
|
-
return /* @__PURE__ */ u.createElement(u.Fragment, null, a.map((e) => /* @__PURE__ */ u.createElement("link", {
|
|
122
|
-
key: e,
|
|
123
|
-
rel: "prefetch",
|
|
124
|
-
as: "fetch",
|
|
125
|
-
href: e,
|
|
126
|
-
...n
|
|
127
|
-
})));
|
|
128
|
-
}
|
|
129
|
-
function b({ page: e, matches: t, ...n }) {
|
|
130
|
-
let r = i(), { manifest: a, routeModules: s } = m(), { loaderData: d, matches: p } = f(), h = u.useMemo(() => l(e, t, p, a, r, "data"), [
|
|
131
|
-
e,
|
|
132
|
-
t,
|
|
133
|
-
p,
|
|
134
|
-
a,
|
|
135
|
-
r
|
|
136
|
-
]), g = u.useMemo(() => l(e, t, p, a, r, "assets"), [
|
|
137
|
-
e,
|
|
138
|
-
t,
|
|
139
|
-
p,
|
|
140
|
-
a,
|
|
141
|
-
r
|
|
142
|
-
]), _ = u.useMemo(() => {
|
|
143
|
-
if (e === r.pathname + r.search + r.hash) return [];
|
|
144
|
-
let n = /* @__PURE__ */ new Set(), i = !1;
|
|
145
|
-
if (t.forEach((e) => {
|
|
146
|
-
let t = a.routes[e.route.id];
|
|
147
|
-
!t || !t.hasLoader || (!h.some((t) => t.route.id === e.route.id) && e.route.id in d && s[e.route.id]?.shouldRevalidate || t.hasClientLoader ? i = !0 : n.add(e.route.id));
|
|
148
|
-
}), n.size === 0) return [];
|
|
149
|
-
let c = o(e, "data");
|
|
150
|
-
return i && n.size > 0 && c.searchParams.set("_routes", t.filter((e) => n.has(e.route.id)).map((e) => e.route.id).join(",")), [c.pathname + c.search];
|
|
151
|
-
}, [
|
|
152
|
-
d,
|
|
153
|
-
r,
|
|
154
|
-
a,
|
|
155
|
-
h,
|
|
156
|
-
t,
|
|
157
|
-
e,
|
|
158
|
-
s
|
|
159
|
-
]), y = u.useMemo(() => c(g, a), [g, a]), b = v(g);
|
|
160
|
-
return /* @__PURE__ */ u.createElement(u.Fragment, null, _.map((e) => /* @__PURE__ */ u.createElement("link", {
|
|
161
|
-
key: e,
|
|
162
|
-
rel: "prefetch",
|
|
163
|
-
as: "fetch",
|
|
164
|
-
href: e,
|
|
165
|
-
...n
|
|
166
|
-
})), y.map((e) => /* @__PURE__ */ u.createElement("link", {
|
|
167
|
-
key: e,
|
|
168
|
-
rel: "modulepreload",
|
|
169
|
-
href: e,
|
|
170
|
-
...n
|
|
171
|
-
})), b.map(({ key: e, link: t }) => /* @__PURE__ */ u.createElement("link", {
|
|
172
|
-
key: e,
|
|
173
|
-
nonce: n.nonce,
|
|
174
|
-
...t,
|
|
175
|
-
crossOrigin: t.crossOrigin ?? n.crossOrigin
|
|
176
|
-
})));
|
|
177
|
-
}
|
|
178
|
-
function x(...e) {
|
|
179
|
-
return (t) => {
|
|
180
|
-
e.forEach((e) => {
|
|
181
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
//#endregion
|
|
186
|
-
export { p as FrameworkContext, _ as PrefetchPageLinks, x as mergeRefs, h as usePrefetchBehavior };
|
|
187
|
-
|
|
188
|
-
//# sourceMappingURL=components.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/components.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { matchRoutes } from \"../../router/utils.js\";\nimport { DataRouterContext, DataRouterStateContext, useIsRSCRouterContext } from \"../../context.js\";\nimport { useLocation } from \"../../hooks.js\";\nimport { warnOnce } from \"../../server-runtime/warnings.js\";\nimport invariant from \"./invariant.js\";\nimport { getKeyedLinksForMatches, getKeyedPrefetchLinks, getModuleLinkHrefs, getNewMatchesForLinks, isPageLinkDescriptor } from \"./links.js\";\nimport { escapeHtml } from \"./markup.js\";\nimport { singleFetchUrl } from \"./single-fetch.js\";\nimport { getPartialManifest, isFogOfWarEnabled } from \"./fog-of-war.js\";\nimport * as React$1 from \"react\";\n//#region lib/dom/ssr/components.tsx\nfunction useDataRouterContext() {\n\tlet context = React$1.useContext(DataRouterContext);\n\tinvariant(context, \"You must render this element inside a <DataRouterContext.Provider> element\");\n\treturn context;\n}\nfunction useDataRouterStateContext() {\n\tlet context = React$1.useContext(DataRouterStateContext);\n\tinvariant(context, \"You must render this element inside a <DataRouterStateContext.Provider> element\");\n\treturn context;\n}\nconst FrameworkContext = React$1.createContext(void 0);\nFrameworkContext.displayName = \"FrameworkContext\";\nfunction useFrameworkContext() {\n\tlet context = React$1.useContext(FrameworkContext);\n\tinvariant(context, \"You must render this element inside a <HydratedRouter> element\");\n\treturn context;\n}\nfunction usePrefetchBehavior(prefetch, theirElementProps) {\n\tlet frameworkContext = React$1.useContext(FrameworkContext);\n\tlet [maybePrefetch, setMaybePrefetch] = React$1.useState(false);\n\tlet [shouldPrefetch, setShouldPrefetch] = React$1.useState(false);\n\tlet { onFocus, onBlur, onMouseEnter, onMouseLeave, onTouchStart } = theirElementProps;\n\tlet ref = React$1.useRef(null);\n\tReact$1.useEffect(() => {\n\t\tif (prefetch === \"render\") setShouldPrefetch(true);\n\t\tif (prefetch === \"viewport\") {\n\t\t\tlet callback = (entries) => {\n\t\t\t\tentries.forEach((entry) => {\n\t\t\t\t\tsetShouldPrefetch(entry.isIntersecting);\n\t\t\t\t});\n\t\t\t};\n\t\t\tlet observer = new IntersectionObserver(callback, { threshold: .5 });\n\t\t\tif (ref.current) observer.observe(ref.current);\n\t\t\treturn () => {\n\t\t\t\tobserver.disconnect();\n\t\t\t};\n\t\t}\n\t}, [prefetch]);\n\tReact$1.useEffect(() => {\n\t\tif (maybePrefetch) {\n\t\t\tlet id = setTimeout(() => {\n\t\t\t\tsetShouldPrefetch(true);\n\t\t\t}, 100);\n\t\t\treturn () => {\n\t\t\t\tclearTimeout(id);\n\t\t\t};\n\t\t}\n\t}, [maybePrefetch]);\n\tlet setIntent = () => {\n\t\tsetMaybePrefetch(true);\n\t};\n\tlet cancelIntent = () => {\n\t\tsetMaybePrefetch(false);\n\t\tsetShouldPrefetch(false);\n\t};\n\tif (!frameworkContext) return [\n\t\tfalse,\n\t\tref,\n\t\t{}\n\t];\n\tif (prefetch !== \"intent\") return [\n\t\tshouldPrefetch,\n\t\tref,\n\t\t{}\n\t];\n\treturn [\n\t\tshouldPrefetch,\n\t\tref,\n\t\t{\n\t\t\tonFocus: composeEventHandlers(onFocus, setIntent),\n\t\t\tonBlur: composeEventHandlers(onBlur, cancelIntent),\n\t\t\tonMouseEnter: composeEventHandlers(onMouseEnter, setIntent),\n\t\t\tonMouseLeave: composeEventHandlers(onMouseLeave, cancelIntent),\n\t\t\tonTouchStart: composeEventHandlers(onTouchStart, setIntent)\n\t\t}\n\t];\n}\nfunction composeEventHandlers(theirHandler, ourHandler) {\n\treturn (event) => {\n\t\ttheirHandler && theirHandler(event);\n\t\tif (!event.defaultPrevented) ourHandler(event);\n\t};\n}\nfunction getActiveMatches(matches, errors, isSpaMode) {\n\tif (isSpaMode && !isHydrated) return [matches[0]];\n\tif (errors) {\n\t\tlet errorIdx = matches.findIndex((m) => errors[m.route.id] !== void 0);\n\t\treturn matches.slice(0, errorIdx + 1);\n\t}\n\treturn matches;\n}\nconst CRITICAL_CSS_DATA_ATTRIBUTE = \"data-react-router-critical-css\";\n/**\n* Renders all the [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)\n* tags created by the route module's [`links`](../../start/framework/route-module#links)\n* export. You should render it inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)\n* of your document.\n*\n* @example\n* import { Links } from \"react-router\";\n*\n* export default function Root() {\n* return (\n* <html>\n* <head>\n* <Links />\n* </head>\n* <body></body>\n* </html>\n* );\n* }\n*\n* @public\n* @category Components\n* @mode framework\n* @param props Props\n* @param {LinksProps.nonce} props.nonce n/a\n* @param {LinksProps.crossOrigin} props.crossOrigin n/a\n* @returns A collection of React elements for [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)\n* tags\n*/\nfunction Links({ nonce, crossOrigin }) {\n\tlet { isSpaMode, manifest, routeModules, criticalCss, nonce: contextNonce } = useFrameworkContext();\n\tlet { errors, matches: routerMatches } = useDataRouterStateContext();\n\tlet matches = getActiveMatches(routerMatches, errors, isSpaMode);\n\tlet keyedLinks = React$1.useMemo(() => getKeyedLinksForMatches(matches, routeModules, manifest), [\n\t\tmatches,\n\t\trouteModules,\n\t\tmanifest\n\t]);\n\tif (nonce == null && contextNonce) nonce = contextNonce;\n\treturn /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, typeof criticalCss === \"string\" ? /* @__PURE__ */ React$1.createElement(\"style\", {\n\t\t[CRITICAL_CSS_DATA_ATTRIBUTE]: \"\",\n\t\tnonce,\n\t\tdangerouslySetInnerHTML: { __html: criticalCss }\n\t}) : null, typeof criticalCss === \"object\" ? /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\t[CRITICAL_CSS_DATA_ATTRIBUTE]: \"\",\n\t\trel: \"stylesheet\",\n\t\thref: criticalCss.href,\n\t\tnonce,\n\t\tcrossOrigin\n\t}) : null, keyedLinks.map(({ key, link }) => isPageLinkDescriptor(link) ? /* @__PURE__ */ React$1.createElement(PrefetchPageLinks, {\n\t\tkey,\n\t\tnonce,\n\t\t...link,\n\t\tcrossOrigin: link.crossOrigin ?? crossOrigin\n\t}) : /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey,\n\t\tnonce,\n\t\t...link,\n\t\tcrossOrigin: link.crossOrigin ?? crossOrigin\n\t})));\n}\n/**\n* Renders [`<link rel=prefetch|modulepreload>`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)\n* tags for modules and data of another page to enable an instant navigation to\n* that page. [`<Link prefetch>`](./Link#prefetch) uses this internally, but you\n* can render it to prefetch a page for any other reason.\n*\n* For example, you may render one of this as the user types into a search field\n* to prefetch search results before they click through to their selection.\n*\n* @example\n* import { PrefetchPageLinks } from \"react-router\";\n*\n* <PrefetchPageLinks page=\"/absolute/path\" />\n*\n* @public\n* @category Components\n* @mode framework\n* @param props Props\n* @param {PageLinkDescriptor.page} props.page n/a\n* @param props.linkProps Additional props to spread onto the [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)\n* tags, such as [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin),\n* [`integrity`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity),\n* [`rel`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel),\n* etc.\n* @returns A collection of React elements for [`<link>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link)\n* tags\n*/\nfunction PrefetchPageLinks({ page, ...linkProps }) {\n\tlet rsc = useIsRSCRouterContext();\n\tlet { nonce: contextNonce } = useFrameworkContext();\n\tlet { router } = useDataRouterContext();\n\tlet matches = React$1.useMemo(() => matchRoutes(router.routes, page, router.basename), [\n\t\trouter.routes,\n\t\tpage,\n\t\trouter.basename\n\t]);\n\tif (!matches) return null;\n\tif (linkProps.nonce == null && contextNonce) linkProps = {\n\t\t...linkProps,\n\t\tnonce: contextNonce\n\t};\n\tif (rsc) return /* @__PURE__ */ React$1.createElement(RSCPrefetchPageLinksImpl, {\n\t\tpage,\n\t\tmatches,\n\t\t...linkProps\n\t});\n\treturn /* @__PURE__ */ React$1.createElement(PrefetchPageLinksImpl, {\n\t\tpage,\n\t\tmatches,\n\t\t...linkProps\n\t});\n}\nfunction useKeyedPrefetchLinks(matches) {\n\tlet { manifest, routeModules } = useFrameworkContext();\n\tlet [keyedPrefetchLinks, setKeyedPrefetchLinks] = React$1.useState([]);\n\tReact$1.useEffect(() => {\n\t\tlet interrupted = false;\n\t\tgetKeyedPrefetchLinks(matches, manifest, routeModules).then((links) => {\n\t\t\tif (!interrupted) setKeyedPrefetchLinks(links);\n\t\t});\n\t\treturn () => {\n\t\t\tinterrupted = true;\n\t\t};\n\t}, [\n\t\tmatches,\n\t\tmanifest,\n\t\trouteModules\n\t]);\n\treturn keyedPrefetchLinks;\n}\nfunction RSCPrefetchPageLinksImpl({ page, matches: nextMatches, ...linkProps }) {\n\tlet location = useLocation();\n\tlet dataHrefs = React$1.useMemo(() => {\n\t\tif (page === location.pathname + location.search + location.hash) return [];\n\t\tlet url = singleFetchUrl(page, \"rsc\");\n\t\tlet hasSomeRoutesWithShouldRevalidate = false;\n\t\tlet targetRoutes = [];\n\t\tfor (let match of nextMatches) if (typeof match.route.shouldRevalidate === \"function\") hasSomeRoutesWithShouldRevalidate = true;\n\t\telse targetRoutes.push(match.route.id);\n\t\tif (hasSomeRoutesWithShouldRevalidate && targetRoutes.length > 0) url.searchParams.set(\"_routes\", targetRoutes.join(\",\"));\n\t\treturn [url.pathname + url.search];\n\t}, [\n\t\tpage,\n\t\tlocation,\n\t\tnextMatches\n\t]);\n\treturn /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey: href,\n\t\trel: \"prefetch\",\n\t\tas: \"fetch\",\n\t\thref,\n\t\t...linkProps\n\t})));\n}\nfunction PrefetchPageLinksImpl({ page, matches: nextMatches, ...linkProps }) {\n\tlet location = useLocation();\n\tlet { manifest, routeModules } = useFrameworkContext();\n\tlet { loaderData, matches } = useDataRouterStateContext();\n\tlet newMatchesForData = React$1.useMemo(() => getNewMatchesForLinks(page, nextMatches, matches, manifest, location, \"data\"), [\n\t\tpage,\n\t\tnextMatches,\n\t\tmatches,\n\t\tmanifest,\n\t\tlocation\n\t]);\n\tlet newMatchesForAssets = React$1.useMemo(() => getNewMatchesForLinks(page, nextMatches, matches, manifest, location, \"assets\"), [\n\t\tpage,\n\t\tnextMatches,\n\t\tmatches,\n\t\tmanifest,\n\t\tlocation\n\t]);\n\tlet dataHrefs = React$1.useMemo(() => {\n\t\tif (page === location.pathname + location.search + location.hash) return [];\n\t\tlet routesParams = /* @__PURE__ */ new Set();\n\t\tlet foundOptOutRoute = false;\n\t\tnextMatches.forEach((m) => {\n\t\t\tlet manifestRoute = manifest.routes[m.route.id];\n\t\t\tif (!manifestRoute || !manifestRoute.hasLoader) return;\n\t\t\tif (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && routeModules[m.route.id]?.shouldRevalidate) foundOptOutRoute = true;\n\t\t\telse if (manifestRoute.hasClientLoader) foundOptOutRoute = true;\n\t\t\telse routesParams.add(m.route.id);\n\t\t});\n\t\tif (routesParams.size === 0) return [];\n\t\tlet url = singleFetchUrl(page, \"data\");\n\t\tif (foundOptOutRoute && routesParams.size > 0) url.searchParams.set(\"_routes\", nextMatches.filter((m) => routesParams.has(m.route.id)).map((m) => m.route.id).join(\",\"));\n\t\treturn [url.pathname + url.search];\n\t}, [\n\t\tloaderData,\n\t\tlocation,\n\t\tmanifest,\n\t\tnewMatchesForData,\n\t\tnextMatches,\n\t\tpage,\n\t\trouteModules\n\t]);\n\tlet moduleHrefs = React$1.useMemo(() => getModuleLinkHrefs(newMatchesForAssets, manifest), [newMatchesForAssets, manifest]);\n\tlet keyedPrefetchLinks = useKeyedPrefetchLinks(newMatchesForAssets);\n\treturn /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey: href,\n\t\trel: \"prefetch\",\n\t\tas: \"fetch\",\n\t\thref,\n\t\t...linkProps\n\t})), moduleHrefs.map((href) => /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey: href,\n\t\trel: \"modulepreload\",\n\t\thref,\n\t\t...linkProps\n\t})), keyedPrefetchLinks.map(({ key, link }) => /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey,\n\t\tnonce: linkProps.nonce,\n\t\t...link,\n\t\tcrossOrigin: link.crossOrigin ?? linkProps.crossOrigin\n\t})));\n}\n/**\n* Renders all the [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta)\n* tags created by the route module's [`meta`](../../start/framework/route-module#meta)\n* export. You should render it inside the [`<head>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head)\n* of your document.\n*\n* @example\n* import { Meta } from \"react-router\";\n*\n* export default function Root() {\n* return (\n* <html>\n* <head>\n* <Meta />\n* </head>\n* </html>\n* );\n* }\n*\n* @public\n* @category Components\n* @mode framework\n* @returns A collection of React elements for [`<meta>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta)\n* tags\n*/\nfunction Meta() {\n\tlet { isSpaMode, routeModules } = useFrameworkContext();\n\tlet { errors, matches: routerMatches, loaderData } = useDataRouterStateContext();\n\tlet location = useLocation();\n\tlet _matches = getActiveMatches(routerMatches, errors, isSpaMode);\n\tlet error = null;\n\tif (errors) error = errors[_matches[_matches.length - 1].route.id];\n\tlet meta = [];\n\tlet leafMeta = null;\n\tlet matches = [];\n\tfor (let i = 0; i < _matches.length; i++) {\n\t\tlet _match = _matches[i];\n\t\tlet routeId = _match.route.id;\n\t\tlet data = loaderData[routeId];\n\t\tlet params = _match.params;\n\t\tlet routeModule = routeModules[routeId];\n\t\tlet routeMeta = [];\n\t\tlet match = {\n\t\t\tid: routeId,\n\t\t\tloaderData: data,\n\t\t\tmeta: [],\n\t\t\tparams: _match.params,\n\t\t\tpathname: _match.pathname,\n\t\t\thandle: _match.route.handle,\n\t\t\terror\n\t\t};\n\t\tmatches[i] = match;\n\t\tif (routeModule?.meta) routeMeta = typeof routeModule.meta === \"function\" ? routeModule.meta({\n\t\t\tloaderData: data,\n\t\t\tparams,\n\t\t\tlocation,\n\t\t\tmatches,\n\t\t\terror\n\t\t}) : Array.isArray(routeModule.meta) ? [...routeModule.meta] : routeModule.meta;\n\t\telse if (leafMeta) routeMeta = [...leafMeta];\n\t\trouteMeta = routeMeta || [];\n\t\tif (!Array.isArray(routeMeta)) throw new Error(\"The route at \" + _match.route.path + \" returns an invalid value. All route meta functions must return an array of meta objects.\\n\\nTo reference the meta function API, see https://reactrouter.com/start/framework/route-module#meta\");\n\t\tmatch.meta = routeMeta;\n\t\tmatches[i] = match;\n\t\tmeta = [...routeMeta];\n\t\tleafMeta = meta;\n\t}\n\treturn /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, meta.flat().map((metaProps) => {\n\t\tif (!metaProps) return null;\n\t\tif (\"tagName\" in metaProps) {\n\t\t\tlet { tagName, ...rest } = metaProps;\n\t\t\tif (!isValidMetaTag(tagName)) {\n\t\t\t\tconsole.warn(`A meta object uses an invalid tagName: ${tagName}. Expected either 'link' or 'meta'`);\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tlet Comp = tagName;\n\t\t\treturn /* @__PURE__ */ React$1.createElement(Comp, {\n\t\t\t\tkey: JSON.stringify(rest),\n\t\t\t\t...rest\n\t\t\t});\n\t\t}\n\t\tif (\"title\" in metaProps) return /* @__PURE__ */ React$1.createElement(\"title\", { key: \"title\" }, String(metaProps.title));\n\t\tif (\"charset\" in metaProps) {\n\t\t\tmetaProps.charSet ??= metaProps.charset;\n\t\t\tdelete metaProps.charset;\n\t\t}\n\t\tif (\"charSet\" in metaProps && metaProps.charSet != null) return typeof metaProps.charSet === \"string\" ? /* @__PURE__ */ React$1.createElement(\"meta\", {\n\t\t\tkey: \"charSet\",\n\t\t\tcharSet: metaProps.charSet\n\t\t}) : null;\n\t\tif (\"script:ld+json\" in metaProps) try {\n\t\t\tlet json = JSON.stringify(metaProps[\"script:ld+json\"]);\n\t\t\treturn /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\t\t\tkey: `script:ld+json:${json}`,\n\t\t\t\ttype: \"application/ld+json\",\n\t\t\t\tdangerouslySetInnerHTML: { __html: escapeHtml(json) }\n\t\t\t});\n\t\t} catch (e) {\n\t\t\treturn null;\n\t\t}\n\t\treturn /* @__PURE__ */ React$1.createElement(\"meta\", {\n\t\t\tkey: JSON.stringify(metaProps),\n\t\t\t...metaProps\n\t\t});\n\t}));\n}\nfunction isValidMetaTag(tagName) {\n\treturn typeof tagName === \"string\" && /^(meta|link)$/.test(tagName);\n}\n/**\n* Tracks whether hydration is finished, so scripts can be skipped\n* during client-side updates.\n*/\nlet isHydrated = false;\nfunction setIsHydrated() {\n\tisHydrated = true;\n}\n/**\n* Renders the client runtime of your app. It should be rendered inside the\n* [`<body>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body)\n* of the document.\n*\n* If server rendering, you can omit `<Scripts/>` and the app will work as a\n* traditional web app without JavaScript, relying solely on HTML and browser\n* behaviors.\n*\n* @example\n* import { Scripts } from \"react-router\";\n*\n* export default function Root() {\n* return (\n* <html>\n* <head />\n* <body>\n* <Scripts />\n* </body>\n* </html>\n* );\n* }\n*\n* @public\n* @category Components\n* @mode framework\n* @param scriptProps Additional props to spread onto the [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)\n* tags, such as [`crossOrigin`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin),\n* [`nonce`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/nonce),\n* etc.\n* @returns A collection of React elements for [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script)\n* tags\n*/\nfunction Scripts(scriptProps) {\n\tlet { manifest, serverHandoffString, isSpaMode, renderMeta, routeDiscovery, ssr, nonce: contextNonce } = useFrameworkContext();\n\tlet { router, static: isStatic, staticContext } = useDataRouterContext();\n\tlet { matches: routerMatches } = useDataRouterStateContext();\n\tlet isRSCRouterContext = useIsRSCRouterContext();\n\tlet enableFogOfWar = isFogOfWarEnabled(routeDiscovery, ssr);\n\tif (scriptProps.nonce == null && contextNonce) scriptProps = {\n\t\t...scriptProps,\n\t\tnonce: contextNonce\n\t};\n\tif (renderMeta) renderMeta.didRenderScripts = true;\n\tlet matches = getActiveMatches(routerMatches, null, isSpaMode);\n\tReact$1.useEffect(() => {\n\t\tsetIsHydrated();\n\t}, []);\n\tlet initialScripts = React$1.useMemo(() => {\n\t\tif (isRSCRouterContext) return null;\n\t\tlet contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());` : \" \";\n\t\tlet routeModulesScript = !isStatic ? \" \" : `${manifest.hmr?.runtime ? `import ${JSON.stringify(manifest.hmr.runtime)};` : \"\"}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : \"\"};\n${matches.map((match, routeIndex) => {\n\t\t\tlet routeVarName = `route${routeIndex}`;\n\t\t\tlet manifestEntry = manifest.routes[match.route.id];\n\t\t\tinvariant(manifestEntry, `Route ${match.route.id} not found in manifest`);\n\t\t\tlet { clientActionModule, clientLoaderModule, clientMiddlewareModule, hydrateFallbackModule, module } = manifestEntry;\n\t\t\tlet chunks = [\n\t\t\t\t...clientActionModule ? [{\n\t\t\t\t\tmodule: clientActionModule,\n\t\t\t\t\tvarName: `${routeVarName}_clientAction`\n\t\t\t\t}] : [],\n\t\t\t\t...clientLoaderModule ? [{\n\t\t\t\t\tmodule: clientLoaderModule,\n\t\t\t\t\tvarName: `${routeVarName}_clientLoader`\n\t\t\t\t}] : [],\n\t\t\t\t...clientMiddlewareModule ? [{\n\t\t\t\t\tmodule: clientMiddlewareModule,\n\t\t\t\t\tvarName: `${routeVarName}_clientMiddleware`\n\t\t\t\t}] : [],\n\t\t\t\t...hydrateFallbackModule ? [{\n\t\t\t\t\tmodule: hydrateFallbackModule,\n\t\t\t\t\tvarName: `${routeVarName}_HydrateFallback`\n\t\t\t\t}] : [],\n\t\t\t\t{\n\t\t\t\t\tmodule,\n\t\t\t\t\tvarName: `${routeVarName}_main`\n\t\t\t\t}\n\t\t\t];\n\t\t\tif (chunks.length === 1) return `import * as ${routeVarName} from ${JSON.stringify(module)};`;\n\t\t\treturn [chunks.map((chunk) => `import * as ${chunk.varName} from \"${chunk.module}\";`).join(\"\\n\"), `const ${routeVarName} = {${chunks.map((chunk) => `...${chunk.varName}`).join(\",\")}};`].join(\"\\n\");\n\t\t}).join(\"\\n\")}\n ${enableFogOfWar ? `window.__reactRouterManifest = ${JSON.stringify(getPartialManifest(manifest, router), null, 2)};` : \"\"}\n window.__reactRouterRouteModules = {${matches.map((match, index) => `${JSON.stringify(match.route.id)}:route${index}`).join(\",\")}};\n\nimport(${JSON.stringify(manifest.entry.module)});`;\n\t\treturn /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\t\t...scriptProps,\n\t\t\tsuppressHydrationWarning: true,\n\t\t\tdangerouslySetInnerHTML: { __html: contextScript },\n\t\t\ttype: void 0\n\t\t}), /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\t\t...scriptProps,\n\t\t\tsuppressHydrationWarning: true,\n\t\t\tdangerouslySetInnerHTML: { __html: routeModulesScript },\n\t\t\ttype: \"module\",\n\t\t\tasync: true\n\t\t}));\n\t}, []);\n\tlet preloads = isHydrated || isRSCRouterContext ? [] : [...new Set(manifest.entry.imports.concat(getModuleLinkHrefs(matches, manifest, { includeHydrateFallback: true })))];\n\tlet sri = typeof manifest.sri === \"object\" ? manifest.sri : {};\n\twarnOnce(!isRSCRouterContext, \"The <Scripts /> element is a no-op when using RSC and can be safely removed.\");\n\treturn isHydrated || isRSCRouterContext ? null : /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, typeof manifest.sri === \"object\" ? /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\t...scriptProps,\n\t\t\"rr-importmap\": \"\",\n\t\ttype: \"importmap\",\n\t\tsuppressHydrationWarning: true,\n\t\tdangerouslySetInnerHTML: { __html: JSON.stringify({ integrity: sri }) }\n\t}) : null, !enableFogOfWar ? /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\trel: \"modulepreload\",\n\t\thref: manifest.url,\n\t\tcrossOrigin: scriptProps.crossOrigin,\n\t\tintegrity: sri[manifest.url],\n\t\tnonce: scriptProps.nonce,\n\t\tsuppressHydrationWarning: true\n\t}) : null, /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\trel: \"modulepreload\",\n\t\thref: manifest.entry.module,\n\t\tcrossOrigin: scriptProps.crossOrigin,\n\t\tintegrity: sri[manifest.entry.module],\n\t\tnonce: scriptProps.nonce,\n\t\tsuppressHydrationWarning: true\n\t}), preloads.map((path) => /* @__PURE__ */ React$1.createElement(\"link\", {\n\t\tkey: path,\n\t\trel: \"modulepreload\",\n\t\thref: path,\n\t\tcrossOrigin: scriptProps.crossOrigin,\n\t\tintegrity: sri[path],\n\t\tnonce: scriptProps.nonce,\n\t\tsuppressHydrationWarning: true\n\t})), initialScripts);\n}\nfunction mergeRefs(...refs) {\n\treturn (value) => {\n\t\trefs.forEach((ref) => {\n\t\t\tif (typeof ref === \"function\") ref(value);\n\t\t\telse if (ref != null) ref.current = value;\n\t\t});\n\t};\n}\n//#endregion\nexport { CRITICAL_CSS_DATA_ATTRIBUTE, FrameworkContext, Links, Meta, PrefetchPageLinks, Scripts, mergeRefs, setIsHydrated, useFrameworkContext, usePrefetchBehavior };\n"],"x_google_ignoreList":[0],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invariant.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/invariant.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n//#region lib/dom/ssr/invariant.ts\nfunction invariant(value, message) {\n\tif (value === false || value === null || typeof value === \"undefined\") throw new Error(message);\n}\n//#endregion\nexport { invariant as default };\n"],"x_google_ignoreList":[0],"mappings":";AAWA,SAAS,EAAU,GAAO,GAAS;AAClC,KAAI,MAAU,MAAS,KAAU,KAAsC,OAAU,MAAM,EAAQ"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { loadRouteModule as e } from "./routeModules.js";
|
|
2
|
-
//#region node_modules/react-router/dist/production/lib/dom/ssr/links.js
|
|
3
|
-
function t(e) {
|
|
4
|
-
return e != null && typeof e.page == "string";
|
|
5
|
-
}
|
|
6
|
-
function n(e) {
|
|
7
|
-
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
8
|
-
}
|
|
9
|
-
async function r(t, r, i) {
|
|
10
|
-
return c((await Promise.all(t.map(async (t) => {
|
|
11
|
-
let n = r.routes[t.route.id];
|
|
12
|
-
if (n) {
|
|
13
|
-
let t = await e(n, i);
|
|
14
|
-
return t.links ? t.links() : [];
|
|
15
|
-
}
|
|
16
|
-
return [];
|
|
17
|
-
}))).flat(1).filter(n).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
|
|
18
|
-
...e,
|
|
19
|
-
rel: "prefetch",
|
|
20
|
-
as: "style"
|
|
21
|
-
} : {
|
|
22
|
-
...e,
|
|
23
|
-
rel: "prefetch"
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
function i(e, t, n, r, i, a) {
|
|
27
|
-
let o = (e, t) => n[t] ? e.route.id !== n[t].route.id : !0, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
|
|
28
|
-
return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
|
|
29
|
-
let c = r.routes[t.route.id];
|
|
30
|
-
if (!c || !c.hasLoader) return !1;
|
|
31
|
-
if (o(t, a) || s(t, a)) return !0;
|
|
32
|
-
if (t.route.shouldRevalidate) {
|
|
33
|
-
let r = t.route.shouldRevalidate({
|
|
34
|
-
currentUrl: new URL(i.pathname + i.search + i.hash, window.origin),
|
|
35
|
-
currentParams: n[0]?.params || {},
|
|
36
|
-
nextUrl: new URL(e, window.origin),
|
|
37
|
-
nextParams: t.params,
|
|
38
|
-
defaultShouldRevalidate: !0
|
|
39
|
-
});
|
|
40
|
-
if (typeof r == "boolean") return r;
|
|
41
|
-
}
|
|
42
|
-
return !0;
|
|
43
|
-
}) : [];
|
|
44
|
-
}
|
|
45
|
-
function a(e, t, { includeHydrateFallback: n } = {}) {
|
|
46
|
-
return o(e.map((e) => {
|
|
47
|
-
let r = t.routes[e.route.id];
|
|
48
|
-
if (!r) return [];
|
|
49
|
-
let i = [r.module];
|
|
50
|
-
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
51
|
-
}).flat(1));
|
|
52
|
-
}
|
|
53
|
-
function o(e) {
|
|
54
|
-
return [...new Set(e)];
|
|
55
|
-
}
|
|
56
|
-
function s(e) {
|
|
57
|
-
let t = {}, n = Object.keys(e).sort();
|
|
58
|
-
for (let r of n) t[r] = e[r];
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function c(e, n) {
|
|
62
|
-
let r = /* @__PURE__ */ new Set(), i = new Set(n);
|
|
63
|
-
return e.reduce((e, a) => {
|
|
64
|
-
if (n && !t(a) && a.as === "script" && a.href && i.has(a.href)) return e;
|
|
65
|
-
let o = JSON.stringify(s(a));
|
|
66
|
-
return r.has(o) || (r.add(o), e.push({
|
|
67
|
-
key: o,
|
|
68
|
-
link: a
|
|
69
|
-
})), e;
|
|
70
|
-
}, []);
|
|
71
|
-
}
|
|
72
|
-
//#endregion
|
|
73
|
-
export { r as getKeyedPrefetchLinks, a as getModuleLinkHrefs, i as getNewMatchesForLinks };
|
|
74
|
-
|
|
75
|
-
//# sourceMappingURL=links.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"links.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/links.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { loadRouteModule } from \"./routeModules.js\";\n//#region lib/dom/ssr/links.ts\n/**\n* Gets all the links for a set of matches. The modules are assumed to have been\n* loaded already.\n*/\nfunction getKeyedLinksForMatches(matches, routeModules, manifest) {\n\treturn dedupeLinkDescriptors(matches.map((match) => {\n\t\tlet module = routeModules[match.route.id];\n\t\tlet route = manifest.routes[match.route.id];\n\t\treturn [route && route.css ? route.css.map((href) => ({\n\t\t\trel: \"stylesheet\",\n\t\t\thref\n\t\t})) : [], module?.links?.() || []];\n\t}).flat(2), getModuleLinkHrefs(matches, manifest));\n}\nfunction getRouteCssDescriptors(route) {\n\tif (!route.css) return [];\n\treturn route.css.map((href) => ({\n\t\trel: \"stylesheet\",\n\t\thref\n\t}));\n}\nasync function prefetchRouteCss(route) {\n\tif (!route.css) return;\n\tlet descriptors = getRouteCssDescriptors(route);\n\tawait Promise.all(descriptors.map(prefetchStyleLink));\n}\nasync function prefetchStyleLinks(route, routeModule) {\n\tif (!route.css && !routeModule.links || !isPreloadSupported()) return;\n\tlet descriptors = [];\n\tif (route.css) descriptors.push(...getRouteCssDescriptors(route));\n\tif (routeModule.links) descriptors.push(...routeModule.links());\n\tif (descriptors.length === 0) return;\n\tlet styleLinks = [];\n\tfor (let descriptor of descriptors) if (!isPageLinkDescriptor(descriptor) && descriptor.rel === \"stylesheet\") styleLinks.push({\n\t\t...descriptor,\n\t\trel: \"preload\",\n\t\tas: \"style\"\n\t});\n\tawait Promise.all(styleLinks.map(prefetchStyleLink));\n}\nasync function prefetchStyleLink(descriptor) {\n\treturn new Promise((resolve) => {\n\t\tif (descriptor.media && !window.matchMedia(descriptor.media).matches || document.querySelector(`link[rel=\"stylesheet\"][href=\"${descriptor.href}\"]`)) return resolve();\n\t\tlet link = document.createElement(\"link\");\n\t\tObject.assign(link, descriptor);\n\t\tfunction removeLink() {\n\t\t\tif (document.head.contains(link)) document.head.removeChild(link);\n\t\t}\n\t\tlink.onload = () => {\n\t\t\tremoveLink();\n\t\t\tresolve();\n\t\t};\n\t\tlink.onerror = () => {\n\t\t\tremoveLink();\n\t\t\tresolve();\n\t\t};\n\t\tdocument.head.appendChild(link);\n\t});\n}\nfunction isPageLinkDescriptor(object) {\n\treturn object != null && typeof object.page === \"string\";\n}\nfunction isHtmlLinkDescriptor(object) {\n\tif (object == null) return false;\n\tif (object.href == null) return object.rel === \"preload\" && typeof object.imageSrcSet === \"string\" && typeof object.imageSizes === \"string\";\n\treturn typeof object.rel === \"string\" && typeof object.href === \"string\";\n}\nasync function getKeyedPrefetchLinks(matches, manifest, routeModules) {\n\treturn dedupeLinkDescriptors((await Promise.all(matches.map(async (match) => {\n\t\tlet route = manifest.routes[match.route.id];\n\t\tif (route) {\n\t\t\tlet mod = await loadRouteModule(route, routeModules);\n\t\t\treturn mod.links ? mod.links() : [];\n\t\t}\n\t\treturn [];\n\t}))).flat(1).filter(isHtmlLinkDescriptor).filter((link) => link.rel === \"stylesheet\" || link.rel === \"preload\").map((link) => link.rel === \"stylesheet\" ? {\n\t\t...link,\n\t\trel: \"prefetch\",\n\t\tas: \"style\"\n\t} : {\n\t\t...link,\n\t\trel: \"prefetch\"\n\t}));\n}\nfunction getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, location, mode) {\n\tlet isNew = (match, index) => {\n\t\tif (!currentMatches[index]) return true;\n\t\treturn match.route.id !== currentMatches[index].route.id;\n\t};\n\tlet matchPathChanged = (match, index) => {\n\t\treturn currentMatches[index].pathname !== match.pathname || currentMatches[index].route.path?.endsWith(\"*\") && currentMatches[index].params[\"*\"] !== match.params[\"*\"];\n\t};\n\tif (mode === \"assets\") return nextMatches.filter((match, index) => isNew(match, index) || matchPathChanged(match, index));\n\tif (mode === \"data\") return nextMatches.filter((match, index) => {\n\t\tlet manifestRoute = manifest.routes[match.route.id];\n\t\tif (!manifestRoute || !manifestRoute.hasLoader) return false;\n\t\tif (isNew(match, index) || matchPathChanged(match, index)) return true;\n\t\tif (match.route.shouldRevalidate) {\n\t\t\tlet routeChoice = match.route.shouldRevalidate({\n\t\t\t\tcurrentUrl: new URL(location.pathname + location.search + location.hash, window.origin),\n\t\t\t\tcurrentParams: currentMatches[0]?.params || {},\n\t\t\t\tnextUrl: new URL(page, window.origin),\n\t\t\t\tnextParams: match.params,\n\t\t\t\tdefaultShouldRevalidate: true\n\t\t\t});\n\t\t\tif (typeof routeChoice === \"boolean\") return routeChoice;\n\t\t}\n\t\treturn true;\n\t});\n\treturn [];\n}\nfunction getModuleLinkHrefs(matches, manifest, { includeHydrateFallback } = {}) {\n\treturn dedupeHrefs(matches.map((match) => {\n\t\tlet route = manifest.routes[match.route.id];\n\t\tif (!route) return [];\n\t\tlet hrefs = [route.module];\n\t\tif (route.clientActionModule) hrefs = hrefs.concat(route.clientActionModule);\n\t\tif (route.clientLoaderModule) hrefs = hrefs.concat(route.clientLoaderModule);\n\t\tif (includeHydrateFallback && route.hydrateFallbackModule) hrefs = hrefs.concat(route.hydrateFallbackModule);\n\t\tif (route.imports) hrefs = hrefs.concat(route.imports);\n\t\treturn hrefs;\n\t}).flat(1));\n}\nfunction dedupeHrefs(hrefs) {\n\treturn [...new Set(hrefs)];\n}\nfunction sortKeys(obj) {\n\tlet sorted = {};\n\tlet keys = Object.keys(obj).sort();\n\tfor (let key of keys) sorted[key] = obj[key];\n\treturn sorted;\n}\nfunction dedupeLinkDescriptors(descriptors, preloads) {\n\tlet set = /* @__PURE__ */ new Set();\n\tlet preloadsSet = new Set(preloads);\n\treturn descriptors.reduce((deduped, descriptor) => {\n\t\tif (preloads && !isPageLinkDescriptor(descriptor) && descriptor.as === \"script\" && descriptor.href && preloadsSet.has(descriptor.href)) return deduped;\n\t\tlet key = JSON.stringify(sortKeys(descriptor));\n\t\tif (!set.has(key)) {\n\t\t\tset.add(key);\n\t\t\tdeduped.push({\n\t\t\t\tkey,\n\t\t\t\tlink: descriptor\n\t\t\t});\n\t\t}\n\t\treturn deduped;\n\t}, []);\n}\nlet _isPreloadSupported;\nfunction isPreloadSupported() {\n\tif (_isPreloadSupported !== void 0) return _isPreloadSupported;\n\tlet el = document.createElement(\"link\");\n\t_isPreloadSupported = el.relList.supports(\"preload\");\n\tel = null;\n\treturn _isPreloadSupported;\n}\n//#endregion\nexport { getKeyedLinksForMatches, getKeyedPrefetchLinks, getModuleLinkHrefs, getNewMatchesForLinks, isPageLinkDescriptor, prefetchRouteCss, prefetchStyleLinks };\n"],"x_google_ignoreList":[0],"mappings":";;AAuEA,SAAS,EAAqB,GAAQ;AACrC,QAAO,KAAU,QAAQ,OAAO,EAAO,QAAS;;AAEjD,SAAS,EAAqB,GAAQ;AAGrC,QAFI,KAAU,OAAa,KACvB,EAAO,QAAQ,OAAa,EAAO,QAAQ,aAAa,OAAO,EAAO,eAAgB,YAAY,OAAO,EAAO,cAAe,WAC5H,OAAO,EAAO,OAAQ,YAAY,OAAO,EAAO,QAAS;;AAEjE,eAAe,EAAsB,GAAS,GAAU,GAAc;AACrE,QAAO,GAAuB,MAAM,QAAQ,IAAI,EAAQ,IAAI,OAAO,MAAU;EAC5E,IAAI,IAAQ,EAAS,OAAO,EAAM,MAAM;AACxC,MAAI,GAAO;GACV,IAAI,IAAM,MAAM,EAAgB,GAAO,EAAa;AACpD,UAAO,EAAI,QAAQ,EAAI,OAAO,GAAG,EAAE;;AAEpC,SAAO,EAAE;GACR,CAAC,EAAE,KAAK,EAAE,CAAC,OAAO,EAAqB,CAAC,QAAQ,MAAS,EAAK,QAAQ,gBAAgB,EAAK,QAAQ,UAAU,CAAC,KAAK,MAAS,EAAK,QAAQ,eAAe;EACzJ,GAAG;EACH,KAAK;EACL,IAAI;EACJ,GAAG;EACH,GAAG;EACH,KAAK;EACL,CAAC,CAAC;;AAEJ,SAAS,EAAsB,GAAM,GAAa,GAAgB,GAAU,GAAU,GAAM;CAC3F,IAAI,KAAS,GAAO,MACd,EAAe,KACb,EAAM,MAAM,OAAO,EAAe,GAAO,MAAM,KADnB,IAGhC,KAAoB,GAAO,MACvB,EAAe,GAAO,aAAa,EAAM,YAAY,EAAe,GAAO,MAAM,MAAM,SAAS,IAAI,IAAI,EAAe,GAAO,OAAO,SAAS,EAAM,OAAO;AAmBnK,QAjBI,MAAS,WAAiB,EAAY,QAAQ,GAAO,MAAU,EAAM,GAAO,EAAM,IAAI,EAAiB,GAAO,EAAM,CAAC,GACrH,MAAS,SAAe,EAAY,QAAQ,GAAO,MAAU;EAChE,IAAI,IAAgB,EAAS,OAAO,EAAM,MAAM;AAChD,MAAI,CAAC,KAAiB,CAAC,EAAc,UAAW,QAAO;AACvD,MAAI,EAAM,GAAO,EAAM,IAAI,EAAiB,GAAO,EAAM,CAAE,QAAO;AAClE,MAAI,EAAM,MAAM,kBAAkB;GACjC,IAAI,IAAc,EAAM,MAAM,iBAAiB;IAC9C,YAAY,IAAI,IAAI,EAAS,WAAW,EAAS,SAAS,EAAS,MAAM,OAAO,OAAO;IACvF,eAAe,EAAe,IAAI,UAAU,EAAE;IAC9C,SAAS,IAAI,IAAI,GAAM,OAAO,OAAO;IACrC,YAAY,EAAM;IAClB,yBAAyB;IACzB,CAAC;AACF,OAAI,OAAO,KAAgB,UAAW,QAAO;;AAE9C,SAAO;GACN,GACK,EAAE;;AAEV,SAAS,EAAmB,GAAS,GAAU,EAAE,8BAA2B,EAAE,EAAE;AAC/E,QAAO,EAAY,EAAQ,KAAK,MAAU;EACzC,IAAI,IAAQ,EAAS,OAAO,EAAM,MAAM;AACxC,MAAI,CAAC,EAAO,QAAO,EAAE;EACrB,IAAI,IAAQ,CAAC,EAAM,OAAO;AAK1B,SAJI,EAAM,uBAAoB,IAAQ,EAAM,OAAO,EAAM,mBAAmB,GACxE,EAAM,uBAAoB,IAAQ,EAAM,OAAO,EAAM,mBAAmB,GACxE,KAA0B,EAAM,0BAAuB,IAAQ,EAAM,OAAO,EAAM,sBAAsB,GACxG,EAAM,YAAS,IAAQ,EAAM,OAAO,EAAM,QAAQ,GAC/C;GACN,CAAC,KAAK,EAAE,CAAC;;AAEZ,SAAS,EAAY,GAAO;AAC3B,QAAO,CAAC,GAAG,IAAI,IAAI,EAAM,CAAC;;AAE3B,SAAS,EAAS,GAAK;CACtB,IAAI,IAAS,EAAE,EACX,IAAO,OAAO,KAAK,EAAI,CAAC,MAAM;AAClC,MAAK,IAAI,KAAO,EAAM,GAAO,KAAO,EAAI;AACxC,QAAO;;AAER,SAAS,EAAsB,GAAa,GAAU;CACrD,IAAI,oBAAsB,IAAI,KAAK,EAC/B,IAAc,IAAI,IAAI,EAAS;AACnC,QAAO,EAAY,QAAQ,GAAS,MAAe;AAClD,MAAI,KAAY,CAAC,EAAqB,EAAW,IAAI,EAAW,OAAO,YAAY,EAAW,QAAQ,EAAY,IAAI,EAAW,KAAK,CAAE,QAAO;EAC/I,IAAI,IAAM,KAAK,UAAU,EAAS,EAAW,CAAC;AAQ9C,SAPK,EAAI,IAAI,EAAI,KAChB,EAAI,IAAI,EAAI,EACZ,EAAQ,KAAK;GACZ;GACA,MAAM;GACN,CAAC,GAEI;IACL,EAAE,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region node_modules/react-router/dist/production/lib/dom/ssr/markup.js
|
|
2
|
-
var e = {
|
|
3
|
-
"&": "\\u0026",
|
|
4
|
-
">": "\\u003e",
|
|
5
|
-
"<": "\\u003c",
|
|
6
|
-
"\u2028": "\\u2028",
|
|
7
|
-
"\u2029": "\\u2029"
|
|
8
|
-
}, t = /[&><\u2028\u2029]/g;
|
|
9
|
-
function n(n) {
|
|
10
|
-
return n.replace(t, (t) => e[t]);
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
export { n as escapeHtml };
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=markup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"markup.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/markup.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n//#region lib/dom/ssr/markup.ts\nconst ESCAPE_LOOKUP = {\n\t\"&\": \"\\\\u0026\",\n\t\">\": \"\\\\u003e\",\n\t\"<\": \"\\\\u003c\",\n\t\"\\u2028\": \"\\\\u2028\",\n\t\"\\u2029\": \"\\\\u2029\"\n};\nconst ESCAPE_REGEX = /[&><\\u2028\\u2029]/g;\nfunction escapeHtml(html) {\n\treturn html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);\n}\n//#endregion\nexport { escapeHtml };\n"],"x_google_ignoreList":[0],"mappings":";AAWA,IAAM,IAAgB;CACrB,KAAK;CACL,KAAK;CACL,KAAK;CACL,UAAU;CACV,UAAU;CACV,EACK,IAAe;AACrB,SAAS,EAAW,GAAM;AACzB,QAAO,EAAK,QAAQ,IAAe,MAAU,EAAc,GAAO"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js
|
|
2
|
-
async function e(e, t) {
|
|
3
|
-
if (e.id in t) return t[e.id];
|
|
4
|
-
try {
|
|
5
|
-
let n = await import(
|
|
6
|
-
/* @vite-ignore */
|
|
7
|
-
/* webpackIgnore: true */
|
|
8
|
-
e.module
|
|
9
|
-
);
|
|
10
|
-
return t[e.id] = n, n;
|
|
11
|
-
} catch (t) {
|
|
12
|
-
return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { e as loadRouteModule };
|
|
17
|
-
|
|
18
|
-
//# sourceMappingURL=routeModules.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routeModules.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/routeModules.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\n//#region lib/dom/ssr/routeModules.ts\nasync function loadRouteModule(route, routeModulesCache) {\n\tif (route.id in routeModulesCache) return routeModulesCache[route.id];\n\ttry {\n\t\tlet routeModule = await import(\n\t\t\t/* @vite-ignore */\n\t\t\t/* webpackIgnore: true */\n\t\t\troute.module\n);\n\t\trouteModulesCache[route.id] = routeModule;\n\t\treturn routeModule;\n\t} catch (error) {\n\t\tconsole.error(`Error loading route module \\`${route.module}\\`, reloading page...`);\n\t\tconsole.error(error);\n\t\tif (window.__reactRouterContext && window.__reactRouterContext.isSpaMode && import.meta.hot) throw error;\n\t\twindow.location.reload();\n\t\treturn new Promise(() => {});\n\t}\n}\n//#endregion\nexport { loadRouteModule };\n"],"x_google_ignoreList":[0],"mappings":";AAWA,eAAe,EAAgB,GAAO,GAAmB;AACxD,KAAI,EAAM,MAAM,EAAmB,QAAO,EAAkB,EAAM;AAClE,KAAI;EACH,IAAI,IAAc,MAAM;;;GAGvB,EAAM;;AAGP,SADA,EAAkB,EAAM,MAAM,GACvB;UACC,GAAO;AAKf,SAJA,QAAQ,MAAM,gCAAgC,EAAM,OAAO,uBAAuB,EAClF,QAAQ,MAAM,EAAM,EAChB,OAAO,wBAAwB,OAAO,qBAAqB,WAC/D,OAAO,SAAS,QAAQ,EACjB,IAAI,cAAc,GAAG"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
//#region node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js
|
|
3
|
-
function e(e, t) {
|
|
4
|
-
let n = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
|
|
5
|
-
return n.pathname.endsWith("/") ? n.pathname = `${n.pathname}_.${t}` : n.pathname = `${n.pathname}.${t}`, n;
|
|
6
|
-
}
|
|
7
|
-
//#endregion
|
|
8
|
-
export { e as singleFetchUrl };
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=single-fetch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-fetch.js","names":[],"sources":["../../../../../../../../node_modules/react-router/dist/production/lib/dom/ssr/single-fetch.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { ErrorResponseImpl, SUPPORTED_ERROR_TYPES, data, isRouteErrorResponse, redirect } from \"../../router/utils.js\";\nimport { isDataWithResponseInit, isResponse } from \"../../router/router.js\";\nimport invariant from \"./invariant.js\";\nimport { escapeHtml } from \"./markup.js\";\nimport { decode } from \"../../../vendor/turbo-stream-v2/turbo-stream.js\";\nimport { createRequestInit } from \"./data.js\";\nimport * as React$1 from \"react\";\n//#region lib/dom/ssr/single-fetch.tsx\nconst SingleFetchRedirectSymbol = Symbol(\"SingleFetchRedirect\");\nvar SingleFetchNoResultError = class extends Error {};\nconst NO_BODY_STATUS_CODES = new Set([\n\t100,\n\t101,\n\t204,\n\t205\n]);\nfunction StreamTransfer({ context, identifier, reader, textDecoder, nonce }) {\n\tif (!context.renderMeta || !context.renderMeta.didRenderScripts) return null;\n\tif (!context.renderMeta.streamCache) context.renderMeta.streamCache = {};\n\tlet { streamCache } = context.renderMeta;\n\tlet promise = streamCache[identifier];\n\tif (!promise) promise = streamCache[identifier] = reader.read().then((result) => {\n\t\tstreamCache[identifier].result = {\n\t\t\tdone: result.done,\n\t\t\tvalue: textDecoder.decode(result.value, { stream: true })\n\t\t};\n\t}).catch((e) => {\n\t\tstreamCache[identifier].error = e;\n\t});\n\tif (promise.error) throw promise.error;\n\tif (promise.result === void 0) throw promise;\n\tlet { done, value } = promise.result;\n\tlet scriptTag = value ? /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\tnonce,\n\t\tdangerouslySetInnerHTML: { __html: `window.__reactRouterContext.streamController.enqueue(${escapeHtml(JSON.stringify(value))});` }\n\t}) : null;\n\tif (done) return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, scriptTag, /* @__PURE__ */ React$1.createElement(\"script\", {\n\t\tnonce,\n\t\tdangerouslySetInnerHTML: { __html: `window.__reactRouterContext.streamController.close();` }\n\t}));\n\telse return /* @__PURE__ */ React$1.createElement(React$1.Fragment, null, scriptTag, /* @__PURE__ */ React$1.createElement(React$1.Suspense, null, /* @__PURE__ */ React$1.createElement(StreamTransfer, {\n\t\tcontext,\n\t\tidentifier: identifier + 1,\n\t\treader,\n\t\ttextDecoder,\n\t\tnonce\n\t})));\n}\nfunction getTurboStreamSingleFetchDataStrategy(getRouter, manifest, routeModules, ssr) {\n\tlet dataStrategy = getSingleFetchDataStrategyImpl(getRouter, (match) => {\n\t\tlet manifestRoute = manifest.routes[match.route.id];\n\t\tinvariant(manifestRoute, \"Route not found in manifest\");\n\t\treturn {\n\t\t\thasLoader: manifestRoute.hasLoader,\n\t\t\thasClientLoader: manifestRoute.hasClientLoader\n\t\t};\n\t}, fetchAndDecodeViaTurboStream, ssr);\n\treturn async (args) => args.runClientMiddleware(dataStrategy);\n}\nfunction getSingleFetchDataStrategyImpl(getRouter, getRouteInfo, fetchAndDecode, ssr, shouldAllowOptOut = () => true) {\n\treturn async (args) => {\n\t\tlet { request, matches, fetcherKey } = args;\n\t\tlet router = getRouter();\n\t\tif (request.method !== \"GET\") return singleFetchActionStrategy(args, fetchAndDecode);\n\t\tlet foundRevalidatingServerLoader = matches.some((m) => {\n\t\t\tlet { hasLoader, hasClientLoader } = getRouteInfo(m);\n\t\t\treturn m.shouldCallHandler() && hasLoader && !hasClientLoader;\n\t\t});\n\t\tif (!ssr && !foundRevalidatingServerLoader) return nonSsrStrategy(args, getRouteInfo, fetchAndDecode);\n\t\tif (fetcherKey) return singleFetchLoaderFetcherStrategy(args, fetchAndDecode);\n\t\treturn singleFetchLoaderNavigationStrategy(args, router, getRouteInfo, fetchAndDecode, ssr, shouldAllowOptOut);\n\t};\n}\nasync function singleFetchActionStrategy(args, fetchAndDecode) {\n\tlet actionMatch = args.matches.find((m) => m.shouldCallHandler());\n\tinvariant(actionMatch, \"No action match found\");\n\tlet actionStatus = void 0;\n\tlet result = await actionMatch.resolve(async (handler) => {\n\t\treturn await handler(async () => {\n\t\t\tlet { data, status } = await fetchAndDecode(args, [actionMatch.route.id]);\n\t\t\tactionStatus = status;\n\t\t\treturn unwrapSingleFetchResult(data, actionMatch.route.id);\n\t\t});\n\t});\n\tif (isResponse(result.result) || isRouteErrorResponse(result.result) || isDataWithResponseInit(result.result)) return { [actionMatch.route.id]: result };\n\treturn { [actionMatch.route.id]: {\n\t\ttype: result.type,\n\t\tresult: data(result.result, actionStatus)\n\t} };\n}\nasync function nonSsrStrategy(args, getRouteInfo, fetchAndDecode) {\n\tlet matchesToLoad = args.matches.filter((m) => m.shouldCallHandler());\n\tlet results = {};\n\tawait Promise.all(matchesToLoad.map((m) => m.resolve(async (handler) => {\n\t\ttry {\n\t\t\tlet { hasClientLoader } = getRouteInfo(m);\n\t\t\tlet routeId = m.route.id;\n\t\t\tlet result = hasClientLoader ? await handler(async () => {\n\t\t\t\tlet { data } = await fetchAndDecode(args, [routeId]);\n\t\t\t\treturn unwrapSingleFetchResult(data, routeId);\n\t\t\t}) : await handler();\n\t\t\tresults[m.route.id] = {\n\t\t\t\ttype: \"data\",\n\t\t\t\tresult\n\t\t\t};\n\t\t} catch (e) {\n\t\t\tresults[m.route.id] = {\n\t\t\t\ttype: \"error\",\n\t\t\t\tresult: e\n\t\t\t};\n\t\t}\n\t})));\n\treturn results;\n}\nasync function singleFetchLoaderNavigationStrategy(args, router, getRouteInfo, fetchAndDecode, ssr, shouldAllowOptOut = () => true) {\n\tlet routesParams = /* @__PURE__ */ new Set();\n\tlet foundOptOutRoute = false;\n\tlet routeDfds = args.matches.map(() => createDeferred());\n\tlet singleFetchDfd = createDeferred();\n\tlet results = {};\n\tlet resolvePromise = Promise.all(args.matches.map(async (m, i) => m.resolve(async (handler) => {\n\t\trouteDfds[i].resolve();\n\t\tlet routeId = m.route.id;\n\t\tlet { hasLoader, hasClientLoader } = getRouteInfo(m);\n\t\tlet defaultShouldRevalidate = !m.shouldRevalidateArgs || m.shouldRevalidateArgs.actionStatus == null || m.shouldRevalidateArgs.actionStatus < 400;\n\t\tif (!m.shouldCallHandler(defaultShouldRevalidate)) {\n\t\t\tfoundOptOutRoute ||= m.shouldRevalidateArgs != null && hasLoader;\n\t\t\treturn;\n\t\t}\n\t\tif (shouldAllowOptOut(m) && hasClientLoader) {\n\t\t\tif (hasLoader) foundOptOutRoute = true;\n\t\t\ttry {\n\t\t\t\tresults[routeId] = {\n\t\t\t\t\ttype: \"data\",\n\t\t\t\t\tresult: await handler(async () => {\n\t\t\t\t\t\tlet { data } = await fetchAndDecode(args, [routeId]);\n\t\t\t\t\t\treturn unwrapSingleFetchResult(data, routeId);\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t} catch (e) {\n\t\t\t\tresults[routeId] = {\n\t\t\t\t\ttype: \"error\",\n\t\t\t\t\tresult: e\n\t\t\t\t};\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif (hasLoader) routesParams.add(routeId);\n\t\ttry {\n\t\t\tresults[routeId] = {\n\t\t\t\ttype: \"data\",\n\t\t\t\tresult: await handler(async () => {\n\t\t\t\t\treturn unwrapSingleFetchResult(await singleFetchDfd.promise, routeId);\n\t\t\t\t})\n\t\t\t};\n\t\t} catch (e) {\n\t\t\tresults[routeId] = {\n\t\t\t\ttype: \"error\",\n\t\t\t\tresult: e\n\t\t\t};\n\t\t}\n\t})));\n\tawait Promise.all(routeDfds.map((d) => d.promise));\n\tif ((!router.state.initialized && router.state.navigation.state === \"idle\" || routesParams.size === 0) && !window.__reactRouterHdrActive) singleFetchDfd.resolve({ routes: {} });\n\telse {\n\t\tlet targetRoutes = ssr && foundOptOutRoute && routesParams.size > 0 ? [...routesParams.keys()] : void 0;\n\t\ttry {\n\t\t\tlet data = await fetchAndDecode(args, targetRoutes);\n\t\t\tsingleFetchDfd.resolve(data.data);\n\t\t} catch (e) {\n\t\t\tsingleFetchDfd.reject(e);\n\t\t}\n\t}\n\tawait resolvePromise;\n\tawait bubbleMiddlewareErrors(singleFetchDfd.promise, args.matches, routesParams, results);\n\treturn results;\n}\nasync function bubbleMiddlewareErrors(singleFetchPromise, matches, routesParams, results) {\n\ttry {\n\t\tlet middlewareError;\n\t\tlet fetchedData = await singleFetchPromise;\n\t\tif (\"routes\" in fetchedData) {\n\t\t\tfor (let match of matches) if (match.route.id in fetchedData.routes) {\n\t\t\t\tlet routeResult = fetchedData.routes[match.route.id];\n\t\t\t\tif (\"error\" in routeResult) {\n\t\t\t\t\tmiddlewareError = routeResult.error;\n\t\t\t\t\tif (results[match.route.id]?.result == null) results[match.route.id] = {\n\t\t\t\t\t\ttype: \"error\",\n\t\t\t\t\t\tresult: middlewareError\n\t\t\t\t\t};\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (middlewareError !== void 0) Array.from(routesParams.values()).forEach((routeId) => {\n\t\t\tif (results[routeId].result instanceof SingleFetchNoResultError) results[routeId].result = middlewareError;\n\t\t});\n\t} catch (e) {}\n}\nasync function singleFetchLoaderFetcherStrategy(args, fetchAndDecode) {\n\tlet fetcherMatch = args.matches.find((m) => m.shouldCallHandler());\n\tinvariant(fetcherMatch, \"No fetcher match found\");\n\tlet routeId = fetcherMatch.route.id;\n\tlet result = await fetcherMatch.resolve(async (handler) => handler(async () => {\n\t\tlet { data } = await fetchAndDecode(args, [routeId]);\n\t\treturn unwrapSingleFetchResult(data, routeId);\n\t}));\n\treturn { [fetcherMatch.route.id]: result };\n}\nfunction stripIndexParam(url) {\n\tlet indexValues = url.searchParams.getAll(\"index\");\n\turl.searchParams.delete(\"index\");\n\tlet indexValuesToKeep = [];\n\tfor (let indexValue of indexValues) if (indexValue) indexValuesToKeep.push(indexValue);\n\tfor (let toKeep of indexValuesToKeep) url.searchParams.append(\"index\", toKeep);\n\treturn url;\n}\nfunction singleFetchUrl(reqUrl, extension) {\n\tlet url = typeof reqUrl === \"string\" ? new URL(reqUrl, typeof window === \"undefined\" ? \"server://singlefetch/\" : window.location.origin) : reqUrl;\n\tif (url.pathname.endsWith(\"/\")) url.pathname = `${url.pathname}_.${extension}`;\n\telse url.pathname = `${url.pathname}.${extension}`;\n\treturn url;\n}\nasync function fetchAndDecodeViaTurboStream(args, targetRoutes) {\n\tlet { request } = args;\n\tlet url = singleFetchUrl(request.url, \"data\");\n\tif (request.method === \"GET\") {\n\t\turl = stripIndexParam(url);\n\t\tif (targetRoutes) url.searchParams.set(\"_routes\", targetRoutes.join(\",\"));\n\t}\n\tlet res = await fetch(url, await createRequestInit(request));\n\tif (res.status >= 400 && !res.headers.has(\"X-Remix-Response\")) throw new ErrorResponseImpl(res.status, res.statusText, await res.text());\n\tif (res.status === 204 && res.headers.has(\"X-Remix-Redirect\")) return {\n\t\tstatus: 202,\n\t\tdata: { redirect: {\n\t\t\tredirect: res.headers.get(\"X-Remix-Redirect\"),\n\t\t\tstatus: Number(res.headers.get(\"X-Remix-Status\") || \"302\"),\n\t\t\trevalidate: res.headers.get(\"X-Remix-Revalidate\") === \"true\",\n\t\t\treload: res.headers.get(\"X-Remix-Reload-Document\") === \"true\",\n\t\t\treplace: res.headers.get(\"X-Remix-Replace\") === \"true\"\n\t\t} }\n\t};\n\tif (NO_BODY_STATUS_CODES.has(res.status)) {\n\t\tlet routes = {};\n\t\tif (targetRoutes && request.method !== \"GET\") routes[targetRoutes[0]] = { data: void 0 };\n\t\treturn {\n\t\t\tstatus: res.status,\n\t\t\tdata: { routes }\n\t\t};\n\t}\n\tinvariant(res.body, \"No response body to decode\");\n\ttry {\n\t\tlet decoded = await decodeViaTurboStream(res.body, window);\n\t\tlet data;\n\t\tif (request.method === \"GET\") {\n\t\t\tlet typed = decoded.value;\n\t\t\tif (SingleFetchRedirectSymbol in typed) data = { redirect: typed[SingleFetchRedirectSymbol] };\n\t\t\telse data = { routes: typed };\n\t\t} else {\n\t\t\tlet typed = decoded.value;\n\t\t\tlet routeId = targetRoutes?.[0];\n\t\t\tinvariant(routeId, \"No routeId found for single fetch call decoding\");\n\t\t\tif (\"redirect\" in typed) data = { redirect: typed };\n\t\t\telse data = { routes: { [routeId]: typed } };\n\t\t}\n\t\treturn {\n\t\t\tstatus: res.status,\n\t\t\tdata\n\t\t};\n\t} catch (e) {\n\t\tthrow new Error(\"Unable to decode turbo-stream response\");\n\t}\n}\nfunction decodeViaTurboStream(body, global) {\n\treturn decode(body, { plugins: [(type, ...rest) => {\n\t\tif (type === \"SanitizedError\") {\n\t\t\tlet [name, message, stack] = rest;\n\t\t\tlet Constructor = Error;\n\t\t\tif (name && SUPPORTED_ERROR_TYPES.includes(name) && name in global && typeof global[name] === \"function\") Constructor = global[name];\n\t\t\tlet error = new Constructor(message);\n\t\t\terror.stack = stack;\n\t\t\treturn { value: error };\n\t\t}\n\t\tif (type === \"ErrorResponse\") {\n\t\t\tlet [data, status, statusText] = rest;\n\t\t\treturn { value: new ErrorResponseImpl(status, statusText, data) };\n\t\t}\n\t\tif (type === \"SingleFetchRedirect\") return { value: { [SingleFetchRedirectSymbol]: rest[0] } };\n\t\tif (type === \"SingleFetchClassInstance\") return { value: rest[0] };\n\t\tif (type === \"SingleFetchFallback\") return { value: void 0 };\n\t}] });\n}\nfunction unwrapSingleFetchResult(result, routeId) {\n\tif (\"redirect\" in result) {\n\t\tlet { redirect: location, revalidate, reload, replace, status } = result.redirect;\n\t\tthrow redirect(location, {\n\t\t\tstatus,\n\t\t\theaders: {\n\t\t\t\t...revalidate ? { \"X-Remix-Revalidate\": \"yes\" } : null,\n\t\t\t\t...reload ? { \"X-Remix-Reload-Document\": \"yes\" } : null,\n\t\t\t\t...replace ? { \"X-Remix-Replace\": \"yes\" } : null\n\t\t\t}\n\t\t});\n\t}\n\tlet routeResult = result.routes[routeId];\n\tif (routeResult == null) throw new SingleFetchNoResultError(`No result found for routeId \"${routeId}\"`);\n\telse if (\"error\" in routeResult) throw routeResult.error;\n\telse if (\"data\" in routeResult) return routeResult.data;\n\telse throw new Error(`Invalid response found for routeId \"${routeId}\"`);\n}\nfunction createDeferred() {\n\tlet resolve;\n\tlet reject;\n\tlet promise = new Promise((res, rej) => {\n\t\tresolve = async (val) => {\n\t\t\tres(val);\n\t\t\ttry {\n\t\t\t\tawait promise;\n\t\t\t} catch (e) {}\n\t\t};\n\t\treject = async (error) => {\n\t\t\trej(error);\n\t\t\ttry {\n\t\t\t\tawait promise;\n\t\t\t} catch (e) {}\n\t\t};\n\t});\n\treturn {\n\t\tpromise,\n\t\tresolve,\n\t\treject\n\t};\n}\n//#endregion\nexport { NO_BODY_STATUS_CODES, SingleFetchRedirectSymbol, StreamTransfer, decodeViaTurboStream, getSingleFetchDataStrategyImpl, getTurboStreamSingleFetchDataStrategy, singleFetchUrl, stripIndexParam };\n"],"x_google_ignoreList":[0],"mappings":";;AAmOA,SAAS,EAAe,GAAQ,GAAW;CAC1C,IAAI,IAAM,OAAO,KAAW,WAAW,IAAI,IAAI,GAAQ,OAAO,SAAW,MAAc,0BAA0B,OAAO,SAAS,OAAO,GAAG;AAG3I,QAFI,EAAI,SAAS,SAAS,IAAI,GAAE,EAAI,WAAW,GAAG,EAAI,SAAS,IAAI,MAC9D,EAAI,WAAW,GAAG,EAAI,SAAS,GAAG,KAChC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ErrorResponseImpl as e } from "./router/utils.js";
|
|
2
|
-
//#region node_modules/react-router/dist/production/lib/errors.js
|
|
3
|
-
var t = "REACT_ROUTER_ERROR", n = "REDIRECT", r = "ROUTE_ERROR_RESPONSE";
|
|
4
|
-
function i(e) {
|
|
5
|
-
if (e.startsWith(`${t}:${n}:{`)) try {
|
|
6
|
-
let t = JSON.parse(e.slice(28));
|
|
7
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
|
|
8
|
-
} catch {}
|
|
9
|
-
}
|
|
10
|
-
function a(n) {
|
|
11
|
-
if (n.startsWith(`${t}:${r}:{`)) try {
|
|
12
|
-
let t = JSON.parse(n.slice(40));
|
|
13
|
-
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new e(t.status, t.statusText, t.data);
|
|
14
|
-
} catch {}
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { i as decodeRedirectErrorDigest, a as decodeRouteErrorResponseDigest };
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","names":[],"sources":["../../../../../../node_modules/react-router/dist/production/lib/errors.js"],"sourcesContent":["/**\n * react-router v8.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { ErrorResponseImpl } from \"./router/utils.js\";\n//#region lib/errors.ts\nconst ERROR_DIGEST_BASE = \"REACT_ROUTER_ERROR\";\nconst ERROR_DIGEST_REDIRECT = \"REDIRECT\";\nconst ERROR_DIGEST_ROUTE_ERROR_RESPONSE = \"ROUTE_ERROR_RESPONSE\";\nfunction decodeRedirectErrorDigest(digest) {\n\tif (digest.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_REDIRECT}:{`)) try {\n\t\tlet parsed = JSON.parse(digest.slice(28));\n\t\tif (typeof parsed === \"object\" && parsed && typeof parsed.status === \"number\" && typeof parsed.statusText === \"string\" && typeof parsed.location === \"string\" && typeof parsed.reloadDocument === \"boolean\" && typeof parsed.replace === \"boolean\") return parsed;\n\t} catch {}\n}\nfunction decodeRouteErrorResponseDigest(digest) {\n\tif (digest.startsWith(`${ERROR_DIGEST_BASE}:${ERROR_DIGEST_ROUTE_ERROR_RESPONSE}:{`)) try {\n\t\tlet parsed = JSON.parse(digest.slice(40));\n\t\tif (typeof parsed === \"object\" && parsed && typeof parsed.status === \"number\" && typeof parsed.statusText === \"string\") return new ErrorResponseImpl(parsed.status, parsed.statusText, parsed.data);\n\t} catch {}\n}\n//#endregion\nexport { decodeRedirectErrorDigest, decodeRouteErrorResponseDigest };\n"],"x_google_ignoreList":[0],"mappings":";;AAYA,IAAM,IAAoB,sBACpB,IAAwB,YACxB,IAAoC;AAC1C,SAAS,EAA0B,GAAQ;AAC1C,KAAI,EAAO,WAAW,GAAG,EAAkB,GAAG,EAAsB,IAAI,CAAE,KAAI;EAC7E,IAAI,IAAS,KAAK,MAAM,EAAO,MAAM,GAAG,CAAC;AACzC,MAAI,OAAO,KAAW,YAAY,KAAU,OAAO,EAAO,UAAW,YAAY,OAAO,EAAO,cAAe,YAAY,OAAO,EAAO,YAAa,YAAY,OAAO,EAAO,kBAAmB,aAAa,OAAO,EAAO,WAAY,UAAW,QAAO;SACpP;;AAET,SAAS,EAA+B,GAAQ;AAC/C,KAAI,EAAO,WAAW,GAAG,EAAkB,GAAG,EAAkC,IAAI,CAAE,KAAI;EACzF,IAAI,IAAS,KAAK,MAAM,EAAO,MAAM,GAAG,CAAC;AACzC,MAAI,OAAO,KAAW,YAAY,KAAU,OAAO,EAAO,UAAW,YAAY,OAAO,EAAO,cAAe,SAAU,QAAO,IAAI,EAAkB,EAAO,QAAQ,EAAO,YAAY,EAAO,KAAK;SAC5L"}
|