(function(){"use strict";var a={cache:[],trigger:[],initAll(){var b=document.querySelectorAll(".kadence-splide-slider-init");for(let c=0;c<b.length;c++){const d=b[c],e=parseFloat(d.parentNode.getAttribute("data-slider-speed")),f=parseInt(d.parentNode.getAttribute("data-slider-anim-speed")),g=d.parentNode.getAttribute("data-slider-arrows"),h=d.parentNode.getAttribute("data-slider-dots"),i=d.parentNode.getAttribute("data-slider-auto"),j=d.parentNode.getAttribute("data-slider-auto-scroll"),k=d.parentNode.getAttribute("data-slider-hover-pause"),l=parseInt(d.parentNode.getAttribute("data-slider-scroll")),m=parseInt(d.parentNode.getAttribute("data-columns-xxl")),n=parseInt(d.parentNode.getAttribute("data-columns-xl")),o=parseInt(d.parentNode.getAttribute("data-columns-md")),p=parseInt(d.parentNode.getAttribute("data-columns-sm")),q=parseInt(d.parentNode.getAttribute("data-columns-xs")),r=parseInt(d.parentNode.getAttribute("data-columns-ss")),s=d.parentNode.getAttribute("data-slider-center-mode"),t=d.parentNode.getAttribute("data-slider-type")??"slider",u=parseInt(d.parentNode.getAttribute("data-slider-gap")),v=parseInt(d.parentNode.getAttribute("data-slider-gap-tablet")),w=parseInt(d.parentNode.getAttribute("data-slider-gap-mobile")),x=d.parentNode.getAttribute("data-slider-gap-unit");d.parentNode.classList.add("splide-initial"),d.parentNode.classList.add("kb-splide");let y=void 0===e?7e3:e;const z=void 0!==j&&"true"===j;a.trigger[c]=!1,"true"==i&&!z&&y<(void 0===f?400:f)&&(a.trigger[c]=!0,y+=void 0===f?400:f);let A="ltr",B=m,C=n,D=o,E=p,F=q,G=r;if(document.querySelector("html[dir=\"rtl\"]")&&(A="rtl"),1===l&&(B=1,C=1,D=1,E=1,F=1,G=1),!d.firstChild)return;if(d.firstChild.classList.contains("wpfHidden")&&(d.removeChild(d.firstChild),!d.firstChild))return;d.firstChild.classList.add("splide__list");for(let a=0;a<d.firstChild.children.length;a++)d.firstChild.children[a].classList.add("splide__slide"),d.firstChild.children[a].classList.contains("last")&&d.firstChild.children[a].classList.remove("last");"fluidcarousel"==t&&d.querySelectorAll(".kb-slide-item").forEach(function(a){a.style.maxWidth=d.clientWidth?Math.floor(80/100*d.clientWidth)+"px":"100%"});const H={perPage:m,type:"loop",slideFocus:!1,easing:void 0!==f&&1e3<f?"linear":"cubic-bezier(0.25, 1, 0.5, 1)",pauseOnHover:"false"!=k,autoplay:"false"!=i,interval:y,speed:void 0===f?400:f,arrows:"false"!=g,pagination:"false"!=h,gap:u+x,focus:s&&"false"!==s?"center":0,perMove:B,direction:A,autoWidth:"fluidcarousel"==t,breakpoints:{543:{perPage:r,perMove:G,gap:w+x},767:{perPage:q,perMove:F,gap:w+x},991:{perPage:p,perMove:E,gap:v+x},1199:{perPage:o,perMove:D,gap:v+x},1499:{perPage:n,perMove:C,gap:u+x}}};void 0!==window.splide&&void 0!==window.splide.Extensions&&z&&(H.autoplay=!1,H.autoScroll={speed:y,pauseOnHover:"false"!=k});const I=new Splide(d.parentElement,H);a.cache[c]=I,I.on("mounted",function(){var a=new CustomEvent("splideMounted");d.dispatchEvent(a)}),I.on("overflow",function(a){I.go(0),I.options={arrows:"false"!==g&&a,pagination:"false"!==h&&a,drag:a,clones:a?void 0:0,focus:a?s&&"false"!==s?"center":0:0}}),a.mountSplideObj(I,a.trigger[c],z)}},mountSplideObj(a,b,c){void 0!==window.splide&&void 0!==window.splide.Extensions&&c?a.mount(window.splide.Extensions):a.mount(),b&&a.go("+1")},init(){if("function"==typeof Splide)a.initAll();else var b=setInterval(function(){"function"==typeof Splide&&(a.initAll(),clearInterval(b))},200)}};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a.init):a.init()})();