!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){!function(){var e,t=!1,n=!1,r=Array.from(document.querySelectorAll("script[data-loading-method][data-src]")),o=r.filter(function(e){return"idle"===e.dataset.loadingMethod}),a=r.filter(function(e){return"user-interaction"===e.dataset.loadingMethod}),i=document.querySelectorAll("link[data-href]");if(r.length||i.length){var c=[{event:"click",target:document},{event:"mousemove",target:document},{event:"keydown",target:document},{event:"touchstart",target:document},{event:"touchmove",target:document},{event:"scroll",target:window}],u=function(e){c.forEach(function(t){return t.target.addEventListener(t.event,e,{passive:!0})})},l=function(e){c.forEach(function(t){return t.target.removeEventListener(t.event,e)})};window.requestIdleCallback=window.requestIdleCallback||function(e){return setTimeout(function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)};var d=[],s=function(e){return d.push(e)};document.addEventListener("click",s,{passive:!0});var f=[{event:"readystatechange",target:document},{event:"DOMContentLoaded",target:document},{event:"load",target:window}];o.length&&window.requestIdleCallback(function(){return v(o)}),a.length&&(u(g),e=setTimeout(g,5e3)),u(function e(){i.forEach(function(e){e.href=e.getAttribute("data-href"),e.removeAttribute("data-href")}),l(e)})}function v(e){e.forEach(function(e){var t=e.getAttribute("data-src");if(!t.includes("data:")){var n=document.createElement("link");n.rel="preload",n.as="script",n.href=t,document.head.appendChild(n)}}),function r(o){if(o>e.length-1)n||(window.jQuery&&t&&window.jQuery.holdReady(!1),f.forEach(function(e){return e.target.dispatchEvent(new Event(e.event))}),document.removeEventListener("click",s),d.forEach(function(e){var t;return null==(t=e.target)?void 0:t.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}))}),d.length=0,n=!0);else{var a=e[o].getAttribute("data-src");window.jQuery&&"function"==typeof window.jQuery.holdReady&&!t&&(window.jQuery.holdReady(!0),t=!0),window.requestIdleCallback(function(){var e=document.createElement("script");e.onload=function(){r(o+1)},e.onerror=function(){console.warn("Error loading script:",a),r(o+1)},e.src=a,document.head.appendChild(e)})}}(0)}function g(){e&&clearTimeout(e),l(g),v(a)}}(),[{selector:"video[data-lazy-src],iframe[data-lazy-src]",callback:function(e){if(e.isIntersecting){observer.unobserve(e.target);var t=e.target.getAttribute("data-lazy-src");e.target.setAttribute("src",t)}}},{selector:".flying-press-lazy-bg",callback:function(e){e.isIntersecting&&e.target.classList.remove("flying-press-lazy-bg")}},{selector:'[style*="content-visibility"]',callback:function(e){e.isIntersecting&&(e.target.style.removeProperty("content-visibility"),e.target.style.removeProperty("contain-intrinsic-size"))}}].forEach(function(e){var t=e.selector,n=e.callback,r=new IntersectionObserver(function(e){e.forEach(n)},{rootMargin:"300px"});document.querySelectorAll(t).forEach(function(e){return r.observe(e)})})});