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

const keywords = ['bagi_hasil', 'persen', 'komisi', 'percentage', 'profit_share', 'margin', 'agent_system_config'];
keywords.forEach(kw => {
  let idx = 0;
  let count = 0;
  while ((idx = content.indexOf(kw, idx)) !== -1) {
    count++;
    if (count <= 3) {
      console.log(`Keyword '${kw}' found at ${idx}:`);
      console.log(content.substring(idx - 100, idx + 200));
      console.log('---------------------------');
    }
    idx += kw.length;
  }
  console.log(`Keyword '${kw}': ${count} occurrences`);
  console.log('============================');
});
