1let lazyload;const initLazyload=(e,t)=>{lazyload=new LazyLoad({elements_selector:e,callback_loaded:e=>{"function"==typeof t&&t(e)}})},initObjectFitFallback=()=>{"objectFit"in document.documentElement.style||document.querySelectorAll("[data-object-fit]").forEach(e=>{var t,s,o=e.getAttribute("data-src")||e.getAttribute("src");o&&"img"===e.tagName.toLowerCase()&&(t=e.getAttribute("data-object-fit"),s=(e=e.parentElement)?e.parentElement:null,e=e&&e.classList.contains("responsive-media")?e:s)&&(s="cover"===t?"cover":"contain",e.style.backgroundImage=`url(${o})`,e.classList.add("fit-img","fit-img--"+s))})},onScreen=e=>{const t=window.pageYOffset+e.getBoundingClientRect().top,s=window.pageXOffset+e.getBoundingClientRect().left,o=window.pageXOffset+e.getBoundingClientRect().right,r=window.pageYOffset+e.getBoundingClientRect().bottom,i=window.pageYOffset,n=window.pageXOffset,a=window.pageXOffset+document.documentElement.clientWidth,l=window.pageYOffset+document.documentElement.clientHeight;return r>i&&t<l&&o>n&&s<a},offset=e=>{let t=0,s=0;if(e.offsetParent)for(;t+=e.offsetTop,s+=e.offsetLeft,e=e.offsetParent;);return{top:t,left:s}},initScroll=()=>{const e=".js-scroll-to-anchor",t=".js-scroll-top";var s=document.querySelectorAll(e);if(s.length){const o=new SmoothScroll,r=e=>{e.preventDefault();e=e.currentTarget.dataset.href||e.currentTarget.getAttribute("href"),e=document.querySelector(e);e&&o.animateScroll(e,0,{speed:500,speedAsDuration:!0,updateURL:!1})},i=(s.forEach(e=>{e.addEventListener("click",r)}),document.querySelector(t));i&&(i.addEventListener("click",e=>{e.preventDefault(),0<window.scrollY&&window.scrollTo({top:0,behavior:"smooth"})}),window.addEventListener("scroll",()=>{var e=window.scrollY,t=document.documentElement.clientHeight;i.classList.toggle("scroll-top-hidden",e<=t)}))}},initPopups=()=>{const r={POPUP_LINK:".js-popup-link",POPUP_CLOSE_BUTTON:".js-popup-close",SLIDER:".js-slider",OVERLAY:".js-popup-overlay",POPUP_VIDEO:".js-video-popup"},i={POPUP_SHOW:"show",BODY_NO_SCROLL:"no-scroll"};var e=document.querySelectorAll(r.POPUP_LINK),t=document.querySelectorAll(r.POPUP_CLOSE_BUTTON);const n=e=>{var t,s,e=e.currentTarget.closest("."+i.POPUP_SHOW);e&&(t=e.querySelectorAll(r.POPUP_VIDEO),s=e.querySelector(r.OVERLAY),e.classList.remove(i.POPUP_SHOW),document.querySelector("."+i.POPUP_SHOW)||document.body.classList.remove(i.BODY_NO_SCROLL),0<t.length&&t.forEach(e=>{e.pause(),e.currentTime=0}),s)&&s.removeEventListener("click",n)},s=e=>{e.preventDefault(),e.stopPropagation();var t,s,e=e.currentTarget,o=e.getAttribute("href");o&&(o=document.querySelector(o))&&(o=o.nextElementSibling)&&(s=o.querySelectorAll(r.POPUP_VIDEO),t=o.querySelector(r.OVERLAY),document.body.classList.add(i.BODY_NO_SCROLL),o.classList.add(i.POPUP_SHOW),o=o.querySelector(r.SLIDER),0<s.length&&s.forEach(e=>{var t=e.querySelector("source");t&&!e.currentSrc&&"none"!==getComputedStyle(e).display&&(t.src=t.dataset.src,e.load()),e.currentTime=0,e.play().catch(()=>{})}),t&&t.addEventListener("click",n),o)&&o.swiper&&(s=e.dataset.index?Number(e.dataset.index)-1:null,Number.isInteger(s)&&o.swiper.slideTo(s,0),o.swiper.update())};e.forEach(e=>{e.addEventListener("click",s)}),t.forEach(e=>{e.addEventListener("click",n)})},initHeroVideo=()=>{initLazyload(".js-video",e=>{e.play()})},initValueCounter=()=>{const o={VALUE_COUNTER_SELECTOR:".js-value-counter",VALUE_COUNTER_DONE_CLASS:"js-value-counter-done"},e=document.querySelectorAll(o.VALUE_COUNTER_SELECTOR);var t;e.length&&(t=()=>{setTimeout(()=>{e.forEach(e=>{var t,s;e.classList.contains(o.VALUE_COUNTER_DONE_CLASS)||onScreen(e)&&(s=(t=e.dataset.value.replace(",",".")).indexOf("."),new countUp.CountUp(e,+t,{separator:"",decimal:",",decimalPlaces:-1===s?0:t.length-s-1}).start(),e.classList.add(o.VALUE_COUNTER_DONE_CLASS))})},100)},window.addEventListener("scroll",t),t())},initWordUp=()=>{var e=()=>wordUp(document);wordUp(document),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e)},wordUp=(e=document)=>{const o={WORD_UP_SELECTOR:".word-up, .word-fade-in",WORD_UP_SLIDER_EARLY_CLASS:"word-up-sli
1der-early",SWIPER_CONTAINER_INITIALIZED:"swiper-container-initialized",SWIPER_SLIDE_VISIBLE:"swiper-slide-visible"},t=e.querySelectorAll(o.WORD_UP_SELECTOR);setTimeout(()=>{t.forEach(e=>{var t=e.getBoundingClientRect(),s=e.classList.contains(o.WORD_UP_SLIDER_EARLY_CLASS);e.closest(o.SWIPER_CONTAINER_INITIALIZED)?(s=!!e.closest(o.SWIPER_SLIDE_VISIBLE)&&(s?.9*document.documentElement.clientHeight>=t.top:t.bottom<=document.documentElement.clientHeight-5),e.style.opacity=s?1:0,e.style.transform=s?"translateY(0) scale(1)":"translateY(30px) scale(0.999)"):.9*document.documentElement.clientHeight>=t.top&&(e.style.opacity=1,e.style.transform="translateY(0) scale(1)")})},5)},initScripts=()=>{const o={CALLTOUCH_LINK:'[href^="#calltouch"]',SLIDER_HERO_BUTTONS_EVENTS:"[slider-hero-buttons-events]",SLIDER_HERO_BUTTON:"a.btn",SLIDER_HERO_SLIDE:".swiper-slide",SLIDER_HERO_SLIDE_TITLE:"[data-hero-title]"};document.querySelectorAll(o.CALLTOUCH_LINK).forEach(t=>{t.addEventListener("click",e=>{e.preventDefault(),window.ct&&(e=1<(e=t.getAttribute("href").split("-")).length?e[1]:null,window.ct("modules","widgets","openExternal",e?"callback_"+e:"callback","callback"))})}),document.querySelectorAll(o.SLIDER_HERO_BUTTONS_EVENTS).forEach(e=>{e.querySelectorAll(o.SLIDER_HERO_BUTTON).forEach(s=>{s.addEventListener("click",()=>{var e,t=s.closest(o.SLIDER_HERO_SLIDE);t&&(e=parseInt(t.dataset.swiperSlideIndex),t=t.querySelector(o.SLIDER_HERO_SLIDE_TITLE)?.textContent,isNaN(e)||(window._mtm=window._mtm||[],window._mtm.push({event:"customEvent",eventCategory:"button",eventAction:"click",eventLabel:"hero-banner-"+(e+1),eventBanner:t})))})})})},initCalltouch=()=>{window.ct&&["calltouch-total","calltouch-service"].forEach(t=>{var e=document.querySelectorAll(`[href="${t}"]`);e.length&&e.forEach(e=>{e.addEventListener("click",e=>{e.preventDefault(),window.ct("modules","widgets","openExternal",t)})})})};function debounce(t,s=100){let o;return function(...e){clearTimeout(o),o=setTimeout(()=>{clearTimeout(o),t.apply(this,e)},s)}}const isMobile=()=>/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(navigator.userAgent),initHeader=()=>{const o={BURGER:"#js-header-burger",MENU:"#js-menu",MENU_ITEM:".js-menu-item",MENU_LINK_SUBMENU:".js-menu-link-submenu",MENU_DROPDOWN:".js-menu-dropdown",MENU_DROPDOWN_BACK:".js-menu-dropdown-back",HEADER:"header",PAGE_NAV_IN:"#js-page-nav-in"},n={BURGER_OPEN:"header__burger_open",MENU_OPEN:"menu_open",MENU_CLOSE:"menu_close",MENU_LINK_ACTIVE:"menu__link_active",MENU_DROPDOWN_OPEN:"menu-dropdown_open",MENU_DROPDOWN_CLOSE:"menu-dropdown_close",BODY_NO_SCROLL:"no-scroll",HEADER_HIDDEN:"header_hidden",HEADER_TRANSPARENT:"header_transparent",PAGE_NAV_FIXED:"page-nav__in_fixed"};const a=window.matchMedia("(min-width: 1024px)"),l=document.querySelector(o.HEADER),c=document.querySelector(o.BURGER),e=document.querySelector(o.MENU);if(!l)return;const d=l.dataset.transparent,E=document.querySelector(o.PAGE_NAV_IN);let u=window.scrollY||document.documentElement.scrollTop;window.addEventListener("scroll",()=>{let e=window.scrollY||document.documentElement.scrollTop;var t=Array.from(document.querySelectorAll("."+n.MENU_DROPDOWN_OPEN)),s=l.offsetHeight,o=(e<0&&(e=0),!t.length),r=!c.classList.contains(n.BURGER_OPEN),i=E&&E.classList.contains(n.PAGE_NAV_FIXED);o&&r&&(e>u?(l.classList.add(n.HEADER_HIDDEN),l.style.top=`-${s||0}px`):(d&&l.classList.remove(n.HEADER_TRANSPARENT),!a.matches&&i||(l.classList.remove(n.HEADER_HIDDEN),l.style.top=""))),!d||e||t.length||l.classList.add(n.HEADER_TRANSPARENT),u=e});if(!c||!e)return;const t=Array.from(document.querySelectorAll(o.MENU_LINK_SUBMENU)),s=Array.from(document.querySelectorAll(o.MENU_DROPDOWN));var r=Array.from(document.querySelectorAll(o.MENU_DROPDOWN_BACK));c.addEventListener("click",()=>{c.classList.contains(n.BURGER_OPEN)?(c.classList.remove(n.BURGER_OPEN),e.classList.remove(n.MENU_OPEN),e.classList.add(n.MENU_CLOSE),document.body.classList.remove(n.BODY_NO_SCROLL),m(),s.forEach(e=>e.classList.remove(n.MENU_DROPDOWN_CLOSE))):(l.classList.remove(n.HEADER_TRANSPARENT),c.classList.add(n.BURGER_OPEN),e.classList.remove(n.MENU_CLOSE),e.classList.add(n.MENU_OPEN),document.body.classList.add(n.BODY_NO_SCROLL))});const i=e=>{e.preventDefault();var t,e=e.currentTarget,s=e.closest(o.MENU_ITEM).querySelector(o.MENU_DROPDOWN);s&&(t=!s.classList.contains(n.MENU_DROPDOWN_OPEN),m(),t)&&(l.classList.remove(n.HEADER_TRANSPARENT),s.classList.remove(n.MENU_DROPDOWN_CLOSE),s.classList.add(n.MENU_DROPDOWN_OPEN),e.classList.add(n.MENU_LINK_ACTIVE))}
1,S=(t.forEach(e=>e.addEventListener("click",i)),e=>{e.preventDefault();var e=e.currentTarget.closest(o.MENU_ITEM),t=e.querySelector(o.MENU_LINK_SUBMENU),e=e.querySelector(o.MENU_DROPDOWN);t.classList.remove(n.MENU_LINK_ACTIVE),e.classList.remove(n.MENU_DROPDOWN_OPEN),e.classList.add(n.MENU_DROPDOWN_CLOSE)}),m=(r.forEach(e=>e.addEventListener("click",S)),()=>{var e;t.forEach(e=>e.classList.remove(n.MENU_LINK_ACTIVE)),s.forEach(e=>{e.classList.contains(n.MENU_DROPDOWN_OPEN)&&(e.classList.remove(n.MENU_DROPDOWN_OPEN),e.classList.add(n.MENU_DROPDOWN_CLOSE))}),e=window.scrollY||document.documentElement.scrollTop,d&&!e&&l.classList.add(n.HEADER_TRANSPARENT)});document.body.addEventListener("click",e=>{!a.matches||e.target.closest(o.MENU_DROPDOWN)||e.target.closest(o.MENU_LINK_SUBMENU)||(document.body.classList.remove(n.BODY_NO_SCROLL),m())}),a.addEventListener("change",()=>{m(),s.forEach(e=>e.classList.remove(n.MENU_DROPDOWN_CLOSE)),c.classList.remove(n.BURGER_OPEN),e.classList.remove(n.MENU_OPEN),e.classList.remove(n.MENU_CLOSE),document.body.classList.remove(n.BODY_NO_SCROLL)})},initSlider=()=>{const t={SLIDER:".js-slider",SWIPER_SLIDE:".swiper-slide",SWIPER_PAGINATION:".swiper-pagination",SWIPER_BUTTON_NEXT:".swiper-button-next",SWIPER_BUTTON_PREV:".swiper-button-prev"},r=["model-range","hero","hero3","promo","model"];var e=document.querySelectorAll(t.SLIDER);e.length&&e.forEach(e=>{const s=e.querySelectorAll(t.SWIPER_SLIDE),o=e.dataset.layout;new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:r.includes(o),preloadImages:!1,autoplay:("hero"===o||"hero3"===o)&&{delay:5e3,disableOnInteraction:!1},threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(t.SWIPER_PAGINATION),type:"bullets",clickable:!0,renderBullet:(e,t)=>{return`<div class="${t}"> 2 <span>${"halfheight"===o?"":s[e].dataset.title}</span> 3 </div>`},renderFraction:(e,t)=>`<span class="${e}"></span> из <span class="${t}"></span>`},navigation:{nextEl:e.querySelector(t.SWIPER_BUTTON_NEXT),prevEl:e.querySelector(t.SWIPER_BUTTON_PREV)},on:{activeIndexChange:()=>{wordUp(e)}},watchSlidesVisibility:!0})})},initSliderFlow=()=>{const o={SLIDER:".js-slider-flow",SWIPER_PAGINATION:".swiper-pagination"};const r=window.matchMedia("(min-width: 1024px)");var e=document.querySelectorAll(o.SLIDER);e.length&&e.forEach(e=>{let t;var s=()=>{r.matches?t&&(t.destroy(!0,!0),t=void 0):t=t||new Swiper(e,{slidesPerView:1,slidesPerGroup:1,breakpoints:{768:{slidesPerView:2,slidesPerGroup:2}},spaceBetween:40,preloadImages:!1,threshold:10,pagination:{el:e.querySelector(o.SWIPER_PAGINATION),type:"bullets",clickable:!0},on:{activeIndexChange:()=>{wordUp(e)}},watchSlidesVisibility:!0})};r.addEventListener("change",s),s()})},initSliderModel=()=>{const t={SLIDER:".js-slider-model",SWIPER_PAGINATION:".swiper-pagination",SWIPER_BUTTON_NEXT:".swiper-button-next",SWIPER_BUTTON_PREV:".swiper-button-prev"};var e=document.querySelectorAll(t.SLIDER);e.length&&e.forEach(e=>{swiper=new Swiper(e,{grabCursor:!0,effect:"creative",creativeEffect:{prev:{translate:["-100%",0,-400]},next:{translate:["100%",0,-400]}},autoHeight:!0,slidesPerView:1,slidesPerGroup:1,loop:!0,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(t.SWIPER_PAGINATION),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(t.SWIPER_BUTTON_NEXT),prevEl:e.querySelector(t.SWIPER_BUTTON_PREV)},on:{activeIndexChange:()=>{wordUp(e)}},watchSlidesVisibility:!0})})},initSliderSpecifications=()=>{const e={SLIDER:".js-slider-specifications",SLIDER_TITLE:".js-slider-specifications-title",SWIPER_BUTTON_NEXT:".swiper-button-next",SWIPER_BUTTON_PREV:".swiper-button-prev"};var o=document.querySelector(e.SLIDER),r=document.querySelector(e.SLIDER_TITLE);if(o&&r){let t,s;{t=new Swiper(r,{slidesPerView:"auto",slidesPerGroup:1,grabCursor:!0,autoplay:{delay:4e3,disableOnInteraction:!1},navigation:{nextEl:o.querySelector(e.SWIPER_BUTTON_NEXT),prevEl:o.querySelector(e.SWIPER_BUTTON_PREV)}}),s=new Swiper(o,{autoHeight:!0,slidesPerView:1,slidesPerGroup:1,grabCursor:!0,cursor:"pointer",spaceBetween:40,autoplay:{delay:4e3,disableOnInteraction:!1}});const i=e=>{t.slideToLoop(e),s.slideToLoop(e)};t.on("slideChange",()=>i(t.realIndex)),s.on("slideChange",()=>i(s.realIndex))}}},initSliderhalfheight=()=>{const t={SLIDER:".js-slider-halfheight",SWIPER_PAGINATION:".swiper-pagination"};var e=document.querySelectorAll(t.SLIDER);
3e.length&&e.forEach(e=>{swiper=new Swiper(e,{grabCursor:!0,autoplay:{delay:4e3,disableOnInteraction:!1},effect:"creative",creativeEffect:{prev:{translate:["-100%",0,-400]},next:{translate:["100%",0,-400]}},autoHeight:!0,slidesPerView:1,slidesPerGroup:1,loop:!0,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(t.SWIPER_PAGINATION),type:"bullets",clickable:!0},watchSlidesVisibility:!0})})},initSliderLinks=()=>{const n={SLIDER:".js-slider-links",ITEM:".js-flow-links-item",VIDEO:".js-flow-links-video",SWIPER_PAGINATION:".swiper-pagination",SWIPER_SLIDE_ACTIVE:".swiper-slide-active"};var e=document.querySelectorAll(n.SLIDER);const a=window.matchMedia("(min-width: 1024px)");e.length&&e.forEach(t=>{var e=t.querySelectorAll(n.ITEM);const s=t.querySelectorAll(n.VIDEO);let o;const r=e=>{if(a.matches){const t=e.currentTarget.querySelector(n.VIDEO);t&&(s.forEach(e=>{e!==t&&(e.currentTime=0,e.pause())}),t.paused)&&(t.muted=!0,t.play())}},i=e=>{a.matches&&(e=e.currentTarget.querySelector(n.VIDEO))&&(e.currentTime=0,e.pause())};e.forEach(e=>e.addEventListener("mouseenter",r)),e.forEach(e=>e.addEventListener("mouseleave",i));e=()=>{a.matches?o&&(o.destroy(!0,!0),o=void 0,initLazyload(n.VIDEO)):o=o||new Swiper(t,{slidesPerView:1,slidesPerGroup:1,breakpoints:{768:{slidesPerView:2,slidesPerGroup:1}},loop:!0,spaceBetween:40,preloadImages:!1,threshold:10,pagination:{el:t.querySelector(n.SWIPER_PAGINATION),type:"bullets",clickable:!0},on:{afterInit:()=>{initLazyload(n.SWIPER_SLIDE_ACTIVE+n.VIDEO,e=>{e.play(),e.currentTime=0})},transitionStart:()=>{t.querySelectorAll(n.VIDEO).forEach(e=>{e.currentTime=0,e.pause()})},transitionEnd:()=>{var e=t.querySelector(n.SWIPER_SLIDE_ACTIVE+n.VIDEO);e&&e.classList.contains("loaded")?(e.play(),e.currentTime=0):initLazyload(n.SWIPER_SLIDE_ACTIVE+n.VIDEO,e=>{e.currentTime=0,e.play()})},activeIndexChange:()=>{wordUp(t)}},watchSlidesVisibility:!0}),s.forEach(e=>{e.currentTime=0,e.pause()})};a.addEventListener("change",e),e()})},initEventsSlider=()=>{const t={SLIDER:".js-events-slider",SWIPER_PAGINATION:".swiper-pagination",SWIPER_BUTTON_NEXT:".swiper-button-next",SWIPER_BUTTON_PREV:".swiper-button-prev"};var e=document.querySelectorAll(t.SLIDER);e.length&&e.forEach(e=>{new Swiper(e,{slidesPerView:1,slidesPerGroup:1,grabCursor:!0,loop:!0,preloadImages:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(t.SWIPER_PAGINATION),type:"fraction",clickable:!0,renderFraction:(e,t)=>`<span class="${e}"></span> / <span class="${t}"></span>`},navigation:{nextEl:e.querySelector(t.SWIPER_BUTTON_NEXT),prevEl:e.querySelector(t.SWIPER_BUTTON_PREV)},on:{activeIndexChange:()=>{wordUp(e)}}})})},initSliderFlowIconIndex=()=>{const t={SLIDER:".js-slider-flow-icon-index",SWIPER_PAGINATION:".swiper-pagination"};var e=document.querySelectorAll(t.SLIDER);e.length&&e.forEach(e=>{new Swiper(e,{slidesPerView:1,spaceBetween:40,preloadImages:!1,threshold:10,breakpoints:{[768]:{slidesPerView:3,enabled:!1}},pagination:{el:e.querySelector(t.SWIPER_PAGINATION),type:"bullets",clickable:!0},watchSlidesVisibility:!0})})},initSliderFlowFree=()=>{var e=document.querySelectorAll(".js-slider-flow-free");const o=window.matchMedia("(min-width: 1024px)");e.length&&e.forEach(e=>{let t;var s=()=>{o.matches?t&&(t.destroy(!0,!0),t=void 0):t=t||new Swiper(e,{slidesPerView:"auto",breakpoints:{1024:{spaceBetween:40}},spaceBetween:12,preloadImages:!1,threshold:10,watchSlidesVisibility:!0})};o.addEventListener("change",s),s()})},initSliderPriceLists=()=>{const o={SLIDER:".js-slider-pricelists",SWIPER_PAGINATION:".swiper-pagination"};var e=document.querySelectorAll(o.SLIDER);const r=window.matchMedia("(min-width: 1024px)");e.length&&e.forEach(e=>{let t;var s=()=>{r.matches?t&&(t.destroy(!0,!0),t=void 0):t=t||new Swiper(e,{slidesPerView:1,spaceBetween:8,threshold:10,loop:!0,breakpoints:{768:{slidesPerView:2,spaceBetween:40},1200:{slidesPerView:3,spaceBetween:40}},pagination:{el:e.querySelector(o.SWIPER_PAGINATION),type:"bullets",clickable:!0}})};r.addEventListener("change",s),s()})},initGallery=()=>{const E={BLOCK:".js-gallery",SLIDER:".js-gallery-slider",POPUP_LINK:".js-gallery-link",POPUP:".js-gallery-popup",POPUP_CLOSE:".js-gallery-popup-close",POPUP_TITLE:".js-gallery-popup-title",POPUP_SLIDER:".js-gallery-popup-slider",SWIPER_PAGINATION:".swiper-pagination",SWIPER_BUTTON_NEXT:".swiper-button-next",SWIPER_BUTTON_PREV:".swiper-button-prev",SWIPER_SLIDE_ACTIVE:".swiper-slide-active"},u={POPUP_OPEN:"gallery-popup_show"};var e=document.querySelectorAll(E.BLOCK);
3e.length&&e.forEach(e=>{const t=window.matchMedia("(min-width: 768px)"),s=e.querySelector(E.SLIDER);let o;var r=()=>{t.matches?o&&(o.destroy(!0,!0),o=void 0):o=o||new Swiper(s,{slidesPerView:1,slidesPerGroup:1,loop:!1,spaceBetween:0,pagination:{el:e.querySelector(E.SWIPER_PAGINATION),clickable:!0,renderBullet:(e,t)=>`<span class="${t}">${e+1}</span>`},navigation:{nextEl:e.querySelector(E.SWIPER_BUTTON_NEXT),prevEl:e.querySelector(E.SWIPER_BUTTON_PREV)}})},r=(t.addEventListener("change",r),r(),e.querySelectorAll(E.POPUP_LINK));const i=e.querySelector(E.POPUP);var n=e.querySelector(E.POPUP_CLOSE);const a=e.querySelector(E.POPUP_TITLE),l=e.querySelector(E.POPUP_SLIDER);let c;const d=e=>{e.preventDefault(),t.matches&&(i.classList.add(u.POPUP_OPEN),e=e.currentTarget,e=Number(e.dataset.index)||0,c.slideTo(e,0))};r.forEach(e=>e.addEventListener("click",d)),n.addEventListener("click",()=>i.classList.remove(u.POPUP_OPEN));c=new Swiper(l,{slidesPerView:1,slidesPerGroup:1,loop:!1,spaceBetween:0,preloadImages:!1,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:l.querySelector(E.SWIPER_PAGINATION),clickable:!0,renderBullet:(e,t)=>`<span class="${t}">${e+1}</span>`},navigation:{nextEl:l.querySelector(E.SWIPER_BUTTON_NEXT),prevEl:l.querySelector(E.SWIPER_BUTTON_PREV)},on:{slideChangeTransitionEnd:()=>{var e=l.querySelector(E.SWIPER_SLIDE_ACTIVE);e&&(a.innerText=e.dataset.title||"")}}})})},initLatestNews=()=>{const i={BLOCK:".js-latest-news",SLIDER:".js-latest-news-slider",PAGINATION:".latest-news__pagination"};var e=document.querySelectorAll(i.BLOCK);e.length&&e.forEach(e=>{const t=window.matchMedia("(min-width: 768px)"),s=e.querySelector(i.SLIDER);let o;var r=()=>{t.matches?o&&(o.destroy(!0,!0),o=void 0):o=o||new Swiper(s,{slidesPerView:1,slidesPerGroup:1,loop:!0,autoHeight:!0,spaceBetween:0,pagination:{el:e.querySelector(i.PAGINATION),clickable:!0},lazy:{loadPrevNext:!0,loadOnTransitionStart:!0}})};t.addEventListener("change",r),r()})},initAccordion=()=>{const o={BLOCK:".js-accordion",ITEM:".js-accordion-item",HEADER:".js-accordion-header",BODY:".js-accordion-body",CONTENT:".js-accordion-content"},r={OPENED:"is-opened"};var e=document.querySelectorAll(o.BLOCK);e.length&&e.forEach(e=>{e=e.querySelectorAll(o.HEADER);const t=e=>{var e=e.currentTarget,t=e.closest(o.ITEM),s=t.querySelector(o.BODY),t=t.querySelector(o.CONTENT);e.classList.contains(r.OPENED)?(e.classList.remove(r.OPENED),s.removeAttribute("style")):(e.classList.add(r.OPENED),s.style.height=t.offsetHeight+"px")};e.forEach(e=>{e.addEventListener("click",t)})})},initAccordionTabs=()=>{const r={BLOCK:".js-tabs",HEADER_ITEM:".js-tabs-header-item",CONTENT_ITEM:".js-tabs-content-item",SWIPER:".swiper-container"},i={HEADER_ITEM_ACTIVE:"web_block_accordion-tabs__header-item_active",CONTENT_ITEM_ACTIVE:"web_block_accordion-tabs__content-item_active"};var e=document.querySelectorAll(r.BLOCK);e.length&&e.forEach(e=>{const t=Array.from(e.querySelectorAll(r.HEADER_ITEM)),o=e.querySelectorAll(r.CONTENT_ITEM),s=e=>{e=e.currentTarget;const s=t.indexOf(e);t.forEach((e,t)=>{e.classList.toggle(i.HEADER_ITEM_ACTIVE,t===s)}),o.forEach((e,t)=>{t===s?(e.classList.add(i.CONTENT_ITEM_ACTIVE),(t=e.querySelector(r.SWIPER))&&t.swiper&&t.swiper.update()):e.classList.remove(i.CONTENT_ITEM_ACTIVE)})};t.forEach(e=>{e.addEventListener("click",s)})})},initAccordionImages=()=>{const n={BLOCK:".js-accordion-images",ITEM:".js-accordion-images-item",ACCORDION_HEADER:".js-accordion-images-header",BODY:".js-accordion-images-body",CONTENT:".js-accordion-images-content",IMAGE:".js-accordion-images-image"},a={ACTIVE:"active",CONTENT_IMG:"web_block_media-accordion__accordion-content-img",RESPONSIVE_MEDIA:"responsive-media"};var e=document.querySelectorAll(n.BLOCK);if(e.length){const l=(e,t)=>{var s=e.querySelector(n.BODY);e.classList.remove(a.ACTIVE),s.style.height="",t?.classList.remove(a.ACTIVE)},c=(e,t,s)=>{e=e[s];const o=t[s],r=e.querySelector(n.CONTENT),i=e.querySelector(n.BODY);e.classList.add(a.ACTIVE),requestAnimationFrame(()=>{i.style.height=r.offsetHeight+"px",o?.classList.add(a.ACTIVE)})};
3e.forEach(e=>{var t=e.querySelectorAll(n.ACCORDION_HEADER);const r=Array.from(e.querySelectorAll(n.ITEM)),i=Array.from(e.querySelectorAll(n.IMAGE)),s=r.findIndex(e=>e.classList.contains(a.ACTIVE));e=r.map((o,r)=>new Promise(e=>{var t,s;i[r]?((t=i[r].cloneNode(!0)).className="",t.classList.add(a.CONTENT_IMG,a.RESPONSIVE_MEDIA),(s=o.querySelector(n.CONTENT)).insertBefore(t,s.firstChild),requestAnimationFrame(()=>e())):e()}));Promise.all(e).then(()=>{requestAnimationFrame(()=>{-1!==s&&c(r,i,s)})}),t.forEach((e,o)=>{e.addEventListener("click",()=>{var e,s,t;e=r,s=i,e[t=o].classList.contains(a.ACTIVE)||(e.forEach((e,t)=>l(e,s[t])),c(e,s,t))})}),window.addEventListener("resize",debounce(()=>{var e,t;(e=(e=r).find(e=>e.classList.contains(a.ACTIVE)))&&(t=e.querySelector(n.CONTENT),e.querySelector(n.BODY).style.height=t.offsetHeight+"px")},200))})}},initDisclaimer=()=>{const i={BLOCK:".js-disclaimer-wrapper",CONTAINER:".js-disclaimer-container",BUTTON:".js-disclaimer-toggle-button",BUTTON_TEXT:".js-disclaimer-toggle-button-text",CONTENT:".js-disclaimer-content"},n={OPENED:"opened",HIDDEN_BTN:"hidden"};var e=document.querySelectorAll(i.BLOCK);if(e.length)e.forEach(o=>{const r=o.querySelector(i.BUTTON);var e,t=o.querySelector(i.CONTENT),s=o.querySelector(i.CONTAINER);e=r,t.scrollHeight>s.offsetHeight&&e.classList.remove(n.HIDDEN_BTN),r.addEventListener("click",()=>{var e,t,s;e=o,t=r,e=e.querySelector(i.CONTAINER),s=t.querySelector(i.BUTTON_TEXT),e.classList.contains(n.OPENED)?(e.classList.remove(n.OPENED),t.classList.remove(n.OPENED),s.innerHTML="ÐодÑобнее"):(e.classList.add(n.OPENED),t.classList.add(n.OPENED),s.innerHTML="СкÑÑÑÑ")})})},initRating=()=>{const i={ITEM:".js-rating-item",CONTAINER:".js-rating-container",STAR:".js-rating-star"},n={FILL:"fill",HALF:"half"};var e=document.querySelectorAll(i.ITEM);e.length&&e.forEach(e=>{var t=e.querySelector(i.CONTAINER),e=e.querySelectorAll(i.STAR),t=parseFloat(t.dataset.rating),s=Math.ceil(2*t)/2;const o=t%1<=.49,r=o?Math.floor(s):Math.ceil(s);e.forEach((e,t)=>{e.classList.remove(n.FILL,n.HALF),t<r?e.classList.add(n.FILL):o&&t===r&&e.classList.add(n.HALF)})})},initModelMenu=()=>{const m={BLOCK:".js-model-menu",MENU_BTN:".js-model-menu-btn",MENU_LIST:".js-model-menu-list",MENU_ITEM:".js-model-menu-item",MENU_LINK:".js-model-menu-link",MORE_BTN:".js-model-menu-more-btn",MENU_LIST_HIDDEN:".js-model-menu-hidden-list",HEADER:".header"},p={HEADER_HIDDEN:"header_hidden",STICKY:"sticky",ACTIVE:"active"};var e=document.querySelectorAll(m.BLOCK);e.length&&e.forEach(o=>{const t=o.querySelector(m.MENU_LIST),s=o.querySelector(m.MENU_BTN),i=o.querySelector(m.MORE_BTN),n=o.querySelector(m.MENU_LIST_HIDDEN),a=Array.from(o.querySelectorAll(m.MENU_ITEM)),r=document.querySelector(m.HEADER),l=o.getBoundingClientRect().top+window.pageYOffset,c=new SmoothScroll;const e=()=>{var e=window.scrollY||document.documentElement.scrollTop,t=r?r.offsetHeight:0;e>l?(o.classList.add(p.STICKY),o.style.top=t+"px"):(o.classList.remove(p.STICKY),o.style.top="0px"),r.classList.contains(p.HEADER_HIDDEN)?(o.classList.add(p.HEADER_HIDDEN),o.style.top="0px"):o.classList.remove(p.HEADER_HIDDEN)},d=()=>{const s=window.innerHeight,o=t.offsetHeight;a.forEach(e=>{var t=e.querySelector(m.MENU_LINK).getAttribute("href").substring(1),t=document.getElementById(t);t&&(t=t.getBoundingClientRect()).top<=.4*s&&t.bottom>=.6*o&&(a.forEach(e=>e.classList.remove(p.ACTIVE)),e.classList.add(p.ACTIVE))})},E=()=>n.classList.toggle(p.ACTIVE),u=()=>{const o=t.offsetWidth,r=[];a.reduce((e,t)=>{var s=window.getComputedStyle(t),s=parseFloat(s.width)+parseFloat(s.marginLeft)+parseFloat(s.marginRight),e=e+Math.floor(s);return e>o&&(r.push(t.cloneNode(!0)),t.style.display="none"),e},0),0<r.length?(i.classList.add(p.ACTIVE),n.innerHTML="",r.forEach(e=>n.appendChild(e)),i.addEventListener("click",E),document.addEventListener("click",e=>{t.contains(e.target)||i.contains(e.target)||n.classList.remove(p.ACTIVE)},{once:!0})):(i.classList.remove(p.ACTIVE),n.innerHTML="")},S=()=>{document.querySelectorAll(m.MENU_LINK).forEach(e=>{var t=e.getAttribute("href").substring(1);const s=document.getElementById(t);e.addEventListener("click",e=>{var t;e.preventDefault(),e=s,t=o.offsetHeight+(e.getBoundingClientRect().top<0)*r.offsetHeight,5<Math.abs(e.getBoundingClientRect().top-t)&&c.animateScroll(e,0,{speed:500,speedAsDuration:!0,updateURL:!1,offset:t})})})};d(),u(),e(),S(),window.addEventListener("scroll",()=>{e(),d()}),s.addEventListener("click",()=>{t.classList.contains(p.ACTIVE)?(s.classList.remove(p.ACTIVE),t.classList.remove(p.ACTIVE)):(s.classList.add(p.ACTIVE),t.classList.add(p.ACTIVE))}
3),a.forEach(e=>{e.addEventListener("click",()=>{s.classList.remove(p.ACTIVE),t.classList.remove(p.ACTIVE)})}),window.addEventListener("resize",()=>{a.forEach(e=>e.style.display=""),u(),i.removeEventListener("click",E),i.addEventListener("click",E),S()})})},initModelFeatures=()=>{const m={BLOCK:".js-model-features",SLIDER:".js-model-features-slider",IMAGE:".js-model-features-image",CARD:".js-model-features-card",VIDEO:".js-video-model-features",SWIPER_PAGINATION:".swiper-pagination"},p={ACTIVE:"active"};var e=document.querySelectorAll(m.BLOCK);e.length&&e.forEach(e=>{const t=window.matchMedia("(min-width: 1024px)"),o=e.querySelector(m.SLIDER),r=e.querySelectorAll(m.CARD),s=e.querySelectorAll(m.IMAGE),i=e.querySelectorAll(m.VIDEO);let n=null,a,l=!0;const c=e=>{var t;e&&e!==n||(i.forEach(e=>{e!==n&&(e.currentTime=0,e.pause())}),n&&(t=(e=n).getBoundingClientRect().top+e.offsetHeight/2,e.classList.contains("loaded"))&&(l=0<t&&t<document.documentElement.clientHeight?(e.paused&&(e.currentTime<e.duration||l)&&(e.play().catch(()=>{}),e.currentTime===e.duration)&&(e.currentTime=0),!1):(e.pause(),!0)))},d=t=>{r.forEach(e=>{e.dataset.index===t?(e.classList.add(p.ACTIVE),u(t),c()):e.classList.remove(p.ACTIVE)})},E=e=>{e=e.currentTarget.dataset.index;d(e)},u=t=>{s.forEach(e=>{e.dataset.index===t?(e.classList.add(p.ACTIVE),n=e.querySelector(m.VIDEO)):e.classList.remove(p.ACTIVE)})};var S=()=>{var s;t.matches?(a&&(a.destroy(!0,!0),a=void 0),s=0,r.forEach((e,t)=>{e.addEventListener("click",E),e.classList.remove(p.ACTIVE),t===s&&(t=e.dataset.index,e.classList.add(p.ACTIVE),u(t))})):(a=a||new Swiper(o,{slidesPerView:1,slidesPerGroup:1,breakpoints:{768:{slidesPerView:2.13,slidesPerGroup:1}},loop:!0,slideToClickedSlide:!0,autoplay:{delay:6e3,disableOnInteraction:!1},preloadImages:!1,threshold:10,spaceBetween:16,watchSlidesVisibility:!0,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(m.SWIPER_PAGINATION),type:"bullets",clickable:!0},on:{init:e=>{e.el.style.setProperty("--delay",e.params.autoplay.delay);var e=e.slides[e.activeIndex].querySelector(m.CARD),t=e.dataset.index;u(t),e.classList.add(p.ACTIVE)},slideChange:e=>{e.slides[e.previousIndex].querySelector(m.CARD).classList.remove(p.ACTIVE);var e=e.slides[e.activeIndex].querySelector(m.CARD),t=e.dataset.index;u(t),c(),e.classList.add(p.ACTIVE)}}}),r.forEach(e=>e.removeEventListener("click",E)))},S=(t.addEventListener("change",S),S(),initLazyload(m.VIDEO,()=>c()),()=>c());window.addEventListener("scroll",S),window.addEventListener("resize",S)})},initModelRangeColors=()=>{const i={BLOCK:".js-model-range-colors-block",SLIDER:".js-model-range-colors-slider",PAGINATION_SLIDER:".js-model-range-colors-pagination",SLIDER_MODEL:".js-model-range-model",SLIDER_MODEL_ITEM:".js-model-range-model-item",SLIDER_COLORS:".js-model-range-colors",COLOR:".js-model-range-colors",COLORS_NAME:".js-model-range-colors-name",MAIN_SWIPER_PAGINATION:".main-swiper-pagination",SWIPER_PAGINATION:".swiper-pagination",SWIPER_SLIDE:".swiper-slide",SWIPER_NEXT:".swiper-button-next",SWIPER_PREV:".swiper-button-prev"};var e=document.querySelectorAll(i.BLOCK);const n=window.matchMedia("(min-width: 1024px)");if(!e.length)return;const a=s=>{const r=s.querySelector(i.SLIDER_MODEL),t=e=>{var e=e.slides[e.activeIndex].querySelector(i.SLIDER_MODEL_ITEM).getAttribute("data-color-name"),t=s.querySelector(i.COLORS_NAME);t&&e&&(t.textContent=e)};new Swiper(r,{slidesPerView:1,threshold:10,allowTouchMove:!1,speed:800,pagination:{el:s.querySelector(i.SWIPER_PAGINATION),type:"bullets",clickable:!0,renderBullet:(e,t)=>{var e=r.querySelectorAll(i.SLIDER_MODEL_ITEM)[e],s=e.getAttribute("data-color"),e=e.getAttribute("data-subcolor"),o="#ffffff"===s.toLowerCase()||"white"===s.toLowerCase();return` 4 <div class="${t}"> 5 <div class="web_block_model_range-colors__bullet" data-bg="${o?"white":""}"> 6 <div class="web_block_model_range-colors__bullet_main" style="background-color:${s}; ${o?"border: 1px solid #30363A":""}"></div> 7 <div class="web_block_model_range-colors__bullet_sub" style="background-color:${e};"></div> 8 </div> 9 </div> 10 `}},on:{init:e=>{t(e)},activeIndexChange:e=>{t(e)}}})};
10e.forEach(e=>{var t=e.querySelector(i.SLIDER);const s=e.querySelector(i.PAGINATION_SLIDER);let o;if(t&&s){const r=()=>{o=new Swiper(s,{slidesPerView:3.5,spaceBetween:20,freeMode:!0,freeModeSticky:!0,threshold:0,allowTouchMove:!0,breakpoints:{768:{slidesPerView:5,allowTouchMove:!1},1024:{slidesPerView:"auto",allowTouchMove:!1},1280:{slidesPerView:"auto",allowTouchMove:!1}}})};e=()=>{n.matches?void 0!==o&&(o.destroy(!0,!0),r()):r()};n.addEventListener("change",e),e(),r(),new Swiper(t,{slidesPerView:1,spaceBetween:20,threshold:15,watchSlidesVisibility:!0,grabCursor:!0,speed:800,autoplay:{delay:5e3,disableOnInteraction:!0},breakpoints:{768:{spaceBetween:40}},thumbs:{swiper:o},pagination:{el:t.querySelector(i.MAIN_SWIPER_PAGINATION),clickable:!0,renderBullet:(e,t)=>`<span class="${t}"></span>`}}).slides.forEach(a)}})},initTimer=()=>{const o={BLOCK:".js-timer",DAYS:".js-timer-days",HOURS:".js-timer-hours",MINUTES:".js-timer-minutes",SECONDS:".js-timer-seconds",DAYS_TEXT:".js-timer-days-text",HOURS_TEXT:".js-timer-hours-text",MINUTES_TEXT:".js-timer-minutes-text",SECONDS_TEXT:".js-timer-seconds-text"};var e=document.querySelectorAll(o.BLOCK);e.length&&e.forEach(e=>{const r=e.querySelector(o.DAYS),i=e.querySelector(o.HOURS),n=e.querySelector(o.MINUTES),a=e.querySelector(o.SECONDS),l=e.querySelector(o.DAYS_TEXT),c=e.querySelector(o.HOURS_TEXT),d=e.querySelector(o.MINUTES_TEXT),E=e.querySelector(o.SECONDS_TEXT);e=new Date(e.dataset.date).getTime();const u=(e,t)=>{var e=Math.abs(e)%100,s=e%10;return 10<e&&e<20?t[2]:1<s&&s<5?t[1]:1==s?t[0]:t[2]};{var S=e;const t=()=>{o=S;var e,t,s,o=(o-=(new Date).getTime())<0?{total:0,days:0,hours:0,minutes:0,seconds:0}:(e=Math.floor(o/1e3%60),t=Math.floor(o/1e3/60%60),s=Math.floor(o/36e5%24),{total:o,days:Math.floor(o/864e5),hours:s,minutes:t,seconds:e});return r.textContent=("0"+o.days).slice(-2),i.textContent=("0"+o.hours).slice(-2),n.textContent=("0"+o.minutes).slice(-2),a.textContent=("0"+o.seconds).slice(-2),l.textContent=u(o.days,["денÑ","днÑ","дней"]),c.textContent=u(o.hours,["ÑаÑ","ÑаÑа","ÑаÑов"]),d.textContent=u(o.minutes,["минÑÑа","минÑÑÑ","минÑÑ"]),E.textContent=u(o.seconds,["ÑекÑнда","ÑекÑндÑ","ÑекÑнд"]),o.total<=0};if(!t()){const s=setInterval(()=>{t()&&clearInterval(s)},1e3)}}})},initNewPopups=()=>{const o={BLOCK:".js-popup",BLOCK_WRAP:".js-popup-wrap",POPUP_LINK:".js-popup-link-new",POPUP_CLOSE_BUTTON:".js-popup-close",COOKIE_NOTIFY:".js-cookie-notify"},r={SHOW:"show",BODY_NO_SCROLL:"no-scroll-popup"};if(document.querySelectorAll(o.BLOCK).length){var e=document.querySelectorAll(o.POPUP_LINK);if(e){const t=e=>{e.preventDefault();var t,e=e["currentTarget"];e.disabled||(e=e.dataset.id||e.getAttribute("href"),(e=document.querySelector(e))&&(e=e.nextElementSibling)&&(t=window["innerWidth"],t<1024?document.body.classList.add(r.BODY_NO_SCROLL):document.body.classList.remove(r.BODY_NO_SCROLL),e.children[0].classList.add(r.SHOW)))};e.forEach(e=>e.addEventListener("click",t))}const i=e=>{e&&(e.classList.remove(r.SHOW),document.querySelector(o.BLOCK+"."+r.SHOW)||document.body.classList.remove(r.BODY_NO_SCROLL))};e=document.querySelectorAll(o.POPUP_CLOSE_BUTTON);if(e.length){const s=e=>i(e.target.closest(o.BLOCK));e.forEach(e=>e.addEventListener("click",s))}document.addEventListener("mousedown",e=>{var t=document.querySelectorAll(o.BLOCK+"."+r.SHOW);if(t.length){const s=e["target"];var e=s.closest(o.POPUP_LINK);e&&e.classList.contains(o.POPUP_LINK.slice(1))||(e=document.querySelector(o.COOKIE_NOTIFY))&&(s===e||e.contains(s))||t.forEach(e=>{var t=e.querySelector(o.BLOCK_WRAP);!t||s!==t||s!==t&&t.contains(s)||i(e)})}})}},initEventInvitationPopup=()=>{const t={BLOCK:".js-popup-event",POPUP:".js-popup",EVENT_POPUP:"#event-popup",LIGHT:".js-popup-event-light",TURN:".js-popup-event-turn",HEADER:"header"},s=document.querySelector(t.BLOCK);var e=document.querySelector(t.EVENT_POPUP);if(s&&e){const o={VISIT_TIME:"event-popup_site-opened-time",VISIT_LISTED:"event-popup_site-visit-listed",MANUAL_OPENED:"event-popup_was-manually-opened"},a={SHOW:"show",BLINK:"blink"}
10,l={ruleOpenTime:2e4,carFlashTime:1e4,carTurnTime:1e4},c=e?.nextElementSibling?.querySelector(t.POPUP),{time:r,flashtime:d,turntime:E,animation:u}=s.dataset;sessionStorage.getItem(o.MANUAL_OPENED)||sessionStorage.setItem(o.MANUAL_OPENED,"false"),sessionStorage.getItem(o.VISIT_TIME)||(e=r?+r:l.ruleOpenTime,e=new Date(Date.now()+e).toISOString(),sessionStorage.setItem(o.VISIT_TIME,e)),sessionStorage.getItem(o.VISIT_LISTED)||sessionStorage.setItem(o.VISIT_LISTED,"false");e=document.querySelector(t.HEADER);if(e){e=()=>{var e=window["innerWidth"],t=(s.style.top="",s.style.right="",s.getBoundingClientRect());s.style.top=e<1024?"calc(50% - 12px)":"calc(50% - 24px)",s.style.right=-t.left-1+"px"};e(),s.style.opacity="1",window.addEventListener("resize",e);{const i=setInterval(()=>{"true"===sessionStorage.getItem(o.VISIT_LISTED)?clearInterval(i):new Date(sessionStorage.getItem(o.VISIT_TIME)).getTime()>=(new Date).getTime()||(clearInterval(i),sessionStorage.setItem(o.VISIT_LISTED,"true"),"true"!==sessionStorage.getItem(o.MANUAL_OPENED)&&s.click())},100),n=e=>{e.preventDefault(),sessionStorage.setItem(o.MANUAL_OPENED,"true"),s.removeEventListener("click",n)};s.addEventListener("click",n),s.addEventListener("click",e=>{if(e.preventDefault(),"true"===u){const o=document.querySelector(t.LIGHT);if(o){const i=()=>{const t=performance.now(),s=e=>{c.classList.contains(a.SHOW)&&(0<=(e=e-t)&&e<500&&o.classList.remove(a.BLINK),500<=e&&e<700&&o.classList.add(a.BLINK),700<=e&&e<1200&&o.classList.remove(a.BLINK),1200<=e?(o.classList.add(a.BLINK),setTimeout(i,d?+d:l.carFlashTime)):requestAnimationFrame(s))};requestAnimationFrame(s)};i()}const r=document.querySelector(t.TURN);if(r){const n=()=>{const t=performance.now(),s=e=>{c.classList.contains(a.SHOW)&&(0<=(e=e-t)&&e<500&&r.classList.remove(a.BLINK),500<=e&&e<700&&r.classList.add(a.BLINK),700<=e&&e<1200&&r.classList.remove(a.BLINK),1200<=e?(r.classList.add(a.BLINK),setTimeout(n,E?+E:l.carTurnTime)):requestAnimationFrame(s))};requestAnimationFrame(s)};n()}}})}}}},initCookiePopup=()=>{const e=".js-cookie-notify",t=".js-cookie-notify-btn",s=".js-cookie-notify-close",o={COOKIE_VISIBLE:"cookie-notify_visible",COOKIE_HIDDEN:"cookie-notify_hidden"};const r="cookie_consent_closed";const i=document.querySelector(e);var n,a,l,c=document.querySelector(s);const d=()=>{document.body.dispatchEvent(new Event("cookiePopupRemoved"))},E=()=>{i.classList.add(o.COOKIE_HIDDEN),i.addEventListener("animationend",()=>{i.remove(),d()},{once:!0})};i&&(n=!(e=>{e=document.cookie.match(new RegExp(`(?:^|; )${e}=([^;]*)`));return e?decodeURIComponent(e[1]):null})(r),a=document.querySelector(t),l=e=>{var t,s,o;e.preventDefault(),e=r,t="true",(s=new Date).setDate(s.getDate()+400),o=(o="localhost"===location.hostname||"127.0.0.1"===location.hostname)?"":"; Secure",document.cookie=`${e}=${t}; expires=${s.toUTCString()}; path=/; SameSite=Lax`+o,E()},n?(setTimeout(()=>{i.classList.remove(o.COOKIE_HIDDEN),i.classList.add(o.COOKIE_VISIBLE)},1e3),a.addEventListener("click",l)):i.remove()),c&&c.addEventListener("click",e=>{e.preventDefault(),E()})},initDealers=(svg4everybody(),initWordUp(),document.addEventListener("DOMContentLoaded",()=>{initObjectFitFallback(),initLazyload(".lazyload"),initScroll(),initPopups(),initNewPopups(),initHeroVideo(),initValueCounter(),initHeader(),initSlider(),initSliderFlow(),initGallery(),initCookiePopup(),initEventInvitationPopup(),initLatestNews(),initAccordion(),initAccordionTabs(),initSliderModel(),initSliderSpecifications(),initDisclaimer(),initRating(),initModelMenu(),initSliderhalfheight(),initModelFeatures(),initAccordionImages(),initSliderLinks(),initEventsSlider(),initSliderFlowIconIndex(),initSliderFlowFree(),initModelRangeColors(),initSliderPriceLists(),initTimer(),initScripts(),initCalltouch()}),()=>{const t=16;let s=null,r=null,i=-1,n,a,l,e;const o=()=>{"undefined"!=typeof ymaps?ymaps.ready(c):setTimeout(o,500)},c=()=>{(s=new ymaps.Map("js-dc-map",{center:[55.751238,37.625393],zoom:t,controls:["zoomControl"],margin:[55,22,0,22]},{balloonPanelMaxMapArea:0})).behaviors.disable("scrollZoom"),isMobile&&(s.behaviors.disable("drag"),s.behaviors.enable("multiTouch")),r=new ymaps.Clusterer({clusterIconLayout:ymaps.templateLayoutFactory.createClass('<div class="dealers__map-multi-pin">{{ properties.geoObjects.length }}</div>'),clusterIconShape:{type:"Rectangle",coordinates:[[-22,-22],[23,23]]}}),n=ymaps.templateLayoutFactory.createClass('<div class="dc-map__pin"></div>'),a=ymaps.templateLayoutFactory.createClass('<div class="dc-map__pin dc-map__pin_current"></div>'),l=ymaps.templateLayoutFactory.createClass(`<div class="dc-map__balloon"> 11 <button class="dc-map__close"></button> 12 $[[options.contentLayout]] 13 </div>`,{build(){this.constructor.superclass.build.call(this),this._element=this.getParentElement().querySelector(".dc-map__balloon"),this.applyElementOffset(),this._element.querySelector(".dc-map__close").addEventListener("click",this.onCloseClick.bind(this))},clear(){this._element.querySelector(".dc-map__close").removeEventListener("click",this.onCloseClick.bind(this)),this.constructor.superclass.clear.call(this)},onSublayoutSizeChange(){l.superclass.onSublayoutSizeChange.apply(this,arguments),this._element&&(this.applyElementOffset(),this.events.fire("shapechange"))},applyElementOffset(){this._element.style.left=-this._element.offsetWidth/2+"px",this._element.style.top=-this._element.offsetHeight+"px"},onCloseClick(e){e.preventDefault(),this.events.fire("userclose")},getShape(){return this._element?new ymaps.shape.Rectangle(new ymaps.geometry.pixel.Rectangle([[this._element.offsetLeft,this._element.offsetTop],[this._element.offsetLeft+this._element.offsetWidth,this._element.offsetTop+this._element.offsetHeight]])):l.superclass.getShape.call(this)}}),d()},d=()=>{var e=[...dealers];const o=1===e.length;i=-1,s.geoObjects.remove(r),r.removeAll(),e.forEach((e,t)=>
13{var s=e.content,e=new ymaps.Placemark(e.coord,{hintContent:e.name,balloonContentBody:e.name},{iconLayout:n,iconShape:{type:"Rectangle",coordinates:[[-23,-57],[22,3]]},balloonLayout:l,balloonContentLayout:ymaps.templateLayoutFactory.createClass(s),hideIconOnBalloonOpen:!1,balloonOffset:[0,-65]});r.add(e),o||e.events.add("mouseenter",e=>{e.get("target").options.set({iconLayout:a})}).add("mouseleave",e=>{t!==i&&e.get("target").options.set({iconLayout:n})}).add("click",e=>{e.get("target").options.set({iconLayout:a}),E(t)})}),s.geoObjects.add(r),s.setBounds(r.getBounds(),{useMapMargin:!0,callback:()=>{1===r.getLength()&&s.setZoom(t)}}),e.length<2&&(s.setZoom(t),E(0),o||r.getGeoObjects()[0].balloon.open())},E=e=>{i=e,r&&((e=r.getGeoObjects()).forEach(e=>e.options.set({iconLayout:n})),e[i].options.set({iconLayout:a}))};const u=window.matchMedia("(min-width: 768px)"),S=document.querySelector(".js-dc-slider");var m=()=>{u.matches?e&&(e.destroy(!0,!0),e=void 0):e=e||new Swiper(S,{slidesPerView:"auto",slidesPerGroup:1,loop:!1,spaceBetween:0,pagination:{el:".swiper-pagination",type:"bullets",clickable:!0}})};u.addEventListener("change",m),m(),o()}),initSelectOffices=()=>{const o={SELECT:".js-offices-select",DEALER_NAME:".js-dealer-name",CURRENT_OFFICE:".js-select-current",SELECT_ITEMS:".js-select-item",CONTACTS_ITEMS:".js-contacts-item",HEADER:".header"},r={SELECT:"header__select",SELECT_OPEN:"header__select_open",SELECT_ITEM_ACTIVE:"header__select-item_active",CONTACTS_ITEM:"header__contacts-item",CONTACTS_ITEM_HIDDEN:"hidden",HEADER_HIDDEN:"header_hidden"},i=document.querySelector(o.CURRENT_OFFICE),n=document.querySelector(o.SELECT);var e=document.querySelectorAll(o.SELECT_ITEMS);const a=document.querySelectorAll(o.DEALER_NAME),l=document.querySelectorAll(o.CONTACTS_ITEMS),t=document.querySelector(o.HEADER);var s,c;const d=e=>{var t=document.querySelector(o.SELECT_ITEMS+"."+r.SELECT_ITEM_ACTIVE),t=(t&&t.classList.remove(r.SELECT_ITEM_ACTIVE),document.querySelector(`.js-select-item[data-dealer-id="${e}"]`)),e=(t.classList.add(r.SELECT_ITEM_ACTIVE),localStorage.setItem("selectedOffice",e),document.querySelectorAll(`.js-contacts-item[data-office-id="${e}"]`));l.forEach(e=>e.classList.add(r.CONTACTS_ITEM_HIDDEN)),e.forEach(e=>e.classList.remove(r.CONTACTS_ITEM_HIDDEN));const s=t.dataset.dealerName;e=t.dataset.dealerContent;i.textContent=e,a.forEach(e=>e.textContent=s),n.classList.remove(r.SELECT_OPEN)};n&&(s=localStorage.getItem("selectedOffice")||document.querySelector('.js-select-item[data-dealer-id="0"]').dataset.dealerId,i.addEventListener("click",()=>{n.classList.toggle(r.SELECT_OPEN)}),0<(c=parseInt(window.location.search.slice(1),10))&&c<=e.length?d(e[c-1].dataset.dealerId):d(s),e.forEach(e=>{e.addEventListener("click",e=>{e=e.currentTarget.dataset.dealerId;d(e)})}),document.addEventListener("click",e=>{e=e.target;e.closest(o.SELECT)||e.classList.contains(r.SELECT)||n.classList.remove(r.SELECT_OPEN)})),window.addEventListener("scroll",()=>{n&&t.classList.contains(r.HEADER_HIDDEN)&&n.classList.remove(r.SELECT_OPEN)})};document.addEventListener("DOMContentLoaded",()=>{initDealers(),initSelectOffices()});
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.