var l=e=>{if(!e)return"";let r=e,o=e.replace(/^\uFEFF/,"").replace(/^\uFFFE/,"").replace(/^\uEFBBBF/,"").replace(/^\u0000\uFEFF/,"").replace(/^\uFFFE0000/,"").replace(/^\u2028/,"").replace(/^\u2029/,"").replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/\s+/g," ").trim().toLowerCase();return process.env.NODE_ENV==="development"&&r!==o&&(console.log(`Normalized key: "${r}" -> "${o}"`),console.log("Original char codes:",Array.from(r).map(a=>a.charCodeAt(0)))),o};export{l as a};
