`;
function lS(){document.getElementById('ia').value=SMP;onI();}
async function pasteIn(){try{const t=await navigator.clipboard.readText();document.getElementById('ia').value=t;onI();}catch(e){}}
async function cpO(ev){if(!oD)return;if(await cpT(oD)){const b=ev.currentTarget;b.style.color='var(--a)';setTimeout(()=>b.style.color='',900);}}
function dlF(fn){if(!oD)return;const a=document.createElement('a');a.href=URL.createObjectURL(new Blob([oD],{type:'text/html'}));a.download=fn;a.click();}
document.addEventListener('keydown',e=>{if((e.ctrlKey||e.metaKey)&&e.key==='Enter'){e.preventDefault();fmt();}});