(()=>{var e={113(e){document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll(".modern-video-block");if(!e.length)return;const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;e.forEach(e=>{const n=e.querySelector(".modern-video-container");if(!n)return;const o="true"===n.dataset.lazyLoad,s="true"===n.dataset.autoplay,r=n.dataset.sourceType,a=n.querySelector(".play-button"),i=n.querySelector(".video-element"),d=n.querySelector(".video-iframe");function c(){if(n.classList.add("is-playing"),"self"===r&&i)i.play().catch(e=>{console.warn("Autoplay was prevented:",e)});else if(d){const e=d.src;(e.includes("youtube.com")||e.includes("vimeo.com"))&&(e.includes("autoplay=1")||(d.src=e+(e.includes("?")?"&":"?")+"autoplay=1"))}}if(a&&(a.addEventListener("click",function(e){e.preventDefault(),c()}),a.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),c())})),o&&"IntersectionObserver"in window){const e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(l(),e.unobserve(t.target))})},{rootMargin:"50px",threshold:.1});e.observe(n)}else l();function l(){d&&(d.classList.add("loaded"),s&&!t&&setTimeout(()=>{n.classList.add("is-playing")},1e3)),i&&(i.classList.add("loaded"),s&&!t&&i.play().catch(e=>{console.warn("Autoplay was prevented:",e),a&&a.classList.remove("hidden")}).then(()=>{n.classList.add("is-playing")}),i.addEventListener("play",()=>{n.classList.add("is-playing")}),i.addEventListener("pause",()=>{n.classList.remove("is-playing")}),i.addEventListener("ended",()=>{n.classList.remove("is-playing")}))}s&&o&&!t&&new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&e.intersectionRatio>.5&&c()})},{threshold:.5}).observe(n)}),"undefined"!=typeof YT&&YT.Player&&e.forEach(e=>{const t=e.querySelector(".modern-video-container"),n=t?.querySelector(".video-iframe");n&&n.src.includes("youtube.com")})}),e.exports&&(e.exports={ModernVideoBlock:!0})}},t={};!function n(o){var s=t[o];if(void 0!==s)return s.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}(113)})();