window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0}
window.browserLang=(window.navigator.userLanguage||window.navigator.language).toUpperCase().slice(0,2);window.tildaBrowserLang=window.browserLang;function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&now<last+threshhold){clearTimeout(deferTimer);deferTimer=setTimeout(function(){last=now;fn.apply(context,args)},threshhold)}else{last=now;fn.apply(context,args)}}}
function t594_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})}
var t754_POPUP_SHOWED_EVENT_NAME='catalog:popupShowed';var t754_POPUP_CLOSED_EVENT_NAME='catalog:popupClosed';function t754__init(recid){setTimeout(function(){t_onFuncLoad('t_prod__init',function(){t_prod__init(recid)});t754__hoverZoom_init(recid);t754_initPopup(recid);t754__updateLazyLoad(recid);t754__alignButtons_init(recid);t_onFuncLoad('t_store_addProductQuantityEvents',function(){t754_initProductQuantity(recid)});var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);document.body.dispatchEvent(event)},500)}
function t754_initProductQuantity(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var productList=rec.querySelectorAll('.t754__col, .t754__product-full');Array.prototype.forEach.call(productList,function(product){t_store_addProductQuantityEvents(product)})}
function t754__showMore(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var wrapperBlock=rec.querySelector('.t754');if(!wrapperBlock)return;var productColumns=wrapperBlock.querySelectorAll('.t754__col');var cardsSize=productColumns.length;var cardsCount=parseInt(wrapperBlock.getAttribute('data-show-count'),10);if(isNaN(cardsCount)||cardsCount<1)return;Array.prototype.forEach.call(productColumns,function(column){column.style.display='none'});for(var i=0;i<cardsCount;i++){if(productColumns[i]){productColumns[i].style.display='inline-block'}}
var showMoreButton=wrapperBlock.querySelector('.t754__showmore');if(!showMoreButton)return;if(showMoreButton.querySelector('td').textContent===''){showMoreButton.querySelector('td').textContent=t754__dict()}
if(cardsCount<productColumns.length){showMoreButton.style.display='inline-block'}
t754__showSeparator(wrapperBlock,cardsCount);showMoreButton.addEventListener('click',function(){var currentColumns=wrapperBlock.querySelectorAll('.t754__col');var currentColumnsShowed=0;Array.prototype.forEach.call(currentColumns,function(column){if(column.style.display==='inline-block'){++currentColumnsShowed}});for(var i=0;i<cardsCount+currentColumnsShowed;i++){if(currentColumns[i]){currentColumns[i].style.display='inline-block'}}
if(cardsCount+currentColumnsShowed>=cardsSize){showMoreButton.style.display='none'}
if(!document.querySelector('.t-records').getAttribute('data-tilda-mode')){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
t754__showSeparator(wrapperBlock,cardsCount+currentColumnsShowed);if(wrapperBlock.querySelector('[data-buttons-v-align]')){t754__alignButtons(recid)}})}
function t754__showSeparator(rec,cardsCount){if(window.jQuery&&rec instanceof jQuery){rec=rec.get(0)}
var allSeparators=rec.querySelectorAll('.t754__separator_number');Array.prototype.forEach.call(allSeparators,function(separator){separator.classList.add('t754__separator_hide');if(separator.getAttribute('data-product-separator-number')<=cardsCount){separator.classList.remove('t754__separator_hide')}})}
function t754__dict(){var dictionary={EN:'Load more',RU:'Загрузить ещё',FR:'Charger plus',DE:'Mehr laden',ES:'Carga más',PT:'Carregue mais',UK:'Завантажити ще',JA:'もっと読み込む',ZH:'裝載更多',};var language=window.browserLang
var allrecords=document.getElementById('allrecords');if(allrecords){var projectLang=allrecords.getAttribute('data-tilda-project-lang');if(projectLang){language=projectLang}}
return dictionary[language]?dictionary[language]:dictionary.EN}
function t754__alignButtons_init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;if(!rec.querySelector('[data-buttons-v-align]')){return}
try{t754__alignButtons(recid);if(document.querySelector('.t-records').getAttribute('data-tilda-mode')==='edit'){setInterval(function(){t754__alignButtons(recid)},200)}
window.addEventListener('resize',t_throttle(function(){if(window.noAdaptive&&window.isMobile){return}
t754__alignButtons(recid)},200));var wrapperBlock=rec.querySelector('.t754');if(wrapperBlock){wrapperBlock.addEventListener('displayChanged',function(){t754__alignButtons(recid)})}
if(window.isMobile){window.addEventListener('orientationchange',function(){t754__alignButtons(recid)})}}catch(error){console.log('buttons-v-align error: '+error.message)}}
function t754__alignButtons(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var wrappers=rec.querySelectorAll('.t754__textwrapper');var maxHeight=0;var container=rec.querySelector('.t754__parent');if(!container)return;var itemsInRow=parseInt(container.getAttribute('data-blocks-per-row'),10);if(!itemsInRow){itemsInRow=3}
var mobileView=window.innerWidth<=480;var tableView=window.innerWidth<=960&&window.innerWidth>480;var mobileOneRow=window.innerWidth<=960&&rec.querySelector('.t754__container_mobile-flex');var mobileTwoItemsInRow=window.innerWidth<=480&&rec.querySelector('.t754 .mobile-two-columns');if(mobileView){itemsInRow=1}
if(tableView){itemsInRow=2}
if(mobileTwoItemsInRow){itemsInRow=2}
if(mobileOneRow){itemsInRow=999999}
var count=1;var wrappersInRow=[];Array.prototype.forEach.call(wrappers,function(element){element.style.height='auto';if(itemsInRow===1){element.style.height='auto'}else{wrappersInRow.push(element);if(element.offsetHeight>maxHeight){maxHeight=element.offsetHeight}
Array.prototype.forEach.call(wrappersInRow,function(wrapper){wrapper.style.height=maxHeight+'px'});if(count===itemsInRow){count=0;maxHeight=0;wrappersInRow=[]}
count++}})}
function t754__hoverZoom_init(recid){if(window.isMobile)return;var rec=document.getElementById('rec'+recid);if(!rec)return;try{if(!rec.querySelector('[data-hover-zoom]')){return}
var hoverScript='https://static.tildacdn.com/js/tilda-hover-zoom-1.0.min.js';if(document.querySelector("script[src^='"+hoverScript+"']")){t_onFuncLoad('t_hoverZoom_init',function(){t_hoverZoom_init(recid)})}else{var script=document.createElement('script');script.type='text/javascript';script.src=hoverScript;script.onload=function(){setTimeout(function(){t_hoverZoom_init(recid)},500)};script.onerror=function(error){console.log('Upload script error: ',error)};document.head.appendChild(script)}}catch(error){console.log('Zoom image init error: '+error.message)}}
function t754__updateLazyLoad(recid){var scrollContainer=document.querySelector('#rec'+recid+' .t754__container_mobile-flex');var tRecords=document.querySelector('.t-records');if(!tRecords)return;var currentMode=tRecords.getAttribute('data-tilda-mode');if(scrollContainer&&currentMode!=='edit'&&currentMode!=='preview'){scrollContainer.addEventListener('scroll',t_throttle(function(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}))}}
function t754_initPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var popup=rec.querySelector('.t-popup');var body=document.body;var linksProd=rec.querySelectorAll('[href^="#prodpopup"]');Array.prototype.forEach.call(linksProd,function(popupLink){var product=popupLink.closest('.js-product');var productLid=product.getAttribute('data-product-lid');var productLinks=document.querySelectorAll('.r a[href$="#!/tproduct/'+recid+'-'+productLid+'"]');Array.prototype.forEach.call(productLinks,function(productLink){productLink.addEventListener('click',function(){if(rec.querySelector('[data-product-lid="'+productLid+'"]')){var linkToPopup=product.querySelector('[href^="#prodpopup"]');if(linkToPopup){var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);linkToPopup.dispatchEvent(event)}}})});popupLink.addEventListener('click',clickOnceHandler,!1);function clickOnceHandler(event){event.preventDefault();var product=popupLink.closest('.js-product');var productLid=product.getAttribute('data-product-lid');t_onFuncLoad('t_sldsInit',function(){t_sldsInit(recid+' #t754__product-'+productLid)});popupLink.removeEventListener('click',clickOnceHandler,!1)}
popupLink.addEventListener('click',showPopupHandler,!1);function showPopupHandler(event){event.preventDefault();var isT1002Button=event.target.classList.contains('t1002__addBtn')||event.target.parentNode.classList.contains('t1002__addBtn');if(isT1002Button)return;t754_showPopup(recid);var product=popupLink.closest('.js-product');var productLid=product.getAttribute('data-product-lid');var productFull=popup.querySelector('.js-product[data-product-lid="'+productLid+'"]');productFull.style.display='block';var analitics=popupLink.getAttribute('data-track-popup');if(analitics&&productFull&&window.Tilda){var productName=productFull.querySelector('.js-product-name');if(productName){var virtTitle=productName.textContent;if(!virtTitle){virtTitle='prod'+productLid}
Tilda.sendEventToStatistics(analitics,virtTitle)}}
var currentUrl=window.location.href;if(currentUrl.indexOf('#!/tproduct/')<0&&currentUrl.indexOf('%23!/tproduct/')<0&&currentUrl.indexOf('#%21%2Ftproduct%2F')<0){if(history.replaceState){window.history.replaceState('','',window.location.href+'#!/tproduct/'+recid+'-'+productLid)}}
t754_updateSlider(recid+' #t754__product-'+productLid);if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}});if(popup){popup.addEventListener('mousedown',function(event){var windowWidth=window.innerWidth;var maxScrollBarWidth=17;var windowWithoutScrollBar=windowWidth-maxScrollBarWidth;if(event.clientX>windowWithoutScrollBar){return}
if(event.target===this){t754_closePopup(body,popup)}});var allRecords=document.getElementById('allrecords');var currentMode=allRecords.getAttribute('data-tilda-mode');var isPublishedPage=currentMode!=='edit'&&currentMode!=='preview';if(isPublishedPage&&(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes')){popup.addEventListener('scroll',function(event){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})})}}
var closeButtons=rec.querySelectorAll('.t-popup__close, .t754__close-text');Array.prototype.forEach.call(closeButtons,function(button){button.addEventListener('click',function(){t754_closePopup(body,popup)})});document.addEventListener('keydown',function(event){var isGalleryShowedOldLib=document.body.classList.contains('t-zoomer__show');if(isGalleryShowedOldLib)return;var isGalleryShowedNewLib=document.body.classList.contains('t-zoomer__active');if(isGalleryShowedNewLib)return;var isPopupShowed=document.body.classList.contains('t-body_popupshowed');if(!isPopupShowed)return;if(popup&&popup.classList.contains('t-popup_show')){if(event.keyCode===27){t754_closePopup(body,popup)}}});if(!document.getElementById('record'+recid)){t754_checkUrl(recid)}
if(popup&&popup.hasAttribute('data-fixed-button')){t754_fixedPopupButton(recid)}}
function t754_showPopup(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;if(rec.classList.contains('r_hidden')){rec.classList.remove('r_hidden')
if(rec.classList.contains('r_anim')){rec.classList.remove('r_anim')}}
var popup=rec.querySelector('.t-popup');var fullProducts=popup.querySelectorAll('.t754__product-full');Array.prototype.forEach.call(fullProducts,function(product){product.style.display='none'});popup.style.display='block';setTimeout(function(){popup.querySelector('.t-popup__container').classList.add('t-popup__container-animated');popup.classList.add('t-popup_show');t_triggerEvent(popup,t754_POPUP_SHOWED_EVENT_NAME)},50);setTimeout(function(){if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}},300);var body=document.body;if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupShowed');body.classList.add('t-body_popupshowed');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);body.dispatchEvent(event)}
function t754_closePopup(body,popup){var fullProducts=popup.querySelectorAll('.t754__product-full');if(typeof t_triggerEvent==='function')t_triggerEvent(document.body,'popupHidden');body.classList.remove('t-body_popupshowed');popup.classList.remove('t-popup_show');var currentUrl=window.location.href;var indexToRemove=currentUrl.indexOf('#!/tproduct/');var event=document.createEvent('HTMLEvents');event.initEvent('twishlist_addbtn',!0,!1);body.dispatchEvent(event);if(/iPhone|iPad|iPod/i.test(navigator.userAgent)&&indexToRemove<0){indexToRemove=currentUrl.indexOf('%23!/tproduct/');if(indexToRemove<0){indexToRemove=currentUrl.indexOf('#%21%2Ftproduct%2F')}}
currentUrl=currentUrl.substring(0,indexToRemove);setTimeout(function(){popup.scrollTop=0;popup.style.display='none';Array.prototype.forEach.call(fullProducts,function(product){product.style.display='none'});if(history.replaceState){window.history.replaceState('','',currentUrl)}},300);t_triggerEvent(popup,t754_POPUP_CLOSED_EVENT_NAME)}
function t754_updateSlider(recid){var rec=document.querySelector('#rec'+recid);if(!rec)return;t_onFuncLoad('t_slds_SliderWidth',function(){t_slds_SliderWidth(recid)});var slider=rec.querySelector('.t-slds__container');var paddingLeft=parseInt(slider.style.paddingLeft)||0;var paddingRight=parseInt(slider.style.paddingRight)||0;var sliderWrapper=rec.querySelector('.t-slds__items-wrapper');var sliderWidth=slider.clientWidth-(paddingLeft+paddingRight);var pos=parseFloat(sliderWrapper.getAttribute('data-slider-pos'));sliderWrapper.style.transform='translate3d(-'+sliderWidth*pos+'px, 0, 0)';t_onFuncLoad('t_slds_UpdateSliderHeight',function(){t_slds_UpdateSliderHeight(recid)});t_onFuncLoad('t_slds_UpdateSliderArrowsHeight',function(){t_slds_UpdateSliderArrowsHeight(recid)})}
function t754_checkUrl(recid){var currentUrl=window.location.href;var tprodIndex=(currentUrl.indexOf('#!/tproduct/')+1||currentUrl.indexOf('%23!/tproduct/')+1||currentUrl.indexOf('#%21%2Ftproduct%2F')+1||currentUrl.indexOf('#!%2Ftproduct%2F')+1||currentUrl.indexOf('%23%21%2Ftproduct%2F')+1)-1;if(tprodIndex!==-1){var currentUrl=currentUrl.substring(tprodIndex,currentUrl.length);var curProdLid=currentUrl.substring(currentUrl.indexOf('-')+1,currentUrl.length);if(curProdLid){var curProdLidMatch=curProdLid.match(/([0-9]+)/g);if(curProdLidMatch){curProdLid=curProdLidMatch[0]}}
if(currentUrl.indexOf(recid)===-1)return;var rec=document.getElementById('rec'+recid);if(!rec)return;if(currentUrl.indexOf(recid)!==0&&rec.querySelector('[data-product-lid="'+curProdLid+'"]')){var currentLink=rec.querySelector('[data-product-lid="'+curProdLid+'"] [href^="#prodpopup"]');var event=document.createEvent('HTMLEvents');event.initEvent('click',!0,!1);if(currentLink){currentLink.dispatchEvent(event)}}}}
function t754_fixedPopupButton(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var MOBILE_MAX_WIDTH=560;var popup=rec.querySelector('.t-popup');var popupContainer=popup.querySelector('.t-popup__container');var btnWrappers=rec.querySelectorAll('.t754__btn-wrapper');Array.prototype.forEach.call(btnWrappers,function(el){el.classList.add('t754__btn-wrapper-fixed')});function addStyle(){popupContainer.style.paddingBottom='90px';popupContainer.style.cssText+=';transform:none !important;'}
function resetStyle(){popupContainer.style.paddingBottom='';popupContainer.style.transform=''}
function handleResize(){if(window.innerWidth>MOBILE_MAX_WIDTH){resetStyle();return}
addStyle()}
if(window.isMobile){window.addEventListener("orientationchange",handleResize)}
popup.addEventListener(t754_POPUP_SHOWED_EVENT_NAME,function(){setTimeout(function(){handleResize()},0)});popup.addEventListener(t754_POPUP_CLOSED_EVENT_NAME,function(){resetStyle()});window.addEventListener('resize',handleResize)}
if(!Element.prototype.matches){Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector}
if(!Element.prototype.closest){Element.prototype.closest=function(s){var el=this;while(el&&el.nodeType===1){if(Element.prototype.matches.call(el,s)){return el}
el=el.parentElement||el.parentNode}
return null}}
function t849_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var togglers=rec.querySelectorAll('.t849__header');var isLazy=document.getElementById('allrecords').getAttribute('data-tilda-lazy');var accordion=rec.querySelector('.t849__accordion');if(accordion){accordion=accordion.getAttribute('data-accordion')}else{accordion='false'}
var cachedHeight=0;var cachedTop=0;Array.prototype.forEach.call(togglers,function(toggler){toggler.addEventListener('click',function(){var target=toggler;var content=target.nextElementSibling;var triggerButton=target.querySelector('.t849__trigger-button');if(accordion==='true'){Array.prototype.forEach.call(togglers,function(header){if(target!==header){header.classList.remove('t849__opened');t849_slideUp(header.nextElementSibling,target)}})}
if(triggerButton){var isExpanded=triggerButton.getAttribute('aria-expanded')==='true';triggerButton.setAttribute('aria-expanded',!isExpanded);content.hidden=isExpanded}
target.classList.toggle('t849__opened');target.style.pointerEvents='none';t849_slideToggle(target.nextElementSibling,target);if(window.lazy==='y'||isLazy==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})});function t849_slideToggle(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=300;if(window.getComputedStyle(target).display==='none'){return t849_slideDown(target,triggerElement,duration)}else{cachedHeight=0;return t849_slideUp(target,triggerElement,duration)}}
function t849_slideUp(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=300;target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.boxSizing='border-box';target.style.height=target.offsetHeight+'px';target.offsetHeight;target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';setTimeout(function(){triggerElement.style.pointerEvents='auto';target.style.display='none';target.style.height='';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty=''},duration)}
function t849_slideDown(target,triggerElement,duration){if(!target)return;if(!duration&&duration!==0)duration=300;target.style.display='';var cashedDisplay=window.getComputedStyle(target).display;if(cashedDisplay==='none')cashedDisplay='block';target.style.display=cashedDisplay;var targetHeight=target.offsetHeight;var targetTop=target.offsetTop;if(window.visualViewport){var visibleTop=targetTop-window.visualViewport.pageTop;if(cachedTop&&accordion==='true'&&targetTop>cachedTop&&window.scrollY>cachedTop){window.scrollTo(window.scrollX,targetTop-cachedHeight-visibleTop)}}
target.style.overflow='hidden';target.style.height='0';target.style.paddingTop='0';target.style.paddingBottom='0';target.style.marginTop='0';target.style.marginBottom='0';target.offsetHeight;target.style.boxSizing='border-box';target.style.transitionProperty='height, margin, padding';target.style.transitionDuration=duration+'ms';target.style.height=targetHeight+'px';target.style.paddingTop='';target.style.paddingBottom='';target.style.marginTop='';target.style.marginBottom='';setTimeout(function(){triggerElement.style.pointerEvents='auto';target.style.height='';target.style.overflow='';target.style.transitionDuration='';target.style.transitionProperty='';cachedHeight=targetHeight;cachedTop=targetTop},duration)}}
function t404_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var titles=container.querySelectorAll('.t404__title');var descrs=container.querySelectorAll('.t404__descr');var maxHeight=0;for(var j=0;j<titles.length;j++){var title=titles[j];title.style.height='';var titleStyle=getComputedStyle(title,null);var titlePaddingTop=parseInt(titleStyle.paddingTop)||0;var titlePaddingBottom=parseInt(titleStyle.paddingBottom)||0;var titleHeight=title.clientHeight-(titlePaddingTop+titlePaddingBottom);if(titleHeight>maxHeight)maxHeight=titleHeight}
if(window.innerWidth>=960){for(var j=0;j<titles.length;j++){titles[j].style.height=maxHeight+'px'}}else{for(var j=0;j<titles.length;j++){titles[j].style.height='auto'}}
maxHeight=0;for(var j=0;j<descrs.length;j++){var descr=descrs[j];descr.style.height='';var descrStyle=getComputedStyle(descr,null);var descrPaddingTop=parseInt(descrStyle.paddingTop)||0;var descrPaddingBottom=parseInt(descrStyle.paddingBottom)||0;var descrHeight=descr.clientHeight-(descrPaddingTop+descrPaddingBottom);if(descrHeight>maxHeight)maxHeight=descrHeight}
if(window.innerWidth>=960){for(var j=0;j<descrs.length;j++){descrs[j].style.height=maxHeight+'px'}}else{for(var j=0;j<descrs.length;j++){descrs[j].style.height='auto'}}}}
function t404_unifyHeightsTextwrapper(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var mainContainer=rec.querySelector('.t404');if(!mainContainer)return;var containers=rec.querySelectorAll('.t-container');for(var i=0;i<containers.length;i++){var container=containers[i];var textWrappers=container.querySelectorAll('.t404__textwrapper');var maxHeight=0;for(var j=0;j<textWrappers.length;j++){var textWrapper=textWrappers[j];textWrapper.style.height='auto';var textWrapperStyle=getComputedStyle(textWrapper,null);var textWrapperPaddingTop=parseInt(textWrapperStyle.paddingTop)||0;var textWrapperPaddingBottom=parseInt(textWrapperStyle.paddingBottom)||0;var textWrapperHeight=textWrapper.clientHeight-(textWrapperPaddingTop+textWrapperPaddingBottom);if(textWrapperHeight>maxHeight)maxHeight=textWrapperHeight}
if(window.innerWidth>=960){for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height=maxHeight+'px'}}else{for(var j=0;j<textWrappers.length;j++){textWrappers[j].style.height='auto'}}}}
function t404_showMore(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t404');if(!container)return;var cols=container.querySelectorAll('.t-col');var allRecords=document.getElementById('allrecords');for(var i=0;i<cols.length;i++){cols[i].style.display='none'}
var cardsLength=cols.length;var cardsCount=parseInt(container.getAttribute('data-show-count'),10);if(cardsCount>500)cardsCount=500;var startIndexShowBlock=cardsCount;var countShowBlock=cardsCount;var colsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<colsShow.length;i++){colsShow[i].style.display='block'}
var showMoreBtn=rec.querySelector('.t404__showmore');if(showMoreBtn){showMoreBtn.addEventListener('click',function(){startIndexShowBlock=(startIndexShowBlock+countShowBlock<=cardsLength)?startIndexShowBlock+countShowBlock:cardsLength;var newColsShow=t404__getShowBlocks(cols,startIndexShowBlock);for(var i=0;i<newColsShow.length;i++){newColsShow[i].style.display='block'}
if(startIndexShowBlock===cardsLength){showMoreBtn.style.display='none'}
t404__triggerEvent(container,'displayChanged');if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}})}}
function t404__getShowBlocks(elements,index){var newElements=[];for(var i=0;i<elements.length;i++){if(i<=index-1)newElements.push(elements[i])}
return newElements}
function t404__triggerEvent(el,eventName){var event;if(typeof window.CustomEvent==='function'){event=new CustomEvent(eventName)}else if(document.createEvent){event=document.createEvent('HTMLEvents');event.initEvent(eventName,!0,!1)}else if(document.createEventObject){event=document.createEventObject();event.eventType=eventName}
event.eventName=eventName;if(el.dispatchEvent){el.dispatchEvent(event)}else if(el.fireEvent){el.fireEvent('on'+event.eventType,event)}else if(el[eventName]){el[eventName]()}else if(el['on'+eventName]){el['on'+eventName]()}}
function t280_showMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var isChrome=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);var isAndroid=/(android)/i.test(navigator.userAgent);var menu=rec.querySelector('.t280');var menuItems=rec.querySelectorAll('.t280__menu__item');var menuLinks=rec.querySelectorAll('.t978__menu-link');var menuContainer=rec.querySelector('.t280__menu');var menuBurger=menu?menu.querySelector('.t-menuburger'):null;var clickElementsList=rec.querySelectorAll('.t280 .t-menuburger, .t280__menu__bg, .t280__menu__link:not(.tooltipstered):not(.t280__menu__link_submenu), .t978__tooltip-menu_mobile');Array.prototype.forEach.call(clickElementsList,function(clickElement){clickElement.addEventListener('click',function(){if(clickElement.closest('.t280__menu__link.tooltipstered')||clickElement.closest('.t794__tm-link'))return;if(isChrome&&isAndroid&&menuItems.length>10&&window.location.hash){setTimeout(function(){var hash=window.location.hash;window.location.hash='';window.location.hash=hash},50)}
if(!clickElement.closest('.t978__tm-link, .t966__tm-link')){document.body.classList.toggle('t280_opened');if(menu)menu.classList.toggle('t280__main_opened')}
if(clickElement.classList.contains('t-menuburger')){var expandedStatus=clickElement.classList.contains('t-menuburger-opened');clickElement.setAttribute('aria-expanded',expandedStatus)}
t280_changeSize(recid);t280_highlight(recid)})});document.addEventListener('click',function(e){if(e.target.closest('.t978__tm-link, .t966__tm-link, .t-menusub__target-link, .t978__menu-link_hook')){t280_changeSize(recid);if(menuContainer)menuContainer.style.transition='none'}
if(e.target.closest('.t978__menu-item')){setTimeout(function(){t280_changeSize(recid);if(menuContainer)menuContainer.style.transition='none'},200)}});Array.prototype.forEach.call(menuLinks,function(link){link.addEventListener('click',function(){t280_changeSize(recid)})});if(menu){menu.addEventListener('clickedAnchorInTooltipMenu',function(){document.body.classList.remove('t280_opened');menu.classList.remove('t280__main_opened')})}
var submenuLinks=rec.querySelectorAll('.t-menusub__link-item');Array.prototype.forEach.call(submenuLinks,function(link){link.addEventListener('click',function(){document.body.classList.remove('t280_opened');if(menu)menu.classList.remove('t280__main_opened');if(menuBurger){menuBurger.classList.remove('t-menuburger-opened');menuBurger.setAttribute('aria-expanded',!1)}})});if(submenuLinks.length>0){document.addEventListener('submenuShow',function(){t280_changeSize(recid)})}}
function t280_changeSize(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menu=rec.querySelector('.t280__menu');var menuBottom=rec.querySelector('.t280__bottom');var menuContainer=rec.querySelector('.t280__container');var menuWrapper=rec.querySelector('.t280__menu__wrapper');var menuHeight=menu?menu.offsetHeight:0;var menuBottomHeight=menuBottom?menuBottom.offsetHeight:0;var menuContainerHeight=menuContainer?menuContainer.offsetHeight:0;var padding=140;if(menuHeight>document.documentElement.clientHeight-(menuBottomHeight+menuContainerHeight+padding)){if(menuWrapper)menuWrapper.classList.add('t280__menu_static');if(menu)menu.style.paddingTop=(menuContainerHeight||0)+'px'}else{if(menuWrapper)menuWrapper.classList.remove('t280__menu_static');if(menu)menu.style.paddingTop=''}}
function t280_changeBgOpacityMenu(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlocks=rec.querySelectorAll('.t280__container__bg');Array.prototype.forEach.call(menuBlocks,function(menu){var bgColor=menu.getAttribute('data-bgcolor-rgba');var bgColorAfterScroll=menu.getAttribute('data-bgcolor-rgba-afterscroll');var bgOpacity=menu.getAttribute('data-bgopacity');var bgOpacityTwo=menu.getAttribute('data-bgopacity2');var menuShadowOpacity=parseInt(menu.getAttribute('data-menushadow'),10)||0;menuShadowOpacity/=100;var menuShadowCSS=menu.getAttribute('data-menushadow-css');menu.style.backgroundColor=window.pageYOffset>20?bgColorAfterScroll:bgColor;if((window.pageYOffset>20&&bgOpacityTwo==='0')||(window.pageYOffset<=20&&(bgOpacity==='0.0'||bgOpacity==='0'))||(!menuShadowOpacity&&!menuShadowCSS)){menu.style.boxShadow='none'}else if(menuShadowCSS){menu.style.boxShadow=menuShadowCSS}else if(menuShadowOpacity){menu.style.boxShadow='0px 1px 3px rgba(0,0,0,'+menuShadowOpacity+')'}})}
function t280_appearMenu(){var menuBlocks=document.querySelectorAll('.t280');Array.prototype.forEach.call(menuBlocks,function(menuBlock){var menu=menuBlock.querySelector('.t280__positionfixed');if(menu){var appearOffset=menuBlock.getAttribute('data-appearoffset');if(appearOffset&&appearOffset.indexOf('vh')!==-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);var menuHeight=menu.clientHeight;if(isNaN(appearOffset))return;if(window.pageYOffset>=appearOffset){if(menu.style.transform==='translateY(-'+menuHeight+'px)'){t280_slideUpElement(menu,menuHeight,'toBottom')}}else if(menu.style.transform==='translateY(0px)'){t280_slideUpElement(menu,menuHeight,'toTop')}else{menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0'}}})}
function t280_slideUpElement(menu,menuHeight,direction){var diff=direction==='toTop'?0:menuHeight;var diffOpacity=direction==='toTop'?1:0;var timerID=setInterval(function(){menu.style.transform='translateY(-'+diff+'px)';menu.style.opacity=diffOpacity.toString();diffOpacity=direction==='toTop'?diffOpacity-0.1:diffOpacity+0.1;diff=direction==='toTop'?diff+(menuHeight/20):diff-(menuHeight/20);if(direction==='toTop'&&diff>=menuHeight){menu.style.transform='translateY(-'+menuHeight+'px)';menu.style.opacity='0';clearInterval(timerID)}
if(direction==='toBottom'&&diff<=0){menu.style.transform='translateY(0px)';menu.style.opacity='1';clearInterval(timerID)}},10)}
function t280_highlight(recid){var url=window.location.href;var pathname=window.location.pathname;var hash=window.location.hash;if(url.substr(url.length-1)==='/'){url=url.slice(0,-1)}
if(pathname.substr(pathname.length-1)==='/'){pathname=pathname.slice(0,-1)}
if(pathname.charAt(0)==='/'){pathname=pathname.slice(1)}
if(pathname===''){pathname='/'}
var shouldBeActiveElements=document.querySelectorAll('.t280__menu a[href=\''+url+'\'], '+'.t280__menu a[href=\''+url+'/\'], '+'.t280__menu a[href=\''+pathname+'\'], '+'.t280__menu a[href=\'/'+pathname+'\'], '+'.t280__menu a[href=\''+pathname+'/\'], '+'.t280__menu a[href=\'/'+pathname+'/\']'+(hash?', .t280__menu a[href=\''+hash+'\']':'')+(hash?', .t280__menu a[href=\'/'+hash+'\']':'')+(hash?', .t280__menu a[href=\''+hash+'/\']':'')+(hash?', .t280__menu a[href=\'/'+hash+'/\']':''));var rec=document.getElementById('rec'+recid);var menuLinks=rec?rec.querySelectorAll('.t280__menu a'):[];Array.prototype.forEach.call(menuLinks,function(link){link.classList.remove('t-active')});Array.prototype.forEach.call(shouldBeActiveElements,function(link){link.classList.add('t-active')})}
function t228__init(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuBlock=rec.querySelector('.t228');var mobileMenu=rec.querySelector('.t228__mobile');var menuSubLinkItems=rec.querySelectorAll('.t-menusub__link-item');var rightBtn=rec.querySelector('.t228__right_buttons_but .t-btn');var mobileMenuPosition=mobileMenu?mobileMenu.style.position||window.getComputedStyle(mobileMenu).position:'';var mobileMenuDisplay=mobileMenu?mobileMenu.style.display||window.getComputedStyle(mobileMenu).display:'';var isFixedMobileMenu=mobileMenuPosition==='fixed'&&mobileMenuDisplay==='block';var overflowEvent=document.createEvent('Event');var noOverflowEvent=document.createEvent('Event');overflowEvent.initEvent('t228_overflow',!0,!0);noOverflowEvent.initEvent('t228_nooverflow',!0,!0);if(menuBlock){menuBlock.addEventListener('t228_overflow',function(){t228_checkOverflow(recid)});menuBlock.addEventListener('t228_nooverflow',function(){t228_checkNoOverflow(recid)})}
rec.addEventListener('click',function(e){var targetLink=e.target.closest('.t-menusub__target-link');if(targetLink&&window.isMobile&&window.innerWidth<=980){if(targetLink.classList.contains('t-menusub__target-link_active')){if(menuBlock)menuBlock.dispatchEvent(overflowEvent)}else{if(menuBlock)menuBlock.dispatchEvent(noOverflowEvent)}}
var currentLink=e.target.closest('.t-menu__link-item:not(.tooltipstered):not(.t-menusub__target-link):not(.t794__tm-link):not(.t966__tm-link):not(.t978__tm-link):not(.t978__menu-link)');if(currentLink&&mobileMenu&&isFixedMobileMenu)mobileMenu.click()});Array.prototype.forEach.call(menuSubLinkItems,function(linkItem){linkItem.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})});if(rightBtn){rightBtn.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})}
if(menuBlock){menuBlock.addEventListener('showME601a',function(){var menuLinks=rec.querySelectorAll('.t966__menu-link');Array.prototype.forEach.call(menuLinks,function(menuLink){menuLink.addEventListener('click',function(){if(mobileMenu&&isFixedMobileMenu)mobileMenu.click()})})})}
t_onFuncLoad('t_throttle',function(){var onResizeThrottled=t_throttle(function(){t228_setWidth(recid)},50)
window.addEventListener('resize',onResizeThrottled)})}
function t228_checkOverflow(recid){var rec=document.getElementById('rec'+recid);var menu=rec?rec.querySelector('.t228'):null;if(!menu)return;var mobileContainer=document.querySelector('.t228__mobile_container');var mobileContainerHeight=t228_getFullHeight(mobileContainer);var windowHeight=document.documentElement.clientHeight;var menuPosition=menu.style.position||window.getComputedStyle(menu).position;if(menuPosition==='fixed'){menu.classList.add('t228__overflow');menu.style.setProperty('height',(windowHeight-mobileContainerHeight)+'px','important')}}
function t228_checkNoOverflow(recid){var rec=document.getElementById('rec'+recid);if(!rec)return!1;var menu=rec.querySelector('.t228');var menuPosition=menu?menu.style.position||window.getComputedStyle(menu).position:'';if(menuPosition==='fixed'){if(menu)menu.classList.remove('t228__overflow');if(menu)menu.style.height='auto'}}
function t228_setWidth(recid){var rec=document.getElementById('rec'+recid);if(!rec)return;var menuCenterSideList=rec.querySelectorAll('.t228__centerside');Array.prototype.forEach.call(menuCenterSideList,function(menuCenterSide){menuCenterSide.classList.remove('t228__centerside_hidden')});if(window.innerWidth<=980)return;var menuBlocks=rec.querySelectorAll('.t228');Array.prototype.forEach.call(menuBlocks,function(menu){var maxWidth;var centerWidth=0;var paddingWidth=40;var leftSide=menu.querySelector('.t228__leftside');var rightSide=menu.querySelector('.t228__rightside');var menuList=menu.querySelector('.t228__list');var mainContainer=menu.querySelector('.t228__maincontainer');var leftContainer=menu.querySelector('.t228__leftcontainer');var rightContainer=menu.querySelector('.t228__rightcontainer');var centerContainer=menu.querySelector('.t228__centercontainer');var centerContainerLi=centerContainer?centerContainer.querySelectorAll('li'):[];var leftContainerWidth=t228_getFullWidth(leftContainer);var rightContainerWidth=t228_getFullWidth(rightContainer);var mainContainerWidth=mainContainer?mainContainer.offsetWidth:0;var dataAlign=menu.getAttribute('data-menu-items-align');var isDataAlignCenter=dataAlign==='center'||dataAlign===null;maxWidth=leftContainerWidth>=rightContainerWidth?leftContainerWidth:rightContainerWidth;maxWidth=Math.ceil(maxWidth);Array.prototype.forEach.call(centerContainerLi,function(li){centerWidth+=t228_getFullWidth(li)});leftSide.style.minWidth=''
rightSide.style.minWidth=''
if(mainContainerWidth-(maxWidth*2+paddingWidth*2)>centerWidth+20){if(isDataAlignCenter){if(leftSide)leftSide.style.minWidth=maxWidth+'px';if(rightSide)rightSide.style.minWidth=maxWidth+'px'}}else{if(leftSide)leftSide.style.minWidth=maxWidth+'';if(rightSide)rightSide.style.minWidth=maxWidth+''}
if(menuList&&menuList.classList.contains('t228__list_hidden'))menuList.classList.remove('t228__list_hidden')})}
function t228_getFullWidth(el){if(!el)return 0;var marginLeft=el.style.marginLeft||window.getComputedStyle(el).marginLeft;var marginRight=el.style.marginRight||window.getComputedStyle(el).marginRight;marginLeft=parseInt(marginLeft,10)||0;marginRight=parseInt(marginRight,10)||0;return el.offsetWidth+marginLeft+marginRight}
function t228_getFullHeight(el){if(!el)return 0;var marginTop=el.style.marginTop||window.getComputedStyle(el).marginTop;var marginBottom=el.style.marginBottom||window.getComputedStyle(el).marginBottom;marginTop=parseInt(marginTop,10)||0;marginBottom=parseInt(marginBottom,10)||0;return el.offsetHeight+marginTop+marginBottom}
function t456_setListMagin(recid,imglogo){var rec=document.getElementById('rec'+recid);if(!rec||window.innerWidth<=980)return;var menu=rec.querySelector('.t456');var leftSide=menu?menu.querySelector('.t456__leftwrapper'):null;var list=menu?menu.querySelector('.t456__list'):null;var leftSideWidth=leftSide?leftSide.offsetWidth:0;if(list)list.style.marginRight=(imglogo?leftSideWidth:leftSideWidth+30)+'px'}
function t978_init(recid,cols,openOnClick){var rec=document.getElementById('rec'+recid);if(!rec)return;var submenuBlock=rec.querySelector('.t978');var hook=submenuBlock.getAttribute('data-tooltip-hook');var submenu=rec.querySelector('.t978__tooltip-menu');var hookLinks=document.querySelectorAll('a[href="'+hook+'"]');hookLinks=Array.prototype.filter.call(hookLinks,function(hookLink){var isSubmenuAllowed=hookLink.getAttribute('data-submenu-disallowed')!=='yes';if(isSubmenuAllowed){hookLink.classList.add('t978__tm-link');hookLink.setAttribute('data-tooltip-menu-id',recid);return!0}
return!1});var parentMenu=hookLinks[0]?hookLinks[0].closest('[data-menu]'):null;var isParentFixed=parentMenu?window.getComputedStyle(parentMenu).position==='fixed':!1;if(submenu)submenu.setAttribute('data-pos-fixed',isParentFixed?'yes':'no');t978_addArrow(recid,hookLinks);t978_setUpMenu(recid,hookLinks,cols,openOnClick);t_onFuncLoad('t_submenublocks__highlightActiveLinks',function(){t_submenublocks__highlightActiveLinks('.t978__menu-link, .t978__innermenu-link')});var isT804Exist=!!document.querySelector('.t804');if(isT804Exist){document.addEventListener('replacingCompleted',function(){t978_init(recid)})}
if(submenuBlock.hasAttribute('data-full-submenu-mob')&&(window.isMobile||'ontouchend' in document)){t_onFuncLoad('t_submenublocks__setFullScreenMenu',function(){t_submenublocks__setFullScreenMenu(submenuBlock)})}}
function t978_preview(recid,cols){var rec=document.getElementById('rec'+recid);if(!rec)return;var submenu=rec.querySelector('.t978__tooltip-menu');var content=submenu?submenu.querySelector('.t978__content'):null;if(!content)return;var innermenu=content.querySelector('.t978__innermenu');t978_divideMenu(recid,cols);var submenuActiveLink=content.querySelectorAll('.t978__menu-link');submenuActiveLink=Array.prototype.filter.call(submenuActiveLink,function(activeLink){return(activeLink.hasAttribute('data-menu-submenu-hook')&&activeLink.getAttribute('data-menu-submenu-hook'))});var submenuHook=submenuActiveLink.length?submenuActiveLink[0].getAttribute('data-menu-submenu-hook'):'';if(!submenuHook)return;var activeInnermenuWrapper=content.querySelector('.t978__innermenu-wrapper[data-submenu-hook="'+submenuHook+'"]');var activeInnermenuContent=activeInnermenuWrapper?activeInnermenuWrapper.querySelector('.t978__innermenu-content'):null;if(window.innerWidth>980){if(activeInnermenuWrapper)activeInnermenuWrapper.style.display='block';if(innermenu)innermenu.style.display='block';if(activeInnermenuContent)activeInnermenuContent.classList.add('t978__innermenu_show')}}
function t978_divideMenu(recid,rows){var rec=document.getElementById('rec'+recid);if(!rec)return;if(!rows)rows=1;var wrapperList=rec.querySelectorAll('.t978__tooltip-menu .t978__content .t978__innermenu-wrapper');Array.prototype.forEach.call(wrapperList,function(wrapper){var items=wrapper.querySelectorAll('.t978__innermenu-item');var list=wrapper.querySelector('.t978__innermenu-list');var minItemsCountInRow=Math.floor(items.length/rows);var remainder=items.length%rows;var rowClass='t978__menu-col_'+rows;for(var i=0;i<rows;i++){var row=document.createElement('div');row.classList.add('t978__menu-col');row.classList.add(rowClass);if(list)list.appendChild(row)}
var listRows=list?list.querySelectorAll('.t978__menu-col'):[];var pointer=0;Array.prototype.forEach.call(listRows,function(row,i){var itemsArray=Array.prototype.slice.call(items);var itemPerCol=i<remainder?minItemsCountInRow+1:minItemsCountInRow;var slicedItems=itemsArray.splice(pointer,pointer+itemPerCol);slicedItems.forEach(function(el){row.appendChild(el)});pointer+=itemPerCol})})}
function t978_addArrow(recid,hookLinks){var rec=document.getElementById('rec'+recid);var submenuBlock=rec?rec.querySelector('.t978'):null;var isArrowAppend=submenuBlock.getAttribute('data-add-arrow');if(!isArrowAppend)return;hookLinks=Array.prototype.slice.call(hookLinks);hookLinks.forEach(function(hookLink){if(hookLink.querySelector('.t978__arrow'))return;var arrow=document.createElement('div');arrow.classList.add('t978__arrow');hookLink.appendChild(arrow);var isInsideZero=hookLink.closest('.tn-atom');var hasCustomBorderColor=window.getComputedStyle(hookLink).borderColor!=='rgba(0, 0, 0, 0)';if(isInsideZero&&!hasCustomBorderColor){hookLink.style.borderColor='initial';hookLink.style.border='none'}})}
function t978_setUpMenu(recid,hookLinks,cols,openOnClick){var rec=document.getElementById('rec'+recid);var submenu=rec?rec.querySelector('.t978__tooltip-menu'):null;if(!submenu)return;var submenuBlock=rec.querySelector('.t978');var content=submenu.querySelector('.t978__content');var verticalIndent=submenuBlock?submenuBlock.getAttribute('data-tooltip-margin'):'';t978_divideMenu(recid,cols);hookLinks=Array.prototype.slice.call(hookLinks);if(window.innerWidth>980&&!('ontouchend' in document)){t978_addEventsDesktop(submenu,hookLinks,verticalIndent,openOnClick)}else{t978_addEventsMobile(submenu,hookLinks,verticalIndent,openOnClick)}
window.addEventListener('scroll',t_throttle(function(){if(content){content.addEventListener('mouseleave',function(){var activeHookLinks=hookLinks.length?hookLinks.filter(function(link){return link.classList.contains('t978__tm-link_active')}):[];var insertedSubmenu=activeHookLinks.length?activeHookLinks[0].nextElementSibling:null;if(submenu.classList.contains('t978__tooltip-menu_show')||(insertedSubmenu&&insertedSubmenu.classList.contains('t978__tooltip-menu_mobile'))){t_onFuncLoad('t_submenublocks__hideSubmenu',function(){t_submenublocks__hideSubmenu(insertedSubmenu,'.t978')})}})}},300));var submenuAnchorLinks=document.querySelectorAll('.t978__tooltip-menu a[href*="#"]:not(.t978__menu-link_hook)');submenuAnchorLinks=Array.prototype.slice.call(submenuAnchorLinks);submenuAnchorLinks.forEach(function(link){link.addEventListener('click',function(){t_onFuncLoad('t_submenublocks__hideSubmenu',function(){t_submenublocks__hideSubmenu(submenu,'.t978',link)});submenuAnchorLinks.forEach(function(element){element.classList.remove('t-active')});link.classList.add('t-active')})});var elements=document.querySelectorAll('.t450, .t199__mmenu, .t280, .t282, .t204__burger, .t451, .t466');var event=document.createEvent('Event');event.initEvent('clickedAnchorInTooltipMenu',!0,!0);document.addEventListener('click',function(e){if(e.target.closest('.t978__tooltip-menu a[href*="#"]:not(.t978__menu-link_hook)')){Array.prototype.forEach.call(elements,function(el){el.dispatchEvent(event)})}})}
function t978_addEventsDesktop(submenu,hookLinks,verticalIndent,openOnClick){if(!submenu)return;hookLinks=Array.prototype.slice.call(hookLinks);var submenuLinks=submenu.querySelectorAll('.t978__menu-link');var hooksAndSubmenu=hookLinks.concat(submenu);t_onFuncLoad('t_submenublocks__addEventsDesktop',function(){t_submenublocks__addEventsDesktop(submenu,hooksAndSubmenu,verticalIndent,'.t978')});Array.prototype.forEach.call(submenuLinks,function(submenuLink){if(submenuLink.classList.contains('t978__menu-link_hook')){submenuLink.addEventListener('click',function(e){e.preventDefault()})}
if(submenu.getAttribute('data-set-events')!=='yes'){t978_addInnermenuEvents(submenu,openOnClick)}})}
function t978_addEventsMobile(submenu,hookLinks,verticalIndent,openOnClick){if(!submenu)return;t_onFuncLoad('t_submenublocks__addEventsMobile',function(){t_submenublocks__addEventsMobile(submenu,hookLinks,verticalIndent,'.t978')});document.addEventListener('submenuShow',function(){var activeHookLinks=hookLinks.filter(function(el){return el.classList.contains('t978__tm-link_active')});var isSubmenuShowed=submenu.classList.contains('t978__tooltip-menu_show');var insertedSubmenu=activeHookLinks.length?activeHookLinks[0].nextElementSibling:null;if(insertedSubmenu&&insertedSubmenu.classList.contains('t978__tooltip-menu_mobile')){t978_addInnermenuEvents(insertedSubmenu,openOnClick)}else if(submenu&&isSubmenuShowed){t978_addInnermenuEvents(submenu,openOnClick)}})}
function t978_addInnermenuEvents(submenu,openOnClick){if(!submenu)return;submenu.setAttribute('data-set-events','yes');var submenuLinks=submenu.querySelectorAll('.t978__menu-link');submenuLinks=Array.prototype.slice.call(submenuLinks);var innermenu=submenu.querySelectorAll('.t978__innermenu');var innermenuWrapper=submenu.querySelectorAll('.t978__innermenu-wrapper');var timer;var submenulinksAndInnermenu=submenuLinks.slice();Array.prototype.forEach.call(innermenu,function(menu){submenulinksAndInnermenu.push(menu)});if(window.innerWidth<=980||((window.isMobile||('ontouchend' in document&&/Macintosh/.test(navigator.userAgent)))&&window.innerWidth>980)){document.addEventListener('submenuHide',function(){t978_resetSubmenu(submenuLinks,innermenuWrapper,innermenu)});submenuLinks.forEach(function(submenuLink){submenuLink.removeEventListener('click',t978_addSubmenuClickEvent);submenuLink.addEventListener('click',t978_addSubmenuClickEvent)});return}
if(openOnClick==='on'){submenuLinks.forEach(function(submenuLink){submenuLink.addEventListener('click',function(e){var submenuHook=submenuLink.getAttribute('data-menu-submenu-hook');if(!submenuHook)return;e.preventDefault();t978_hideAllInnermenu(submenuLink);if(submenuLink.classList.contains('t978__menu-activelink')){t978_resetSubmenu(submenuLinks,innermenuWrapper,innermenu)}else{submenuLink.classList.add('t978__menu-activelink');t978_showInnermenu(submenu,submenuHook)}})})}else{submenulinksAndInnermenu.forEach(function(element){element.addEventListener('mouseover',function(e){var submenuLink=e.target.closest('.t978__menu-link');var isInnermenu=element.classList.contains('.t978__innermenu-content')||element.closest('.t978__innermenu-content');var isInnermenuShowed=element.classList.contains('.t978__innermenu_show')||element.closest('.t978__innermenu_show');if(submenuLink&&!submenuLink.classList.contains('.t978__menu-activelink')){t978_resetSubmenu(submenuLinks,innermenuWrapper,innermenu)}
if(isInnermenu&&!isInnermenuShowed)return;clearTimeout(timer);if(isInnermenu&&isInnermenuShowed)return;var submenuHook=element.getAttribute('data-menu-submenu-hook');if(submenuHook){element.classList.add('t978__menu-hoverlink');t978_showInnermenu(submenu,submenuHook)}});element.addEventListener('mouseout',function(){var submenuHook=element.getAttribute('data-menu-submenu-hook');if(submenuHook){timer=setTimeout(function(){t978_resetSubmenu(submenuLinks,innermenuWrapper,innermenu)},300)}})})}}
function t978_addSubmenuClickEvent(e){var submenuLink=this;var submenu=submenuLink.closest('.t978__tooltip-menu');var submenuHook=submenuLink.getAttribute('data-menu-submenu-hook');if(submenuHook){e.preventDefault();t978_hideAllInnermenu(submenuLink);if(submenuLink.classList.contains('t978__menu-activelink')){t978_hideInnermenu(submenu,submenuHook)}else{submenuLink.classList.add('t978__menu-activelink');t978_showInnermenu(submenu,submenuHook)}}}
function t978_showInnermenu(submenu,submenuHook){if(!submenu)return;var content=submenu.querySelector('.t978__content');if(!content)return;var innermenu=content.querySelector('.t978__innermenu');var innermenuWrapper=content.querySelector('.t978__innermenu-wrapper[data-submenu-hook="'+submenuHook+'"]');var activeLink=content.querySelector('.t978__menu-link[data-menu-submenu-hook="'+submenuHook+'"]');var activeLinkWrapper=activeLink?activeLink.parentElement:null;if(window.innerWidth<=980){if(activeLinkWrapper&&innermenuWrapper){activeLinkWrapper.insertAdjacentElement('afterend',innermenuWrapper)}
t_onFuncLoad('t_submenublocks__slideDown',function(){t_submenublocks__slideDown(innermenuWrapper,300,function(){var overflowEvent=document.createEvent('Event');overflowEvent.initEvent('menuOverflow',!0,!0);submenu.dispatchEvent(overflowEvent);t_onFuncLoad('t_submenublocks__processSubmenuHeight',function(){var isBottomMenu=submenu.style.bottom;t_submenublocks__processSubmenuHeight(submenu,innermenuWrapper,'.t978','open',isBottomMenu)})})})}else{if(innermenu)innermenu.classList.add('t978__innermenu_show');if(innermenuWrapper)innermenuWrapper.classList.add('t978__innermenu_show');t_onFuncLoad('t_submenublocks__processSubmenuHeight',function(){var isBottomMenu=submenu.style.bottom;content.style.alignItems=isBottomMenu?'flex-end':'';t_submenublocks__processSubmenuHeight(submenu,innermenuWrapper,'.t978','open',isBottomMenu)})}}
function t978_hideInnermenu(submenu,submenuHook){if(!submenu)return;var content=submenu.querySelector('.t978__content');if(!content)return;var innermenu=content.querySelector('.t978__innermenu');var innermenuWrapper=content.querySelector('.t978__innermenu-wrapper[data-submenu-hook="'+submenuHook+'"]');var activeLink=content.querySelector('.t978__menu-link[data-menu-submenu-hook="'+submenuHook+'"]');if(activeLink){activeLink.classList.remove('t978__menu-activelink');activeLink.classList.remove('t978__menu-hoverlink')}
if(window.innerWidth<=980){t_onFuncLoad('t_submenublocks__slideUp',function(){t_submenublocks__slideUp(innermenu,300,function(){var overflowEvent=document.createEvent('Event');overflowEvent.initEvent('menuOverflow',!0,!0);submenu.dispatchEvent(overflowEvent)});t_submenublocks__slideUp(innermenuWrapper,300,function(){var overflowEvent=document.createEvent('Event');overflowEvent.initEvent('menuOverflow',!0,!0);submenu.dispatchEvent(overflowEvent)});content.style.height=''})}else{if(innermenu)innermenu.classList.remove('t978__innermenu_show');if(innermenuWrapper)innermenuWrapper.classList.remove('t978__innermenu_show');t_onFuncLoad('t_submenublocks__processSubmenuHeight',function(){t_submenublocks__processSubmenuHeight(submenu,innermenuWrapper,'.t978','close',!1)})}}
function t978_hideAllInnermenu(submenuLink){var menu=submenuLink.closest('.t978__menu');var links=menu.querySelectorAll('.t978__menu-link');Array.prototype.forEach.call(links,function(link){if(link.classList.contains('t978__menu-activelink')&&link!==submenuLink){var linkmenu=link.closest('.t978__tooltip-menu');var linkmenuHook=link.getAttribute('data-menu-submenu-hook');t978_hideInnermenu(linkmenu,linkmenuHook)}})}
function t978_resetSubmenu(submenuLinks,innermenuWrapper,innermenu){Array.prototype.forEach.call(submenuLinks,function(submenuLink){submenuLink.classList.remove('t978__menu-activelink');submenuLink.classList.remove('t978__menu-hoverlink')});if(window.innerWidth<=980){t_onFuncLoad('t_submenublocks__slideUp',function(){if(innermenu.length){Array.prototype.forEach.call(innermenu,function(menu){t_submenublocks__slideUp(menu,300,function(){var overflowEvent=document.createEvent('Event');overflowEvent.initEvent('menuOverflow',!0,!0);menu.dispatchEvent(overflowEvent)})})}
if(innermenuWrapper.length){Array.prototype.forEach.call(innermenuWrapper,function(wrapper){t_submenublocks__slideUp(wrapper,300,function(){var overflowEvent=document.createEvent('Event');overflowEvent.initEvent('menuOverflow',!0,!0);wrapper.dispatchEvent(overflowEvent)})})}})}else{if(innermenu.length){Array.prototype.forEach.call(innermenu,function(menu){menu.classList.remove('t978__innermenu_show')})}
if(innermenuWrapper.length){Array.prototype.forEach.call(innermenuWrapper,function(wrapper){wrapper.classList.remove('t978__innermenu_show')})}}}
function t696_onSuccess(form){t_onFuncLoad('t_forms__onSuccess',function(){t_forms__onSuccess(form)})}
function t898_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t898');if(!container)return;rec.setAttribute('data-animationappear','off');rec.style.opacity=1;var whatsApp=rec.querySelector('.t898__icon-whatsapp_wrapper');if(whatsApp){var whatsAppHref=whatsApp.getAttribute('href');if(whatsAppHref&&(whatsAppHref.indexOf('whatsapp://')>-1||whatsAppHref.indexOf('wa.me')>-1)){t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref)}}
if(window.lazy==='y'||document.getElementById('allrecords').getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){t_lazyload_update()})}}
function t898_removeExtraSymbolsFromWhatsApp(whatsApp,whatsAppHref){if(whatsAppHref&&whatsAppHref.indexOf('?text=')!==-1){var whatsAppHrefArr=whatsAppHref.split('?text=');whatsAppHrefArr[0]=whatsAppHrefArr[0].replace(/[\(\)+-]/g,'');whatsAppHref=whatsAppHrefArr[0]+'?text='+whatsAppHrefArr[1]}else{whatsAppHref=whatsAppHref.replace(/[\(\)+-]/,'')}
whatsApp.setAttribute('href',whatsAppHref)}
function t393_appearMenu(recId){if(window.innerWidth>980){var recs=document.querySelectorAll('.t393');var scrollTop=window.pageYOffset;var body=document.body;var html=document.documentElement;var documentHeight=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);for(var i=0;i<recs.length;i++){var rec=recs[i];var appearOffset=rec.getAttribute('data-appearoffset');var hideOffset=rec.getAttribute('data-hideoffset');if(appearOffset){if(appearOffset.indexOf('vh')>-1){appearOffset=Math.floor((window.innerHeight*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);if(scrollTop>=appearOffset){if(rec.style.visibility==='hidden'){rec.style.visibility='visible';t393__fadeIn(rec)}}else{rec.style.visibility='hidden'}}
if(hideOffset){if(hideOffset.indexOf('vh')>-1){hideOffset=Math.floor((window.innerHeight*(parseInt(hideOffset)/100)))}
hideOffset=parseInt(hideOffset,10);if(scrollTop+window.innerHeight>=documentHeight-hideOffset){if(rec.style.visibility!=='hidden'){rec.style.visibility='hidden'}}else if(appearOffset){if(scrollTop>=appearOffset){rec.style.visibility='visible'}}else{rec.style.visibility='visible'}}}}}
function t393__fadeIn(el){if(el.style.display==='block')return;var opacity=0;el.style.opacity=opacity;el.style.display='block';var timer=setInterval(function(){el.style.opacity=opacity;opacity+=0.1;if(opacity>=1.0){clearInterval(timer);el.style.display=''}},30)}
function t943_init(recId,previewMode){t943_showButton(recId,previewMode);window.addEventListener('scroll',t_throttle(function(){t943_showButton(recId,previewMode)},200))}
function t943_showButton(recId,previewMode){var rec=document.getElementById('rec'+recId);if(!rec)return;var button=rec.querySelector('.t943__btn');if(!button)return;var body=document.body;var html=document.documentElement;var windowWidth=window.innerWidth;var windowHeight=screen.height;var scrollHeight=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);var scrollTop=window.scrollY;var appearOffset=button.getAttribute('data-appearoffset');var hideOffset=button.getAttribute('data-hideoffset');if(previewMode&&appearOffset&&windowWidth<960){if(appearOffset.indexOf('vh')>-1){appearOffset=Math.floor((screen.height*(parseInt(appearOffset)/100)))}
appearOffset=parseInt(appearOffset,10);if(scrollTop>=appearOffset){button.classList.remove('t943__btn_hidden')}else{button.classList.add('t943__btn_hidden')}}
if(previewMode&&hideOffset&&windowWidth<960){if(hideOffset.indexOf('vh')>-1){hideOffset=Math.floor((screen.height*(parseInt(hideOffset)/100)))}
hideOffset=parseInt(hideOffset,10);if(scrollHeight-hideOffset<=windowHeight+scrollTop){button.classList.add('t943__btn_hidden')}else if(!appearOffset&&scrollTop>appearOffset){button.classList.remove('t943__btn_hidden')}}}
window.requestAnimationFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){window.setTimeout(callback,1000/60)}})();function t270_scroll(hash,offset){if(!hash)return;t270_checkLoad(hash,offset);var excludeHashes=['#!/tproduct/','#!/tab/','#opencart']
if(excludeHashes.includes(hash)){return!0}
var isHistoryChangeAllowed=window.location.hash!==hash;var wrapperBlock=document.querySelector('.t270');var dontChangeHistory=wrapperBlock?Boolean(wrapperBlock.getAttribute('data-history-disabled')):!1;t270_scrollToEl(hash,offset);if(!dontChangeHistory&&isHistoryChangeAllowed){if(history.pushState){history.pushState(null,null,hash)}else{window.location.hash=hash}
isHistoryChangeAllowed=!1}
return!0}
function t270_checkLoad(hash,offset){if(window.t270_loadChecked)return;var sliderWrappers=document.body.querySelectorAll('.t-slds__items-wrapper');if(!sliderWrappers.length)return;var lastWrapper=sliderWrappers[sliderWrappers.length-1];var sliderImgs=lastWrapper?lastWrapper.querySelectorAll('.t-slds__bgimg'):[];var lastImg=sliderImgs[sliderImgs.length-1];var imageUrl=lastImg?window.getComputedStyle(lastImg).backgroundImage:'';imageUrl=imageUrl.substring(5,imageUrl.length-2);var preloaderImg=document.createElement('img');preloaderImg.src=imageUrl?imageUrl:'';preloaderImg.addEventListener('load',function(){t270_scroll(hash,offset);window.t270_loadChecked=!0})}
function t270_scrollToEl(hash,offset){var SCROLL_DURATION_MS=500;var body=document.body;if(body.getAttribute('data-scroll'))return;var scrollTargetY=t270_getTarget(hash,offset);if(isNaN(scrollTargetY))return;var canSmoothScroll=window.CSS&&window.CSS.supports('scroll-behavior','smooth')&&'scrollBehavior' in document.documentElement.style;var userAgent=navigator.userAgent.toLowerCase();var isAndroid=userAgent.indexOf('android')!==-1;if(window.isMobile&&!isAndroid&&canSmoothScroll){body.setAttribute('data-scroll','true');window.scrollTo({left:0,top:scrollTargetY,behavior:'smooth'});setTimeout(function(){body.removeAttribute('data-scroll')},SCROLL_DURATION_MS)}else{t270_smoothScrollTo(scrollTargetY,SCROLL_DURATION_MS)}}
function t270_smoothScrollTo(targetY,duration=500){var body=document.body;var startY=window.scrollY||window.pageYOffset;var deltaY=targetY-startY;var startTime=performance.now();function easeInOutQuad(t){return Math.pow(t,2)}
function scroll(){var currentTime=performance.now();var elapsedTime=Math.min((currentTime-startTime)/duration,1);var ease=easeInOutQuad(elapsedTime);window.scrollTo(0,startY+deltaY*ease);if(elapsedTime<1){requestAnimationFrame(scroll)}else{body.removeAttribute('data-scroll');body.removeAttribute('data-scrollable');window.scrollTo(0,targetY)}}
body.setAttribute('data-scroll','true');body.setAttribute('data-scrollable','true');requestAnimationFrame(scroll)}
function t270_getTarget(hash,offset){var target;try{if(hash.substring(0,1)==='#'){target=document.getElementById(hash.substring(1))}else{target=document.querySelector(hash)}}catch(event){console.log('Exception t270: '+event.message);return}
if(!target){target=document.querySelector('a[name="'+hash.substr(1)+'"], div[id="'+hash.substr(1)+'"]');if(!target)return}
target=parseInt((target.getBoundingClientRect().top+window.pageYOffset)-offset,10);target=Math.max(target,0);return target}