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

// Find where "Laporan Penjualan" is displayed.
const keywords = ["Laporan Penjualan", "Penjualan Hari Ini", "Live)"];
for (const kw of keywords) {
    let idx = 0;
    while (true) {
        idx = content.indexOf(kw, idx);
        if (idx === -1) break;
        console.log(`Found '${kw}' at index ${idx}:`);
        console.log(content.substring(idx - 150, idx + 400));
        console.log("-----------------------");
        idx += kw.length;
    }
}
