const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const targetIdx = content.indexOf('id:"live-sales-report-container"');
if (targetIdx !== -1) {
  const start = Math.max(0, targetIdx - 3000);
  const end = targetIdx;
  console.log(content.substring(start, end));
} else {
  console.log("Could not find container");
}
