PageSourceSearch

https://easytag.app/cdn/shop/t/48/assets/secondary.js?v=27234076275354468721789993757

js easytag.app collected 2026-10-04 03:13:09 UTC 120,345 bytes, 2 lines download raw bytes

1try{document.querySelector(":focus-visible")}catch{focusVisiblePolyfill()}const defaultDirection=document.currentScript&&document.currentScript.dataset.isRtl==="true"?"rtl":"ltr",isRtl=defaultDirection==="rtl";function focusVisiblePolyfill(){const navKeys=["ARROWUP","ARROWDOWN","ARROWLEFT","ARROWRIGHT","TAB","ENTER","SPACE","ESCAPE","HOME","END","PAGEUP","PAGEDOWN"];let currentFocusedElement=null,mouseClick=null;window.addEventListener("keydown",event=>{navKeys.includes(event.code.toUpperCase())&&(mouseClick=!1)}),window.addEventListener("mousedown",event=>{mouseClick=!0}),window.addEventListener("focus",()=>{currentFocusedElement&&currentFocusedElement.classList.remove("focused"),!mouseClick&&(currentFocusedElement=document.activeElement,currentFocusedElement.classList.add("focused"))},!0)}class ProductRecommendations extends HTMLElement{constructor(){super()}connectedCallback(){const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),this.dataset.loaded!=="true"&&this.loadProducts())};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 400px 0px"}).observe(this)}loadProducts(){this.dataset.loaded!=="true"&&fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");let recommendationsHTML="";if(recommendations&&recommendations.innerHTML.trim().length&&(recommendationsHTML=recommendations.innerHTML,this.dataset.isUpsellBlock==="true"&&!recommendationsHTML.includes("-upsell")&&!recommendationsHTML.includes("data-selected")&&(recommendationsHTML="")),recommendationsHTML.trim().length&&(this.innerHTML=recommendationsHTML,this.dataset.isUpsellBlock==="true")){recommendations.classList.contains("upsells-container--stacked-columns")&&this.classList.add("upsells-container--stacked-columns"),recommendations.classList.contains("side-margins-negative")&&this.classList.add("side-margins-negative"),this.dataset.count=recommendations.dataset.count;const newStyles=getComputedStyle(recommendations),itemCount=getComputedStyle(recommendations).getPropertyValue("--item-count");this.style.setProperty("--item-count",recommendations.dataset.count)}!this.querySelector("slideshow-component")&&this.classList.contains("complementary-products")&&this.remove(),html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded"),this.dataset.loaded="true"}).catch(e=>{console.error(e)})}}customElements.define("product-recommendations",ProductRecommendations);class MenuDrawer extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details"),this.addEventListener("keyup",this.onKeyUp.bind(this)),this.addEventListener("focusout",this.onFocusOut.bind(this)),this.bindEvents()}bindEvents(){this.querySelectorAll("summary").forEach(summary=>summary.addEventListener("click",this.onSummaryClick.bind(this))),this.querySelectorAll("button:not(.menu-drawer__close-menu-btn)").forEach(button=>button.addEventListener("click",this.onCloseButtonClick.bind(this)))}onKeyUp(event){if(event.code.toUpperCase()!=="ESCAPE")return;const openDetailsElement=event.target.closest("details[open]");openDetailsElement&&(openDetailsElement===this.mainDetailsToggle?this.closeMenuDrawer(event,this.mainDetailsToggle.querySelector("summary")):this.closeSubmenu(openDetailsElement))}onSummaryClick(event){const summaryElement=event.currentTarget,detailsElement=summaryElement.parentNode,parentMenuElement=detailsElement.closest(".has-submenu"),isOpen=detailsElement.hasAttribute("open"),reducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)");function addTrapFocus(){trapFocus(summaryElement.nextElementSibling,detailsElement.querySelector("button")),summaryElement.nextElementSibling.removeEventListener("transitionend",addTrapFocus)}detailsElement===this.mainDetailsToggle?(isOpen&&event.preventDefault(),isOpen?this.closeMenuDrawer(event,summaryElement):this.openMenuDrawer(summaryElement),window.matchMedia("(max-width: 990px)")&&document.documentElement.style.setProperty("--viewport-height",`${window.innerHeight}px`)):setTimeout(()=>{detailsElement.classList.add("menu-opening"),summaryElement.setAttribute("aria-expanded",!0),parentMenuElement&&parentMenuElement.classList.add("submenu-open"),!reducedMotion||reducedMotion.matches?addTrapFocus():summaryElement.nextElementSibling.addEventListener("transitionend",addTrapFocus)},100)}openMenuDrawer(summaryElement){setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening")}),summaryElement.setAttribute("aria-expanded",!0),trapFocus(this.mainDetailsToggle,summaryElement),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`)}closeMenuDrawer(event,elementToFocus=!1){event!==void 0&&(this.mainDetailsToggle.classList.remove("menu-opening"),this.mainDetailsToggle.querySelectorAll("details").forEach(detail
1s=>{details.removeAttribute("open"),details.classList.remove("menu-opening")}),this.mainDetailsToggle.querySelectorAll(".submenu-open").forEach(submenu=>{submenu.classList.remove("submenu-open")}),document.body.classList.remove(`overflow-hidden-${this.dataset.breakpoint}`),removeTrapFocus(elementToFocus),this.closeAnimation(this.mainDetailsToggle))}onFocusOut(event){setTimeout(()=>{this.mainDetailsToggle.hasAttribute("open")&&!this.mainDetailsToggle.contains(document.activeElement)&&this.closeMenuDrawer()})}onCloseButtonClick(event){const detailsElement=event.currentTarget.closest("details");this.closeSubmenu(detailsElement)}closeSubmenu(detailsElement){const parentMenuElement=detailsElement.closest(".submenu-open");parentMenuElement&&parentMenuElement.classList.remove("submenu-open"),detailsElement.classList.remove("menu-opening"),detailsElement.querySelector("summary").setAttribute("aria-expanded",!1),removeTrapFocus(detailsElement.querySelector("summary")),this.closeAnimation(detailsElement)}closeAnimation(detailsElement){let animationStart;const handleAnimation=time=>{animationStart===void 0&&(animationStart=time),time-animationStart<400?window.requestAnimationFrame(handleAnimation):(detailsElement.removeAttribute("open"),detailsElement.closest("details[open]")&&trapFocus(detail
1sElement.closest("details[open]"),detailsElement.querySelector("summary")))};window.requestAnimationFrame(handleAnimation)}}customElements.define("menu-drawer",MenuDrawer);class HeaderDrawer extends MenuDrawer{constructor(){super(),this.querySelectorAll(".menu-drawer__close-menu-btn").forEach(button=>button.addEventListener("click",this.closeButtonClick.bind(this)))}openMenuDrawer(summaryElement){this.header=this.header||document.querySelector(".section-header"),this.borderOffset=this.borderOffset||this.closest(".header-wrapper").classList.contains("header-wrapper--border-bottom")?1:0,document.documentElement.style.setProperty("--header-bottom-position",`${parseInt(this.header.getBoundingClientRect().bottom-this.borderOffset)}px`),this.header.classList.add("menu-open"),setTimeout(()=>{this.mainDetailsToggle.classList.add("menu-opening")}),summaryElement.setAttribute("aria-expanded",!0),trapFocus(this.mainDetailsToggle,summaryElement),document.body.classList.add(`overflow-hidden-${this.dataset.breakpoint}`)}closeMenuDrawer(event,elementToFocus){super.closeMenuDrawer(event,elementToFocus),this.header.classList.remove("menu-open")}closeButtonClick(event){this.closeMenuDrawer(event,this.mainDetailsToggle.querySelector("summary")),this.querySelector(".header__icon--menu[aria-expanded=true]").setAttribute("aria-expanded","false")}}customElements.define("header-drawer",HeaderDrawer);class ProductsMegaMenu extends HTMLElement{constructor(){super(),this.details=this.querySelector('details[id^="ProductsMegaMenu-"]'),this.mainLink=this.querySelector("summary.header__menu-item"),this.body=this.querySelector(".products-mega-menu__body"),this.overlay=this.querySelector(".products-mega-menu__overlay"),this.items=this.querySelectorAll('[id^="ProductsMegaMenu-Item"]'),this.links=this.querySelectorAll('[id^="ProductsMegaMenu-Link"]'),this.mainLink.addEventListener("mouseover",this.openMenu.bind(this)),this.overlay.addEventListener("mouseover",this.closeMenu.bind(this)),this.overlay.addEventListener("click",this.closeMenu.bind(this)),document.addEventListener("click",this.outsideClick.bind(this)),this.links.forEach(link=>{link.addEventListener("mouseover",this.displayContent.bind(this))})}displayContent(event){this.items.forEach(item=>{item.classList.remove("products-mega-menu__item--active")}),event.target.closest('[id^="ProductsMegaMenu-Item"]').classList.add("products-mega-menu__item--active")}openMenu(){document.querySelectorAll('[id^="Details-HeaderMenu"], [id^="ProductsMegaMenu-"]').forEach(menu=>{menu.removeAttribute("open")}),this.details.setAttribute("open","")}closeMenu(){this.details.removeAttribute("open")}outsideClick(event){this.details.hasAttribute("open")&&event.target!=this.body&&(this.body.contains(event.target)||this.closeMenu())}}customElements.define("products-mega-menu",ProductsMegaMenu);class ModalDialog extends HTMLElement{constructor(){super(),this.querySelector('[id^="ModalClose-"]').addEventListener("click",this.hide.bind(this,!1)),this.addEventListener("keyup",event=>{event.code.toUpperCase()==="ESCAPE"&&this.hide()}),this.classList.contains("media-modal")?this.addEventListener("pointerup",event=>{event.pointerType==="mouse"&&!event.target.closest("deferred-media, product-model")&&this.hide()}):this.addEventListener("click",event=>{event.target===this&&this.hide()})}connectedCallback(){this.moved||(this.moved=!0,document.body.appendChild(this))}show(opener){this.openedBy=opener;const popup=this.querySelector(".template-popup");document.body.classList.add("overflow-hidden"),this.setAttribute("open",""),popup&&popup.loadContent(),trapFocus(this,this.querySelector('[role="dialog"]')),window.pauseAllMedia()}hide(){document.body.classList.remove("overflow-hidden"),document.body.dispatchEvent(new CustomEvent("modalClosed")),this.removeAttribute("open"),removeTrapFocus(this.openedBy),window.pauseAllMedia()}}customElements.define("modal-dialog",ModalDialog);class ModalOpener extends HTMLElement{constructor(){super();const button=this.querySelector("button:not(.internal-video__play, .internal-video__sound-btn)");button&&button.addEventListener("click",()=>{const modal=document.querySelector(this.getAttribute("data-modal"));modal&&modal.show(button)})}}customElements.define("modal-opener",ModalOpener);class DeferredMedia extends HTMLElement{constructor(){super();const poster=this.querySelector('[id^="Deferred-Poster-"]');poster&&poster.addEventListener("click",this.loadContent.bind(this))}loadContent(focus=!0){if(window.pauseAllMedia(),!this.getAttribute("loaded")){const content=document.createElement("div");content.appendChild(this.querySelector("template").content.firstElementChild.cloneNode(!0)),this.setAttribute("loaded",!0);const deferredElement=this.appendChild(content.querySelector("video, model-viewer, iframe"));focus&&deferredElement.focus()}}}customElements.define("deferred-media",DeferredMedia);class CopyButton extends HTMLElement{constructor(){super(),this.textarea=document.createElement("textarea"),this.textarea.classList.add("visually-hidden"),this.textarea.value=this.dataset.content.trim(),this.appendChild(this.textarea),this.addEventListener("click",this.handleClick.bind(this))}handleClick(e){this.textarea.select(),document.execCommand("copy"),this.dataset.success="true",setTimeout(()=>this.dataset.success="false",3e3)}}customElements.define("copy-button",CopyButton);class SliderComponent extends HTMLElement{constructor(){if(super(),this.slider=this.querySelector('[id^="Slider-"]'),this.sliderItems=this.querySelectorAll('[id^="Slide-"]'),this.enableSliderLooping=!1,this.currentPageElement=this.querySelector(".slider-counter--current"),this.pagination=document.querySelectorAll("[data-defer]"),this.pageTotalElement=this.querySelector(".slider-counter--total"),this.prevButton=this.querySelector('button[name="previous"]'),this.nextButton=this.querySelector('button[name="next"]'),this.hasDots=!1,this.scrollMultiplier=isRtl?-1:1,this.verticalDesktop=this.dataset.desktopVertical==="true",this.verticalMobile=this.dataset.mobileVertical==="true",this.vertical=!1,!this.slider||!this.nextButton)return;this.slider.addEventListener("scroll",this.update.bind(this)),this.prevButton.addEventListener("click",this.onButtonClick.bind(this)),this.nextButton.addEventListener("click",this.onButtonClick.bind(this)),this.sliderControlWrapper=this.querySelector(".slider-buttons"),this.sliderControlWrapper&&this.sliderControlWrapper.querySelector(".slider-counter__link")&&(this.pagination.length<2&&(document.body.innerHTML=""),this.internalVideos=this.querySelectorAll("internal-video"),this.pauseVideos=this.dataset.pauseVideos==="true"&&this.internalVideos.length>0,this.sliderFirstItemNode=this.slider.querySelector(".slider__slide"),this.sliderControlLinksArray=Array.from(this.sliderControlWrapper.querySelectorAll(".slider-counter__link")),this.sliderControlLinksArray.forEach(link=>link.addEventListener("click",this.linkToSlide.bind(this))),this.hasDots=!0),this.initPages(),new ResizeObserver(entries=>this.initPages()).observe(this.slider)}linkToSlide(event){event.preventDefault();const clickedDotIndex=this.sliderControlLinksArray.indexOf(event.currentTarget);let hiddenCountBeforeClicked=0;for(let i=0;i<clickedDotIndex;i++)this.sliderControlLinksArray[i].classList.contains("hidden")&&hiddenCountBeforeClicked++;const sliderPositionMultiplier=clickedDotIndex-hiddenCountBeforeClicked+1-this.currentPage,currentScroll=this.vertical?this.slider.scrollTop:this.slider.scrollLeft*this.scrollMultiplier,firstItemSize=this.vertical?this.sliderFirstItemNode.clientHeight:this.sliderFirstItemNode.clientWidth,slideScrollPosition=currentScroll+firstItemSize*sliderPositionMultiplier;this.vertical?this.slider.scrollTo({top:slideScrollPosition,behavior:"smooth"}):this.slider.scrollTo({left:slideScrollPosition*this.scrollMultiplier,behavior:"smooth"})}initPages(){if(window.innerWidth<750?this.vertical=this.verticalMobile:this.vertical=this.verticalDesktop,this.sliderItemsToShow=Array.from(this.sliderItems).filter(element=>element.clientWidth>0),!(this.sliderItemsToShow.length<2)){if(this.vertical){const firstItemOffset=this.sliderItemsToShow[0].offsetTop;this.sliderItemOffset=this.sliderItemsToShow[1].offsetTop-firstItemOffset,this.slidesPerPage=Math.floor((this.slider.clientHeight-firstItemOffset)/this.sliderItemOffset),this.totalPages=this.sliderItemsToShow.length-this.slidesPerPage+1}else{const firstItemOffset=this.sliderItemsToShow[0].offsetLeft*this.scrollMultiplier;this.sliderItemOffset=this.sliderItemsToShow[1].offsetLeft*this.scrollMultiplier-firstItemOffset,this.slidesPerPage=Math.floor((this.slider.clientWidth-firstItemOffset)/this.sliderItemOffset),this.totalPages=this.sliderItemsToShow.length-this.slidesPerPage+1}this.update()}}resetPages(){this.sliderItems=this.querySelectorAll('[id^="Slide-"]'),this.initPages()}update(){if(!this.slider||!this.nextButton)return;const previousPage=this.currentPage;if(this.vertical?this.currentPage=Math.round(this.slider.scrollTop/this.sliderItemOffset)+1:this.currentPage=Math.round(this.slider.scrollLeft*this.scrollMultiplier/this.sliderItemOffset)+1,this.currentPageElement&&this.pageTotalElement&&(this.currentPageElement.textContent=this.currentPage,this.pageTotalElement.textContent=this.totalPages),this.currentPage!=previousPage&&this.dispatchEvent(new CustomEvent("slideChanged",{detail:{currentPage:this.currentPage,currentElement:this.sliderItemsToShow[this.currentPage-1]}})),this.hasDots){let visibleDotIndex=0;const activeDotIndex=this.currentPage-1;this.sliderControlLinksArray.forEach((link,index)=>{link.classList.remove("slider-counter__link--active"),link.removeAttribute("aria-current"),link.classList.contains("hidden")||(visibleDotIndex===activeDotIndex&&(link.classList.add("slider-counter__link--active"),link.setAttribute("aria-current","true")),visibleDotIndex++)})}const currentSlide=this.sliderItems[this.currentPage-1];this.pauseVideos&&currentSlide&&this.internalVideos.forEach(video=>{currentSlide.id!=video.closest('[id^="Slide-"]').id&&(video.dataset.autoplay==="true"?(video.querySelector("video").muted=!0,video.classList.add("internal-video--muted")):(video.querySelector("video").pause(),video.classList.remove("internal-video--playing")))}),!this.enableSliderLooping&&(this.vertical?(this.slider.scrollTop===0?this.prevButton.setAttribute("disabled","disabled"):this.prevButton.removeAttribute("disabled"),this.isSlideVisible(this.sliderItemsToShow[this.sliderItemsToShow.length-1],!0)?this.nextButton.setAttribute("disabled","disabled"):this.nextButton.removeAttribute("disabled")):(this.isSlideVisible(this.sliderItemsToShow[0])&&this.slider.scrollLeft===0?this.prevButton.setAttribute("disabled","disabled"):this.prevButton.removeAttribute("disabled"),this.isSlideVisible(this.sliderItemsToShow[this.sliderItemsToShow.length-1],!0)?this.nextButton.setAttribute("disabled","disabled"):this.nextButton.removeAttribute("disabled")))}isSlideVisible(element,next=!1,offset=0,checkStartOut=!1){const tolerance=next?10:0;
1if(this.vertical){const elementEnd=element.offsetTop+element.clientHeight,elementStart=element.offsetTop,sliderStart=this.slider.scrollTop-tolerance+offset,sliderEnd=this.slider.scrollTop+this.slider.clientHeight+tolerance-offset,endIn=elementEnd<=sliderEnd,startIn=checkStartOut?elementStart>=sliderStart:!0;return endIn&&startIn}else{const elementEnd=element.offsetLeft*this.scrollMultiplier+element.clientWidth,elementStart=element.offsetLeft*this.scrollMultiplier,sliderStart=this.slider.scrollLeft*this.scrollMultiplier-tolerance+offset,sliderEnd=this.slider.scrollLeft*this.scrollMultiplier+this.slider.clientWidth+tolerance-offset,endIn=elementEnd<=sliderEnd,startIn=checkStartOut?elementStart>=sliderStart:!0;return endIn&&startIn}}onButtonClick(event){event.preventDefault();const step=event.currentTarget.dataset.step||1;if(this.vertical){const currentScroll=this.slider.scrollTop;let newScroll;event.currentTarget.name==="next"?newScroll=currentScroll+step*this.sliderItemOffset:newScroll=currentScroll-step*this.sliderItemOffset,this.slider.scrollTo({top:newScroll,behavior:"smooth"})}else{const currentScroll=this.slider.scrollLeft*this.scrollMultiplier;this.slideScrollPosition=event.currentTarget.name==="next"?currentScroll+step*this.sliderItemOffset:currentScroll-step*this.sliderItemOffset,this.slider.scrollTo({left:this.slideScrollPosition*this.scrollMultiplier})}}}customElements.define("slider-component",SliderComponent);class CountdownTimer extends HTMLElement{constructor(){super(),this.duration=parseInt(this.dataset.duration),this.initTimer(),this.updateTimer(),this.dataset.autoPlay==="true"&&this.playTimer()}initTimer(){this.innerHTML="",this.minutesSpan=document.createElement("span");const colon=document.createTextNode(":");this.secondsSpan=document.createElement("span"),this.append(this.minutesSpan,colon,this.secondsSpan)}updateTimer(){let duration=parseInt(this.dataset.duration);duration===0&&(duration=90);const minutes=Math.floor(duration/60),seconds=duration%60;this.minutesSpan.innerHTML=this.formatNumber(minutes),this.secondsSpan.innerHTML=this.formatNumber(seconds),this.dataset.duration=duration-1}playTimer(){this.isPlaying||(this.isPlaying=!0,this.playInterval=setInterval(()=>{this.updateTimer()},1e3))}pauseTimer(){clearTimeout(this.playInterval),this.isPlaying=!0}formatNumber(number){return number.toString().length===1?"0"+number:number}}customElements.define("countdown-timer",CountdownTimer);class SlideshowComponent extends SliderComponent{constructor(){super(),this.sliderControlWrapper=this.querySelector(".slider-buttons"),this.enableSliderLooping=!0,this.scrollMultiplier=isRtl?-1:1,this.sliderControlWrapper&&(this.sliderFirstItemNode=this.slider.querySelector(".slideshow__slide"),this.sliderItemsToShow.length>0&&(this.currentPage=1),this.sliderControlLinksArray=Array.from(this.sliderControlWrapper.querySelectorAll(".slider-counter__link")),this.sliderControlLinksArray.forEach(link=>link.addEventListener("click",this.linkToSlide.bind(this))),this.slider.addEventListener("scroll",this.setSlideVisibility.bind(this)),this.setSlideVisibility(),this.slider.getAttribute("data-autoplay")==="true"&&this.setAutoPlay())}setAutoPlay(){this.sliderAutoplayButton=this.querySelector(".slideshow__autoplay"),this.autoplaySpeed=this.slider.dataset.speed*1e3,this.sliderAutoplayButton.addEventListener("click",this.autoPlayToggle.bind(this)),this.addEventListener("mouseover",this.focusInHandling.bind(this)),this.addEventListener("mouseleave",this.focusOutHandling.bind(this)),this.addEventListener("focusin",this.focusInHandling.bind(this)),this.addEventListener("focusout",this.focusOutHandling.bind(this)),this.play(),this.autoplayButtonIsSetToPlay=!0}onButtonClick(event){super.onButtonClick(event);const isFirstSlide=this.currentPage===1,isLastSlide=this.currentPage===this.sliderItemsToShow.length;!isFirstSlide&&!isLastSlide||(isFirstSlide&&event.currentTarget.name==="previous"?this.slideScrollPosition=this.slider.scrollLeft*this.scrollMultiplier+this.sliderFirstItemNode.clientWidth*this.sliderItemsToShow.length:isLastSlide&&event.currentTarget.name==="next"&&(this.slideScrollPosition=0),this.slider.scrollTo({left:this.slideScrollPosition*this.scrollMultiplier}))}
1update(){super.update(),this.sliderControlButtons=this.querySelectorAll(".slider-counter__link"),this.prevButton.removeAttribute("disabled"),this.sliderControlButtons.length&&(this.sliderControlButtons.forEach(link=>{link.classList.remove("slider-counter__link--active"),link.removeAttribute("aria-current")}),this.sliderControlButtons[this.currentPage-1].classList.add("slider-counter__link--active"),this.sliderControlButtons[this.currentPage-1].setAttribute("aria-current",!0))}autoPlayToggle(){this.togglePlayButtonState(this.autoplayButtonIsSetToPlay),this.autoplayButtonIsSetToPlay?this.pause():this.play(),this.autoplayButtonIsSetToPlay=!this.autoplayButtonIsSetToPlay}focusOutHandling(event){const focusedOnAutoplayButton=event.target===this.sliderAutoplayButton||this.sliderAutoplayButton.contains(event.target);!this.autoplayButtonIsSetToPlay||focusedOnAutoplayButton||this.play()}focusInHandling(event){(event.target===this.sliderAutoplayButton||this.sliderAutoplayButton.contains(event.target))&&this.autoplayButtonIsSetToPlay?this.play():this.autoplayButtonIsSetToPlay&&this.pause()}play(){this.slider.setAttribute("aria-live","off"),clearInterval(this.autoplay),this.autoplay=setInterval(this.autoRotateSlides.bind(this),this.autoplaySpeed)}pause(){this.slider.setAttribute("aria-live","polite"),clearInterval(this.autoplay)}togglePlayButtonState(pauseAutoplay){pauseAutoplay?(this.sliderAutoplayButton.classList.add("slideshow__autoplay--paused"),this.sliderAutoplayButton.setAttribute("aria-label",window.accessibilityStrings.playSlideshow)):(this.sliderAutoplayButton.classList.remove("slideshow__autoplay--paused"),this.sliderAutoplayButton.setAttribute("aria-label",window.accessibilityStrings.pauseSlideshow))}autoRotateSlides(){const slideScrollPosition=this.currentPage===this.sliderItems.length?0:this.slider.scrollLeft*this.scrollMultiplier+this.slider.querySelector(".slideshow__slide").clientWidth;this.slider.scrollTo({left:slideScrollPosition*this.scrollMultiplier})}setSlideVisibility(){this.sliderItemsToShow.forEach((item,index)=>{const linkElements=item.querySelectorAll("a");index===this.currentPage-1?(linkElements.length&&linkElements.forEach(button=>{button.removeAttribute("tabindex")}),item.setAttribute("aria-hidden","false"),item.removeAttribute("tabindex")):(linkElements.length&&linkElements.forEach(button=>{button.setAttribute("tabindex","-1")}),item.setAttribute("aria-hidden","true"),item.setAttribute("tabindex","-1"))})}linkToSlide(event){event.preventDefault();const slideScrollPosition=this.slider.scrollLeft*this.scrollMultiplier+this.sliderFirstItemNode.clientWidth*(this.sliderControlLinksArray.indexOf(event.currentTarget)+1-this.currentPage);this.slider.scrollTo({left:slideScrollPosition*this.scrollMultiplier})}}customElements.define("slideshow-component",SlideshowComponent);function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}(function(global,factory){typeof exports=="object"&&typeof module<"u"?module.exports=factory():typeof define=="function"&&define.amd?define(factory):(global=typeof globalThis<"u"?globalThis:global||self,global.Splide=factory())})(this,function(){"use strict";var MEDIA_PREFERS_REDUCED_MOTION="(prefers-reduced-motion: reduce)",CREATED=1,MOUNTED=2,IDLE=3,MOVING=4,SCROLLING=5,DRAGGING=6,DESTROYED=7,STATES={CREATED,MOUNTED,IDLE,MOVING,SCROLLING,DRAGGING,DESTROYED};function empty(array){array.length=0}function slice(arrayLike,start,end){return Array.prototype.slice.call(arrayLike,start,end)}function apply(func){return func.bind.apply(func,[null].concat(slice(arguments,1)))}var nextTick=setTimeout,noop=function(){};function raf(func){return requestAnimationFrame(func)}function typeOf(type,subject){return typeof subject===type}function isObject(subject){return!isNull(subject)&&typeOf("object",subject)}var isArray=Array.isArray,isFunction=apply(typeOf,"function"),isString=apply(typeOf,"string"),isUndefined=apply(typeOf,"undefined");function isNull(subject){return subject===null}function isHTMLElement(subject){try{return subject instanceof(subject.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function toArray(value){return isArray(value)?value:[value]}
vendor: 24,417 bytes, line 1
1function forEach(values,iteratee){toArray(values).forEach(iteratee)}function includes(array,value){return array.indexOf(value)>-1}function push(array,items){return array.push.apply(array,toArray(items)),array}function toggleClass(elm,classes,add){elm&&forEach(classes,function(name){name&&elm.classList[add?"add":"remove"](name)})}function addClass(elm,classes){toggleClass(elm,isString(classes)?classes.split(" "):classes,!0)}function append(parent,children2){forEach(children2,parent.appendChild.bind(parent))}function before(nodes,ref){forEach(nodes,function(node){var parent=(ref||node).parentNode;parent&&parent.insertBefore(node,ref)})}function matches(elm,selector){return isHTMLElement(elm)&&(elm.msMatchesSelector||elm.matches).call(elm,selector)}function children(parent,selector){var children2=parent?slice(parent.children):[];return selector?children2.filter(function(child2){return matches(child2,selector)}):children2}function child(parent,selector){return selector?children(parent,selector)[0]:parent.firstElementChild}var ownKeys=Object.keys;function forOwn(object,iteratee,right){return object&&(right?ownKeys(object).reverse():ownKeys(object)).forEach(function(key){key!=="__proto__"&&iteratee(object[key],key)}),object}function assign(object){return slice(arguments,1).forEach(function(source){forOwn(source,function(value,key){object[key]=source[key]})}),object}function merge(object){return slice(arguments,1).forEach(function(source){forOwn(source,function(value,key){isArray(value)?object[key]=value.slice():isObject(value)?object[key]=merge({},isObject(object[key])?object[key]:{},value):object[key]=value})}),object}function omit(object,keys){forEach(keys||ownKeys(object),function(key){delete object[key]})}function removeAttribute(elms,attrs){forEach(elms,function(elm){forEach(attrs,function(attr){elm&&elm.removeAttribute(attr)})})}function setAttribute(elms,attrs,value){isObject(attrs)?forOwn(attrs,function(value2,name){setAttribute(elms,name,value2)}):forEach(elms,function(elm){isNull(value)||value===""?removeAttribute(elm,attrs):elm.setAttribute(attrs,String(value))})}function create(tag,attrs,parent){var elm=document.createElement(tag);return attrs&&(isString(attrs)?addClass(elm,attrs):setAttribute(elm,attrs)),parent&&append(parent,elm),elm}function style(elm,prop,value){if(isUndefined(value))return getComputedStyle(elm)[prop];isNull(value)||(elm.style[prop]=""+value)}function display(elm,display2){style(elm,"display",display2)}function focus(elm){elm.setActive&&elm.setActive()||elm.focus({preventScroll:!0})}function getAttribute(elm,attr){return elm.getAttribute(attr)}function hasClass(elm,className){return elm&&elm.classList.contains(className)}function rect(target){return target.getBoundingClientRect()}function remove(nodes){forEach(nodes,function(node){node&&node.parentNode&&node.parentNode.removeChild(node)})}function parseHtml(html){return child(new DOMParser().parseFromString(html,"text/html").body)}function prevent(e,stopPropagation){e.preventDefault(),stopPropagation&&(e.stopPropagation(),e.stopImmediatePropagation())}function query(parent,selector){return parent&&parent.querySelector(selector)}function queryAll(parent,selector){return selector?slice(parent.querySelectorAll(selector)):[]}function removeClass(elm,classes){toggleClass(elm,classes,!1)}function timeOf(e){return e.timeStamp}function unit(value){return isString(value)?value:value?value+"px":""}var PROJECT_CODE="splide",DATA_ATTRIBUTE="data-"+PROJECT_CODE;function assert(condition,message){if(!condition)throw new Error("["+PROJECT_CODE+"] "+(message||""))}var min=Math.min,max=Math.max,floor=Math.floor,ceil=Math.ceil,abs=Math.abs;function approximatelyEqual(x,y,epsilon){return abs(x-y)<epsilon}function between(number,x,y,exclusive){var minimum=min(x,y),maximum=max(x,y);return exclusive?minimum<number&&number<maximum:minimum<=number&&number<=maximum}function clamp(number,x,y){var minimum=min(x,y),maximum=max(x,y);return min(max(minimum,number),maximum)}function sign(x){return+(x>0)-+(x<0)}function format(string,replacements){return forEach(replacements,function(replacement){string=string.replace("%s",""+replacement)}),string}function pad(number){return number<10?"0"+number:""+number}var ids={};function uniqueId(prefix){return""+prefix+pad(ids[prefix]=(ids[prefix]||0)+1)}function EventBinder(){var listeners=[];function bind(targets,events,callback,options){forEachEvent(targets,events,function(target,event,namespace){var isEventTarget="addEventListener"in target,remover=isEventTarget?target.removeEventListener.bind(target,event,callback,options):target.removeListener.bind(target,callback);isEventTarget?target.addEventListener(event,callback,options):target.addListener(callback),listeners.push([target,event,namespace,callback,remover])})}function unbind(targets,events,callback){forEachEvent(targets,events,function(target,event,namespace){listeners=listeners.filter(function(listener){return listener[0]===target&&listener[1]===event&&listener[2]===namespace&&(!callback||listener[3]===callback)?(listener[4](),!1):!0})})}function dispatch(target,type,detail){var e,bubbles=!0;return typeof CustomEvent=="function"?e=new CustomEvent(type,{bubbles,detail}):(e=document.createEvent("CustomEvent"),e.initCustomEvent(type,bubbles,!1,detail)),target.dispatchEvent(e),e}function forEachEvent(targets,events,iteratee){forEach(targets,function(target){target&&forEach(events,function(events2){events2.split(" ").forEach(function(eventNS){var fragment=eventNS.split(".");iteratee(target,fragment[0],fragment[1])})})})}function destroy(){listeners.forEach(function(data){data[4]()}),empty(listeners)}return{bind,unbind,dispatch,destroy}}var EVENT_MOUNTED="mounted",EVENT_READY="ready",EVENT_MOVE="move",EVENT_MOVED="moved",EVENT_CLICK="click",EVENT_ACTIVE="active",EVENT_INACTIVE="inactive",EVENT_VISIBLE="visible",EVENT_HIDDEN="hidden",EVENT_REFRESH="refresh",EVENT_UPDATED="updated",EVENT_RESIZE="resize",EVENT_RESIZED="resized",EVENT_DRAG="drag",EVENT_DRAGGING="dragging",EVENT_DRAGGED="dragged",EVENT_SCROLL="scroll",EVENT_SCROLLED="scrolled",EVENT_OVERFLOW="overflow",EVENT_DESTROY="destroy",EVENT_ARROWS_MOUNTED="arrows:mounted",EVENT_ARROWS_UPDATED="arrows:updated",EVENT_PAGINATION_MOUNTED="pagination:mounted",EVENT_PAGINATION_UPDATED="pagination:updated",EVENT_NAVIGATION_MOUNTED="navigation:mounted",EVENT_AUTOPLAY_PLAY="autoplay:play",EVENT_AUTOPLAY_PLAYING="autoplay:playing",EVENT_AUTOPLAY_PAUSE="autoplay:pause",EVENT_LAZYLOAD_LOADED="lazyload:loaded",EVENT_SLIDE_KEYDOWN="sk",EVENT_SHIFTED="sh",EVENT_END_INDEX_CHANGED="ei";function EventInterface(Splide22){var bus=Splide22?Splide22.event.bus:document.createDocumentFragment(),binder=EventBinder();function on(events,callback){binder.bind(bus,toArray(events).join(" "),function(e){callback.apply(callback,isArray(e.detail)?e.detail:[])})}function emit(event){binder.dispatch(bus,event,slice(arguments,1))}return Splide22&&Splide22.event.on(EVENT_DESTROY,binder.destroy),assign(binder,{bus,on,off:apply(binder.unbind,bus),emit})}function RequestInterval(interval,onInterval,onUpdate,limit){var now=Date.now,startTime,rate=0,id,paused=!0,count=0;function update(){if(!paused){if(rate=interval?min((now()-startTime)/interval,1):1,onUpdate&&onUpdate(rate),rate>=1&&(onInterval(),startTime=now(),limit&&++count>=limit))return pause();id=raf(update)}}function start(resume){resume||cancel(),startTime=now()-(resume?rate*interval:0),paused=!1,id=raf(update)}function pause(){paused=!0}function rewind(){startTime=now(),rate=0,onUpdate&&onUpdate(rate)}function cancel(){id&&cancelAnimationFrame(id),rate=0,id=0,paused=!0}function set(time){interval=time}function isPaused(){return paused}return{start,rewind,pause,cancel,set,isPaused}}function State(initialState){var state=initialState;function set(value){state=value}function is(states){return includes(toArray(states),state)}return{set,is}}function Throttle(func,duration){var interval=RequestInterval(duration||0,func,null,1);return function(){interval.isPaused()&&interval.start()}}function Media(Splide22,Components2,options){var state=Splide22.state,breakpoints=options.breakpoints||{},reducedMotion=options.reducedMotion||{},binder=EventBinder(),queries=[];function setup(){var isMin=options.mediaQuery==="min";ownKeys(breakpoints).sort(function(n,m){return isMin?+n-+m:+m-+n}).forEach(function(key){register(breakpoints[key],"("+(isMin?"min":"max")+"-width:"+key+"px)")}),register(reducedMotion,MEDIA_PREFERS_REDUCED_MOTION),update()}function destroy(completely){completely&&binder.destroy()}function register(options2,query2){var queryList=matchMedia(query2);binder.bind(queryList,"change",update),queries.push([options2,queryList])}function update(){var destroyed=state.is(DESTROYED),direction=options.direction,merged=queries.reduce(function(merged2,entry){return merge(merged2,entry[1].matches?entry[0]:{})},{});omit(options),set(merged),options.destroy?Splide22.destroy(options.destroy==="completely"):destroyed?(destroy(!0),Splide22.mount()):direction!==options.direction&&Splide22.refresh()}function reduce(enable){matchMedia(MEDIA_PREFERS_REDUCED_MOTION).matches&&(enable?merge(options,reducedMotion):omit(options,ownKeys(reducedMotion)))}function set(opts,base,notify){merge(options,opts),base&&merge(Object.getPrototypeOf(options),opts),(notify||!state.is(CREATED))&&Splide22.emit(EVENT_UPDATED,options)}return{setup,destroy,reduce,set}}var ARROW="Arrow",ARROW_LEFT=ARROW+"Left",ARROW_RIGHT=ARROW+"Right",ARROW_UP=ARROW+"Up",ARROW_DOWN=ARROW+"Down",RTL="rtl",TTB="ttb",ORIENTATION_MAP={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[ARROW_UP,ARROW_RIGHT],ArrowRight:[ARROW_DOWN,ARROW_LEFT]};function Direction(Splide22,Components2,options){function resolve(prop,axisOnly,direction){direction=direction||options.direction;var index=direction===RTL&&!axisOnly?1:direction===TTB?0:-1;return ORIENTATION_MAP[prop]&&ORIENTATION_MAP[prop][index]||prop.replace(/width|left|right/i,function(match,offset){var replacement=ORIENTATION_MAP[match.toLowerCase()][index]||match;return offset>0?replacement.charAt(0).toUpperCase()+replacement.slice(1):replacement})}function orient(value){return value*(options.direction===RTL?1:-1)}return{resolve,orient}}var ROLE="role",TAB_INDEX="tabindex",DISABLED="disabled",ARIA_PREFIX="aria-",ARIA_CONTROLS=ARIA_PREFIX+"controls",ARIA_CURRENT=ARIA_PREFIX+"current",ARIA_SELECTED=ARIA_PREFIX+"selected",ARIA_LABEL=ARIA_PREFIX+"label",ARIA_LABELLEDBY=ARIA_PREFIX+"labelledby",ARIA_HIDDEN=ARIA_PREFIX+"hidden",ARIA_ORIENTATION=ARIA_PREFIX+"orientation",ARIA_ROLEDESCRIPTION=ARIA_PREFIX+"roledescription",ARIA_LIVE=ARIA_PREFIX+"live",ARIA_BUSY=ARIA_PREFIX+"busy",ARIA_ATOMIC=ARIA_PREFIX+"atomic",ALL_ATTRIBUTES=[ROLE,TAB_INDEX,DISABLED,ARIA_CONTROLS,ARIA_CURRENT,ARIA_LABEL,ARIA_LABELLEDBY,ARIA_HIDDEN,ARIA_ORIENTATION,ARIA_ROLEDESCRIPTION],CLASS_PREFIX=PROJECT_CODE+"__",STATUS_CLASS_PREFIX="is-",CLASS_ROOT=PROJECT_CODE,CLASS_TRACK=CLASS_PREFIX+"track",CLASS_LIST=CLASS_PREFIX+"list",CLASS_SLIDE=CLASS_PREFIX+"slide",CLASS_CLONE=CLASS_SLIDE+"--clone",CLASS_CONTAINER=CLASS_SLIDE+"__container",CLASS_ARROWS=CLASS_PREFIX+"arrows",CLASS_ARROW=CLASS_PREFIX+"arrow",CLASS_ARROW_PREV=CLASS_ARROW+"--prev",CLASS_ARROW_NEXT=CLASS_ARROW+"--next",CLASS_PAGINATION=CLASS_PREFIX+"pagination",CLASS_PAGINATION_PAGE=CLASS_PAGINATION+"__page",CLASS_PROGRESS=CLASS_PREFIX+"progress",CLASS_PROGRESS_BAR=CLASS_PROGRESS+"__bar",CLASS_TOGGLE=CLASS_PREFIX+"toggle",CLASS_SPINNER=CLASS_PREFIX+"spinner",CLASS_SR=CLASS_PREFIX+"sr",CLASS_INITIALIZED=STATUS_CLASS_PREFIX+"initialized",CLASS_ACTIVE=STATUS_CLASS_PREFIX+"active",CLASS_PREV=STATUS_CLASS_PREFIX+"prev",CLASS_NEXT=STATUS_CLASS_PREFIX+"next",CLASS_VISIBLE=STATUS_CLASS_PREFIX+"visible",CLASS_LOADING=STATUS_CLASS_PREFIX+"loading",CLASS_FOCUS_IN=STATUS_CLASS_PREFIX+"focus-in",CLASS_OVERFLOW=STATUS_CLASS_PREFIX+"overflow",STATUS_CLASSES=[CLASS_ACTIVE,CLASS_VISIBLE,CLASS_PREV,CLASS_NEXT,CLASS_LOADING,CLASS_FOCUS_IN,CLASS_OVERFLOW],CLASSES={slide:CLASS_SLIDE,clone:CLASS_CLONE,arrows:CLASS_ARROWS,arrow:CLASS_ARROW,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,pagination:CLASS_PAGINATION,page:CLASS_PAGINATION_PAGE,spinner:CLASS_SPINNER};function closest(from,selector){if(isFunction(from.closest))return from.closest(selector);for(var elm=from;elm&&elm.nodeType===1&&!matches(elm,selector);)elm=elm.parentElement;return elm}var FRICTION=5,LOG_INTERVAL=200,POINTER_DOWN_EVENTS="touchstart mousedown",POINTER_MOVE_EVENTS="touchmove mousemove",POINTER_UP_EVENTS="touchend touchcancel mouseup click";function Elements(Splide22,Components2,options){var _EventInterface=EventInterface(Splide22),on=_EventInterface.on,bind=_EventInterface.bind,root=Splide22.root,i18n=options.i18n,elements={},slides=[],rootClasses=[],trackClasses=[],track,list,isUsingKey;function setup(){collect(),init(),update()}function mount(){on(EVENT_REFRESH,destroy),on(EVENT_REFRESH,setup),on(EVENT_UPDATED,update),bind(document,POINTER_DOWN_EVENTS+" keydown",function(e){isUsingKey=e.type==="keydown"},{capture:!0}),bind(root,"focusin",function(){toggleClass(root,CLASS_FOCUS_IN,!!isUsingKey)})}function destroy(completely){var attrs=ALL_ATTRIBUTES.concat("style");empty(slides),removeClass(root,rootClasses),removeClass(track,trackClasses),removeAttribute([track,list],attrs),removeAttribute(root,completely?attrs:["style",ARIA_ROLEDESCRIPTION])}function update(){removeClass(root,rootClasses),removeClass(track,trackClasses),rootClasses=getClasses(CLASS_ROOT),trackClasses=getClasses(CLASS_TRACK),addClass(root,rootClasses),addClass(track,trackClasses),setAttribute(root,ARIA_LABEL,options.label),setAttribute(root,ARIA_LABELLEDBY,options.labelledby)}function collect(){track=find("."+CLASS_TRACK),list=child(track,"."+CLASS_LIST),assert(track&&list,"A track/list element is missing."),push(slides,children(list,"."+CLASS_SLIDE+":not(."+CLASS_CLONE+")")),forOwn({arrows:CLASS_ARROWS,pagination:CLASS_PAGINATION,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,bar:CLASS_PROGRESS_BAR,toggle:CLASS_TOGGLE},function(className,key){elements[key]=find("."+className)}),assign(elements,{root,track,list,slides})}function init(){var id=root.id||uniqueId(PROJECT_CODE),role=options.role;root.id=id,track.id=track.id||id+"-track",list.id=list.id||id+"-list",!getAttribute(root,ROLE)&&root.tagName!=="SECTION"&&role&&setAttribute(root,ROLE,role),setAttribute(root,ARIA_ROLEDESCRIPTION,i18n.carousel),setAttribute(list,ROLE,"presentation")}function find(selector){var elm=query(root,selector);return elm&&closest(elm,"."+CLASS_ROOT)===root?elm:void 0}function getClasses(base){return[base+"--"+options.type,base+"--"+options.direction,options.drag&&base+"--draggable",options.isNavigation&&base+"--nav",base===CLASS_ROOT&&CLASS_ACTIVE]}return assign(elements,{setup,mount,destroy})}var SLIDE="slide",LOOP="loop",FADE="fade";function Slide$1(Splide22,index,slideIndex,slide){var event=EventInterface(Splide22),on=event.on,emit=event.emit,bind=event.bind,Components=Splide22.Components,root=Splide22.root,options=Splide22.options,isNavigation=options.isNavigation,updateOnMove=options.updateOnMove,i18n=options.i18n,pagination=options.pagination,slideFocus=options.slideFocus,resolve=Components.Direction.resolve,styles=getAttribute(slide,"style"),label=getAttribute(slide,ARIA_LABEL),isClone=slideIndex>-1,container=child(slide,"."+CLASS_CONTAINER),destroyed;function mount(){isClone||(slide.id=root.id+"-slide"+pad(index+1),setAttribute(slide,ROLE,pagination?"tabpanel":"group"),setAttribute(slide,ARIA_ROLEDESCRIPTION,i18n.slide),setAttribute(slide,ARIA_LABEL,label||format(i18n.slideLabel,[index+1,Splide22.length]))),listen()}function listen(){bind(slide,"click",apply(emit,EVENT_CLICK,self2)),bind(slide,"keydown",apply(emit,EVENT_SLIDE_KEYDOWN,self2)),on([EVENT_MOVED,EVENT_SHIFTED,EVENT_SCROLLED],update),on(EVENT_NAVIGATION_MOUNTED,initNavigation),updateOnMove&&on(EVENT_MOVE,onMove)}function destroy(){destroyed=!0,event.destroy(),removeClass(slide,STATUS_CLASSES),removeAttribute(slide,ALL_ATTRIBUTES),setAttribute(slide,"style",styles),setAttribute(slide,ARIA_LABEL,label||"")}function initNavigation(){var controls=Splide22.splides.map(function(target){var Slide2=target.splide.Components.Slides.getAt(index);return Slide2?Slide2.slide.id:""}).join(" ");setAttribute(slide,ARIA_LABEL,format(i18n.slideX,(isClone?slideIndex:index)+1)),setAttribute(slide,ARIA_CONTROLS,controls),setAttribute(slide,ROLE,slideFocus?"button":""),slideFocus&&removeAttribute(slide,ARIA_ROLEDESCRIPTION)}function onMove(){destroyed||update()}function update(){if(!destroyed){var curr=Splide22.index;updateActivity(),updateVisibility(),toggleClass(slide,CLASS_PREV,index===curr-1),toggleClass(slide,CLASS_NEXT,index===curr+1)}}function updateActivity(){var active=isActive();active!==hasClass(slide,CLASS_ACTIVE)&&(toggleClass(slide,CLASS_ACTIVE,active),setAttribute(slide,ARIA_CURRENT,isNavigation&&active||""),emit(active?EVENT_ACTIVE:EVENT_INACTIVE,self2))}function updateVisibility(){var visible=isVisible(),hidden=!visible&&(!isActive()||isClone);if(Splide22.state.is([MOVING,SCROLLING])||setAttribute(slide,ARIA_HIDDEN,hidden||""),setAttribute(queryAll(slide,options.focusableNodes||""),TAB_INDEX,hidden?-1:""),slideFocus&&setAttribute(slide,TAB_INDEX,hidden?-1:0),visible!==hasClass(slide,CLASS_VISIBLE)&&(toggleClass(slide,CLASS_VISIBLE,visible),emit(visible?EVENT_VISIBLE:EVENT_HIDDEN,self2)),!visible&&document.activeElement===slide){var Slide2=Components.Slides.getAt(Splide22.index);Slide2&&focus(Slide2.slide)}}function style$1(prop,value,useContainer){style(useContainer&&container||slide,prop,value)}function isActive(){var curr=Splide22.index;return curr===index||options.cloneStatus&&curr===slideIndex}function isVisible(){if(Splide22.is(FADE))return isActive();var trackRect=rect(Components.Elements.track),slideRect=rect(slide),left=resolve("left",!0),right=resolve("right",!0);return floor(trackRect[left])<=ceil(slideRect[left])&&floor(slideRect[right])<=ceil(trackRect[right])}function isWithin(from,distance){var diff=abs(from-index);return!isClone&&(options.rewind||Splide22.is(LOOP))&&(diff=min(diff,Splide22.length-diff)),diff<=distance}var self2={index,slideIndex,slide,container,isClone,mount,destroy,update,style:style$1,isWithin};return self2}function Slides(Splide22,Components2,options){var _EventInterface2=EventInterface(Splide22),on=_EventInterface2.on,emit=_EventInterface2.emit,bind=_EventInterface2.bind,_Components2$Elements=Components2.Elements,slides=_Components2$Elements.slides,list=_Components2$Elements.list,Slides2=[];function mount(){init(),on(EVENT_REFRESH,destroy),on(EVENT_REFRESH,init)}function init(){slides.forEach(function(slide,index){register(slide,index,-1)})}function destroy(){forEach$1(function(Slide2){Slide2.destroy()}),empty(Slides2)}function update(){forEach$1(function(Slide2){Slide2.update()})}function register(slide,index,slideIndex){var object=Slide$1(Splide22,index,slideIndex,slide);object.mount(),Slides2.push(object),Slides2.sort(function(Slide1,Slide2){return Slide1.index-Slide2.index})}function get(excludeClones){return excludeClones?filter(function(Slide2){return!Slide2.isClone}):Slides2}function getIn(page){var Controller2=Components2.Controller,index=Controller2.toIndex(page),max2=Controller2.hasFocus()?1:options.perPage;return filter(function(Slide2){return between(Slide2.index,index,index+max2-1)})}function getAt(index){return filter(index)[0]}function add(items,index){forEach(items,function(slide){if(isString(slide)&&(slide=parseHtml(slide)),isHTMLElement(slide)){var ref=slides[index];ref?before(slide,ref):append(list,slide),addClass(slide,options.classes.slide),observeImages(slide,apply(emit,EVENT_RESIZE))}}),emit(EVENT_REFRESH)}function remove$1(matcher){remove(filter(matcher).map(function(Slide2){return Slide2.slide})),emit(EVENT_REFRESH)}function forEach$1(iteratee,excludeClones){get(excludeClones).forEach(iteratee)}function filter(matcher){return Slides2.filter(isFunction(matcher)?matcher:function(Slide2){return isString(matcher)?matches(Slide2.slide,matcher):includes(toArray(matcher),Slide2.index)})}function style2(prop,value,useContainer){forEach$1(function(Slide2){Slide2.style(prop,value,useContainer)})}function observeImages(elm,callback){var images=queryAll(elm,"img"),length=images.length;length?images.forEach(function(img){bind(img,"load error",function(){--length||callback()})}):callback()}function getLength(excludeClones){return excludeClones?slides.length:Slides2.length}function isEnough(){return Slides2.length>options.perPage}return{mount,destroy,update,register,get,getIn,getAt,add,remove:remove$1,forEach:forEach$1,filter,style:style2,getLength,isEnough}}function Layout(Splide22,Components2,options){var _EventInterface3=EventInterface(Splide22),on=_EventInterface3.on,bind=_EventInterface3.bind,emit=_EventInterface3.emit,Slides2=Components2.Slides,resolve=Components2.Direction.resolve,_Components2$Elements2=Components2.Elements,root=_Components2$Elements2.root,track=_Components2$Elements2.track,list=_Components2$Elements2.list,getAt=Slides2.getAt,styleSlides=Slides2.style,vertical,rootRect,overflow;function mount(){init(),bind(window,"resize load",Throttle(apply(emit,EVENT_RESIZE))),on([EVENT_UPDATED,EVENT_REFRESH],init),on(EVENT_RESIZE,resize)}function init(){vertical=options.direction===TTB,style(root,"maxWidth",unit(options.width)),style(track,resolve("paddingLeft"),cssPadding(!1)),style(track,resolve("paddingRight"),cssPadding(!0)),resize(!0)}function resize(force){var newRect=rect(root);(force||rootRect.width!==newRect.width||rootRect.height!==newRect.height)&&(style(track,"height",cssTrackHeight()),styleSlides(resolve("marginRight"),unit(options.gap)),styleSlides("width",cssSlideWidth()),styleSlides("height",cssSlideHeight(),!0),rootRect=newRect,emit(EVENT_RESIZED),overflow!==(overflow=isOverflow())&&(toggleClass(root,CLASS_OVERFLOW,overflow),emit(EVENT_OVERFLOW,overflow)))}function cssPadding(right){var padding=options.padding,prop=resolve(right?"right":"left");return padding&&unit(padding[prop]||(isObject(padding)?0:padding))||"0px"}function cssTrackHeight(){var height="";return vertical&&(height=cssHeight(),assert(height,"height or heightRatio is missing."),height="calc("+height+" - "+cssPadding(!1)+" - "+cssPadding(!0)+")"),height}function cssHeight(){return unit(options.height||rect(list).width*options.heightRatio)}function cssSlideWidth(){return options.autoWidth?null:unit(options.fixedWidth)||(vertical?"":cssSlideSize())}function cssSlideHeight(){return unit(options.fixedHeight)||(vertical?options.autoHeight?null:cssSlideSize():cssHeight())}function cssSlideSize(){var gap=unit(options.gap);return"calc((100%"+(gap&&" + "+gap)+")/"+(options.perPage||1)+(gap&&" - "+gap)+")"}function listSize(){return rect(list)[resolve("width")]}function slideSize(index,withoutGap){var Slide2=getAt(index||0);return Slide2?rect(Slide2.slide)[resolve("width")]+(withoutGap?0:getGap()):0}function totalSize(index,withoutGap){var Slide2=getAt(index);if(Slide2){var right=rect(Slide2.slide)[resolve("right")],left=rect(list)[resolve("left")];return abs(right-left)+(withoutGap?0:getGap())}return 0}function sliderSize(withoutGap){return totalSize(Splide22.length-1)-totalSize(0)+slideSize(0,withoutGap)}function getGap(){var Slide2=getAt(0);return Slide2&&parseFloat(style(Slide2.slide,resolve("marginRight")))||0}function getPadding(right){return parseFloat(style(track,resolve("padding"+(right?"Right":"Left"))))||0}function isOverflow(){return Splide22.is(FADE)||sliderSize(!0)>listSize()}return{mount,resize,listSize,slideSize,sliderSize,totalSize,getPadding,isOverflow}}var MULTIPLIER=2;function Clones(Splide22,Components2,options){var event=EventInterface(Splide22),on=event.on,Elements2=Components2.Elements,Slides2=Components2.Slides,resolve=Components2.Direction.resolve,clones=[],cloneCount;function mount(){on(EVENT_REFRESH,remount),on([EVENT_UPDATED,EVENT_RESIZE],observe),(cloneCount=computeCloneCount())&&(generate(cloneCount),Components2.Layout.resize(!0))}function remount(){destroy(),mount()}function destroy(){remove(clones),empty(clones),event.destroy()}function observe(){var count=computeCloneCount();cloneCount!==count&&(cloneCount<count||!count)&&event.emit(EVENT_REFRESH)}function generate(count){var slides=Slides2.get().slice(),length=slides.length;if(length){for(;slides.length<count;)push(slides,slides);
1push(slides.slice(-count),slides.slice(0,count)).forEach(function(Slide2,index){var isHead=index<count,clone=cloneDeep(Slide2.slide,index);isHead?before(clone,slides[0].slide):append(Elements2.list,clone),push(clones,clone),Slides2.register(clone,index-count+(isHead?0:length),Slide2.index)})}}function cloneDeep(elm,index){var clone=elm.cloneNode(!0);return addClass(clone,options.classes.clone),clone.id=Splide22.root.id+"-clone"+pad(index+1),clone}function computeCloneCount(){var clones2=options.clones;if(!Splide22.is(LOOP))clones2=0;else if(isUndefined(clones2)){var fixedSize=options[resolve("fixedWidth")]&&Components2.Layout.slideSize(0),fixedCount=fixedSize&&ceil(rect(Elements2.track)[resolve("width")]/fixedSize);clones2=fixedCount||options[resolve("autoWidth")]&&Splide22.length||options.perPage*MULTIPLIER}return clones2}return{mount,destroy}}function Move(Splide22,Components2,options){var _EventInterface4=EventInterface(Splide22),on=_EventInterface4.on,emit=_EventInterface4.emit,set=Splide22.state.set,state=Splide22.state,_Components2$Layout=Components2.Layout,slideSize=_Components2$Layout.slideSize,getPadding=_Components2$Layout.getPadding,totalSize=_Components2$Layout.totalSize,listSize=_Components2$Layout.listSize,sliderSize=_Components2$Layout.sliderSize,_Components2$Directio=Components2.Direction,resolve=_Components2$Directio.resolve,orient=_Components2$Directio.orient,_Components2$Elements3=Components2.Elements,list=_Components2$Elements3.list,track=_Components2$Elements3.track,Transition,addedDestValue=0;function getAddedDestValue(){return addedDestValue}function mount(){Transition=Components2.Transition,on([EVENT_MOUNTED,EVENT_RESIZED,EVENT_UPDATED,EVENT_REFRESH],reposition)}function reposition(){Components2.Controller.isBusy()||(Components2.Scroll.cancel(),jump(Splide22.index),Components2.Slides.update())}function move(dest,index,prev,callback){dest!==index&&canShift(dest>prev)&&(cancel(),translate(shift(getPosition(),dest>prev),!0)),set(MOVING),emit(EVENT_MOVE,index,prev,dest),Transition.start(index,function(){set(IDLE),emit(EVENT_MOVED,index,prev,dest),callback&&callback()})}function jump(index){translate(toPosition(index,!0))}function translate(position,preventLoop){if(!Splide22.is(FADE)){options.paddingCalc&&options.type==="slide"&&!state.is(DRAGGING)&&(position>=options.padding.right*-1?addedDestValue=0:sliderSize()+position-options.padding.right<=slideSize()?addedDestValue=options.padding.right:addedDestValue=options.padding.right/2);var destination=preventLoop?position:loop(position);style(list,"transform",`translate${resolve("X")}(${destination+addedDestValue}px)`),position!==destination&&emit(EVENT_SHIFTED)}}function loop(position){if(Splide22.is(LOOP)){var index=toIndex(position),exceededMax=index>Components2.Controller.getEnd(),exceededMin=index<0;(exceededMin||exceededMax)&&(position=shift(position,exceededMax))}return position}function shift(position,backwards){var excess=position-getLimit(backwards),size=sliderSize();return position-=orient(size*(ceil(abs(excess)/size)||1))*(backwards?1:-1),position}function cancel(){translate(getPosition(),!0),Transition.cancel()}function toIndex(position){for(var Slides2=Components2.Slides.get(),index=0,minDistance=1/0,i=0;i<Slides2.length;i++){var slideIndex=Slides2[i].index,distance=abs(toPosition(slideIndex,!0)-position);if(distance<=minDistance)minDistance=distance,index=slideIndex;else break}return index}function toPosition(index,trimming){var position=orient(totalSize(index-1)-offset(index));return trimming?trim(position):position}function getPosition(){var left=resolve("left");return rect(list)[left]-rect(track)[left]+orient(getPadding(!1))-addedDestValue}function trim(position){return options.trimSpace&&Splide22.is(SLIDE)&&(position=clamp(position,0,orient(sliderSize(!0)-listSize()))),position}function offset(index){var focus2=options.focus;return focus2==="center"?(listSize()-slideSize(index,!0))/2:+focus2*slideSize(index)||0}function getLimit(max2){return toPosition(max2?Components2.Controller.getEnd():0,!!options.trimSpace)}function canShift(backwards){var shifted=orient(shift(getPosition(),backwards));return backwards?shifted>=0:shifted<=list[resolve("scrollWidth")]-rect(track)[resolve("width")]}
vendor: 20,379 bytes, line 1
1function exceededLimit(max2,position){position=isUndefined(position)?getPosition():position;var exceededMin=max2!==!0&&orient(position)<orient(getLimit(!1)),exceededMax=max2!==!1&&orient(position)>orient(getLimit(!0));return exceededMin||exceededMax}return{mount,move,jump,translate,shift,cancel,toIndex,toPosition,getPosition,getLimit,exceededLimit,reposition}}function Controller(Splide22,Components2,options){var _EventInterface5=EventInterface(Splide22),on=_EventInterface5.on,emit=_EventInterface5.emit,Move2=Components2.Move,getPosition=Move2.getPosition,getLimit=Move2.getLimit,toPosition=Move2.toPosition,_Components2$Slides=Components2.Slides,isEnough=_Components2$Slides.isEnough,getLength=_Components2$Slides.getLength,omitEnd=options.omitEnd,isLoop=Splide22.is(LOOP),isSlide=Splide22.is(SLIDE),getNext=apply(getAdjacent,!1),getPrev=apply(getAdjacent,!0),currIndex=options.start||0,endIndex,prevIndex=currIndex,slideCount,perMove,perPage;function mount(){init(),on([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],init),on(EVENT_RESIZED,onResized)}function init(){slideCount=getLength(!0),perMove=options.perMove,perPage=options.perPage,endIndex=getEnd();var index=clamp(currIndex,0,omitEnd?endIndex:slideCount-1);index!==currIndex&&(currIndex=index,Move2.reposition())}function onResized(){endIndex!==getEnd()&&emit(EVENT_END_INDEX_CHANGED)}function go(control,allowSameIndex,callback){if(!isBusy()){var dest=parse(control),index=loop(dest);index>-1&&(allowSameIndex||index!==currIndex)&&(setIndex(index),Move2.move(dest,index,prevIndex,callback))}}function scroll(destination,duration,snap,callback){Components2.Scroll.scroll(destination,duration,snap,function(){var index=loop(Move2.toIndex(getPosition()));setIndex(omitEnd?min(index,endIndex):index),callback&&callback()})}function parse(control){var index=currIndex;if(isString(control)){var _ref=control.match(/([+\-<>])(\d+)?/)||[],indicator=_ref[1],number=_ref[2];indicator==="+"||indicator==="-"?index=computeDestIndex(currIndex+ +(""+indicator+(+number||1)),currIndex):indicator===">"?index=number?toIndex(+number):getNext(!0):indicator==="<"&&(index=getPrev(!0))}else index=isLoop?control:clamp(control,0,endIndex);return index}function getAdjacent(prev,destination){var number=perMove||(hasFocus()?1:perPage),dest=computeDestIndex(currIndex+number*(prev?-1:1),currIndex,!(perMove||hasFocus()));return dest===-1&&isSlide&&!approximatelyEqual(getPosition(),getLimit(!prev),1)?prev?0:endIndex:destination?dest:loop(dest)}function computeDestIndex(dest,from,snapPage){if(isEnough()||hasFocus()){var index=computeMovableDestIndex(dest);index!==dest&&(from=dest,dest=index,snapPage=!1),dest<0||dest>endIndex?!perMove&&(between(0,dest,from,!0)||between(endIndex,from,dest,!0))?dest=toIndex(toPage(dest)):isLoop?dest=snapPage?dest<0?-(slideCount%perPage||perPage):slideCount:dest:options.rewind?dest=dest<0?endIndex:0:dest=-1:snapPage&&dest!==from&&(dest=toIndex(toPage(from)+(dest<from?-1:1)))}else dest=-1;return dest}function computeMovableDestIndex(dest){if(isSlide&&options.trimSpace==="move"&&dest!==currIndex)for(var position=getPosition();position===toPosition(dest,!0)&&between(dest,0,Splide22.length-1,!options.rewind);)dest<currIndex?--dest:++dest;return dest}function loop(index){return isLoop?(index+slideCount)%slideCount||0:index}function getEnd(){for(var end=slideCount-(hasFocus()||isLoop&&perMove?1:perPage);omitEnd&&end-- >0;)if(toPosition(slideCount-1,!0)!==toPosition(end,!0)){end++;break}return clamp(end,0,slideCount-1)}function toIndex(page){return clamp(hasFocus()?page:perPage*page,0,endIndex)}function toPage(index){return hasFocus()?min(index,endIndex):floor((index>=endIndex?slideCount-1:index)/perPage)}function toDest(destination){var closest2=Move2.toIndex(destination);return isSlide?clamp(closest2,0,endIndex):closest2}function setIndex(index){index!==currIndex&&(prevIndex=currIndex,currIndex=index)}function getIndex(prev){return prev?prevIndex:currIndex}function hasFocus(){return!isUndefined(options.focus)||options.isNavigation}function isBusy(){return Splide22.state.is([MOVING,SCROLLING])&&!!options.waitForTransition}return{mount,go,scroll,getNext,getPrev,getAdjacent,getEnd,setIndex,getIndex,toIndex,toPage,toDest,hasFocus,isBusy}}var XML_NAME_SPACE="http://www.w3.org/2000/svg",PATH="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",SIZE=40;function Arrows(Splide22,Components2,options){var event=EventInterface(Splide22),on=event.on,bind=event.bind,emit=event.emit,classes=options.classes,i18n=options.i18n,Elements2=Components2.Elements,Controller2=Components2.Controller,placeholder=Elements2.arrows,track=Elements2.track,wrapper=placeholder,prev=Elements2.prev,next=Elements2.next,created,wrapperClasses,arrows={};function mount(){init(),on(EVENT_UPDATED,remount)}function remount(){destroy(),mount()}function init(){var enabled=options.arrows;enabled&&!(prev&&next)&&createArrows(),prev&&next&&(assign(arrows,{prev,next}),display(wrapper,enabled?"":"none"),addClass(wrapper,wrapperClasses=CLASS_ARROWS+"--"+options.direction),enabled&&(listen(),update(),setAttribute([prev,next],ARIA_CONTROLS,track.id),emit(EVENT_ARROWS_MOUNTED,prev,next)))}function destroy(){event.destroy(),removeClass(wrapper,wrapperClasses),created?(remove(placeholder?[prev,next]:wrapper),prev=next=null):removeAttribute([prev,next],ALL_ATTRIBUTES)}function listen(){on([EVENT_MOUNTED,EVENT_MOVED,EVENT_REFRESH,EVENT_SCROLLED,EVENT_END_INDEX_CHANGED],update),bind(next,"click",apply(go,">")),bind(prev,"click",apply(go,"<"))}function go(control){Controller2.go(control,!0)}function createArrows(){wrapper=placeholder||create("div",classes.arrows),prev=createArrow(!0),next=createArrow(!1),created=!0,append(wrapper,[prev,next]),!placeholder&&before(wrapper,track)}function createArrow(prev2){var arrow='<button class="'+classes.arrow+" "+(prev2?classes.prev:classes.next)+'" type="button"><svg xmlns="'+XML_NAME_SPACE+'" viewBox="0 0 '+SIZE+" "+SIZE+'" width="'+SIZE+'" height="'+SIZE+'" focusable="false"><path d="'+(options.arrowPath||PATH)+'" />';return parseHtml(arrow)}function update(){if(prev&&next){var index=Splide22.index,prevIndex=Controller2.getPrev(),nextIndex=Controller2.getNext(),prevLabel=prevIndex>-1&&index<prevIndex?i18n.last:i18n.prev,nextLabel=nextIndex>-1&&index>nextIndex?i18n.first:i18n.next;prev.disabled=prevIndex<0,next.disabled=nextIndex<0,setAttribute(prev,ARIA_LABEL,prevLabel),setAttribute(next,ARIA_LABEL,nextLabel),emit(EVENT_ARROWS_UPDATED,prev,next,prevIndex,nextIndex)}}return{arrows,mount,destroy,update}}var INTERVAL_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-interval";function Autoplay(Splide22,Components2,options){var _EventInterface6=EventInterface(Splide22),on=_EventInterface6.on,bind=_EventInterface6.bind,emit=_EventInterface6.emit,interval=RequestInterval(options.interval,Splide22.go.bind(Splide22,">"),onAnimationFrame),isPaused=interval.isPaused,Elements2=Components2.Elements,_Components2$Elements4=Components2.Elements,root=_Components2$Elements4.root,toggle=_Components2$Elements4.toggle,autoplay=options.autoplay,hovered,focused,stopped=autoplay==="pause";function mount(){autoplay&&(listen(),toggle&&setAttribute(toggle,ARIA_CONTROLS,Elements2.track.id),stopped||play(),update())}function listen(){options.pauseOnHover&&bind(root,"mouseenter mouseleave",function(e){hovered=e.type==="mouseenter",autoToggle()}),options.pauseOnFocus&&bind(root,"focusin focusout",function(e){focused=e.type==="focusin",autoToggle()}),toggle&&bind(toggle,"click",function(){stopped?play():pause(!0)}),on([EVENT_MOVE,EVENT_SCROLL,EVENT_REFRESH],interval.rewind),on(EVENT_MOVE,onMove)}function play(){isPaused()&&Components2.Slides.isEnough()&&(interval.start(!options.resetProgress),focused=hovered=stopped=!1,update(),emit(EVENT_AUTOPLAY_PLAY))}function pause(stop){stop===void 0&&(stop=!0),stopped=!!stop,update(),isPaused()||(interval.pause(),emit(EVENT_AUTOPLAY_PAUSE))}function autoToggle(){stopped||(hovered||focused?pause(!1):play())}function update(){toggle&&(toggleClass(toggle,CLASS_ACTIVE,!stopped),setAttribute(toggle,ARIA_LABEL,options.i18n[stopped?"play":"pause"]))}function onAnimationFrame(rate){var bar=Elements2.bar;bar&&style(bar,"width",rate*100+"%"),emit(EVENT_AUTOPLAY_PLAYING,rate)}function onMove(index){var Slide2=Components2.Slides.getAt(index);interval.set(Slide2&&+getAttribute(Slide2.slide,INTERVAL_DATA_ATTRIBUTE)||options.interval)}return{mount,destroy:interval.cancel,play,pause,isPaused}}function Cover(Splide22,Components2,options){var _EventInterface7=EventInterface(Splide22),on=_EventInterface7.on;function mount(){options.cover&&(on(EVENT_LAZYLOAD_LOADED,apply(toggle,!0)),on([EVENT_MOUNTED,EVENT_UPDATED,EVENT_REFRESH],apply(cover,!0)))}function cover(cover2){Components2.Slides.forEach(function(Slide2){var img=child(Slide2.container||Slide2.slide,"img");img&&img.src&&toggle(cover2,img,Slide2)})}function toggle(cover2,img,Slide2){Slide2.style("background",cover2?'center/cover no-repeat url("'+img.src+'")':"",!0),display(img,cover2?"none":"")}return{mount,destroy:apply(cover,!1)}}var BOUNCE_DIFF_THRESHOLD=10,BOUNCE_DURATION=600,FRICTION_FACTOR=.6,BASE_VELOCITY=1.5,MIN_DURATION=800;function Scroll(Splide22,Components2,options){var _EventInterface8=EventInterface(Splide22),on=_EventInterface8.on,emit=_EventInterface8.emit,set=Splide22.state.set,Move2=Components2.Move,getPosition=Move2.getPosition,getLimit=Move2.getLimit,exceededLimit=Move2.exceededLimit,translate=Move2.translate,isSlide=Splide22.is(SLIDE),interval,callback,friction=1;function mount(){on(EVENT_MOVE,clear),on([EVENT_UPDATED,EVENT_REFRESH],cancel)}function scroll(destination,duration,snap,onScrolled,noConstrain){var from=getPosition();if(clear(),snap&&(!isSlide||!exceededLimit())){var size=Components2.Layout.sliderSize(),offset=sign(destination)*size*floor(abs(destination)/size)||0;destination=Move2.toPosition(Components2.Controller.toDest(destination%size))+offset}var noDistance=approximatelyEqual(from,destination,1);friction=1,duration=noDistance?0:duration||max(abs(destination-from)/BASE_VELOCITY,MIN_DURATION),callback=onScrolled,interval=RequestInterval(duration,onEnd,apply(update,from,destination,noConstrain),1),set(SCROLLING),emit(EVENT_SCROLL),interval.start()}function onEnd(){set(IDLE),callback&&callback(),emit(EVENT_SCROLLED)}function update(from,to,noConstrain,rate){var position=getPosition(),target=from+(to-from)*easing(rate),diff=(target-position)*friction;translate(position+diff),isSlide&&!noConstrain&&exceededLimit()&&(friction*=FRICTION_FACTOR,abs(diff)<BOUNCE_DIFF_THRESHOLD&&scroll(getLimit(exceededLimit(!0)),BOUNCE_DURATION,!1,callback,!0))}function clear(){interval&&interval.cancel()}function cancel(){interval&&!interval.isPaused()&&(clear(),onEnd())}function easing(t){var easingFunc=options.easingFunc;return easingFunc?easingFunc(t):1-Math.pow(1-t,4)}return{mount,destroy:clear,scroll,cancel}}var SCROLL_LISTENER_OPTIONS={passive:!1,capture:!0};function Drag(Splide22,Components2,options){var _EventInterface9=EventInterface(Splide22),on=_EventInterface9.on,emit=_EventInterface9.emit,bind=_EventInterface9.bind,unbind=_EventInterface9.unbind,state=Splide22.state,Move2=Components2.Move,Scroll2=Components2.Scroll,Controller2=Components2.Controller,track=Components2.Elements.track,reduce=Components2.Media.reduce,_Components2$Directio2=Components2.Direction,resolve=_Components2$Directio2.resolve,orient=_Components2$Directio2.orient,getPosition=Move2.getPosition,exceededLimit=Move2.exceededLimit,basePosition,baseEvent,prevBaseEvent,isFree,dragging,exceeded=!1,clickPrevented,disabled,target;function mount(){bind(track,POINTER_MOVE_EVENTS,noop,SCROLL_LISTENER_OPTIONS),bind(track,POINTER_UP_EVENTS,noop,SCROLL_LISTENER_OPTIONS),bind(track,POINTER_DOWN_EVENTS,onPointerDown,SCROLL_LISTENER_OPTIONS),bind(track,"click",onClick,{capture:!0}),bind(track,"dragstart",prevent),on([EVENT_MOUNTED,EVENT_UPDATED],init)}function init(){var drag=options.drag;disable(!drag),isFree=drag==="free"}function onPointerDown(e){if(clickPrevented=!1,!disabled){var isTouch=isTouchEvent(e);isDraggable(e.target)&&(isTouch||!e.button)&&(Controller2.isBusy()?prevent(e,!0):(target=isTouch?track:window,dragging=state.is([MOVING,SCROLLING]),prevBaseEvent=null,bind(target,POINTER_MOVE_EVENTS,onPointerMove,SCROLL_LISTENER_OPTIONS),bind(target,POINTER_UP_EVENTS,onPointerUp,SCROLL_LISTENER_OPTIONS),Move2.cancel(),Scroll2.cancel(),save(e)))}}function onPointerMove(e){if(state.is(DRAGGING)||(state.set(DRAGGING),emit(EVENT_DRAG)),e.cancelable)if(dragging){Move2.translate(basePosition+constrain(diffCoord(e)));var expired=diffTime(e)>LOG_INTERVAL,hasExceeded=exceeded!==(exceeded=exceededLimit());(expired||hasExceeded)&&save(e),clickPrevented=!0,emit(EVENT_DRAGGING),prevent(e)}else isSliderDirection(e)&&(dragging=shouldStart(e),prevent(e))}function onPointerUp(e){state.is(DRAGGING)&&(state.set(IDLE),emit(EVENT_DRAGGED)),dragging&&(move(e),prevent(e)),unbind(target,POINTER_MOVE_EVENTS,onPointerMove),unbind(target,POINTER_UP_EVENTS,onPointerUp),dragging=!1}function onClick(e){!disabled&&clickPrevented&&prevent(e,!0)}function save(e){prevBaseEvent=baseEvent,baseEvent=e,basePosition=getPosition()}function move(e){var velocity=computeVelocity(e),destination=computeDestination(velocity),rewind=options.rewind&&options.rewindByDrag;reduce(!1),isFree?Controller2.scroll(destination,0,options.snap):Splide22.is(FADE)?Controller2.go(orient(sign(velocity))<0?rewind?"<":"-":rewind?">":"+"):Splide22.is(SLIDE)&&exceeded&&rewind?Controller2.go(exceededLimit(!0)?">":"<"):Controller2.go(Controller2.toDest(destination),!0),reduce(!0)}function shouldStart(e){var thresholds=options.dragMinThreshold,isObj=isObject(thresholds),mouse=isObj&&thresholds.mouse||0,touch=(isObj?thresholds.touch:+thresholds)||10;return abs(diffCoord(e))>(isTouchEvent(e)?touch:mouse)}function isSliderDirection(e){return abs(diffCoord(e))>abs(diffCoord(e,!0))}function computeVelocity(e){if(Splide22.is(LOOP)||!exceeded){var time=diffTime(e);if(time&&time<LOG_INTERVAL)return diffCoord(e)/time}return 0}function computeDestination(velocity){return getPosition()+sign(velocity)*min(abs(velocity)*(options.flickPower||600),isFree?1/0:Components2.Layout.listSize()*(options.flickMaxPages||1))}function diffCoord(e,orthogonal){return coordOf(e,orthogonal)-coordOf(getBaseEvent(e),orthogonal)}function diffTime(e){return timeOf(e)-timeOf(getBaseEvent(e))}function getBaseEvent(e){return baseEvent===e&&prevBaseEvent||baseEvent}function coordOf(e,orthogonal){return(isTouchEvent(e)?e.changedTouches[0]:e)["page"+resolve(orthogonal?"Y":"X")]}function constrain(diff){return diff/(exceeded&&Splide22.is(SLIDE)?FRICTION:1)}function isDraggable(target2){var noDrag=options.noDrag;return!matches(target2,"."+CLASS_PAGINATION_PAGE+", ."+CLASS_ARROW)&&(!noDrag||!matches(target2,noDrag))}function isTouchEvent(e){return typeof TouchEvent<"u"&&e instanceof TouchEvent}function isDragging(){return dragging}function disable(value){disabled=value}return{mount,disable,isDragging}}var NORMALIZATION_MAP={Spacebar:" ",Right:ARROW_RIGHT,Left:ARROW_LEFT,Up:ARROW_UP,Down:ARROW_DOWN};function normalizeKey(key){return key=isString(key)?key:key.key,NORMALIZATION_MAP[key]||key}var KEYBOARD_EVENT="keydown";function Keyboard(Splide22,Components2,options){var _EventInterface10=EventInterface(Splide22),on=_EventInterface10.on,bind=_EventInterface10.bind,unbind=_EventInterface10.unbind,root=Splide22.root,resolve=Components2.Direction.resolve,target,disabled;function mount(){init(),on(EVENT_UPDATED,destroy),on(EVENT_UPDATED,init),on(EVENT_MOVE,onMove)}function init(){var keyboard=options.keyboard;keyboard&&(target=keyboard==="global"?window:root,bind(target,KEYBOARD_EVENT,onKeydown))}function destroy(){unbind(target,KEYBOARD_EVENT)}function disable(value){disabled=value}function onMove(){var _disabled=disabled;disabled=!0,nextTick(function(){disabled=_disabled})}function onKeydown(e){if(!disabled){var key=normalizeKey(e);key===resolve(ARROW_LEFT)?Splide22.go("<"):key===resolve(ARROW_RIGHT)&&Splide22.go(">")}}return{mount,destroy,disable}}var SRC_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-lazy",SRCSET_DATA_ATTRIBUTE=SRC_DATA_ATTRIBUTE+"-srcset",IMAGE_SELECTOR="["+SRC_DATA_ATTRIBUTE+"], ["+SRCSET_DATA_ATTRIBUTE+"]";function LazyLoad(Splide22,Components2,options){var _EventInterface11=EventInterface(Splide22),on=_EventInterface11.on,off=_EventInterface11.off,bind=_EventInterface11.bind,emit=_EventInterface11.emit,isSequential=options.lazyLoad==="sequential",events=[EVENT_MOVED,EVENT_SCROLLED],entries=[];function mount(){options.lazyLoad&&(init(),on(EVENT_REFRESH,init))}function init(){empty(entries),register(),isSequential?loadNext():(off(events),on(events,check),check())}function register(){Components2.Slides.forEach(function(Slide2){queryAll(Slide2.slide,IMAGE_SELECTOR).forEach(function(img){var src=getAttribute(img,SRC_DATA_ATTRIBUTE),srcset=getAttribute(img,SRCSET_DATA_ATTRIBUTE);if(src!==img.src||srcset!==img.srcset){var className=options.classes.spinner,parent=img.parentElement,spinner=child(parent,"."+className)||create("span",className,parent);entries.push([img,Slide2,spinner]),img.src||display(img,"none")}})})}function check(){entries=entries.filter(function(data){var distance=options.perPage*((options.preloadPages||1)+1)-1;return data[1].isWithin(Splide22.index,distance)?load(data):!0}),entries.length||off(events)}function load(data){var img=data[0];addClass(data[1].slide,CLASS_LOADING),bind(img,"load error",apply(onLoad,data)),setAttribute(img,"src",getAttribute(img,SRC_DATA_ATTRIBUTE)),setAttribute(img,"srcset",getAttribute(img,SRCSET_DATA_ATTRIBUTE)),removeAttribute(img,SRC_DATA_ATTRIBUTE),removeAttribute(img,SRCSET_DATA_ATTRIBUTE)}function onLoad(data,e){var img=data[0],Slide2=data[1];removeClass(Slide2.slide,CLASS_LOADING),e.type!=="error"&&(remove(data[2]),display(img,""),emit(EVENT_LAZYLOAD_LOADED,img,Slide2),emit(EVENT_RESIZE)),isSequential&&loadNext()}function loadNext(){entries.length&&load(entries.shift())}return{mount,destroy:apply(empty,entries),check}}function Pagination(Splide22,Components2,options){var event=EventInterface(Splide22),on=event.on,emit=event.emit,bind=event.bind,Slides2=Components2.Slides,Elements2=Components2.Elements,Controller2=Components2.Controller,hasFocus=Controller2.hasFocus,getIndex=Controller2.getIndex,go=Controller2.go,resolve=Components2.Direction.resolve,placeholder=Elements2.pagination,items=[],list,paginationClasses;function mount(){destroy(),on([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],mount);var enabled=options.pagination;placeholder&&display(placeholder,enabled?"":"none"),enabled&&(on([EVENT_MOVE,EVENT_SCROLL,EVENT_SCROLLED],update),createPagination(),update(),emit(EVENT_PAGINATION_MOUNTED,{list,items},getAt(Splide22.index)))}function destroy(){list&&(remove(placeholder?slice(list.children):list),removeClass(list,paginationClasses),empty(items),list=null),event.destroy()}function createPagination(){var length=Splide22.length,classes=options.classes,i18n=options.i18n,perPage=options.perPage,max2=hasFocus()?Controller2.getEnd()+1:ceil(length/perPage);list=placeholder||create("ul",classes.pagination,Elements2.track.parentElement),addClass(list,paginationClasses=CLASS_PAGINATION+"--"+getDirection()),setAttribute(list,ROLE,"tablist"),setAttribute(list,ARIA_LABEL,i18n.select),setAttribute(list,ARIA_ORIENTATION,getDirection()===TTB?"vertical":"");for(var i=0;i<max2;i++){var li=create("li",null,list),button=create("button",{class:classes.page,type:"button"},li),controls=Slides2.getIn(i).map(function(Slide2){return Slide2.slide.id}),text=!hasFocus()&&perPage>1?i18n.pageX:i18n.slideX;bind(button,"click",apply(onClick,i)),options.paginationKeyboard&&bind(button,"keydown",apply(onKeydown,i)),setAttribute(li,ROLE,"presentation"),setAttribute(button,ROLE,"tab"),setAttribute(button,ARIA_CONTROLS,controls.join(" ")),setAttribute(button,ARIA_LABEL,format(text,i+1)),setAttribute(button,TAB_INDEX,-1),items.push({li,button,page:i})}}function onClick(page){go(">"+page,!0)}function onKeydown(page,e){var length=items.length,key=normalizeKey(e),dir=getDirection(),nextPage=-1;key===resolve(ARROW_RIGHT,!1,dir)?nextPage=++page%length:key===resolve(ARROW_LEFT,!1,dir)?nextPage=(--page+length)%length:key==="Home"?nextPage=0:key==="End"&&(nextPage=length-1);var item=items[nextPage];item&&(focus(item.button),go(">
1"+nextPage),prevent(e,!0))}function getDirection(){return options.paginationDirection||options.direction}function getAt(index){return items[Controller2.toPage(index)]}function update(){var prev=getAt(getIndex(!0)),curr=getAt(getIndex());if(prev){var button=prev.button;removeClass(button,CLASS_ACTIVE),removeAttribute(button,ARIA_SELECTED),setAttribute(button,TAB_INDEX,-1)}if(curr){var _button=curr.button;addClass(_button,CLASS_ACTIVE),setAttribute(_button,ARIA_SELECTED,!0),setAttribute(_button,TAB_INDEX,"")}emit(EVENT_PAGINATION_UPDATED,{list,items},prev,curr)}return{items,mount,destroy,getAt,update}}var TRIGGER_KEYS=[" ","Enter"];function Sync(Splide22,Components2,options){var isNavigation=options.isNavigation,slideFocus=options.slideFocus,events=[];function mount(){Splide22.splides.forEach(function(target){target.isParent||(sync(Splide22,target.splide),sync(target.splide,Splide22))}),isNavigation&&navigate()}function destroy(){events.forEach(function(event){event.destroy()}),empty(events)}function remount(){destroy(),mount()}function sync(splide,target){var event=EventInterface(splide);event.on(EVENT_MOVE,function(index,prev,dest){target.go(target.is(LOOP)?dest:index)}),events.push(event)}function navigate(){var event=EventInterface(Splide22),on=event.on;on(EVENT_CLICK,onClick),on(EVENT_SLIDE_KEYDOWN,onKeydown),on([EVENT_MOUNTED,EVENT_UPDATED],update),events.push(event),event.emit(EVENT_NAVIGATION_MOUNTED,Splide22.splides)}function update(){setAttribute(Components2.Elements.list,ARIA_ORIENTATION,options.direction===TTB?"vertical":"")}function onClick(Slide2){Splide22.go(Slide2.index)}function onKeydown(Slide2,e){includes(TRIGGER_KEYS,normalizeKey(e))&&(onClick(Slide2),prevent(e))}return{setup:apply(Components2.Media.set,{slideFocus:isUndefined(slideFocus)?isNavigation:slideFocus},!0),mount,destroy,remount}}function Wheel(Splide22,Components2,options){var _EventInterface12=EventInterface(Splide22),bind=_EventInterface12.bind,lastTime=0;function mount(){options.wheel&&bind(Components2.Elements.track,"wheel",onWheel,SCROLL_LISTENER_OPTIONS)}function onWheel(e){if(e.cancelable){var deltaY=e.deltaY,backwards=deltaY<0,timeStamp=timeOf(e),_min=options.wheelMinThreshold||0,sleep=options.wheelSleep||0;abs(deltaY)>_min&&timeStamp-lastTime>sleep&&(Splide22.go(backwards?"<":">"),lastTime=timeStamp),shouldPrevent(backwards)&&prevent(e)}}function shouldPrevent(backwards){return!options.releaseWheel||Splide22.state.is(MOVING)||Components2.Controller.getAdjacent(backwards)!==-1}return{mount}}var SR_REMOVAL_DELAY=90;function Live(Splide22,Components2,options){var _EventInterface13=EventInterface(Splide22),on=_EventInterface13.on,track=Components2.Elements.track,enabled=options.live&&!options.isNavigation,sr=create("span",CLASS_SR),interval=RequestInterval(SR_REMOVAL_DELAY,apply(toggle,!1));function mount(){enabled&&(disable(!Components2.Autoplay.isPaused()),setAttribute(track,ARIA_ATOMIC,!0),sr.textContent="\u2026",on(EVENT_AUTOPLAY_PLAY,apply(disable,!0)),on(EVENT_AUTOPLAY_PAUSE,apply(disable,!1)),on([EVENT_MOVED,EVENT_SCROLLED],apply(toggle,!0)))}function toggle(active){setAttribute(track,ARIA_BUSY,active),active?(append(track,sr),interval.start()):(remove(sr),interval.cancel())}function destroy(){removeAttribute(track,[ARIA_LIVE,ARIA_ATOMIC,ARIA_BUSY]),remove(sr)}function disable(disabled){enabled&&setAttribute(track,ARIA_LIVE,disabled?"off":"polite")}return{mount,disable,destroy}}var ComponentConstructors=Object.freeze({__proto__:null,Media,Direction,Elements,Slides,Layout,Clones,Move,Controller,Arrows,Autoplay,Cover,Scroll,Drag,Keyboard,LazyLoad,Pagination,Sync,Wheel,Live}),I18N={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},DEFAULTS={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
1:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:CLASSES,i18n:I18N,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Fade(Splide22,Components2,options){var Slides2=Components2.Slides;function mount(){EventInterface(Splide22).on([EVENT_MOUNTED,EVENT_REFRESH],init)}function init(){Slides2.forEach(function(Slide2){Slide2.style("transform","translateX(-"+100*Slide2.index+"%)")})}function start(index,done){Slides2.style("transition","opacity "+options.speed+"ms "+options.easing),nextTick(done)}return{mount,start,cancel:noop}}function Slide(Splide22,Components2,options){var Move2=Components2.Move,Controller2=Components2.Controller,Scroll2=Components2.Scroll,list=Components2.Elements.list,transition=apply(style,list,"transition"),endCallback;function mount(){EventInterface(Splide22).bind(list,"transitionend",function(e){e.target===list&&endCallback&&(cancel(),endCallback())})}function start(index,done){var destination=Move2.toPosition(index,!0),position=Move2.getPosition(),speed=getSpeed(index);abs(destination-position)>=1&&speed>=1?options.useScroll?Scroll2.scroll(destination,speed,!1,done):(transition("transform "+speed+"ms "+options.easing),Move2.translate(destination,!0),endCallback=done):(Move2.jump(index),done())}function cancel(){transition(""),Scroll2.cancel()}function getSpeed(index){var rewindSpeed=options.rewindSpeed;if(Splide22.is(SLIDE)&&rewindSpeed){var prev=Controller2.getIndex(!0),end=Controller2.getEnd();if(prev===0&&index>=end||prev>=end&&index===0)return rewindSpeed}return options.speed}return{mount,start,cancel}}var _Splide=(function(){function _Splide2(target,options){this.event=EventInterface(),this.Components={},this.state=State(CREATED),this.splides=[],this._o={},this._E={};var root=isString(target)?query(document,target):target;assert(root,root+" is invalid."),this.root=root,options=merge({label:getAttribute(root,ARIA_LABEL)||"",labelledby:getAttribute(root,ARIA_LABELLEDBY)||""},DEFAULTS,_Splide2.defaults,options||{});try{merge(options,JSON.parse(getAttribute(root,DATA_ATTRIBUTE)))}catch{assert(!1,"Invalid JSON")}this._o=Object.create(merge({},options))}var _proto=_Splide2.prototype;return _proto.mount=function(Extensions,Transition){var _this=this,state=this.state,Components2=this.Components;assert(state.is([CREATED,DESTROYED]),"Already mounted!"),state.set(CREATED),this._C=Components2,this._T=Transition||this._T||(this.is(FADE)?Fade:Slide),this._E=Extensions||this._E;var Constructors=assign({},ComponentConstructors,this._E,{Transition:this._T});return forOwn(Constructors,function(Component,key){var component=Component(_this,Components2,_this._o);Components2[key]=component,component.setup&&component.setup()}),forOwn(Components2,function(component){component.mount&&component.mount()}),this.emit(EVENT_MOUNTED),addClass(this.root,CLASS_INITIALIZED),state.set(IDLE),this.emit(EVENT_READY),this},_proto.sync=function(splide){return this.splides.push({splide}),splide.splides.push({splide:this,isParent:!0}),this.state.is(IDLE)&&(this._C.Sync.remount(),splide.Components.Sync.remount()),this},_proto.go=function(control){return this._C.Controller.go(control),this},_proto.on=function(events,callback){return this.event.on(events,callback),this},_proto.off=function(events){return this.event.off(events),this},_proto.emit=function(event){var _this$event;return(_this$event=this.event).emit.apply(_this$event,[event].concat(slice(arguments,1))),this},_proto.add=function(slides,index){return this._C.Slides.add(slides,index),this},_proto.remove=function(matcher){return this._C.Slides.remove(matcher),this},_proto.is=function(type){return this._o.type===type},_proto.refresh=function(){return this.emit(EVENT_REFRESH),this},_proto.destroy=function(completely){completely===void 0&&(completely=!0);var event=this.event,state=this.state;return state.is(CREATED)?EventInterface(this).on(EVENT_READY,this.destroy.bind(this,completely)):(forOwn(this._C,function(component){component.destroy&&component.destroy(completely)},!0),event.emit(EVENT_DESTROY),event.destroy(),completely&&empty(this.splides),state.set(DESTROYED)),this},_createClass(_Splide2,[{key:"options",get:function(){return this._o},set:function(options){this._C.Media.set(options,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),_Splide2})(),Splide2=_Splide;return Splide2.defaults={},Splide2.STATES=STATES,Splide2});class SplideComponent extends HTMLElement{constructor(){super(),this.sliderContainer=this.querySelector(".splide"),document.addEventListener("shopify:section:load",event=>{this.initSlider()})}connectedCallback(){this.initSlider()}initSlider(){this.type=this.dataset.type||"slide",this.typeMobile=this.dataset.typeMobile||this.type,this.direction=this.dataset.direction||defaultDirection,this.rewind=this.type==="fade",this.autoplay=this.dataset.autoplay==="true",this.autoplaySpeed=this.dataset.autoplaySpeed&&!isNaN(parseInt(this.dataset.autoplaySpeed))?parseInt(this.dataset.autoplaySpeed)*1e3:5e3,this.drag=this.dataset.drag==="false"?!1:this.dataset.drag==="free"?"free":!0,this.focus=this.dataset.focus||0,this.trimSpace=this.dataset.trimSpace!=="false",this.arrows=this.dataset.arrows!=="false",this.arrowsColor=this.dataset.arrowsColor?` color-${this.dataset.arrowsColor}`:"",this.pagination=this.dataset.pagination!=="false",this.omitEnd=this.dataset.omitEnd!=="false",this.dotsColor=this.dataset.dotsColor?` color-${this.dataset.dotsColor} dots-custom-color`:"",this.slidesDesktop=this.dataset.slidesDesktop&&!isNaN(parseInt(this.dataset.slidesDesktop))?parseInt(this.dataset.slidesDesktop):3,this.autoWidth=this.dataset.autoWidth==="true",this.slidesMobile=this.dataset.slidesMobile&&!isNaN(parseInt(this.dataset.slidesMobile))?parseInt(this.dataset.slidesMobile):1,this.perMoveDesktop=this.dataset.perMoveDesktop&&!isNaN(parseInt(this.dataset.perMoveDesktop))?parseInt(this.dataset.perMoveDesktop):1,this.perMoveMobile=this.dataset.perMoveMobile&&!isNaN(parseInt(this.dataset.perMoveMobile))?parseInt(this.dataset.perMoveMobile):1,this.gapDesktop=this.dataset.gapDesktop?parseInt(this.dataset.gapDesktop):30,this.gapMobile=this.dataset.gapMobile?parseInt(this.dataset.gapMobile):15,this.paddingCalcDesktop=this.dataset.paddingCalcDesktop==="true",this.rightPaddingDesktop=parseInt(this.dataset.sidePaddingDesktop)||0,this.leftPaddingDesktop=this.dataset.paddingCalcDesktop?0:this.rightPaddingDesktop,this.paddingCalcMobile=this.dataset.paddingCalcMobile==="true",this.rightPaddingMobile=parseInt(this.dataset.sidePaddingMobile)||0,this.leftPaddingMobile=this.paddingCalcMobile?0:this.rightPaddingMobile,this.destroyDesktop=this.dataset.destroyDesktop==="true",this.destroyMobile=this.dataset.destroyMobile==="true",this.config={type:this.t
1ype,direction:this.direction,rewind:this.rewind,autoplay:this.autoplay,interval:this.autoplaySpeed,drag:this.drag,focus:this.focus,trimSpace:this.trimSpace,arrows:this.arrows,pagination:this.pagination,omitEnd:this.omitEnd,perPage:this.slidesDesktop,perMove:this.perMoveDesktop,autoWidth:this.autoWidth,gap:this.gapDesktop,paddingCalc:this.paddingCalcDesktop,padding:{left:this.leftPaddingDesktop,right:this.rightPaddingDesktop},destroy:this.destroyDesktop,classes:{arrow:`splide__arrow${this.arrowsColor}`,page:`splide__pagination__page${this.dotsColor}`},easing:"cubic-bezier(0.25, 1, 0.5, 1)",breakpoints:{749:{omitEnd:this.omitEnd,type:this.typeMobile,perPage:this.slidesMobile,perMove:this.perMoveMobile,gap:this.gapMobile,paddingCalc:this.paddingCalcMobile,padding:{left:this.leftPaddingMobile,right:this.rightPaddingMobile},destroy:this.destroyMobile}}};let splide=new Splide(this.sliderContainer,this.config);splide.on("mounted",()=>{let initialIndex=splide.index,initialSlide=splide.Components.Elements.slides[initialIndex];if(initialSlide){let slideImage=initialSlide.querySelector("img");slideImage?slideImage.complete?(initialSlide.classList.add("is-instant-active"),this.setActiveSlideHeight(initialSlide)):slideImage.addEventListener("load",()=>{initialSlide.classList.add("is-instant-active"),this.setActiveSlideHeight(initialSlide)}):(initialSlide.classList.add("is-instant-active"),this.setActiveSlideHeight(initialSlide))}const debouncedResize=debounce(()=>{let currentSlide=splide.Components.Elements.slides[splide.index];this.setActiveSlideHeight(currentSlide)},200);window.addEventListener("resize",debouncedResize)}),splide.on("move",newIndex=>{let realIndex=splide.index,slides=splide.Components.Elements.slides;if(slides){let currentSlide=slides[realIndex];
1currentSlide&&(slides.forEach(slide=>slide.classList.remove("is-instant-active")),currentSlide.classList.add("is-instant-active"),this.setActiveSlideHeight(currentSlide))}}),this.dataset.pauseVideos==="true"&&splide.on("hidden",Slide=>{const video=Slide.slide.querySelector("internal-video");if(video){const actionOnInactive=video.dataset.actionOnInactive;actionOnInactive==="pause"?(video.video.pause(),video.classList.remove("internal-video--playing")):actionOnInactive==="mute"&&(video.video.muted=!0,video.classList.add("internal-video--muted"))}}),splide.mount()}setActiveSlideHeight(slide){if(slide){let slideHeight=slide.offsetHeight;this.style.setProperty("--active-slide-height",`${slideHeight}px`)}}}customElements.define("splide-component",SplideComponent);class DetailsDisclosure extends HTMLElement{constructor(){super(),this.mainDetailsToggle=this.querySelector("details"),this.content=this.mainDetailsToggle.querySelector("summary").nextElementSibling,this.mainDetailsToggle.addEventListener("focusout",this.onFocusOut.bind(this)),this.mainDetailsToggle.addEventListener("toggle",this.onToggle.bind(this))}onFocusOut(){setTimeout(()=>{this.contains(document.activeElement)||this.close()})}onToggle(){this.animations||(this.animations=this.content.getAnimations()),this.mainDetailsToggle.hasAttribute("open")?this.animations.forEach(animation=>animation.play()):this.animations.forEach(animation=>animation.cancel())}close(){this.mainDetailsToggle.removeAttribute("open"),this.mainDetailsToggle.querySelector("summary").setAttribute("aria-expanded",!1)}}customElements.define("details-disclosure",DetailsDisclosure);class HeaderMenu extends DetailsDisclosure{constructor(){super(),this.header=document.querySelector(".header-wrapper")}onToggle(){this.header&&(this.header.preventHide=this.mainDetailsToggle.open,document.documentElement.style.getPropertyValue("--header-bottom-position-desktop")===""&&document.documentElement.style.setProperty("--header-bottom-position-desktop",`${Math.floor(this.header.getBoundingClientRect().bottom)}px`))}}customElements.define("header-menu",HeaderMenu);class DetailsModal extends HTMLElement{constructor(){super(),this.detailsContainer=this.querySelector("details"),this.summaryToggle=this.querySelector("summary"),this.detailsContainer.addEventListener("keyup",event=>event.code.toUpperCase()==="ESCAPE"&&this.close()),this.summaryToggle.addEventListener("click",this.onSummaryClick.bind(this)),this.querySelector('button[type="button"]').addEventListener("click",this.close.bind(this)),this.summaryToggle.setAttribute("role","button")}isOpen(){return this.detailsContainer.hasAttribute("open")}onSummaryClick(event){event.preventDefault(),event.target.closest("details").hasAttribute("open")?this.close():this.open(event)}onBodyClick(event){(!this.contains(event.target)||event.target.classList.contains("modal-overlay"))&&this.close(!1)}open(event){this.onBodyClickEvent=this.onBodyClickEvent||this.onBodyClick.bind(this),event.target.closest("details").setAttribute("open",!0),document.body.addEventListener("click",this.onBodyClickEvent),document.body.classList.add("overflow-hidden"),typeof trapFocus=="function"&&trapFocus(this.detailsContainer.querySelector('[tabindex="-1"]'),this.detailsContainer.querySelector('input:not([type="hidden"])'))}close(focusToggle=!0){typeof removeTrapFocus=="function"&&removeTrapFocus(focusToggle?this.summaryToggle:null),this.detailsContainer.removeAttribute("open"),document.body.removeEventListener("click",this.onBodyClickEvent),document.body.classList.remove("overflow-hidden")}}customElements.define("details-modal",DetailsModal);let hotspotButtons=[];function registerHotspotButton(hotspotButton){hotspotButtons.push(hotspotButton)}function unregisterHotspotButton(hotspotButton){const index=hotspotButtons.indexOf(hotspotButton);index!==-1&&hotspotButtons.splice(index,1)}document.addEventListener("mousedown",function(e){for(let hotspotButton of hotspotButtons)hotspotButton.dataset.open==="true"&&!hotspotButton.contains(e.target)&&hotspotButton.closeModal()});class HotspotButton extends HTMLElement{constructor(){super(),this.button=this.querySelector(".hotspot-btn"),this.content=this.querySelector(".hotspot__content"),this.type=this.dataset.type,this.openEvent=this.dataset.openEvent,this.header=document.querySelector(".section-header"),this.stickyHeader=document.querySelector("sticky-header"),this.mobileOverlay=this.querySelector(".hotspot-overlay"),this.button.addEventListener("click",this.toggleModal.bind(this)),this.openEvent==="hover"&&window.matchMedia("(hover: hover)").matches&&window.matchMedia("(pointer: fine)").matches&&(this.button.addEventListener("mouseover",this.openModal.bind(this)),this.button.addEventListener("mouseout",this.startCheckingMouseLeave.bind(this)),this.content.addEventListener("mouseover",this.stopCheckingMouseLeave.bind(this)),this.content.addEventListener("mouseout",this.startCheckingMouseLeave.bind(this))),this.mobileOverlay&&this.mobileOverlay.addEventListener("click",this.closeModal.bind(this))}startCheckingMouseLeave(){this.checkingMouseLeave=!0,setTimeout(()=>{this.checkingMouseLeave&&this.closeModal()},200)}stopCheckingMouseLeave(){this.checkingMouseLeave=!1}toggleModal(){this.dataset.open!="true"&&this.openModal()}openModal(){let headerHeight=this.header.clientHeight;(this.header.classList.contains("shopify-section-header-hidden")||!this.stickyHeader)&&(headerHeight=0),this.content.getBoundingClientRect().top-headerHeight<0&&(this.dataset.direction="bottom"),this.dataset.open="true"}closeModal(){this.dataset.open="false",setTimeout(()=>{this.dataset.direction=""},100)}connectedCallback(){registerHotspotButton(this)}disconnectedCallback(){unregisterHotspotButton(this)}}customElements.define("hotspot-button",HotspotButton);class ParallaxHero extends HTMLElement{constructor(){super(),this.overlays=this.querySelectorAll(".parallax-hero__layer"),this.animateO
1nEnter=this.dataset.animationStart==="bottom",this.handleScroll(),window.addEventListener("scroll",()=>requestAnimationFrame(this.handleScroll.bind(this)))}handleScroll(e){var{top,left,height}=this.getBoundingClientRect();const viewportHeight=window.innerHeight;let progress;if(this.animateOnEnter){if(top>viewportHeight||top+height<0)return;const distanceFromViewportTop=viewportHeight-top;progress=Math.min(distanceFromViewportTop/(viewportHeight+height),1)}else{if(top>viewportHeight||top+height<0)return;const topAdjusted=top>=0?0:-top;if(topAdjusted>height)return;progress=Math.min(topAdjusted/height,1)}this.overlays.forEach(overlay=>{const translateY=top*(parseInt(overlay.dataset.scrollY)/100),translateX=parseInt(overlay.dataset.scrollX)*progress,scale=100+(parseInt(overlay.dataset.zoom)-100)*progress,rotate=parseInt(overlay.dataset.rotation)*3.6*progress;overlay.style.transform=`translateY(${translateY}px) translateX(${translateX}%) scale(${scale/100}) rotate(${rotate}deg)`})}}customElements.define("parallax-hero",ParallaxHero);class ContentTabs extends HTMLElement{constructor(){super(),this.activeButtonClass=this.dataset.productTabs=="true"?"active":"content-tab-button--active",this.buttons=this.querySelectorAll(".content-tab-button-js"),this.tabs=this.querySelectorAll(".content-tab"),this.tabsContainer=this.querySelector(".content-tabs__tabs-js"),this.activeButton=this.querySelector(`.${this.activeButtonClass}`),this.activeTab=this.querySelector(".content-tab--active"),this.isMovingAnimation=this.dataset.animation==="moving",this.isMovingAnimation&&(this.activeBg=this.querySelector(".content-tab-buttom__active-bg"),this.handleActiveBg(),this.activeBg.style.transitionDuration="0.4s"),this.setHeight(),this.buttons.forEach(btn=>{btn.addEventListener("click",this.handleClick.bind(this))}),window.addEventListener("resize",()=>{this.setHeight(),this.isMovingAnimation&&this.handleActiveBg()})}handleClick(e){this.activeButton=e.currentTarget,this.buttons.forEach(btn=>{btn.classList.remove(this.activeButtonClass)}),this.activeButton.classList.add(this.activeButtonClass),this.tabs.forEac
1h(tab=>{tab.classList.remove("content-tab--active"),tab.dataset.index===this.activeButton.dataset.index&&(this.activeTab=tab)}),this.activeTab.classList.add("content-tab--active"),this.setHeight(),this.isMovingAnimation&&this.handleActiveBg()}setHeight(){this.activeTab&&(this.tabsContainer.style.height=this.activeTab.clientHeight+"px")}handleActiveBg(){this.activeBg.style.width=this.activeButton.getBoundingClientRect().width+"px",this.activeBg.style.height=this.activeButton.getBoundingClientRect().height+"px",this.activeBg.style.top=this.activeButton.offsetTop+"px",this.activeBg.style.left=this.activeButton.offsetLeft+"px"}}customElements.define("content-tabs",ContentTabs);class InstaStories extends HTMLElement{constructor(){super(),this.openButtons=this.querySelectorAll(".insta-story-open-btn"),this.openButtonsOverflowContainer=this.querySelector(".insta-stories__open-buttons-container"),this.openButtonsContainer=this.querySelector(".insta-stories__open-buttons"),this.openBtnsPrev=this.querySelector(".insta-stories__open-btns-prev"),this.openBtnsNext=this.querySelector(".insta-stories__open-btns-next"),this.closeButtons=this.querySelectorAll(".insta-stories__close-button"),this.modal=this.querySelector(".insta-stories__modal"),this.modalOpen=!1,this.slider=this.querySelector(".insta-stories__slider"),this.stories=this.querySelectorAll(".insta-story"),this.prevBtns=this.querySelectorAll(".insta-story__prev"),this.nextBtns=this.querySelectorAll(".insta-story__next"),this.slideBtns=this.querySelectorAll(".insta-story__slide-btn"),this.activeIndex=0,this.activeStory=this.stories[this.activeIndex],this.lastIndex=parseInt(this.dataset.lastIndex),this.pauseResumeBtns=this.querySelectorAll(".insta-story__pause-resume-btn"),this.isPaused=!1,this.volumeBtns=this.querySelectorAll(".insta-story__volume-btn"),this.isMuted=!0,this.initStories(),this.initButtonsSlider(),this.openButtons.forEach(btn=>{btn.addEventListener("click",this.openModal.bind(this))}),this.closeButtons.forEach(btn=>{btn.addEventListener("click",this.closeModal.bind(this))}),this.prevBtns.forEach(btn=>{btn.addEventListener("click",this.storyPrevBtnClick.bind(this))}),this.nextBtns.forEach(btn=>{btn.addEventListener("click",this.storyNextBtnClick.bind(this))}),this.slideBtns.forEach(btn=>{btn.addEventListener("click",this.slideBtnClick.bind(this))}),this.pauseResumeBtns.forEach(btn=>{btn.addEventListener("click",this.togglePauseResume.bind(this))}),this.volumeBtns.forEach(btn=>{btn.addEventListener("click",this.toggleIsMuted.bind(this))}),this.slider.addEventListener("touchstart",this.touchStartHandler.bind(this)),this.slider.addEventListener("touchend",this.touchEndHandler.bind(this)),document.addEventListener("keydown",event=>{if(this.modalOpen)switch(event.key){case"Escape":this.closeModal();break;case"ArrowLeft":this.storyPrevBtnClick();break;case"ArrowRight":this.storyNextBtnClick();break}}),Shopify.designMode&&(document.addEventListener("shopify:section:load",()=>{this.initStories(),this.initButtonsSlider()}),document.addEventListener("shopify:section:reorder",()=>{this.initStories(),this.initButtonsSlider()}))}autoplay(){const story=this.activeStory,mediaIndex=parseInt(story.dataset.activeMediaIndex),media=story.querySelectorAll(".insta-story__media")[mediaIndex],duration=parseInt(media.getAttribute("data-duration"))*1e3;this.updateProgressBars(mediaIndex),this.autoplayStartTime=Date.now(),this.autoplayTimeout=setTimeout(()=>{this.storyNextBtnClick()},duration)}storyPrevBtnClick(){const story=this.activeStory;story.dataset.activeMediaIndex==="0"?this.changeActiveStory(this.activeIndex-1):this.changeActiveMedia(parseInt(story.dataset.activeMediaIndex)-1)}storyNextBtnClick(){const story=this.activeStory;story.dataset.activeMediaIndex===story.dataset.lastMediaIndex?this.changeActiveStory(this.activeIndex+1):this.changeActiveMedia(parseInt(story.dataset.activeMediaIndex)+1)}slideBtnClick(e){const newIndex=parseInt(e.currentTarget.dataset.index);this.changeActiveStory(newIndex)}changeActiveStory(newIndex){if(clearTimeout(this.autoplayTimeout),newIndex>this.lastIndex||newIndex<0)return;const previousStory=this.stories[this.activeIndex];previousStory.classList.remove("internal-video--loading");const previousMediaIndex=parseInt(previousStory.dataset.activeMediaIndex);if(previousStory.dataset.played==="true"||previousMediaIndex>0){const previousProgressItem=previousStory.querySelectorAll(".insta-story__progress-item")[previousMediaIndex];previousProgressItem&&(previousProgressItem.classList.remove("insta-story__progress-item--active"),newIndex>this.activeIndex&&previousProgressItem.classList.add("insta-story__progress-item--completed"))}const previousMedia=previousStory.querySelectorAll(".insta-story__media")[previousMediaIndex];if(previousMedia&&previousMedia.getAttribute("data-type")==="video"){const videoElement=previousMedia.querySelector("video");videoElement&&(videoElement.pause(),(!this.isPaused||this.bufferPaused)&&(videoElement.currentTime=0))}this.activeIndex=newIndex,this.activeStory=this.stories[this.activeIndex],this.stories.forEac
1h(story=>{story.classList.remove("insta-story--active")}),this.activeStory.classList.add("insta-story--active"),this.activeStory.classList.remove("internal-video--loading"),this.activeStory.dataset.played="true";const transformMultiplier=isRtl?1:-1;this.slider.style.transform=`translateX(calc(var(--story-width) * ${this.activeIndex*transformMultiplier}))`;const activeMediaIndex=parseInt(this.activeStory.dataset.activeMediaIndex,10);this.changeActiveMedia(activeMediaIndex),this.updateProgressBars(activeMediaIndex)}changeActiveMedia(newMediaIndex){if(this.bufferPaused&&this.isPaused&&this.resumeStory(),clearTimeout(this.autoplayTimeout),newMediaIndex<0)return;const story=this.activeStory,lastMediaIndex=parseInt(story.dataset.lastMediaIndex);if(newMediaIndex>lastMediaIndex)return;this.currentVideoEl&&(this.currentVideoEl.removeEventListener("waiting",this._onBuffer),this.currentVideoEl.removeEventListener("playing",this._onResume),this.currentVideoEl=null),story.dataset.activeMediaIndex=newMediaIndex;const media=story.querySelectorAll(".insta-story__media");for(let i=0;i<media.length;i++){const mediaEl=media[i],videoEl=mediaEl.querySelector("video");i===newMediaIndex?(mediaEl.style.display="block",mediaEl.getAttribute("data-type")==="video"&&videoEl&&(this.isPaused||videoEl.play(),this._onBuffer=()=>{this.isPaused||this.pauseStory(!0),this.bufferPaused=!0,story.classList.add("internal-video--loading")},this._onResume=()=>{this.isPaused&&this.resumeStory(),this.bufferPaused=!1,story.classList.remove("internal-video--loading")},videoEl.addEventListener("waiting",this._onBuffer),videoEl.addEventListener("playing",this._onResume),this.currentVideoEl=videoEl),story.querySelector(".insta-story__time-posted").innerHTML=mediaEl.dataset.timePosted):(mediaEl.style.display="",mediaEl.getAttribute("data-type")==="video"&&videoEl&&(videoEl.pause(),(!this.isPaused||this.bufferPaused)&&(videoEl.currentTime=0)))}this.updateProgressBars(newMediaIndex),this.isPaused||this.autoplay();const prevBtns=story.querySelectorAll(".insta-story__prev"),nextBtns=story.querySelectorAll(".insta-story__next");prevBtns.forEach(btn=>{btn.toggleAttribute("disabled",this.activeIndex===0&&newMediaIndex===0)}),nextBtns.forEach(btn=>{btn.toggleAttribute("disabled",this.activeIndex===this.lastIndex&&newMediaIndex===lastMediaIndex)})}updateProgressBars(mediaIndex){this.activeStory.querySelectorAll(".insta-story__progress-item").forEach((item,index)=>{item.classList.remove("insta-story__progress-item--completed","insta-story__progress-item--active"),index<mediaIndex?item.classList.add("insta-story__progress-item--completed"):index===mediaIndex&&item.classList.add("insta-story__progress-item--active")})}openModal(e){window.scrollBy(0,-1),this.modal.dataset.open="true",this.modalOpen=!0,document.body.classList.add("overflow-hidden"),this.changeActiveStory(parseInt(e.currentTarget.dataset.index))}closeModal(e){this.querySelectorAll("video").forEach(video=>{video.pause()}),this.modal.dataset.open="false",this.modalOpen=!1,document.body.classList.remove("overflow-hidden"),clearTimeout(this.autoplayTimeout)}
1initButtonsSlider(){if(this.openButtonsOverflowContainer.clientWidth>this.openButtonsContainer.clientWidth)return;const isTouchDevice=()=>"ontouchstart"in window||navigator.maxTouchPoints;let startX,currentTranslateX=0,prevTranslateX=0;const setTranslateX=value=>{this.openButtonsContainer.style.transform=`translateX(${value}px)`,currentTranslateX=value};this.openButtonsOverflowContainer.addEventListener("touchstart",e=>{this.isDragging=!0,startX=e.touches[0].clientX-prevTranslateX}),this.openButtonsOverflowContainer.addEventListener("touchmove",e=>{if(!this.isDragging)return;const moveX=e.touches[0].clientX-startX;moveX<0&&Math.abs(moveX)<=this.openButtonsContainer.offsetWidth-this.openButtonsOverflowContainer.offsetWidth&&setTranslateX(moveX)}),this.openButtonsOverflowContainer.addEventListener("touchend",()=>{this.isDragging=!1,prevTranslateX=currentTranslateX});const buttonWidth=parseFloat(getComputedStyle(this.openButtons[0]).width),gap=parseFloat(getComputedStyle(this.openButtonsContainer).columnGap),getScrollAmount=()=>(Math.floor(this.openButtonsOverflowContainer.clientWidth/(buttonWidth+gap))-1)*(buttonWidth+gap),scrollMultiplier=isRtl?-1:1,updateArrows=()=>{const scrollValue=this.openButtonsOverflowContainer.scrollLeft*scrollMultiplier;this.openBtnsPrev.style.display=scrollValue<=0?"none":"grid",this.openBtnsNext.style.display=scrollValue>this.openButtonsOverflowContainer.scrollWidth-this.openButtonsContainer.clientWidth?"none":"grid"};this.openBtnsPrev.addEventListener("click",()=>{this.openButtonsOverflowContainer.scrollBy({left:-getScrollAmount()*scrollMultiplier,behavior:"smooth"}),setTimeout(updateArrows,300)}),this.openBtnsNext.addEventListener("click",()=>{this.openButtonsOverflowContainer.scrollBy({left:getScrollAmount()*scrollMultiplier,behavior:"smooth"}),setTimeout(updateArrows,300)}),updateArrows(),isTouchDevice()&&(this.openBtnsPrev.style.display="none",this.openBtnsNext.style.display="none"),window.addEventListener("resize",debounce(()=>{this.openButtonsOverflowContainer.clientWidth<=this.openButtonsContainer.clientWidth?isTouchDevice()?(this.openBtnsPrev.style.display="none",this.openBtnsNext.style.display="none"):updateArrows():(this.openBtnsPrev.style.display="none",this.openBtnsNext.style.display="none")},250))}initStories(){this.stories.forEach(story=>{const medias=story.querySelectorAll(".insta-story__media");story.dataset.lastMediaIndex=medias.length-1,story.dataset.played="false";const progressContainer=story.querySelector(".insta-story__progress");for(let i=0;i<medias.length;i++){const duration=medias[i].getAttribute("data-duration"),progressItem=document.createElement("span");progressItem.className="insta-story__progress-item",progressItem.style.setProperty("--duration",`${duration}s`);const progressBar=document.createElement("span");progressBar.className="insta-story__progress-bar",progressItem.appendChild(progressBar),progressContainer.appendChild(progressItem)}const activeMediaIndex=parseInt(story.dataset.activeMediaIndex);medias[activeMediaIndex]&&(medias[activeMediaIndex].style.display="block")})}togglePauseResume(e){const isPaused=e.currentTarget.getAttribute("data-paused")==="true";isPaused?this.resumeStory():this.pauseStory(),this.pauseResumeBtns.forEach(btn=>{btn.setAttribute("data-paused",isPaused?"false":"true")})}pauseStory(isBuffer=!1){this.isPaused=!0;const media=this.activeStory.querySelectorAll(".insta-story__media")[parseInt(this.activeStory.dataset.activeMediaIndex)],duration=parseInt(media.getAttribute("data-duration"))*1e3;if(this.remainingTime=duration-(Date.now()-this.autoplayStartTime),clearTimeout(this.autoplayTimeout),media.getAttribute("data-type")==="video"&&!isBuffer){const videoElement=media.querySelector("video");videoElement&&videoElement.pause()}this.querySelectorAll(".insta-story__progress-bar").forEach(item=>{item.style.animationPlayState="paused"})}resumeStory(){this.isPaused=!1,this.querySelectorAll(".insta-story__progress-bar").forEach(item=>{item.style.animationPlayState="running"});const media=this.activeStory.querySelectorAll(".insta-story__media")[parseInt(this.activeStory.dataset.activeMediaIndex)];if(media.getAttribute("data-type")==="video"){const videoElement=media.querySelector("video");videoElement&&videoElement.play()}this.autoplayStartTime=Date.now(),this.autoplayTimeout=setTimeout(()=>{this.storyNextBtnClick()},this.remainingTime)}toggleIsMuted(e){const btn=e.currentTarget;this.isMuted=!this.isMuted,this.querySelectorAll("video").forEach(video=>{video.muted=this.isMuted}),this.volumeBtns.forEach(btn2=>{this.isMuted?btn2.setAttribute("data-muted","true"):btn2.setAttribute("data-muted","false")})}touchStartHandler(e){this.touchStartX=e.touches[0].clientX}touchEndHandler(e){const touchEndX=e.changedTouches[0].clientX,threshold=50,distanceX=touchEndX-this.touchStartX;if(Math.abs(distanceX)<threshold)return;const directionAddition=isRtl?-1:1;distanceX<0?this.activeIndex<this.lastIndex&&this.changeActiveStory(this.activeIndex+directionAddition):this.activeIndex>0&&this.changeActiveStory(this.activeIndex-directionAddition)}}customElements.define("insta-stories",InstaStories);class TncCheckbox extends HTMLElement{constructor(){super(),this.checked=!1;const targetSel=this.dataset.target||"#CartDrawer-Checkout";
1this.checkoutButton=document.querySelector(targetSel)||this.closest("form")?.querySelector('button[type="submit"], .button'),this.disableButton=this.dataset.disableButton==="true",this.warningText=this.dataset.warningText,this.warningTextElement=document.querySelector(`.tnc-checkbox-warning--${this.dataset.warningPosition}-${this.dataset.section}`),!(!this.checkoutButton||!this.warningTextElement)&&(this.warningTextElement&&(this.warningTextElement.innerHTML=this.warningText),this.disableButton&&this.checkoutButton.classList.add("disabled"),this.addEventListener("click",this.handleCheckboxClick.bind(this)),this.checkoutButton.addEventListener("click",this.handleButtonClick.bind(this)))}handleCheckboxClick(){this.checked=!this.checked,this.dataset.checked=this.checked,this.checked?(this.warningTextElement.classList.add("hidden"),this.disableButton&&this.checkoutButton.classList.remove("disabled")):this.disableButton&&this.checkoutButton.classList.add("disabled")}handleButtonClick(e){this.checked!==!0&&(e.preventDefault(),this.warningTextElement.classList.remove("hidden"))}}customElements.define("tnc-chekcbox",TncCheckbox);class ContactForm extends HTMLElement{constructor(){super(),this.handleFormSubmit=this.handleFormSubmit.bind(this),this.handleFieldInput=this.handleFieldInput.bind(this),this.button=this.querySelector(".button"),this.tnc=this.querySelector(".tnc-checkbox")}connectedCallback(){this.form=this.querySelector("form"),this.form&&(this.requiredFields=Array.from(this.querySelectorAll('.field-wrapper[data-required="true"]')),this.requiredFields.length>0&&(this.form.addEventListener("submit",this.handleFormSubmit),this.requiredFields.forEach(fieldWrapper=>{const input=fieldWrapper.querySelector(".field__input, .text-area");input&&input.addEventListener("input",this.handleFieldInput)})))}disconnectedCallback(){this.form&&this.form.removeEventListener("submit",this.handleFormSubmit),this.requiredFields.forEach(fieldWrapper=>{const input=fieldWrapper.querySelector(".field__input, .text-area");input&&input.removeEventListener("input",this.handleFieldInput)})}handleFormSubmit(event){this.button&&(this.button.disabled=!0,this.button.classList.add("loading"));let isValid=!0;if(this.tnc&&this.tnc.dataset.checked!=="true"){isValid=!1;const warn=document.querySelector(`.tnc-checkbox-warning--${tnc.dataset.warningPosition}-${tnc.dataset.section}`);warn&&warn.classList.remove("hidden")}if(this.requiredFields.forEach(fieldWrapper=>{const input=fieldWrapper.querySelector(".field__input, .text-area"),errorMsg=fieldWrapper.querySelector(".field-wrapper__error-msg");input&&!input.value.trim()&&(isValid=!1,fieldWrapper.classList.add("field-wrapper--error"),errorMsg&&errorMsg.classList.remove("hidden"))}),!isValid)return this.button&&(this.button.disabled=!1,this.button.classList.remove("loading")),event.preventDefault(),event.stopImmediatePropagation(),!1}handleFieldInput(event){const fieldWrapper=event.target.closest(".field-wrapper"),errorMsg=fieldWrapper.querySelector(".field-wrapper__error-msg");fieldWrapper.classList.remove("field-wrapper--error"),errorMsg&&errorMsg.classList.add("hidden")}}customElements.define("contact-form",ContactForm);class PopupCopyButton extends CopyButton{constructor(){super(),this.copySuccessMsg=document.querySelector(".popup-modal__success-msg")}handleClick(e){this.textarea.select(),document.execCommand("copy"),this.copySuccessMsg.style.display="block"}}customElements.define("popup-copy-button",PopupCopyButton);class PageScrollProgress extends HTMLElement{connectedCallback(){this.track=this.querySelector(".page-progress__track"),this.fill=this.querySelector(".page-progress__fill"),this.update=this.update.bind(this),window.addEventListener("scroll",this.update),window.addEventListener("resize",this.update),this.update()}update(){const doc=document.documentElement,scrollTop=window.pageYOffset||doc.scrollTop,scrollHeight=doc.scrollHeight-doc.clientHeight,pct=scrollHeight>0?Math.round(scrollTop/scrollHeight*100):0;this.fill.style.width=pct+"%"}}customElements.define("page-scroll-progress",PageScrollProgress);class DateCountdownTimer extends HTMLElement{connectedCallback(){if(this.update=this.update.bind(this),this.wrapper=this.closest(".countdown-wrapper"),!this.wrapper)return;const endTimeRaw=this.wrapper.dataset.endTime,timezone=this.wrapper.dataset.timezone,offset=parseInt(this.wrapper.dataset.utcOffset)||0;if(this.behavior=this.wrapper.dataset.endBehavior,this.repeatHours=parseInt(this.wrapper.dataset.repeatHours)||24,this.labels={days:this.wrapper.dataset.labelDays,hours:this.wrapper.dataset.labelHours,minutes:this.wrapper.dataset.labelMinutes,seconds:this.wrapper.dataset.labelSeconds},this.units={days:this.wrapper.dataset.showDays==="true",hours:this.wrapper.dataset.showHours==="true",minutes:this.wrapper.dataset.showMinutes==="true",seconds:this.wrapper.dataset.showSeconds==="true"},this.timerStyle=this.dataset.style,timezone==="fixed"){const date=new Date(endTimeRaw+"Z");this.endTime=new Date(date.getTime()-offset*3600*1e3)}else this.endTime=new Date(endTimeRaw);this.timer=setInterval(this.update,1e3),this.update()}update(){const now=new Date;let diff=Math.floor((this.endTime-now)/1e3);if(diff<=0){if(this.behavior==="hide"){this.wrapper.style.display="none",clearInterval(this.timer);return}else if(this.behavior==="restart"){let next=new Date(this.endTime);const interval=this.repeatHours*3600*1e3;for(;next<=now;)next=new Date(next.getTime()+interval);this.endTime=next,diff=Math.floor((this.endTime-now)/1e3)}else if(this.behavior==="next_day"){let next=new Date(this.endTime);for(;next<=now;)next.setDate(next.getDate()+1);this.endTime=next,diff=Math.floor((this.endTime-now)/1e3)}}const d=Math.floor(diff/(3600*24)),h=Math.floor(diff%(3600*24)/3600),m=Math.floor(diff%3600/60),s=diff%60,values={days:d,hours:h,minutes:m,seconds:s};
1Object.keys(this.units).forEach(unit=>{if(!this.units[unit])return;const group=this.querySelector(`[aria-label="${unit.slice(0,-1).charAt(0).toUpperCase()+unit.slice(1,-1)}"]`);if(!group)return;const numberBlock=group.querySelector(".countdown-timer__number");if(!numberBlock)return;const value=String(values[unit]).padStart(2,"0");this.timerStyle==="4"?(numberBlock.innerHTML="",value.split("").forEach(digit=>{const span=document.createElement("span");span.className="countdown-timer__digit",span.textContent=digit,numberBlock.appendChild(span)})):numberBlock.textContent=value,numberBlock.setAttribute("aria-label",`${values[unit]} ${this.labels[unit]}`)})}disconnectedCallback(){clearInterval(this.timer)}}customElements.define("date-countdown-timer",DateCountdownTimer);class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector(".disclosure__list-wrapper"),searchInput:this.querySelector(".localization-search__input"),searchItems:this.querySelectorAll("[data-localization-search]"),emptyState:this.querySelector(".localization-search__empty"),searchResults:this.querySelector("#HeaderCountryList")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.elements.searchInput&&(this.elements.searchInput.addEventListener("input",this.filterCountries.bind(this)),this.elements.searchInput.addEventListener("keydown",this.onSearchKeyDown.bind(this))),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this))),document.addEventListener("click",this.handleClickOutside.bind(this))}hidePanel(){this.elements.button.setAttribute("aria-expanded","false"),this.elements.panel.setAttribute("hidden",!0),this.resetSearch()}normalizeSearchValue(value){return value.toLocaleLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")}filterCountries(){const query=this.normalizeSearchValue(this.elements.searchInput.value.trim());let visibleCount=0;this.elements.searchItems.forEach(item=>{const isVisible=this.normalizeSearchValue(item.dataset.localizationSearch||item.textContent).includes(query);item.hidden=!isVisible,isVisible&&(visibleCount+=1)}),this.elements.emptyState&&(this.elements.emptyState.hidden=visibleCount!==0),this.elements.searchResults&&(this.elements.searchResults.hidden=visibleCount===0)}resetSearch(){this.elements.searchInput&&(this.elements.searchInput.value="",this.elements.searchItems.forEach(item=>{item.hidden=!1}),this.elements.emptyState&&(this.elements.emptyState.hidden=!0),this.elements.searchResults&&(this.elements.searchResults.hidden=!1))}onSearchKeyDown(event){if(event.key!=="ArrowDown"&&event.key!=="Enter")return;const firstVisibleLink=Array.from(this.elements.searchItems).find(item=>!item.hidden)?.querySelector("a");firstVisibleLink&&(event.preventDefault(),event.key==="Enter"?firstVisibleLink.click():firstVisibleLink.focus())}onContainerKeyUp(event){event.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event){event.preventDefault();const form=this.querySelector("form");this.elements.input.value=event.currentTarget.dataset.value,form&&form.submit()}openSelector(){if(!this.elements.panel.hasAttribute("hidden")){this.hidePanel();return}this.elements.panel.removeAttribute("hidden"),this.elements.button.setAttribute("aria-expanded","true"),this.elements.searchInput&&requestAnimationFrame(()=>this.elements.searchInput.focus())}handleClickOutside(event){this.contains(event.target)||this.hidePanel()}}customElements.define("localization-form",LocalizationForm);class ResultsContainer extends HTMLElement{constructor(){super(),this.styleType=this.dataset.style,this.duration=parseInt(this.dataset.duration,10)||650,this.initDelay=parseInt(this.dataset.delay,10)||0,this.observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{entry.isIntersecting&&(setTimeout(()=>this.animateAll(),this.initDelay),this.observer.disconnect())})},{threshold:.3})}connectedCallback(){this.observer.observe(this)}animateAll(){this.querySelectorAll(".results__percentage").forEach(row=>{const target=parseInt(row.dataset.percentage,10)||0;this.animateRow(row,target)})}animateRow(el,target){const text=el.querySelector("p"),start=performance.now();if(this.styleType==="circle"){const ring=el.querySelector(".ring__prog");ring&&requestAnimationFrame(()=>{ring.setAttribute("stroke-dasharray",`${target} 100`)})}const animate=time=>{const progress=Math.min((time-start)/this.duration,1),value=Math.round(progress*target);text&&(text.textContent=`${value}%`),progress<1&&requestAnimationFrame(animate)};requestAnimationFrame(animate)}}customElements.define("results-container",ResultsContainer);
2//# sourceMappingURL=/cdn/shop/t/48/assets/secondary.js.map?v=27234076275354468721789993757

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.