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

// Search for t4 definition. We know t4 is used like t4(b) or t4(something)
// Let's find occurrences of t4 = or function t4
const keywords = [
  'const t4',
  'function t4',
  't4='
];

keywords.forEach(kw => {
  let idx = 0;
  while ((idx = content.indexOf(kw, idx)) !== -1) {
    console.log(`Found "${kw}" at index ${idx}:`);
    console.log(content.substring(idx - 100, idx + 200));
    console.log('----------------------------');
    idx += kw.length;
  }
});
