function e(e){let t=e.trim();if(!t)return[];let n=t.startsWith(`//`)?`https:${t}`:t,r=[];if(/\.heic(\?|$)/i.test(n)&&(r.push(n.replace(/\.heic(\?.*)?$/i,`.jpg$1`)),r.push(`${n.split(`?`)[0]}.jpg`)),r.push(n),!/_q90\.jpg/i.test(n)&&/\.(jpg|jpeg|png|webp)(\?|$)/i.test(n)){let e=n.split(`?`)[0];r.push(`${e}_q90.jpg`)}let i=new Set;return r.filter(e=>!e||i.has(e)?!1:(i.add(e),!0))}export{e as t};