function identicon(t,e=50,i=50){const n=t.split("").reduce(((t,e)=>16777619*((t^e.charCodeAt(0))>>>0)),2166136261);const s=n/16777619%18*20;return[...Array(t?25:0)].reduce(((t,e,i)=>n%(16-i%15)<4?t+``:t),``)+""} function generate_avatar(handle) { element.src = URL.createObjectURL( new Blob([identicon(handle)], { type: 'image/svg+xml;charset=utf8' } )); }