{x.push(`${e}_${z[e]}`)}),”image”===e&&config.imgSettings&&config.imgSettings[p]&&config.imgSettings[p].length&&x.push(…config.imgSettings[p]),config.disableAutoResize||z.w||z.h||x.push(`mxw_${_}`),c&&x.push(c),config.format&&x.push(`f_${config.format}`);var I=x.join(“,”);return`${config.mLinkBaseUrl}/${config.clientId}/${g}/${I}${f}`}function p(e,t){var i=”image”===e?we:ye;return`${config.mLinkBaseUrl}/${config.clientId}/${e}/m_blur${i?`,${i}`:””}/${t}`}function h(e){if(e.hasAttribute(“data-speedsize-src”)||e.hasAttribute(“data-speedsize-srcset”)){if(e.hasAttribute(“data-speedsize-srcset”)&&(e.srcset=e.getAttribute(“data-speedsize-srcset”)),e.hasAttribute(“data-speedsize-src”)&&(e.src=f(“image”,e.getAttribute(“data-speedsize-src”),e.getAttribute(“data-speedsize-width”),null,e.getAttribute(“data-speedsize-params”))),e.hasAttribute(“data-speedsize-width”)){const t=e.getAttribute(“data-speedsize-width”);t&&e.setAttribute(“width”,t)}if(e.hasAttribute(“data-speedsize-height”)){const t=e.getAttribute(“data-speedsize-height”);t&&e.setAttribute(“height”,t)}e.setAttribute(“data-processed”,”true”)}}function b(e){if(e=te[te.length-1])return te[te.length-1];for(var t=te.length-2;t>=0;t–)if(e>=te[t])return te[t+1]}function m(e){if(!e||0===e.indexOf(“data:image”))return!1;var t=new URL(e,s).hostname;return t===d||!t.endsWith(window.location.hostname)&&0!==e.indexOf(window.location.origin)}function v(e){if(!e)return null;var t=parseInt(e,10);return e.endsWith(“px”)?t:e.endsWith(“vw”)?parseInt(t*c/100,10):e.endsWith(“vh”)?parseInt(t*g/100,10):null}function A(e){if(!e||”string”!=typeof e)return null;for(var t=null,i=e.split(“,”),r=0;r=0&&i.top0?h(e):(t.blurredPlaceholders&&(e.src=p(“image”,e.getAttribute(“data-speedsize-src”)),e.addEventListener(“error”,L,{once:!0})),e.isObserved=!0,Ae.observe(e))}));h(e)}else h(e)}}}else window.IntersectionObserver&&t&&!t.native&&(e.isObserved=!0,Ae.observe(e))}function O(e){for(var t=[],i=e;i.indexOf(“url(“)>=0;){var r=i.indexOf(“url(“);if(-1===r)return null;var n=r+”url(“.length,a=i.indexOf(“)”,n),s=i.substring(n,a);if(‘”‘!==s.charAt(0)&&”‘”!==s.charAt(0)||(s=s.substring(1,s.length-1)),0!==s.indexOf(“data:”)&&t.push(s),i=i.substring(a+1),-1===a)break}return t}function z(e,t,i){var r=t||”image”;if(!e)return””;if(e.indexOf(config.mLinkBaseUrl)>=0)return e;for(var n=e.split(“,”),a=0;a=0&&(n.w=a.width.replace(“px”,””),s=!0),a.height.indexOf(“px”)>=0&&(n.h=a.height.replace(“px”,””),s=!0),s&&(n.c=”auto”)}for(var d=t,c=0;c=0&&(t.w=i.width.replace(“px”,””),n=!0),i.height.indexOf(“px”)>=0&&(t.h=i.height.replace(“px”,””),n=!0),n&&(t.c=”auto”)}if(300===(r=Number(r)))return e.setAttribute(“poster”,re),void window.requestAnimationFrame(function(){var i=window.getComputedStyle(e).width.replace(“px”,””);if(i=Number(i),e.src=f(“video”,e.getAttribute(“data-speedsize-src”),parseInt(i,10),t,e.getAttribute(“data-speedsize-params”)),e.hasAttribute(“data-speedsize-poster”)){var r=f(“image”,e.getAttribute(“data-speedsize-poster”),parseInt(i,10),null,e.getAttribute(“data-speedsize-params”));e.setAttribute(“poster”,r)}});if(e.src=f(“video”,e.getAttribute(“data-speedsize-src”),parseInt(r,10),t,e.getAttribute(“data-speedsize-params”)),e.hasAttribute(“data-speedsize-poster”)){var a=f(“image”,e.getAttribute(“data-speedsize-poster”),parseInt(r,10),null,e.getAttribute(“data-speedsize-params”));e.setAttribute(“poster”,a)}}var _,I=window.screen.height;function E(e){if(e.hasAttribute(“src”))return e.getAttribute(“src”);var t=e.querySelectorAll(“source”);if(!t||!t.length)return””;for(var i,r,n,a=t[t.length-1].src,s=0;s=0;){var o=s+t.length,d=i.indexOf(“>”,o),c=i.substring(s,d+1);if(-1===c.indexOf(“data-processed”)){var{srcs:g,srcsets:l}=r(c);n.push(…g),a.push(…l)}s=(i=i.substring(d+1)).indexOf(t)}t=’style=”background: url(‘;for(var u=(i=e).indexOf(t);u>=0;){d=i.indexOf(“)”,u);var f=O(i.substring(u,d+1));f&&f.length&&n.push(…f),u=(i=i.substring(d+1)).indexOf(t)}return{srcUrls:n,srcsetUrls:a}}(n),d=Array.from(new Set(a)),c=Array.from(new Set(s)),g=0;g