{"version":3,"sources":["../../src/export/index.ts"],"names":["ExportError","exportAppImpl","exportApp","divideSegments","number","segments","result","dividedNumber","Math","floor","push","createProgress","total","label","Error","currentSegmentTotal","shift","currentSegmentCount","lastProgressOutput","Date","now","curProgress","progressSpinner","createSpinner","spinner","frames","interval","isFinished","newText","Log","prefixes","event","info","process","stdout","isTTY","text","console","log","stop","code","setupWorkers","options","nextConfig","exportPageWorker","pages","app","exportAppPageWorker","end","endWorker","Promise","resolve","threads","experimental","cpus","silent","buildExport","timeout","staticPageGenerationTimeout","infoPrinted","worker","Worker","require","onRestart","_method","path","attempts","warn","maxRetries","numWorkers","enableWorkerThreads","workerThreads","exposedMethods","default","dir","span","traceChild","traceFn","loadEnvConfig","traceAsyncFn","loadConfig","PHASE_EXPORT","distDir","join","isExportOutput","output","isInvokedFromCli","hasOutdirFromCli","existsSync","serverActions","telemetry","Telemetry","record","eventCliSession","webpackVersion","cliCommand","isSrcDir","hasNowJson","findUp","cwd","isCustomServer","turboFlag","pagesDir","appDir","subFolders","trailingSlash","buildIdFile","BUILD_ID_FILE","customRoutes","filter","config","hasNextSupport","length","buildId","fs","readFile","pagesManifest","SERVER_DIRECTORY","PAGES_MANIFEST","prerenderManifest","PRERENDER_MANIFEST","appRoutePathManifest","APP_PATH_ROUTES_MANIFEST","err","isError","undefined","excludedPrerenderRoutes","Set","Object","keys","defaultPathMap","hasApiRoutes","page","isAPIRoute","dynamicRoutes","add","mapAppRouteToPage","Map","pageName","routePath","entries","set","isAppPageRoute","routes","_isAppDir","outDir","outdir","rm","recursive","force","mkdir","writeFile","EXPORT_DETAIL","formatManifest","version","outDirectory","success","recursiveCopy","CLIENT_STATIC_FILES_PATH","exportPathMap","defaultMap","i18n","images","loader","unoptimized","isNextImageImported","EXPORT_MARKER","then","JSON","parse","catch","renderOpts","previewProps","preview","nextExport","assetPrefix","replace","dev","basePath","canonicalBase","amp","ampSkipValidation","skipValidation","ampOptimizerConfig","optimizer","locales","locale","defaultLocale","domainLocales","domains","disableOptimizedLoading","supportsDynamicHTML","crossOrigin","optimizeCss","nextConfigOutput","nextScriptWorkers","optimizeFonts","largePageDataBytes","serverComponents","hasAppDir","serverActionsBodySizeLimit","nextFontManifest","NEXT_FONT_MANIFEST","serverActionsManifest","SERVER_REFERENCE_MANIFEST","strictNextHead","deploymentId","serverRuntimeConfig","publicRuntimeConfig","runtimeConfig","globalThis","__NEXT_DATA__","exportMap","exportPaths","map","denormalizePagePath","normalizePagePath","filteredPaths","route","fallbackEnabledPages","prerenderInfo","fallback","size","SSG_FALLBACK_EXPORT_ERROR","hasMiddleware","middlewareManifest","MIDDLEWARE_MANIFEST","middleware","yellow","bold","progress","statusMessage","pagesDataDir","ampValidations","publicDir","CLIENT_PUBLIC_FILES_PATH","workers","results","all","pathMap","exportPage","pageExportSpan","setAttribute","ampValidatorPath","validator","parentSpanId","id","httpAgentOptions","debugOutput","isrMemoryCacheSize","fetchCache","fetchCacheKeyPrefix","incrementalCacheHandlerPath","enableExperimentalReact","needsExperimentalReact","errorPaths","renderError","hadValidationError","collector","byPath","byPage","ssgNotFoundPaths","validation","errors","get","revalidate","metadata","ssgNotFound","durations","durationsByPath","duration","endWorkerPromise","srcRoute","appPageName","isAppPath","Boolean","isAppRouteHandler","isAppRouteRoute","notFoundRoutes","includes","pagePath","getPagePath","distPagesDir","slice","split","orig","handlerSrc","handlerDest","dirname","copyFile","htmlDest","sep","ampHtmlDest","jsonDest","htmlSrc","jsonSrc","formatAmpMessages","sort","flush","nextExportSpan"],"mappings":";;;;;;;;;;;;;;;;IAgJaA,WAAW;eAAXA;;IA+DSC,aAAa;eAAbA;;IAgrBtB,OAUC;eAV6BC;;;4BAt3BD;+DACV;oBACwB;QAEpC;wBAEgB;sBACqB;uBACV;6DAEb;gEACK;2BACgB;+BACZ;4BAevB;+DACgB;wBAES;wBACD;yBACL;mCACQ;qCACE;qBACN;4BACH;yBACC;iCAII;gCACD;gEACX;wCACmB;gCACR;;;;;;;;;;;;;;;;;;;;;;;;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