\s{1,}<"),e=e.replace(/\s{2,}/g," "),e.replace(u,encodeURIComponent)}(function(e){return e.indexOf("http://www.w3.org/2000/svg")<0&&(e=e.replace(/{e.addEventListener("input",(function(){v=this.value,p=m(),h()}))})),y.addEventListener("click",(()=>{r.value="%3Csvg width='400' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25' fill='skyblue' /%3E%3Ccircle cx='100' cy='50' r='40' fill='yellow' /%3E%3Ccircle cx='100' cy='50' r='45' fill='none' stroke='orange' stroke-width='5' /%3E%3Cellipse cx='250' cy='60' rx='40' ry='20' fill='s' /%3E%3Cellipse cx='290' cy='60' rx='40' ry='20' fill='s' /%3E%3Cellipse cx='330' cy='60' rx='40' ry='20' fill='s' /%3E%3Crect x='0' y='150' width='100%25' height='50' fill='green' /%3E%3C/svg%3E",f(),h()})),o.forEach((e=>{i||E(e),e.addEventListener("click",(function(){E(this),c.style.background=i}))}));const w=t.getElementById("copy-result-button");if(w.addEventListener("click",(function(l){const r=t.getElementById("plaintext");r.setSelectionRange(0,99999),navigator.clipboard.writeText(r.value),w.focus(),showToast(e.copySuccess,2500)})),s){const e="dropzone--active";t.addEventListener("dragover",(t=>{t.preventDefault(),s.classList.add(e)})),s.addEventListener("dragleave",(()=>{s.classList.remove(e)})),s.addEventListener("o",(t=>{t.preventDefault();const r=t.dataTransfer,n=new FileReader,c=r.files[0];"image/svg+xml"==c.type&&(n.readAsText(c),n.onload=()=>{l.value=n.result,h()}),s.classList.remove(e)}))}}))