/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@next/bundle-analyzer@16.2.4/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
module.exports=({enabled:e=!0,logLevel:n,openAnalyzer:a,analyzerMode:t}={})=>(r={})=>{if(!e)return r;if(process.env.TURBOPACK)return console.warn("The Next Bundle Analyzer is not compatible with Turbopack builds, no report will be generated.\n\nConsider trying the new Turbopack analyzer via `next experimental-analyze`.\n\nSee https://nextjs.org/docs/app/guides/package-bundling for more information\n\nTo run this analysis pass the `--webpack` flag to `next build`"),r;const l="json"===t?".json":".html";return Object.assign({},r,{webpack(e,o){const{BundleAnalyzerPlugin:i}=require("webpack-bundle-analyzer");return e.plugins.push(new i({analyzerMode:t||"static",logLevel:n,openAnalyzer:a,reportFilename:o.nextRuntime?`../${"nodejs"===o.nextRuntime?"../":""}analyze/${o.nextRuntime}${l}`:`./analyze/client${l}`})),"function"==typeof r.webpack?r.webpack(e,o):e}})};
//# sourceMappingURL=/sm/fcc609a030a879777d4e024ece4db406a02cd90e75ec59a9ae0bda66d6ec1685.map