const fs = require('fs');
const files = [
  'dist/assets/index-D9sWWWv_.js.bak-before-deploy-card-removal',
  'dist/assets/index-D9sWWWv_.js.bak-before-owner-mode-fix'
];

files.forEach(file => {
  if (fs.existsSync(file)) {
    const content = fs.readFileSync(file, 'utf8');
    const idx = content.toLowerCase().indexOf('notinsynced');
    if (idx !== -1) {
      console.log(`Found notInSynced in ${file} at ${idx}:`);
      console.log(content.substring(idx - 100, idx + 500));
    } else {
      console.log(`notInSynced not found in ${file}`);
    }
  }
});
