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

const regex = /"config"|"settings"/g;
let match;
while ((match = regex.exec(content)) !== null) {
  const index = match.index;
  const sub = content.substring(index - 200, index + 300);
  if (sub.includes('children') && (sub.includes('Tab') || sub.includes('nav') || sub.includes('button') || sub.includes('===') || sub.includes('switch'))) {
    console.log(`Found relevant config block at index ${index}:`);
    console.log(sub);
    console.log('--------------------------------------------------');
  }
}
