UNPKG

create-jaydee-app

Version:

This is a project created with Create Jaydee App.

1,131 lines (1,117 loc) 198 kB
module.exports = { "[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; function _interop_require_default(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports._ = _interop_require_default; }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { // Note: This file is JS because it's used by the taskfile-swc.js file, which is JS. // Keep file changes in sync with the corresponding `.d.ts` files. /** * These are the browser versions that support all of the following: * static import: https://caniuse.com/es6-module * dynamic import: https://caniuse.com/es6-module-dynamic-import * import.meta: https://caniuse.com/mdn-javascript_operators_import_meta */ "use strict"; const MODERN_BROWSERSLIST_TARGET = [ 'chrome 64', 'edge 79', 'firefox 67', 'opera 51', 'safari 12' ]; module.exports = MODERN_BROWSERSLIST_TARGET; //# sourceMappingURL=modern-browserslist-target.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/constants.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { APP_BUILD_MANIFEST: null, APP_CLIENT_INTERNALS: null, APP_PATHS_MANIFEST: null, APP_PATH_ROUTES_MANIFEST: null, BARREL_OPTIMIZATION_PREFIX: null, BLOCKED_PAGES: null, BUILD_ID_FILE: null, BUILD_MANIFEST: null, CLIENT_PUBLIC_FILES_PATH: null, CLIENT_REFERENCE_MANIFEST: null, CLIENT_STATIC_FILES_PATH: null, CLIENT_STATIC_FILES_RUNTIME_AMP: null, CLIENT_STATIC_FILES_RUNTIME_MAIN: null, CLIENT_STATIC_FILES_RUNTIME_MAIN_APP: null, CLIENT_STATIC_FILES_RUNTIME_POLYFILLS: null, CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL: null, CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH: null, CLIENT_STATIC_FILES_RUNTIME_WEBPACK: null, COMPILER_INDEXES: null, COMPILER_NAMES: null, CONFIG_FILES: null, DEFAULT_RUNTIME_WEBPACK: null, DEFAULT_SANS_SERIF_FONT: null, DEFAULT_SERIF_FONT: null, DEV_CLIENT_MIDDLEWARE_MANIFEST: null, DEV_CLIENT_PAGES_MANIFEST: null, DYNAMIC_CSS_MANIFEST: null, EDGE_RUNTIME_WEBPACK: null, EDGE_UNSUPPORTED_NODE_APIS: null, EXPORT_DETAIL: null, EXPORT_MARKER: null, FUNCTIONS_CONFIG_MANIFEST: null, IMAGES_MANIFEST: null, INTERCEPTION_ROUTE_REWRITE_MANIFEST: null, MIDDLEWARE_BUILD_MANIFEST: null, MIDDLEWARE_MANIFEST: null, MIDDLEWARE_REACT_LOADABLE_MANIFEST: null, MODERN_BROWSERSLIST_TARGET: null, NEXT_BUILTIN_DOCUMENT: null, NEXT_FONT_MANIFEST: null, PAGES_MANIFEST: null, PHASE_DEVELOPMENT_SERVER: null, PHASE_EXPORT: null, PHASE_INFO: null, PHASE_PRODUCTION_BUILD: null, PHASE_PRODUCTION_SERVER: null, PHASE_TEST: null, PRERENDER_MANIFEST: null, REACT_LOADABLE_MANIFEST: null, ROUTES_MANIFEST: null, RSC_MODULE_TYPES: null, SERVER_DIRECTORY: null, SERVER_FILES_MANIFEST: null, SERVER_PROPS_ID: null, SERVER_REFERENCE_MANIFEST: null, STATIC_PROPS_ID: null, STATIC_STATUS_PAGES: null, STRING_LITERAL_DROP_BUNDLE: null, SUBRESOURCE_INTEGRITY_MANIFEST: null, SYSTEM_ENTRYPOINTS: null, TRACE_OUTPUT_VERSION: null, TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST: null, TURBO_TRACE_DEFAULT_MEMORY_LIMIT: null, UNDERSCORE_NOT_FOUND_ROUTE: null, UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: null, WEBPACK_STATS: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { APP_BUILD_MANIFEST: function() { return APP_BUILD_MANIFEST; }, APP_CLIENT_INTERNALS: function() { return APP_CLIENT_INTERNALS; }, APP_PATHS_MANIFEST: function() { return APP_PATHS_MANIFEST; }, APP_PATH_ROUTES_MANIFEST: function() { return APP_PATH_ROUTES_MANIFEST; }, BARREL_OPTIMIZATION_PREFIX: function() { return BARREL_OPTIMIZATION_PREFIX; }, BLOCKED_PAGES: function() { return BLOCKED_PAGES; }, BUILD_ID_FILE: function() { return BUILD_ID_FILE; }, BUILD_MANIFEST: function() { return BUILD_MANIFEST; }, CLIENT_PUBLIC_FILES_PATH: function() { return CLIENT_PUBLIC_FILES_PATH; }, CLIENT_REFERENCE_MANIFEST: function() { return CLIENT_REFERENCE_MANIFEST; }, CLIENT_STATIC_FILES_PATH: function() { return CLIENT_STATIC_FILES_PATH; }, CLIENT_STATIC_FILES_RUNTIME_AMP: function() { return CLIENT_STATIC_FILES_RUNTIME_AMP; }, CLIENT_STATIC_FILES_RUNTIME_MAIN: function() { return CLIENT_STATIC_FILES_RUNTIME_MAIN; }, CLIENT_STATIC_FILES_RUNTIME_MAIN_APP: function() { return CLIENT_STATIC_FILES_RUNTIME_MAIN_APP; }, CLIENT_STATIC_FILES_RUNTIME_POLYFILLS: function() { return CLIENT_STATIC_FILES_RUNTIME_POLYFILLS; }, CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL: function() { return CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL; }, CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH: function() { return CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH; }, CLIENT_STATIC_FILES_RUNTIME_WEBPACK: function() { return CLIENT_STATIC_FILES_RUNTIME_WEBPACK; }, COMPILER_INDEXES: function() { return COMPILER_INDEXES; }, COMPILER_NAMES: function() { return COMPILER_NAMES; }, CONFIG_FILES: function() { return CONFIG_FILES; }, DEFAULT_RUNTIME_WEBPACK: function() { return DEFAULT_RUNTIME_WEBPACK; }, DEFAULT_SANS_SERIF_FONT: function() { return DEFAULT_SANS_SERIF_FONT; }, DEFAULT_SERIF_FONT: function() { return DEFAULT_SERIF_FONT; }, DEV_CLIENT_MIDDLEWARE_MANIFEST: function() { return DEV_CLIENT_MIDDLEWARE_MANIFEST; }, DEV_CLIENT_PAGES_MANIFEST: function() { return DEV_CLIENT_PAGES_MANIFEST; }, DYNAMIC_CSS_MANIFEST: function() { return DYNAMIC_CSS_MANIFEST; }, EDGE_RUNTIME_WEBPACK: function() { return EDGE_RUNTIME_WEBPACK; }, EDGE_UNSUPPORTED_NODE_APIS: function() { return EDGE_UNSUPPORTED_NODE_APIS; }, EXPORT_DETAIL: function() { return EXPORT_DETAIL; }, EXPORT_MARKER: function() { return EXPORT_MARKER; }, FUNCTIONS_CONFIG_MANIFEST: function() { return FUNCTIONS_CONFIG_MANIFEST; }, IMAGES_MANIFEST: function() { return IMAGES_MANIFEST; }, INTERCEPTION_ROUTE_REWRITE_MANIFEST: function() { return INTERCEPTION_ROUTE_REWRITE_MANIFEST; }, MIDDLEWARE_BUILD_MANIFEST: function() { return MIDDLEWARE_BUILD_MANIFEST; }, MIDDLEWARE_MANIFEST: function() { return MIDDLEWARE_MANIFEST; }, MIDDLEWARE_REACT_LOADABLE_MANIFEST: function() { return MIDDLEWARE_REACT_LOADABLE_MANIFEST; }, MODERN_BROWSERSLIST_TARGET: function() { return _modernbrowserslisttarget.default; }, NEXT_BUILTIN_DOCUMENT: function() { return NEXT_BUILTIN_DOCUMENT; }, NEXT_FONT_MANIFEST: function() { return NEXT_FONT_MANIFEST; }, PAGES_MANIFEST: function() { return PAGES_MANIFEST; }, PHASE_DEVELOPMENT_SERVER: function() { return PHASE_DEVELOPMENT_SERVER; }, PHASE_EXPORT: function() { return PHASE_EXPORT; }, PHASE_INFO: function() { return PHASE_INFO; }, PHASE_PRODUCTION_BUILD: function() { return PHASE_PRODUCTION_BUILD; }, PHASE_PRODUCTION_SERVER: function() { return PHASE_PRODUCTION_SERVER; }, PHASE_TEST: function() { return PHASE_TEST; }, PRERENDER_MANIFEST: function() { return PRERENDER_MANIFEST; }, REACT_LOADABLE_MANIFEST: function() { return REACT_LOADABLE_MANIFEST; }, ROUTES_MANIFEST: function() { return ROUTES_MANIFEST; }, RSC_MODULE_TYPES: function() { return RSC_MODULE_TYPES; }, SERVER_DIRECTORY: function() { return SERVER_DIRECTORY; }, SERVER_FILES_MANIFEST: function() { return SERVER_FILES_MANIFEST; }, SERVER_PROPS_ID: function() { return SERVER_PROPS_ID; }, SERVER_REFERENCE_MANIFEST: function() { return SERVER_REFERENCE_MANIFEST; }, STATIC_PROPS_ID: function() { return STATIC_PROPS_ID; }, STATIC_STATUS_PAGES: function() { return STATIC_STATUS_PAGES; }, STRING_LITERAL_DROP_BUNDLE: function() { return STRING_LITERAL_DROP_BUNDLE; }, SUBRESOURCE_INTEGRITY_MANIFEST: function() { return SUBRESOURCE_INTEGRITY_MANIFEST; }, SYSTEM_ENTRYPOINTS: function() { return SYSTEM_ENTRYPOINTS; }, TRACE_OUTPUT_VERSION: function() { return TRACE_OUTPUT_VERSION; }, TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST: function() { return TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST; }, TURBO_TRACE_DEFAULT_MEMORY_LIMIT: function() { return TURBO_TRACE_DEFAULT_MEMORY_LIMIT; }, UNDERSCORE_NOT_FOUND_ROUTE: function() { return UNDERSCORE_NOT_FOUND_ROUTE; }, UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: function() { return UNDERSCORE_NOT_FOUND_ROUTE_ENTRY; }, WEBPACK_STATS: function() { return WEBPACK_STATS; } }); const _interop_require_default = __turbopack_require__("[project]/node_modules/.pnpm/@swc+helpers@0.5.15/node_modules/@swc/helpers/cjs/_interop_require_default.cjs [ssr] (ecmascript)"); const _modernbrowserslisttarget = /*#__PURE__*/ _interop_require_default._(__turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/modern-browserslist-target.js [ssr] (ecmascript)")); const COMPILER_NAMES = { client: 'client', server: 'server', edgeServer: 'edge-server' }; const COMPILER_INDEXES = { [COMPILER_NAMES.client]: 0, [COMPILER_NAMES.server]: 1, [COMPILER_NAMES.edgeServer]: 2 }; const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found'; const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = "" + UNDERSCORE_NOT_FOUND_ROUTE + "/page"; const PHASE_EXPORT = 'phase-export'; const PHASE_PRODUCTION_BUILD = 'phase-production-build'; const PHASE_PRODUCTION_SERVER = 'phase-production-server'; const PHASE_DEVELOPMENT_SERVER = 'phase-development-server'; const PHASE_TEST = 'phase-test'; const PHASE_INFO = 'phase-info'; const PAGES_MANIFEST = 'pages-manifest.json'; const WEBPACK_STATS = 'webpack-stats.json'; const APP_PATHS_MANIFEST = 'app-paths-manifest.json'; const APP_PATH_ROUTES_MANIFEST = 'app-path-routes-manifest.json'; const BUILD_MANIFEST = 'build-manifest.json'; const APP_BUILD_MANIFEST = 'app-build-manifest.json'; const FUNCTIONS_CONFIG_MANIFEST = 'functions-config-manifest.json'; const SUBRESOURCE_INTEGRITY_MANIFEST = 'subresource-integrity-manifest'; const NEXT_FONT_MANIFEST = 'next-font-manifest'; const EXPORT_MARKER = 'export-marker.json'; const EXPORT_DETAIL = 'export-detail.json'; const PRERENDER_MANIFEST = 'prerender-manifest.json'; const ROUTES_MANIFEST = 'routes-manifest.json'; const IMAGES_MANIFEST = 'images-manifest.json'; const SERVER_FILES_MANIFEST = 'required-server-files.json'; const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json'; const MIDDLEWARE_MANIFEST = 'middleware-manifest.json'; const TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = '_clientMiddlewareManifest.json'; const DEV_CLIENT_MIDDLEWARE_MANIFEST = '_devMiddlewareManifest.json'; const REACT_LOADABLE_MANIFEST = 'react-loadable-manifest.json'; const SERVER_DIRECTORY = 'server'; const CONFIG_FILES = [ 'next.config.js', 'next.config.mjs', 'next.config.ts' ]; const BUILD_ID_FILE = 'BUILD_ID'; const BLOCKED_PAGES = [ '/_document', '/_app', '/_error' ]; const CLIENT_PUBLIC_FILES_PATH = 'public'; const CLIENT_STATIC_FILES_PATH = 'static'; const STRING_LITERAL_DROP_BUNDLE = '__NEXT_DROP_CLIENT_FILE__'; const NEXT_BUILTIN_DOCUMENT = '__NEXT_BUILTIN_DOCUMENT__'; const BARREL_OPTIMIZATION_PREFIX = '__barrel_optimize__'; const CLIENT_REFERENCE_MANIFEST = 'client-reference-manifest'; const SERVER_REFERENCE_MANIFEST = 'server-reference-manifest'; const MIDDLEWARE_BUILD_MANIFEST = 'middleware-build-manifest'; const MIDDLEWARE_REACT_LOADABLE_MANIFEST = 'middleware-react-loadable-manifest'; const INTERCEPTION_ROUTE_REWRITE_MANIFEST = 'interception-route-rewrite-manifest'; const DYNAMIC_CSS_MANIFEST = 'dynamic-css-manifest'; const CLIENT_STATIC_FILES_RUNTIME_MAIN = "main"; const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = "" + CLIENT_STATIC_FILES_RUNTIME_MAIN + "-app"; const APP_CLIENT_INTERNALS = 'app-pages-internals'; const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = "react-refresh"; const CLIENT_STATIC_FILES_RUNTIME_AMP = "amp"; const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = "webpack"; const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = 'polyfills'; const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = Symbol(CLIENT_STATIC_FILES_RUNTIME_POLYFILLS); const DEFAULT_RUNTIME_WEBPACK = 'webpack-runtime'; const EDGE_RUNTIME_WEBPACK = 'edge-runtime-webpack'; const STATIC_PROPS_ID = '__N_SSG'; const SERVER_PROPS_ID = '__N_SSP'; const DEFAULT_SERIF_FONT = { name: 'Times New Roman', xAvgCharWidth: 821, azAvgWidth: 854.3953488372093, unitsPerEm: 2048 }; const DEFAULT_SANS_SERIF_FONT = { name: 'Arial', xAvgCharWidth: 904, azAvgWidth: 934.5116279069767, unitsPerEm: 2048 }; const STATIC_STATUS_PAGES = [ '/500' ]; const TRACE_OUTPUT_VERSION = 1; const TURBO_TRACE_DEFAULT_MEMORY_LIMIT = 6000; const RSC_MODULE_TYPES = { client: 'client', server: 'server' }; const EDGE_UNSUPPORTED_NODE_APIS = [ 'clearImmediate', 'setImmediate', 'BroadcastChannel', 'ByteLengthQueuingStrategy', 'CompressionStream', 'CountQueuingStrategy', 'DecompressionStream', 'DomException', 'MessageChannel', 'MessageEvent', 'MessagePort', 'ReadableByteStreamController', 'ReadableStreamBYOBRequest', 'ReadableStreamDefaultController', 'TransformStreamDefaultController', 'WritableStreamDefaultController' ]; const SYSTEM_ENTRYPOINTS = new Set([ CLIENT_STATIC_FILES_RUNTIME_MAIN, CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH, CLIENT_STATIC_FILES_RUNTIME_AMP, CLIENT_STATIC_FILES_RUNTIME_MAIN_APP ]); if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') { Object.defineProperty(exports.default, '__esModule', { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=constants.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { getSortedRouteObjects: null, getSortedRoutes: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { getSortedRouteObjects: function() { return getSortedRouteObjects; }, getSortedRoutes: function() { return getSortedRoutes; } }); class UrlNode { insert(urlPath) { this._insert(urlPath.split('/').filter(Boolean), [], false); } smoosh() { return this._smoosh(); } _smoosh(prefix) { if (prefix === void 0) prefix = '/'; const childrenPaths = [ ...this.children.keys() ].sort(); if (this.slugName !== null) { childrenPaths.splice(childrenPaths.indexOf('[]'), 1); } if (this.restSlugName !== null) { childrenPaths.splice(childrenPaths.indexOf('[...]'), 1); } if (this.optionalRestSlugName !== null) { childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1); } const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr)=>[ ...prev, ...curr ], []); if (this.slugName !== null) { routes.push(...this.children.get('[]')._smoosh(prefix + "[" + this.slugName + "]/")); } if (!this.placeholder) { const r = prefix === '/' ? '/' : prefix.slice(0, -1); if (this.optionalRestSlugName != null) { throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").'); } routes.unshift(r); } if (this.restSlugName !== null) { routes.push(...this.children.get('[...]')._smoosh(prefix + "[..." + this.restSlugName + "]/")); } if (this.optionalRestSlugName !== null) { routes.push(...this.children.get('[[...]]')._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/")); } return routes; } _insert(urlPaths, slugNames, isCatchAll) { if (urlPaths.length === 0) { this.placeholder = false; return; } if (isCatchAll) { throw new Error("Catch-all must be the last part of the URL."); } // The next segment in the urlPaths list let nextSegment = urlPaths[0]; // Check if the segment matches `[something]` if (nextSegment.startsWith('[') && nextSegment.endsWith(']')) { // Strip `[` and `]`, leaving only `something` let segmentName = nextSegment.slice(1, -1); let isOptional = false; if (segmentName.startsWith('[') && segmentName.endsWith(']')) { // Strip optional `[` and `]`, leaving only `something` segmentName = segmentName.slice(1, -1); isOptional = true; } if (segmentName.startsWith('…')) { throw new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"); } if (segmentName.startsWith('...')) { // Strip `...`, leaving only `something` segmentName = segmentName.substring(3); isCatchAll = true; } if (segmentName.startsWith('[') || segmentName.endsWith(']')) { throw new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."); } if (segmentName.startsWith('.')) { throw new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."); } function handleSlug(previousSlug, nextSlug) { if (previousSlug !== null) { // If the specific segment already has a slug but the slug is not `something` // This prevents collisions like: // pages/[post]/index.js // pages/[id]/index.js // Because currently multiple dynamic params on the same segment level are not supported if (previousSlug !== nextSlug) { // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment. throw new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."); } } slugNames.forEach((slug)=>{ if (slug === nextSlug) { throw new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'); } if (slug.replace(/\W/g, '') === nextSegment.replace(/\W/g, '')) { throw new Error('You cannot have the slug names "' + slug + '" and "' + nextSlug + '" differ only by non-word symbols within a single dynamic path'); } }); slugNames.push(nextSlug); } if (isCatchAll) { if (isOptional) { if (this.restSlugName != null) { throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + urlPaths[0] + '" ).'); } handleSlug(this.optionalRestSlugName, segmentName); // slugName is kept as it can only be one particular slugName this.optionalRestSlugName = segmentName; // nextSegment is overwritten to [[...]] so that it can later be sorted specifically nextSegment = '[[...]]'; } else { if (this.optionalRestSlugName != null) { throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + urlPaths[0] + '").'); } handleSlug(this.restSlugName, segmentName); // slugName is kept as it can only be one particular slugName this.restSlugName = segmentName; // nextSegment is overwritten to [...] so that it can later be sorted specifically nextSegment = '[...]'; } } else { if (isOptional) { throw new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'); } handleSlug(this.slugName, segmentName); // slugName is kept as it can only be one particular slugName this.slugName = segmentName; // nextSegment is overwritten to [] so that it can later be sorted specifically nextSegment = '[]'; } } // If this UrlNode doesn't have the nextSegment yet we create a new child UrlNode if (!this.children.has(nextSegment)) { this.children.set(nextSegment, new UrlNode()); } this.children.get(nextSegment)._insert(urlPaths.slice(1), slugNames, isCatchAll); } constructor(){ this.placeholder = true; this.children = new Map(); this.slugName = null; this.restSlugName = null; this.optionalRestSlugName = null; } } function getSortedRoutes(normalizedPages) { // First the UrlNode is created, and every UrlNode can have only 1 dynamic segment // Eg you can't have pages/[post]/abc.js and pages/[hello]/something-else.js // Only 1 dynamic segment per nesting level // So in the case that is test/integration/dynamic-routing it'll be this: // pages/[post]/comments.js // pages/blog/[post]/comment/[id].js // Both are fine because `pages/[post]` and `pages/blog` are on the same level // So in this case `UrlNode` created here has `this.slugName === 'post'` // And since your PR passed through `slugName` as an array basically it'd including it in too many possibilities // Instead what has to be passed through is the upwards path's dynamic names const root = new UrlNode(); // Here the `root` gets injected multiple paths, and insert will break them up into sublevels normalizedPages.forEach((pagePath)=>root.insert(pagePath)); // Smoosh will then sort those sublevels up to the point where you get the correct route definition priority return root.smoosh(); } function getSortedRouteObjects(objects, getter) { // We're assuming here that all the pathnames are unique, that way we can // sort the list and use the index as the key. const indexes = {}; const pathnames = []; for(let i = 0; i < objects.length; i++){ const pathname = getter(objects[i]); indexes[pathname] = i; pathnames[i] = pathname; } // Sort the pathnames. const sorted = getSortedRoutes(pathnames); // Map the sorted pathnames back to the original objects using the new sorted // index. return sorted.map((pathname)=>objects[indexes[pathname]]); } //# sourceMappingURL=sorted-routes.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { /** * For a given page path, this function ensures that there is a leading slash. * If there is not a leading slash, one is added, otherwise it is noop. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "ensureLeadingSlash", { enumerable: true, get: function() { return ensureLeadingSlash; } }); function ensureLeadingSlash(path) { return path.startsWith('/') ? path : "/" + path; } //# sourceMappingURL=ensure-leading-slash.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/segment.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { DEFAULT_SEGMENT_KEY: null, PAGE_SEGMENT_KEY: null, addSearchParamsIfPageSegment: null, isGroupSegment: null, isParallelRouteSegment: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { DEFAULT_SEGMENT_KEY: function() { return DEFAULT_SEGMENT_KEY; }, PAGE_SEGMENT_KEY: function() { return PAGE_SEGMENT_KEY; }, addSearchParamsIfPageSegment: function() { return addSearchParamsIfPageSegment; }, isGroupSegment: function() { return isGroupSegment; }, isParallelRouteSegment: function() { return isParallelRouteSegment; } }); function isGroupSegment(segment) { // Use array[0] for performant purpose return segment[0] === '(' && segment.endsWith(')'); } function isParallelRouteSegment(segment) { return segment.startsWith('@') && segment !== '@children'; } function addSearchParamsIfPageSegment(segment, searchParams) { const isPageSegment = segment.includes(PAGE_SEGMENT_KEY); if (isPageSegment) { const stringifiedQuery = JSON.stringify(searchParams); return stringifiedQuery !== '{}' ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery : PAGE_SEGMENT_KEY; } return segment; } const PAGE_SEGMENT_KEY = '__PAGE__'; const DEFAULT_SEGMENT_KEY = '__DEFAULT__'; //# sourceMappingURL=segment.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/app-paths.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { normalizeAppPath: null, normalizeRscURL: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { normalizeAppPath: function() { return normalizeAppPath; }, normalizeRscURL: function() { return normalizeRscURL; } }); const _ensureleadingslash = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js [ssr] (ecmascript)"); const _segment = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/segment.js [ssr] (ecmascript)"); function normalizeAppPath(route) { return (0, _ensureleadingslash.ensureLeadingSlash)(route.split('/').reduce((pathname, segment, index, segments)=>{ // Empty segments are ignored. if (!segment) { return pathname; } // Groups are ignored. if ((0, _segment.isGroupSegment)(segment)) { return pathname; } // Parallel segments are ignored. if (segment[0] === '@') { return pathname; } // The last segment (if it's a leaf) should be ignored. if ((segment === 'page' || segment === 'route') && index === segments.length - 1) { return pathname; } return pathname + "/" + segment; }, '')); } function normalizeRscURL(url) { return url.replace(/\.rsc($|\?)/, '$1'); } //# sourceMappingURL=app-paths.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/lib/interception-routes.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { INTERCEPTION_ROUTE_MARKERS: null, extractInterceptionRouteInformation: null, isInterceptionRouteAppPath: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { INTERCEPTION_ROUTE_MARKERS: function() { return INTERCEPTION_ROUTE_MARKERS; }, extractInterceptionRouteInformation: function() { return extractInterceptionRouteInformation; }, isInterceptionRouteAppPath: function() { return isInterceptionRouteAppPath; } }); const _apppaths = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/app-paths.js [ssr] (ecmascript)"); const INTERCEPTION_ROUTE_MARKERS = [ '(..)(..)', '(.)', '(..)', '(...)' ]; function isInterceptionRouteAppPath(path) { // TODO-APP: add more serious validation return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined; } function extractInterceptionRouteInformation(path) { let interceptingRoute, marker, interceptedRoute; for (const segment of path.split('/')){ marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m)); if (marker) { ; [interceptingRoute, interceptedRoute] = path.split(marker, 2); break; } } if (!interceptingRoute || !marker || !interceptedRoute) { throw new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`); } interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute) // normalize the path, e.g. /(blog)/feed -> /feed ; switch(marker){ case '(.)': // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route if (interceptingRoute === '/') { interceptedRoute = `/${interceptedRoute}`; } else { interceptedRoute = interceptingRoute + '/' + interceptedRoute; } break; case '(..)': // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route if (interceptingRoute === '/') { throw new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`); } interceptedRoute = interceptingRoute.split('/').slice(0, -1).concat(interceptedRoute).join('/'); break; case '(...)': // (...) will match the route segment in the root directory, so we need to use the root directory to prepend the intercepted route interceptedRoute = '/' + interceptedRoute; break; case '(..)(..)': // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route const splitInterceptingRoute = interceptingRoute.split('/'); if (splitInterceptingRoute.length <= 2) { throw new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`); } interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join('/'); break; default: throw new Error('Invariant: unexpected marker'); } return { interceptingRoute, interceptedRoute }; } //# sourceMappingURL=interception-routes.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "isDynamicRoute", { enumerable: true, get: function() { return isDynamicRoute; } }); const _interceptionroutes = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/server/lib/interception-routes.js [ssr] (ecmascript)"); // Identify /[param]/ in route string const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/; function isDynamicRoute(route) { if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) { route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute; } return TEST_ROUTE.test(route); } //# sourceMappingURL=is-dynamic.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/index.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { getSortedRouteObjects: null, getSortedRoutes: null, isDynamicRoute: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { getSortedRouteObjects: function() { return _sortedroutes.getSortedRouteObjects; }, getSortedRoutes: function() { return _sortedroutes.getSortedRoutes; }, isDynamicRoute: function() { return _isdynamic.isDynamicRoute; } }); const _sortedroutes = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js [ssr] (ecmascript)"); const _isdynamic = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js [ssr] (ecmascript)"); //# sourceMappingURL=index.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { /** * For a given page path, this function ensures that there is no backslash * escaping slashes in the path. Example: * - `foo\/bar\/baz` -> `foo/bar/baz` */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "normalizePathSep", { enumerable: true, get: function() { return normalizePathSep; } }); function normalizePathSep(path) { return path.replace(/\\/g, '/'); } //# sourceMappingURL=normalize-path-sep.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "denormalizePagePath", { enumerable: true, get: function() { return denormalizePagePath; } }); const _utils = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/router/utils/index.js [ssr] (ecmascript)"); const _normalizepathsep = __turbopack_require__("[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js [ssr] (ecmascript)"); function denormalizePagePath(page) { let _page = (0, _normalizepathsep.normalizePathSep)(page); return _page.startsWith('/index/') && !(0, _utils.isDynamicRoute)(_page) ? _page.slice(6) : _page !== '/index' ? _page : '/'; } //# sourceMappingURL=denormalize-page-path.js.map }}), "[project]/node_modules/.pnpm/next@15.1.6_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/shared/lib/utils.js [ssr] (ecmascript)": (function(__turbopack_context__) { var { r: __turbopack_require__, f: __turbopack_module_context__, i: __turbopack_import__, s: __turbopack_esm__, v: __turbopack_export_value__, n: __turbopack_export_namespace__, c: __turbopack_cache__, M: __turbopack_modules__, l: __turbopack_load__, j: __turbopack_dynamic__, P: __turbopack_resolve_absolute_path__, U: __turbopack_relative_url__, R: __turbopack_resolve_module_id_path__, b: __turbopack_worker_blob_url__, g: global, __dirname, x: __turbopack_external_require__, y: __turbopack_external_import__, m: module, e: exports, t: __turbopack_require_real__ } = __turbopack_context__; { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { DecodeError: null, MiddlewareNotFoundError: null, MissingStaticPage: null, NormalizeError: null, PageNotFoundError: null, SP: null, ST: null, WEB_VITALS: null, execOnce: null, getDisplayName: null, getLocationOrigin: null, getURL: null, isAbsoluteUrl: null, isResSent: null, loadGetInitialProps: null, normalizeRepeatedSlashes: null, stringifyError: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { DecodeError: function() { return DecodeError; }, MiddlewareNotFoundError: function() { return MiddlewareNotFoundError; }, MissingStaticPage: function() { return MissingStaticPage; }, NormalizeError: function() { return NormalizeError; }, PageNotFoundError: function() { return PageNotFoundError; }, SP: function() { return SP; }, ST: function() { return ST; }, WEB_VITALS: function() { return WEB_VITALS; }, execOnce: function() { return execOnce; }, getDisplayName: function() { return getDisplayName; }, getLocationOrigin: function() { return getLocationOrigin; }, getURL: function() { return getURL; }, isAbsoluteUrl: function() { return isAbsoluteUrl; }, isResSent: function() { return isResSent; }, loadGetInitialProps: function() { return loadGetInitialProps; }, normalizeRepeatedSlashes: function() { return normalizeRepeatedSlashes; }, stringifyError: function() { return stringifyError; } }); const WEB_VITALS = [ 'CLS', 'FCP', 'FID', 'INP', 'LCP', 'TTFB' ]; function execOnce(fn) { let used = false; let result; return function() { for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){ args[_key] = arguments[_key]; } if (!used) { used = true; result = fn(...args); } return result; }; } // Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 // Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/; const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url); function getLocationOrigin() { const { protocol, hostname, port } = window.location; return protocol + "//" + hostname + (port ? ':' + port : ''); } function getURL() { const { href } = window.location; const origin = getLocationOrigin(); return href.substring(origin.length); } function getDisplayName(Component) { return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown'; } function isResSent(res) { return res.finished || res.headersSent; } function normalizeRepeatedSlashes(url) { const urlParts = url.split('?'); const urlNoQuery = urlParts[0]; return urlNoQuery // first we replace any non-encoded backslashes with forward // then normalize repeated forward slashes .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? "?" + urlParts.slice(1).join('?') : ''); } async function loadGetInitialProps(App, ctx) { if ("TURBOPACK compile-time truthy", 1) { var _App_prototype; if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) { const message = '"' + getDisplayName(App) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.'; throw new Error(message); } } // when called from _app `ctx` is nested in `ctx` const res = ctx.res || ctx.ctx && ctx.ctx.res; if (!App.getInitialProps) { if (ctx.ctx && ctx.Component) { // @ts-ignore pageProps default return { pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx) }; } return {}; } const props = await App.getInitialProps(ctx); if (res && isResSent(res)) { return props; } if (!props) { const message = '"' + getDisplayName(App) + '.ge