!function(){var e,t,n,r,i,o,s,a={5630:function(e,t,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={exports:{}};return a[e].call(n.exports,n,n.exports,u),n.exports}u.m=a,u.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},u.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);u.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return n[e]}}));return o.default=function(){return n},u.d(i,o),i},u.d=function(e,t){for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.f={},u.e=function(e){return Promise.all(Object.keys(u.f).reduce((function(t,n){return u.f[n](e,t),t}),[]))},u.u=function(e){return(390===e?"swiper":e)+"."+{279:"eaf0dc5c7f63a13ef5c0",390:"a83b8637bd9897c6cf36"}[e]+".js"},u.miniCssF=function(e){return"swiper.a83b8637bd9897c6cf36.css"},u.miniCssF=(n=u.miniCssF,function(e){var t="rtl"===document.dir,r=n(e);return t?r.replace(".css",".rtl.css"):r}),u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},i="Jetpack:",u.l=function(e,t,n,o){if(r[e])r[e].push(t);else{var s,a;if(void 0!==n)for(var c=document.getElementsByTagName("script"),l=0;l0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new r,A=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new O(t,n,this);k.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){A.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var M=void 0!==o.ResizeObserver?o.ResizeObserver:A;var j=window.wp.escapeHtml;const x="wp-block-jetpack-slideshow_autoplay-paused";function T(e){S(e),C(e);document.querySelector("body").dispatchEvent(new Event("jetpack-lazy-images-load")),e.el.querySelector(".wp-block-jetpack-slideshow_button-pause").addEventListener("click",(function(){e.el&&(e.el.classList.contains(x)?(e.el.classList.remove(x),e.autoplay.start(),this.setAttribute("aria-label","Pause Slideshow")):(e.el.classList.add(x),e.autoplay.stop(),this.setAttribute("aria-label","Play Slideshow")))}))}function S(e){if(!e||!e.el)return;const t=e.el.querySelector('.swiper-slide[data-swiper-slide-index="0"] img');if(!t)return;const n=t.clientWidth/t.clientHeight,r=Math.max(Math.min(n,1.7777777777777777),1),i="undefined"!=typeof window?.8*window.innerHeight:600,o=Math.min(e.width/r,i),s=`${Math.floor(o)}px`,a=`${Math.floor(o/2)}px`;e.el.classList.add("wp-swiper-initialized"),e.wrapperEl.style.height=s,e.el.querySelector(".wp-block-jetpack-slideshow_button-prev").style.top=a,e.el.querySelector(".wp-block-jetpack-slideshow_button-next").style.top=a}function C(t){(0,e.forEach)(t.slides,((e,n)=>{e.setAttribute("aria-hidden",n===t.activeIndex?"false":"true"),n===t.activeIndex?e.setAttribute("tabindex","-1"):e.removeAttribute("tabindex")})),function(e){const t=e.slides[e.activeIndex];if(!t)return;const n=t.getElementsByTagName("FIGCAPTION")[0],r=t.getElementsByTagName("IMG")[0];e.a11y.liveRegion&&(e.a11y.liveRegion[0].innerHTML=n?n.innerHTML:(0,j.escapeHTML)(r.alt))}(t)}function L(t){(0,e.forEach)(t.pagination.bullets,(e=>{e.addEventListener("click",(()=>{const e=t.slides[t.realIndex];setTimeout((()=>{e.focus()}),500)}))}))}"undefined"!=typeof window&&n()((function(){const t=document.getElementsByClassName("wp-block-jetpack-slideshow");(0,e.forEach)(t,(t=>{if("true"===t.getAttribute("data-jetpack-block-initialized"))return;const{autoplay:n,delay:r,effect:i}=t.dataset,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches,s=n&&!o,a=t.getElementsByClassName("swiper-container")[0];let c=null;(async function(t=".swiper-container",n={},r={}){const i={effect:"slide",grabCursor:!0,init:!0,initialSlide:0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{bulletElement:"button",clickable:!0,el:".swiper-pagination",type:"bullets"},preventClicks:!1,preventClicksPropagation:!1,releaseFormElements:!1,setWrapperSize:!0,threshold:5,touchStartPreventDefault:!1,on:(0,e.mapValues)(r,(e=>function(){e(this)}))},[{default:o}]=await Promise.all([Promise.all([u.e(279),u.e(390)]).then(u.t.bind(u,2788,23)),Promise.all([u.e(279),u.e(390)]).then(u.bind(u,5373))]);return new o(t,(0,e.merge)({},i,n))})(a,{autoplay:!!s&&{delay:1e3*r,disableOnInteraction:!1},effect:i,init:!0,initialSlide:0,loop:!0,keyboard:{enabled:!0,onlyInViewport:!0}},{init:T,imagesReady:S,paginationRender:L,transitionEnd:C}).then((e=>{new M((()=>{c&&(cancelAnimationFrame(c),c=null),c=requestAnimationFrame((()=>{S(e),e.update()}))})).observe(e.el)})).catch((()=>{t.querySelector(".wp-block-jetpack-slideshow_container").classList.add("wp-swiper-initialized")})),t.setAttribute("data-jetpack-block-initialized","true")}))}))}();var d=window;for(var f in l)d[f]=l[f];l.__esModule&&Object.defineProperty(d,"__esModule",{value:!0})}();