1import{af as h}from"./CVbDcFq-.js";const l=t=>{var e;return(e=t==null?void 0:t.split("/").pop())==null?void 0:e.split(".")[0]},I=(t,e)=>(t==null?void 0:t.reduce((g,i)=>{const r=l(i.fileName)??`${e}_${i.main?"main":"alt"+i.sortOrder}`;return{...g,[r]:i}},{}))??{},y=()=>{const{public:{cdnHost:t,cdnAccount:e}}=h();return{getPlpImage:(r,p,c)=>!c||typeof c=="number"?{src:`${t}/s/${e}/${r}_${p?"aset":"set"}/${c??1}`}:{src:`${t}/i/${e}/${r}_${c}`},getPdpImages:async(r,p="",c,u)=>{const a=`${t}/s/${e}/${r}_${u?"aset":"set"}.json`;let m;try{if(m=await $fetch(a),!m.items.length)return[]}catch{return[]}let $=m.items.map(n=>{const{height:s,src:o,width:d}=n;return{alt:p,height:s,src:o==null?void 0:o.replace("http:","https:"),width:d}});if(u){const n=u==="winter"?"summer":"winter";$=$.filter(s=>!s.src.includes(`_${n}`)).sort(s=>s.src.includes(`_${u}`)?-1:0)}const f=I(c,r);return $.map(n=>{var o;const s=l(n.src)??"";return{...n,copyright:(o=f[s])==null?void 0:o.copyright}})}}};export{y as u};
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.