{"version":3,"sources":["../../src/client/page-loader.ts"],"names":["addBasePath","interpolateAs","getAssetPathFromRoute","addLocale","isDynamicRoute","parseRelativeUrl","removeTrailingSlash","createRouteLoader","getClientBuildManifest","DEV_CLIENT_PAGES_MANIFEST","DEV_MIDDLEWARE_MANIFEST","PageLoader","getPageList","process","env","NODE_ENV","then","manifest","sortedPages","window","__DEV_PAGES_MANIFEST","pages","promisedDevPagesManifest","fetch","assetPrefix","res","json","catch","err","console","log","Error","getMiddleware","middlewareMatchers","__NEXT_MIDDLEWARE_MATCHERS","__MIDDLEWARE_MATCHERS","undefined","__DEV_MIDDLEWARE_MATCHERS","promisedMiddlewareMatchers","buildId","matchers","getDataHref","params","asPath","href","locale","pathname","hrefPathname","query","search","asPathname","route","getHrefForSlug","path","dataRoute","skipInterpolation","result","_isSsg","promisedSsgManifest","has","loadPage","routeLoader","loadRoute","page","component","mod","exports","styleSheets","styles","map","o","text","content","error","prefetch","constructor","Promise","resolve","__SSG_MANIFEST","__SSG_MANIFEST_CB"],"mappings":"AAGA,SAASA,WAAW,QAAQ,kBAAiB;AAC7C,SAASC,aAAa,QAAQ,4CAA2C;AACzE,OAAOC,2BAA2B,uDAAsD;AACxF,SAASC,SAAS,QAAQ,eAAc;AACxC,SAASC,cAAc,QAAQ,wCAAuC;AACtE,SAASC,gBAAgB,QAAQ,gDAA+C;AAChF,SAASC,mBAAmB,QAAQ,mDAAkD;AACtF,SAASC,iBAAiB,EAAEC,sBAAsB,QAAQ,iBAAgB;AAC1E,SACEC,yBAAyB,EACzBC,uBAAuB,QAClB,0BAAyB;AAkBjB,MAAMC;IA0BnBC,cAAc;QACZ,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;YACzC,OAAOP,yBAAyBQ,IAAI,CAAC,CAACC,WAAaA,SAASC,WAAW;QACzE,OAAO;YACL,IAAIC,OAAOC,oBAAoB,EAAE;gBAC/B,OAAOD,OAAOC,oBAAoB,CAACC,KAAK;YAC1C,OAAO;gBACL,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