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

// Let's find hotspot-profiles endpoint or any related React component that might have forms.
let idx = 0;
while (true) {
  idx = content.indexOf("hotspot-profiles", idx);
  if (idx === -1) break;
  console.log(`=== Found "hotspot-profiles" at index ${idx} ===`);
  console.log(content.substring(idx - 1000, idx + 2000));
  console.log('\n----------------------------------------\n');
  idx += "hotspot-profiles".length;
}
