@theobourgeois/ytdb 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -0
- package/.next/app-path-routes-manifest.json +16 -0
- package/.next/build-manifest.json +24 -0
- package/.next/export-marker.json +6 -0
- package/.next/fallback-build-manifest.json +15 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +129 -0
- package/.next/required-server-files.json +351 -0
- package/.next/routes-manifest.json +163 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page/build-manifest.json +20 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page/next-font-manifest.json +11 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page.js +14 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page.js.map +5 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page.js.nft.json +1 -0
- package/.next/server/app/[connectionId]/[schema]/[table]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/[connectionId]/page/app-paths-manifest.json +3 -0
- package/.next/server/app/[connectionId]/page/build-manifest.json +20 -0
- package/.next/server/app/[connectionId]/page/next-font-manifest.json +11 -0
- package/.next/server/app/[connectionId]/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/[connectionId]/page/server-reference-manifest.json +4 -0
- package/.next/server/app/[connectionId]/page.js +14 -0
- package/.next/server/app/[connectionId]/page.js.map +5 -0
- package/.next/server/app/[connectionId]/page.js.nft.json +1 -0
- package/.next/server/app/[connectionId]/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_global-error/page/build-manifest.json +20 -0
- package/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_global-error/page.js +9 -0
- package/.next/server/app/_global-error/page.js.map +5 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +22 -0
- package/.next/server/app/_global-error.rsc +15 -0
- package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +20 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/.next/server/app/_not-found/page/build-manifest.json +20 -0
- package/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
- package/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/.next/server/app/_not-found/page.js +12 -0
- package/.next/server/app/_not-found/page.js.map +5 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +27 -0
- package/.next/server/app/_not-found.rsc +19 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +25 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
- package/.next/server/app/api/cell/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/cell/route/build-manifest.json +12 -0
- package/.next/server/app/api/cell/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/cell/route.js +7 -0
- package/.next/server/app/api/cell/route.js.map +5 -0
- package/.next/server/app/api/cell/route.js.nft.json +1 -0
- package/.next/server/app/api/cell/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/definition/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/definition/route/build-manifest.json +12 -0
- package/.next/server/app/api/definition/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/definition/route.js +7 -0
- package/.next/server/app/api/definition/route.js.map +5 -0
- package/.next/server/app/api/definition/route.js.nft.json +1 -0
- package/.next/server/app/api/definition/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/delete-rows/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/delete-rows/route/build-manifest.json +12 -0
- package/.next/server/app/api/delete-rows/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/delete-rows/route.js +7 -0
- package/.next/server/app/api/delete-rows/route.js.map +5 -0
- package/.next/server/app/api/delete-rows/route.js.nft.json +1 -0
- package/.next/server/app/api/delete-rows/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/health/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/health/route/build-manifest.json +12 -0
- package/.next/server/app/api/health/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/health/route.js +6 -0
- package/.next/server/app/api/health/route.js.map +5 -0
- package/.next/server/app/api/health/route.js.nft.json +1 -0
- package/.next/server/app/api/health/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/lookup/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/lookup/route/build-manifest.json +12 -0
- package/.next/server/app/api/lookup/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/lookup/route.js +6 -0
- package/.next/server/app/api/lookup/route.js.map +5 -0
- package/.next/server/app/api/lookup/route.js.nft.json +1 -0
- package/.next/server/app/api/lookup/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/related/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/related/route/build-manifest.json +12 -0
- package/.next/server/app/api/related/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/related/route.js +6 -0
- package/.next/server/app/api/related/route.js.map +5 -0
- package/.next/server/app/api/related/route.js.nft.json +1 -0
- package/.next/server/app/api/related/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/rows/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/rows/route/build-manifest.json +12 -0
- package/.next/server/app/api/rows/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/rows/route.js +6 -0
- package/.next/server/app/api/rows/route.js.map +5 -0
- package/.next/server/app/api/rows/route.js.nft.json +1 -0
- package/.next/server/app/api/rows/route_client-reference-manifest.js +3 -0
- package/.next/server/app/api/tables/route/app-paths-manifest.json +3 -0
- package/.next/server/app/api/tables/route/build-manifest.json +12 -0
- package/.next/server/app/api/tables/route/server-reference-manifest.json +4 -0
- package/.next/server/app/api/tables/route.js +7 -0
- package/.next/server/app/api/tables/route.js.map +5 -0
- package/.next/server/app/api/tables/route.js.nft.json +1 -0
- package/.next/server/app/api/tables/route_client-reference-manifest.js +3 -0
- package/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
- package/.next/server/app/favicon.ico/route/build-manifest.json +12 -0
- package/.next/server/app/favicon.ico/route.js +7 -0
- package/.next/server/app/favicon.ico/route.js.map +5 -0
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
- package/.next/server/app/favicon.ico.body +0 -0
- package/.next/server/app/favicon.ico.meta +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +21 -0
- package/.next/server/app/index.rsc +23 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +26 -0
- package/.next/server/app/index.segments/_full.segment.rsc +23 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/page/app-paths-manifest.json +3 -0
- package/.next/server/app/page/build-manifest.json +20 -0
- package/.next/server/app/page/next-font-manifest.json +11 -0
- package/.next/server/app/page/react-loadable-manifest.json +1 -0
- package/.next/server/app/page/server-reference-manifest.json +4 -0
- package/.next/server/app/page.js +13 -0
- package/.next/server/app/page.js.map +5 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +3 -0
- package/.next/server/app-paths-manifest.json +16 -0
- package/.next/server/chunks/[externals]__0uarm42._.js +3 -0
- package/.next/server/chunks/[externals]__0uarm42._.js.map +1 -0
- package/.next/server/chunks/[externals]__1xmnhya._.js +3 -0
- package/.next/server/chunks/[externals]__1xmnhya._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__08fumu3._.js +56 -0
- package/.next/server/chunks/[root-of-the-server]__08fumu3._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__09dhqqi._.js +56 -0
- package/.next/server/chunks/[root-of-the-server]__09dhqqi._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0dhb8ph._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0dhb8ph._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0ihdccc._.js +165 -0
- package/.next/server/chunks/[root-of-the-server]__0ihdccc._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0q19g3o._.js +37 -0
- package/.next/server/chunks/[root-of-the-server]__0q19g3o._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__0q_i_0j._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__0q_i_0j._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__13v8a92._.js +37 -0
- package/.next/server/chunks/[root-of-the-server]__13v8a92._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js +5 -0
- package/.next/server/chunks/[root-of-the-server]__15bjnu5._.js.map +1 -0
- package/.next/server/chunks/[root-of-the-server]__1xtrrux._.js +3 -0
- package/.next/server/chunks/[root-of-the-server]__1xtrrux._.js.map +1 -0
- package/.next/server/chunks/[turbopack]_runtime.js +939 -0
- package/.next/server/chunks/[turbopack]_runtime.js.map +11 -0
- package/.next/server/chunks/_0fkh-00._.js +90 -0
- package/.next/server/chunks/_0fkh-00._.js.map +1 -0
- package/.next/server/chunks/_0isnx44._.js +72 -0
- package/.next/server/chunks/_0isnx44._.js.map +1 -0
- package/.next/server/chunks/_0r2zpfr._.js +158 -0
- package/.next/server/chunks/_0r2zpfr._.js.map +1 -0
- package/.next/server/chunks/_0sg4w8e._.js +21 -0
- package/.next/server/chunks/_0sg4w8e._.js.map +1 -0
- package/.next/server/chunks/_1349_rj._.js +28 -0
- package/.next/server/chunks/_1349_rj._.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_cell_route_actions_1u88ru3.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_cell_route_actions_1u88ru3.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_definition_route_actions_097kjq6.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_definition_route_actions_097kjq6.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_delete-rows_route_actions_0t2bukg.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_delete-rows_route_actions_0t2bukg.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_health_route_actions_1ryftkb.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_health_route_actions_1ryftkb.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_lookup_route_actions_0-ahhwv.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_lookup_route_actions_0-ahhwv.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_related_route_actions_0sm4hrz.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_related_route_actions_0sm4hrz.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_rows_route_actions_0unlq8-.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_rows_route_actions_0unlq8-.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_api_tables_route_actions_17e99hn.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_api_tables_route_actions_17e99hn.js.map +1 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js +3 -0
- package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__00wmlt8._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__00wmlt8._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06x8wuq._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__06x8wuq._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js +14 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xpcv9w._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xwhthq._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0xwhthq._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0y_e9do._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__0y_e9do._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__18cw6e5._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__18cw6e5._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1f2jx51._.js +33 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1f2jx51._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1nu0z_t._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1nu0z_t._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1o8jotz._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1o8jotz._.js.map +1 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1v8o_d0._.js +3 -0
- package/.next/server/chunks/ssr/[root-of-the-server]__1v8o_d0._.js.map +1 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js +939 -0
- package/.next/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
- package/.next/server/chunks/ssr/_01jes5c._.js +23 -0
- package/.next/server/chunks/ssr/_01jes5c._.js.map +1 -0
- package/.next/server/chunks/ssr/_0kdlcdh._.js +3 -0
- package/.next/server/chunks/ssr/_0kdlcdh._.js.map +1 -0
- package/.next/server/chunks/ssr/_15p4s3l._.js +23 -0
- package/.next/server/chunks/ssr/_15p4s3l._.js.map +1 -0
- package/.next/server/chunks/ssr/_17he7h-._.js +3 -0
- package/.next/server/chunks/ssr/_17he7h-._.js.map +1 -0
- package/.next/server/chunks/ssr/_1g86oh0._.js +131 -0
- package/.next/server/chunks/ssr/_1g86oh0._.js.map +1 -0
- package/.next/server/chunks/ssr/_1k73lzj._.js +4 -0
- package/.next/server/chunks/ssr/_1k73lzj._.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_[connectionId]_[schema]_[table]_page_actions_1kjlfag.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_[connectionId]_[schema]_[table]_page_actions_1kjlfag.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_[connectionId]_page_actions_19cz9ih.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_[connectionId]_page_actions_19cz9ih.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__global-error_page_actions_0zi5s8-.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app__not-found_page_actions_0pt47yr.js.map +1 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js +3 -0
- package/.next/server/chunks/ssr/_next-internal_server_app_page_actions_0hhsz1j.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_1wax83z._.js +33 -0
- package/.next/server/chunks/ssr/node_modules_1wax83z._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_download_mjs_0z4tf7q._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_lucide-react_dist_esm_icons_download_mjs_0z4tf7q._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js +6 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1n3w9lb._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1v8aef8._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_1v8aef8._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_0wpq8j3._.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0symwr9.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0q-w892.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0l_sp0x.js.map +1 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js +3 -0
- package/.next/server/chunks/ssr/node_modules_next_dist_client_components_server-async-storage_0t1dato.js.map +1 -0
- package/.next/server/chunks/ssr/src_1924u4n._.js +3 -0
- package/.next/server/chunks/ssr/src_1924u4n._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_05iaj8g._.js +4 -0
- package/.next/server/chunks/ssr/src_components_05iaj8g._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_explorer_explorer-shell_tsx_0uis8b_._.js +3 -0
- package/.next/server/chunks/ssr/src_components_explorer_explorer-shell_tsx_0uis8b_._.js.map +1 -0
- package/.next/server/chunks/ssr/src_components_table_table-view_tsx_1c47km-._.js +3 -0
- package/.next/server/chunks/ssr/src_components_table_table-view_tsx_1c47km-._.js.map +1 -0
- package/.next/server/functions-config-manifest.json +14 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware/middleware-manifest.json +6 -0
- package/.next/server/middleware-build-manifest.js +24 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware.js +5 -0
- package/.next/server/middleware.js.map +5 -0
- package/.next/server/middleware.js.nft.json +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +23 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +34 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +5 -0
- package/.next/static/BXmOJ7sstE0tf3fFtfiD-/_buildManifest.js +11 -0
- package/.next/static/BXmOJ7sstE0tf3fFtfiD-/_clientMiddlewareManifest.js +6 -0
- package/.next/static/BXmOJ7sstE0tf3fFtfiD-/_ssgManifest.js +1 -0
- package/.next/static/chunks/067ca5059_fo7.js +1 -0
- package/.next/static/chunks/08i4cjis-mty5.js +1 -0
- package/.next/static/chunks/08ttfj81-47mu.js +1 -0
- package/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/.next/static/chunks/0d7w4pixfxh4v.js +1 -0
- package/.next/static/chunks/0h4f5tc41le47.js +22 -0
- package/.next/static/chunks/0vac_z0xf17fa.js +1 -0
- package/.next/static/chunks/0wtas4t7k7-y6.js +1 -0
- package/.next/static/chunks/14d0hms_nxki9.css +3 -0
- package/.next/static/chunks/2c9zyyph1-b60.js +2 -0
- package/.next/static/chunks/2i51e627rllld.js +1 -0
- package/.next/static/chunks/3fntmmi971322.js +1 -0
- package/.next/static/chunks/3i15u02kou8j5.js +2 -0
- package/.next/static/chunks/3mc6dra1m0098.js +31 -0
- package/.next/static/chunks/3sanpqz1t19j-.js +1 -0
- package/.next/static/chunks/turbopack-3pswe3faev0qr.js +1 -0
- package/.next/static/media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2 +0 -0
- package/.next/static/media/53b9e256198e5412-s.390ncx5urfkfu.woff2 +0 -0
- package/.next/static/media/5ce348bf30bf5439-s.31988l_ccedte.woff2 +0 -0
- package/.next/static/media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2 +0 -0
- package/.next/static/media/7178b3e590c64307-s.21jp631_3pja2.woff2 +0 -0
- package/.next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2 +0 -0
- package/.next/static/media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2 +0 -0
- package/.next/static/media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2 +0 -0
- package/.next/static/media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2 +0 -0
- package/.next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2 +0 -0
- package/.next/static/media/favicon.2vob68tjqpejf.ico +0 -0
- package/.next/static/media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2 +0 -0
- package/README.md +109 -0
- package/bin/ytdb.mjs +99 -0
- package/package.json +64 -0
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/next.svg +1 -0
- package/public/screenshots/ytdb-command-palette.png +0 -0
- package/public/screenshots/ytdb-connection.png +0 -0
- package/public/screenshots/ytdb-explorer.png +0 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports=[39038,e=>e.a(async(t,r)=>{try{var a=e.i(81713),n=e.i(18909),i=t([a]);[a]=i.then?(await i)():i;let o=(0,n.jsonHandler)(async e=>{let t=(0,n.requireString)(e.connectionUrl,"connectionUrl");if(!e.deletion)throw Error("Missing deletion");return(0,a.deleteRows)(t,e.deletion)});e.s(["POST",0,o]),r()}catch(e){r(e)}},!1),64733,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),i=e.i(61916),o=e.i(74677),s=e.i(69741),l=e.i(16795),d=e.i(87718),u=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),m=e.i(26937),R=e.i(10372),E=e.i(93695);e.i(52474);var y=e.i(220);let w=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/delete-rows/route",pathname:"/api/delete-rows",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/delete-rows/route.ts",nextConfigOutput:"",userland:()=>e.r(39038),...{}}),{workAsyncStorage:f,workUnitAsyncStorage:g,serverHooks:v}=w;async function A(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),w.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let f="/api/delete-rows/route";f=f.replace(/\/index$/,"")||"/";let g=await w.prepare(e,t,{srcPage:f,multiZoneDraftMode:!1});if(!g)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:v,deploymentId:A,params:C,nextConfig:b,parsedUrl:T,isDraftMode:N,prerenderManifest:x,routerServerContext:O,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,resolvedPathname:_,clientReferenceManifest:k,serverActionsManifest:q}=g,I=(0,s.normalizeAppPath)(f),H=!!(x.dynamicRoutes[I]||x.routes[_]),M=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,T,!1):t.end("This page could not be found"),null);if(H&&!N){let e=!!x.routes[_],t=x.dynamicRoutes[I];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await M();throw new E.NoFallbackError}}let D=null;!H||w.isDev||N||(D="/index"===(D=_)?"/":D);let $=!0===w.isDev||!H,U=H&&!$;q&&k&&(0,o.setManifestsSingleton)({page:f,clientReferenceManifest:k,serverActionsManifest:q});let j=e.method||"GET",L=(0,i.getTracer)(),F=L.getActiveScopeSpan(),K=!!(null==O?void 0:O.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await w.getIncrementalCache(e,b,x,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let W={params:C,previewProps:x.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts,useCacheTimeout:b.experimental.useCacheTimeout},cacheComponents:!!b.cacheComponents,validationLevel:b.experimental.instantInsights.validationLevel,supportsDynamicResponse:$,incrementalCache:G,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:b.cacheLife,staticPageGenerationTimeout:b.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>w.onRequestError(e,t,a,n,O)},sharedContext:{buildId:v,deploymentId:A}},V=new l.NodeNextRequest(e),X=new l.NodeNextResponse(t),J=d.NextRequestAdapter.fromNodeNextRequest(V,(0,d.signalFromNodeResponse)(t)),Y=async({previousCacheEntry:r})=>{try{if(!B&&S&&P&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await w.handle(J,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let i=W.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let o=W.renderOpts.collectedTags;if(!H)return await (0,c.sendResponse)(V,X,n,i),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[R.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=R.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,a=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=R.INFINITE_CACHE?!1!==r&&r>0?b.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:y.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await w.onRequestError(e,t,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:S})},!1,O),t}},z=async(n,o)=>{try{var s,l;let n=await w.handleResponse({req:e,nextConfig:b,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:x,isRoutePPREnabled:!1,isOnDemandRevalidate:S,revalidateOnlyGenerated:P,responseGenerator:Y,waitUntil:a.waitUntil,isMinimalMode:B});if(!H)return;if((null==n||null==(s=n.value)?void 0:s.kind)!==y.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",S?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let i=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);B&&H||i.delete(R.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||i.get("Cache-Control")||i.set("Cache-Control",(0,m.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(V,X,new Response(n.value.body,{headers:i,status:n.value.status||200}));return}catch(t){if(t instanceof E.NoFallbackError||await w.onRequestError(e,t,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:U,isOnDemandRevalidate:S})},!1,O),H)throw t;await (0,c.sendResponse)(V,X,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:i.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=L.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==u.BaseServerSpan.handleRequest)return 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")||I,s=`${j} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":s}),n.updateName(s),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(s))})()}};if(K&&F)await z(F,void 0);else{let t=L.getActiveScopeSpan();await L.withPropagatedContext(e.headers,()=>L.trace(u.BaseServerSpan.handleRequest,{spanName:`${j} ${f}`,kind:i.SpanKind.SERVER,attributes:{"http.method":j,"http.target":e.url}},e=>z(e,t)),void 0,!K)}}e.s(["handler",0,A,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:f,workUnitAsyncStorage:g})},"routeModule",0,w,"serverHooks",0,v,"workAsyncStorage",0,f,"workUnitAsyncStorage",0,g])},81713,e=>e.a(async(t,r)=>{try{var a=e.i(26811),n=e.i(77578),i=t([a]);[a]=i.then?(await i)():i;let s=`
|
|
2
|
+
SELECT c.relkind AS relkind,
|
|
3
|
+
a.attname AS name,
|
|
4
|
+
COALESCE(
|
|
5
|
+
(SELECT TRUE FROM pg_index i
|
|
6
|
+
WHERE i.indrelid = c.oid AND i.indisprimary AND a.attnum = ANY(i.indkey)
|
|
7
|
+
LIMIT 1),
|
|
8
|
+
FALSE
|
|
9
|
+
) AS is_pk
|
|
10
|
+
FROM pg_attribute a
|
|
11
|
+
JOIN pg_class c ON c.oid = a.attrelid
|
|
12
|
+
JOIN pg_namespace n ON n.oid = c.relnamespace
|
|
13
|
+
WHERE n.nspname = $1
|
|
14
|
+
AND c.relname = $2
|
|
15
|
+
AND a.attnum > 0
|
|
16
|
+
AND NOT a.attisdropped
|
|
17
|
+
ORDER BY a.attnum
|
|
18
|
+
`;async function o(e,t){if(!t?.table||"string"!=typeof t.table.schema||"string"!=typeof t.table.name)throw Error("Missing table");if(!Array.isArray(t.primaryKeys)||0===t.primaryKeys.length)throw Error("No rows to delete");if(t.primaryKeys.length>500)throw Error("Cannot delete more than 500 rows at once");let r=(0,a.getPool)(e),i=(await r.query(s,[t.table.schema,t.table.name])).rows;if(0===i.length)throw Error(`Table ${t.table.schema}.${t.table.name} not found`);if(!i.every(e=>"r"===e.relkind||"p"===e.relkind))throw Error("Views and foreign tables are read-only");let o=i.filter(e=>e.is_pk);if(0===o.length)throw Error("Deleting requires a primary key");let l=[],d=t.primaryKeys.map((e,t)=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error(`Invalid primary key for row ${t+1}`);if(Object.keys(e).length!==o.length||o.some(t=>!Object.prototype.hasOwnProperty.call(e,t.name)))throw Error("The row primary key is incomplete");let r=o.map(t=>{let r=e[t.name];if(null!==r&&"string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r)throw Error(`Invalid primary key value for ${t.name}`);return l.push(r),`$${l.length}`});return`(${r.join(", ")})`}),u=o.map(e=>(0,n.quoteIdent)(e.name)).join(", ");return{deleted:(await r.query(`DELETE FROM ${(0,n.quoteTable)(t.table)}
|
|
19
|
+
WHERE (${u}) IN (${d.join(", ")})`,l)).rowCount??0}}e.s(["deleteRows",0,o]),r()}catch(e){r(e)}},!1)];
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=_0sg4w8e._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/app/api/delete-rows/route.ts","../../../node_modules/next/src/build/templates/app-route.ts","../../../src/lib/db/delete-rows.ts"],"sourcesContent":["import { deleteRows } from \"@/lib/db/delete-rows\";\nimport type { RowDelete } from \"@/lib/types\";\nimport { jsonHandler, requireString } from \"../_lib\";\n\ntype Body = { connectionUrl?: string; deletion?: RowDelete };\n\nexport const POST = jsonHandler<Body>(async (body) => {\n const url = requireString(body.connectionUrl, \"connectionUrl\");\n if (!body.deletion) throw new Error(\"Missing deletion\");\n return deleteRows(url, body.deletion);\n});\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil?: (prom: Promise<void>) => void\n requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n deploymentId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n deploymentId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await routeModule.handle(nextReq, context)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\n : undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\n }\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","import \"server-only\";\nimport { getPool } from \"./pool\";\nimport { quoteIdent, quoteTable } from \"./sql\";\nimport type { Cell, RowDelete, RowDeleteResult } from \"../types\";\n\nconst MAX_DELETE_ROWS = 500;\n\nconst COLUMN_METADATA_SQL = `\n SELECT c.relkind AS relkind,\n a.attname AS name,\n COALESCE(\n (SELECT TRUE FROM pg_index i\n WHERE i.indrelid = c.oid AND i.indisprimary AND a.attnum = ANY(i.indkey)\n LIMIT 1),\n FALSE\n ) AS is_pk\n FROM pg_attribute a\n JOIN pg_class c ON c.oid = a.attrelid\n JOIN pg_namespace n ON n.oid = c.relnamespace\n WHERE n.nspname = $1\n AND c.relname = $2\n AND a.attnum > 0\n AND NOT a.attisdropped\n ORDER BY a.attnum\n`;\n\ntype ColumnMetadata = {\n relkind: string;\n name: string;\n is_pk: boolean;\n};\n\nfunction isCell(value: unknown): value is Cell {\n return (\n value === null ||\n typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\"\n );\n}\n\nexport async function deleteRows(\n connectionString: string,\n input: RowDelete,\n): Promise<RowDeleteResult> {\n if (!input?.table || typeof input.table.schema !== \"string\" || typeof input.table.name !== \"string\") {\n throw new Error(\"Missing table\");\n }\n if (!Array.isArray(input.primaryKeys) || input.primaryKeys.length === 0) {\n throw new Error(\"No rows to delete\");\n }\n if (input.primaryKeys.length > MAX_DELETE_ROWS) {\n throw new Error(`Cannot delete more than ${MAX_DELETE_ROWS} rows at once`);\n }\n\n const pool = getPool(connectionString);\n const metadataResult = await pool.query<ColumnMetadata>(COLUMN_METADATA_SQL, [\n input.table.schema,\n input.table.name,\n ]);\n const metadata = metadataResult.rows;\n if (metadata.length === 0) {\n throw new Error(`Table ${input.table.schema}.${input.table.name} not found`);\n }\n if (!metadata.every((column) => column.relkind === \"r\" || column.relkind === \"p\")) {\n throw new Error(\"Views and foreign tables are read-only\");\n }\n\n const primaryKeys = metadata.filter((column) => column.is_pk);\n if (primaryKeys.length === 0) throw new Error(\"Deleting requires a primary key\");\n\n const values: Cell[] = [];\n const tuples = input.primaryKeys.map((primaryKey, rowIndex) => {\n if (!primaryKey || typeof primaryKey !== \"object\" || Array.isArray(primaryKey)) {\n throw new Error(`Invalid primary key for row ${rowIndex + 1}`);\n }\n const providedKeys = Object.keys(primaryKey);\n if (\n providedKeys.length !== primaryKeys.length ||\n primaryKeys.some((column) => !Object.prototype.hasOwnProperty.call(primaryKey, column.name))\n ) {\n throw new Error(\"The row primary key is incomplete\");\n }\n const placeholders = primaryKeys.map((column) => {\n const value = primaryKey[column.name];\n if (!isCell(value)) throw new Error(`Invalid primary key value for ${column.name}`);\n values.push(value);\n return `$${values.length}`;\n });\n return `(${placeholders.join(\", \")})`;\n });\n\n const pkList = primaryKeys.map((column) => quoteIdent(column.name)).join(\", \");\n const result = await pool.query(\n `DELETE FROM ${quoteTable(input.table)}\n WHERE (${pkList}) IN (${tuples.join(\", \")})`,\n values,\n );\n\n return { deleted: result.rowCount ?? 0 };\n}\n"],"names":["POST","body","url","connectionUrl","deletion","Error","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","status","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","isMiss","delete","getHeader","get","set","Response","setAttributes","setStatus","code","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","span","MAX_DELETE_ROWS","COLUMN_METADATA_SQL","isCell","deleteRows","connectionString","input","table","schema","Array","isArray","primaryKeys","length","pool","metadataResult","query","metadata","rows","every","column","relkind","filter","is_pk","values","tuples","map","primaryKey","rowIndex","providedKeys","Object","keys","some","prototype","hasOwnProperty","call","placeholders","push","join","pkList","result","deleted","rowCount"],"mappings":"8CAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,yCAIO,IAAMA,EAAO,CAAA,EAAA,EAAA,WAAA,AAAW,EAAO,MAAOC,IAC3C,IAAMC,EAAM,CAAA,EAAA,EAAA,aAAA,AAAa,EAACD,EAAKE,aAAa,CAAE,iBAC9C,GAAI,CAACF,EAAKG,QAAQ,CAAE,MAAM,AAAIC,MAAM,oBACpC,MAAO,CAAA,EAAA,EAAA,UAAA,AAAU,EAACH,EAAKD,EAAKG,QAAQ,CACtC,oECVA,IAAA,EAIO,EAAA,CAAA,AAHLE,CAGK,OACP,EAA0B,EAAyB,CAA1CC,AAA0C,CAAA,GAAA,EAJ9B,EAKrB,CADkB,CAD2C,AAEnB,EAAA,CAAjCC,AAAiC,CAAA,AAFnC,GACmB,CAC8C,GAExE,EAGEI,EAEK,CAJLF,AAIK,CAAA,AAPgBD,MAKP,CAGhB,EAIgB,EACT,AAb2B,CAa3B,AAJLI,CAIK,AAVS,CAIT,CAHLF,CASK,GAbmC,CAc1C,CALW,CAK2B,AAPJ,CAIhCG,CAGoC,CAA7BE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,GAElBd,MAAM,GAAKD,EAAYC,MAAM,EAC1CD,EAAYoB,IAAI,CAAC,AAACZ,GAAW,CAACU,OAAOG,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,EAAYP,EAAO1B,IAAI,GAE1F,CADA,KACM,AAAI/L,MAAM,qCAElB,IAAMyO,EAAexB,EAAYc,GAAG,CAAC,AAACN,IACpC,IAAM9D,EAAQqE,CAAU,CAACP,EAAO1B,IAAI,CAAC,CACrC,GAnDQ,AAAVpC,CAmDM,CAAC8C,KAAO9C,GAlDG,UAAjB,OAAOA,GACU,UAAjB,OAAOA,GACU,WAAjB,OAAOA,EAgDe,MAAM,AAAI3J,MAAM,CAAC,8BAA8B,EAAEyN,EAAO1B,IAAI,CAAA,CAAE,EAElF,OADA8B,EAAOa,IAAI,CAAC/E,GACL,CAAC,CAAC,EAAEkE,EAAOX,MAAM,CAAA,CAAE,AAC5B,GACA,MAAO,CAAC,CAAC,EAAEuB,EAAaE,IAAI,CAAC,MAAM,CAAC,CAAC,AACvC,GAEMC,EAAS3B,EAAYc,GAAG,CAAC,AAACN,GAAW,CAAA,EAAA,EAAA,UAAA,AAAU,EAACA,EAAO1B,IAAI,GAAG4C,IAAI,CAAC,MAOzE,MAAO,CAAEG,QAASD,CANH,MAAM1B,EAAKE,KAAK,CAC7B,CAAC,YAAY,EAAE,CAAA,EAAA,EAAA,UAAA,AAAU,EAACT,EAAMC,KAAK,EAAE;YAC/B,EAAE+B,EAAO,MAAM,EAAEd,EAAOa,IAAI,CAAC,MAAM,CAAC,CAAC,CAC7Cd,EAAAA,EAGuBkB,QAAQ,EAAI,CAAE,CACzC","ignoreList":[1]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module.exports=[64066,e=>e.a(async(t,r)=>{try{var a=e.i(14629),n=e.i(18909),i=t([a]);[a]=i.then?(await i)():i;let o=(0,n.jsonHandler)(async e=>{let t=(0,n.requireString)(e.connectionUrl,"connectionUrl");if(!e.update)throw Error("Missing update");return(0,a.updateCell)(t,e.update)});e.s(["POST",0,o]),r()}catch(e){r(e)}},!1),50075,e=>{"use strict";var t=e.i(47909),r=e.i(74017),a=e.i(96250),n=e.i(59756),i=e.i(61916),o=e.i(74677),s=e.i(69741),l=e.i(16795),u=e.i(87718),d=e.i(95169),p=e.i(47587),c=e.i(66012),h=e.i(70101),m=e.i(26937),y=e.i(10372),E=e.i(93695);e.i(52474);var R=e.i(220);let f=new t.AppRouteRouteModule({definition:{kind:r.RouteKind.APP_ROUTE,page:"/api/cell/route",pathname:"/api/cell",filename:"route",bundlePath:""},distDir:".next",relativeProjectDir:"",resolvedPagePath:"[project]/src/app/api/cell/route.ts",nextConfigOutput:"",userland:()=>e.r(64066),...{}}),{workAsyncStorage:g,workUnitAsyncStorage:w,serverHooks:v}=f;async function C(e,t,a){a.requestMeta&&(0,n.setRequestMeta)(e,a.requestMeta),f.isDev&&(0,n.addRequestMeta)(e,"devRequestTimingInternalsEnd",process.hrtime.bigint());let g="/api/cell/route";g=g.replace(/\/index$/,"")||"/";let w=await f.prepare(e,t,{srcPage:g,multiZoneDraftMode:!1});if(!w)return t.statusCode=400,t.end("Bad Request"),null==a.waitUntil||a.waitUntil.call(a,Promise.resolve()),null;let{buildId:v,deploymentId:C,params:A,nextConfig:b,parsedUrl:T,isDraftMode:N,prerenderManifest:S,routerServerContext:O,isOnDemandRevalidate:_,revalidateOnlyGenerated:x,resolvedPathname:I,clientReferenceManifest:P,serverActionsManifest:q}=w,k=(0,s.normalizeAppPath)(g),M=!!(S.dynamicRoutes[k]||S.routes[I]),H=async()=>((null==O?void 0:O.render404)?await O.render404(e,t,T,!1):t.end("This page could not be found"),null);if(M&&!N){let e=!!S.routes[I],t=S.dynamicRoutes[k];if(t&&!1===t.fallback&&!e){if(b.adapterPath)return await H();throw new E.NoFallbackError}}let D=null;!M||f.isDev||N||(D="/index"===(D=I)?"/":D);let U=!0===f.isDev||!M,$=M&&!U;q&&P&&(0,o.setManifestsSingleton)({page:g,clientReferenceManifest:P,serverActionsManifest:q});let L=e.method||"GET",F=(0,i.getTracer)(),K=F.getActiveScopeSpan(),j=!!(null==O?void 0:O.isWrappedByNextServer),B=!!(0,n.getRequestMeta)(e,"minimalMode"),G=(0,n.getRequestMeta)(e,"incrementalCache")||await f.getIncrementalCache(e,b,S,B);null==G||G.resetRequestCache(),globalThis.__incrementalCache=G;let W={params:A,previewProps:S.preview,renderOpts:{experimental:{authInterrupts:!!b.experimental.authInterrupts,useCacheTimeout:b.experimental.useCacheTimeout},cacheComponents:!!b.cacheComponents,validationLevel:b.experimental.instantInsights.validationLevel,supportsDynamicResponse:U,incrementalCache:G,hmrRefreshHash:(0,n.getRequestMeta)(e,"hmrRefreshHash"),cacheLifeProfiles:b.cacheLife,staticPageGenerationTimeout:b.staticPageGenerationTimeout,waitUntil:a.waitUntil,onClose:e=>{t.on("close",e)},onAfterTaskError:void 0,onInstrumentationRequestError:(t,r,a,n)=>f.onRequestError(e,t,a,n,O)},sharedContext:{buildId:v,deploymentId:C}},J=new l.NodeNextRequest(e),V=new l.NodeNextResponse(t),z=u.NextRequestAdapter.fromNodeNextRequest(J,(0,u.signalFromNodeResponse)(t)),X=async({previousCacheEntry:r})=>{try{if(!B&&_&&x&&!r)return t.statusCode=404,t.setHeader("x-nextjs-cache","REVALIDATED"),t.end("This page could not be found"),null;let n=await f.handle(z,W);e.fetchMetrics=W.renderOpts.fetchMetrics;let i=W.renderOpts.pendingWaitUntil;i&&a.waitUntil&&(a.waitUntil(i),i=void 0);let o=W.renderOpts.collectedTags;if(!M)return await (0,c.sendResponse)(J,V,n,i),null;{let e=await n.blob(),t=(0,h.toNodeOutgoingHttpHeaders)(n.headers);o&&(t[y.NEXT_CACHE_TAGS_HEADER]=o),!t["content-type"]&&e.type&&(t["content-type"]=e.type);let r=void 0!==W.renderOpts.collectedRevalidate&&!(W.renderOpts.collectedRevalidate>=y.INFINITE_CACHE)&&W.renderOpts.collectedRevalidate,a=void 0===W.renderOpts.collectedExpire||W.renderOpts.collectedExpire>=y.INFINITE_CACHE?!1!==r&&r>0?b.expireTime:void 0:W.renderOpts.collectedExpire;return{value:{kind:R.CachedRouteKind.APP_ROUTE,status:n.status,body:Buffer.from(await e.arrayBuffer()),headers:t},cacheControl:{revalidate:r,expire:a}}}}catch(t){throw(null==r?void 0:r.isStale)&&await f.onRequestError(e,t,{routerKind:"App Router",routePath:g,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:_})},!1,O),t}},Y=async(n,o)=>{try{var s,l;let n=await f.handleResponse({req:e,nextConfig:b,cacheKey:D,routeKind:r.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:S,isRoutePPREnabled:!1,isOnDemandRevalidate:_,revalidateOnlyGenerated:x,responseGenerator:X,waitUntil:a.waitUntil,isMinimalMode:B});if(!M)return;if((null==n||null==(s=n.value)?void 0:s.kind)!==R.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==n||null==(l=n.value)?void 0:l.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});B||t.setHeader("x-nextjs-cache",_?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),N&&t.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let i=(0,h.fromNodeOutgoingHttpHeaders)(n.value.headers);B&&M||i.delete(y.NEXT_CACHE_TAGS_HEADER),!n.cacheControl||t.getHeader("Cache-Control")||i.get("Cache-Control")||i.set("Cache-Control",(0,m.getCacheControlHeader)(n.cacheControl)),await (0,c.sendResponse)(J,V,new Response(n.value.body,{headers:i,status:n.value.status||200}));return}catch(t){if(t instanceof E.NoFallbackError||await f.onRequestError(e,t,{routerKind:"App Router",routePath:k,routeType:"route",revalidateReason:(0,p.getRevalidateReason)({isStaticGeneration:$,isOnDemandRevalidate:_})},!1,O),M)throw t;await (0,c.sendResponse)(J,V,new Response(null,{status:500}));return}finally{(()=>{if(!n)return;let e=t.statusCode;n.setAttributes({"http.status_code":e,"next.rsc":!1}),e&&e>=500&&(n.setStatus({code:i.SpanStatusCode.ERROR}),n.setAttribute("error.type",e.toString()));let r=F.getRootSpanAttributes();if(!r)return;if(r.get("next.span_type")!==d.BaseServerSpan.handleRequest)return 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")||k,s=`${L} ${a}`;n.setAttributes({"next.route":a,"http.route":a,"next.span_name":s}),n.updateName(s),o&&o!==n&&(o.setAttribute("http.route",a),o.updateName(s))})()}};if(j&&K)await Y(K,void 0);else{let t=F.getActiveScopeSpan();await F.withPropagatedContext(e.headers,()=>F.trace(d.BaseServerSpan.handleRequest,{spanName:`${L} ${g}`,kind:i.SpanKind.SERVER,attributes:{"http.method":L,"http.target":e.url}},e=>Y(e,t)),void 0,!j)}}e.s(["handler",0,C,"patchFetch",0,function(){return(0,a.patchFetch)({workAsyncStorage:g,workUnitAsyncStorage:w})},"routeModule",0,f,"serverHooks",0,v,"workAsyncStorage",0,g,"workUnitAsyncStorage",0,w])},14629,e=>e.a(async(t,r)=>{try{var a=e.i(26811),n=e.i(77578),i=e.i(15021),o=t([a,i]);[a,i]=o.then?(await o)():o;let u=`
|
|
2
|
+
SELECT c.relkind AS relkind,
|
|
3
|
+
a.attname AS name,
|
|
4
|
+
COALESCE(base_type.typname, t.typname) AS data_type,
|
|
5
|
+
a.attgenerated <> '' AS is_generated,
|
|
6
|
+
a.attidentity <> '' AS is_identity,
|
|
7
|
+
COALESCE(
|
|
8
|
+
(SELECT TRUE FROM pg_index i
|
|
9
|
+
WHERE i.indrelid = c.oid AND i.indisprimary AND a.attnum = ANY(i.indkey)
|
|
10
|
+
LIMIT 1),
|
|
11
|
+
FALSE
|
|
12
|
+
) AS is_pk
|
|
13
|
+
FROM pg_attribute a
|
|
14
|
+
JOIN pg_class c ON c.oid = a.attrelid
|
|
15
|
+
JOIN pg_namespace n ON n.oid = c.relnamespace
|
|
16
|
+
JOIN pg_type t ON t.oid = a.atttypid
|
|
17
|
+
LEFT JOIN pg_type base_type ON base_type.oid = NULLIF(t.typbasetype, 0)
|
|
18
|
+
WHERE n.nspname = $1
|
|
19
|
+
AND c.relname = $2
|
|
20
|
+
AND a.attnum > 0
|
|
21
|
+
AND NOT a.attisdropped
|
|
22
|
+
ORDER BY a.attnum
|
|
23
|
+
`;function s(e){return null===e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}async function l(e,t){if(!t?.table||"string"!=typeof t.table.schema||"string"!=typeof t.table.name)throw Error("Missing table");if("string"!=typeof t.column||!t.column)throw Error("Missing column");if(!t.primaryKey||"object"!=typeof t.primaryKey||Array.isArray(t.primaryKey))throw Error("Missing primary key");if(!s(t.value))throw Error("Unsupported cell value");let r=(0,a.getPool)(e),o=(await r.query(u,[t.table.schema,t.table.name])).rows;if(0===o.length)throw Error(`Table ${t.table.schema}.${t.table.name} not found`);if(!o.every(e=>"r"===e.relkind||"p"===e.relkind))throw Error("Views and foreign tables are read-only");let l=o.find(e=>e.name===t.column);if(!l)throw Error(`Column ${t.column} not found`);if(l.is_generated)throw Error("Generated columns are read-only");if(l.is_identity)throw Error("Identity columns are read-only");let d=o.filter(e=>e.is_pk);if(0===d.length)throw Error("Editing requires a primary key");if(Object.keys(t.primaryKey).length!==d.length||d.some(e=>!Object.prototype.hasOwnProperty.call(t.primaryKey,e.name)))throw Error("The row primary key is incomplete");let p=[t.value],c=d.map((e,r)=>{let a=t.primaryKey[e.name];if(!s(a))throw Error(`Invalid primary key value for ${e.name}`);return p.push(a),`${(0,n.quoteIdent)(e.name)} IS NOT DISTINCT FROM $${r+2}`}),h=o.map(e=>(0,i.serializeColumnExpression)(e.name,e.data_type)).join(", "),m=await r.query({text:`UPDATE ${(0,n.quoteTable)(t.table)}
|
|
24
|
+
SET ${(0,n.quoteIdent)(l.name)} = $1
|
|
25
|
+
WHERE ${c.join(" AND ")}
|
|
26
|
+
RETURNING ${h}`,values:p,rowMode:"array"});if(1!==m.rowCount)throw Error("The row no longer exists or could not be updated");return{row:m.rows[0].map(i.serializeCell)}}e.s(["updateCell",0,l]),r()}catch(e){r(e)}},!1)];
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=_1349_rj._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/app/api/cell/route.ts","../../../node_modules/next/src/build/templates/app-route.ts","../../../src/lib/db/update-cell.ts"],"sourcesContent":["import { updateCell } from \"@/lib/db/update-cell\";\nimport type { CellUpdate } from \"@/lib/types\";\nimport { jsonHandler, requireString } from \"../_lib\";\n\ntype Body = { connectionUrl?: string; update?: CellUpdate };\n\nexport const POST = jsonHandler<Body>(async (body) => {\n const url = requireString(body.connectionUrl, \"connectionUrl\");\n if (!body.update) throw new Error(\"Missing update\");\n return updateCell(url, body.update);\n});\n","import {\n AppRouteRouteModule,\n type AppRouteRouteHandlerContext,\n type AppRouteRouteModuleOptions,\n} from '../../server/route-modules/app-route/module.compiled'\nimport { RouteKind } from '../../server/route-kind'\nimport { patchFetch as _patchFetch } from '../../server/lib/patch-fetch'\nimport type { IncomingMessage, ServerResponse } from 'node:http'\nimport {\n addRequestMeta,\n getRequestMeta,\n setRequestMeta,\n type RequestMeta,\n} from '../../server/request-meta'\nimport {\n getTracer,\n type Span,\n SpanKind,\n SpanStatusCode,\n} from '../../server/lib/trace/tracer'\nimport { setManifestsSingleton } from '../../server/app-render/manifests-singleton'\nimport { normalizeAppPath } from '../../shared/lib/router/utils/app-paths'\nimport { NodeNextRequest, NodeNextResponse } from '../../server/base-http/node'\nimport {\n NextRequestAdapter,\n signalFromNodeResponse,\n} from '../../server/web/spec-extension/adapters/next-request'\nimport { BaseServerSpan } from '../../server/lib/trace/constants'\nimport { getRevalidateReason } from '../../server/instrumentation/utils'\nimport { sendResponse } from '../../server/send-response'\nimport {\n fromNodeOutgoingHttpHeaders,\n toNodeOutgoingHttpHeaders,\n} from '../../server/web/utils'\nimport { getCacheControlHeader } from '../../server/lib/cache-control'\nimport { INFINITE_CACHE, NEXT_CACHE_TAGS_HEADER } from '../../lib/constants'\nimport { NoFallbackError } from '../../shared/lib/no-fallback-error.external'\nimport {\n CachedRouteKind,\n type ResponseCacheEntry,\n type ResponseGenerator,\n} from '../../server/response-cache'\n\n// These are injected by the loader afterwards. This is injected as a variable\n// instead of a replacement because this could also be `undefined` instead of\n// an empty string.\ndeclare const nextConfigOutput: AppRouteRouteModuleOptions['nextConfigOutput']\n\n// We inject the nextConfigOutput here so that we can use them in the route\n// module.\n// INJECT:nextConfigOutput\n\nconst routeModule = new AppRouteRouteModule({\n definition: {\n kind: RouteKind.APP_ROUTE,\n page: 'VAR_DEFINITION_PAGE',\n pathname: 'VAR_DEFINITION_PATHNAME',\n filename: 'VAR_DEFINITION_FILENAME',\n bundlePath: 'VAR_DEFINITION_BUNDLE_PATH',\n },\n distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '',\n relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '',\n resolvedPagePath: 'VAR_RESOLVED_PAGE_PATH',\n nextConfigOutput,\n // The lazy require factory ensures that:\n // - In dev: devRequestTimingInternalsEnd is set before userland executes,\n // correctly attributing module load time to application-code rather than\n // framework internals.\n // - In all modes: async modules (route files with top-level await) are\n // handled correctly — require() returns a Promise for such modules, which\n // ensureUserland() awaits before the first request is handled.\n userland: () => require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n // In Turbopack dev mode, also provide a synchronous per-request getter so\n // server HMR updates are picked up without re-executing the entry chunk.\n // Using require() (synchronous) avoids adding async overhead that would be\n // incorrectly attributed to application-code time in devRequestTiming.\n ...(process.env.TURBOPACK && process.env.__NEXT_DEV_SERVER\n ? {\n getUserland: () =>\n require('VAR_USERLAND') as typeof import('VAR_USERLAND'),\n }\n : {}),\n})\n\n// Pull out the exports that we need to expose from the module. This should\n// be eliminated when we've moved the other routes to the new format. These\n// are used to hook into the route.\nconst { workAsyncStorage, workUnitAsyncStorage, serverHooks } = routeModule\n\nfunction patchFetch() {\n return _patchFetch({\n workAsyncStorage,\n workUnitAsyncStorage,\n })\n}\n\nexport {\n routeModule,\n workAsyncStorage,\n workUnitAsyncStorage,\n serverHooks,\n patchFetch,\n}\n\nexport async function handler(\n req: IncomingMessage,\n res: ServerResponse,\n ctx: {\n waitUntil?: (prom: Promise<void>) => void\n requestMeta?: RequestMeta\n }\n) {\n if (ctx.requestMeta) {\n setRequestMeta(req, ctx.requestMeta)\n }\n if (routeModule.isDev) {\n addRequestMeta(req, 'devRequestTimingInternalsEnd', process.hrtime.bigint())\n }\n let srcPage = 'VAR_DEFINITION_PAGE'\n\n // turbopack doesn't normalize `/index` in the page name\n // so we need to to process dynamic routes properly\n // TODO: fix turbopack providing differing value from webpack\n if (process.env.TURBOPACK) {\n srcPage = srcPage.replace(/\\/index$/, '') || '/'\n } else if (srcPage === '/index') {\n // we always normalize /index specifically\n srcPage = '/'\n }\n const multiZoneDraftMode = process.env\n .__NEXT_MULTI_ZONE_DRAFT_MODE as any as boolean\n\n const prepareResult = await routeModule.prepare(req, res, {\n srcPage,\n multiZoneDraftMode,\n })\n\n if (!prepareResult) {\n res.statusCode = 400\n res.end('Bad Request')\n ctx.waitUntil?.(Promise.resolve())\n return null\n }\n\n const {\n buildId,\n deploymentId,\n params,\n nextConfig,\n parsedUrl,\n isDraftMode,\n prerenderManifest,\n routerServerContext,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n resolvedPathname,\n clientReferenceManifest,\n serverActionsManifest,\n } = prepareResult\n\n const normalizedSrcPage = normalizeAppPath(srcPage)\n\n let isIsr = Boolean(\n prerenderManifest.dynamicRoutes[normalizedSrcPage] ||\n prerenderManifest.routes[resolvedPathname]\n )\n\n const render404 = async () => {\n // TODO: should route-module itself handle rendering the 404\n if (routerServerContext?.render404) {\n await routerServerContext.render404(req, res, parsedUrl, false)\n } else {\n res.end('This page could not be found')\n }\n return null\n }\n\n if (isIsr && !isDraftMode) {\n const isPrerendered = Boolean(prerenderManifest.routes[resolvedPathname])\n const prerenderInfo = prerenderManifest.dynamicRoutes[normalizedSrcPage]\n\n if (prerenderInfo) {\n if (prerenderInfo.fallback === false && !isPrerendered) {\n if (nextConfig.adapterPath) {\n return await render404()\n }\n throw new NoFallbackError()\n }\n }\n }\n\n let cacheKey: string | null = null\n\n if (isIsr && !routeModule.isDev && !isDraftMode) {\n cacheKey = resolvedPathname\n // ensure /index and / is normalized to one key\n cacheKey = cacheKey === '/index' ? '/' : cacheKey\n }\n\n const supportsDynamicResponse: boolean =\n // If we're in development, we always support dynamic HTML\n routeModule.isDev === true ||\n // If this is not SSG or does not have static paths, then it supports\n // dynamic HTML.\n !isIsr\n\n // This is a revalidation request if the request is for a static\n // page and it is not being resumed from a postponed render and\n // it is not a dynamic RSC request then it is a revalidation\n // request.\n const isStaticGeneration = isIsr && !supportsDynamicResponse\n\n // Before rendering (which initializes component tree modules), we have to\n // set the reference manifests to our global store so Server Action's\n // encryption util can access to them at the top level of the page module.\n if (serverActionsManifest && clientReferenceManifest) {\n setManifestsSingleton({\n page: srcPage,\n clientReferenceManifest,\n serverActionsManifest,\n })\n }\n\n const method = req.method || 'GET'\n const tracer = getTracer()\n const activeSpan = tracer.getActiveScopeSpan()\n const isWrappedByNextServer = Boolean(\n routerServerContext?.isWrappedByNextServer\n )\n const isMinimalMode = Boolean(getRequestMeta(req, 'minimalMode'))\n\n const incrementalCache =\n getRequestMeta(req, 'incrementalCache') ||\n (await routeModule.getIncrementalCache(\n req,\n nextConfig,\n prerenderManifest,\n isMinimalMode\n ))\n\n incrementalCache?.resetRequestCache()\n ;(globalThis as any).__incrementalCache = incrementalCache\n\n const context: AppRouteRouteHandlerContext = {\n params,\n previewProps: prerenderManifest.preview,\n renderOpts: {\n experimental: {\n authInterrupts: Boolean(nextConfig.experimental.authInterrupts),\n useCacheTimeout: nextConfig.experimental.useCacheTimeout,\n },\n cacheComponents: Boolean(nextConfig.cacheComponents),\n validationLevel: nextConfig.experimental.instantInsights.validationLevel,\n supportsDynamicResponse,\n incrementalCache,\n hmrRefreshHash: getRequestMeta(req, 'hmrRefreshHash'),\n cacheLifeProfiles: nextConfig.cacheLife,\n staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,\n waitUntil: ctx.waitUntil,\n onClose: (cb) => {\n res.on('close', cb)\n },\n onAfterTaskError: undefined,\n onInstrumentationRequestError: (\n error,\n _request,\n errorContext,\n silenceLog\n ) =>\n routeModule.onRequestError(\n req,\n error,\n errorContext,\n silenceLog,\n routerServerContext\n ),\n },\n sharedContext: {\n buildId,\n deploymentId,\n },\n }\n const nodeNextReq = new NodeNextRequest(req)\n const nodeNextRes = new NodeNextResponse(res)\n\n const nextReq = NextRequestAdapter.fromNodeNextRequest(\n nodeNextReq,\n signalFromNodeResponse(res)\n )\n\n const responseGenerator: ResponseGenerator = async ({\n previousCacheEntry,\n }) => {\n try {\n if (\n !isMinimalMode &&\n isOnDemandRevalidate &&\n revalidateOnlyGenerated &&\n !previousCacheEntry\n ) {\n res.statusCode = 404\n // on-demand revalidate always sets this header\n res.setHeader('x-nextjs-cache', 'REVALIDATED')\n res.end('This page could not be found')\n return null\n }\n\n const response = await routeModule.handle(nextReq, context)\n\n ;(req as any).fetchMetrics = (context.renderOpts as any).fetchMetrics\n let pendingWaitUntil = context.renderOpts.pendingWaitUntil\n\n // Attempt using provided waitUntil if available\n // if it's not we fallback to sendResponse's handling\n if (pendingWaitUntil) {\n if (ctx.waitUntil) {\n ctx.waitUntil(pendingWaitUntil)\n pendingWaitUntil = undefined\n }\n }\n const cacheTags = context.renderOpts.collectedTags\n\n // If the request is for a static response, we can cache it so long\n // as it's not edge.\n if (isIsr) {\n const blob = await response.blob()\n\n // Copy the headers from the response.\n const headers = toNodeOutgoingHttpHeaders(response.headers)\n\n if (cacheTags) {\n headers[NEXT_CACHE_TAGS_HEADER] = cacheTags\n }\n\n if (!headers['content-type'] && blob.type) {\n headers['content-type'] = blob.type\n }\n\n const revalidate =\n typeof context.renderOpts.collectedRevalidate === 'undefined' ||\n context.renderOpts.collectedRevalidate >= INFINITE_CACHE\n ? false\n : context.renderOpts.collectedRevalidate\n\n const expire =\n typeof context.renderOpts.collectedExpire === 'undefined' ||\n context.renderOpts.collectedExpire >= INFINITE_CACHE\n ? // Fall back to the global `expireTime` config when the\n // route has a numeric `revalidate` but didn't declare an\n // explicit `expire` (e.g. via `cacheLife`). This mirrors the\n // build-time fallback in `build/index.ts` so cache entries\n // and the response Cache-Control header agree on the route's\n // effective expire. Routes that opt out of revalidation\n // (`revalidate: false`) or that are dynamic (`revalidate: 0`)\n // keep `expire: undefined`.\n revalidate !== false && revalidate > 0\n ? nextConfig.expireTime\n : undefined\n : context.renderOpts.collectedExpire\n\n // Create the cache entry for the response.\n const cacheEntry: ResponseCacheEntry = {\n value: {\n kind: CachedRouteKind.APP_ROUTE,\n status: response.status,\n body: Buffer.from(await blob.arrayBuffer()),\n headers,\n },\n cacheControl: { revalidate, expire },\n }\n\n return cacheEntry\n } else {\n // send response without caching if not ISR\n await sendResponse(nodeNextReq, nodeNextRes, response, pendingWaitUntil)\n return null\n }\n } catch (err) {\n // if this is a background revalidate we need to report\n // the request error here as it won't be bubbled\n if (previousCacheEntry?.isStale) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: srcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n throw err\n }\n }\n\n const handleResponse = async (\n currentSpan: Span | undefined,\n parentSpan: Span | undefined\n ) => {\n try {\n const cacheEntry = await routeModule.handleResponse({\n req,\n nextConfig,\n cacheKey,\n routeKind: RouteKind.APP_ROUTE,\n isFallback: false,\n prerenderManifest,\n isRoutePPREnabled: false,\n isOnDemandRevalidate,\n revalidateOnlyGenerated,\n responseGenerator,\n waitUntil: ctx.waitUntil,\n isMinimalMode,\n })\n\n // we don't create a cacheEntry for ISR\n if (!isIsr) {\n return\n }\n\n if (cacheEntry?.value?.kind !== CachedRouteKind.APP_ROUTE) {\n throw new Error(\n `Invariant: app-route received invalid cache entry ${cacheEntry?.value?.kind}`\n )\n }\n\n if (!isMinimalMode) {\n res.setHeader(\n 'x-nextjs-cache',\n isOnDemandRevalidate\n ? 'REVALIDATED'\n : cacheEntry.isMiss\n ? 'MISS'\n : cacheEntry.isStale\n ? 'STALE'\n : 'HIT'\n )\n }\n\n // Draft mode should never be cached\n if (isDraftMode) {\n res.setHeader(\n 'Cache-Control',\n 'private, no-cache, no-store, max-age=0, must-revalidate'\n )\n }\n\n const headers = fromNodeOutgoingHttpHeaders(cacheEntry.value.headers)\n\n if (!(isMinimalMode && isIsr)) {\n headers.delete(NEXT_CACHE_TAGS_HEADER)\n }\n\n // If cache control is already set on the response we don't\n // override it to allow users to customize it via next.config\n if (\n cacheEntry.cacheControl &&\n !res.getHeader('Cache-Control') &&\n !headers.get('Cache-Control')\n ) {\n headers.set(\n 'Cache-Control',\n getCacheControlHeader(cacheEntry.cacheControl)\n )\n }\n\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n // @ts-expect-error - Argument of type 'Buffer<ArrayBufferLike>' is not assignable to parameter of type 'BodyInit | null | undefined'.\n new Response(cacheEntry.value.body, {\n headers,\n status: cacheEntry.value.status || 200,\n })\n )\n return\n } catch (err) {\n if (!(err instanceof NoFallbackError)) {\n const silenceLog = false\n await routeModule.onRequestError(\n req,\n err,\n {\n routerKind: 'App Router',\n routePath: normalizedSrcPage,\n routeType: 'route',\n revalidateReason: getRevalidateReason({\n isStaticGeneration,\n isOnDemandRevalidate,\n }),\n },\n silenceLog,\n routerServerContext\n )\n }\n\n // rethrow so that we can handle serving error page\n\n // If this is during static generation, throw the error again.\n if (isIsr) throw err\n\n // Otherwise, send a 500 response.\n await sendResponse(\n nodeNextReq,\n nodeNextRes,\n new Response(null, { status: 500 })\n )\n return\n } finally {\n ;(() => {\n if (!currentSpan) {\n return\n }\n\n let statusCode = res.statusCode\n\n currentSpan.setAttributes({\n 'http.status_code': statusCode,\n 'next.rsc': false,\n })\n\n if (statusCode && statusCode >= 500) {\n // For 5xx status codes: SHOULD be set to 'Error' span status.\n // x-ref: https://opentelemetry.io/docs/specs/semconv/http/http-spans/#status\n currentSpan.setStatus({\n code: SpanStatusCode.ERROR,\n })\n // For span status 'Error', SHOULD set 'error.type' attribute.\n currentSpan.setAttribute('error.type', statusCode.toString())\n }\n\n const rootSpanAttributes = tracer.getRootSpanAttributes()\n // We were unable to get attributes, probably OTEL is not enabled\n if (!rootSpanAttributes) {\n return\n }\n\n if (\n rootSpanAttributes.get('next.span_type') !==\n BaseServerSpan.handleRequest\n ) {\n console.warn(\n `Unexpected root span type '${rootSpanAttributes.get(\n 'next.span_type'\n )}'. Please report this Next.js issue https://github.com/vercel/next.js`\n )\n return\n }\n\n const route = rootSpanAttributes.get('next.route') || normalizedSrcPage\n const name = `${method} ${route}`\n\n currentSpan.setAttributes({\n 'next.route': route,\n 'http.route': route,\n 'next.span_name': name,\n })\n currentSpan.updateName(name)\n\n // Propagate http.route to the parent span if one exists (e.g.\n // a platform-created HTTP span in adapter deployments).\n if (parentSpan && parentSpan !== currentSpan) {\n parentSpan.setAttribute('http.route', route)\n parentSpan.updateName(name)\n }\n })()\n }\n }\n\n // TODO: activeSpan code path is for when wrapped by\n // next-server can be removed when this is no longer used\n if (isWrappedByNextServer && activeSpan) {\n await handleResponse(activeSpan, undefined)\n } else {\n let parentSpan = tracer.getActiveScopeSpan()\n await tracer.withPropagatedContext(\n req.headers,\n () =>\n tracer.trace(\n BaseServerSpan.handleRequest,\n {\n spanName: `${method} ${srcPage}`,\n kind: SpanKind.SERVER,\n attributes: {\n 'http.method': method,\n 'http.target': req.url,\n },\n },\n (span) => handleResponse(span, parentSpan)\n ),\n undefined,\n !isWrappedByNextServer\n )\n }\n}\n","import \"server-only\";\nimport { getPool } from \"./pool\";\nimport { quoteIdent, quoteTable } from \"./sql\";\nimport { serializeCell, serializeColumnExpression } from \"./rows\";\nimport type { Cell, CellUpdate, CellUpdateResult } from \"../types\";\n\nconst COLUMN_METADATA_SQL = `\n SELECT c.relkind AS relkind,\n a.attname AS name,\n COALESCE(base_type.typname, t.typname) AS data_type,\n a.attgenerated <> '' AS is_generated,\n a.attidentity <> '' AS is_identity,\n COALESCE(\n (SELECT TRUE FROM pg_index i\n WHERE i.indrelid = c.oid AND i.indisprimary AND a.attnum = ANY(i.indkey)\n LIMIT 1),\n FALSE\n ) AS is_pk\n FROM pg_attribute a\n JOIN pg_class c ON c.oid = a.attrelid\n JOIN pg_namespace n ON n.oid = c.relnamespace\n JOIN pg_type t ON t.oid = a.atttypid\n LEFT JOIN pg_type base_type ON base_type.oid = NULLIF(t.typbasetype, 0)\n WHERE n.nspname = $1\n AND c.relname = $2\n AND a.attnum > 0\n AND NOT a.attisdropped\n ORDER BY a.attnum\n`;\n\ntype ColumnMetadata = {\n relkind: string;\n name: string;\n data_type: string;\n is_generated: boolean;\n is_identity: boolean;\n is_pk: boolean;\n};\n\nfunction isCell(value: unknown): value is Cell {\n return (\n value === null ||\n typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\"\n );\n}\n\nexport async function updateCell(\n connectionString: string,\n input: CellUpdate,\n): Promise<CellUpdateResult> {\n if (!input?.table || typeof input.table.schema !== \"string\" || typeof input.table.name !== \"string\") {\n throw new Error(\"Missing table\");\n }\n if (typeof input.column !== \"string\" || !input.column) throw new Error(\"Missing column\");\n if (!input.primaryKey || typeof input.primaryKey !== \"object\" || Array.isArray(input.primaryKey)) {\n throw new Error(\"Missing primary key\");\n }\n if (!isCell(input.value)) throw new Error(\"Unsupported cell value\");\n\n const pool = getPool(connectionString);\n const metadataResult = await pool.query<ColumnMetadata>(COLUMN_METADATA_SQL, [\n input.table.schema,\n input.table.name,\n ]);\n const metadata = metadataResult.rows;\n if (metadata.length === 0) {\n throw new Error(`Table ${input.table.schema}.${input.table.name} not found`);\n }\n if (!metadata.every((column) => column.relkind === \"r\" || column.relkind === \"p\")) {\n throw new Error(\"Views and foreign tables are read-only\");\n }\n\n const target = metadata.find((column) => column.name === input.column);\n if (!target) throw new Error(`Column ${input.column} not found`);\n if (target.is_generated) throw new Error(\"Generated columns are read-only\");\n if (target.is_identity) throw new Error(\"Identity columns are read-only\");\n\n const primaryKeys = metadata.filter((column) => column.is_pk);\n if (primaryKeys.length === 0) throw new Error(\"Editing requires a primary key\");\n const providedKeys = Object.keys(input.primaryKey);\n if (\n providedKeys.length !== primaryKeys.length ||\n primaryKeys.some((column) => !Object.prototype.hasOwnProperty.call(input.primaryKey, column.name))\n ) {\n throw new Error(\"The row primary key is incomplete\");\n }\n\n const values: Cell[] = [input.value];\n const where = primaryKeys.map((column, index) => {\n const value = input.primaryKey[column.name];\n if (!isCell(value)) throw new Error(`Invalid primary key value for ${column.name}`);\n values.push(value);\n return `${quoteIdent(column.name)} IS NOT DISTINCT FROM $${index + 2}`;\n });\n const returning = metadata\n .map((column) => serializeColumnExpression(column.name, column.data_type))\n .join(\", \");\n const result = await pool.query({\n text: `UPDATE ${quoteTable(input.table)}\n SET ${quoteIdent(target.name)} = $1\n WHERE ${where.join(\" AND \")}\n RETURNING ${returning}`,\n values,\n rowMode: \"array\",\n });\n if (result.rowCount !== 1) {\n throw new Error(\"The row no longer exists or could not be updated\");\n }\n\n return {\n row: (result.rows[0] as unknown[]).map(serializeCell),\n };\n}\n"],"names":["POST","body","url","connectionUrl","update","Error","AppRouteRouteModule","RouteKind","patchFetch","_patchFetch","addRequestMeta","getRequestMeta","setRequestMeta","getTracer","SpanKind","SpanStatusCode","setManifestsSingleton","normalizeAppPath","NodeNextRequest","NodeNextResponse","NextRequestAdapter","signalFromNodeResponse","BaseServerSpan","getRevalidateReason","sendResponse","fromNodeOutgoingHttpHeaders","toNodeOutgoingHttpHeaders","getCacheControlHeader","INFINITE_CACHE","NEXT_CACHE_TAGS_HEADER","NoFallbackError","CachedRouteKind","routeModule","definition","kind","APP_ROUTE","page","pathname","filename","bundlePath","distDir","process","env","__NEXT_RELATIVE_DIST_DIR","relativeProjectDir","__NEXT_RELATIVE_PROJECT_DIR","resolvedPagePath","nextConfigOutput","userland","require","TURBOPACK","__NEXT_DEV_SERVER","getUserland","workAsyncStorage","workUnitAsyncStorage","serverHooks","handler","req","res","ctx","requestMeta","isDev","hrtime","bigint","srcPage","replace","multiZoneDraftMode","__NEXT_MULTI_ZONE_DRAFT_MODE","prepareResult","prepare","statusCode","end","waitUntil","Promise","resolve","buildId","deploymentId","params","nextConfig","parsedUrl","isDraftMode","prerenderManifest","routerServerContext","isOnDemandRevalidate","revalidateOnlyGenerated","resolvedPathname","clientReferenceManifest","serverActionsManifest","normalizedSrcPage","isIsr","Boolean","dynamicRoutes","routes","render404","isPrerendered","prerenderInfo","fallback","adapterPath","cacheKey","supportsDynamicResponse","isStaticGeneration","method","tracer","activeSpan","getActiveScopeSpan","isWrappedByNextServer","isMinimalMode","incrementalCache","getIncrementalCache","resetRequestCache","globalThis","__incrementalCache","context","previewProps","preview","renderOpts","experimental","authInterrupts","useCacheTimeout","cacheComponents","validationLevel","instantInsights","hmrRefreshHash","cacheLifeProfiles","cacheLife","staticPageGenerationTimeout","onClose","cb","on","onAfterTaskError","undefined","onInstrumentationRequestError","error","_request","errorContext","silenceLog","onRequestError","sharedContext","nodeNextReq","nodeNextRes","nextReq","fromNodeNextRequest","responseGenerator","previousCacheEntry","setHeader","response","handle","fetchMetrics","pendingWaitUntil","cacheTags","collectedTags","blob","headers","type","revalidate","collectedRevalidate","expire","collectedExpire","expireTime","cacheEntry","value","status","Buffer","from","arrayBuffer","cacheControl","err","isStale","routerKind","routePath","routeType","revalidateReason","handleResponse","currentSpan","parentSpan","routeKind","isFallback","isRoutePPREnabled","isMiss","delete","getHeader","get","set","Response","setAttributes","setStatus","code","ERROR","setAttribute","toString","rootSpanAttributes","getRootSpanAttributes","handleRequest","console","warn","route","name","updateName","withPropagatedContext","trace","spanName","SERVER","attributes","span","COLUMN_METADATA_SQL","isCell","updateCell","connectionString","input","table","schema","column","primaryKey","Array","isArray","pool","metadataResult","query","metadata","rows","length","every","relkind","target","find","is_generated","is_identity","primaryKeys","filter","is_pk","providedKeys","Object","keys","some","prototype","hasOwnProperty","call","values","where","map","index","push","returning","data_type","join","result","text","rowMode","rowCount","row"],"mappings":"8CAAA,IAAA,EAAA,EAAA,CAAA,CAAA,OAEA,EAAA,EAAA,CAAA,CAAA,yCAIO,IAAMA,EAAO,CAAA,EAAA,EAAA,WAAA,AAAW,EAAO,MAAOC,IAC3C,IAAMC,EAAM,CAAA,EAAA,EAAA,aAAA,AAAa,EAACD,EAAKE,aAAa,CAAE,iBAC9C,GAAI,CAACF,EAAKG,MAAM,CAAE,MAAM,AAAIC,MAAM,kBAClC,MAAO,CAAA,EAAA,EAAA,UAAA,AAAU,EAACH,EAAKD,EAAKG,MAAM,CACpC,oECVA,IAAA,EAIO,EAAA,CAAA,AAHLE,CAGK,OACP,EAA0B,EAAyB,CAA1CC,AAA0C,CAAA,GAAA,EAJ9B,EAKrB,CADkB,CAD2C,AAEnB,EAAA,CAAjCC,AAAiC,CAAA,AAFnC,GACmB,CAC8C,GAExE,EAGEI,EAEK,CAJLF,AAIK,CAAA,AAPgBD,MAKP,CAGhB,EAIgB,EACT,AAb2B,CAa3B,AAJLI,CAIK,AAVS,CAIT,CAHLF,CASK,GAbmC,CAc1C,CALW,CAK2B,AAPJ,CAIhCG,CAGoC,CAA7BE,AAA6B,CAAA,EADA,CATtB,EACdJ,AAMQ,EACRG,AAGF,EAAiC,EAAA,CAAA,AAAxBE,CAAwB,EADkD,IACT,CAC1E,AAF8B,CAFd,CAI0B,EAAQ,CAAzCC,AAAyC,CAAA,CAAA,CADzB,AADa,KAGtC,EAEEG,CAJ+B,CAK1B,AAJwE,CAE7ED,AAEK,CAAA,CAJiB,CAGA,CAHED,IAK1B,EAA+B,CADxB,CAC0D,CAAxDG,AAAwD,CAAA,IAH7C,EAClBD,AAHwC,CAM1C,EA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""}
|
package/.next/server/chunks/_next-internal_server_app_api_definition_route_actions_097kjq6.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/.next/server/chunks/_next-internal_server_app_api_delete-rows_route_actions_0t2bukg.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/.next/server/chunks/_next-internal_server_app_api_related_route_actions_0sm4hrz.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/.next/server/chunks/_next-internal_server_app_favicon_ico_route_actions_0g2jjls.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
module.exports=[63080,a=>{a.v({className:"geist_cfd9e230-module__wMpiTW__className",variable:"geist_cfd9e230-module__wMpiTW__variable"})},99017,a=>{a.v({className:"geist_mono_30718973-module__C72cgW__className",variable:"geist_mono_30718973-module__C72cgW__variable"})},27572,a=>{"use strict";var b=a.i(7997),c=a.i(63080);let d={className:c.default.className,style:{fontFamily:"'Geist', 'Geist Fallback'",fontStyle:"normal"}};null!=c.default.variable&&(d.variable=c.default.variable);var e=a.i(99017);let f={className:e.default.className,style:{fontFamily:"'Geist Mono', 'Geist Mono Fallback'",fontStyle:"normal"}};null!=e.default.variable&&(f.variable=e.default.variable);var g=a.i(22113),h=a.i(23255),i=a.i(1788);let j=[{id:"dark",name:"Dark",appearance:"dark",swatch:"#242424",keywords:["default","black","neutral"]},{id:"light",name:"Light",appearance:"light",swatch:"#ffffff",keywords:["day","white"]},{id:"one-dark-pro",name:"One Dark Pro",appearance:"dark",swatch:"#23272e",keywords:["onedark","atom","pro"]},{id:"nord",name:"Nord",appearance:"dark",swatch:"#2e3440",keywords:["arctic","frost","blue"]},{id:"dracula",name:"Dracula",appearance:"dark",swatch:"#282a36",keywords:["purple","vampire"]},{id:"tokyo-night",name:"Tokyo Night",appearance:"dark",swatch:"#1a1b26",keywords:["tokyo","night","japan"]}],k=j.map(a=>a.id),l=j.filter(a=>"light"===a.appearance).map(a=>a.id),m=`(function(){try{var allowed=${JSON.stringify(k)};var light=${JSON.stringify(l)};var id=${JSON.stringify("dark")};var raw=localStorage.getItem(${JSON.stringify("ytdb:theme")})||localStorage.getItem("db-studio:theme");if(raw){var parsed=JSON.parse(raw);var value=parsed&&parsed.state&&parsed.state.theme;if(typeof value==="string"&&allowed.indexOf(value)!==-1)id=value;}var root=document.documentElement;root.setAttribute("data-theme",id);root.classList.toggle("dark",light.indexOf(id)===-1);}catch(e){}})();`;a.s(["default",0,function({children:a}){return(0,b.jsxs)("html",{lang:"en",className:`${d.variable} ${f.variable} dark h-full`,"data-theme":"dark",suppressHydrationWarning:!0,children:[(0,b.jsx)("head",{children:(0,b.jsx)("script",{dangerouslySetInnerHTML:{__html:m}})}),(0,b.jsx)("body",{className:"flex min-h-full flex-col",children:(0,b.jsx)(i.ThemeProvider,{children:(0,b.jsx)(g.ConvexClientProvider,{children:(0,b.jsx)(h.LocalBridgeGate,{children:a})})})})]})},"metadata",0,{title:"YTDB",description:"A database management UI"}],27572)},50645,function(a){a.n(a.i(27572))},34285,a=>{"use strict";a.s(["ConvexClientProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ConvexClientProvider() from the server but ConvexClientProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/ConvexClientProvider.tsx","ConvexClientProvider")},22113,a=>{"use strict";var b=a.i(34285);a.n(b)},58667,a=>{"use strict";a.s(["LocalBridgeGate",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call LocalBridgeGate() from the server but LocalBridgeGate is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/local-bridge-gate.tsx","LocalBridgeGate")},23255,a=>{"use strict";var b=a.i(58667);a.n(b)},25790,a=>{"use strict";a.s(["ThemeProvider",()=>b]);let b=(0,a.i(11857).registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/src/components/theme-provider.tsx","ThemeProvider")},1788,a=>{"use strict";var b=a.i(25790);a.n(b)}];
|
|
2
|
+
|
|
3
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__00wmlt8._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["turbopack:///[next]/internal/font/google/geist_cfd9e230.module.css [app-rsc] (css module)","turbopack:///[next]/internal/font/google/geist_mono_30718973.module.css [app-rsc] (css module)","turbopack:///[next]/internal/font/google/geist_cfd9e230.js","turbopack:///[next]/internal/font/google/geist_mono_30718973.js","../../../../src/app/layout.tsx","../../../../src/lib/themes.ts","../../../../src/components/ConvexClientProvider.tsx/__nextjs-internal-proxy.mjs","../../../../src/components/local-bridge-gate.tsx/__nextjs-internal-proxy.mjs","../../../../src/components/theme-provider.tsx/__nextjs-internal-proxy.mjs"],"sourcesContent":["__turbopack_context__.v({\n \"className\": \"geist_cfd9e230-module__wMpiTW__className\",\n \"variable\": \"geist_cfd9e230-module__wMpiTW__variable\",\n});\n","__turbopack_context__.v({\n \"className\": \"geist_mono_30718973-module__C72cgW__className\",\n \"variable\": \"geist_mono_30718973-module__C72cgW__variable\",\n});\n","import cssModule from \"@vercel/turbopack-next/internal/font/google/cssmodule.module.css?{%22path%22:%22layout.tsx%22,%22import%22:%22Geist%22,%22arguments%22:[{%22variable%22:%22--font-sans%22,%22subsets%22:[%22latin%22]}],%22variableName%22:%22sans%22}\";\nconst fontData = {\n className: cssModule.className,\n style: {\n fontFamily: \"'Geist', 'Geist Fallback'\",\n fontStyle: \"normal\",\n\n },\n};\n\nif (cssModule.variable != null) {\n fontData.variable = cssModule.variable;\n}\n\nexport default fontData;\n","import cssModule from \"@vercel/turbopack-next/internal/font/google/cssmodule.module.css?{%22path%22:%22layout.tsx%22,%22import%22:%22Geist_Mono%22,%22arguments%22:[{%22variable%22:%22--font-geist-mono%22,%22subsets%22:[%22latin%22]}],%22variableName%22:%22mono%22}\";\nconst fontData = {\n className: cssModule.className,\n style: {\n fontFamily: \"'Geist Mono', 'Geist Mono Fallback'\",\n fontStyle: \"normal\",\n\n },\n};\n\nif (cssModule.variable != null) {\n fontData.variable = cssModule.variable;\n}\n\nexport default fontData;\n","import type { Metadata } from \"next\";\nimport { Geist, Geist_Mono } from \"next/font/google\";\nimport { ConvexClientProvider } from \"@/components/ConvexClientProvider\";\nimport { LocalBridgeGate } from \"@/components/local-bridge-gate\";\nimport { ThemeProvider } from \"@/components/theme-provider\";\nimport { THEME_INIT_SCRIPT } from \"@/lib/themes\";\nimport \"./globals.css\";\n\nconst sans = Geist({\n variable: \"--font-sans\",\n subsets: [\"latin\"],\n});\n\nconst mono = Geist_Mono({\n variable: \"--font-geist-mono\",\n subsets: [\"latin\"],\n});\n\nexport const metadata: Metadata = {\n title: \"YTDB\",\n description: \"A database management UI\",\n};\n\nexport default function RootLayout({ children }: LayoutProps<\"/\">) {\n return (\n <html\n lang=\"en\"\n className={`${sans.variable} ${mono.variable} dark h-full`}\n data-theme=\"dark\"\n suppressHydrationWarning\n >\n <head>\n <script dangerouslySetInnerHTML={{ __html: THEME_INIT_SCRIPT }} />\n </head>\n <body className=\"flex min-h-full flex-col\">\n <ThemeProvider>\n <ConvexClientProvider>\n <LocalBridgeGate>{children}</LocalBridgeGate>\n </ConvexClientProvider>\n </ThemeProvider>\n </body>\n </html>\n );\n}\n","export const THEME_STORAGE_KEY = \"ytdb:theme\";\nexport const DEFAULT_THEME_ID = \"dark\";\n\nexport const THEMES = [\n {\n id: \"dark\",\n name: \"Dark\",\n appearance: \"dark\",\n swatch: \"#242424\",\n keywords: [\"default\", \"black\", \"neutral\"],\n },\n {\n id: \"light\",\n name: \"Light\",\n appearance: \"light\",\n swatch: \"#ffffff\",\n keywords: [\"day\", \"white\"],\n },\n {\n id: \"one-dark-pro\",\n name: \"One Dark Pro\",\n appearance: \"dark\",\n swatch: \"#23272e\",\n keywords: [\"onedark\", \"atom\", \"pro\"],\n },\n {\n id: \"nord\",\n name: \"Nord\",\n appearance: \"dark\",\n swatch: \"#2e3440\",\n keywords: [\"arctic\", \"frost\", \"blue\"],\n },\n {\n id: \"dracula\",\n name: \"Dracula\",\n appearance: \"dark\",\n swatch: \"#282a36\",\n keywords: [\"purple\", \"vampire\"],\n },\n {\n id: \"tokyo-night\",\n name: \"Tokyo Night\",\n appearance: \"dark\",\n swatch: \"#1a1b26\",\n keywords: [\"tokyo\", \"night\", \"japan\"],\n },\n] as const;\n\nexport type Theme = (typeof THEMES)[number];\nexport type ThemeId = Theme[\"id\"];\n\nconst THEME_IDS: ThemeId[] = THEMES.map((theme) => theme.id);\n\nexport function isThemeId(value: unknown): value is ThemeId {\n return typeof value === \"string\" && THEME_IDS.includes(value as ThemeId);\n}\n\nexport function applyTheme(id: ThemeId) {\n const theme = THEMES.find((item) => item.id === id);\n if (!theme) return;\n const root = document.documentElement;\n root.dataset.theme = theme.id;\n root.classList.toggle(\"dark\", theme.appearance === \"dark\");\n}\n\nconst LIGHT_THEME_IDS = THEMES.filter((theme) => theme.appearance === \"light\").map(\n (theme) => theme.id,\n);\n\n/** Blocking script so the first paint matches the persisted theme. */\nexport const THEME_INIT_SCRIPT = `(function(){try{var allowed=${JSON.stringify(THEME_IDS)};var light=${JSON.stringify(LIGHT_THEME_IDS)};var id=${JSON.stringify(DEFAULT_THEME_ID)};var raw=localStorage.getItem(${JSON.stringify(THEME_STORAGE_KEY)})||localStorage.getItem(\"db-studio:theme\");if(raw){var parsed=JSON.parse(raw);var value=parsed&&parsed.state&&parsed.state.theme;if(typeof value===\"string\"&&allowed.indexOf(value)!==-1)id=value;}var root=document.documentElement;root.setAttribute(\"data-theme\",id);root.classList.toggle(\"dark\",light.indexOf(id)===-1);}catch(e){}})();`;\n","// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport const ConvexClientProvider = registerClientReference(\n function() { throw new Error(\"Attempted to call ConvexClientProvider() from the server but ConvexClientProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/components/ConvexClientProvider.tsx\",\n \"ConvexClientProvider\",\n);\n","// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport const LocalBridgeGate = registerClientReference(\n function() { throw new Error(\"Attempted to call LocalBridgeGate() from the server but LocalBridgeGate is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/components/local-bridge-gate.tsx\",\n \"LocalBridgeGate\",\n);\n","// This file is generated by next-core EcmascriptClientReferenceModule.\nimport { registerClientReference } from \"react-server-dom-turbopack/server\";\nexport const ThemeProvider = registerClientReference(\n function() { throw new Error(\"Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.\"); },\n \"[project]/src/components/theme-provider.tsx\",\n \"ThemeProvider\",\n);\n"],"names":["fontData","className","style","fontFamily","fontStyle","variable","ConvexClientProvider","Error","LocalBridgeGate","ThemeProvider"],"mappings":"0BAAA,EAAA,CAAA,CAAA,CACA,UAAA,2CACA,SAAA,yCACA,cCHA,EAAA,CAAA,CAAA,CACA,U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AAA,EAD7B,AAC6B,EAD7B,CAAA,CAAA,OAC6B,uBAAA,AAAuB,EAChD,WAAa,MAAM,AAAIF,MAAM,wOAA0O,EACvQ,8CACA","ignoreList":[0,1,2,3,6,7,8]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module.exports=[18622,(a,b,c)=>{b.exports=a.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},24725,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},43285,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/dynamic-access-async-storage.external.js",()=>require("next/dist/server/app-render/dynamic-access-async-storage.external.js"))},56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},59043,(a,b,c)=>{b.exports=a.x("next/dist/server/runtime-reacts.external.js",()=>require("next/dist/server/runtime-reacts.external.js"))},33354,(a,b,c)=>{"use strict";c._=function(a){return a&&a.__esModule?a:{default:a}}},51234,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"handleISRError",{enumerable:!0,get:function(){return e}});let d=a.r(69789);function e({error:a}){if(d.workAsyncStorage){let b=d.workAsyncStorage.getStore();if(b?.isStaticGeneration)throw a&&console.error(a),a}}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},57068,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={WarningIcon:function(){return i},errorStyles:function(){return g},errorThemeCss:function(){return h}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});a.r(33354);let f=a.r(87924);a.r(72131);let g={container:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",display:"flex",alignItems:"center",justifyContent:"center"},card:{marginTop:"-32px",maxWidth:"325px",padding:"32px 28px",textAlign:"left"},icon:{marginBottom:"24px"},title:{fontSize:"24px",fontWeight:500,letterSpacing:"-0.02em",lineHeight:"32px",margin:"0 0 12px 0",color:"var(--next-error-title)"},message:{fontSize:"14px",fontWeight:400,lineHeight:"21px",margin:"0 0 20px 0",color:"var(--next-error-message)"},form:{margin:0},buttonGroup:{display:"flex",gap:"8px",alignItems:"center"},button:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-text)",background:"var(--next-error-btn-bg)",border:"var(--next-error-btn-border)"},buttonSecondary:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"32px",padding:"0 12px",fontSize:"14px",fontWeight:500,lineHeight:"20px",borderRadius:"6px",cursor:"pointer",color:"var(--next-error-btn-secondary-text)",background:"var(--next-error-btn-secondary-bg)",border:"var(--next-error-btn-secondary-border)"},digestFooter:{position:"fixed",bottom:"32px",left:"0",right:"0",textAlign:"center",fontFamily:'ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace',fontSize:"12px",lineHeight:"18px",fontWeight:400,margin:"0",color:"var(--next-error-digest)"}},h=`
|
|
2
|
+
:root {
|
|
3
|
+
--next-error-bg: #fff;
|
|
4
|
+
--next-error-text: #171717;
|
|
5
|
+
--next-error-title: #171717;
|
|
6
|
+
--next-error-message: #171717;
|
|
7
|
+
--next-error-digest: #666666;
|
|
8
|
+
--next-error-btn-text: #fff;
|
|
9
|
+
--next-error-btn-bg: #171717;
|
|
10
|
+
--next-error-btn-border: none;
|
|
11
|
+
--next-error-btn-secondary-text: #171717;
|
|
12
|
+
--next-error-btn-secondary-bg: transparent;
|
|
13
|
+
--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);
|
|
14
|
+
}
|
|
15
|
+
@media (prefers-color-scheme: dark) {
|
|
16
|
+
:root {
|
|
17
|
+
--next-error-bg: #0a0a0a;
|
|
18
|
+
--next-error-text: #ededed;
|
|
19
|
+
--next-error-title: #ededed;
|
|
20
|
+
--next-error-message: #ededed;
|
|
21
|
+
--next-error-digest: #a0a0a0;
|
|
22
|
+
--next-error-btn-text: #0a0a0a;
|
|
23
|
+
--next-error-btn-bg: #ededed;
|
|
24
|
+
--next-error-btn-border: none;
|
|
25
|
+
--next-error-btn-secondary-text: #ededed;
|
|
26
|
+
--next-error-btn-secondary-bg: transparent;
|
|
27
|
+
--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }
|
|
31
|
+
`.replace(/\n\s*/g,"");function i(){return(0,f.jsx)("svg",{width:"32",height:"32",viewBox:"-0.2 -1.5 32 32",fill:"none",style:g.icon,children:(0,f.jsx)("path",{d:"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z",fill:"var(--next-error-title)"})})}("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},40622,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"default",{enumerable:!0,get:function(){return g}}),a.r(33354);let d=a.r(87924);a.r(72131);let e=a.r(51234),f=a.r(57068),g=function({error:a}){let b=a?.digest,c=!!b;return(0,e.handleISRError)({error:a}),(0,d.jsxs)("html",{id:"__next_error__",children:[(0,d.jsx)("head",{children:(0,d.jsx)("style",{dangerouslySetInnerHTML:{__html:f.errorThemeCss}})}),(0,d.jsxs)("body",{children:[(0,d.jsx)("div",{style:f.errorStyles.container,children:(0,d.jsxs)("div",{style:f.errorStyles.card,children:[(0,d.jsx)(f.WarningIcon,{}),(0,d.jsx)("h1",{style:f.errorStyles.title,children:"This page couldn’t load"}),(0,d.jsx)("p",{style:f.errorStyles.message,children:c?"A server error occurred. Reload to try again.":"Reload to try again, or go back."}),(0,d.jsxs)("div",{style:f.errorStyles.buttonGroup,children:[(0,d.jsx)("form",{style:f.errorStyles.form,children:(0,d.jsx)("button",{type:"submit",style:f.errorStyles.button,children:"Reload"})}),!c&&(0,d.jsx)("button",{type:"button",style:f.errorStyles.buttonSecondary,onClick:()=>{window.history.length>1?window.history.back():window.location.href="/"},children:"Back"})]})]})}),b&&(0,d.jsxs)("p",{style:f.errorStyles.digestFooter,children:["ERROR ",b]})]})]})};("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},69789,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={actionAsyncStorage:function(){return f.actionAsyncStorage},workAsyncStorage:function(){return g.workAsyncStorage},workUnitAsyncStorage:function(){return h.workUnitAsyncStorage}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(20635),g=a.r(56704),h=a.r(32319);("function"==typeof c.default||"object"==typeof c.default&&null!==c.default)&&void 0===c.default.__esModule&&(Object.defineProperty(c.default,"__esModule",{value:!0}),Object.assign(c.default,c),b.exports=c.default)},42602,(a,b,c)=>{"use strict";b.exports=a.r(18622)},9270,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.AppRouterContext},36313,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.HooksClientContext},18341,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored.contexts.ServerInsertedHtml},35112,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactDOM},87924,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactJsxRuntime},38783,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].ReactServerDOMTurbopackClient},72131,(a,b,c)=>{"use strict";b.exports=a.r(42602).vendored["react-ssr"].React}];
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=%5Broot-of-the-server%5D__06x8wuq._.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../node_modules/%40swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/next/src/client/components/handle-isr-error.tsx","../../../../node_modules/next/src/client/components/builtin/error-styles.tsx","../../../../node_modules/next/src/client/components/builtin/global-error.tsx","../../../../node_modules/next/src/client/components/server-async-storage.ts","../../../../node_modules/next/src/server/route-modules/app-page/module.compiled.js","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/app-router-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-dom.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client.ts","../../../../node_modules/next/src/server/route-modules/app-page/vendored/ssr/react.ts"],"sourcesContent":["\"use strict\";\n\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\nexports._ = _interop_require_default;\n","import { workAsyncStorage } from './server-async-storage'\n\n// if we are revalidating we want to re-throw the error so the\n// function crashes so we can maintain our previous cache\n// instead of caching the error page\nexport function handleISRError({ error }: { error: any }) {\n if (workAsyncStorage) {\n const store = workAsyncStorage.getStore()\n if (store?.isStaticGeneration) {\n if (error) {\n console.error(error)\n }\n throw error\n }\n }\n}\n","import React from 'react'\n\nexport const errorStyles = {\n container: {\n fontFamily:\n 'system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"',\n height: '100vh',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n },\n card: {\n marginTop: '-32px',\n maxWidth: '325px',\n padding: '32px 28px',\n textAlign: 'left' as const,\n },\n icon: {\n marginBottom: '24px',\n },\n title: {\n fontSize: '24px',\n fontWeight: 500,\n letterSpacing: '-0.02em',\n lineHeight: '32px',\n margin: '0 0 12px 0',\n color: 'var(--next-error-title)',\n },\n message: {\n fontSize: '14px',\n fontWeight: 400,\n lineHeight: '21px',\n margin: '0 0 20px 0',\n color: 'var(--next-error-message)',\n },\n form: {\n margin: 0,\n },\n buttonGroup: {\n display: 'flex',\n gap: '8px',\n alignItems: 'center',\n },\n button: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '32px',\n padding: '0 12px',\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '20px',\n borderRadius: '6px',\n cursor: 'pointer',\n color: 'var(--next-error-btn-text)',\n background: 'var(--next-error-btn-bg)',\n border: 'var(--next-error-btn-border)',\n },\n buttonSecondary: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '32px',\n padding: '0 12px',\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '20px',\n borderRadius: '6px',\n cursor: 'pointer',\n color: 'var(--next-error-btn-secondary-text)',\n background: 'var(--next-error-btn-secondary-bg)',\n border: 'var(--next-error-btn-secondary-border)',\n },\n digestFooter: {\n position: 'fixed' as const,\n bottom: '32px',\n left: '0',\n right: '0',\n textAlign: 'center' as const,\n fontFamily:\n 'ui-monospace,SFMono-Regular,\"SF Mono\",Menlo,Consolas,monospace',\n fontSize: '12px',\n lineHeight: '18px',\n fontWeight: 400,\n margin: '0',\n color: 'var(--next-error-digest)',\n },\n} as const\n\nexport const errorThemeCss = `\n:root {\n --next-error-bg: #fff;\n --next-error-text: #171717;\n --next-error-title: #171717;\n --next-error-message: #171717;\n --next-error-digest: #666666;\n --next-error-btn-text: #fff;\n --next-error-btn-bg: #171717;\n --next-error-btn-border: none;\n --next-error-btn-secondary-text: #171717;\n --next-error-btn-secondary-bg: transparent;\n --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);\n}\n@media (prefers-color-scheme: dark) {\n :root {\n --next-error-bg: #0a0a0a;\n --next-error-text: #ededed;\n --next-error-title: #ededed;\n --next-error-message: #ededed;\n --next-error-digest: #a0a0a0;\n --next-error-btn-text: #0a0a0a;\n --next-error-btn-bg: #ededed;\n --next-error-btn-border: none;\n --next-error-btn-secondary-text: #ededed;\n --next-error-btn-secondary-bg: transparent;\n --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);\n }\n}\nbody { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\n`.replace(/\\n\\s*/g, '')\n\nexport function WarningIcon() {\n return (\n <svg\n width=\"32\"\n height=\"32\"\n viewBox=\"-0.2 -1.5 32 32\"\n fill=\"none\"\n style={errorStyles.icon}\n >\n <path\n d=\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\"\n fill=\"var(--next-error-title)\"\n />\n </svg>\n )\n}\n","'use client'\n\nimport React from 'react'\nimport { handleISRError } from '../handle-isr-error'\nimport { errorStyles, errorThemeCss, WarningIcon } from './error-styles'\n\nexport type GlobalErrorComponent = React.ComponentType<{\n error: any\n reset: () => void\n retry: () => void\n}>\n\nfunction DefaultGlobalError({ error }: { error: any }) {\n const digest: string | undefined = error?.digest\n const isServerError = !!digest\n\n const message = isServerError\n ? 'A server error occurred. Reload to try again.'\n : 'Reload to try again, or go back.'\n\n handleISRError({ error })\n\n return (\n <html id=\"__next_error__\">\n <head>\n <style dangerouslySetInnerHTML={{ __html: errorThemeCss }} />\n </head>\n <body>\n <div style={errorStyles.container}>\n <div style={errorStyles.card}>\n <WarningIcon />\n <h1 style={errorStyles.title}>This page couldn’t load</h1>\n <p style={errorStyles.message}>{message}</p>\n <div style={errorStyles.buttonGroup}>\n <form style={errorStyles.form}>\n <button type=\"submit\" style={errorStyles.button}>\n Reload\n </button>\n </form>\n {!isServerError && (\n <button\n type=\"button\"\n style={errorStyles.buttonSecondary}\n onClick={() => {\n if (window.history.length > 1) {\n window.history.back()\n } else {\n window.location.href = '/'\n }\n }}\n >\n Back\n </button>\n )}\n </div>\n </div>\n </div>\n {digest && <p style={errorStyles.digestFooter}>ERROR {digest}</p>}\n </body>\n </html>\n )\n}\n\n// Exported so that the import signature in the loaders can be identical to user\n// supplied custom global error signatures.\nexport default DefaultGlobalError\n","// Client-safe access to the server-only async-storage singletons. On the\n// server these re-export the real storages; in the browser bundle this module\n// is aliased to `./server-async-storage.browser` (see\n// scripts/generate-browser-variant-aliases.mjs), which exports `undefined`\n// stubs so the AsyncLocalStorage modules are never bundled into the client.\n// Consumers must guard usage so the stubs are not dereferenced in the browser.\nexport { actionAsyncStorage } from '../../server/app-render/action-async-storage.external'\nexport { workAsyncStorage } from '../../server/app-render/work-async-storage.external'\nexport { workUnitAsyncStorage } from '../../server/app-render/work-unit-async-storage.external'\n","if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.dev.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n }\n } else {\n if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n }\n}\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].AppRouterContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].HooksClientContext\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['contexts'].ServerInsertedHtml\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactDOM\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactJsxRuntime\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.ReactServerDOMTurbopackClient\n","module.exports = (\n require('../../module.compiled') as typeof import('../../module.compiled')\n).vendored['react-ssr']!.React\n"],"names":["_interop_require_default","obj","__esModule","default","exports","_","handleISRError","error","workAsyncStorage","store","getStore","isStaticGeneration","console","WarningIcon","errorStyles","errorThemeCss","container","fontFamily","height","display","alignItems","justifyContent","card","marginTop","maxWidth","padding","textAlign","icon","marginBottom","title","fontSize","fontWeight","letterSpacing","lineHeight","margin","color","message","form","buttonGroup","gap","button","borderRadius","cursor","background","border","buttonSecondary","digestFooter","position","bottom","left","right","replace","svg","width","viewBox","fill","style","path","d","DefaultGlobalError","digest","isServerError","html","id","head","dangerouslySetInnerHTML","__html","body","div","h1","p","type","onClick","window","history","length","back","location","href","actionAsyncStorage","workUnitAsyncStorage","process","env","NEXT_RUNTIME","module","require","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK","vendored","AppRouterContext","HooksClientContext","ServerInsertedHtml","ReactDOM","ReactJsxRuntime","ReactServerDOMTurbopackClient","React"],"mappings":"mtCAKAI,GAAQC,CAAC,CAHT,EAGYL,OAHsBC,AAAzBD,CAA4B,EACjC,OAAOC,GAAOA,EAAIC,UAAU,CAAGD,EAAM,CAAEE,QAASF,CAAI,CACxD,yGCCgBK,iBAAAA,qCAAAA,aALiB,CAAA,CAAA,IAAA,GAK1B,SAASA,EAAe,OAAEC,CAAK,CAAkB,EACtD,GAAIC,EAAAA,gBAAgB,CAAE,CACpB,IAAMC,EAAQD,EAAAA,gBAAgB,CAACE,QAAQ,GACvC,GAAID,GAAOE,mBAIT,CAJ6B,KACzBJ,GACFK,IADS,IACDL,KAAK,CAACA,GAEVA,CAEV,CACF,8SC0GgBM,WAAW,CAAA,kBAAXA,GAvHHC,WAAW,CAAA,kBAAXA,GAuFAC,aAAa,CAAA,kBAAbA,qGAzFK,CAAA,CAAA,IAAA,GAEX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