1import{o as e}from"./DAXXjFlN.chunk.js";import{t}from"./CMDJWWg3.chunk.js";import{_ as n,a as r,u as i}from"./BftnFbcr.chunk.js";import"./DFZS3Ffo.chunk.js";import{n as a}from"./BVnMI-dl.chunk.js";import{t as o}from"./DZX1tZ-D2.chunk.js";import{n as s,r as c}from"./BRcHS92O2.chunk.js";var l=e(t()),u={[c.Banners]:`banner`,[c.Thumbnails]:`thumbnail`},d={[c.Banners]:`banners`,[c.Thumbnails]:`thumbnails`,[c.TallPosters]:`tallPosters`,[c.Covers]:`covers`,[c.Avatars]:`avatars`},f={categoryMapper:e=>`/v1/category-map/${e}`},p={createUrl(e,t){return p._createUrl(e,t)},createBannerUrl(e,t,n){return e&&e.url?p._createUrl(e.url,n):p._createCategoryMappedUrl(t,n)},createResourceImage(e,t,n){return p._createUrl(e,{url:t,...n})},Rfc3986EncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl(e,t){let{fallbackBaseUrl:n,fallbackCategoryName:r,type:i}=e,a=o.safeUrlConcat(n,`${f.categoryMapper(u[i])}`),s={name:p.Rfc3986EncodeURIComponent(r),...t};return p._createUrl(a,s)},_createUrl(e,t){if(!e)return;if(a.isEmpty(t))return e;let n=l.default.param(t),r=e.indexOf(`?`)===-1?`?`:`&`,i=e;return i.endsWith(`/`)&&(i=i.slice(0,-1)),i+`${r}${n}`},legacyCreateThumbnailUrl(e,t){if(!e)return``;let n;if(!e||(n=e instanceof r?e.get(`url`):typeof e==`string`?e:e.url,!n))return;let i={size:s.Small,bgColor:`000`,...t};return p._createUrl(n,i)},getDisplayImageFromObject(e){return e?`tallPoster`in e&&e.tallPoster?.url?e.tallPoster:`cover`in e&&e.cover?.url?e.cover:`thumbnail`in e&&e.thumbnail?.url?e.thumbnail:`_parentVideo`in e&&e._parentVideo?.thumbnail?.url?e._parentVideo.thumbnail:null:null},getUrlById(e,t,r,a){d[t]||n.throw(new i(`ImageType:${t} not supported, please add it to \'ImageApiImageTypes\'`));let s=o.safeUrlConcat(e,`v2/${d[t]}/${r}`);return o.urlBuilder(s,{size:a})}};export{p as t}; 2//# sourceMappingURL=Bs2PKr1I2.chunk.js.map
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.