if(window.t_zoom__isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),window.t_zoom__isMobile||(window.t_zoom__isMobile=navigator.userAgent.indexOf("Macintosh")&&"ontouchend"in document),window.t_zoom__isiOS=/iPhone|iPad|iPod/i.test(navigator.userAgent),window.t_zoom__iOSMajorVersion=0,window.t_zoom__isiOS){var version=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);null!==version&&(window.t_zoom__iOSMajorVersion=parseInt(version[1],10))}function t_initZoom(){var zoomerWrapper;if(!document.querySelector(".t-zoomer__wrapper")){window.tzoominited=!0,window.tzoomopenonce=!1,window.isDoubletapScaleAdded=!1;var zoomableElements=document.querySelectorAll("[data-zoomable]"),zoomableElementsNotEmpty=Array.prototype.slice.call(zoomableElements).filter((function(el){return"yes"===el.getAttribute("data-zoomable")&&!el.classList.contains("t-slds__thumbs_gallery")&&""!==el.getAttribute("data-img-zoom-url")}));Array.prototype.forEach.call(zoomableElementsNotEmpty,(function(zoomableEl){zoomableEl.classList.add("t-zoomable")}));var zoomWrapper=document.createElement("div");zoomWrapper.classList.add("t-zoomer__wrapper");var zoomContainer=document.createElement("div");zoomContainer.classList.add("t-zoomer__container");var zoomBG=document.createElement("div");zoomBG.classList.add("t-zoomer__bg");var zoomCloseBtn=t_zoom__createCloseBtn(),scaleBtn=t_zoom__createScaleBtn();zoomWrapper.appendChild(zoomContainer),zoomWrapper.appendChild(zoomBG),zoomWrapper.appendChild(zoomCloseBtn),zoomWrapper.appendChild(scaleBtn),document.body&&document.body.insertAdjacentElement("beforeend",zoomWrapper),t_zoom__initFullScreenImgOnClick(),t_zoom__closeAndSlideCarousel()}}function t_zoom__createCloseBtn(){var zoomCloseBtn=document.createElement("div");zoomCloseBtn.classList.add("t-zoomer__close"),zoomCloseBtn.style.display="none";var svgCloseBtn="";return svgCloseBtn+='",zoomCloseBtn.insertAdjacentHTML("beforeend",svgCloseBtn),zoomCloseBtn}function t_zoom__createScaleBtn(){var scaleBtn=document.createElement("div");scaleBtn.classList.add("t-zoomer__scale"),scaleBtn.classList.add("showed");var svgScaleBtn="";return svgScaleBtn+='",svgScaleBtn+='",scaleBtn.insertAdjacentHTML("beforeend",svgScaleBtn),scaleBtn}function t_zoom__initFullScreenImgOnClick(){document.addEventListener("click",(function(e){var zoomableElement=e.target.closest('.t-zoomable:not([data-img-zoom-url=""]), .t-slds__thumbs_gallery-zoomable');zoomableElement&&t_zoomHandler(zoomableElement)}));var currentEvent=window.t_zoom__isMobile?"orientationchange":"resize";window.addEventListener(currentEvent,(function(){document.body.classList.contains("t-zoomer__show")&&t_zoom_checkForScale()}))}function t_zoom__closeAndSlideCarousel(){var closeBtn=document.querySelector(".t-zoomer__close");closeBtn&&(closeBtn.addEventListener("click",(function(){t_zoom_close()})),document.addEventListener("keydown",(function(e){if(document.body.classList.contains("t-zoomer__show"))switch(e.keyCode){case 27:e.preventDefault(),t_zoom_close();break;case 37:t_zoom__setEventOnBtn("prev");break;case 39:t_zoom__setEventOnBtn("next")}})))}function t_zoomHandler(targetElement){var isProductPopupShown;document.body.classList.add("t-zoomer__show"),document.querySelector(".t-popup_show")&&document.body.classList.add("t-zoomer__active");var zoomContainer=document.querySelector(".t-zoomer__container"),zoomerCarousel=document.createElement("div");zoomerCarousel.classList.add("t-carousel__zoomed");var zoomerSlide=document.createElement("div");zoomerSlide.classList.add("t-carousel__zoomer__slides");var zoomerInner=document.createElement("div");zoomerInner.classList.add("t-carousel__zoomer__inner");var zoomerTrack=document.createElement("div");zoomerTrack.classList.add("t-carousel__zoomer__track"),zoomerInner.appendChild(zoomerTrack);var leftArrow=t_zoom_createSliderArrow("left"),rightArrow=t_zoom_createSliderArrow("right");zoomerSlide.appendChild(leftArrow),zoomerSlide.appendChild(rightArrow),zoomerSlide.appendChild(zoomerInner),zoomerCarousel.appendChild(zoomerSlide),zoomContainer&&(zoomContainer.innerHTML=""),zoomContainer&&zoomContainer.appendChild(zoomerCarousel);var parentBlock=targetElement.closest(".r"),sliderTrack;if(!document.querySelector(".t-carousel__zoomer__track")||!parentBlock)return!1;t_zoom__addingImgsIntoCarousel(targetElement);var closeBtn=document.querySelector(".t-zoomer__close");closeBtn&&(closeBtn.style.display="flex"),t_zoom_setModalColor(parentBlock),t_zoom__createAndLoopSlider(targetElement),t_zoom__getEventOnBtn(),document.body.classList.add("t-zoomer__show_fixed"),t_zoom__initSingleZoom(),t_zoom_checkForScale(),t_zoom_lockScroll(),window.t_zoom__isMobile?(t_zoom_initSwipe(),t_zoom_initCloseSwipe(),window.addEventListener("orientationchange",t_zoom__updateActiveSlidePos)):window.addEventListener("resize",t_zoom__updateActiveSlidePos),window.tzoomopenonce=!0,t_zoom__initEventsonMobile()}function t_zoom__updateActiveSlidePos(){setTimeout((function(){var sliderTrack=document.querySelector(".t-carousel__zoomer__track");if(sliderTrack){var activeSlidePosition=sliderTrack.querySelector(".t-carousel__zoomer__item.active").offsetLeft;sliderTrack.style.transform="translateX("+-activeSlidePosition+"px)"}}),300)}function t_zoom_createSliderArrow(direction){var ArrowContainer=document.createElement("div");ArrowContainer.classList.add("t-carousel__zoomer__control"),ArrowContainer.classList.add("t-carousel__zoomer__control_"+direction),ArrowContainer.setAttribute("data-zoomer-slide","left"===direction?"prev":"next");var ArrowWrapper=document.createElement("div");ArrowWrapper.classList.add("t-carousel__zoomer__arrow__wrapper"),ArrowWrapper.classList.add("t-carousel__zoomer__arrow__wrapper_"+direction);var arrow=document.createElement("div");return arrow.classList.add("t-carousel__zoomer__arrow"),arrow.classList.add("t-carousel__zoomer__arrow_"+direction),arrow.classList.add("t-carousel__zoomer__arrow_small"),ArrowWrapper.appendChild(arrow),ArrowContainer.appendChild(ArrowWrapper),ArrowContainer}function t_zoom_initSwipe(){var slideItems=document.querySelectorAll(".t-carousel__zoomer__item"),modal=document.querySelector(".t-zoomer__wrapper");if(slideItems.length>1){var hammer=new Hammer(modal,{domEvents:!0,inputClass:Hammer.TouchInput,cssProps:{touchCollout:"default"},recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_HORIZONTAL}]]}),sliderTrackPosLeft=null,isScaled=!1;window.tzoomopenonce||(hammer.on("panstart",(function(){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),sliderTrackTransition;"y"!==sliderTrack.getAttribute("data-on-transition")?sliderTrack&&(sliderTrackPosLeft=sliderTrack.getBoundingClientRect().left,sliderTrack.style.transition="none"):sliderTrackPosLeft=null,isScaled=t_zoom__isScaled(modal)})),hammer.on("panmove",(function(event){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),sliderTrackTransition=sliderTrack.getAttribute("data-on-transition"),modalOnDrag=modal.getAttribute("data-on-drag"),deltaX;if("y"!==sliderTrackTransition&&"y"!==modalOnDrag&&1===event.maxPointers&&!isScaled&&(Math.abs(event.deltaX)>40&&sliderTrack.setAttribute("data-on-drag","y"),sliderTrackPosLeft)){var newTrackPosition=sliderTrackPosLeft+event.deltaX;sliderTrack.style.transform="translateX("+newTrackPosition+"px)"}})),hammer.on("panend",(function(event){var sliderTrack=document.querySelector(".t-carousel__zoomer__track");sliderTrack.setAttribute("data-on-drag","");var sliderTrackTransition=sliderTrack.getAttribute("data-on-transition"),modalOnDrag=modal.getAttribute("data-on-drag");if("y"!==sliderTrackTransition&&"y"!==modalOnDrag&&1===event.maxPointers&&!isScaled){sliderTrack.style.transition="";var velocity=Math.abs(event.velocityX),sliderTrackOffset=sliderTrack.offsetLeft,slideWidth=slideItems[0].offsetWidth,targetSlideOffset=sliderTrack.querySelector(".t-carousel__zoomer__item.active").offsetLeft,distance,transitionTime=(slideWidth-Math.abs(sliderTrackOffset+targetSlideOffset))/velocity/1e3;transitionTime>.6?transitionTime=.6:transitionTime<.2&&(transitionTime=.2),sliderTrack.style.transitionDuration=transitionTime+"s",event.velocityX<-.5||event.deltaX<-80?(t_zoom_unscale(),t_zoom_showSlide("next"),t_zoom_checkForScale()):event.velocityX>.5||event.deltaX>80?(t_zoom_unscale(),t_zoom_showSlide("prev"),t_zoom_checkForScale()):t_zoom_showSlide()}})))}}function t_zoom__initEventsonMobile(){if(window.t_zoom__isMobile){t_zoom_setHideControlsTimer();var modal=document.querySelector(".t-zoomer__wrapper"),modalEvents;["touchstart","touchmove","touchend","mousemove"].forEach((function(event){modal.addEventListener(event,t_zoom_setHideControlsTimer)})),window.addEventListener("orientationchange",t_zoom__updateSlidesHeight)}}function t_zoom__updateSlidesHeight(){var slideImageList=document.querySelectorAll(".t-carousel__zoomer__item .t-carousel__zoomer__img"),modal=document.querySelector(".t-zoomer__wrapper");if(modal&&slideImageList.length){var commentHeight=modal.getAttribute("data-max-comment-height");commentHeight=parseInt(commentHeight,10),isNaN(commentHeight)||setTimeout((function(){var zoomedItem=document.querySelector(".t-carousel__zoomer__item.active");if(zoomedItem){var imageBordersWidth,imagePadding=modal.offsetHeight-zoomedItem.offsetHeight+commentHeight,imageHeight=document.documentElement.clientHeight-imagePadding;Array.prototype.forEach.call(slideImageList,(function(slideImg){slideImg.style.maxHeight=imageHeight+"px"}))}}),300)}}function t_zoom__initSingleZoom(){var slidesCount;if(1===document.querySelectorAll(".t-carousel__zoomer__item").length){var controls=document.querySelectorAll(".t-carousel__zoomer__control");Array.prototype.forEach.call(controls,(function(control){control.style.display="none"}))}}function t_zoom__getEventOnBtn(){var navBtns;[{name:"right",direction:"next"},{name:"left",direction:"prev"}].forEach((function(navBtn){var arrowBtn;document.querySelector(".t-carousel__zoomer__control_"+navBtn.name).addEventListener("click",(function(){t_zoom__setEventOnBtn(navBtn.direction)}))}))}function t_zoom__setEventOnBtn(btnMove){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),modal=document.querySelector(".t-zoomer__wrapper"),sliderOnTransition=sliderTrack.getAttribute("data-on-transition"),modalOnDrag=modal.getAttribute("data-on-drag");"y"!==sliderOnTransition&&"y"!==modalOnDrag&&(t_zoom_unscale(),setTimeout((function(){t_zoom_showSlide(btnMove),t_zoom_checkForScale()})))}function t_zoom__addingImgsIntoCarousel(targetElement){var parentBlock=targetElement.closest(".r"),images=parentBlock?parentBlock.querySelectorAll(".t-zoomable:not(.t-slds__thumbs_gallery):not(.tn-atom__slds-img)"):[],slide;if(parentBlock?parentBlock.querySelector(".t-slds"):null){var slider=targetElement.closest(".t-slds");slider&&(images=slider.querySelectorAll(".t-zoomable:not(.t-slds__thumbs_gallery)")),slider&&slider.querySelector(".tn-elem__gallery__video-wrapper")&&(images=Array.prototype.slice.call(images)).splice(-1,1)}var fontFamilyObj=t_zoom__getZoomDescriptionFontFamily(parentBlock),sliderTrack=document.querySelector(".t-carousel__zoomer__track"),isLazy="y"===window.lazy;Array.prototype.forEach.call(images,(function(img,i){var dataZoomAttr=img.getAttribute("data-img-zoom-url"),imgTitle="",imgDescr="",imgURLs=dataZoomAttr?dataZoomAttr.split(","):"";if("IMG"!==img.nodeName&&"DIV"!==img.nodeName||(imgTitle=img.getAttribute("title")||"",imgDescr=img.getAttribute("data-img-zoom-descr")||""),imgTitle){var slideTitle=document.createElement("div");slideTitle.classList.add("t-zoomer__title"),slideTitle.classList.add("t-descr"),slideTitle.classList.add("t-descr_xxs"),slideTitle.textContent=imgTitle,fontFamilyObj&&fontFamilyObj.titleFontFamily&&(slideTitle.style.fontFamily=fontFamilyObj.titleFontFamily)}if(imgDescr){var slideDescription=document.createElement("div");slideDescription.classList.add("t-zoomer__descr"),slideDescription.classList.add("t-descr"),slideDescription.classList.add("t-descr_xxs"),slideDescription.textContent=imgDescr,fontFamilyObj&&fontFamilyObj.descrFontFamily&&(slideDescription.style.fontFamily=fontFamilyObj.descrFontFamily)}var zoomerSlide=document.createElement("div");zoomerSlide.classList.add("t-carousel__zoomer__item");var zoomerWrapper=document.createElement("div");zoomerWrapper.classList.add("t-carousel__zoomer__wrapper");var slideIMG=document.createElement("img");if(slideIMG.classList.add("t-carousel__zoomer__img"),isLazy?(slideIMG.classList.add("t-img"),slideIMG.setAttribute("data-original",imgURLs),0!==i&&i!==images.length-1||slideIMG.setAttribute("data-lazy-rule","skip")):slideIMG.src=imgURLs,zoomerSlide.appendChild(zoomerWrapper),zoomerWrapper.appendChild(slideIMG),imgTitle||imgDescr||window.t_zoom__isMobile){var slideComment=document.createElement("div");slideComment.classList.add("t-zoomer__comments"),imgTitle&&slideComment.appendChild(slideTitle),imgDescr&&slideComment.appendChild(slideDescription),zoomerSlide.appendChild(slideComment)}sliderTrack.appendChild(zoomerSlide)}))}function t_zoom__getZoomDescriptionFontFamily(parentBlock){var titleBlock=parentBlock.querySelector('.t827__overlay-title, .t979__overlay-title, .t-slds__title, .t603__title, [itemprop="name"]'),descrBlock=parentBlock.querySelector('.t827__overlay-descr, .t979__overlay-descr, .t-slds__descr, .t603__descr, [itemprop="description"]'),titleFontFamily,descrFontFamily;return{titleFontFamily:titleBlock&&getComputedStyle(titleBlock).fontFamily||"",descrFontFamily:descrBlock&&getComputedStyle(descrBlock).fontFamily||""}}function t_zoom__createAndLoopSlider(targetElement){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),modal=document.querySelector(".t-zoomer__wrapper"),slideItems=document.querySelectorAll(".t-carousel__zoomer__item");if(modal&&slideItems.length){var imageBordersWidth=modal.offsetHeight-slideItems[0].offsetHeight;if(window.t_zoom__isMobile){var maxHeightOfComments=Array.prototype.reduce.call(slideItems,(function(prev,slide){var comment=slide.querySelector(".t-zoomer__comments"),commentHeight=comment?comment.offsetHeight:0;return commentHeight>prev&&(prev=commentHeight),prev}),0);modal.setAttribute("data-max-comment-height",maxHeightOfComments)}var isLazy="y"===window.lazy;Array.prototype.forEach.call(slideItems,(function(slideItem){var image=slideItem.querySelector(".t-carousel__zoomer__img"),attributeName=isLazy?"data-original":"src",imageSrc=image.getAttribute(attributeName),comment=slideItem.querySelector(".t-zoomer__comments"),commentHeight=comment?comment.offsetHeight:0;window.t_zoom__isMobile&&(commentHeight=maxHeightOfComments);var imagePadding=imageBordersWidth+commentHeight;comment&&(comment.style.height=commentHeight+"px"),image.style.maxHeight=document.documentElement.clientHeight-imagePadding+"px",imageSrc&&-1!==imageSrc.indexOf(".svg")&&(image.style.width=window.innerWidth+"px");var arrowWrappers=document.querySelectorAll(".t-carousel__zoomer__arrow__wrapper");Array.prototype.forEach.call(arrowWrappers,(function(arrowWrapper){arrowWrapper.style.top=commentHeight?"calc(50% - "+commentHeight/2+"px)":"50%"}))})),Array.prototype.forEach.call(slideItems,(function(slideItem,index){slideItem.setAttribute("data-zoomer-slide-number",index)})),slideItems.length>1&&t_zoom_loopSlider();var targetURL=targetElement.getAttribute("data-img-zoom-url"),attributeName,selector=".t-carousel__zoomer__img["+(isLazy?"data-original":"src")+'="'+targetURL+'"]',targetImg=targetURL?document.querySelector(selector):null,carouselItem=targetImg?targetImg.closest(".t-carousel__zoomer__item"):null;if(carouselItem){var carouselPosLeft=!!carouselItem&&carouselItem.offsetLeft;carouselItem.classList.add("active"),t_zoom__hideInnactiveSlides(carouselItem,sliderTrack),sliderTrack.style.transition="none",sliderTrack.style.transform="translateX("+-carouselPosLeft+"px)",setTimeout((function(){sliderTrack.style.transition=""}),200)}isLazy&&t_onFuncLoad("t_lazyload_update",t_lazyload_update)}}function t_zoom__hideInnactiveSlides(activeSlide,sliderTrack){if(activeSlide){var currentSlidesSelector=".t-carousel__zoomer__item:not(:first-child):not(:last-child)",slides=Array.prototype.slice.call(sliderTrack.querySelectorAll(currentSlidesSelector));if(!(slides.length<=6)){var activeSlideIndex=t_zoom__getCurrentSlideIndex(activeSlide),activeIndexList=[activeSlideIndex];activeIndexList.push(0===activeSlideIndex?slides.length:activeSlideIndex-1),activeIndexList.push(activeSlideIndex===slides.length?0:activeSlideIndex+1);var innactiveClass="t-carousel__zoomer__item-innactive";slides.forEach((function(slide){var currentSlideIndex=t_zoom__getCurrentSlideIndex(slide),currentSlideOperation=-1!==activeIndexList.indexOf(currentSlideIndex)?"remove":"add";slide.classList[currentSlideOperation](innactiveClass)}))}}}function t_zoom__getCurrentSlideIndex(slide){return slide&&parseInt(slide.getAttribute("data-zoomer-slide-number"),10)||0}function t_zoom_showSlide(direction){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),slideItems=sliderTrack.querySelectorAll(".t-carousel__zoomer__item"),targetItem=sliderTrack.querySelector(".t-carousel__zoomer__item.active"),currentSlideIndex=0,isClickFromZoomedImg="y"===sliderTrack.getAttribute("data-cached-zoom");if(Array.prototype.forEach.call(slideItems,(function(slideItem,index){slideItem===targetItem&&(currentSlideIndex=index)})),"next"===direction||"prev"===direction){var slideCount="next"===direction?currentSlideIndex+1:slideItems.length+(currentSlideIndex-1);currentSlideIndex=slideCount%slideItems.length,sliderTrack.setAttribute("data-on-transition","y"),window.t_zoom__isMobile&&"0s"===getComputedStyle(sliderTrack).transitionDuration&&!isClickFromZoomedImg&&(sliderTrack.style.transition="")}var trackPosition=slideItems[currentSlideIndex].offsetLeft;if(targetItem.classList.remove("active"),slideItems[currentSlideIndex].classList.add("active"),sliderTrack.style.transform="translateX("+-trackPosition+"px)",t_zoom__hideInnactiveSlides(slideItems[currentSlideIndex],sliderTrack),isClickFromZoomedImg){sliderTrack.removeAttribute("data-cached-zoom");var transitionend=new Event("transitionend");sliderTrack.dispatchEvent(transitionend)}if("y"===window.lazy){t_onFuncLoad("t_lazyload_update",t_lazyload_update);var activeImg=slideItems[currentSlideIndex].querySelector("img");activeImg&&!activeImg.src&&setTimeout((function(){t_onFuncLoad("t_lazyload_update",t_lazyload_update)}),200)}}function t_zoom_transitForLoop(side){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),slideItems=document.querySelectorAll(".t-carousel__zoomer__item"),currentSlideIndex,slideOffset;if(!side)return 1;"start"===side&&(currentSlideIndex=slideItems.length-2),"end"===side&&(currentSlideIndex=1),slideOffset=slideItems[currentSlideIndex].offsetLeft,Array.prototype.forEach.call(slideItems,(function(slideItem,index){index===currentSlideIndex?slideItem.classList.add("active"):slideItem.classList.remove("active")})),sliderTrack.style.transition="none",sliderTrack.style.transform="translateX("+-slideOffset+"px)",setTimeout((function(){sliderTrack.style.transition="","y"===window.lazy&&t_onFuncLoad("t_lazyload_update",t_lazyload_update)}))}function t_zoom_loopSlider(){var sliderTrack=document.querySelector(".t-carousel__zoomer__track"),sliderItems=sliderTrack.querySelectorAll(".t-carousel__zoomer__item"),firstSlideCopy=sliderItems[0].cloneNode(!0),lastSlideCopy=sliderItems[sliderItems.length-1].cloneNode(!0);firstSlideCopy.classList.remove("active"),lastSlideCopy.classList.remove("active"),t_zoom__updateClonedImgSrc(sliderItems[0],sliderItems[sliderItems.length-1],firstSlideCopy,lastSlideCopy),sliderTrack.insertBefore(lastSlideCopy,sliderTrack.firstChild),sliderTrack.appendChild(firstSlideCopy);var slidesCount=(sliderItems=sliderTrack.querySelectorAll(".t-carousel__zoomer__item")).length,events;["transitionend","webkitTransitionEnd","oTransitionEnd"].forEach((function(event){sliderTrack.addEventListener(event,(function(){var currentSlideIndex=0;Array.prototype.forEach.call(sliderItems,(function(sliderItem,index){sliderItem.classList.contains("active")&&(currentSlideIndex=index)})),0===currentSlideIndex&&t_zoom_transitForLoop("start"),currentSlideIndex===slidesCount-1&&t_zoom_transitForLoop("end"),sliderTrack.setAttribute("data-on-transition","")}))}))}function t_zoom__updateClonedImgSrc(firstSlide,lastSlide,firstSlideClone,lastSlideClone){if("y"===window.lazy){var firstSlideIMG=firstSlide.querySelector("img"),lastSlideIMG=lastSlide.querySelector("img"),firstSlideCloneIMG=firstSlideClone.querySelector("img"),lastSlideCloneIMG=lastSlideClone.querySelector("img"),listOfClonedEls=[firstSlideIMG,lastSlideIMG,firstSlideCloneIMG,lastSlideCloneIMG];if(!listOfClonedEls.some((function(el){return!el}))&&"MutationObserver"in window){var mutationObserver=new MutationObserver((function(mutations){mutations.forEach((function(mutation){var updatedEl;"attributes"===mutation.type&&"src"===mutation.attributeName&&(mutation.target===firstSlideIMG&&(updatedEl=firstSlideCloneIMG),mutation.target===lastSlideIMG&&(updatedEl=lastSlideCloneIMG),mutation.target===firstSlideCloneIMG&&(updatedEl=firstSlideIMG),mutation.target===lastSlideCloneIMG&&(updatedEl=lastSlideIMG),mutation.target.src&&!updatedEl.src&&(updatedEl.src=mutation.target.src))}))}));listOfClonedEls.forEach((function(el){mutationObserver.observe(el,{attributes:!0})}))}}}function t_zoom_initCloseSwipe(){var modal=document.querySelector(".t-zoomer__wrapper"),sliderTrack=document.querySelector(".t-carousel__zoomer__track"),isScaled=!1,modalPosition,hammer=new Hammer(modal,{domEvents:!0,inputClass:Hammer.TouchInput,cssProps:{touchCollout:"default"},recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_VERTICAL}]]});hammer.on("panstart",(function(){modalPosition=modal.offsetTop,modal.style.position="none",isScaled=t_zoom__isScaled(modal)})),hammer.on("panmove",(function(event){var deltaY=Math.abs(event.deltaY);if(("y"!==sliderTrack.getAttribute("data-on-drag")||"y"===modal.getAttribute("data-on-drag"))&&(event.angle>-120&&event.angle<-60||event.angle<120&&event.angle>60)&&1===event.maxPointers&&!isScaled){deltaY>40&&modal.setAttribute("data-on-drag","y");var newTrackPosition=modalPosition+event.deltaY;modal.style.transform="translateY("+newTrackPosition+"px)"}})),hammer.on("panend",t_zoom_closeSwipeHandler)}function t_zoom_closeSwipeHandler(event){var modal=document.querySelector(".t-zoomer__wrapper"),closeAnimationTime=300,isScaled=t_zoom__isScaled(modal);modal.style.transition="transform 300ms ease-out",Math.abs(event.deltaY)<40&&(modal.style.transform=""),"y"!==modal.getAttribute("data-on-drag")||1!==event.maxPointers||isScaled||(event.deltaY<-200||event.velocityY<-.3?(modal.style.transform="translateY(-100vh)",setTimeout((function(){t_zoom_close(),modal.style.transform=""}),300)):event.deltaY>200||event.velocityY>.3?(modal.style.transform="translateY(100vh)",setTimeout((function(){t_zoom_close(),modal.style.transform=""}),300)):modal.style.transform=""),modal.setAttribute("data-on-drag","")}function t_zoom_checkForScale(){var zoomedImage=document.querySelector(".t-carousel__zoomer__item.active .t-carousel__zoomer__img:not(.loaded)");if(zoomedImage){var allRecords=document.getElementById("allrecords"),isLazyActive=!!allRecords&&"yes"===allRecords.getAttribute("data-tilda-lazy");if("y"===window.lazy||isLazyActive){var timer=Date.now();t_zoom__waitImgForScale(zoomedImage,timer,(function(){t_zoom_checkToScaleInit(zoomedImage)}))}else zoomedImage.complete?t_zoom_checkToScaleInit(zoomedImage):zoomedImage.onload=function(){t_zoom_checkToScaleInit(zoomedImage)}}}function t_zoom__waitImgForScale(zoomedImage,timer,callback){zoomedImage.src&&zoomedImage.naturalWidth&&zoomedImage.naturalHeight?callback():Date.now()-timer<3e3?setTimeout((function(){t_zoom__waitImgForScale(zoomedImage,timer,callback)}),500):(console.warn("zoomed image isn't complete, natural width: "+zoomedImage.naturalWidth+", natural height: "+zoomedImage.naturalHeight),callback())}function t_zoom_checkToScaleInit(zoomedImage){var windowWidth=window.innerWidth,windowHeight=window.innerHeight,zoomerWrapper=document.querySelector(".t-zoomer__wrapper");zoomerWrapper.classList.remove("zoomer-no-scale");var hasOriginalSvgParams=zoomedImage.hasAttribute("data-original-svg-height")||zoomedImage.hasAttribute("data-original-svg-width");-1===zoomedImage.src.indexOf(".svg")||window.isIE||hasOriginalSvgParams?windowHeight-leftCoordinate&&(currentTranslate.x=-leftCoordinate),currentTranslate.x-topCoordinate&&(currentTranslate.y=-topCoordinate),currentTranslate.y0&&Array.prototype.forEach.call(modalPath,(function(path){path.getAttribute("stroke")&&path.setAttribute("stroke",modalTextColor),path.getAttribute("fill")&&path.setAttribute("fill",modalTextColor)}))})),Array.prototype.forEach.call(titleAndDescr,(function(el){el.style.color=modalTextColor}))}function t_zoom_luma_rgb(color){if(color){var isArray=Array.isArray(color);if(void 0===color)return"black";if(0!==color.indexOf("rgb")&&!isArray)return"black";var rgb=isArray?color:color.split("(")[1].split(")")[0].split(",");return rgb.length<3?"black":.2126*rgb[0]+.7152*rgb[1]+.0722*rgb[2]<128?"black":"white"}}function t_zoom_hexToRgb(hex){var shorthandRegex=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;hex=hex.replace(shorthandRegex,(function(m,r,g,b){return r+r+g+g+b+b}));var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex),colorModel=result?{r:parseInt(result[1],16),g:parseInt(result[2],16),b:parseInt(result[3],16)}:null;return result?[colorModel.r,colorModel.g,colorModel.b]:null}function t_zoom_getFirstColorFromGradient(gradient){var rgbaRegExp=/rgba\(\d+,\d+,\d+,\d+\)/gi,rgbComponentsRegExp=/(\d+),(\d+),(\d+)/i,gradientColors=gradient.match(rgbaRegExp),colorRgba=gradientColors?gradientColors[0]:null,result=rgbComponentsRegExp.exec(colorRgba),colorModel=result?{r:result[1],g:result[2],b:result[3]}:null;return result?[colorModel.r,colorModel.g,colorModel.b]:null}function t_zoom_setHideControlsTimer(){var controls=document.querySelectorAll(".t-carousel__zoomer__arrow__wrapper, .t-zoomer__scale");Array.prototype.forEach.call(controls,(function(control){control.classList.remove("t-zoomer__hide-animation")})),setTimeout((function(){Array.prototype.forEach.call(controls,(function(control){control.classList.add("t-zoomer__hide-animation")}))}))}function t_zoom__isScaled(modal){return window.visualViewport&&1!==window.visualViewport.scale||modal.classList.contains("scale-active")}t_onReady((function(){window.tzoominited||t_initZoom()})),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(s){for(var el=this;el&&1===el.nodeType;){if(Element.prototype.matches.call(el,s))return el;el=el.parentElement||el.parentNode}return null});