(()=>{"use strict";const e=new WeakMap;let t;function l(){document.querySelectorAll(".wp-block-wccom-gallery-slider").forEach((e=>{c(e)}))}function c(t){var l,c;const r=e.get(t);let o;r&&clearInterval(r);try{o=JSON.parse(t.dataset.customData)}catch(e){o={}}const a=null!==(l=null==t||null===(c=t.dataset)||void 0===c?void 0:c.responsiveImages)&&void 0!==l&&l,n=t.querySelectorAll(".wccom-gallery-slider__images .wp-block-gallery"),s=t.querySelectorAll(".wccom-gallery-slider__indicators .wccom-gallery-slider__indicator"),i=t.querySelector(".wccom-gallery-slider__caption"),d=[];n.forEach((e=>{const t=Array.from(e.querySelectorAll("figure"));if(a){const e=t.filter((e=>{const t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility}));d.push(e)}else d.push(t)}));const g=[];n.forEach((e=>{const t=e.querySelector("figcaption");g.push((null==t?void 0:t.textContent)||"")}));let u=0,v=0,y=null;function m(){var e;n.forEach(((e,t)=>{e.classList.remove("active"),d[t].forEach((e=>e.classList.remove("active")))})),n[u].classList.add("active"),d[u][v].classList.add("active"),i.textContent=g[u]||"";const t=n[u].querySelector(".wccom-gallery-slider__overlay-rectangle");t&&t.remove();const l="".concat(u,"-").concat(v),c=null===(e=o)||void 0===e||null===(e=e.overlay)||void 0===e?void 0:e[l];if(y&&(clearTimeout(y),y=null),c){const e='\n\t\t\t\n\t\t\t\t\x3c!-- Border first (will be behind) --\x3e\n\t\t\t\t\n\t\t\t\t\x3c!-- Foreground elements --\x3e\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t'),t=c.delay||0;y=setTimeout((()=>{const t=n[u];t&&t.insertAdjacentHTML("beforeend",e)}),t)}s.forEach(((e,t)=>{e.classList.toggle("active",t===u)}))}function h(){var l;const c=(null==t||null===(l=t.dataset)||void 0===l?void 0:l.interval)||3e3;e.get(t)&&clearInterval(e.get(t));const r=setInterval((()=>{const e=d[u].length;v++,v>=e&&(v=0,u=(u+1)%n.length),m()}),Number(c));e.set(t,r)}m(),h(),t.addEventListener("click",(l=>{if(y&&(clearTimeout(y),y=null),l.target.classList.contains("wccom-gallery-slider__indicator")){const e=l.target.dataset.gallery;return u=parseInt(e,10),v=0,m(),void h()}if(l.target.closest(".wccom-gallery-slider__images")){clearInterval(e.get(t));const l=d[u].length;v++,v>=l&&(v=0,u=(u+1)%n.length),m(),h()}}))}"loading"!==document.readyState?l():document.addEventListener("DOMContentLoaded",l),window.addEventListener("resize",(()=>{clearTimeout(t),t=setTimeout((()=>{document.querySelectorAll(".wccom-gallery-slider--resizable").forEach((t=>{if(t.dataset.responsiveImages){const l=e.get(t);l&&clearInterval(l),t.querySelectorAll(".wccom-gallery-slider__overlay-rectangle").forEach((e=>e.remove())),c(t)}}))}),250)}))})();; !function(){function e(){const e=document.querySelectorAll(".wccom-effect-ticker-scroll > * ");if(1>e.length)return;for(let t=0;to;o++){const o=e[t].cloneNode(!0);c.appendChild(o)}}document.querySelectorAll(".wccom-effect-ticker-scroll-container").forEach((e=>{const t=e.firstElementChild.cloneNode(!0);e.appendChild(t)}));let t=0;document.addEventListener("scroll",(function(){const e=window.scrollY||document.documentElement.scrollTop,c=document.querySelectorAll(".animate-on-scroll"),o=e>t?"right":"left";t=0>=e?0:e,c.forEach((e=>{"right"===o?e.scrollLeft+=5:e.scrollLeft-=5}))}))}"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)}();; !function(){let e,c;function n(){const n=document.querySelectorAll(".wccom-effect-fade-in-on-scroll > *");if(!(1>n.length||c)){for(let e=0;ec.bottom||c.top>parseInt(window.innerHeight))}function f(e){e.classList.remove("wccom-effect-fade-in-on-scroll__child"),e.classList.add("wccom-effect-fadeInUp"),1>document.querySelectorAll(".wccom-effect-fade-in-on-scroll__child").length&&window.removeEventListener("scroll",o)}document.addEventListener("DOMContentLoaded",n),e=setInterval(n,100)}();;