/**
 * @preserve
 * @author    ThemePunch <info@themepunch.com>
 * @link      http://www.themepunch.com/
 * @copyright 2026 ThemePunch
 */
(()=>{"use strict";const t=window.SR7PanZoomPE||{},e=(t,o=0)=>{if(window._tpt&&_tpt.regResource&&_tpt.checkResources)return t();o>400||setTimeout(()=>e(t,o+1),50)};let o=null;const r=(t,e,o)=>{const r=(t=>(t.classList.contains("sr7-hm-live")?t.querySelector("canvas"):null)||t.querySelector("img")||t.querySelector(".wp-block-cover__image-background")||t.querySelector('[style*="background-image"]'))(e);if(!r||!SR7.PANZ)return;const s=Object.assign({},t&&t.draft||{});s.ease||(s.ease=null);const n=SR7.PANZ.frames(Math.max(1e3,t&&t.dur||9e3),s);if(!n||!n.length)return;"visible"===getComputedStyle(e).overflow&&(e.style.overflow="hidden"),r.style.willChange="transform";const c=o.tl=SR7.PANZ.play(r,n,!(!t||!t.loop));c&&"function"==typeof IntersectionObserver&&(c.pause(0),o.io=new IntersectionObserver(e=>{for(const o of e)o.isIntersecting?c.play():t&&t.loop&&c.pause()},{rootMargin:"10%"}),o.io.observe(e))},s=()=>!!(window.SR7&&SR7.PE&&SR7.PE.registerRuntime)&&(SR7.PE.registerRuntime("panzoom",{mount:(s,n)=>{const c='[data-sr7pe~="'+(window.CSS&&CSS.escape?CSS.escape(n):n)+'"]',i=document.querySelector(c);if(!i)return!1;const a={};if((o??=new Promise(o=>{e(()=>{window.SR7??={},SR7.E??={},_tpt.R??={};const e=[];if(!_tpt.gsap&&t.gsap&&(_tpt.regResource({id:"tpgsap",url:t.gsap}),e.push("tpgsap")),!SR7.PANZ&&t.catalog&&(_tpt.regResource({id:"panzoom",url:t.catalog}),e.push("panzoom")),!e.length)return o();_tpt.checkResources(e).then(o).catch(o)})})).then(()=>{try{r(s,i,a)}catch(t){}}),"function"==typeof MutationObserver&&!i.classList.contains("sr7-hm-live")){const t=()=>{try{a.mo.disconnect()}catch(t){}clearTimeout(a.moT)};a.mo=new MutationObserver(()=>{if(i.classList.contains("sr7-hm-live")){t();try{a.io&&a.io.disconnect()}catch(t){}try{a.tl&&a.tl.kill()}catch(t){}a.io=a.tl=null;try{r(s,i,a)}catch(t){}}}),a.mo.observe(i,{attributes:!0,attributeFilter:["class"]}),a.moT=setTimeout(t,1e4)}return a},unmount:t=>{try{t&&t.io&&t.io.disconnect()}catch(t){}try{t&&t.tl&&t.tl.kill()}catch(t){}try{t&&t.mo&&t.mo.disconnect()}catch(t){}t&&t.moT&&clearTimeout(t.moT)}}),!0);if(!s()){let t=0;const e=setInterval(()=>{(s()||++t>200)&&clearInterval(e)},16)}})();