@semiont/frontend 0.2.36 → 0.2.39
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/package.json +1 -1
- package/standalone/apps/frontend/.next/BUILD_ID +1 -1
- package/standalone/apps/frontend/.next/app-build-manifest.json +122 -122
- package/standalone/apps/frontend/.next/app-path-routes-manifest.json +8 -8
- package/standalone/apps/frontend/.next/build-manifest.json +6 -6
- package/standalone/apps/frontend/.next/prerender-manifest.json +3 -3
- package/standalone/apps/frontend/.next/required-server-files.json +4 -4
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js +35 -35
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/about/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js +49 -49
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/devops/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js +69 -69
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js +158 -158
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/security/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js +121 -121
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/admin/users/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js +440 -440
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/error/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js +62 -62
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/mcp-setup/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js +25 -25
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signin/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js +270 -270
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/signup/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js +250 -250
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/auth/welcome/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js +46 -46
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/compose/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js +18 -18
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/discover/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js +135 -135
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js +1454 -1454
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/know/resource/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js +1440 -1440
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/entity-tags/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js +632 -632
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js +79 -79
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/recent/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js +1613 -1613
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/moderate/tag-schemas/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js +262 -262
- package/standalone/apps/frontend/.next/server/app/[locale]/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js +125 -125
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/privacy/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js +604 -604
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/[locale]/terms/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found/page.js +358 -358
- package/standalone/apps/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.html +1 -1
- package/standalone/apps/frontend/.next/server/app/_not-found.rsc +3 -3
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js +113 -113
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/auth/[...nextauth]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js +64 -64
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/consent/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js +42 -42
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/cookies/export/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js +111 -111
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route.js.nft.json +1 -1
- package/standalone/apps/frontend/.next/server/app/api/resources/[id]/route_client-reference-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/app-paths-manifest.json +8 -8
- package/standalone/apps/frontend/.next/server/chunks/1037.js +4 -4
- package/standalone/apps/frontend/.next/server/chunks/1854.js +55 -55
- package/standalone/apps/frontend/.next/server/chunks/1940.js +388 -388
- package/standalone/apps/frontend/.next/server/chunks/{5137.js → 5015.js} +20 -20
- package/standalone/apps/frontend/.next/server/chunks/{4331.js → 5919.js} +12 -12
- package/standalone/apps/frontend/.next/server/chunks/7912.js +195 -195
- package/standalone/apps/frontend/.next/server/chunks/{255.js → 8387.js} +127 -127
- package/standalone/apps/frontend/.next/server/middleware-build-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/middleware-manifest.json +5 -5
- package/standalone/apps/frontend/.next/server/next-font-manifest.js +1 -1
- package/standalone/apps/frontend/.next/server/next-font-manifest.json +1 -1
- package/standalone/apps/frontend/.next/server/pages/404.html +1 -1
- package/standalone/apps/frontend/.next/server/pages/500.html +1 -1
- package/standalone/apps/frontend/.next/server/server-reference-manifest.json +1 -1
- package/standalone/apps/frontend/.next/server/src/middleware.js +10636 -10636
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-28023b5ae5e22ad9.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/devops/{page-a9093490466b2b37.js → page-da9614b9f1606d7b.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/{layout-5af3f431ec0b3338.js → layout-62ef934e6bcc18b1.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-fc5e1da86912c64f.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-8031d11e8dccef6c.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/users/{page-1952f839f1e5aec3.js → page-a978206777229291.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/error/{page-c72ec26a8cc98e35.js → page-4e5ee1553c6d8ebe.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-e1d196e7f8d38edd.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signin/{page-180f998c19826597.js → page-c878d25b0ae5069c.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/signup/{page-f1ccc995126a89a8.js → page-1292f2664ce93b63.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/welcome/{page-f57e39b176753cc4.js → page-7e79cf1f705618db.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/compose/{page-9b4223dae15c8d0c.js → page-7c16ece328eb4a91.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/discover/{page-926f8f5f5569695e.js → page-f9d0032f45241437.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{layout-5ab3b200e60ffd91.js → layout-83fe577a1460d915.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/{page-55d3c0928a59e55f.js → page-5349aaee3976e1bb.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-4cb67f9bf8be8f1a.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{layout-a298c8dc1488a191.js → layout-2f6c82f89ff0fb38.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-f76e2312764ebe0c.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{layout-fceb080211969ed7.js → layout-63abc0b7153c03d3.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/{page-3d971aeb0ca1324a.js → page-7bc1b2215ffcdde0.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/recent/{page-3a7a7a375c4338f5.js → page-a00695b21e364495.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/tag-schemas/{page-47f0c2c1cfb3e969.js → page-874ddff1c67dd96a.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{not-found-cd4d3962209aaa67.js → not-found-9338290efe925a85.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/{page-e6857bdeef2ade5e.js → page-46fad01f54cffcaf.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/privacy/{page-2018e48e55ecea79.js → page-7034c8af05b702cd.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/terms/{page-87dc1af32b067913.js → page-fbfecd018ce6acdd.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/auth/[...nextauth]/route-24502971e8577474.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-680f8e085df19751.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-5c5bd56c39187fd1.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/app/api/resources/[id]/{route-41d8347af9354a15.js → route-e5f4f3f1353c7a86.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/{error-092a0e51a706052b.js → error-4ec2f52abc66bc6c.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/global-error-c894441824fc03d1.js +1 -0
- package/standalone/apps/frontend/.next/static/chunks/{common-cafbbd01b1c3775d.js → common-d8e3aad4ef182cd5.js} +1 -1
- package/standalone/apps/frontend/.next/static/chunks/main-app-4616290e0bdaf4ae.js +1 -0
- package/standalone/apps/frontend/package.json +3 -3
- package/standalone/apps/frontend/server.js +1 -1
- package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib → sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3} +0 -0
- package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/package.json +11 -5
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +1 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +42 -0
- package/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +30 -0
- package/standalone/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
- package/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/package.json +13 -7
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/LICENSE +191 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
- package/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +46 -0
- package/standalone/package.json +4 -2
- package/standalone/packages/core/package.json +1 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/about/page-d8aed1a2b6034adb.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/page-b8a11ecf0fc92f87.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/admin/security/page-d36785d6e4d45d3a.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/auth/mcp-setup/route-d3c1c9e26edf790a.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/know/resource/[id]/page-0de67bf833ae4a3f.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/[locale]/moderate/entity-tags/page-a245859e2ddd4e05.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/auth/[...nextauth]/route-7469fd42a9044d71.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/consent/route-b6458d3daaa96918.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/api/cookies/export/route-78e35b60a682d097.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/app/global-error-6d117072fb9faa75.js +0 -1
- package/standalone/apps/frontend/.next/static/chunks/main-app-49c62e2894aa25dd.js +0 -1
- package/standalone/apps/frontend/public/android-chrome-192x192.png +0 -0
- package/standalone/apps/frontend/public/android-chrome-512x512.png +0 -0
- package/standalone/apps/frontend/public/apple-touch-icon.png +0 -0
- package/standalone/apps/frontend/public/favicon-128x128.png +0 -0
- package/standalone/apps/frontend/public/favicon-16x16.png +0 -0
- package/standalone/apps/frontend/public/favicon-32x32.png +0 -0
- package/standalone/apps/frontend/public/favicon-48x48.png +0 -0
- package/standalone/apps/frontend/public/favicon-64x64.png +0 -0
- package/standalone/apps/frontend/public/favicon-96x96.png +0 -0
- package/standalone/apps/frontend/public/favicon.ico +0 -0
- package/standalone/apps/frontend/public/favicon.svg +0 -47
- package/standalone/apps/frontend/public/site.webmanifest +0 -19
- package/standalone/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
- /package/standalone/apps/frontend/.next/static/{OpFkYY-cw7w7h5hHBfiKG → guJTVgKDvrNJVGaUPYdEy}/_buildManifest.js +0 -0
- /package/standalone/apps/frontend/.next/static/{OpFkYY-cw7w7h5hHBfiKG → guJTVgKDvrNJVGaUPYdEy}/_ssgManifest.js +0 -0
- /package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/lib/index.js +0 -0
- /package/standalone/node_modules/@img/{sharp-libvips-darwin-arm64 → sharp-libvips-linux-x64}/versions.json +0 -0
- /package/standalone/node_modules/@img/{sharp-darwin-arm64 → sharp-linux-x64}/LICENSE +0 -0
|
@@ -931,7 +931,7 @@ function AlternatesMetadata({ alternates }) {
|
|
|
931
931
|
// This file is generated by the Webpack next-flight-loader.
|
|
932
932
|
const { createProxy } = __webpack_require__(38898)
|
|
933
933
|
|
|
934
|
-
module.exports = createProxy("/
|
|
934
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/metadata/async-metadata.js")
|
|
935
935
|
|
|
936
936
|
|
|
937
937
|
/***/ }),
|
|
@@ -2786,7 +2786,7 @@ const _boundarycomponents = __webpack_require__(95094);
|
|
|
2786
2786
|
const _preloads = __webpack_require__(12518);
|
|
2787
2787
|
const _postpone = __webpack_require__(11250);
|
|
2788
2788
|
const _taint = __webpack_require__(40610);
|
|
2789
|
-
const _collectsegmentdata = __webpack_require__(
|
|
2789
|
+
const _collectsegmentdata = __webpack_require__(68552);
|
|
2790
2790
|
const _patchfetch = __webpack_require__(85681);
|
|
2791
2791
|
function _interop_require_default(obj) {
|
|
2792
2792
|
return obj && obj.__esModule ? obj : {
|
|
@@ -7822,399 +7822,119 @@ function checkIsRoutePPREnabled(config, appConfig) {
|
|
|
7822
7822
|
|
|
7823
7823
|
/***/ }),
|
|
7824
7824
|
|
|
7825
|
-
/***/
|
|
7826
|
-
/***/ ((
|
|
7825
|
+
/***/ 46259:
|
|
7826
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
7827
7827
|
|
|
7828
7828
|
"use strict";
|
|
7829
7829
|
|
|
7830
7830
|
Object.defineProperty(exports, "__esModule", ({
|
|
7831
7831
|
value: true
|
|
7832
7832
|
}));
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7833
|
+
0 && (0);
|
|
7834
|
+
function _export(target, all) {
|
|
7835
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7836
|
+
enumerable: true,
|
|
7837
|
+
get: all[name]
|
|
7838
|
+
});
|
|
7839
|
+
}
|
|
7840
|
+
_export(exports, {
|
|
7841
|
+
dispatchAppRouterAction: function() {
|
|
7842
|
+
return dispatchAppRouterAction;
|
|
7843
|
+
},
|
|
7844
|
+
useActionQueue: function() {
|
|
7845
|
+
return useActionQueue;
|
|
7837
7846
|
}
|
|
7838
|
-
})
|
|
7839
|
-
const
|
|
7840
|
-
const
|
|
7841
|
-
const
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7847
|
+
});
|
|
7848
|
+
const _interop_require_wildcard = __webpack_require__(53927);
|
|
7849
|
+
const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(31768));
|
|
7850
|
+
const _isthenable = __webpack_require__(39370);
|
|
7851
|
+
// The app router state lives outside of React, so we can import the dispatch
|
|
7852
|
+
// method directly wherever we need it, rather than passing it around via props
|
|
7853
|
+
// or context.
|
|
7854
|
+
let dispatch = null;
|
|
7855
|
+
function dispatchAppRouterAction(action) {
|
|
7856
|
+
if (dispatch === null) {
|
|
7857
|
+
throw Object.defineProperty(new Error('Internal Next.js error: Router action dispatched before initialization.'), "__NEXT_ERROR_CODE", {
|
|
7858
|
+
value: "E668",
|
|
7859
|
+
enumerable: false,
|
|
7860
|
+
configurable: true
|
|
7861
|
+
});
|
|
7852
7862
|
}
|
|
7853
|
-
|
|
7854
|
-
// when generating the original Flight stream for the whole page.
|
|
7863
|
+
dispatch(action);
|
|
7855
7864
|
}
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
//
|
|
7859
|
-
|
|
7860
|
-
//
|
|
7861
|
-
//
|
|
7862
|
-
//
|
|
7863
|
-
//
|
|
7864
|
-
//
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
findSourceMapURL,
|
|
7868
|
-
serverConsumerManifest
|
|
7869
|
-
});
|
|
7870
|
-
await (0, _scheduler.waitAtLeastOneReactRenderTask)();
|
|
7871
|
-
} catch {}
|
|
7872
|
-
// Create an abort controller that we'll use to stop the stream.
|
|
7873
|
-
const abortController = new AbortController();
|
|
7874
|
-
const onCompletedProcessingRouteTree = async ()=>{
|
|
7875
|
-
// Since all we're doing is decoding and re-encoding a cached prerender, if
|
|
7876
|
-
// serializing the stream takes longer than a microtask, it must because of
|
|
7877
|
-
// hanging promises caused by dynamic data.
|
|
7878
|
-
await (0, _scheduler.waitAtLeastOneReactRenderTask)();
|
|
7879
|
-
abortController.abort();
|
|
7880
|
-
};
|
|
7881
|
-
// Generate a stream for the route tree prefetch. While we're walking the
|
|
7882
|
-
// tree, we'll also spawn additional tasks to generate the segment prefetches.
|
|
7883
|
-
// The promises for these tasks are pushed to a mutable array that we will
|
|
7884
|
-
// await once the route tree is fully rendered.
|
|
7885
|
-
const segmentTasks = [];
|
|
7886
|
-
const { prelude: treeStream } = await (0, _static.unstable_prerender)(// RootTreePrefetch is not a valid return type for a React component, but
|
|
7887
|
-
// we need to use a component so that when we decode the original stream
|
|
7888
|
-
// inside of it, the side effects are transferred to the new stream.
|
|
7889
|
-
// @ts-expect-error
|
|
7890
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(PrefetchTreeData, {
|
|
7891
|
-
isClientParamParsingEnabled: isClientParamParsingEnabled,
|
|
7892
|
-
fullPageDataBuffer: fullPageDataBuffer,
|
|
7893
|
-
serverConsumerManifest: serverConsumerManifest,
|
|
7894
|
-
clientModules: clientModules,
|
|
7895
|
-
staleTime: staleTime,
|
|
7896
|
-
segmentTasks: segmentTasks,
|
|
7897
|
-
onCompletedProcessingRouteTree: onCompletedProcessingRouteTree
|
|
7898
|
-
}), clientModules, {
|
|
7899
|
-
filterStackFrame,
|
|
7900
|
-
signal: abortController.signal,
|
|
7901
|
-
onError: onSegmentPrerenderError
|
|
7902
|
-
});
|
|
7903
|
-
// Write the route tree to a special `/_tree` segment.
|
|
7904
|
-
const treeBuffer = await (0, _nodewebstreamshelper.streamToBuffer)(treeStream);
|
|
7905
|
-
resultMap.set('/_tree', treeBuffer);
|
|
7906
|
-
// Now that we've finished rendering the route tree, all the segment tasks
|
|
7907
|
-
// should have been spawned. Await them in parallel and write the segment
|
|
7908
|
-
// prefetches to the result map.
|
|
7909
|
-
for (const [segmentPath, buffer] of (await Promise.all(segmentTasks))){
|
|
7910
|
-
resultMap.set(segmentPath, buffer);
|
|
7865
|
+
function useActionQueue(actionQueue) {
|
|
7866
|
+
const [state, setState] = _react.default.useState(actionQueue.state);
|
|
7867
|
+
// Because of a known issue that requires to decode Flight streams inside the
|
|
7868
|
+
// render phase, we have to be a bit clever and assign the dispatch method to
|
|
7869
|
+
// a module-level variable upon initialization. The useState hook in this
|
|
7870
|
+
// module only exists to synchronize state that lives outside of React.
|
|
7871
|
+
// Ideally, what we'd do instead is pass the state as a prop to root.render;
|
|
7872
|
+
// this is conceptually how we're modeling the app router state, despite the
|
|
7873
|
+
// weird implementation details.
|
|
7874
|
+
if (false) {} else {
|
|
7875
|
+
dispatch = (action)=>actionQueue.dispatch(action, setState);
|
|
7911
7876
|
}
|
|
7912
|
-
return
|
|
7877
|
+
return (0, _isthenable.isThenable)(state) ? (0, _react.use)(state) : state;
|
|
7913
7878
|
}
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7879
|
+
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
|
7880
|
+
Object.defineProperty(exports.default, '__esModule', {
|
|
7881
|
+
value: true
|
|
7882
|
+
});
|
|
7883
|
+
Object.assign(exports.default, exports);
|
|
7884
|
+
module.exports = exports.default;
|
|
7885
|
+
} //# sourceMappingURL=use-action-queue.js.map
|
|
7886
|
+
|
|
7887
|
+
|
|
7888
|
+
/***/ }),
|
|
7889
|
+
|
|
7890
|
+
/***/ 46300:
|
|
7891
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
7892
|
+
|
|
7893
|
+
"use strict";
|
|
7894
|
+
|
|
7895
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
7896
|
+
value: true
|
|
7897
|
+
}));
|
|
7898
|
+
0 && (0);
|
|
7899
|
+
function _export(target, all) {
|
|
7900
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7901
|
+
enumerable: true,
|
|
7902
|
+
get: all[name]
|
|
7923
7903
|
});
|
|
7924
|
-
const buildId = initialRSCPayload.b;
|
|
7925
|
-
// FlightDataPath is an unsound type, hence the additional checks.
|
|
7926
|
-
const flightDataPaths = initialRSCPayload.f;
|
|
7927
|
-
if (flightDataPaths.length !== 1 && flightDataPaths[0].length !== 3) {
|
|
7928
|
-
console.error('Internal Next.js error: InitialRSCPayload does not match the expected ' + 'shape for a prerendered page during segment prefetch generation.');
|
|
7929
|
-
return null;
|
|
7930
|
-
}
|
|
7931
|
-
const flightRouterState = flightDataPaths[0][0];
|
|
7932
|
-
const seedData = flightDataPaths[0][1];
|
|
7933
|
-
const head = flightDataPaths[0][2];
|
|
7934
|
-
// Compute the route metadata tree by traversing the FlightRouterState. As we
|
|
7935
|
-
// walk the tree, we will also spawn a task to produce a prefetch response for
|
|
7936
|
-
// each segment.
|
|
7937
|
-
const tree = collectSegmentDataImpl(isClientParamParsingEnabled, flightRouterState, buildId, seedData, clientModules, _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY, segmentTasks);
|
|
7938
|
-
const isHeadPartial = await isPartialRSCData(head, clientModules);
|
|
7939
|
-
// Notify the abort controller that we're done processing the route tree.
|
|
7940
|
-
// Anything async that happens after this point must be due to hanging
|
|
7941
|
-
// promises in the original stream.
|
|
7942
|
-
onCompletedProcessingRouteTree();
|
|
7943
|
-
// Render the route tree to a special `/_tree` segment.
|
|
7944
|
-
const treePrefetch = {
|
|
7945
|
-
buildId,
|
|
7946
|
-
tree,
|
|
7947
|
-
head,
|
|
7948
|
-
isHeadPartial,
|
|
7949
|
-
staleTime
|
|
7950
|
-
};
|
|
7951
|
-
return treePrefetch;
|
|
7952
7904
|
}
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>renderSegmentPrefetch(buildId, seedData, requestKey, clientModules)));
|
|
7975
|
-
} else {
|
|
7976
|
-
// This segment does not have any seed data. Skip generating a prefetch
|
|
7977
|
-
// response for it. We'll still include it in the route tree, though.
|
|
7978
|
-
// TODO: We should encode in the route tree whether a segment is missing
|
|
7979
|
-
// so we don't attempt to fetch it for no reason. As of now this shouldn't
|
|
7980
|
-
// ever happen in practice, though.
|
|
7905
|
+
_export(exports, {
|
|
7906
|
+
doesStaticSegmentAppearInURL: function() {
|
|
7907
|
+
return doesStaticSegmentAppearInURL;
|
|
7908
|
+
},
|
|
7909
|
+
getCacheKeyForDynamicParam: function() {
|
|
7910
|
+
return getCacheKeyForDynamicParam;
|
|
7911
|
+
},
|
|
7912
|
+
getParamValueFromCacheKey: function() {
|
|
7913
|
+
return getParamValueFromCacheKey;
|
|
7914
|
+
},
|
|
7915
|
+
getRenderedPathname: function() {
|
|
7916
|
+
return getRenderedPathname;
|
|
7917
|
+
},
|
|
7918
|
+
getRenderedSearch: function() {
|
|
7919
|
+
return getRenderedSearch;
|
|
7920
|
+
},
|
|
7921
|
+
parseDynamicParamFromURLPart: function() {
|
|
7922
|
+
return parseDynamicParamFromURLPart;
|
|
7923
|
+
},
|
|
7924
|
+
urlToUrlWithoutFlightMarker: function() {
|
|
7925
|
+
return urlToUrlWithoutFlightMarker;
|
|
7981
7926
|
}
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
paramType = segment[2];
|
|
7994
|
-
}
|
|
7995
|
-
// Metadata about the segment. Sent to the client as part of the
|
|
7996
|
-
// tree prefetch.
|
|
7997
|
-
return {
|
|
7998
|
-
name,
|
|
7999
|
-
paramType,
|
|
8000
|
-
// This value is ommitted from the prefetch response when clientParamParsing
|
|
8001
|
-
// is enabled. The flag only exists while we're testing the feature, in
|
|
8002
|
-
// case there's a bug and we need to revert.
|
|
8003
|
-
// TODO: Remove once clientParamParsing is enabled everywhere.
|
|
8004
|
-
paramKey: isClientParamParsingEnabled ? null : paramKey,
|
|
8005
|
-
slots: slotMetadata,
|
|
8006
|
-
isRootLayout: route[4] === true
|
|
8007
|
-
};
|
|
8008
|
-
}
|
|
8009
|
-
async function renderSegmentPrefetch(buildId, seedData, requestKey, clientModules) {
|
|
8010
|
-
// Render the segment data to a stream.
|
|
8011
|
-
// In the future, this is where we can include additional metadata, like the
|
|
8012
|
-
// stale time and cache tags.
|
|
8013
|
-
const rsc = seedData[1];
|
|
8014
|
-
const loading = seedData[3];
|
|
8015
|
-
const segmentPrefetch = {
|
|
8016
|
-
buildId,
|
|
8017
|
-
rsc,
|
|
8018
|
-
loading,
|
|
8019
|
-
isPartial: await isPartialRSCData(rsc, clientModules)
|
|
8020
|
-
};
|
|
8021
|
-
// Since all we're doing is decoding and re-encoding a cached prerender, if
|
|
8022
|
-
// it takes longer than a microtask, it must because of hanging promises
|
|
8023
|
-
// caused by dynamic data. Abort the stream at the end of the current task.
|
|
8024
|
-
const abortController = new AbortController();
|
|
8025
|
-
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>abortController.abort());
|
|
8026
|
-
const { prelude: segmentStream } = await (0, _static.unstable_prerender)(segmentPrefetch, clientModules, {
|
|
8027
|
-
filterStackFrame,
|
|
8028
|
-
signal: abortController.signal,
|
|
8029
|
-
onError: onSegmentPrerenderError
|
|
8030
|
-
});
|
|
8031
|
-
const segmentBuffer = await (0, _nodewebstreamshelper.streamToBuffer)(segmentStream);
|
|
8032
|
-
if (requestKey === _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY) {
|
|
8033
|
-
return [
|
|
8034
|
-
'/_index',
|
|
8035
|
-
segmentBuffer
|
|
8036
|
-
];
|
|
8037
|
-
} else {
|
|
8038
|
-
return [
|
|
8039
|
-
requestKey,
|
|
8040
|
-
segmentBuffer
|
|
8041
|
-
];
|
|
8042
|
-
}
|
|
8043
|
-
}
|
|
8044
|
-
async function isPartialRSCData(rsc, clientModules) {
|
|
8045
|
-
// We can determine if a segment contains only partial data if it takes longer
|
|
8046
|
-
// than a task to encode, because dynamic data is encoded as an infinite
|
|
8047
|
-
// promise. We must do this in a separate Flight prerender from the one that
|
|
8048
|
-
// actually generates the prefetch stream because we need to include
|
|
8049
|
-
// `isPartial` in the stream itself.
|
|
8050
|
-
let isPartial = false;
|
|
8051
|
-
const abortController = new AbortController();
|
|
8052
|
-
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>{
|
|
8053
|
-
// If we haven't yet finished the outer task, then it must be because we
|
|
8054
|
-
// accessed dynamic data.
|
|
8055
|
-
isPartial = true;
|
|
8056
|
-
abortController.abort();
|
|
8057
|
-
});
|
|
8058
|
-
await (0, _static.unstable_prerender)(rsc, clientModules, {
|
|
8059
|
-
filterStackFrame,
|
|
8060
|
-
signal: abortController.signal,
|
|
8061
|
-
onError () {},
|
|
8062
|
-
onPostpone () {
|
|
8063
|
-
// If something postponed, i.e. when Cache Components is not enabled, we can
|
|
8064
|
-
// infer that the RSC data is partial.
|
|
8065
|
-
isPartial = true;
|
|
8066
|
-
}
|
|
8067
|
-
});
|
|
8068
|
-
return isPartial;
|
|
8069
|
-
}
|
|
8070
|
-
function createUnclosingPrefetchStream(originalFlightStream) {
|
|
8071
|
-
// When PPR is enabled, prefetch streams may contain references that never
|
|
8072
|
-
// resolve, because that's how we encode dynamic data access. In the decoded
|
|
8073
|
-
// object returned by the Flight client, these are reified into hanging
|
|
8074
|
-
// promises that suspend during render, which is effectively what we want.
|
|
8075
|
-
// The UI resolves when it switches to the dynamic data stream
|
|
8076
|
-
// (via useDeferredValue(dynamic, static)).
|
|
8077
|
-
//
|
|
8078
|
-
// However, the Flight implementation currently errors if the server closes
|
|
8079
|
-
// the response before all the references are resolved. As a cheat to work
|
|
8080
|
-
// around this, we wrap the original stream in a new stream that never closes,
|
|
8081
|
-
// and therefore doesn't error.
|
|
8082
|
-
const reader = originalFlightStream.getReader();
|
|
8083
|
-
return new ReadableStream({
|
|
8084
|
-
async pull (controller) {
|
|
8085
|
-
while(true){
|
|
8086
|
-
const { done, value } = await reader.read();
|
|
8087
|
-
if (!done) {
|
|
8088
|
-
// Pass to the target stream and keep consuming the Flight response
|
|
8089
|
-
// from the server.
|
|
8090
|
-
controller.enqueue(value);
|
|
8091
|
-
continue;
|
|
8092
|
-
}
|
|
8093
|
-
// The server stream has closed. Exit, but intentionally do not close
|
|
8094
|
-
// the target stream.
|
|
8095
|
-
return;
|
|
8096
|
-
}
|
|
8097
|
-
}
|
|
8098
|
-
});
|
|
8099
|
-
}
|
|
8100
|
-
|
|
8101
|
-
//# sourceMappingURL=collect-segment-data.js.map
|
|
8102
|
-
|
|
8103
|
-
/***/ }),
|
|
8104
|
-
|
|
8105
|
-
/***/ 46259:
|
|
8106
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
8107
|
-
|
|
8108
|
-
"use strict";
|
|
8109
|
-
|
|
8110
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8111
|
-
value: true
|
|
8112
|
-
}));
|
|
8113
|
-
0 && (0);
|
|
8114
|
-
function _export(target, all) {
|
|
8115
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
8116
|
-
enumerable: true,
|
|
8117
|
-
get: all[name]
|
|
8118
|
-
});
|
|
8119
|
-
}
|
|
8120
|
-
_export(exports, {
|
|
8121
|
-
dispatchAppRouterAction: function() {
|
|
8122
|
-
return dispatchAppRouterAction;
|
|
8123
|
-
},
|
|
8124
|
-
useActionQueue: function() {
|
|
8125
|
-
return useActionQueue;
|
|
8126
|
-
}
|
|
8127
|
-
});
|
|
8128
|
-
const _interop_require_wildcard = __webpack_require__(53927);
|
|
8129
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(31768));
|
|
8130
|
-
const _isthenable = __webpack_require__(39370);
|
|
8131
|
-
// The app router state lives outside of React, so we can import the dispatch
|
|
8132
|
-
// method directly wherever we need it, rather than passing it around via props
|
|
8133
|
-
// or context.
|
|
8134
|
-
let dispatch = null;
|
|
8135
|
-
function dispatchAppRouterAction(action) {
|
|
8136
|
-
if (dispatch === null) {
|
|
8137
|
-
throw Object.defineProperty(new Error('Internal Next.js error: Router action dispatched before initialization.'), "__NEXT_ERROR_CODE", {
|
|
8138
|
-
value: "E668",
|
|
8139
|
-
enumerable: false,
|
|
8140
|
-
configurable: true
|
|
8141
|
-
});
|
|
8142
|
-
}
|
|
8143
|
-
dispatch(action);
|
|
8144
|
-
}
|
|
8145
|
-
function useActionQueue(actionQueue) {
|
|
8146
|
-
const [state, setState] = _react.default.useState(actionQueue.state);
|
|
8147
|
-
// Because of a known issue that requires to decode Flight streams inside the
|
|
8148
|
-
// render phase, we have to be a bit clever and assign the dispatch method to
|
|
8149
|
-
// a module-level variable upon initialization. The useState hook in this
|
|
8150
|
-
// module only exists to synchronize state that lives outside of React.
|
|
8151
|
-
// Ideally, what we'd do instead is pass the state as a prop to root.render;
|
|
8152
|
-
// this is conceptually how we're modeling the app router state, despite the
|
|
8153
|
-
// weird implementation details.
|
|
8154
|
-
if (false) {} else {
|
|
8155
|
-
dispatch = (action)=>actionQueue.dispatch(action, setState);
|
|
8156
|
-
}
|
|
8157
|
-
return (0, _isthenable.isThenable)(state) ? (0, _react.use)(state) : state;
|
|
8158
|
-
}
|
|
8159
|
-
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
|
8160
|
-
Object.defineProperty(exports.default, '__esModule', {
|
|
8161
|
-
value: true
|
|
8162
|
-
});
|
|
8163
|
-
Object.assign(exports.default, exports);
|
|
8164
|
-
module.exports = exports.default;
|
|
8165
|
-
} //# sourceMappingURL=use-action-queue.js.map
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
/***/ }),
|
|
8169
|
-
|
|
8170
|
-
/***/ 46300:
|
|
8171
|
-
/***/ ((module, exports, __webpack_require__) => {
|
|
8172
|
-
|
|
8173
|
-
"use strict";
|
|
8174
|
-
|
|
8175
|
-
Object.defineProperty(exports, "__esModule", ({
|
|
8176
|
-
value: true
|
|
8177
|
-
}));
|
|
8178
|
-
0 && (0);
|
|
8179
|
-
function _export(target, all) {
|
|
8180
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
8181
|
-
enumerable: true,
|
|
8182
|
-
get: all[name]
|
|
8183
|
-
});
|
|
8184
|
-
}
|
|
8185
|
-
_export(exports, {
|
|
8186
|
-
doesStaticSegmentAppearInURL: function() {
|
|
8187
|
-
return doesStaticSegmentAppearInURL;
|
|
8188
|
-
},
|
|
8189
|
-
getCacheKeyForDynamicParam: function() {
|
|
8190
|
-
return getCacheKeyForDynamicParam;
|
|
8191
|
-
},
|
|
8192
|
-
getParamValueFromCacheKey: function() {
|
|
8193
|
-
return getParamValueFromCacheKey;
|
|
8194
|
-
},
|
|
8195
|
-
getRenderedPathname: function() {
|
|
8196
|
-
return getRenderedPathname;
|
|
8197
|
-
},
|
|
8198
|
-
getRenderedSearch: function() {
|
|
8199
|
-
return getRenderedSearch;
|
|
8200
|
-
},
|
|
8201
|
-
parseDynamicParamFromURLPart: function() {
|
|
8202
|
-
return parseDynamicParamFromURLPart;
|
|
8203
|
-
},
|
|
8204
|
-
urlToUrlWithoutFlightMarker: function() {
|
|
8205
|
-
return urlToUrlWithoutFlightMarker;
|
|
8206
|
-
}
|
|
8207
|
-
});
|
|
8208
|
-
const _segment = __webpack_require__(44859);
|
|
8209
|
-
const _segmentvalueencoding = __webpack_require__(5774);
|
|
8210
|
-
const _approuterheaders = __webpack_require__(58529);
|
|
8211
|
-
function getRenderedSearch(response) {
|
|
8212
|
-
// If the server performed a rewrite, the search params used to render the
|
|
8213
|
-
// page will be different from the params in the request URL. In this case,
|
|
8214
|
-
// the response will include a header that gives the rewritten search query.
|
|
8215
|
-
const rewrittenQuery = response.headers.get(_approuterheaders.NEXT_REWRITTEN_QUERY_HEADER);
|
|
8216
|
-
if (rewrittenQuery !== null) {
|
|
8217
|
-
return rewrittenQuery === '' ? '' : '?' + rewrittenQuery;
|
|
7927
|
+
});
|
|
7928
|
+
const _segment = __webpack_require__(44859);
|
|
7929
|
+
const _segmentvalueencoding = __webpack_require__(5774);
|
|
7930
|
+
const _approuterheaders = __webpack_require__(58529);
|
|
7931
|
+
function getRenderedSearch(response) {
|
|
7932
|
+
// If the server performed a rewrite, the search params used to render the
|
|
7933
|
+
// page will be different from the params in the request URL. In this case,
|
|
7934
|
+
// the response will include a header that gives the rewritten search query.
|
|
7935
|
+
const rewrittenQuery = response.headers.get(_approuterheaders.NEXT_REWRITTEN_QUERY_HEADER);
|
|
7936
|
+
if (rewrittenQuery !== null) {
|
|
7937
|
+
return rewrittenQuery === '' ? '' : '?' + rewrittenQuery;
|
|
8218
7938
|
}
|
|
8219
7939
|
// If the header is not present, there was no rewrite, so we use the search
|
|
8220
7940
|
// query of the response URL.
|
|
@@ -8889,7 +8609,7 @@ function stringifyError(error) {
|
|
|
8889
8609
|
// This file is generated by the Webpack next-flight-loader.
|
|
8890
8610
|
const { createProxy } = __webpack_require__(38898)
|
|
8891
8611
|
|
|
8892
|
-
module.exports = createProxy("/
|
|
8612
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js")
|
|
8893
8613
|
|
|
8894
8614
|
|
|
8895
8615
|
/***/ }),
|
|
@@ -9452,7 +9172,7 @@ if ((typeof exports.default === 'function' || typeof exports.default === 'object
|
|
|
9452
9172
|
// This file is generated by the Webpack next-flight-loader.
|
|
9453
9173
|
const { createProxy } = __webpack_require__(38898)
|
|
9454
9174
|
|
|
9455
|
-
module.exports = createProxy("/
|
|
9175
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/client-page.js")
|
|
9456
9176
|
|
|
9457
9177
|
|
|
9458
9178
|
/***/ }),
|
|
@@ -11556,7 +11276,7 @@ function MultiMeta({ propertyPrefix, namePrefix, contents }) {
|
|
|
11556
11276
|
// This file is generated by the Webpack next-flight-loader.
|
|
11557
11277
|
const { createProxy } = __webpack_require__(38898)
|
|
11558
11278
|
|
|
11559
|
-
module.exports = createProxy("/
|
|
11279
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/lib/metadata/generate/icon-mark.js")
|
|
11560
11280
|
|
|
11561
11281
|
|
|
11562
11282
|
/***/ }),
|
|
@@ -11849,6 +11569,286 @@ function createDedupedByCallsiteServerErrorLoggerDev(getMessage) {
|
|
|
11849
11569
|
|
|
11850
11570
|
/***/ }),
|
|
11851
11571
|
|
|
11572
|
+
/***/ 68552:
|
|
11573
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11574
|
+
|
|
11575
|
+
"use strict";
|
|
11576
|
+
|
|
11577
|
+
Object.defineProperty(exports, "__esModule", ({
|
|
11578
|
+
value: true
|
|
11579
|
+
}));
|
|
11580
|
+
Object.defineProperty(exports, "collectSegmentData", ({
|
|
11581
|
+
enumerable: true,
|
|
11582
|
+
get: function() {
|
|
11583
|
+
return collectSegmentData;
|
|
11584
|
+
}
|
|
11585
|
+
}));
|
|
11586
|
+
const _jsxruntime = __webpack_require__(5939);
|
|
11587
|
+
const _client = __webpack_require__(85030);
|
|
11588
|
+
const _static = __webpack_require__(4718);
|
|
11589
|
+
const _nodewebstreamshelper = __webpack_require__(30193);
|
|
11590
|
+
const _scheduler = __webpack_require__(3693);
|
|
11591
|
+
const _segmentvalueencoding = __webpack_require__(43796);
|
|
11592
|
+
const _createerrorhandler = __webpack_require__(46919);
|
|
11593
|
+
const filterStackFrame = false ? 0 : undefined;
|
|
11594
|
+
const findSourceMapURL = false ? 0 : undefined;
|
|
11595
|
+
function onSegmentPrerenderError(error) {
|
|
11596
|
+
const digest = (0, _createerrorhandler.getDigestForWellKnownError)(error);
|
|
11597
|
+
if (digest) {
|
|
11598
|
+
return digest;
|
|
11599
|
+
}
|
|
11600
|
+
// We don't need to log the errors because we would have already done that
|
|
11601
|
+
// when generating the original Flight stream for the whole page.
|
|
11602
|
+
}
|
|
11603
|
+
async function collectSegmentData(isClientParamParsingEnabled, fullPageDataBuffer, staleTime, clientModules, serverConsumerManifest) {
|
|
11604
|
+
// Traverse the router tree and generate a prefetch response for each segment.
|
|
11605
|
+
// A mutable map to collect the results as we traverse the route tree.
|
|
11606
|
+
const resultMap = new Map();
|
|
11607
|
+
// Before we start, warm up the module cache by decoding the page data once.
|
|
11608
|
+
// Then we can assume that any remaining async tasks that occur the next time
|
|
11609
|
+
// are due to hanging promises caused by dynamic data access. Note we only
|
|
11610
|
+
// have to do this once per page, not per individual segment.
|
|
11611
|
+
//
|
|
11612
|
+
try {
|
|
11613
|
+
await (0, _client.createFromReadableStream)((0, _nodewebstreamshelper.streamFromBuffer)(fullPageDataBuffer), {
|
|
11614
|
+
findSourceMapURL,
|
|
11615
|
+
serverConsumerManifest
|
|
11616
|
+
});
|
|
11617
|
+
await (0, _scheduler.waitAtLeastOneReactRenderTask)();
|
|
11618
|
+
} catch {}
|
|
11619
|
+
// Create an abort controller that we'll use to stop the stream.
|
|
11620
|
+
const abortController = new AbortController();
|
|
11621
|
+
const onCompletedProcessingRouteTree = async ()=>{
|
|
11622
|
+
// Since all we're doing is decoding and re-encoding a cached prerender, if
|
|
11623
|
+
// serializing the stream takes longer than a microtask, it must because of
|
|
11624
|
+
// hanging promises caused by dynamic data.
|
|
11625
|
+
await (0, _scheduler.waitAtLeastOneReactRenderTask)();
|
|
11626
|
+
abortController.abort();
|
|
11627
|
+
};
|
|
11628
|
+
// Generate a stream for the route tree prefetch. While we're walking the
|
|
11629
|
+
// tree, we'll also spawn additional tasks to generate the segment prefetches.
|
|
11630
|
+
// The promises for these tasks are pushed to a mutable array that we will
|
|
11631
|
+
// await once the route tree is fully rendered.
|
|
11632
|
+
const segmentTasks = [];
|
|
11633
|
+
const { prelude: treeStream } = await (0, _static.unstable_prerender)(// RootTreePrefetch is not a valid return type for a React component, but
|
|
11634
|
+
// we need to use a component so that when we decode the original stream
|
|
11635
|
+
// inside of it, the side effects are transferred to the new stream.
|
|
11636
|
+
// @ts-expect-error
|
|
11637
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(PrefetchTreeData, {
|
|
11638
|
+
isClientParamParsingEnabled: isClientParamParsingEnabled,
|
|
11639
|
+
fullPageDataBuffer: fullPageDataBuffer,
|
|
11640
|
+
serverConsumerManifest: serverConsumerManifest,
|
|
11641
|
+
clientModules: clientModules,
|
|
11642
|
+
staleTime: staleTime,
|
|
11643
|
+
segmentTasks: segmentTasks,
|
|
11644
|
+
onCompletedProcessingRouteTree: onCompletedProcessingRouteTree
|
|
11645
|
+
}), clientModules, {
|
|
11646
|
+
filterStackFrame,
|
|
11647
|
+
signal: abortController.signal,
|
|
11648
|
+
onError: onSegmentPrerenderError
|
|
11649
|
+
});
|
|
11650
|
+
// Write the route tree to a special `/_tree` segment.
|
|
11651
|
+
const treeBuffer = await (0, _nodewebstreamshelper.streamToBuffer)(treeStream);
|
|
11652
|
+
resultMap.set('/_tree', treeBuffer);
|
|
11653
|
+
// Now that we've finished rendering the route tree, all the segment tasks
|
|
11654
|
+
// should have been spawned. Await them in parallel and write the segment
|
|
11655
|
+
// prefetches to the result map.
|
|
11656
|
+
for (const [segmentPath, buffer] of (await Promise.all(segmentTasks))){
|
|
11657
|
+
resultMap.set(segmentPath, buffer);
|
|
11658
|
+
}
|
|
11659
|
+
return resultMap;
|
|
11660
|
+
}
|
|
11661
|
+
async function PrefetchTreeData({ isClientParamParsingEnabled, fullPageDataBuffer, serverConsumerManifest, clientModules, staleTime, segmentTasks, onCompletedProcessingRouteTree }) {
|
|
11662
|
+
// We're currently rendering a Flight response for the route tree prefetch.
|
|
11663
|
+
// Inside this component, decode the Flight stream for the whole page. This is
|
|
11664
|
+
// a hack to transfer the side effects from the original Flight stream (e.g.
|
|
11665
|
+
// Float preloads) onto the Flight stream for the tree prefetch.
|
|
11666
|
+
// TODO: React needs a better way to do this. Needed for Server Actions, too.
|
|
11667
|
+
const initialRSCPayload = await (0, _client.createFromReadableStream)(createUnclosingPrefetchStream((0, _nodewebstreamshelper.streamFromBuffer)(fullPageDataBuffer)), {
|
|
11668
|
+
findSourceMapURL,
|
|
11669
|
+
serverConsumerManifest
|
|
11670
|
+
});
|
|
11671
|
+
const buildId = initialRSCPayload.b;
|
|
11672
|
+
// FlightDataPath is an unsound type, hence the additional checks.
|
|
11673
|
+
const flightDataPaths = initialRSCPayload.f;
|
|
11674
|
+
if (flightDataPaths.length !== 1 && flightDataPaths[0].length !== 3) {
|
|
11675
|
+
console.error('Internal Next.js error: InitialRSCPayload does not match the expected ' + 'shape for a prerendered page during segment prefetch generation.');
|
|
11676
|
+
return null;
|
|
11677
|
+
}
|
|
11678
|
+
const flightRouterState = flightDataPaths[0][0];
|
|
11679
|
+
const seedData = flightDataPaths[0][1];
|
|
11680
|
+
const head = flightDataPaths[0][2];
|
|
11681
|
+
// Compute the route metadata tree by traversing the FlightRouterState. As we
|
|
11682
|
+
// walk the tree, we will also spawn a task to produce a prefetch response for
|
|
11683
|
+
// each segment.
|
|
11684
|
+
const tree = collectSegmentDataImpl(isClientParamParsingEnabled, flightRouterState, buildId, seedData, clientModules, _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY, segmentTasks);
|
|
11685
|
+
const isHeadPartial = await isPartialRSCData(head, clientModules);
|
|
11686
|
+
// Notify the abort controller that we're done processing the route tree.
|
|
11687
|
+
// Anything async that happens after this point must be due to hanging
|
|
11688
|
+
// promises in the original stream.
|
|
11689
|
+
onCompletedProcessingRouteTree();
|
|
11690
|
+
// Render the route tree to a special `/_tree` segment.
|
|
11691
|
+
const treePrefetch = {
|
|
11692
|
+
buildId,
|
|
11693
|
+
tree,
|
|
11694
|
+
head,
|
|
11695
|
+
isHeadPartial,
|
|
11696
|
+
staleTime
|
|
11697
|
+
};
|
|
11698
|
+
return treePrefetch;
|
|
11699
|
+
}
|
|
11700
|
+
function collectSegmentDataImpl(isClientParamParsingEnabled, route, buildId, seedData, clientModules, requestKey, segmentTasks) {
|
|
11701
|
+
// Metadata about the segment. Sent as part of the tree prefetch. Null if
|
|
11702
|
+
// there are no children.
|
|
11703
|
+
let slotMetadata = null;
|
|
11704
|
+
const children = route[1];
|
|
11705
|
+
const seedDataChildren = seedData !== null ? seedData[2] : null;
|
|
11706
|
+
for(const parallelRouteKey in children){
|
|
11707
|
+
const childRoute = children[parallelRouteKey];
|
|
11708
|
+
const childSegment = childRoute[0];
|
|
11709
|
+
const childSeedData = seedDataChildren !== null ? seedDataChildren[parallelRouteKey] : null;
|
|
11710
|
+
const childRequestKey = (0, _segmentvalueencoding.appendSegmentRequestKeyPart)(requestKey, parallelRouteKey, (0, _segmentvalueencoding.createSegmentRequestKeyPart)(childSegment));
|
|
11711
|
+
const childTree = collectSegmentDataImpl(isClientParamParsingEnabled, childRoute, buildId, childSeedData, clientModules, childRequestKey, segmentTasks);
|
|
11712
|
+
if (slotMetadata === null) {
|
|
11713
|
+
slotMetadata = {};
|
|
11714
|
+
}
|
|
11715
|
+
slotMetadata[parallelRouteKey] = childTree;
|
|
11716
|
+
}
|
|
11717
|
+
if (seedData !== null) {
|
|
11718
|
+
// Spawn a task to write the segment data to a new Flight stream.
|
|
11719
|
+
segmentTasks.push(// Since we're already in the middle of a render, wait until after the
|
|
11720
|
+
// current task to escape the current rendering context.
|
|
11721
|
+
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>renderSegmentPrefetch(buildId, seedData, requestKey, clientModules)));
|
|
11722
|
+
} else {
|
|
11723
|
+
// This segment does not have any seed data. Skip generating a prefetch
|
|
11724
|
+
// response for it. We'll still include it in the route tree, though.
|
|
11725
|
+
// TODO: We should encode in the route tree whether a segment is missing
|
|
11726
|
+
// so we don't attempt to fetch it for no reason. As of now this shouldn't
|
|
11727
|
+
// ever happen in practice, though.
|
|
11728
|
+
}
|
|
11729
|
+
const segment = route[0];
|
|
11730
|
+
let name;
|
|
11731
|
+
let paramType = null;
|
|
11732
|
+
let paramKey = null;
|
|
11733
|
+
if (typeof segment === 'string') {
|
|
11734
|
+
name = segment;
|
|
11735
|
+
paramKey = segment;
|
|
11736
|
+
paramType = null;
|
|
11737
|
+
} else {
|
|
11738
|
+
name = segment[0];
|
|
11739
|
+
paramKey = segment[1];
|
|
11740
|
+
paramType = segment[2];
|
|
11741
|
+
}
|
|
11742
|
+
// Metadata about the segment. Sent to the client as part of the
|
|
11743
|
+
// tree prefetch.
|
|
11744
|
+
return {
|
|
11745
|
+
name,
|
|
11746
|
+
paramType,
|
|
11747
|
+
// This value is ommitted from the prefetch response when clientParamParsing
|
|
11748
|
+
// is enabled. The flag only exists while we're testing the feature, in
|
|
11749
|
+
// case there's a bug and we need to revert.
|
|
11750
|
+
// TODO: Remove once clientParamParsing is enabled everywhere.
|
|
11751
|
+
paramKey: isClientParamParsingEnabled ? null : paramKey,
|
|
11752
|
+
slots: slotMetadata,
|
|
11753
|
+
isRootLayout: route[4] === true
|
|
11754
|
+
};
|
|
11755
|
+
}
|
|
11756
|
+
async function renderSegmentPrefetch(buildId, seedData, requestKey, clientModules) {
|
|
11757
|
+
// Render the segment data to a stream.
|
|
11758
|
+
// In the future, this is where we can include additional metadata, like the
|
|
11759
|
+
// stale time and cache tags.
|
|
11760
|
+
const rsc = seedData[1];
|
|
11761
|
+
const loading = seedData[3];
|
|
11762
|
+
const segmentPrefetch = {
|
|
11763
|
+
buildId,
|
|
11764
|
+
rsc,
|
|
11765
|
+
loading,
|
|
11766
|
+
isPartial: await isPartialRSCData(rsc, clientModules)
|
|
11767
|
+
};
|
|
11768
|
+
// Since all we're doing is decoding and re-encoding a cached prerender, if
|
|
11769
|
+
// it takes longer than a microtask, it must because of hanging promises
|
|
11770
|
+
// caused by dynamic data. Abort the stream at the end of the current task.
|
|
11771
|
+
const abortController = new AbortController();
|
|
11772
|
+
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>abortController.abort());
|
|
11773
|
+
const { prelude: segmentStream } = await (0, _static.unstable_prerender)(segmentPrefetch, clientModules, {
|
|
11774
|
+
filterStackFrame,
|
|
11775
|
+
signal: abortController.signal,
|
|
11776
|
+
onError: onSegmentPrerenderError
|
|
11777
|
+
});
|
|
11778
|
+
const segmentBuffer = await (0, _nodewebstreamshelper.streamToBuffer)(segmentStream);
|
|
11779
|
+
if (requestKey === _segmentvalueencoding.ROOT_SEGMENT_REQUEST_KEY) {
|
|
11780
|
+
return [
|
|
11781
|
+
'/_index',
|
|
11782
|
+
segmentBuffer
|
|
11783
|
+
];
|
|
11784
|
+
} else {
|
|
11785
|
+
return [
|
|
11786
|
+
requestKey,
|
|
11787
|
+
segmentBuffer
|
|
11788
|
+
];
|
|
11789
|
+
}
|
|
11790
|
+
}
|
|
11791
|
+
async function isPartialRSCData(rsc, clientModules) {
|
|
11792
|
+
// We can determine if a segment contains only partial data if it takes longer
|
|
11793
|
+
// than a task to encode, because dynamic data is encoded as an infinite
|
|
11794
|
+
// promise. We must do this in a separate Flight prerender from the one that
|
|
11795
|
+
// actually generates the prefetch stream because we need to include
|
|
11796
|
+
// `isPartial` in the stream itself.
|
|
11797
|
+
let isPartial = false;
|
|
11798
|
+
const abortController = new AbortController();
|
|
11799
|
+
(0, _scheduler.waitAtLeastOneReactRenderTask)().then(()=>{
|
|
11800
|
+
// If we haven't yet finished the outer task, then it must be because we
|
|
11801
|
+
// accessed dynamic data.
|
|
11802
|
+
isPartial = true;
|
|
11803
|
+
abortController.abort();
|
|
11804
|
+
});
|
|
11805
|
+
await (0, _static.unstable_prerender)(rsc, clientModules, {
|
|
11806
|
+
filterStackFrame,
|
|
11807
|
+
signal: abortController.signal,
|
|
11808
|
+
onError () {},
|
|
11809
|
+
onPostpone () {
|
|
11810
|
+
// If something postponed, i.e. when Cache Components is not enabled, we can
|
|
11811
|
+
// infer that the RSC data is partial.
|
|
11812
|
+
isPartial = true;
|
|
11813
|
+
}
|
|
11814
|
+
});
|
|
11815
|
+
return isPartial;
|
|
11816
|
+
}
|
|
11817
|
+
function createUnclosingPrefetchStream(originalFlightStream) {
|
|
11818
|
+
// When PPR is enabled, prefetch streams may contain references that never
|
|
11819
|
+
// resolve, because that's how we encode dynamic data access. In the decoded
|
|
11820
|
+
// object returned by the Flight client, these are reified into hanging
|
|
11821
|
+
// promises that suspend during render, which is effectively what we want.
|
|
11822
|
+
// The UI resolves when it switches to the dynamic data stream
|
|
11823
|
+
// (via useDeferredValue(dynamic, static)).
|
|
11824
|
+
//
|
|
11825
|
+
// However, the Flight implementation currently errors if the server closes
|
|
11826
|
+
// the response before all the references are resolved. As a cheat to work
|
|
11827
|
+
// around this, we wrap the original stream in a new stream that never closes,
|
|
11828
|
+
// and therefore doesn't error.
|
|
11829
|
+
const reader = originalFlightStream.getReader();
|
|
11830
|
+
return new ReadableStream({
|
|
11831
|
+
async pull (controller) {
|
|
11832
|
+
while(true){
|
|
11833
|
+
const { done, value } = await reader.read();
|
|
11834
|
+
if (!done) {
|
|
11835
|
+
// Pass to the target stream and keep consuming the Flight response
|
|
11836
|
+
// from the server.
|
|
11837
|
+
controller.enqueue(value);
|
|
11838
|
+
continue;
|
|
11839
|
+
}
|
|
11840
|
+
// The server stream has closed. Exit, but intentionally do not close
|
|
11841
|
+
// the target stream.
|
|
11842
|
+
return;
|
|
11843
|
+
}
|
|
11844
|
+
}
|
|
11845
|
+
});
|
|
11846
|
+
}
|
|
11847
|
+
|
|
11848
|
+
//# sourceMappingURL=collect-segment-data.js.map
|
|
11849
|
+
|
|
11850
|
+
/***/ }),
|
|
11851
|
+
|
|
11852
11852
|
/***/ 68597:
|
|
11853
11853
|
/***/ ((module, exports, __webpack_require__) => {
|
|
11854
11854
|
|
|
@@ -12715,7 +12715,7 @@ if ((typeof exports.default === 'function' || typeof exports.default === 'object
|
|
|
12715
12715
|
// This file is generated by the Webpack next-flight-loader.
|
|
12716
12716
|
const { createProxy } = __webpack_require__(38898)
|
|
12717
12717
|
|
|
12718
|
-
module.exports = createProxy("/
|
|
12718
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/render-from-template-context.js")
|
|
12719
12719
|
|
|
12720
12720
|
|
|
12721
12721
|
/***/ }),
|
|
@@ -14507,7 +14507,7 @@ function getBotType(userAgent) {
|
|
|
14507
14507
|
// This file is generated by the Webpack next-flight-loader.
|
|
14508
14508
|
const { createProxy } = __webpack_require__(38898)
|
|
14509
14509
|
|
|
14510
|
-
module.exports = createProxy("/
|
|
14510
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/client-segment.js")
|
|
14511
14511
|
|
|
14512
14512
|
|
|
14513
14513
|
/***/ }),
|
|
@@ -16183,7 +16183,7 @@ function describeListOfPropertyNames(properties) {
|
|
|
16183
16183
|
// This file is generated by the Webpack next-flight-loader.
|
|
16184
16184
|
const { createProxy } = __webpack_require__(38898)
|
|
16185
16185
|
|
|
16186
|
-
module.exports = createProxy("/
|
|
16186
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/lib/framework/boundary-components.js")
|
|
16187
16187
|
|
|
16188
16188
|
|
|
16189
16189
|
/***/ }),
|
|
@@ -16194,7 +16194,7 @@ module.exports = createProxy("/Users/pingel/git_repos/github.com/The-AI-Alliance
|
|
|
16194
16194
|
// This file is generated by the Webpack next-flight-loader.
|
|
16195
16195
|
const { createProxy } = __webpack_require__(38898)
|
|
16196
16196
|
|
|
16197
|
-
module.exports = createProxy("/
|
|
16197
|
+
module.exports = createProxy("/home/runner/work/semiont/semiont/node_modules/next/dist/client/components/layout-router.js")
|
|
16198
16198
|
|
|
16199
16199
|
|
|
16200
16200
|
/***/ }),
|