1const b=["center","top","right","left","bottom","top_right","top_left","bottom_right","bottom_left","faces","face"],g=["pad","fill","scale","crop","thump"];function h(a={},e,p,i,r,c,m="jpg",l="fit",n="",s=-1){if(!/(?:https?:)?\/\/images.ctfassets.net\/.*/i.test(e)&&!/(?:https?:)?\/\/images.(staging.)?contenthub.dev\/.*/i.test(e))return e;let f=e;if(f.startsWith("https:")||(f=`https:${e}`),new URL(f).search!=="")return f;let t="";switch(m){case"webp":{t+="?fm=webp";break}case"png":{t+="?fm=png";break}case"avif":{t+="?fm=avif";break}default:t+="?fm=jpg&fl=progressive"}let o=70;return s===-1&&a&&a.IMAGE_QUALITY&&(s=a.IMAGE_QUALITY),s>=20&&s<=100&&(o=s),b.includes(n)&&(t+=`&f=${n}`),g.includes(l)?t+=`&fit=${l}&q=${o}`:t+=`&fit=fill&q=${o}`,i&&(!c||c>=i)&&(t+=`&h=${i}`),p&&(!r||r>=p)&&(t+=`&w=${Math.min(4e3,p)}`),f+t}export{h as o};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.