diffhub 0.1.4 → 0.1.6
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/.next/standalone/apps/web/.next/BUILD_ID +1 -1
- package/.next/standalone/apps/web/.next/app-path-routes-manifest.json +2 -1
- package/.next/standalone/apps/web/.next/build-manifest.json +3 -3
- package/.next/standalone/apps/web/.next/prerender-manifest.json +3 -3
- package/.next/standalone/apps/web/.next/routes-manifest.json +9 -3
- package/.next/standalone/apps/web/.next/server/app/_global-error/page.js +2 -2
- package/.next/standalone/apps/web/.next/server/app/_global-error/page.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found/page.js +2 -2
- package/.next/standalone/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/_not-found.rsc +11 -11
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +11 -11
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +6 -6
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
- package/.next/standalone/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/apps/web/.next/server/app/api/comments/route.js +3 -2
- package/.next/standalone/apps/web/.next/server/app/api/comments/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/diff/route.js +3 -4
- package/.next/standalone/apps/web/.next/server/app/api/diff/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/discard/route.js +3 -3
- package/.next/standalone/apps/web/.next/server/app/api/discard/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/file/route.js +3 -3
- package/.next/standalone/apps/web/.next/server/app/api/file/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/files/route.js +3 -3
- package/.next/standalone/apps/web/.next/server/app/api/files/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/health/route/app-paths-manifest.json +3 -0
- package/.next/standalone/apps/web/.next/server/app/api/health/route.js +6 -0
- package/.next/standalone/apps/web/.next/server/app/api/health/route.js.nft.json +1 -0
- package/.next/standalone/apps/web/.next/server/app/api/health/route_client-reference-manifest.js +3 -0
- package/.next/standalone/apps/web/.next/server/app/api/watch/route/app-paths-manifest.json +3 -0
- package/.next/standalone/apps/web/.next/server/app/api/watch/route/build-manifest.json +9 -0
- package/.next/standalone/apps/web/.next/server/app/api/watch/route/server-reference-manifest.json +4 -0
- package/.next/standalone/apps/web/.next/server/app/api/watch/route.js +6 -0
- package/.next/standalone/apps/web/.next/server/app/api/watch/route.js.map +5 -0
- package/.next/standalone/apps/web/.next/server/app/api/{open → watch}/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/api/watch/route_client-reference-manifest.js +3 -0
- package/.next/standalone/apps/web/.next/server/app/favicon.ico/route.js +2 -1
- package/.next/standalone/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/index.html +1 -1
- package/.next/standalone/apps/web/.next/server/app/index.rsc +12 -12
- package/.next/standalone/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/standalone/apps/web/.next/server/app/index.segments/_full.segment.rsc +12 -12
- package/.next/standalone/apps/web/.next/server/app/index.segments/_head.segment.rsc +4 -4
- package/.next/standalone/apps/web/.next/server/app/index.segments/_index.segment.rsc +6 -6
- package/.next/standalone/apps/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/apps/web/.next/server/app/page.js +2 -2
- package/.next/standalone/apps/web/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/apps/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/app-paths-manifest.json +2 -1
- package/.next/standalone/apps/web/.next/server/chunks/0fuv_next_0e28~xv._.js +13 -0
- package/.next/standalone/apps/web/.next/server/chunks/[externals]__11vad82._.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0.w.o06._.js +4 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__01xaw-k._.js +4 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__09jw.a~._.js +4 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0f~jrb-._.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0gx-yyt._.js +4 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0h91.i1._.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0pdu84y._.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0rv27~3._.js +4 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__110z8gu._.js +20 -0
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__11uz7s9._.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/{_0r24f4c._.js → _0jcmjdn._.js} +31 -4
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_comments_route_actions_0cubv9d.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_diff_route_actions_03v97p2.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_discard_route_actions_0atmzwp.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_file_route_actions_00.gqla.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_files_route_actions_0ywjjl0.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_health_route_actions_08i7v0h.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_watch_route_actions_0k9olin.js +3 -0
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_0h5n1et.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/ssr/{0fuv_next_dist_0msbqso._.js → [root-of-the-server]__0djkqf8._.js} +3 -3
- package/.next/standalone/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0giwc4b._.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/ssr/{[root-of-the-server]__0licei1._.js → [root-of-the-server]__0t1vjyl._.js} +2 -2
- package/.next/standalone/apps/web/.next/server/chunks/ssr/_0oc3qg_._.js +31 -3
- package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js +1 -1
- package/.next/standalone/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js +1 -1
- package/.next/standalone/apps/web/.next/server/functions-config-manifest.json +13 -1
- package/.next/standalone/apps/web/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/apps/web/.next/server/middleware.js +5 -0
- package/.next/standalone/apps/web/.next/server/pages/404.html +1 -1
- package/.next/standalone/apps/web/.next/server/pages/500.html +1 -1
- package/.next/standalone/apps/web/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/apps/web/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/apps/web/.next/static/chunks/0_87y4ku2u.g6.js +44 -0
- package/.next/standalone/apps/web/.next/static/chunks/0lo6jalz5wqe-.css +3 -0
- package/.next/standalone/apps/web/.next/static/chunks/{080bf48.keyld.js → 0tp4_-fc0.o0m.js} +1 -1
- package/.next/standalone/apps/web/.next/static/chunks/{0qp8t.3t~v6um.js → 129j.vkoufmaw.js} +1 -1
- package/.next/standalone/apps/web/.next/static/f0Q3TSdyAWb6O9i9BUoq8/_clientMiddlewareManifest.js +6 -0
- package/.next/standalone/apps/web/package.json +10 -4
- package/.next/standalone/apps/web/server.js +7 -1
- package/bin/diffhub.mjs +924 -75
- package/package.json +10 -4
- package/.next/standalone/apps/web/.next/server/app/api/open/route/app-paths-manifest.json +0 -3
- package/.next/standalone/apps/web/.next/server/app/api/open/route.js +0 -6
- package/.next/standalone/apps/web/.next/server/app/api/open/route_client-reference-manifest.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__01.zj5h._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__05ejtyr._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0e2dp4h._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0egk6ui._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0i6i-~n._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0l9skgg._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0sv4hr9._.js +0 -3
- package/.next/standalone/apps/web/.next/server/chunks/[root-of-the-server]__0tbrp5x._.js +0 -13
- package/.next/standalone/apps/web/.next/server/chunks/apps_web__next-internal_server_app_api_open_route_actions_0pjyc8r.js +0 -3
- package/.next/standalone/apps/web/.next/static/AIw7gAubH_UEr9lUympAt/_clientMiddlewareManifest.js +0 -1
- package/.next/standalone/apps/web/.next/static/chunks/0b4pujbysgmxg.js +0 -16
- package/.next/standalone/apps/web/.next/static/chunks/130i667qy-j80.css +0 -3
- /package/.next/standalone/apps/web/.next/server/app/api/{open → health}/route/build-manifest.json +0 -0
- /package/.next/standalone/apps/web/.next/server/app/api/{open → health}/route/server-reference-manifest.json +0 -0
- /package/.next/standalone/apps/web/.next/server/app/api/{open → health}/route.js.map +0 -0
- /package/.next/standalone/apps/web/.next/static/{AIw7gAubH_UEr9lUympAt → f0Q3TSdyAWb6O9i9BUoq8}/_buildManifest.js +0 -0
- /package/.next/standalone/apps/web/.next/static/{AIw7gAubH_UEr9lUympAt → f0Q3TSdyAWb6O9i9BUoq8}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/apps/web/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":10291,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/layout-router.js":{"id":10291,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":2968,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2968,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":37745,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-page.js":{"id":37745,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":45589,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-segment.js":{"id":45589,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":45319,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":45319,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":82520,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":82520,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":60329,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":60329,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/agentation/dist/index.mjs <module evaluation>":{"id":78042,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/agentation/dist/index.mjs":{"id":78042,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/DiffsWorkerProvider.tsx <module evaluation>":{"id":41447,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":true},"[project]/apps/web/components/DiffsWorkerProvider.tsx":{"id":41447,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":true},"[project]/apps/web/components/theme-provider.tsx <module evaluation>":{"id":5625,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/theme-provider.tsx":{"id":5625,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":24462,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error.js":{"id":24462,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/DiffApp.tsx <module evaluation>":{"id":33357,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js","/_next/static/chunks/0ogqv_xj2r0c6.js","/_next/static/chunks/0b4pujbysgmxg.js"],"async":false},"[project]/apps/web/components/DiffApp.tsx":{"id":33357,"name":"*","chunks":["/_next/static/chunks/0qp8t.3t~v6um.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js","/_next/static/chunks/0ogqv_xj2r0c6.js","/_next/static/chunks/0b4pujbysgmxg.js"],"async":false}},"ssrModuleMapping":{"10291":{"*":{"id":23962,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"2968":{"*":{"id":75450,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"37745":{"*":{"id":19238,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"45589":{"*":{"id":46169,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"45319":{"*":{"id":79227,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"82520":{"*":{"id":5512,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"60329":{"*":{"id":40278,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"78042":{"*":{"id":95969,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"41447":{"*":{"id":27582,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":true}},"5625":{"*":{"id":78696,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"24462":{"*":{"id":82516,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js","server/chunks/ssr/0fuv_0frin6b._.js"],"async":false}},"33357":{"*":{"id":44425,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js","server/chunks/ssr/0fuv_@swc_helpers_cjs__interop_require_default_cjs_0ghzfn9._.js","server/chunks/ssr/_0oc3qg_._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"10291":{"*":{"id":73337,"name":"*","chunks":[],"async":false}},"2968":{"*":{"id":86122,"name":"*","chunks":[],"async":false}},"37745":{"*":{"id":24114,"name":"*","chunks":[],"async":false}},"45589":{"*":{"id":58696,"name":"*","chunks":[],"async":false}},"45319":{"*":{"id":82383,"name":"*","chunks":[],"async":false}},"82520":{"*":{"id":46106,"name":"*","chunks":[],"async":false}},"60329":{"*":{"id":23373,"name":"*","chunks":[],"async":false}},"78042":{"*":{"id":25633,"name":"*","chunks":[],"async":false}},"41447":{"*":{"id":81334,"name":"*","chunks":[],"async":false}},"5625":{"*":{"id":14676,"name":"*","chunks":[],"async":false}},"24462":{"*":{"id":39316,"name":"*","chunks":[],"async":false}},"33357":{"*":{"id":54843,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/apps/web/app/layout":[{"path":"static/chunks/130i667qy-j80.css","inlined":false}],"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/130i667qy-j80.css","inlined":false}],"[project]/apps/web/app/page":[{"path":"static/chunks/130i667qy-j80.css","inlined":false}]},"entryJSFiles":{"[project]/apps/web/app/layout":["static/chunks/0qp8t.3t~v6um.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js"],"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/0qp8t.3t~v6um.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js"],"[project]/apps/web/app/page":["static/chunks/0qp8t.3t~v6um.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js","static/chunks/0ogqv_xj2r0c6.js","static/chunks/0b4pujbysgmxg.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/apps/web/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":10291,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/layout-router.js":{"id":10291,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":2968,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":2968,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":37745,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-page.js":{"id":37745,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":45589,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/client-segment.js":{"id":45589,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":45319,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":45319,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":82520,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":82520,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":60329,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":60329,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/agentation/dist/index.mjs <module evaluation>":{"id":78042,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/agentation/dist/index.mjs":{"id":78042,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/DiffsWorkerProvider.tsx <module evaluation>":{"id":41447,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":true},"[project]/apps/web/components/DiffsWorkerProvider.tsx":{"id":41447,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":true},"[project]/apps/web/components/theme-provider.tsx <module evaluation>":{"id":5625,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/theme-provider.tsx":{"id":5625,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":24462,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error.js":{"id":24462,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js"],"async":false},"[project]/apps/web/components/DiffApp.tsx <module evaluation>":{"id":33357,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js","/_next/static/chunks/0ogqv_xj2r0c6.js","/_next/static/chunks/0_87y4ku2u.g6.js"],"async":false},"[project]/apps/web/components/DiffApp.tsx":{"id":33357,"name":"*","chunks":["/_next/static/chunks/129j.vkoufmaw.js","/_next/static/chunks/0k6qpcardco1q.js","/_next/static/chunks/01f1ms~jsc5vh.js","/_next/static/chunks/0y0o261rjun_2.js","/_next/static/chunks/0ogqv_xj2r0c6.js","/_next/static/chunks/0_87y4ku2u.g6.js"],"async":false}},"ssrModuleMapping":{"10291":{"*":{"id":23962,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"2968":{"*":{"id":75450,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"37745":{"*":{"id":19238,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"45589":{"*":{"id":46169,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"45319":{"*":{"id":79227,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"82520":{"*":{"id":5512,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"60329":{"*":{"id":40278,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"78042":{"*":{"id":95969,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"41447":{"*":{"id":27582,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":true}},"5625":{"*":{"id":78696,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js"],"async":false}},"24462":{"*":{"id":82516,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js","server/chunks/ssr/0fuv_0frin6b._.js"],"async":false}},"33357":{"*":{"id":44425,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0bit3~x._.js","server/chunks/ssr/_0m1v4-9._.js","server/chunks/ssr/0fuv_next_dist_0r_o2vo._.js","server/chunks/ssr/0fuv_@swc_helpers_cjs__interop_require_default_cjs_0ghzfn9._.js","server/chunks/ssr/_0oc3qg_._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"10291":{"*":{"id":73337,"name":"*","chunks":[],"async":false}},"2968":{"*":{"id":86122,"name":"*","chunks":[],"async":false}},"37745":{"*":{"id":24114,"name":"*","chunks":[],"async":false}},"45589":{"*":{"id":58696,"name":"*","chunks":[],"async":false}},"45319":{"*":{"id":82383,"name":"*","chunks":[],"async":false}},"82520":{"*":{"id":46106,"name":"*","chunks":[],"async":false}},"60329":{"*":{"id":23373,"name":"*","chunks":[],"async":false}},"78042":{"*":{"id":25633,"name":"*","chunks":[],"async":false}},"41447":{"*":{"id":81334,"name":"*","chunks":[],"async":false}},"5625":{"*":{"id":14676,"name":"*","chunks":[],"async":false}},"24462":{"*":{"id":39316,"name":"*","chunks":[],"async":false}},"33357":{"*":{"id":54843,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/apps/web/app/layout":[{"path":"static/chunks/0lo6jalz5wqe-.css","inlined":false}],"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0lo6jalz5wqe-.css","inlined":false}],"[project]/apps/web/app/page":[{"path":"static/chunks/0lo6jalz5wqe-.css","inlined":false}]},"entryJSFiles":{"[project]/apps/web/app/layout":["static/chunks/129j.vkoufmaw.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js"],"[project]/apps/web/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/129j.vkoufmaw.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js"],"[project]/apps/web/app/page":["static/chunks/129j.vkoufmaw.js","static/chunks/0k6qpcardco1q.js","static/chunks/01f1ms~jsc5vh.js","static/chunks/0y0o261rjun_2.js","static/chunks/0ogqv_xj2r0c6.js","static/chunks/0_87y4ku2u.g6.js"]}};
|
|
3
3
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"/api/discard/route": "app/api/discard/route.js",
|
|
7
7
|
"/api/file/route": "app/api/file/route.js",
|
|
8
8
|
"/api/files/route": "app/api/files/route.js",
|
|
9
|
-
"/api/
|
|
9
|
+
"/api/health/route": "app/api/health/route.js",
|
|
10
|
+
"/api/watch/route": "app/api/watch/route.js",
|
|
10
11
|
"/favicon.ico/route": "app/favicon.ico/route.js",
|
|
11
12
|
"/page": "app/page.js"
|
|
12
13
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module.exports=[93838,(e,t,r)=>{"use strict";function n(e,t,r){if(e){for(let n of(r&&(r=r.toLowerCase()),e))if(t===n.domain?.split(":",1)[0].toLowerCase()||r===n.defaultLocale.toLowerCase()||n.locales?.some(e=>e.toLowerCase()===r))return n}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"detectDomainLocale",{enumerable:!0,get:function(){return n}})},8166,(e,t,r)=>{"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},30229,(e,t,r)=>{"use strict";function n(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r<t);return n||t>-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return n}})},73583,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(30229);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${t}${r}${i}${a}`}},62860,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addPathSuffix",{enumerable:!0,get:function(){return i}});let n=e.r(30229);function i(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:i,hash:a}=(0,n.parsePath)(e);return`${r}${t}${i}${a}`}},26997,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(30229);function i(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},45862,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addLocale",{enumerable:!0,get:function(){return a}});let n=e.r(73583),i=e.r(26997);function a(e,t,r,a){if(!t||t===r)return e;let o=e.toLowerCase();return!a&&((0,i.pathHasPrefix)(o,"/api")||(0,i.pathHasPrefix)(o,`/${t.toLowerCase()}`))?e:(0,n.addPathPrefix)(e,`/${t}`)}},29112,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let n=e.r(8166),i=e.r(73583),a=e.r(62860),o=e.r(45862);function s(e){let t=(0,o.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,i.addPathPrefix)(t,`/_next/data/${e.buildId}`),"/"===e.pathname?"index.json":".json")),t=(0,i.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},83319,(e,t,r)=>{"use strict";function n(e,t){let r;if(t?.host&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getHostname",{enumerable:!0,get:function(){return n}})},16362,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizeLocalePath",{enumerable:!0,get:function(){return i}});let n=new WeakMap;function i(e,t){let r;if(!t)return{pathname:e};let i=n.get(t);i||(i=t.map(e=>e.toLowerCase()),n.set(t,i));let a=e.split("/",2);if(!a[1])return{pathname:e};let o=a[1].toLowerCase(),s=i.indexOf(o);return s<0?{pathname:e}:(r=t[s],{pathname:e=e.slice(r.length+1)||"/",detectedLocale:r})}},34686,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removePathPrefix",{enumerable:!0,get:function(){return i}});let n=e.r(26997);function i(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:`/${r}`}},51293,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getNextPathnameInfo",{enumerable:!0,get:function(){return o}});let n=e.r(16362),i=e.r(34686),a=e.r(26997);function o(e,t){let{basePath:r,i18n:o,trailingSlash:s}=t.nextConfig??{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};r&&(0,a.pathHasPrefix)(c.pathname,r)&&(c.pathname=(0,i.removePathPrefix)(c.pathname,r),c.basePath=r);let u=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/");c.buildId=e[0],u="index"!==e[1]?`/${e.slice(1).join("/")}`:"/",!0===t.parseData&&(c.pathname=u)}if(o){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,n.normalizeLocalePath)(c.pathname,o.locales);c.locale=e.detectedLocale,c.pathname=e.pathname??c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(u):(0,n.normalizeLocalePath)(u,o.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},60682,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextURL",{enumerable:!0,get:function(){return l}});let n=e.r(93838),i=e.r(29112),a=e.r(83319),o=e.r(51293),s=/^(?:127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)$/;function c(e,t){let r=new URL(String(e),t&&String(t));return s.test(r.hostname)&&(r.hostname="localhost"),r}let u=Symbol("NextURLInternal");class l{constructor(e,t,r){let n,i;"object"==typeof t&&"pathname"in t||"string"==typeof t?(n=t,i=r||{}):i=r||t||{},this[u]={url:c(e,n??i.base),options:i,basePath:""},this.analyze()}analyze(){var e,t,r,i,s;let c=(0,o.getNextPathnameInfo)(this[u].url.pathname,{nextConfig:this[u].options.nextConfig,parseData:!0,i18nProvider:this[u].options.i18nProvider}),l=(0,a.getHostname)(this[u].url,this[u].options.headers);this[u].domainLocale=this[u].options.i18nProvider?this[u].options.i18nProvider.detectDomainLocale(l):(0,n.detectDomainLocale)(null==(t=this[u].options.nextConfig)||null==(e=t.i18n)?void 0:e.domains,l);let d=(null==(r=this[u].domainLocale)?void 0:r.defaultLocale)||(null==(s=this[u].options.nextConfig)||null==(i=s.i18n)?void 0:i.defaultLocale);this[u].url.pathname=c.pathname,this[u].defaultLocale=d,this[u].basePath=c.basePath??"",this[u].buildId=c.buildId,this[u].locale=c.locale??d,this[u].trailingSlash=c.trailingSlash}formatPathname(){return(0,i.formatNextPathnameInfo)({basePath:this[u].basePath,buildId:this[u].buildId,defaultLocale:this[u].options.forceLocale?void 0:this[u].defaultLocale,locale:this[u].locale,pathname:this[u].url.pathname,trailingSlash:this[u].trailingSlash})}formatSearch(){return this[u].url.search}get buildId(){return this[u].buildId}set buildId(e){this[u].buildId=e}get locale(){return this[u].locale??""}set locale(e){var t,r;if(!this[u].locale||!(null==(r=this[u].options.nextConfig)||null==(t=r.i18n)?void 0:t.locales.includes(e)))throw Object.defineProperty(TypeError(`The NextURL configuration includes no locale "${e}"`),"__NEXT_ERROR_CODE",{value:"E597",enumerable:!1,configurable:!0});this[u].locale=e}get defaultLocale(){return this[u].defaultLocale}get domainLocale(){return this[u].domainLocale}get searchParams(){return this[u].url.searchParams}get host(){return this[u].url.host}set host(e){this[u].url.host=e}get hostname(){return this[u].url.hostname}set hostname(e){this[u].url.hostname=e}get port(){return this[u].url.port}set port(e){this[u].url.port=e}get protocol(){return this[u].url.protocol}set protocol(e){this[u].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[u].url=c(e),this.analyze()}get origin(){return this[u].url.origin}get pathname(){return this[u].url.pathname}set pathname(e){this[u].url.pathname=e}get hash(){return this[u].url.hash}set hash(e){this[u].url.hash=e}get search(){return this[u].url.search}set search(e){this[u].url.search=e}get password(){return this[u].url.password}set password(e){this[u].url.password=e}get username(){return this[u].url.username}set username(e){this[u].url.username=e}get basePath(){return this[u].basePath}set basePath(e){this[u].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new l(String(this),this[u].options)}}},18906,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ACTION_SUFFIX:function(){return g},APP_DIR_ALIAS:function(){return B},CACHE_ONE_YEAR_SECONDS:function(){return D},DOT_NEXT_ALIAS:function(){return $},ESLINT_DEFAULT_DIRS:function(){return es},GSP_NO_RETURNED_VALUE:function(){return et},GSSP_COMPONENT_MEMBER_ERROR:function(){return ei},GSSP_NO_RETURNED_VALUE:function(){return er},HTML_CONTENT_TYPE_HEADER:function(){return o},INFINITE_CACHE:function(){return j},INSTRUMENTATION_HOOK_FILENAME:function(){return M},JSON_CONTENT_TYPE_HEADER:function(){return s},MATCHED_PATH_HEADER:function(){return l},MIDDLEWARE_FILENAME:function(){return k},MIDDLEWARE_LOCATION_REGEXP:function(){return I},NEXT_BODY_SUFFIX:function(){return E},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return A},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return v},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return R},NEXT_CACHE_ROOT_PARAM_TAG_ID:function(){return N},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return T},NEXT_CACHE_TAGS_HEADER:function(){return w},NEXT_CACHE_TAG_MAX_ITEMS:function(){return O},NEXT_CACHE_TAG_MAX_LENGTH:function(){return x},NEXT_DATA_SUFFIX:function(){return b},NEXT_INTERCEPTION_MARKER_PREFIX:function(){return u},NEXT_META_SUFFIX:function(){return _},NEXT_NAV_DEPLOYMENT_ID_HEADER:function(){return y},NEXT_QUERY_PARAM_PREFIX:function(){return c},NEXT_RESUME_HEADER:function(){return S},NEXT_RESUME_STATE_LENGTH_HEADER:function(){return P},NON_STANDARD_NODE_ENV:function(){return ea},PAGES_DIR_ALIAS:function(){return U},PRERENDER_REVALIDATE_HEADER:function(){return d},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return h},PROXY_FILENAME:function(){return C},PROXY_LOCATION_REGEXP:function(){return L},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return Y},ROOT_DIR_ALIAS:function(){return X},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return z},RSC_ACTION_ENCRYPTION_ALIAS:function(){return V},RSC_ACTION_PROXY_ALIAS:function(){return G},RSC_ACTION_VALIDATE_ALIAS:function(){return H},RSC_CACHE_WRAPPER_ALIAS:function(){return W},RSC_DYNAMIC_IMPORT_WRAPPER_ALIAS:function(){return F},RSC_MOD_REF_PROXY_ALIAS:function(){return q},RSC_SEGMENTS_DIR_SUFFIX:function(){return f},RSC_SEGMENT_SUFFIX:function(){return m},RSC_SUFFIX:function(){return p},SERVER_PROPS_EXPORT_ERROR:function(){return ee},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return Q},SERVER_PROPS_SSG_CONFLICT:function(){return Z},SERVER_RUNTIME:function(){return ec},SSG_FALLBACK_EXPORT_ERROR:function(){return eo},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return K},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return J},TEXT_PLAIN_CONTENT_TYPE_HEADER:function(){return a},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return en},WEBPACK_LAYERS:function(){return ed},WEBPACK_RESOURCE_QUERIES:function(){return eh},WEB_SOCKET_MAX_RECONNECTIONS:function(){return eu}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="text/plain",o="text/html; charset=utf-8",s="application/json; charset=utf-8",c="nxtP",u="nxtI",l="x-matched-path",d="x-prerender-revalidate",h="x-prerender-revalidate-if-generated",f=".segments",m=".segment.rsc",p=".rsc",g=".action",b=".json",_=".meta",E=".body",y="x-nextjs-deployment-id",w="x-next-cache-tags",v="x-next-revalidated-tags",R="x-next-revalidate-tag-token",S="next-resume",P="x-next-resume-state-length",O=128,x=256,T=1024,A="_N_T_",N="_N_RP_",D=31536e3,j=0xfffffffe,k="middleware",I=`(?:src/)?${k}`,C="proxy",L=`(?:src/)?${C}`,M="instrumentation",U="private-next-pages",$="private-dot-next",X="private-next-root-dir",B="private-next-app-dir",q="private-next-rsc-mod-ref-proxy",H="private-next-rsc-action-validate",G="private-next-rsc-server-reference",W="private-next-rsc-cache-wrapper",F="private-next-rsc-track-dynamic-import",V="private-next-rsc-action-encryption",z="private-next-rsc-action-client-wrapper",Y="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",K="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",Q="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",Z="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",J="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",ee="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",et="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",er="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",en="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",ei="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",ea='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',eo="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",es=["app","pages","components","lib","src"],ec={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},eu=12,el={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",apiNode:"api-node",apiEdge:"api-edge",middleware:"middleware",instrument:"instrument",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",pagesDirBrowser:"pages-dir-browser",pagesDirEdge:"pages-dir-edge",pagesDirNode:"pages-dir-node"},ed={...el,GROUP:{builtinReact:[el.reactServerComponents,el.actionBrowser],serverOnly:[el.reactServerComponents,el.actionBrowser,el.instrument,el.middleware],neutralTarget:[el.apiNode,el.apiEdge],clientOnly:[el.serverSideRendering,el.appPagesBrowser],bundled:[el.reactServerComponents,el.actionBrowser,el.serverSideRendering,el.appPagesBrowser,el.shared,el.instrument,el.middleware],appPages:[el.reactServerComponents,el.serverSideRendering,el.appPagesBrowser,el.actionBrowser]}},eh={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},69797,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={fromNodeOutgoingHttpHeaders:function(){return o},normalizeNextQueryParam:function(){return l},splitCookiesString:function(){return s},toNodeOutgoingHttpHeaders:function(){return c},validateURL:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(18906);function o(e){let t=new Headers;for(let[r,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function s(e){var t,r,n,i,a,o=[],s=0;function c(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;c();)if(","===(r=e.charAt(s))){for(n=s,s+=1,c(),i=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=i,o.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&o.push(e.substring(t,e.length))}return o}function c(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...s(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function u(e){try{return String(new URL(String(e)))}catch(t){throw Object.defineProperty(Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t}),"__NEXT_ERROR_CODE",{value:"E61",enumerable:!1,configurable:!0})}}function l(e){for(let t of[a.NEXT_QUERY_PARAM_PREFIX,a.NEXT_INTERCEPTION_MARKER_PREFIX])if(e!==t&&e.startsWith(t))return e.substring(t.length);return null}},3972,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={PageSignatureError:function(){return a},RemovedPageError:function(){return o},RemovedUAError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});class a extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
|
|
2
|
+
|
|
3
|
+
export function middleware(request, event) {
|
|
4
|
+
return NextResponse.redirect('/new-location')
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
Read more: https://nextjs.org/docs/messages/middleware-new-signature
|
|
8
|
+
`)}}class o extends Error{constructor(){super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ")}}class s extends Error{constructor(){super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ")}}},82806,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={RequestCookies:function(){return a.RequestCookies},ResponseCookies:function(){return a.ResponseCookies},stringifyCookie:function(){return a.stringifyCookie}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(10257)},9319,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={INTERNALS:function(){return u},NextRequest:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(60682),o=e.r(69797),s=e.r(3972),c=e.r(82806),u=Symbol("internal request");class l extends Request{constructor(e,t={}){const r="string"!=typeof e&&"url"in e?e.url:String(e);(0,o.validateURL)(r),t.body&&"half"!==t.duplex&&(t.duplex="half"),e instanceof Request?super(e,t):super(r,t);const n=new a.NextURL(r,{headers:(0,o.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[u]={cookies:new c.RequestCookies(this.headers),nextUrl:n,url:n.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[u].cookies}get nextUrl(){return this[u].nextUrl}get page(){throw new s.RemovedPageError}get ua(){throw new s.RemovedUAError}get url(){return this[u].url}}},9476,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},29080,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NextResponse",{enumerable:!0,get:function(){return d}});let n=e.r(82806),i=e.r(60682),a=e.r(69797),o=e.r(9476),s=e.r(82806),c=Symbol("internal response"),u=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e||null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Object.defineProperty(Error("request.headers must be an instance of Headers"),"__NEXT_ERROR_CODE",{value:"E119",enumerable:!1,configurable:!0});let r=[];for(let[n,i]of e.request.headers)t.set("x-middleware-request-"+n,i),r.push(n);t.set("x-middleware-override-headers",r.join(","))}}class d extends Response{constructor(e,t={}){super(e,t);const r=this.headers,u=new Proxy(new s.ResponseCookies(r),{get(e,i,a){switch(i){case"delete":case"set":return(...a)=>{let o=Reflect.apply(e[i],e,a),c=new Headers(r);return o instanceof s.ResponseCookies&&r.set("x-middleware-set-cookie",o.getAll().map(e=>(0,n.stringifyCookie)(e)).join(",")),l(t,c),o};default:return o.ReflectAdapter.get(e,i,a)}}});this[c]={cookies:u,url:t.url?new i.NextURL(t.url,{headers:(0,a.toNodeOutgoingHttpHeaders)(r),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[c].cookies}static json(e,t){let r=Response.json(e,t);return new d(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!u.has(r))throw Object.defineProperty(RangeError('Failed to execute "redirect" on "response": Invalid status code'),"__NEXT_ERROR_CODE",{value:"E529",enumerable:!1,configurable:!0});let n="object"==typeof t?t:{},i=new Headers(null==n?void 0:n.headers);return i.set("Location",(0,a.validateURL)(e)),new d(null,{...n,headers:i,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,a.validateURL)(e)),l(t,r),new d(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new d(null,{...e,headers:t})}}},58871,(e,t,r)=>{"use strict";function n(){throw Object.defineProperty(Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead'),"__NEXT_ERROR_CODE",{value:"E183",enumerable:!1,configurable:!0})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageResponse",{enumerable:!0,get:function(){return n}})},13750,(e,t,r)=>{var n={226:function(t,r){!function(n){"use strict";var i="function",a="undefined",o="object",s="string",c="major",u="model",l="name",d="type",h="vendor",f="version",m="architecture",p="console",g="mobile",b="tablet",_="smarttv",E="wearable",y="embedded",w="Amazon",v="Apple",R="ASUS",S="BlackBerry",P="Browser",O="Chrome",x="Firefox",T="Google",A="Huawei",N="Microsoft",D="Motorola",j="Opera",k="Samsung",I="Sharp",C="Sony",L="Xiaomi",M="Zebra",U="Facebook",$="Chromium OS",X="Mac OS",B=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},H=function(e,t){return typeof e===s&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},W=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,350)},F=function(e,t){for(var r,n,a,s,c,u,l=0;l<t.length&&!c;){var d=t[l],h=t[l+1];for(r=n=0;r<d.length&&!c&&d[r];)if(c=d[r++].exec(e))for(a=0;a<h.length;a++)u=c[++n],typeof(s=h[a])===o&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):void 0:this[s[0]]=u?s[1].call(this,u,s[2]):void 0:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):void 0):this[s]=u||void 0;l+=2}},V=function(e,t){for(var r in t)if(typeof t[r]===o&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(H(t[r][n],e))return"?"===r?void 0:r}else if(H(t[r],e))return"?"===r?void 0:r;return e},z={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,f],[/opios[\/ ]+([\w\.]+)/i],[f,[l,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[l,j]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[l,"UC"+P]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+P],f],[/\bfocus\/([\w\.]+)/i],[f,[l,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[l,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[l,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[l,"MIUI "+P]],[/fxios\/([-\w\.]+)/i],[f,[l,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+P]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+P],f],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],f],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[l,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,O+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[l,"Android "+P]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[f,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[l,x+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[l,f],[/(cobalt)\/([\w\.]+)/i],[l,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[m,"amd64"]],[/(ia32(?=;))/i],[[m,G]],[/((?:i[346]|x)86)[;\)]/i],[[m,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/windows (ce|mobile); ppc;/i],[[m,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[m,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[m,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[m,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[h,k],[d,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,k],[d,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,v],[d,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,v],[d,b]],[/(macintosh);/i],[u,[h,v]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,I],[d,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[h,A],[d,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,A],[d,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[h,L],[d,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[h,L],[d,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,"OPPO"],[d,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[d,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[d,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,D],[d,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,D],[d,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,"LG"],[d,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,"LG"],[d,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[h,"Lenovo"],[d,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[h,"Nokia"],[d,g]],[/(pixel c)\b/i],[u,[h,T],[d,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,T],[d,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[h,C],[d,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,C],[d,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,"OnePlus"],[d,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,w],[d,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,w],[d,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[d,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,S],[d,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,R],[d,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,R],[d,g]],[/(nexus 9)/i],[u,[h,"HTC"],[d,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[d,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[d,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[d,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[d,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[d,b]],[/(surface duo)/i],[u,[h,N],[d,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[d,g]],[/(u304aa)/i],[u,[h,"AT&T"],[d,g]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[d,g]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[d,b]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[d,b]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[d,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[d,b]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[d,b]],[/\b(k88) b/i],[u,[h,"ZTE"],[d,b]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[d,g]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[d,g]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[d,b]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[d,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[d,b]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[d,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[d,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[d,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[d,g]],[/\b(ph-1) /i],[u,[h,"Essential"],[d,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[d,b]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[d,b]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[d,b]],[/(shield[\w ]+) b/i],[u,[h,"Nvidia"],[d,b]],[/(sprint) (\w+)/i],[h,u,[d,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,N],[d,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,M],[d,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,M],[d,g]],[/smart-tv.+(samsung)/i],[h,[d,_]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,k],[d,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[d,_]],[/(apple) ?tv/i],[h,[u,v+" TV"],[d,_]],[/crkey/i],[[u,O+"cast"],[h,T],[d,_]],[/droid.+aft(\w)( bui|\))/i],[u,[h,w],[d,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,I],[d,_]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,C],[d,_]],[/(mitv-\w{5}) bui/i],[u,[h,L],[d,_]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[d,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,W],[u,W],[d,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[d,p]],[/droid.+; (shield) bui/i],[u,[h,"Nvidia"],[d,p]],[/(playstation [345portablevi]+)/i],[u,[h,C],[d,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,N],[d,p]],[/((pebble))app/i],[h,u,[d,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,v],[d,E]],[/droid.+; (glass) \d/i],[u,[h,T],[d,E]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,M],[d,E]],[/(quest( 2| pro)?)/i],[u,[h,U],[d,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,y]],[/(aeobc)\b/i],[u,[h,w],[d,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[d,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[d,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[f,V,z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[f,V,z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,X],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,f],[/\(bb(10);/i],[f,[l,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[l,x+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[l,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,f],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,f]]},K=function(e,t){if(typeof e===o&&(t=e,e=void 0),!(this instanceof K))return new K(e,t).getResult();var r=typeof n!==a&&n.navigator?n.navigator:void 0,p=e||(r&&r.userAgent?r.userAgent:""),_=r&&r.userAgentData?r.userAgentData:void 0,E=t?B(Y,t):Y,y=r&&r.userAgent==p;return this.getBrowser=function(){var e,t={};return t[l]=void 0,t[f]=void 0,F.call(t,p,E.browser),t[c]=typeof(e=t[f])===s?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,y&&r&&r.brave&&typeof r.brave.isBrave==i&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[m]=void 0,F.call(e,p,E.cpu),e},this.getDevice=function(){var e={};return e[h]=void 0,e[u]=void 0,e[d]=void 0,F.call(e,p,E.device),y&&!e[d]&&_&&_.mobile&&(e[d]=g),y&&"Macintosh"==e[u]&&r&&typeof r.standalone!==a&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[u]="iPad",e[d]=b),e},this.getEngine=function(){var e={};return e[l]=void 0,e[f]=void 0,F.call(e,p,E.engine),e},this.getOS=function(){var e={};return e[l]=void 0,e[f]=void 0,F.call(e,p,E.os),y&&!e[l]&&_&&"Unknown"!=_.platform&&(e[l]=_.platform.replace(/chrome os/i,$).replace(/macos/i,X)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return p},this.setUA=function(e){return p=typeof e===s&&e.length>350?W(e,350):e,this},this.setUA(p),this};if(K.VERSION="1.0.35",K.BROWSER=q([l,f,c]),K.CPU=q([m]),K.DEVICE=q([u,h,d,p,g,_,b,E,y]),K.ENGINE=K.OS=q([l,f]),typeof r!==a)t.exports&&(r=t.exports=K),r.UAParser=K;else if(typeof define===i&&define.amd)e.r,void 0!==K&&e.v(K);else typeof n!==a&&(n.UAParser=K);var Q=typeof n!==a&&(n.jQuery||n.Zepto);if(Q&&!Q.ua){var Z=new K;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var r in t)Q.ua[r]=t[r]}}}(this)}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},o=!0;try{n[e].call(r.exports,r,r.exports,a),o=!1}finally{o&&delete i[e]}return r.exports}a.ab="/ROOT/apps/web/node_modules/next/dist/compiled/ua-parser-js/",t.exports=a(226)},16016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i={isBot:function(){return s},userAgent:function(){return u},userAgentFromString:function(){return c}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let o=(n=e.r(13750))&&n.__esModule?n:{default:n};function s(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver|GPTBot/i.test(e)}function c(e){return{...(0,o.default)(e),isBot:void 0!==e&&s(e)}}function u({headers:e}){return c(e.get("user-agent")||void 0)}},87922,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"URLPattern",{enumerable:!0,get:function(){return n}});let n="u"<typeof URLPattern?void 0:URLPattern},19375,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"after",{enumerable:!0,get:function(){return i}});let n=e.r(56704);function i(e){let t=n.workAsyncStorage.getStore();if(!t)throw Object.defineProperty(Error("`after` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context"),"__NEXT_ERROR_CODE",{value:"E468",enumerable:!1,configurable:!0});let{afterContext:r}=t;return r.after(e)}},14421,(e,t,r)=>{"use strict";var n,i;Object.defineProperty(r,"__esModule",{value:!0}),n=e.r(19375),i=r,Object.keys(n).forEach(function(e){"default"===e||Object.prototype.hasOwnProperty.call(i,e)||Object.defineProperty(i,e,{enumerable:!0,get:function(){return n[e]}})})},29030,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DynamicServerError:function(){return o},isDynamicServerError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="DYNAMIC_SERVER_USAGE";class o extends Error{constructor(e){super(`Dynamic server usage: ${e}`),this.description=e,this.digest=a}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},80876,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={StaticGenBailoutError:function(){return o},isStaticGenBailoutError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="NEXT_STATIC_GEN_BAILOUT";class o extends Error{constructor(...e){super(...e),this.code=a}}function s(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===a}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"InvariantError",{enumerable:!0,get:function(){return n}});class n extends Error{constructor(e,t){super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`,t),this.name="InvariantError"}}},42407,(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});return{resolve:e,reject:t,promise:r}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createPromiseWithResolvers",{enumerable:!0,get:function(){return n}})},45097,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i={RenderStage:function(){return c},StagedRenderingController:function(){return u}};for(var a in i)Object.defineProperty(r,a,{enumerable:!0,get:i[a]});let o=e.r(29500),s=e.r(42407);var c=((n={})[n.Before=1]="Before",n[n.EarlyStatic=2]="EarlyStatic",n[n.Static=3]="Static",n[n.EarlyRuntime=4]="EarlyRuntime",n[n.Runtime=5]="Runtime",n[n.Dynamic=6]="Dynamic",n[n.Abandoned=7]="Abandoned",n);class u{constructor(e,t,r){this.abortSignal=e,this.abandonController=t,this.shouldTrackSyncIO=r,this.currentStage=1,this.syncInterruptReason=null,this.staticStageEndTime=1/0,this.runtimeStageEndTime=1/0,this.staticStageListeners=[],this.earlyRuntimeStageListeners=[],this.runtimeStageListeners=[],this.dynamicStageListeners=[],this.staticStagePromise=(0,s.createPromiseWithResolvers)(),this.earlyRuntimeStagePromise=(0,s.createPromiseWithResolvers)(),this.runtimeStagePromise=(0,s.createPromiseWithResolvers)(),this.dynamicStagePromise=(0,s.createPromiseWithResolvers)(),e&&e.addEventListener("abort",()=>{let{reason:t}=e;this.staticStagePromise.promise.catch(l),this.staticStagePromise.reject(t),this.earlyRuntimeStagePromise.promise.catch(l),this.earlyRuntimeStagePromise.reject(t),this.runtimeStagePromise.promise.catch(l),this.runtimeStagePromise.reject(t),this.dynamicStagePromise.promise.catch(l),this.dynamicStagePromise.reject(t)},{once:!0}),t&&t.signal.addEventListener("abort",()=>{this.abandonRender()},{once:!0})}onStage(e,t){if(this.currentStage>=e)t();else if(3===e)this.staticStageListeners.push(t);else if(4===e)this.earlyRuntimeStageListeners.push(t);else if(5===e)this.runtimeStageListeners.push(t);else if(6===e)this.dynamicStageListeners.push(t);else throw Object.defineProperty(new o.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}shouldTrackSyncInterrupt(){if(!this.shouldTrackSyncIO)return!1;switch(this.currentStage){case 1:case 5:case 6:case 7:default:return!1;case 2:case 3:case 4:return!0}}syncInterruptCurrentStageWithReason(e){if(1!==this.currentStage&&7!==this.currentStage){if(this.abandonController)return void this.abandonController.abort();if(this.abortSignal){this.syncInterruptReason=e,this.currentStage=7;return}switch(this.currentStage){case 2:case 3:case 4:this.syncInterruptReason=e,this.advanceStage(6);return;case 5:return}}}getSyncInterruptReason(){return this.syncInterruptReason}getStaticStageEndTime(){return this.staticStageEndTime}getRuntimeStageEndTime(){return this.runtimeStageEndTime}abandonRender(){let{currentStage:e}=this;switch(e){case 2:this.resolveStaticStage();case 3:this.resolveEarlyRuntimeStage();case 4:this.resolveRuntimeStage();case 5:this.currentStage=7;return}}advanceStage(e){if(e<=this.currentStage)return;let t=this.currentStage;if(this.currentStage=e,t<3&&e>=3&&this.resolveStaticStage(),t<4&&e>=4&&this.resolveEarlyRuntimeStage(),t<5&&e>=5&&(this.staticStageEndTime=performance.now()+performance.timeOrigin,this.resolveRuntimeStage()),t<6&&e>=6){this.runtimeStageEndTime=performance.now()+performance.timeOrigin,this.resolveDynamicStage();return}}resolveStaticStage(){let e=this.staticStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.staticStagePromise.resolve()}resolveEarlyRuntimeStage(){let e=this.earlyRuntimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.earlyRuntimeStagePromise.resolve()}resolveRuntimeStage(){let e=this.runtimeStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.runtimeStagePromise.resolve()}resolveDynamicStage(){let e=this.dynamicStageListeners;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.dynamicStagePromise.resolve()}getStagePromise(e){switch(e){case 3:return this.staticStagePromise.promise;case 4:return this.earlyRuntimeStagePromise.promise;case 5:return this.runtimeStagePromise.promise;case 6:return this.dynamicStagePromise.promise;default:throw Object.defineProperty(new o.InvariantError(`Invalid render stage: ${e}`),"__NEXT_ERROR_CODE",{value:"E881",enumerable:!1,configurable:!0})}}waitForStage(e){return this.getStagePromise(e)}delayUntilStage(e,t,r){var n,i,a;let o,s=(n=this.getStagePromise(e),i=t,a=r,o=new Promise((e,t)=>{n.then(e.bind(null,a),t)}),void 0!==i&&(o.displayName=i),o);return this.abortSignal&&s.catch(l),s}}function l(){}},98029,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={delayUntilRuntimeStage:function(){return m},getRuntimeStage:function(){return f},isHangingPromiseRejectionError:function(){return o},makeDevtoolsIOAwarePromise:function(){return h},makeHangingPromise:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(45097);function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===s}let s="HANGING_PROMISE_REJECTION";class c extends Error{constructor(e,t){super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`),this.route=e,this.expression=t,this.digest=s}}let u=new WeakMap;function l(e,t,r){if(e.aborted)return Promise.reject(new c(t,r));{let n=new Promise((n,i)=>{let a=i.bind(null,new c(t,r)),o=u.get(e);if(o)o.push(a);else{let t=[a];u.set(e,t),e.addEventListener("abort",()=>{for(let e=0;e<t.length;e++)t[e]()},{once:!0})}});return n.catch(d),n}}function d(){}function h(e,t,r){return t.stagedRendering?t.stagedRendering.delayUntilStage(r,void 0,e):new Promise(t=>{setTimeout(()=>{t(e)},0)})}function f(e){return e.currentStage===a.RenderStage.EarlyStatic||e.currentStage===a.RenderStage.EarlyRuntime?a.RenderStage.EarlyRuntime:a.RenderStage.Runtime}function m(e,t){let{stagedRendering:r}=e;return r?r.waitForStage(f(r)).then(()=>t):t}},30002,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={METADATA_BOUNDARY_NAME:function(){return a},OUTLET_BOUNDARY_NAME:function(){return s},ROOT_LAYOUT_BOUNDARY_NAME:function(){return c},VIEWPORT_BOUNDARY_NAME:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="__next_metadata_boundary__",o="__next_viewport_boundary__",s="__next_outlet_boundary__",c="__next_root_layout_boundary__"},73521,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={atLeastOneTask:function(){return s},scheduleImmediate:function(){return o},scheduleOnNextTick:function(){return a},waitAtLeastOneReactRenderTask:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e=>{Promise.resolve().then(()=>{process.nextTick(e)})},o=e=>{setImmediate(e)};function s(){return new Promise(e=>o(e))}function c(){return new Promise(e=>setImmediate(e))}},69135,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={BailoutToCSRError:function(){return o},isBailoutToCSRError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="BAILOUT_TO_CLIENT_SIDE_RENDERING";class o extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=a}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===a}},83195,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"INSTANT_VALIDATION_BOUNDARY_NAME",{enumerable:!0,get:function(){return n}});let n="__next_instant_validation_boundary__"},77815,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i,a,o={DynamicHoleKind:function(){return Z},Postpone:function(){return A},PreludeState:function(){return ea},abortAndThrowOnSynchronousRequestDataAccess:function(){return T},abortOnSynchronousPlatformIOAccess:function(){return x},accessedDynamicData:function(){return M},annotateDynamicAccess:function(){return q},consumeDynamicAccess:function(){return U},createDynamicTrackingState:function(){return y},createDynamicValidationState:function(){return w},createHangingInputAbortSignal:function(){return B},createInstantValidationState:function(){return J},createRenderInBrowserAbortSignal:function(){return X},formatDynamicAPIAccesses:function(){return $},getFirstDynamicReason:function(){return v},getNavigationDisallowedDynamicReasons:function(){return eu},getStaticShellDisallowedDynamicReasons:function(){return ec},isDynamicPostpone:function(){return j},isPrerenderInterruptedError:function(){return L},logDisallowedDynamicError:function(){return eo},markCurrentScopeAsDynamic:function(){return R},postponeWithTracking:function(){return N},throwIfDisallowedDynamic:function(){return es},throwToInterruptStaticGeneration:function(){return S},trackAllowedDynamicAccess:function(){return Q},trackDynamicDataInDynamicRender:function(){return P},trackDynamicHoleInNavigation:function(){return ee},trackDynamicHoleInRuntimeShell:function(){return er},trackDynamicHoleInStaticShell:function(){return en},trackThrownErrorInNavigation:function(){return et},useDynamicRouteParams:function(){return H},useDynamicSearchParams:function(){return G}};for(var s in o)Object.defineProperty(r,s,{enumerable:!0,get:o[s]});let c=(n=e.r(29396))&&n.__esModule?n:{default:n},u=e.r(29030),l=e.r(80876),d=e.r(32319),h=e.r(56704),f=e.r(98029),m=e.r(30002),p=e.r(73521),g=e.r(69135),b=e.r(29500),_=e.r(83195),E="function"==typeof c.default.unstable_postpone;function y(e){return{isDebugDynamicAccesses:e,dynamicAccesses:[],syncDynamicErrorWithStack:null}}function w(){return{hasSuspenseAboveBody:!1,hasDynamicMetadata:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[]}}function v(e){var t;return null==(t=e.dynamicAccesses[0])?void 0:t.expression}function R(e,t,r){if(t)switch(t.type){case"cache":case"unstable-cache":case"private-cache":return}if(!e.forceDynamic&&!e.forceStatic){if(e.dynamicShouldError)throw Object.defineProperty(new l.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E553",enumerable:!1,configurable:!0});if(t)switch(t.type){case"prerender-ppr":return N(e.route,r,t.dynamicTracking);case"prerender-legacy":t.revalidate=0;let n=Object.defineProperty(new u.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E550",enumerable:!1,configurable:!0});throw e.dynamicUsageDescription=r,e.dynamicUsageStack=n.stack,n}}}function S(e,t,r){let n=Object.defineProperty(new u.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw r.revalidate=0,t.dynamicUsageDescription=e,t.dynamicUsageStack=n.stack,n}function P(e){switch(e.type){case"cache":case"unstable-cache":case"private-cache":return}}function O(e,t,r){let n=C(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);r.controller.abort(n);let i=r.dynamicTracking;i&&i.dynamicAccesses.push({stack:i.isDebugDynamicAccesses?Error().stack:void 0,expression:t})}function x(e,t,r,n){let i=n.dynamicTracking;O(e,t,n),i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}function T(e,t,r,n){if(!1===n.controller.signal.aborted){O(e,t,n);let i=n.dynamicTracking;i&&null===i.syncDynamicErrorWithStack&&(i.syncDynamicErrorWithStack=r)}throw C(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)}function A({reason:e,route:t}){let r=d.workUnitAsyncStorage.getStore();N(t,e,r&&"prerender-ppr"===r.type?r.dynamicTracking:null)}function N(e,t,r){(function(){if(!E)throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E224",enumerable:!1,configurable:!0})})(),r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:t}),c.default.unstable_postpone(D(e,t))}function D(e,t){return`Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`}function j(e){return"object"==typeof e&&null!==e&&"string"==typeof e.message&&k(e.message)}function k(e){return e.includes("needs to bail out of prerendering at this point because it used")&&e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")}if(!1===k(D("%%%","^^^")))throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E296",enumerable:!1,configurable:!0});let I="NEXT_PRERENDER_INTERRUPTED";function C(e){let t=Object.defineProperty(Error(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t.digest=I,t}function L(e){return"object"==typeof e&&null!==e&&e.digest===I&&"name"in e&&"message"in e&&e instanceof Error}function M(e){return e.length>0}function U(e,t){return e.dynamicAccesses.push(...t.dynamicAccesses),e.dynamicAccesses}function $(e){return e.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" (<anonymous>)")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}:
|
|
9
|
+
${t}`))}function X(){let e=new AbortController;return e.abort(Object.defineProperty(new g.BailoutToCSRError("Render in Browser"),"__NEXT_ERROR_CODE",{value:"E721",enumerable:!1,configurable:!0})),e.signal}function B(e){switch(e.type){case"prerender":case"prerender-runtime":let t=new AbortController;if(e.cacheSignal)e.cacheSignal.inputReady().then(()=>{t.abort()});else if("prerender-runtime"===e.type&&e.stagedRendering){let{stagedRendering:r}=e;r.waitForStage((0,f.getRuntimeStage)(r)).then(()=>(0,p.scheduleOnNextTick)(()=>t.abort()))}else(0,p.scheduleOnNextTick)(()=>t.abort());return t.signal;case"prerender-client":case"validation-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case"generate-static-params":return}}function q(e,t){let r=t.dynamicTracking;r&&r.dynamicAccesses.push({stack:r.isDebugDynamicAccesses?Error().stack:void 0,expression:e})}function H(e){let t=h.workAsyncStorage.getStore(),r=d.workUnitAsyncStorage.getStore();if(t&&r)switch(r.type){case"prerender-client":case"prerender":{let n=r.fallbackRouteParams;n&&n.size>0&&c.default.use((0,f.makeHangingPromise)(r.renderSignal,t.route,e));break}case"prerender-ppr":{let n=r.fallbackRouteParams;if(n&&n.size>0)return N(t.route,e,r.dynamicTracking);break}case"validation-client":case"prerender-legacy":case"request":case"unstable-cache":break;case"prerender-runtime":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E771",enumerable:!1,configurable:!0});case"cache":case"private-cache":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}function G(e){let t=h.workAsyncStorage.getStore(),r=d.workUnitAsyncStorage.getStore();if(t)switch(!r&&(0,d.throwForMissingRequestStore)(e),r.type){case"validation-client":case"request":return;case"prerender-client":c.default.use((0,f.makeHangingPromise)(r.renderSignal,t.route,e));break;case"prerender-legacy":case"prerender-ppr":if(t.forceStatic)return;throw Object.defineProperty(new g.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E795",enumerable:!1,configurable:!0});case"cache":case"unstable-cache":case"private-cache":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E745",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1130",enumerable:!1,configurable:!0})}}let W=/\n\s+at Suspense \(<anonymous>\)/,F=RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${m.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),V=RegExp(`\\n\\s+at ${m.METADATA_BOUNDARY_NAME}[\\n\\s]`),z=RegExp(`\\n\\s+at ${m.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),Y=RegExp(`\\n\\s+at ${m.OUTLET_BOUNDARY_NAME}[\\n\\s]`),K=RegExp(`\\n\\s+at ${_.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);function Q(e,t,r,n){if(!Y.test(t)){if(V.test(t)){r.hasDynamicMetadata=!0;return}if(z.test(t)){r.hasDynamicViewport=!0;return}if(F.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(W.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1079",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(i)}}}var Z=((i={})[i.Runtime=1]="Runtime",i[i.Dynamic=2]="Dynamic",i);function J(e){return{hasDynamicMetadata:!1,hasAllowedClientDynamicAboveBoundary:!1,dynamicMetadata:null,hasDynamicViewport:!1,hasAllowedDynamic:!1,dynamicErrors:[],validationPreventingErrors:[],thrownErrorsOutsideBoundary:[],createInstantStack:e}}function ee(e,t,r,n,i,a){if(Y.test(t))return;if(V.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1076",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicMetadata=n;return}if(z.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1086",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(n);return}let o=K.exec(t);if(o){let e=W.exec(t);if(e&&e.index<o.index){r.hasAllowedDynamic=!0;return}}else if(a.expectedIds.size===a.renderedIds.size){r.hasAllowedClientDynamicAboveBoundary=!0,r.hasAllowedDynamic=!0;return}else{let n=ei(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`),"__NEXT_ERROR_CODE",{value:"E1082",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.validationPreventingErrors.push(n);return}if(n.syncDynamicErrorWithStack){let e=n.syncDynamicErrorWithStack;null!==r.createInstantStack&&void 0===e.cause&&(e.cause=r.createInstantStack()),r.dynamicErrors.push(e);return}let s=ei(Object.defineProperty(Error(`Route "${e.route}": ${1===i?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed outside of `<Suspense>`.":"Uncached data or `connection()` was accessed outside of `<Suspense>`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1078",enumerable:!1,configurable:!0}),t,r.createInstantStack);r.dynamicErrors.push(s)}function et(e,t,r,n){let i=K.exec(n);if(i){let a=W.exec(n);if(a&&a.index<i.index)return;let o=ei(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`,{cause:r}),"__NEXT_ERROR_CODE",{value:"E1112",enumerable:!1,configurable:!0}),n,null);t.validationPreventingErrors.push(o)}else{let e=ei(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.",{cause:r}),"__NEXT_ERROR_CODE",{value:"E1118",enumerable:!1,configurable:!0}),n,null);t.thrownErrorsOutsideBoundary.push(e)}}function er(e,t,r,n){if(Y.test(t))return;if(V.test(t)){r.dynamicMetadata=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1080",enumerable:!1,configurable:!0}),t,null);return}if(z.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1077",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(F.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}if(W.test(t)){r.hasAllowedDynamic=!0;return}else if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1084",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(i)}function en(e,t,r,n){if(!Y.test(t)){if(V.test(t)){r.dynamicMetadata=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),"__NEXT_ERROR_CODE",{value:"E1085",enumerable:!1,configurable:!0}),t,null);return}if(z.test(t)){let n=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),"__NEXT_ERROR_CODE",{value:"E1081",enumerable:!1,configurable:!0}),t,null);r.dynamicErrors.push(n);return}if(F.test(t)){r.hasAllowedDynamic=!0,r.hasSuspenseAboveBody=!0;return}else if(W.test(t)){r.hasAllowedDynamic=!0;return}else{if(n.syncDynamicErrorWithStack)return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);let i=ei(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`),"__NEXT_ERROR_CODE",{value:"E1083",enumerable:!1,configurable:!0}),t,null);return void r.dynamicErrors.push(i)}}}function ei(e,t,r){return null!==r&&(e.cause=r()),e.stack=e.name+": "+e.message+t,e}var ea=((a={})[a.Full=0]="Full",a[a.Empty=1]="Empty",a[a.Errored=2]="Errored",a);function eo(e,t){console.error(t),console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
|
10
|
+
- Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
|
|
11
|
+
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)}function es(e,t,r,n){if(n.syncDynamicErrorWithStack)throw eo(e,n.syncDynamicErrorWithStack),new l.StaticGenBailoutError;if(0!==t){if(r.hasSuspenseAboveBody)return;let n=r.dynamicErrors;if(n.length>0){for(let t=0;t<n.length;t++)eo(e,n[t]);throw new l.StaticGenBailoutError}if(r.hasDynamicViewport)throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`),new l.StaticGenBailoutError;if(1===t)throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`),new l.StaticGenBailoutError}else if(!1===r.hasAllowedDynamic&&r.hasDynamicMetadata)throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`),new l.StaticGenBailoutError}function ec(e,t,r,n){if(n||r.hasSuspenseAboveBody)return[];if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return[Object.defineProperty(new b.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E936",enumerable:!1,configurable:!0})]}else if(!1===r.hasAllowedDynamic&&0===r.dynamicErrors.length&&r.dynamicMetadata)return[r.dynamicMetadata];return[]}function eu(e,t,r,n,i){if(n){let{missingSampleErrors:e}=n;if(e.length>0)return e}let{validationPreventingErrors:a}=r;if(a.length>0)return a;if(i.renderedIds.size<i.expectedIds.size){let{thrownErrorsOutsideBoundary:t,createInstantStack:n}=r;if(0===t.length){let t=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,r=null!==n?n():Error();return r.name="Error",r.message=t,[r]}if(1===t.length){let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,t[0]]}{let r=`Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,i=null!==n?n():Error();return i.name="Error",i.message=r,[i,...t]}}if(0!==t){let n=r.dynamicErrors;if(n.length>0)return n;if(1===t)return r.hasAllowedClientDynamicAboveBoundary?[]:[Object.defineProperty(new b.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`),"__NEXT_ERROR_CODE",{value:"E1055",enumerable:!1,configurable:!0})]}else{let e=r.dynamicErrors;if(e.length>0)return e;if(!1===r.hasAllowedDynamic&&r.dynamicMetadata)return[r.dynamicMetadata]}return[]}},53817,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={isRequestAPICallableInsideAfter:function(){return u},throwForSearchParamsAccessInUseCache:function(){return c},throwWithStaticGenerationBailoutErrorWithDynamicError:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(80876),o=e.r(24725);function s(e,t){throw Object.defineProperty(new a.StaticGenBailoutError(`Route ${e} with \`dynamic = "error"\` couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E543",enumerable:!1,configurable:!0})}function c(e,t){let r=Object.defineProperty(Error(`Route ${e.route} used \`searchParams\` inside "use cache". Accessing dynamic request data inside a cache scope is not supported. If you need some search params inside a cached function await \`searchParams\` outside of the cached function and pass only the required search params as arguments to the cached function. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E842",enumerable:!1,configurable:!0});throw Error.captureStackTrace(r,t),e.invalidDynamicUsageError??=r,r}function u(){let e=o.afterTaskAsyncStorage.getStore();return(null==e?void 0:e.rootTaskSpawnPhase)==="action"}},10095,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"connection",{enumerable:!0,get:function(){return l}});let n=e.r(56704),i=e.r(32319),a=e.r(77815),o=e.r(80876),s=e.r(98029),c=e.r(53817);e.r(45097);let u=e.r(29500);function l(){let e=n.workAsyncStorage.getStore(),t=i.workUnitAsyncStorage.getStore();if(e){if(t&&"after"===t.phase&&!(0,c.isRequestAPICallableInsideAfter)())throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`after()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but \`after()\` executes after the request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/canary/app/api-reference/functions/after`),"__NEXT_ERROR_CODE",{value:"E827",enumerable:!1,configurable:!0});if(e.forceStatic)return Promise.resolve(void 0);if(e.dynamicShouldError)throw Object.defineProperty(new o.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`connection()\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E847",enumerable:!1,configurable:!0});if(t)switch(t.type){case"cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual request, but caches must be able to be produced before a request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E841",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,l),e.invalidDynamicUsageError??=t,t}case"private-cache":{let t=Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside "use cache: private". The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual navigation request, but caches must be able to be produced before a navigation request, so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/messages/next-request-in-use-cache`),"__NEXT_ERROR_CODE",{value:"E837",enumerable:!1,configurable:!0});throw Error.captureStackTrace(t,l),e.invalidDynamicUsageError??=t,t}case"unstable-cache":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside a function cached with \`unstable_cache()\`. The \`connection()\` function is used to indicate the subsequent code must only run when there is an actual Request, but caches must be able to be produced before a Request so this function is not allowed in this scope. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`),"__NEXT_ERROR_CODE",{value:"E840",enumerable:!1,configurable:!0});case"generate-static-params":throw Object.defineProperty(Error(`Route ${e.route} used \`connection()\` inside \`generateStaticParams\`. This is not supported because \`generateStaticParams\` runs at build time without an HTTP request. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`),"__NEXT_ERROR_CODE",{value:"E1125",enumerable:!1,configurable:!0});case"prerender":case"prerender-client":case"prerender-runtime":return(0,s.makeHangingPromise)(t.renderSignal,e.route,"`connection()`");case"validation-client":{let e="`connection`";throw Object.defineProperty(new u.InvariantError(`${e} must not be used within a Client Component. Next.js should be preventing ${e} from being included in Client Components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E1063",enumerable:!1,configurable:!0})}case"prerender-ppr":return(0,a.postponeWithTracking)(e.route,"connection",t.dynamicTracking);case"prerender-legacy":return(0,a.throwToInterruptStaticGeneration)("connection",e,t);case"request":if((0,a.trackDynamicDataInDynamicRender)(t),t.asyncApiPromises)return t.asyncApiPromises.connection;return Promise.resolve(void 0)}}(0,i.throwForMissingRequestStore)("connection")}},29950,(e,t,r)=>{let n={NextRequest:e.r(9319).NextRequest,NextResponse:e.r(29080).NextResponse,ImageResponse:e.r(58871).ImageResponse,userAgentFromString:e.r(16016).userAgentFromString,userAgent:e.r(16016).userAgent,URLPattern:e.r(87922).URLPattern,after:e.r(14421).after,connection:e.r(10095).connection};t.exports=n,r.NextRequest=n.NextRequest,r.NextResponse=n.NextResponse,r.ImageResponse=n.ImageResponse,r.userAgentFromString=n.userAgentFromString,r.userAgent=n.userAgent,r.URLPattern=n.URLPattern,r.after=n.after,r.connection=n.connection}];
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=0fuv_next_0e28~xv._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[18622,(e,r,t)=>{r.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,r,t)=>{r.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,r,t)=>{r.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},14747,(e,r,t)=>{r.exports=e.x("path",()=>require("path"))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Bexternals%5D__11vad82._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66312,e=>{"use strict";var t=e.i(2157);let r="/tmp/diffhub-active-repo";e.s(["REPO_POINTER",0,r,"getConfiguredRepoPath",0,()=>{if(process.env.DIFFHUB_REPO)return process.env.DIFFHUB_REPO;let e=(()=>{try{let e=(0,t.readFileSync)(r,"utf-8").trim();if(e)return e}catch{}return null})();return e||process.cwd()}])},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},69951,e=>{"use strict";var t=e.i(74533),r=e.i(66680),a=e.i(2157),n=e.i(60526),i=e.i(50227),s=e.i(66312);let o=(()=>{let e=globalThis;if(!e.__diffhubGitRuntimeState){let t=process.env.DIFFHUB_SERVER_BOOT_ID;e.__diffhubGitRuntimeState={cache:new Map,gitCommandQueue:Promise.resolve(),lastPointerMtime:0,serverBootId:t??(0,r.createHash)("sha1").update(`${process.pid}:${Date.now()}:${Math.random()}`).digest("hex")}}return e.__diffhubGitRuntimeState})(),{cache:l}=o,d=["main","master","develop","dev"],u="1"===process.env.DIFFHUB_DEBUG,c=e=>`diffhub-snapshot-${(0,r.createHash)("sha1").update(e).digest("hex")}-`,p=(e,t,a,s)=>{let o=JSON.stringify({base:t??"",mode:a??"",whitespace:s??""}),l=(0,r.createHash)("sha1").update(o).digest("hex");return(0,i.join)((0,n.tmpdir)(),`${c(e)}${l}.json`)},f=e=>{if(!e)return void l.clear();let t=`:${e}`;for(let e of l.keys())e.includes(t)&&l.delete(e)},h=e=>{if(f(e),"1"!==process.env.DIFFHUB_CMUX||"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER)return;if(!e){for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith("diffhub-snapshot-")&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0});return}let t=c(e);for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith(t)&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0})},m=async(e,t,r)=>{try{let e=(0,a.statSync)(s.REPO_POINTER).mtimeMs;e!==o.lastPointerMtime&&(o.lastPointerMtime=e,"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER?f():h())}catch{}let n=l.get(e);if(n&&n.expires>Date.now())return n.value;let i=await r();return l.set(e,{expires:Date.now()+t,value:i}),i},g=()=>(0,s.getConfiguredRepoPath)(),w=async e=>{let r=Date.now();u&&console.info("[diffhub] git command start",{args:e});try{let{promise:a,reject:n,resolve:i}=Promise.withResolvers();{let r=(0,t.spawn)("git",e,{cwd:g(),env:{...process.env,GIT_TERMINAL_PROMPT:"0"},stdio:["ignore","pipe","pipe"]}),a=[],s=[],o=0,l=!1,d=e=>{l||(l=!0,e())},u=(t,a)=>{let i=Buffer.isBuffer(a)?a:Buffer.from(a);if((o+=i.length)>0x1400000){r.kill("SIGKILL"),d(()=>{n(Error(`git ${e.join(" ")} failed: output exceeded 20971520 bytes`))});return}t.push(i)};r.stdout.on("data",e=>{u(a,e)}),r.stderr.on("data",e=>{u(s,e)}),r.on("error",e=>{d(()=>n(e))}),r.on("close",t=>{let r=Buffer.concat(a).toString("utf-8"),o=Buffer.concat(s).toString("utf-8").trim();0===t?d(()=>i(r)):d(()=>{n(Object.assign(Error(o||`git ${e.join(" ")} failed with exit code ${t??"unknown"}`),{code:t,status:t??void 0,stderr:o}))})})}let s=await a;return u&&console.info("[diffhub] git command success",{args:e,durationMs:Date.now()-r}),s}catch(a){let t="string"==typeof a.stderr?a.stderr.trim():a.stderr?.toString("utf-8").trim()||"";if(console.error("[diffhub] git command failed",{args:e,code:a.code,durationMs:Date.now()-r,error:a,status:a.status,stderr:t||null}),a instanceof Error&&!t)throw a;throw Error(t||`git ${e.join(" ")} failed: ${a.message}`,{cause:a})}},x=async e=>{let t,r=new Promise(e=>{t=e}),a=o.gitCommandQueue;o.gitCommandQueue=r,await a;try{return await w(e)}finally{t()}},v=e=>e.split("\n").map(e=>e.trim()).filter(Boolean),R=e=>(0,r.createHash)("sha1").update(e).digest("hex"),y=(e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return null;let s=p(e,t,r,n);try{let t=(0,a.readFileSync)(s,"utf-8"),r=JSON.parse(t),n=Date.now()-r.metadata.createdAt;if(void 0!==i&&r.generation!==i||r.metadata.bootId!==o.serverBootId||r.metadata.repoPath!==e)return u&&console.info("[diffhub] snapshot cache stale",{ageMs:n,expectedBootId:o.serverBootId,expectedGeneration:i??null,repoPath:e,snapshotBootId:r.metadata.bootId,snapshotGeneration:r.generation,snapshotRepoPath:r.metadata.repoPath,source:"disk"}),(0,a.rmSync)(s,{force:!0}),null;return u&&console.info("[diffhub] snapshot cache hit",{ageMs:Date.now()-r.metadata.createdAt,generation:r.generation,repoPath:e,source:"disk"}),{...r,patchByFile:new Map(Object.entries(r.patchByFile))}}catch{return null}},b=async(e,t,r,a,n)=>{let i=Date.now()+1e3;for(;Date.now()<i;){let i=y(e,t,r,a,n);if(i)return i;await new Promise(e=>{setTimeout(e,50)})}return null},E=(e,t,n,i)=>{let s=g();return m(`snapshot:${s}:${e??""}:${t??""}:${n??""}:${i??""}`,500,async()=>{let l,c,f,h,w=y(s,e,t,n,i);if(w)return w;if("1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER){let r=await b(s,e,t,n,i);if(r)return r;console.warn("[diffhub] external snapshot unavailable, recomputing inline",{expectedGeneration:i??null,mode:t??"all",repoPath:s,whitespace:n??"default"})}let R=(await x(["rev-parse","--abbrev-ref","HEAD"])).trim(),E="uncommitted"===t?"HEAD":e??process.env.DIFFHUB_BASE??await (l=g(),m(`baseBranch:${l}`,3e4,async()=>{let e=v(await x(["branch","-r","--format=%(refname:short)"]));for(let t of d)if(e.includes(`origin/${t}`))return`origin/${t}`;let t=v(await x(["branch","--format=%(refname:short)"]));for(let e of d)if(t.includes(e))return e;return"origin/main"})),S="uncommitted"===t?"HEAD":await (c=g(),m(`mergeBase:${c}:${E}`,3e4,async()=>(await x(["merge-base","HEAD",E])).trim())),_=(f=[S],"ignore"===n?["-w",...f]:f),[B,P]=await Promise.all([x(["diff",..._]),x(["diff","--numstat","-z","-M",..._])]),I=(0,r.createHash)("sha1").update(B).digest("hex"),O=(e=>{let t=[],r=0,a=0,n=0;for(;n<e.length;){let i=e.indexOf(" ",n);if(-1===i)break;let s=e.indexOf(" ",i+1);if(-1===s)throw Error("Malformed git diff --numstat output");let o=e.slice(n,i),l=e.slice(i+1,s),d="";if("\0"===e[n=s+1]){n+=1;let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat rename output");n=t+1;let r=e.indexOf("\0",n);if(-1===r)throw Error("Malformed git diff --numstat rename output");d=e.slice(n,r),n=r+1}else{let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat output");d=e.slice(n,t),n=t+1}let u="-"===o||"-"===l,c=u?0:Number.parseInt(o,10)||0,p=u?0:Number.parseInt(l,10)||0;t.push({binary:u,changes:c+p,deletions:p,file:d,insertions:c}),r+=c,a+=p}return{deletions:a,files:t,insertions:r}})(P),C=Date.now(),F=(h=o.serverBootId,(0,r.createHash)("sha1").update(`${h}:${I}:${S}`).digest("hex")),A={baseBranch:E,branch:R,deletions:O.deletions,files:O.files,fingerprint:I,fullPatch:B,generation:F,insertions:O.insertions,mergeBase:S,metadata:{bootId:o.serverBootId,createdAt:C,repoPath:s},patchByFile:(e=>{let t=new Map,r=/^diff --git a\/(.+?) b\/(.+)$/gm,a=[],n=r.exec(e);for(;n;)a.push({file:n[2],start:n.index}),n=r.exec(e);for(let[r,n]of a.entries()){let i=a[r+1]?.start??e.length,s=e.slice(n.start,i).trimEnd();t.set(n.file,s?`${s}
|
|
2
|
+
`:"")}return t})(B)};return console.info("[diffhub] snapshot cache miss",{generation:F,repoPath:s,source:"recomputed"}),((e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return;let s={...i,patchByFile:Object.fromEntries(i.patchByFile)};(0,a.writeFileSync)(p(e,t,r,n),JSON.stringify(s),"utf-8"),u&&console.info("[diffhub] snapshot cache wrote",{generation:i.generation,repoPath:e,source:"disk"})})(s,e,t,n,A),A})},S=async(e,t,r,a,n)=>{let i=await E(t,r,a,n),s=i.patchByFile.get(e)??"";return{baseBranch:i.baseBranch,branch:i.branch,fingerprint:i.fingerprint,generation:i.generation,mergeBase:i.mergeBase,patch:s,reviewKey:R(s)}},_=async(e,t,r,a)=>{let n=await E(e,t,r,a),i=Object.fromEntries(n.patchByFile),s=Object.fromEntries(Object.entries(i).map(([e,t])=>[e,R(t)]));return{baseBranch:n.baseBranch,branch:n.branch,deletions:n.deletions,files:n.files,fingerprint:n.fingerprint,generation:n.generation,insertions:n.insertions,mergeBase:n.mergeBase,patchByFile:i,reviewKeyByFile:s}},B=async(e,t,r)=>{let a=await E(e,t,r);return{baseBranch:a.baseBranch,branch:a.branch,deletions:a.deletions,files:a.files,fingerprint:a.fingerprint,generation:a.generation,insertions:a.insertions}},P=async()=>{for(let e of(await Promise.allSettled([B(),B(void 0,"uncommitted")])))"rejected"===e.status&&console.error("[diffhub] failed to prime diff snapshot",{error:e.reason})},I=async e=>{await x(["restore","--staged","--worktree","--",e])};e.s(["clearGitMemoryCache",0,f,"discardFile",0,I,"getDiffForFile",0,S,"getDiffStats",0,B,"getFileAtRef",0,(e,t)=>{let r=g();if("WORKING_TREE"===t)try{return Promise.resolve((0,a.readFileSync)((0,i.join)(r,e),"utf-8"))}catch{return Promise.resolve("")}return m(`file:${r}:${t}:${e}`,3e4,async()=>{try{return await x(["show",`${t}:${e}`])}catch{return""}})},"getMultiFileDiff",0,_,"invalidateGitCache",0,h,"primeGitSnapshots",0,P])},41010,e=>{"use strict";var t=e.i(31173),r=e.i(62205),a=e.i(9467),n=e.i(68273),i=e.i(18601),s=e.i(67822),o=e.i(94179),l=e.i(86434),d=e.i(34044),u=e.i(282),c=e.i(63625),p=e.i(62788),f=e.i(60321),h=e.i(21422),m=e.i(91917),g=e.i(93695);e.i(93930);var w=e.i(82490),x=e.i(29950),v=e.i(69951);let R=async e=>{let{file:t}=await e.json();if(!t)return x.NextResponse.json({error:"file required"},{status:400});try{return await (0,v.discardFile)(t),x.NextResponse.json({ok:!0})}catch(e){return x.NextResponse.json({error:String(e)},{status:500})}};e.s(["POST",0,R],3517);var y=e.i(3517);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/discard/route",pathname:"/api/discard",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/discard/route.ts",nextConfigOutput:"standalone",userland:y,...{}}),{workAsyncStorage:E,workUnitAsyncStorage:S,serverHooks:_}=b;async function B(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/discard/route";x=x.replace(/\/index$/,"")||"/";let v=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:E,parsedUrl:S,isDraftMode:_,prerenderManifest:B,routerServerContext:P,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,resolvedPathname:C,clientReferenceManifest:F,serverActionsManifest:A}=v,D=(0,o.normalizeAppPath)(x),T=!!(B.dynamicRoutes[D]||B.routes[C]),N=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,S,!1):t.end("This page could not be found"),null);if(T&&!_){let e=!!B.routes[C],t=B.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await N();throw new g.NoFallbackError}}let H=null;!T||b.isDev||_||(H="/index"===(H=C)?"/":H);let $=!0===b.isDev||!T,M=T&&!$;A&&F&&(0,s.setManifestsSingleton)({page:x,clientReferenceManifest:F,serverActionsManifest:A});let j=e.method||"GET",U=(0,i.getTracer)(),k=U.getActiveScopeSpan(),q=!!(null==P?void 0:P.isWrappedByNextServer),G=!!(0,n.getRequestMeta)(e,"minimalMode"),K=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,E,B,G);null==K||K.resetRequestCache(),globalThis.__incrementalCache=K;let L={params:y,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:$,incrementalCache:K,cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,P)},sharedContext:{buildId:R}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>b.handle(V,L).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${j} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${j} ${x}`)}),o=async n=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!G&&I&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(n);e.fetchMetrics=L.renderOpts.fetchMetrics;let o=L.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=L.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(W,X,i,L.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,a=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),t}},d=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:G});if(!T)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",I?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return G&&T||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(W,X,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};q&&k?await o(k):(n=U.getActiveScopeSpan(),await U.withPropagatedContext(e.headers,()=>U.trace(u.BaseServerSpan.handleRequest,{spanName:`${j} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},o),void 0,!q))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),T)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,B,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:S})},"routeModule",0,b,"serverHooks",0,_,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,S],41010)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0.w.o06._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66312,e=>{"use strict";var t=e.i(2157);let r="/tmp/diffhub-active-repo";e.s(["REPO_POINTER",0,r,"getConfiguredRepoPath",0,()=>{if(process.env.DIFFHUB_REPO)return process.env.DIFFHUB_REPO;let e=(()=>{try{let e=(0,t.readFileSync)(r,"utf-8").trim();if(e)return e}catch{}return null})();return e||process.cwd()}])},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},69951,e=>{"use strict";var t=e.i(74533),r=e.i(66680),a=e.i(2157),n=e.i(60526),i=e.i(50227),s=e.i(66312);let o=(()=>{let e=globalThis;if(!e.__diffhubGitRuntimeState){let t=process.env.DIFFHUB_SERVER_BOOT_ID;e.__diffhubGitRuntimeState={cache:new Map,gitCommandQueue:Promise.resolve(),lastPointerMtime:0,serverBootId:t??(0,r.createHash)("sha1").update(`${process.pid}:${Date.now()}:${Math.random()}`).digest("hex")}}return e.__diffhubGitRuntimeState})(),{cache:l}=o,d=["main","master","develop","dev"],u="1"===process.env.DIFFHUB_DEBUG,c=e=>`diffhub-snapshot-${(0,r.createHash)("sha1").update(e).digest("hex")}-`,p=(e,t,a,s)=>{let o=JSON.stringify({base:t??"",mode:a??"",whitespace:s??""}),l=(0,r.createHash)("sha1").update(o).digest("hex");return(0,i.join)((0,n.tmpdir)(),`${c(e)}${l}.json`)},f=e=>{if(!e)return void l.clear();let t=`:${e}`;for(let e of l.keys())e.includes(t)&&l.delete(e)},h=e=>{if(f(e),"1"!==process.env.DIFFHUB_CMUX||"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER)return;if(!e){for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith("diffhub-snapshot-")&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0});return}let t=c(e);for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith(t)&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0})},m=async(e,t,r)=>{try{let e=(0,a.statSync)(s.REPO_POINTER).mtimeMs;e!==o.lastPointerMtime&&(o.lastPointerMtime=e,"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER?f():h())}catch{}let n=l.get(e);if(n&&n.expires>Date.now())return n.value;let i=await r();return l.set(e,{expires:Date.now()+t,value:i}),i},g=()=>(0,s.getConfiguredRepoPath)(),w=async e=>{let r=Date.now();u&&console.info("[diffhub] git command start",{args:e});try{let{promise:a,reject:n,resolve:i}=Promise.withResolvers();{let r=(0,t.spawn)("git",e,{cwd:g(),env:{...process.env,GIT_TERMINAL_PROMPT:"0"},stdio:["ignore","pipe","pipe"]}),a=[],s=[],o=0,l=!1,d=e=>{l||(l=!0,e())},u=(t,a)=>{let i=Buffer.isBuffer(a)?a:Buffer.from(a);if((o+=i.length)>0x1400000){r.kill("SIGKILL"),d(()=>{n(Error(`git ${e.join(" ")} failed: output exceeded 20971520 bytes`))});return}t.push(i)};r.stdout.on("data",e=>{u(a,e)}),r.stderr.on("data",e=>{u(s,e)}),r.on("error",e=>{d(()=>n(e))}),r.on("close",t=>{let r=Buffer.concat(a).toString("utf-8"),o=Buffer.concat(s).toString("utf-8").trim();0===t?d(()=>i(r)):d(()=>{n(Object.assign(Error(o||`git ${e.join(" ")} failed with exit code ${t??"unknown"}`),{code:t,status:t??void 0,stderr:o}))})})}let s=await a;return u&&console.info("[diffhub] git command success",{args:e,durationMs:Date.now()-r}),s}catch(a){let t="string"==typeof a.stderr?a.stderr.trim():a.stderr?.toString("utf-8").trim()||"";if(console.error("[diffhub] git command failed",{args:e,code:a.code,durationMs:Date.now()-r,error:a,status:a.status,stderr:t||null}),a instanceof Error&&!t)throw a;throw Error(t||`git ${e.join(" ")} failed: ${a.message}`,{cause:a})}},x=async e=>{let t,r=new Promise(e=>{t=e}),a=o.gitCommandQueue;o.gitCommandQueue=r,await a;try{return await w(e)}finally{t()}},v=e=>e.split("\n").map(e=>e.trim()).filter(Boolean),R=e=>(0,r.createHash)("sha1").update(e).digest("hex"),y=(e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return null;let s=p(e,t,r,n);try{let t=(0,a.readFileSync)(s,"utf-8"),r=JSON.parse(t),n=Date.now()-r.metadata.createdAt;if(void 0!==i&&r.generation!==i||r.metadata.bootId!==o.serverBootId||r.metadata.repoPath!==e)return u&&console.info("[diffhub] snapshot cache stale",{ageMs:n,expectedBootId:o.serverBootId,expectedGeneration:i??null,repoPath:e,snapshotBootId:r.metadata.bootId,snapshotGeneration:r.generation,snapshotRepoPath:r.metadata.repoPath,source:"disk"}),(0,a.rmSync)(s,{force:!0}),null;return u&&console.info("[diffhub] snapshot cache hit",{ageMs:Date.now()-r.metadata.createdAt,generation:r.generation,repoPath:e,source:"disk"}),{...r,patchByFile:new Map(Object.entries(r.patchByFile))}}catch{return null}},b=async(e,t,r,a,n)=>{let i=Date.now()+1e3;for(;Date.now()<i;){let i=y(e,t,r,a,n);if(i)return i;await new Promise(e=>{setTimeout(e,50)})}return null},E=(e,t,n,i)=>{let s=g();return m(`snapshot:${s}:${e??""}:${t??""}:${n??""}:${i??""}`,500,async()=>{let l,c,f,h,w=y(s,e,t,n,i);if(w)return w;if("1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER){let r=await b(s,e,t,n,i);if(r)return r;console.warn("[diffhub] external snapshot unavailable, recomputing inline",{expectedGeneration:i??null,mode:t??"all",repoPath:s,whitespace:n??"default"})}let R=(await x(["rev-parse","--abbrev-ref","HEAD"])).trim(),E="uncommitted"===t?"HEAD":e??process.env.DIFFHUB_BASE??await (l=g(),m(`baseBranch:${l}`,3e4,async()=>{let e=v(await x(["branch","-r","--format=%(refname:short)"]));for(let t of d)if(e.includes(`origin/${t}`))return`origin/${t}`;let t=v(await x(["branch","--format=%(refname:short)"]));for(let e of d)if(t.includes(e))return e;return"origin/main"})),S="uncommitted"===t?"HEAD":await (c=g(),m(`mergeBase:${c}:${E}`,3e4,async()=>(await x(["merge-base","HEAD",E])).trim())),_=(f=[S],"ignore"===n?["-w",...f]:f),[B,P]=await Promise.all([x(["diff",..._]),x(["diff","--numstat","-z","-M",..._])]),I=(0,r.createHash)("sha1").update(B).digest("hex"),O=(e=>{let t=[],r=0,a=0,n=0;for(;n<e.length;){let i=e.indexOf(" ",n);if(-1===i)break;let s=e.indexOf(" ",i+1);if(-1===s)throw Error("Malformed git diff --numstat output");let o=e.slice(n,i),l=e.slice(i+1,s),d="";if("\0"===e[n=s+1]){n+=1;let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat rename output");n=t+1;let r=e.indexOf("\0",n);if(-1===r)throw Error("Malformed git diff --numstat rename output");d=e.slice(n,r),n=r+1}else{let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat output");d=e.slice(n,t),n=t+1}let u="-"===o||"-"===l,c=u?0:Number.parseInt(o,10)||0,p=u?0:Number.parseInt(l,10)||0;t.push({binary:u,changes:c+p,deletions:p,file:d,insertions:c}),r+=c,a+=p}return{deletions:a,files:t,insertions:r}})(P),C=Date.now(),A=(h=o.serverBootId,(0,r.createHash)("sha1").update(`${h}:${I}:${S}`).digest("hex")),F={baseBranch:E,branch:R,deletions:O.deletions,files:O.files,fingerprint:I,fullPatch:B,generation:A,insertions:O.insertions,mergeBase:S,metadata:{bootId:o.serverBootId,createdAt:C,repoPath:s},patchByFile:(e=>{let t=new Map,r=/^diff --git a\/(.+?) b\/(.+)$/gm,a=[],n=r.exec(e);for(;n;)a.push({file:n[2],start:n.index}),n=r.exec(e);for(let[r,n]of a.entries()){let i=a[r+1]?.start??e.length,s=e.slice(n.start,i).trimEnd();t.set(n.file,s?`${s}
|
|
2
|
+
`:"")}return t})(B)};return console.info("[diffhub] snapshot cache miss",{generation:A,repoPath:s,source:"recomputed"}),((e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return;let s={...i,patchByFile:Object.fromEntries(i.patchByFile)};(0,a.writeFileSync)(p(e,t,r,n),JSON.stringify(s),"utf-8"),u&&console.info("[diffhub] snapshot cache wrote",{generation:i.generation,repoPath:e,source:"disk"})})(s,e,t,n,F),F})},S=async(e,t,r,a,n)=>{let i=await E(t,r,a,n),s=i.patchByFile.get(e)??"";return{baseBranch:i.baseBranch,branch:i.branch,fingerprint:i.fingerprint,generation:i.generation,mergeBase:i.mergeBase,patch:s,reviewKey:R(s)}},_=async(e,t,r,a)=>{let n=await E(e,t,r,a),i=Object.fromEntries(n.patchByFile),s=Object.fromEntries(Object.entries(i).map(([e,t])=>[e,R(t)]));return{baseBranch:n.baseBranch,branch:n.branch,deletions:n.deletions,files:n.files,fingerprint:n.fingerprint,generation:n.generation,insertions:n.insertions,mergeBase:n.mergeBase,patchByFile:i,reviewKeyByFile:s}},B=async(e,t,r)=>{let a=await E(e,t,r);return{baseBranch:a.baseBranch,branch:a.branch,deletions:a.deletions,files:a.files,fingerprint:a.fingerprint,generation:a.generation,insertions:a.insertions}},P=async()=>{for(let e of(await Promise.allSettled([B(),B(void 0,"uncommitted")])))"rejected"===e.status&&console.error("[diffhub] failed to prime diff snapshot",{error:e.reason})},I=async e=>{await x(["restore","--staged","--worktree","--",e])};e.s(["clearGitMemoryCache",0,f,"discardFile",0,I,"getDiffForFile",0,S,"getDiffStats",0,B,"getFileAtRef",0,(e,t)=>{let r=g();if("WORKING_TREE"===t)try{return Promise.resolve((0,a.readFileSync)((0,i.join)(r,e),"utf-8"))}catch{return Promise.resolve("")}return m(`file:${r}:${t}:${e}`,3e4,async()=>{try{return await x(["show",`${t}:${e}`])}catch{return""}})},"getMultiFileDiff",0,_,"invalidateGitCache",0,h,"primeGitSnapshots",0,P])},83638,e=>{"use strict";var t=e.i(31173),r=e.i(62205),a=e.i(9467),n=e.i(68273),i=e.i(18601),s=e.i(67822),o=e.i(94179),l=e.i(86434),d=e.i(34044),u=e.i(282),c=e.i(63625),p=e.i(62788),f=e.i(60321),h=e.i(21422),m=e.i(91917),g=e.i(93695);e.i(93930);var w=e.i(82490),x=e.i(29950),v=e.i(69951);let R=async e=>{let{searchParams:t}=new URL(e.url),r=t.get("base")??void 0,a="uncommitted"===t.get("mode")?"uncommitted":void 0,n="ignore"===t.get("ws")?"ignore":void 0;try{let e=await (0,v.getDiffStats)(r,a,n);return x.NextResponse.json(e)}catch(e){return x.NextResponse.json({error:String(e)},{status:500})}};e.s(["GET",0,R],88318);var y=e.i(88318);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/files/route",pathname:"/api/files",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/files/route.ts",nextConfigOutput:"standalone",userland:y,...{}}),{workAsyncStorage:E,workUnitAsyncStorage:S,serverHooks:_}=b;async function B(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/files/route";x=x.replace(/\/index$/,"")||"/";let v=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:E,parsedUrl:S,isDraftMode:_,prerenderManifest:B,routerServerContext:P,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,resolvedPathname:C,clientReferenceManifest:A,serverActionsManifest:F}=v,D=(0,o.normalizeAppPath)(x),T=!!(B.dynamicRoutes[D]||B.routes[C]),N=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,S,!1):t.end("This page could not be found"),null);if(T&&!_){let e=!!B.routes[C],t=B.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await N();throw new g.NoFallbackError}}let H=null;!T||b.isDev||_||(H="/index"===(H=C)?"/":H);let $=!0===b.isDev||!T,M=T&&!$;F&&A&&(0,s.setManifestsSingleton)({page:x,clientReferenceManifest:A,serverActionsManifest:F});let j=e.method||"GET",U=(0,i.getTracer)(),k=U.getActiveScopeSpan(),q=!!(null==P?void 0:P.isWrappedByNextServer),G=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,E,B,G);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let K={params:y,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:$,incrementalCache:L,cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,P)},sharedContext:{buildId:R}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>b.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${j} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${j} ${x}`)}),o=async n=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!G&&I&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(n);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=K.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(W,X,i,K.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),t}},d=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:G});if(!T)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",I?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return G&&T||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(W,X,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};q&&k?await o(k):(n=U.getActiveScopeSpan(),await U.withPropagatedContext(e.headers,()=>U.trace(u.BaseServerSpan.handleRequest,{spanName:`${j} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},o),void 0,!q))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),T)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,B,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:S})},"routeModule",0,b,"serverHooks",0,_,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,S],83638)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__01xaw-k._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66312,e=>{"use strict";var t=e.i(2157);let r="/tmp/diffhub-active-repo";e.s(["REPO_POINTER",0,r,"getConfiguredRepoPath",0,()=>{if(process.env.DIFFHUB_REPO)return process.env.DIFFHUB_REPO;let e=(()=>{try{let e=(0,t.readFileSync)(r,"utf-8").trim();if(e)return e}catch{}return null})();return e||process.cwd()}])},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},69951,e=>{"use strict";var t=e.i(74533),r=e.i(66680),a=e.i(2157),n=e.i(60526),i=e.i(50227),s=e.i(66312);let o=(()=>{let e=globalThis;if(!e.__diffhubGitRuntimeState){let t=process.env.DIFFHUB_SERVER_BOOT_ID;e.__diffhubGitRuntimeState={cache:new Map,gitCommandQueue:Promise.resolve(),lastPointerMtime:0,serverBootId:t??(0,r.createHash)("sha1").update(`${process.pid}:${Date.now()}:${Math.random()}`).digest("hex")}}return e.__diffhubGitRuntimeState})(),{cache:l}=o,d=["main","master","develop","dev"],u="1"===process.env.DIFFHUB_DEBUG,c=e=>`diffhub-snapshot-${(0,r.createHash)("sha1").update(e).digest("hex")}-`,p=(e,t,a,s)=>{let o=JSON.stringify({base:t??"",mode:a??"",whitespace:s??""}),l=(0,r.createHash)("sha1").update(o).digest("hex");return(0,i.join)((0,n.tmpdir)(),`${c(e)}${l}.json`)},f=e=>{if(!e)return void l.clear();let t=`:${e}`;for(let e of l.keys())e.includes(t)&&l.delete(e)},h=e=>{if(f(e),"1"!==process.env.DIFFHUB_CMUX||"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER)return;if(!e){for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith("diffhub-snapshot-")&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0});return}let t=c(e);for(let e of(0,a.readdirSync)((0,n.tmpdir)()))e.startsWith(t)&&(0,a.rmSync)((0,i.join)((0,n.tmpdir)(),e),{force:!0})},m=async(e,t,r)=>{try{let e=(0,a.statSync)(s.REPO_POINTER).mtimeMs;e!==o.lastPointerMtime&&(o.lastPointerMtime=e,"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER?f():h())}catch{}let n=l.get(e);if(n&&n.expires>Date.now())return n.value;let i=await r();return l.set(e,{expires:Date.now()+t,value:i}),i},g=()=>(0,s.getConfiguredRepoPath)(),w=async e=>{let r=Date.now();u&&console.info("[diffhub] git command start",{args:e});try{let{promise:a,reject:n,resolve:i}=Promise.withResolvers();{let r=(0,t.spawn)("git",e,{cwd:g(),env:{...process.env,GIT_TERMINAL_PROMPT:"0"},stdio:["ignore","pipe","pipe"]}),a=[],s=[],o=0,l=!1,d=e=>{l||(l=!0,e())},u=(t,a)=>{let i=Buffer.isBuffer(a)?a:Buffer.from(a);if((o+=i.length)>0x1400000){r.kill("SIGKILL"),d(()=>{n(Error(`git ${e.join(" ")} failed: output exceeded 20971520 bytes`))});return}t.push(i)};r.stdout.on("data",e=>{u(a,e)}),r.stderr.on("data",e=>{u(s,e)}),r.on("error",e=>{d(()=>n(e))}),r.on("close",t=>{let r=Buffer.concat(a).toString("utf-8"),o=Buffer.concat(s).toString("utf-8").trim();0===t?d(()=>i(r)):d(()=>{n(Object.assign(Error(o||`git ${e.join(" ")} failed with exit code ${t??"unknown"}`),{code:t,status:t??void 0,stderr:o}))})})}let s=await a;return u&&console.info("[diffhub] git command success",{args:e,durationMs:Date.now()-r}),s}catch(a){let t="string"==typeof a.stderr?a.stderr.trim():a.stderr?.toString("utf-8").trim()||"";if(console.error("[diffhub] git command failed",{args:e,code:a.code,durationMs:Date.now()-r,error:a,status:a.status,stderr:t||null}),a instanceof Error&&!t)throw a;throw Error(t||`git ${e.join(" ")} failed: ${a.message}`,{cause:a})}},x=async e=>{let t,r=new Promise(e=>{t=e}),a=o.gitCommandQueue;o.gitCommandQueue=r,await a;try{return await w(e)}finally{t()}},v=e=>e.split("\n").map(e=>e.trim()).filter(Boolean),R=e=>(0,r.createHash)("sha1").update(e).digest("hex"),y=(e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return null;let s=p(e,t,r,n);try{let t=(0,a.readFileSync)(s,"utf-8"),r=JSON.parse(t),n=Date.now()-r.metadata.createdAt;if(void 0!==i&&r.generation!==i||r.metadata.bootId!==o.serverBootId||r.metadata.repoPath!==e)return u&&console.info("[diffhub] snapshot cache stale",{ageMs:n,expectedBootId:o.serverBootId,expectedGeneration:i??null,repoPath:e,snapshotBootId:r.metadata.bootId,snapshotGeneration:r.generation,snapshotRepoPath:r.metadata.repoPath,source:"disk"}),(0,a.rmSync)(s,{force:!0}),null;return u&&console.info("[diffhub] snapshot cache hit",{ageMs:Date.now()-r.metadata.createdAt,generation:r.generation,repoPath:e,source:"disk"}),{...r,patchByFile:new Map(Object.entries(r.patchByFile))}}catch{return null}},b=async(e,t,r,a,n)=>{let i=Date.now()+1e3;for(;Date.now()<i;){let i=y(e,t,r,a,n);if(i)return i;await new Promise(e=>{setTimeout(e,50)})}return null},E=(e,t,n,i)=>{let s=g();return m(`snapshot:${s}:${e??""}:${t??""}:${n??""}:${i??""}`,500,async()=>{let l,c,f,h,w=y(s,e,t,n,i);if(w)return w;if("1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER){let r=await b(s,e,t,n,i);if(r)return r;console.warn("[diffhub] external snapshot unavailable, recomputing inline",{expectedGeneration:i??null,mode:t??"all",repoPath:s,whitespace:n??"default"})}let R=(await x(["rev-parse","--abbrev-ref","HEAD"])).trim(),E="uncommitted"===t?"HEAD":e??process.env.DIFFHUB_BASE??await (l=g(),m(`baseBranch:${l}`,3e4,async()=>{let e=v(await x(["branch","-r","--format=%(refname:short)"]));for(let t of d)if(e.includes(`origin/${t}`))return`origin/${t}`;let t=v(await x(["branch","--format=%(refname:short)"]));for(let e of d)if(t.includes(e))return e;return"origin/main"})),S="uncommitted"===t?"HEAD":await (c=g(),m(`mergeBase:${c}:${E}`,3e4,async()=>(await x(["merge-base","HEAD",E])).trim())),_=(f=[S],"ignore"===n?["-w",...f]:f),[B,P]=await Promise.all([x(["diff",..._]),x(["diff","--numstat","-z","-M",..._])]),I=(0,r.createHash)("sha1").update(B).digest("hex"),O=(e=>{let t=[],r=0,a=0,n=0;for(;n<e.length;){let i=e.indexOf(" ",n);if(-1===i)break;let s=e.indexOf(" ",i+1);if(-1===s)throw Error("Malformed git diff --numstat output");let o=e.slice(n,i),l=e.slice(i+1,s),d="";if("\0"===e[n=s+1]){n+=1;let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat rename output");n=t+1;let r=e.indexOf("\0",n);if(-1===r)throw Error("Malformed git diff --numstat rename output");d=e.slice(n,r),n=r+1}else{let t=e.indexOf("\0",n);if(-1===t)throw Error("Malformed git diff --numstat output");d=e.slice(n,t),n=t+1}let u="-"===o||"-"===l,c=u?0:Number.parseInt(o,10)||0,p=u?0:Number.parseInt(l,10)||0;t.push({binary:u,changes:c+p,deletions:p,file:d,insertions:c}),r+=c,a+=p}return{deletions:a,files:t,insertions:r}})(P),A=Date.now(),C=(h=o.serverBootId,(0,r.createHash)("sha1").update(`${h}:${I}:${S}`).digest("hex")),F={baseBranch:E,branch:R,deletions:O.deletions,files:O.files,fingerprint:I,fullPatch:B,generation:C,insertions:O.insertions,mergeBase:S,metadata:{bootId:o.serverBootId,createdAt:A,repoPath:s},patchByFile:(e=>{let t=new Map,r=/^diff --git a\/(.+?) b\/(.+)$/gm,a=[],n=r.exec(e);for(;n;)a.push({file:n[2],start:n.index}),n=r.exec(e);for(let[r,n]of a.entries()){let i=a[r+1]?.start??e.length,s=e.slice(n.start,i).trimEnd();t.set(n.file,s?`${s}
|
|
2
|
+
`:"")}return t})(B)};return console.info("[diffhub] snapshot cache miss",{generation:C,repoPath:s,source:"recomputed"}),((e,t,r,n,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return;let s={...i,patchByFile:Object.fromEntries(i.patchByFile)};(0,a.writeFileSync)(p(e,t,r,n),JSON.stringify(s),"utf-8"),u&&console.info("[diffhub] snapshot cache wrote",{generation:i.generation,repoPath:e,source:"disk"})})(s,e,t,n,F),F})},S=async(e,t,r,a,n)=>{let i=await E(t,r,a,n),s=i.patchByFile.get(e)??"";return{baseBranch:i.baseBranch,branch:i.branch,fingerprint:i.fingerprint,generation:i.generation,mergeBase:i.mergeBase,patch:s,reviewKey:R(s)}},_=async(e,t,r,a)=>{let n=await E(e,t,r,a),i=Object.fromEntries(n.patchByFile),s=Object.fromEntries(Object.entries(i).map(([e,t])=>[e,R(t)]));return{baseBranch:n.baseBranch,branch:n.branch,deletions:n.deletions,files:n.files,fingerprint:n.fingerprint,generation:n.generation,insertions:n.insertions,mergeBase:n.mergeBase,patchByFile:i,reviewKeyByFile:s}},B=async(e,t,r)=>{let a=await E(e,t,r);return{baseBranch:a.baseBranch,branch:a.branch,deletions:a.deletions,files:a.files,fingerprint:a.fingerprint,generation:a.generation,insertions:a.insertions}},P=async()=>{for(let e of(await Promise.allSettled([B(),B(void 0,"uncommitted")])))"rejected"===e.status&&console.error("[diffhub] failed to prime diff snapshot",{error:e.reason})},I=async e=>{await x(["restore","--staged","--worktree","--",e])};e.s(["clearGitMemoryCache",0,f,"discardFile",0,I,"getDiffForFile",0,S,"getDiffStats",0,B,"getFileAtRef",0,(e,t)=>{let r=g();if("WORKING_TREE"===t)try{return Promise.resolve((0,a.readFileSync)((0,i.join)(r,e),"utf-8"))}catch{return Promise.resolve("")}return m(`file:${r}:${t}:${e}`,3e4,async()=>{try{return await x(["show",`${t}:${e}`])}catch{return""}})},"getMultiFileDiff",0,_,"invalidateGitCache",0,h,"primeGitSnapshots",0,P])},27227,e=>{"use strict";var t=e.i(31173),r=e.i(62205),a=e.i(9467),n=e.i(68273),i=e.i(18601),s=e.i(67822),o=e.i(94179),l=e.i(86434),d=e.i(34044),u=e.i(282),c=e.i(63625),p=e.i(62788),f=e.i(60321),h=e.i(21422),m=e.i(91917),g=e.i(93695);e.i(93930);var w=e.i(82490),x=e.i(29950),v=e.i(69951);let R=async e=>{let{searchParams:t}=new URL(e.url),r=t.get("path")??"",a=t.get("ref")??"";if(!r||!a)return x.NextResponse.json({error:"Missing path or ref"},{status:400});try{let e=await (0,v.getFileAtRef)(r,a);return x.NextResponse.json({content:e})}catch(e){return x.NextResponse.json({error:String(e)},{status:500})}};e.s(["GET",0,R],7980);var y=e.i(7980);let b=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/file/route",pathname:"/api/file",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/file/route.ts",nextConfigOutput:"standalone",userland:y,...{}}),{workAsyncStorage:E,workUnitAsyncStorage:S,serverHooks:_}=b;async function B(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),b.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let x="/api/file/route";x=x.replace(/\/index$/,"")||"/";let v=await b.prepare(e,t,{srcPage:x,multiZoneDraftMode:!1});if(!v)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:E,parsedUrl:S,isDraftMode:_,prerenderManifest:B,routerServerContext:P,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,resolvedPathname:A,clientReferenceManifest:C,serverActionsManifest:F}=v,D=(0,o.normalizeAppPath)(x),T=!!(B.dynamicRoutes[D]||B.routes[A]),N=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,S,!1):t.end("This page could not be found"),null);if(T&&!_){let e=!!B.routes[A],t=B.dynamicRoutes[D];if(t&&!1===t.fallback&&!e){if(E.adapterPath)return await N();throw new g.NoFallbackError}}let H=null;!T||b.isDev||_||(H="/index"===(H=A)?"/":H);let $=!0===b.isDev||!T,M=T&&!$;F&&C&&(0,s.setManifestsSingleton)({page:x,clientReferenceManifest:C,serverActionsManifest:F});let j=e.method||"GET",U=(0,i.getTracer)(),k=U.getActiveScopeSpan(),q=!!(null==P?void 0:P.isWrappedByNextServer),G=!!(0,n.getRequestMeta)(e,"minimalMode"),L=(0,n.getRequestMeta)(e,"incrementalCache")||await b.getIncrementalCache(e,E,B,G);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let K={params:y,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!E.experimental.authInterrupts},cacheComponents:!!E.cacheComponents,supportsDynamicResponse:$,incrementalCache:L,cacheLifeProfiles:E.cacheLife,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>b.onRequestError(e,t,a,n,P)},sharedContext:{buildId:R}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t));try{let n,s=async e=>b.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let a=r.get("next.route");if(a){let t=`${j} ${a}`;e.setAttributes({"next.route":a,"http.route":a,"next.span_name":t}),e.updateName(t),n&&n!==e&&(n.setAttribute("http.route",a),n.updateName(t))}else e.updateName(`${j} ${x}`)}),o=async n=>{var i,o;let l=async({previousCacheEntry:r})=>{try{if(!G&&I&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await s(n);e.fetchMetrics=K.renderOpts.fetchMetrics;let o=K.renderOpts.pendingWaitUntil;o&&a.waitUntil&&(a.waitUntil(o),o=void 0);let l=K.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(W,X,i,K.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,a=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await b.onRequestError(e,t,{routerKind:"App Router",routePath:x,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),t}},d=await b.handleResponse({req:e,nextConfig:E,cacheKey:H,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:I,revalidateOnlyGenerated:O,responseGenerator:l,waitUntil:a.waitUntil,isMinimalMode:G});if(!T)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});G||t.setHeader("x-nextjs-cache",I?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),_&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return G&&T||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(W,X,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};q&&k?await o(k):(n=U.getActiveScopeSpan(),await U.withPropagatedContext(e.headers,()=>U.trace(u.BaseServerSpan.handleRequest,{spanName:`${j} ${x}`,kind:i.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},o),void 0,!q))}catch(t){if(t instanceof g.NoFallbackError||await b.onRequestError(e,t,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:M,isOnDemandRevalidate:I})},!1,P),T)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,B,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:S})},"routeModule",0,b,"serverHooks",0,_,"workAsyncStorage",0,E,"workUnitAsyncStorage",0,S],27227)}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__09jw.a~._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[5104,e=>e.a(async(s,r)=>{try{let s=await e.y("shiki-43d062b67f27bbdc");e.n(s),r()}catch(e){r(e)}},!0),81094,e=>{e.v(s=>Promise.all(["server/chunks/node_modules_@pierre_theme_dist_pierre-dark_mjs_0ojo3_n._.js"].map(s=>e.l(s))).then(()=>s(32450)))},35355,e=>{e.v(s=>Promise.all(["server/chunks/node_modules_@pierre_theme_dist_pierre-light_mjs_0pw9wwg._.js"].map(s=>e.l(s))).then(()=>s(16446)))},95590,e=>{e.v(s=>Promise.all(["server/chunks/[externals]_shiki_wasm_0~fgmgp._.js"].map(s=>e.l(s))).then(()=>s(57893)))}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0f~jrb-._.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66312,e=>{"use strict";var t=e.i(2157);let r="/tmp/diffhub-active-repo";e.s(["REPO_POINTER",0,r,"getConfiguredRepoPath",0,()=>{if(process.env.DIFFHUB_REPO)return process.env.DIFFHUB_REPO;let e=(()=>{try{let e=(0,t.readFileSync)(r,"utf-8").trim();if(e)return e}catch{}return null})();return e||process.cwd()}])},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},66680,(e,t,r)=>{t.exports=e.x("node:crypto",()=>require("node:crypto"))},60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},69951,e=>{"use strict";var t=e.i(74533),r=e.i(66680),n=e.i(2157),a=e.i(60526),i=e.i(50227),o=e.i(66312);let s=(()=>{let e=globalThis;if(!e.__diffhubGitRuntimeState){let t=process.env.DIFFHUB_SERVER_BOOT_ID;e.__diffhubGitRuntimeState={cache:new Map,gitCommandQueue:Promise.resolve(),lastPointerMtime:0,serverBootId:t??(0,r.createHash)("sha1").update(`${process.pid}:${Date.now()}:${Math.random()}`).digest("hex")}}return e.__diffhubGitRuntimeState})(),{cache:l}=s,d=["main","master","develop","dev"],u="1"===process.env.DIFFHUB_DEBUG,c=e=>`diffhub-snapshot-${(0,r.createHash)("sha1").update(e).digest("hex")}-`,p=(e,t,n,o)=>{let s=JSON.stringify({base:t??"",mode:n??"",whitespace:o??""}),l=(0,r.createHash)("sha1").update(s).digest("hex");return(0,i.join)((0,a.tmpdir)(),`${c(e)}${l}.json`)},f=e=>{if(!e)return void l.clear();let t=`:${e}`;for(let e of l.keys())e.includes(t)&&l.delete(e)},h=e=>{if(f(e),"1"!==process.env.DIFFHUB_CMUX||"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER)return;if(!e){for(let e of(0,n.readdirSync)((0,a.tmpdir)()))e.startsWith("diffhub-snapshot-")&&(0,n.rmSync)((0,i.join)((0,a.tmpdir)(),e),{force:!0});return}let t=c(e);for(let e of(0,n.readdirSync)((0,a.tmpdir)()))e.startsWith(t)&&(0,n.rmSync)((0,i.join)((0,a.tmpdir)(),e),{force:!0})},m=async(e,t,r)=>{try{let e=(0,n.statSync)(o.REPO_POINTER).mtimeMs;e!==s.lastPointerMtime&&(s.lastPointerMtime=e,"1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER?f():h())}catch{}let a=l.get(e);if(a&&a.expires>Date.now())return a.value;let i=await r();return l.set(e,{expires:Date.now()+t,value:i}),i},g=()=>(0,o.getConfiguredRepoPath)(),w=async e=>{let r=Date.now();u&&console.info("[diffhub] git command start",{args:e});try{let{promise:n,reject:a,resolve:i}=Promise.withResolvers();{let r=(0,t.spawn)("git",e,{cwd:g(),env:{...process.env,GIT_TERMINAL_PROMPT:"0"},stdio:["ignore","pipe","pipe"]}),n=[],o=[],s=0,l=!1,d=e=>{l||(l=!0,e())},u=(t,n)=>{let i=Buffer.isBuffer(n)?n:Buffer.from(n);if((s+=i.length)>0x1400000){r.kill("SIGKILL"),d(()=>{a(Error(`git ${e.join(" ")} failed: output exceeded 20971520 bytes`))});return}t.push(i)};r.stdout.on("data",e=>{u(n,e)}),r.stderr.on("data",e=>{u(o,e)}),r.on("error",e=>{d(()=>a(e))}),r.on("close",t=>{let r=Buffer.concat(n).toString("utf-8"),s=Buffer.concat(o).toString("utf-8").trim();0===t?d(()=>i(r)):d(()=>{a(Object.assign(Error(s||`git ${e.join(" ")} failed with exit code ${t??"unknown"}`),{code:t,status:t??void 0,stderr:s}))})})}let o=await n;return u&&console.info("[diffhub] git command success",{args:e,durationMs:Date.now()-r}),o}catch(n){let t="string"==typeof n.stderr?n.stderr.trim():n.stderr?.toString("utf-8").trim()||"";if(console.error("[diffhub] git command failed",{args:e,code:n.code,durationMs:Date.now()-r,error:n,status:n.status,stderr:t||null}),n instanceof Error&&!t)throw n;throw Error(t||`git ${e.join(" ")} failed: ${n.message}`,{cause:n})}},v=async e=>{let t,r=new Promise(e=>{t=e}),n=s.gitCommandQueue;s.gitCommandQueue=r,await n;try{return await w(e)}finally{t()}},x=e=>e.split("\n").map(e=>e.trim()).filter(Boolean),R=e=>(0,r.createHash)("sha1").update(e).digest("hex"),y=(e,t,r,a,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return null;let o=p(e,t,r,a);try{let t=(0,n.readFileSync)(o,"utf-8"),r=JSON.parse(t),a=Date.now()-r.metadata.createdAt;if(void 0!==i&&r.generation!==i||r.metadata.bootId!==s.serverBootId||r.metadata.repoPath!==e)return u&&console.info("[diffhub] snapshot cache stale",{ageMs:a,expectedBootId:s.serverBootId,expectedGeneration:i??null,repoPath:e,snapshotBootId:r.metadata.bootId,snapshotGeneration:r.generation,snapshotRepoPath:r.metadata.repoPath,source:"disk"}),(0,n.rmSync)(o,{force:!0}),null;return u&&console.info("[diffhub] snapshot cache hit",{ageMs:Date.now()-r.metadata.createdAt,generation:r.generation,repoPath:e,source:"disk"}),{...r,patchByFile:new Map(Object.entries(r.patchByFile))}}catch{return null}},b=async(e,t,r,n,a)=>{let i=Date.now()+1e3;for(;Date.now()<i;){let i=y(e,t,r,n,a);if(i)return i;await new Promise(e=>{setTimeout(e,50)})}return null},E=(e,t,a,i)=>{let o=g();return m(`snapshot:${o}:${e??""}:${t??""}:${a??""}:${i??""}`,500,async()=>{let l,c,f,h,w=y(o,e,t,a,i);if(w)return w;if("1"===process.env.DIFFHUB_EXTERNAL_SNAPSHOT_WRITER){let r=await b(o,e,t,a,i);if(r)return r;console.warn("[diffhub] external snapshot unavailable, recomputing inline",{expectedGeneration:i??null,mode:t??"all",repoPath:o,whitespace:a??"default"})}let R=(await v(["rev-parse","--abbrev-ref","HEAD"])).trim(),E="uncommitted"===t?"HEAD":e??process.env.DIFFHUB_BASE??await (l=g(),m(`baseBranch:${l}`,3e4,async()=>{let e=x(await v(["branch","-r","--format=%(refname:short)"]));for(let t of d)if(e.includes(`origin/${t}`))return`origin/${t}`;let t=x(await v(["branch","--format=%(refname:short)"]));for(let e of d)if(t.includes(e))return e;return"origin/main"})),_="uncommitted"===t?"HEAD":await (c=g(),m(`mergeBase:${c}:${E}`,3e4,async()=>(await v(["merge-base","HEAD",E])).trim())),B=(f=[_],"ignore"===a?["-w",...f]:f),[F,P]=await Promise.all([v(["diff",...B]),v(["diff","--numstat","-z","-M",...B])]),S=(0,r.createHash)("sha1").update(F).digest("hex"),D=(e=>{let t=[],r=0,n=0,a=0;for(;a<e.length;){let i=e.indexOf(" ",a);if(-1===i)break;let o=e.indexOf(" ",i+1);if(-1===o)throw Error("Malformed git diff --numstat output");let s=e.slice(a,i),l=e.slice(i+1,o),d="";if("\0"===e[a=o+1]){a+=1;let t=e.indexOf("\0",a);if(-1===t)throw Error("Malformed git diff --numstat rename output");a=t+1;let r=e.indexOf("\0",a);if(-1===r)throw Error("Malformed git diff --numstat rename output");d=e.slice(a,r),a=r+1}else{let t=e.indexOf("\0",a);if(-1===t)throw Error("Malformed git diff --numstat output");d=e.slice(a,t),a=t+1}let u="-"===s||"-"===l,c=u?0:Number.parseInt(s,10)||0,p=u?0:Number.parseInt(l,10)||0;t.push({binary:u,changes:c+p,deletions:p,file:d,insertions:c}),r+=c,n+=p}return{deletions:n,files:t,insertions:r}})(P),I=Date.now(),O=(h=s.serverBootId,(0,r.createHash)("sha1").update(`${h}:${S}:${_}`).digest("hex")),A={baseBranch:E,branch:R,deletions:D.deletions,files:D.files,fingerprint:S,fullPatch:F,generation:O,insertions:D.insertions,mergeBase:_,metadata:{bootId:s.serverBootId,createdAt:I,repoPath:o},patchByFile:(e=>{let t=new Map,r=/^diff --git a\/(.+?) b\/(.+)$/gm,n=[],a=r.exec(e);for(;a;)n.push({file:a[2],start:a.index}),a=r.exec(e);for(let[r,a]of n.entries()){let i=n[r+1]?.start??e.length,o=e.slice(a.start,i).trimEnd();t.set(a.file,o?`${o}
|
|
2
|
+
`:"")}return t})(F)};return console.info("[diffhub] snapshot cache miss",{generation:O,repoPath:o,source:"recomputed"}),((e,t,r,a,i)=>{if("1"!==process.env.DIFFHUB_CMUX)return;let o={...i,patchByFile:Object.fromEntries(i.patchByFile)};(0,n.writeFileSync)(p(e,t,r,a),JSON.stringify(o),"utf-8"),u&&console.info("[diffhub] snapshot cache wrote",{generation:i.generation,repoPath:e,source:"disk"})})(o,e,t,a,A),A})},_=async(e,t,r,n,a)=>{let i=await E(t,r,n,a),o=i.patchByFile.get(e)??"";return{baseBranch:i.baseBranch,branch:i.branch,fingerprint:i.fingerprint,generation:i.generation,mergeBase:i.mergeBase,patch:o,reviewKey:R(o)}},B=async(e,t,r,n)=>{let a=await E(e,t,r,n),i=Object.fromEntries(a.patchByFile),o=Object.fromEntries(Object.entries(i).map(([e,t])=>[e,R(t)]));return{baseBranch:a.baseBranch,branch:a.branch,deletions:a.deletions,files:a.files,fingerprint:a.fingerprint,generation:a.generation,insertions:a.insertions,mergeBase:a.mergeBase,patchByFile:i,reviewKeyByFile:o}},F=async(e,t,r)=>{let n=await E(e,t,r);return{baseBranch:n.baseBranch,branch:n.branch,deletions:n.deletions,files:n.files,fingerprint:n.fingerprint,generation:n.generation,insertions:n.insertions}},P=async()=>{for(let e of(await Promise.allSettled([F(),F(void 0,"uncommitted")])))"rejected"===e.status&&console.error("[diffhub] failed to prime diff snapshot",{error:e.reason})},S=async e=>{await v(["restore","--staged","--worktree","--",e])};e.s(["clearGitMemoryCache",0,f,"discardFile",0,S,"getDiffForFile",0,_,"getDiffStats",0,F,"getFileAtRef",0,(e,t)=>{let r=g();if("WORKING_TREE"===t)try{return Promise.resolve((0,n.readFileSync)((0,i.join)(r,e),"utf-8"))}catch{return Promise.resolve("")}return m(`file:${r}:${t}:${e}`,3e4,async()=>{try{return await v(["show",`${t}:${e}`])}catch{return""}})},"getMultiFileDiff",0,B,"invalidateGitCache",0,h,"primeGitSnapshots",0,P])},78713,e=>{"use strict";var t=e.i(31173),r=e.i(62205),n=e.i(9467),a=e.i(68273),i=e.i(18601),o=e.i(67822),s=e.i(94179),l=e.i(86434),d=e.i(34044),u=e.i(282),c=e.i(63625),p=e.i(62788),f=e.i(60321),h=e.i(21422),m=e.i(91917),g=e.i(93695);e.i(93930);var w=e.i(82490),v=e.i(29950),x=e.i(69951);let R=async({file:t,mode:r,patch:n})=>{if("1"!==process.env.DIFFHUB_DISABLE_PRERENDER&&t&&n)try{let{preloadPatchHtmlByLayout:t}=await e.A(18558);return await t(n)}catch(e){console.error("[diffhub] failed to prerender diff HTML",{error:e,file:t,mode:r})}},y=async t=>{let{searchParams:r}=new URL(t.url),n=r.get("base")??void 0,a=r.get("file")??void 0,i=r.get("generation")??void 0,o="uncommitted"===r.get("mode")?"uncommitted":void 0,s="ignore"===r.get("ws")?"ignore":void 0,l=Date.now(),d=(({base:e,file:t,generation:r,mode:n,whitespace:a})=>({base:e??null,file:t??null,mode:n??"all",requestedGeneration:r??null,whitespace:a??"default"}))({base:n,file:a,generation:i,mode:o,whitespace:s});console.info("[diffhub] /api/diff request",d);try{let t;if(a){let e=await (0,x.getDiffForFile)(a,n,o,s,i),t=await R({file:a,mode:o,patch:e.patch});return console.info("[diffhub] /api/diff response",{durationMs:Date.now()-l,generation:e.generation,hasPrerenderedHTML:!!t,patchLength:e.patch.length,...d}),v.NextResponse.json({...e,...t?{prerenderedHTML:t}:{}})}let r=await (0,x.getMultiFileDiff)(n,o,s,i);if("1"!==process.env.DIFFHUB_DISABLE_PRERENDER)try{let{preloadPatchHtmlByLayout:n}=await e.A(18558),a=Object.entries(r.patchByFile).filter(([,e])=>e).slice(0,4),i=(await Promise.all(a.map(async([e,t])=>{try{return{file:e,html:await n(t)}}catch{return null}}))).filter(Boolean);i.length>0&&(t=Object.fromEntries(i.map(e=>[e.file,e.html])))}catch(e){console.error("[diffhub] failed to prerender multi-file diff HTML",{error:e})}console.info("[diffhub] /api/diff response",{durationMs:Date.now()-l,generation:r.generation,hasPrerenderedHTML:!!t,patchCount:Object.keys(r.patchByFile).length,patchLength:null,prerenderedFileCount:t?Object.keys(t).length:0,...d});let{patchByFile:u,reviewKeyByFile:c,...p}=r;return v.NextResponse.json({...p,patchesByFile:u,reviewKeysByFile:c,...t?{prerenderedHTMLByFile:t}:{}})}catch(e){return console.error("[diffhub] /api/diff failed",{error:e,...d}),v.NextResponse.json({error:String(e)},{status:500})}};e.s(["GET",0,y],90072);var b=e.i(90072);let E=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/diff/route",pathname:"/api/diff",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/diff/route.ts",nextConfigOutput:"standalone",userland:b,...{}}),{workAsyncStorage:_,workUnitAsyncStorage:B,serverHooks:F}=E;async function P(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),E.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let v="/api/diff/route";v=v.replace(/\/index$/,"")||"/";let x=await E.prepare(e,t,{srcPage:v,multiZoneDraftMode:!1});if(!x)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:R,params:y,nextConfig:b,parsedUrl:_,isDraftMode:B,prerenderManifest:F,routerServerContext:P,isOnDemandRevalidate:S,revalidateOnlyGenerated:D,resolvedPathname:I,clientReferenceManifest:O,serverActionsManifest:A}=x,C=(0,s.normalizeAppPath)(v),T=!!(F.dynamicRoutes[C]||F.routes[I]),H=async()=>((null==P?void 0:P.render404)?await P.render404(e,t,_,!1):t.end("This page could not be found"),null);if(T&&!B){let e=!!F.routes[I],t=F.dynamicRoutes[C];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await H();throw new g.NoFallbackError}}let M=null;!T||E.isDev||B||(M="/index"===(M=I)?"/":M);let N=!0===E.isDev||!T,j=T&&!N;A&&O&&(0,o.setManifestsSingleton)({page:v,clientReferenceManifest:O,serverActionsManifest:A});let $=e.method||"GET",U=(0,i.getTracer)(),k=U.getActiveScopeSpan(),q=!!(null==P?void 0:P.isWrappedByNextServer),L=!!(0,a.getRequestMeta)(e,"minimalMode"),G=(0,a.getRequestMeta)(e,"incrementalCache")||await E.getIncrementalCache(e,b,F,L);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let K={params:y,previewProps:F.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts},cacheComponents:!!b.cacheComponents,supportsDynamicResponse:N,incrementalCache:G,cacheLifeProfiles:b.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>E.onRequestError(e,t,n,a,P)},sharedContext:{buildId:R}},W=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),V=d.NextRequestAdapter.fromNodeNextRequest(W,(0,d.signalFromNodeResponse)(t));try{let a,o=async e=>E.handle(V,K).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=U.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${$} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",n),a.updateName(t))}else e.updateName(`${$} ${v}`)}),s=async a=>{var i,s;let l=async({previousCacheEntry:r})=>{try{if(!L&&S&&D&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let i=await o(a);e.fetchMetrics=K.renderOpts.fetchMetrics;let s=K.renderOpts.pendingWaitUntil;s&&n.waitUntil&&(n.waitUntil(s),s=void 0);let l=K.renderOpts.collectedTags;if(!T)return await (0,p.sendResponse)(W,X,i,K.renderOpts.pendingWaitUntil),null;{let e=await i.blob(),t=(0,f.toNodeOutgoingHttpHeaders)(i.headers);l&&(t[m.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==K.renderOpts.collectedRevalidate&&!(K.renderOpts.collectedRevalidate>=m.INFINITE_CACHE)&&K.renderOpts.collectedRevalidate,n=void 0===K.renderOpts.collectedExpire||K.renderOpts.collectedExpire>=m.INFINITE_CACHE?void 0:K.renderOpts.collectedExpire;return{value:{kind:w.CachedRouteKind.APP_ROUTE,status:i.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await E.onRequestError(e,t,{routerKind:"App Router",routePath:v,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:S})},!1,P),t}},d=await E.handleResponse({req:e,nextConfig:b,cacheKey:M,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:D,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:L});if(!T)return null;if((null==d||null==(i=d.value)?void 0:i.kind)!==w.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(s=d.value)?void 0:s.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});L||t.setHeader("x-nextjs-cache",S?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,f.fromNodeOutgoingHttpHeaders)(d.value.headers);return L&&T||u.delete(m.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,h.getCacheControlHeader)(d.cacheControl)),await (0,p.sendResponse)(W,X,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};q&&k?await s(k):(a=U.getActiveScopeSpan(),await U.withPropagatedContext(e.headers,()=>U.trace(u.BaseServerSpan.handleRequest,{spanName:`${$} ${v}`,kind:i.SpanKind.SERVER,attributes:{"http.method":$,"http.target":e.url}},s),void 0,!q))}catch(t){if(t instanceof g.NoFallbackError||await E.onRequestError(e,t,{routerKind:"App Router",routePath:C,routeType:"route",revalidateReason:(0,c.getRevalidateReason)({isStaticGeneration:j,isOnDemandRevalidate:S})},!1,P),T)throw t;return await (0,p.sendResponse)(W,X,new Response(null,{status:500})),null}}e.s(["handler",0,P,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:_,workUnitAsyncStorage:B})},"routeModule",0,E,"serverHooks",0,F,"workAsyncStorage",0,_,"workUnitAsyncStorage",0,B],78713)},18558,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__0f~jrb-._.js","server/chunks/_0jcmjdn._.js"].map(t=>e.l(t))).then(()=>t(8720)))}];
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0gx-yyt._.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[18622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},56704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},24725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},70406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},93695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},66312,e=>{"use strict";var t=e.i(2157);let r="/tmp/diffhub-active-repo";e.s(["REPO_POINTER",0,r,"getConfiguredRepoPath",0,()=>{if(process.env.DIFFHUB_REPO)return process.env.DIFFHUB_REPO;let e=(()=>{try{let e=(0,t.readFileSync)(r,"utf-8").trim();if(e)return e}catch{}return null})();return e||process.cwd()}])},50227,(e,t,r)=>{t.exports=e.x("node:path",()=>require("node:path"))},89710,e=>{"use strict";var t=e.i(31173),r=e.i(62205),n=e.i(9467),a=e.i(68273),s=e.i(18601),i=e.i(67822),o=e.i(94179),l=e.i(86434),d=e.i(34044),u=e.i(282),p=e.i(63625),c=e.i(62788),h=e.i(60321),x=e.i(21422),R=e.i(91917),v=e.i(93695);e.i(93930);var f=e.i(82490),g=e.i(29950),m=e.i(2157),w=e.i(50227),E=e.i(66312);let y=()=>(0,w.join)((0,E.getConfiguredRepoPath)(),".git","diffhub-comments.json"),C=()=>{let e=y();if(!(0,m.existsSync)(e))return[];try{return JSON.parse((0,m.readFileSync)(e,"utf-8"))}catch{return[]}},b=e=>{(0,m.writeFileSync)(y(),JSON.stringify(e,null,2))},A=async e=>{var t;let r,n,a=(t=await e.json(),r=C(),n={...t,createdAt:new Date().toISOString(),id:crypto.randomUUID()},r.push(n),b(r),n);return g.NextResponse.json(a,{status:201})};e.s(["DELETE",0,e=>{let{searchParams:t}=new URL(e.url),r=t.get("id");return r?(b(C().filter(e=>e.id!==r)),g.NextResponse.json({ok:!0})):g.NextResponse.json({error:"id required"},{status:400})},"GET",0,()=>g.NextResponse.json(C()),"POST",0,A],57722);var N=e.i(57722);let P=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/comments/route",pathname:"/api/comments",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/apps/web/app/api/comments/route.ts",nextConfigOutput:"standalone",userland:N,...{}}),{workAsyncStorage:S,workUnitAsyncStorage:O,serverHooks:T}=P;async function q(e,t,n){n.requestMeta&&(0,a.setRequestMeta)(e,n.requestMeta),P.isDev&&(0,a.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/comments/route";g=g.replace(/\/index$/,"")||"/";let m=await P.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!m)return t.statusCode=400,t.end("Bad Request"),null==n.waitUntil||n.waitUntil.call(n,Promise.resolve()),null;let{buildId:w,params:E,nextConfig:y,parsedUrl:C,isDraftMode:b,prerenderManifest:A,routerServerContext:N,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,resolvedPathname:T,clientReferenceManifest:q,serverActionsManifest:_}=m,j=(0,o.normalizeAppPath)(g),k=!!(A.dynamicRoutes[j]||A.routes[T]),I=async()=>((null==N?void 0:N.render404)?await N.render404(e,t,C,!1):t.end("This page could not be found"),null);if(k&&!b){let e=!!A.routes[T],t=A.dynamicRoutes[j];if(t&&!1===t.fallback&&!e){if(y.adapterPath)return await I();throw new v.NoFallbackError}}let U=null;!k||P.isDev||b||(U="/index"===(U=T)?"/":U);let H=!0===P.isDev||!k,D=k&&!H;_&&q&&(0,i.setManifestsSingleton)({page:g,clientReferenceManifest:q,serverActionsManifest:_});let F=e.method||"GET",M=(0,s.getTracer)(),$=M.getActiveScopeSpan(),B=!!(null==N?void 0:N.isWrappedByNextServer),K=!!(0,a.getRequestMeta)(e,"minimalMode"),L=(0,a.getRequestMeta)(e,"incrementalCache")||await P.getIncrementalCache(e,y,A,K);null==L||L.resetRequestCache(),globalThis.__incrementalCache=L;let G={params:E,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts},cacheComponents:!!y.cacheComponents,supportsDynamicResponse:H,incrementalCache:L,cacheLifeProfiles:y.cacheLife,waitUntil:n.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,n,a)=>P.onRequestError(e,t,n,a,N)},sharedContext:{buildId:w}},V=new l.NodeNextRequest(e),W=new l.NodeNextResponse(t),X=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t));try{let a,i=async e=>P.handle(X,G).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":t.statusCode,"next.rsc":!1});let r=M.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${r.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let n=r.get("next.route");if(n){let t=`${F} ${n}`;e.setAttributes({"next.route":n,"http.route":n,"next.span_name":t}),e.updateName(t),a&&a!==e&&(a.setAttribute("http.route",n),a.updateName(t))}else e.updateName(`${F} ${g}`)}),o=async a=>{var s,o;let l=async({previousCacheEntry:r})=>{try{if(!K&&S&&O&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let s=await i(a);e.fetchMetrics=G.renderOpts.fetchMetrics;let o=G.renderOpts.pendingWaitUntil;o&&n.waitUntil&&(n.waitUntil(o),o=void 0);let l=G.renderOpts.collectedTags;if(!k)return await (0,c.sendResponse)(V,W,s,G.renderOpts.pendingWaitUntil),null;{let e=await s.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(s.headers);l&&(t[R.NEXT_CACHE_TAGS_HEADER]=l),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==G.renderOpts.collectedRevalidate&&!(G.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&G.renderOpts.collectedRevalidate,n=void 0===G.renderOpts.collectedExpire||G.renderOpts.collectedExpire>=R.INFINITE_CACHE?void 0:G.renderOpts.collectedExpire;return{value:{kind:f.CachedRouteKind.APP_ROUTE,status:s.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:n}}}}catch(t){throw(null==r?void 0:r.isStale)&&await P.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,N),t}},d=await P.handleResponse({req:e,nextConfig:y,cacheKey:U,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:O,responseGenerator:l,waitUntil:n.waitUntil,isMinimalMode:K});if(!k)return null;if((null==d||null==(s=d.value)?void 0:s.kind)!==f.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(o=d.value)?void 0:o.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});K||t.setHeader("x-nextjs-cache",S?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),b&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let u=(0,h.fromNodeOutgoingHttpHeaders)(d.value.headers);return K&&k||u.delete(R.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||t.getHeader("Cache-Control")||u.get("Cache-Control")||u.set("Cache-Control",(0,x.getCacheControlHeader)(d.cacheControl)),await (0,c.sendResponse)(V,W,new Response(d.value.body,{headers:u,status:d.value.status||200})),null};B&&$?await o($):(a=M.getActiveScopeSpan(),await M.withPropagatedContext(e.headers,()=>M.trace(u.BaseServerSpan.handleRequest,{spanName:`${F} ${g}`,kind:s.SpanKind.SERVER,attributes:{"http.method":F,"http.target":e.url}},o),void 0,!B))}catch(t){if(t instanceof v.NoFallbackError||await P.onRequestError(e,t,{routerKind:"App Router",routePath:j,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:D,isOnDemandRevalidate:S})},!1,N),k)throw t;return await (0,c.sendResponse)(V,W,new Response(null,{status:500})),null}}e.s(["handler",0,q,"patchFetch",0,function(){return(0,n.patchFetch)({workAsyncStorage:S,workUnitAsyncStorage:O})},"routeModule",0,P,"serverHooks",0,T,"workAsyncStorage",0,S,"workUnitAsyncStorage",0,O],89710)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__0h91.i1._.js.map
|