1const updatePictureSources=e=>{e.querySelectorAll("source[data-src], source[data-srcset]").forEach(e=>{e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.dataset.src&&(e.src=e.dataset.src)})},updateVideoSources=e=>{e.querySelectorAll("source[data-src]").forEach(e=>{e.dataset.src&&(e.src=e.dataset.src)}),e.dataset.poster&&(e.poster=e.dataset.poster),e.load()},loadPicture=e=>{e.querySelectorAll("picture").forEach(updatePictureSources),e.querySelectorAll("img[data-src]").forEach(e=>{e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.dataset.src&&(e.src=e.dataset.src)})},loadedElements=new WeakSet,loadElement=(a,c)=>new Promise((e,t)=>{if(loadedElements.has(a))return"function"==typeof c&&c(a),void e(a);const s=a.tagName,o=e=>{i(),t(e)},i=()=>{var e={IMG:["load","error"],VIDEO:["canplaythrough","error"]}[s];e&&e.forEach(e=>a.removeEventListener(e,{load:r,error:n,canplaythrough:r}[e]))},r=()=>{loadedElements.add(a),i(),"function"==typeof c&&c(a),e(a)},n=()=>o(new Error(`Failed to load ${s} element`));var l=a.parentElement;switch(s){case"IMG":a.addEventListener("load",r),a.addEventListener("error",n),a.dataset.srcset&&(a.srcset=a.dataset.srcset),a.dataset.src&&(a.src=a.dataset.src),l&&"PICTURE"===l.tagName&&updatePictureSources(l);break;case"PICTURE":updatePictureSources(a),r();break;case"VIDEO":a.addEventListener("canplaythrough",r),a.addEventListener("error",n),updateVideoSources(a);break;default:i(),r()}}),initLazyload=(e,s=()=>{},t={})=>{const{callback_enter:o=()=>{},callback_exit:i=()=>{},root:r=null,rootMargin:n="10% 0px",threshold:l=0}=t;const a=new IntersectionObserver(e=>{e.forEach(({target:t,isIntersecting:e})=>{(e?(loadElement(t,s).catch(e=>console.error("Error loading element:",e,t)),o):i)(t,{target:t,isIntersecting:e})})},{root:r,rootMargin:n,threshold:l});t=document.querySelectorAll(e);t.length&&t.forEach(e=>a.observe(e))};function initObjectFitFallback(){"objectFit"in document.documentElement.style||Array.prototype.forEach.call(document.querySelectorAll("[data-object-fit]"),function(e){var t,s=e.getAttribute("data-src")||e.getAttribute("src");s&&"img"===e.tagName.toLowerCase()&&(t=e.getAttribute("data-object-fit"),(e=e.parentElement).classList.contains("responsive-media")||(e=e.parentElement),t="cover"===t?"cover":"contain",e.style.backgroundImage="url("+s+")",e.classList.add("fit-img"),e.classList.add("fit-img--"+t))})}function offset(e){var t=0,s=0;if(e.offsetParent)for(;t+=e.offsetTop,s+=e.offsetLeft,e=e.offsetParent;);return{top:t,left:s}}var HASH_SCROLL_DELAY_MS=2e3;function initScroll(){var t,e,s=".js-scroll-to-anchor",o=".js-scroll-top",s=Array.prototype.slice.call(document.querySelectorAll(s));function i(e){e.preventDefault();e=document.querySelector(this.dataset.href||this.getAttribute("href"));e&&e.scrollIntoView({behavior:"smooth"})}s&&(s.forEach(function(e){e.addEventListener("click",i)}),(t=document.querySelector(o))&&(t.onclick=function(){0<window.scrollY&&window.scrollTo({top:0,behavior:"smooth"})},window.addEventListener("scroll",function(){var e=window.scrollY;document.documentElement.clientHeight<e?t.classList.remove("scroll-top-hidden"):t.classList.add("scroll-top-hidden")})),location.hash)&&1<location.hash.length&&(s=decodeURIComponent(location.hash.slice(1).split("?")[0]),e=document.getElementById(s))&&setTimeout(function(){e.scrollIntoView({behavior:"auto",block:"start"})},HASH_SCROLL_DELAY_MS)}const scrollToElement=e=>{Math.abs(e.getBoundingClientRect().top-offset)<=5||e.scrollIntoView({behavior:"smooth"})};function initScripts(){}function initTextAnimation(){const o={VISIBLE:"visible"};var e=[...document.querySelectorAll(".text-animation")];const t=new IntersectionObserver(e=>{e.forEach(e=>{var t=e.target,s=t.getBoundingClientRect(),s=s.left<0||s.right>window.innerWidth;e.isIntersecting&&t.classList.add(o.VISIBLE),s&&!e.isIntersecting&&t.classList.remove(o.VISIBLE)})},{threshold:.8});e.forEach(e=>t.observe(e))}function initPopups(){const o={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"};
1var e=document.querySelectorAll(o.POPUP_LINK),t=document.querySelectorAll(o.POPUP_CLOSE_BUTTON);function s(e){e.preventDefault(),e.stopPropagation();var t,s,e=document.querySelector(this.getAttribute("href"));e&&(e=e.nextElementSibling)&&(t=e.querySelectorAll(o.POPUP_VIDEO),s=e.querySelector(o.OVERLAY),document.body.classList.add(i.BODY_NO_SCROLL),e.classList.add(i.POPUP_SHOW),swiper=e.querySelector(o.SLIDER),0<t.length&&t.forEach(e=>{var t=e.querySelector("source");e.currentSrc||"none"===getComputedStyle(e).display||(t.src=t.dataset.src,e.load()),e.currentTime=0,e.play().catch(()=>{})}),s&&s.addEventListener("click",r),swiper)&&swiper.swiper&&(this.dataset.index&&swiper.swiper.slideTo(this.dataset.index-1,0),swiper.swiper.update())}function r(){var e,t,s=this.closest("."+i.POPUP_SHOW);s&&(e=s.querySelectorAll(o.POPUP_VIDEO),t=s.querySelector(o.OVERLAY),s.classList.remove(i.POPUP_SHOW),document.querySelector("."+i.POPUP_SHOW)||document.body.classList.remove(i.BODY_NO_SCROLL),0<e.length&&e.forEach(e=>{e.pause(),e.currentTime=0}),t)&&t.removeEventListener("click",r)}e.forEach(e=>{e.addEventListener("click",s)}),t.forEach(e=>{e.addEventListener("click",r)})}function onScreen(e){var t=window.pageYOffset+e.getBoundingClientRect().top,s=window.pageXOffset+e.getBoundingClientRect().left,o=window.pageXOffset+e.getBoundingClientRect().right,e=window.pageYOffset+e.getBoundingClientRect().bottom,i=window.pageYOffset,r=window.pageXOffset,n=window.pageXOffset+document.documentElement.clientWidth,l=window.pageYOffset+document.documentElement.clientHeight;return i<e&&t<l&&r<o&&s<n}var VALUE_COUNTER_SELECTOR=".js-value-counter",VALUE_COUNTER_DONE_CLASS="js-value-counter-done";function initValueCounter(){var e=Array.prototype.slice.call(document.querySelectorAll(VALUE_COUNTER_SELECTOR));function t(){setTimeout(function(){e.forEach(function(e){var t,s;e.classList.contains(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(VALUE_COUNTER_DONE_CLASS))})},100)}t(),window.addEventListener("scroll",t)}function initClickOverlay(){var s="disabled",e=Array.from(document.querySelectorAll(".js-click-overlay"));e.length&&e.forEach(function(e){var t;(t=e).addEventListener("click",function e(){t.classList.add(s),t.removeEventListener("click",e)},{once:!0})})}function setUTMParams(){const s=new URLSearchParams(window.location.search);["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(e=>{var t=s.get(e);t&&(document.cookie=e+`=${t}; path=/;`)})}function initVideoPoster(){const s={LOADED:"loaded"};var e=document.querySelectorAll(".js-video-holder");function o(){var e,t=this.querySelector("template");t&&(e=t.content,this.append(e.cloneNode(!0)),t.remove(),this.classList.add(s.LOADED),this.removeEventListener("click",o))}e.length&&e.forEach(e=>{e.addEventListener("click",o)})}function debounce(t,s){let o=null;return function(...e){clearTimeout(o),o=setTimeout(()=>{o=null,t.apply(this,e)},s)}}function initLineAnimation(){const l={ITEM:".js-btn",SVG:".js-line-animation-svg"},a={LINE_SVG:"line-animation"};var e=document.querySelectorAll(l.ITEM);function s(e){let t=e.querySelector(l.SVG);t||((t=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("class",a.LINE_SVG+" "+l.SVG.substring(1)),e.appendChild(t)),t.innerHTML="";var s=e.offsetWidth,e=e.offsetHeight,o=0<s-4?s-4:0,i=0<e-4?e-4:0,s=(t.setAttribute("viewBox",`0 0 ${s} `+e),t.setAttribute("width",s),t.setAttribute("height",e),document.createElementNS("http://www.w3.org/2000/svg","rect")),s=(s.setAttribute("class","line-animation__base"),s.setAttribute("x",2),s.setAttribute("y",2),s.setAttribute("width",o),s.setAttribute("height",i),s.setAttribute("fill","none"),s.setAttribute("stroke-width",2),t.appendChild(s),"clip-"+Math.random().toString(36).substring(2,9)),r=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),n=(r.setAttribute("id",s),document.createElementNS("http://www.w3.org/2000/svg","rect")),e=(n.setAttribute("class","line-animation__clip"),n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","0"),n.setAttribute("height",e),r.appendChild(n),t.appendChild(r),document.createElementNS("http://www.w3.org/2000/svg","rect"));e.setAttribute("class","line-animation__animated"),e.setAttribute("x",2),e.setAttribute("y",2),e.setAttribute("width",o),e.setAttribute("height",i),e.setAttribute("fill","none"),e.setAttribute("stroke-width",2),e.setAttribute("clip-path",`url(#${s})`),t.appendChild(e)}const t=new ResizeObserver(e=>{for(const t of e)s(t.target)});
1e.forEach(e=>{t.observe(e),s(e)})}const clamp=e=>Math.max(0,Math.min(1,e)),initVideoHover=()=>{const t={VIDEO:".js-video-hover"},s={HAS_VIDEO:"has-video"};if(document.querySelectorAll(t.VIDEO).length){const o=e=>[...e.currentTarget.querySelectorAll(t.VIDEO)].filter(e=>"none"!==window.getComputedStyle(e).display).shift(),i=e=>3<=e.readyState&&e.play().catch(()=>{}),r=e=>{e.pause(),e.currentTime=0,e.load()},n=e=>i(o(e)),l=e=>r(o(e));var e=e=>{e.parentNode.classList.add(s.HAS_VIDEO),e.parentNode.addEventListener("mouseover",n),e.parentNode.addEventListener("mouseout",l)};initLazyload(t.VIDEO,e,{callback_enter:e,callback_exit:e=>{r(e),e.parentNode.removeEventListener("mouseover",n),e.parentNode.removeEventListener("mouseout",l)}})}},createModal=(t,{closeSelector:s=".js-modal-close",boxSelector:o=".js-modal-box",onOpen:i=null,onClose:e=null}={})=>{const r={NO_SCROLL:"is-modal-open"};if(!(t instanceof HTMLDialogElement))return null;const n=()=>t.open,l=(...e)=>{n()||(t.showModal(),document.body.classList.add(r.NO_SCROLL),i?.(...e))},a=()=>{n()&&t.close()};const c=()=>{document.body.classList.remove(r.NO_SCROLL),e?.()},d=({target:e})=>{!e.closest(s)&&e.closest(o)||a()};return t.addEventListener("close",c),t.addEventListener("click",d),{open:l,close:a,toggle:(...e)=>n()?a():l(...e),get isOpen(){return n()},destroy(){t.removeEventListener("close",c),t.removeEventListener("click",d),n()&&t.close(),document.body.classList.remove(r.NO_SCROLL)}}};function initHeader(){const s={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",OFFICES_SELECT:".js-offices-select",OFFICES_SELECT_LABEL:".js-offices-select-label",LINK_ITEM_SINGLE:".js-link-item-single",MENU_CTA:".js-menu-cta",MENU_CTA_CONTENT:".js-menu-content",MENU_CTA_CONTENT_TOP:".js-menu-content-top",BEST_LABEL:".js-header-best"},r={ACTIVE:"active",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",MENU_CTA_STICKY:"sticky",OPENED:"opened"},n=document.querySelector(s.HEADER),t=document.querySelector(s.BURGER),l=document.querySelector(s.MENU),a=document.querySelector(s.OFFICES_SELECT),o=document.querySelector(s.LINK_ITEM_SINGLE),c=a?.querySelector(s.BEST_LABEL);if(n){var d=`(min-width: ${n.dataset.breakpoint}px)`;const m=window.matchMedia(d),S=n.dataset.transparent,f=document.querySelector(s.PAGE_NAV_IN);let i=window.scrollY||document.documentElement.scrollTop,e=!1;window.addEventListener("scroll",()=>{if(!e){let e=window.scrollY||document.documentElement.scrollTop;var t=Array.prototype.slice.call(document.querySelectorAll("."+r.MENU_DROPDOWN_OPEN)),s=n?n.offsetHeight:0,o=!m.matches&&a?a.offsetHeight:0;e<0&&(e=0),t.length||(e>i?(n.classList.add(r.HEADER_HIDDEN),n.style.transform=`translateY(-${s+o}px)`):(S&&n.classList.remove(r.HEADER_TRANSPARENT),!m.matches&&f&&f.classList.contains(r.PAGE_NAV_FIXED)||(n.classList.remove(r.HEADER_HIDDEN),n.style.transform=""))),!S||e||t.length||l.classList.contains(r.MENU_OPEN)||n.classList.add(r.HEADER_TRANSPARENT),a&&a.classList.remove(r.ACTIVE),i=e}});const v=Array.prototype.slice.call(document.querySelectorAll(s.MENU_LINK_SUBMENU)),h=Array.prototype.slice.call(document.querySelectorAll(s.MENU_DROPDOWN));var u=Array.prototype.slice.call(document.querySelectorAll(s.MENU_DROPDOWN_BACK));if(t&&l){if(t.addEventListener("click",()=>{t.classList.contains(r.BURGER_OPEN)?(t.classList.remove(r.BURGER_OPEN),l.classList.remove(r.MENU_OPEN),l.classList.add(r.MENU_CLOSE),document.body.classList.remove(r.BODY_NO_SCROLL),e=!1,L(),h.forEach(e=>{e.classList.remove(r.MENU_DROPDOWN_CLOSE)})):(n.classList.remove(r.HEADER_TRANSPARENT),t.classList.add(r.BURGER_OPEN),l.classList.remove(r.MENU_CLOSE),l.classList.add(r.MENU_OPEN),scrollPosition=window.pageYOffset||document.documentElement.scrollTop,document.body.classList.add(r.BODY_NO_SCROLL),e=!0)}
1),v.forEach(e=>{e.addEventListener("click",E)}),u.forEach(e=>{e.addEventListener("click",p)}),o){const y=o.parentNode,g=o.nextSibling,transferLink=()=>{var e=m.matches,t=e?l:y,e=e?l.firstChild:g;t.insertBefore(o,e)};transferLink()}m.addEventListener("change",function(){L(),h.forEach(e=>{e.classList.remove(r.MENU_DROPDOWN_CLOSE)}),t.classList.remove(r.BURGER_OPEN),l.classList.remove(r.MENU_OPEN),l.classList.remove(r.MENU_CLOSE),document.body.classList.remove(r.BODY_NO_SCROLL),e=!1,o&&transferLink()}),document.body.addEventListener("click",e=>{m.matches&&null===e.target.closest(s.MENU_DROPDOWN)&&null===e.target.closest(s.MENU_LINK_SUBMENU)&&L()}),a&&(a.querySelector(s.OFFICES_SELECT_LABEL).addEventListener("click",e=>{(e=e).target.closest(s.BEST_LABEL)?(e.stopPropagation(),c.classList.toggle(r.OPENED)):a.classList.toggle(r.ACTIVE)}),document.addEventListener("click",function(e){a.contains(e.target)||a.classList.remove(r.ACTIVE),c&&!c.contains(e.target)&&c.classList.remove(r.OPENED)}));u=l.querySelectorAll(s.MENU_CTA),d=window.matchMedia(`(min-width: ${d}px)`);if(0<u.length&&!d.matches)u.forEach(e=>{(e=e)?.dataset.position,e&&new IntersectionObserver(([e])=>{var t=e.isIntersecting,s=e.boundingClientRect.bottom>=window.innerHeight-1,t=t&&s&&e.intersectionRatio<1;e.target.classList.toggle(r.MENU_CTA_STICKY,t)},{rootMargin:"0px 0px -1px 0px",threshold:[0,1]}).observe(e)})}function E(e){e.preventDefault();var t,e=this.closest(s.MENU_ITEM).querySelector(s.MENU_DROPDOWN);e&&(t=!e.classList.contains(r.MENU_DROPDOWN_OPEN),L(),t)&&(n.classList.remove(r.HEADER_TRANSPARENT),e.classList.remove(r.MENU_DROPDOWN_CLOSE),e.classList.add(r.MENU_DROPDOWN_OPEN),this.classList.add(r.MENU_LINK_ACTIVE),loadPicture(e))}function p(e){e.preventDefault();var e=this.closest(s.MENU_ITEM),t=e.querySelector(s.MENU_LINK_SUBMENU),e=e.querySelector(s.MENU_DROPDOWN);t.classList.remove(r.MENU_LINK_ACTIVE),e.classList.remove(r.MENU_DROPDOWN_OPEN),e.classList.add(r.MENU_DROPDOWN_CLOSE)}function L(){var e;v.forEach(e=>{e.classList.remove(r.MENU_LINK_ACTIVE)}),h.forEach(e=>{e.classList.contains(r.MENU_DROPDOWN_OPEN)&&(e.classList.remove(r.MENU_DROPDOWN_OPEN),e.classList.add(r.MENU_DROPDOWN_CLOSE))}),e=window.scrollY||document.documentElement.scrollTop,!S||e||l.classList.contains(r.MENU_OPEN)||n.classList.add(r.HEADER_TRANSPARENT)}}}function initCookiePopup(){var e=".js-cookie-notify",t=".js-cookie-notify-btn",s="cookie-notify_hidden",o="cookie-notify_hidden-anim",i=document.querySelector(e);function r(e){e.preventDefault(),localStorage.setItem("cookie_hidden","true"),i.classList.add(o),i.addEventListener("animationend",function(){i.remove()},{once:!0})}i&&(e=!localStorage.getItem("cookie_hidden"),t=document.querySelector(t),e?(setTimeout(function(){i.classList.remove(s)},5e3),t.addEventListener("click",r)):(t.removeEventListener("click",r),i.remove()))}function initSliderHero(){const t={SLIDER:".js-slider-hero",MEDIA_CONTAINER:".js-media-hero-container"},s={NOT_ANIMATE:"not-animate"};var e=Array.from(document.querySelectorAll(t.SLIDER));e.length&&e.forEach(function(e){new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:2<=e.querySelectorAll(".swiper-slide").length,speed:800,preloadImages:!1,autoplay:{delay:5e3,disableOnInteraction:!1},threshold:10,pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0,renderBullet:function(e,t){return'<div class="'+t+' "><span></span></div>'}},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},on:{transitionStart:()=>{var e=document.querySelector(t.MEDIA_CONTAINER+"."+s.NOT_ANIMATE);e&&e.classList.remove(s.NOT_ANIMATE)},slideChange:function(e){loadPicture(e.slides[e.activeIndex])}},watchSlidesVisibility:!0})})}function initSliderModel(){var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-model"));e&&e.forEach(function(e){(e=e).dataset.layout,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:2<=e.querySelectorAll(".swiper-slide").length,preloadImages:!1,autoplay:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0,renderBullet:function(e,t){return'<div class="'+t+' "><span></span></div>'}},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderFlowIcon(){var s=window.matchMedia("(min-width: 1280px)"),e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-flow-icon"));e&&e.forEach(function(e){var t;t=(e=e).dataset.layout,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,spaceBetween:24,autoHeight:"collumn"==t,allowTouchMove:!0,breakpoints:{768:{slidesPerView:2,allowTouchMove:!0},1280:{slidesPerView:3,allowTouchMove:!1,spaceBetween:32},1720:{slidesPerView:3,allowTouchMove:!1,spaceBetween:40}},preloadImages:!1,threshold:10,pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},watchSlidesVisibility:!0}),s.matches&&loadPicture(e)})}function initSliderGallery(){var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-gallery"));e&&e.forEach(function(e){(e=e).dataset.layout,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:2<=e.querySelectorAll(".swiper-slide").length,preloadImages:!1,autoplay:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0,renderBullet:function(e,t){return'<div class="'+t+' "><span></span></div>'}},breakpoints:{960:{pagination:{el:e.querySelector(".swiper-pagination"),type:"fraction",clickable:!0,renderFraction:function(e,t){return'<span class="'+e+'"></span> из <span class="'+t+'"></span>'}}}},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderFlow(){window.matchMedia("(min-width: 1024px)");var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-flow"));e&&e.forEach(function(e){e=e,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,breakpoints:{768:{slidesPerView:2,slidesPerGroup:1},1024:{slidesPerView:3,slidesPerGroup:1}},watchOverflow:!0,spaceBetween:32,preloadImages:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderFinance(){const o=window.matchMedia("(min-width: 600px)");var e=document.querySelectorAll(".js-slider-finance");e.length&&e.forEach(function(e){let t;function s(){o.matches?void 0!==t&&t.destroy(!0,!0):t=new Swiper(e,{slidesPerView:1,slidesPerGroup:1,breakpoints:{600:{slidesPerView:3,slidesPerGroup:1,spaceBetween:0}
1},watchOverflow:!0,spaceBetween:32,preloadImages:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},watchSlidesVisibility:!0})}o.addListener?o.addListener(s):o.addEventListener("change",s);s()})}function initSliderParams(){var e=".js-model-params-block",a=".js-model-params",c=".js-model-params-title",d=".js-model-params-text",e=Array.prototype.slice.call(document.querySelectorAll(e)),u=window.matchMedia("(min-width: 960px)");e&&e.forEach(e=>{var t=e.querySelector(a),s=e.querySelector(c),o=e.querySelectorAll(d),i=(swiper1=new Swiper(s,{slidesPerView:"auto",grabCursor:!0,autoplay:{delay:4e3,disableOnInteraction:!1},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},on:{afterInit:function(e){r(e)},slideChange:function(e){n(e)},resize:function(e){n(e)}}}),swiper2=new Swiper(t,{autoHeight:!0,slidesPerView:1,slidesPerGroup:1,grabCursor:!0,cursor:"pointer",spaceBetween:40,autoplay:{delay:4e3,disableOnInteraction:!1}}),e=>{swiper1.slideToLoop(e),swiper2.slideToLoop(e)});function r(e){var t=e.el,s=0===(s=Array.from(o)).length?0:s.reduce((e,t)=>{t=t.offsetWidth;return e<t?t:e},0);u.matches?t.style.maxWidth=s+40+"px":t.style.maxWidth="100%",e.update()}function n(e){var t=e.slides[e.activeIndex],e=e.wrapperEl,t=-t.offsetLeft;e.style.transform=`translate3d(${t}px, 0, 0)`}function l(){r(swiper1)}u.addListener?u.addListener(l):u.addEventListener("change",l),l(),u.matches&&loadPicture(e),l(),swiper1.on("slideChange",()=>i(swiper1.realIndex)),swiper2.on("slideChange",()=>i(swiper2.realIndex))})}function initSliderFlow4(){window.matchMedia("(min-width: 1024px)");var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-flow4"));e&&e.forEach(function(e){e=e,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,breakpoints:{600:{slidesPerView:2,slidesPerGroup:1},960:{slidesPerView:3,slidesPerGroup:1},1280:{slidesPerView:4,slidesPerGroup:1}},watchOverflow:!0,spaceBetween:32,preloadImages:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderColumn(){var o=window.matchMedia("(min-width: 1280px)"),e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-columns"));e&&e.forEach(function(e){{var t=e.dataset.layout;const s=e.querySelectorAll(".swiper-slide").length;new Swiper(e,{slidesPerView:1,slidesPerGroup:1,spaceBetween:24,loop:2<=s,allowTouchMove:!0,breakpoints:{960:{slidesPerView:2,allowTouchMove:!0,spaceBetween:32,loop:3<=s},1280:{slidesPerView:3,spaceBetween:32,allowTouchMove:!1,loop:4<=s},1648:{slidesPerView:3,allowTouchMove:!1,spaceBetween:40,loop:4<=s}},preloadImages:!1,threshold:10,autoHeight:"collumn"==t,pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},watchSlidesVisibility:!0}),o.matches&&loadPicture(e)}})}function initSliderFlow2(){window.matchMedia("(min-width: 960px)");var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-flow2"));e&&e.forEach(function(e){e=e,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,breakpoints:{960:{slidesPerView:2,slidesPerGroup:1}},watchOverflow:!0,spaceBetween:32,preloadImages:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderGalleryNarrow(){var e=Array.prototype.slice.call(document.querySelectorAll(".js-slider-gallery-narrow"));e&&e.forEach(function(e){(e=e).dataset.layout,new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:2<=e.querySelectorAll(".swiper-slide").length,preloadImages:!1,autoplay:!1,threshold:10,lazy:{loadPrevNext:!0,loadOnTransitionStart:!0},pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0,renderBullet:function(e,t){return'<div class="'+t+' "><span></span></div>'}},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0})})}function initSliderFlowAccordion(){const o={SLIDER:".js-slider-flow-accordion",ACCORDION:".js-accordion-images"};
1var e=[...document.querySelectorAll(o.SLIDER)];e&&e.forEach(e=>{{const t=new Swiper(e,{slidesPerView:1,slidesPerGroup:1,watchOverflow:!0,spaceBetween:32,preloadImages:!1,threshold:10,autoHeight:!0,pagination:{el:e.querySelector(".swiper-pagination"),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0}),s=(e=[...e.querySelectorAll(o.ACCORDION)],()=>{setTimeout(()=>{t.updateAutoHeight(50)},100)});e.forEach(e=>e.addEventListener("change",s))}})}function initSliderAccsCollections(){const t=[...document.querySelectorAll(".js-slider-accs-collections")];if(t){var e=window.matchMedia("(min-width: 1280px)");const s=e=>{var t=e.querySelectorAll(".swiper-slide").length;new Swiper(e,{slidesPerView:1,spaceBetween:0,allowTouchMove:!0,threshold:10,loop:2<=t,breakpoints:{600:{slidesPerView:2,spaceBetween:32,loop:3<=t},800:{slidesPerView:3,spaceBetween:32,loop:4<=t}},pagination:{el:e.parentNode.querySelector(".swiper-pagination"),clickable:!0}})};e.matches||t.forEach(e=>s(e)),e.addEventListener("change",e=>{e.matches?t.forEach(e=>e.swiper?.destroy()):t.forEach(e=>s(e))})}}function initSliderTariffs(){const i={BLOCK:".js-slider-tariffs",SWIPER_SLIDE:".swiper-slide",SWIPER_PAGINATION:".swiper-pagination",SWIPER_BTN_NEXT:".swiper-button-next",SWIPER_BTN_PREV:".swiper-button-prev"},r={DISABLE:"disable"};const n=window.matchMedia("(min-width: 960px)");var e=document.querySelectorAll(i.BLOCK);e.length&&e.forEach(function(e){var t=e.querySelectorAll(i.SWIPER_SLIDE);let s;function o(){n.matches?s=new Swiper(e,{slidesPerView:1,slidesPerGroup:1,spaceBetween:32,threshold:10,breakpoints:{768:{slidesPerView:2},1720:{slidesPerView:3}},pagination:{el:e.querySelector(i.SWIPER_PAGINATION),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(i.SWIPER_BTN_NEXT),prevEl:e.querySelector(i.SWIPER_BTN_PREV)},watchSlidesVisibility:!0}):void 0!==s&&s.destroy(!0,!0)}t.length<=3?e.classList.add(r.DISABLE):(n.addEventListener("change",o),o())})}const initSliderVideoGallery=()=>{const u={SLIDER:".js-slider-video-gallery",SLIDER_OUTER:".js-slider-video-gallery-outer",SWIPER_WRAPPER:".swiper-wrapper",SWIPER_BTN_NEXT:".swiper-button-next",SWIPER_BTN_PREV:".swiper-button-prev",SWIPER_PAGINATION:".swiper-pagination",DROPDOWN:".js-video-reviews-dropdown",DROPDOWN_CURRENT:".js-video-reviews-current",DROPDOWN_OPTION:".js-video-reviews-option",MODEL_DROPDOWN:".js-model-dropdown",FILTER_DROPDOWN:".js-filter-dropdown",GALLERY_LINK:".js-gallery-link",GALLERY_SLIDE:".js-gallery-video-review-slide",GALLERY_POPUP:".js-gallery-popup-slider",POPUP_STATE:".js-popup-reviews-state",MODEL_ALL_OPTION:'[data-value="all"]',DEFAULT_MODEL_TEXT:"ÐÑе модели"},E={OPENED:"opened",ACTIVE:"active",SWIPER_SLIDE:"swiper-slide",SLIDE_HORIZONTAL:"js-video-gallery-slide-horizontal",SLIDE_SINGLE:"slide-single",SLIDES_CENTERED:"slides-centered"};var e=document.querySelectorAll(u.SLIDER);if(e.length){document.addEventListener("click",e=>{e.target.closest(u.DROPDOWN)||document.querySelectorAll(u.DROPDOWN).forEach(e=>e.classList.remove(E.OPENED))});const p=window.matchMedia("(min-width: 600px)");e.forEach(t=>{let s=null;const o=t.closest(u.SLIDER_OUTER);if(o){var e=o.querySelector(u.MODEL_DROPDOWN),i=o.querySelector(u.FILTER_DROPDOWN);const l=Array.from(t.querySelectorAll(u.GALLERY_SLIDE)),a=t.querySelector(u.SWIPER_WRAPPER),n=()=>{var e={slidesPerView:"auto",threshold:10};p.matches?e.navigation={nextEl:o.querySelector(u.SWIPER_BTN_NEXT),prevEl:o.querySelector(u.SWIPER_BTN_PREV)}:e.pagination={el:o.querySelector(u.SWIPER_PAGINATION),type:"bullets",clickable:!0},s=new Swiper(t,e)};p.addEventListener("change",()=>{s&&(s.destroy(!0,!0),s=null),n()}),n();const c={model:"all",filter:"all"},d=()=>{let o=0,i=0,r=0;l.forEach(e=>{var t=e.getAttribute("data-model"),s=e.getAttribute("data-filter")||"",t="all"===c.model||t===c.model,s=!s||"all"===c.filter||s===c.filter;t&&s?(e.style.removeProperty("display"),(t=e.querySelector(u.GALLERY_LINK))&&t.setAttribute("data-index",o),o++,e.classList.contains(E.SLIDE_HORIZONTAL)?r++:i++):e.style.setProperty("display","none","important")});const n=o<=2&&0===r&&(1===i||2===i&&p.matches);
1l.forEach(e=>{var t="none"!==e.style.display,s=e.classList.contains(E.SLIDE_HORIZONTAL),t=t&&!s&&n;e.classList.toggle(E.SLIDE_SINGLE,t)}),a&&(e=o<=2&&(p.matches?2!==r:i===o||1===r&&0===i),a.classList.toggle(E.SLIDES_CENTERED,e)),s&&(s.update(),s.slideTo(0),s.navigation)&&s.navigation.update();var e=document.querySelector(u.GALLERY_POPUP);e&&(Array.from(e.querySelectorAll(".js-gallery-popup-slide")).forEach(e=>{var t=e.getAttribute("data-model"),s=e.getAttribute("data-filter")||"",t="all"===c.model||t===c.model,s=!s||"all"===c.filter||s===c.filter;t&&s?(e.classList.add(E.SWIPER_SLIDE),e.style.removeProperty("display")):(e.classList.remove(E.SWIPER_SLIDE),e.style.setProperty("display","none","important"))}),e.swiper)&&(e.swiper.update(),e.swiper.pagination)&&e.swiper.pagination.update&&e.swiper.pagination.update()};var r=(s,o,t=[])=>{if(s){const i=s.querySelector(u.DROPDOWN_CURRENT),r=Array.from(s.querySelectorAll(u.DROPDOWN_OPTION));i.addEventListener("click",e=>{e.stopPropagation(),t.forEach(e=>{e&&e.classList.remove(E.OPENED)}),s.classList.toggle(E.OPENED)}),r.forEach(t=>{t.addEventListener("click",e=>{e.stopPropagation();e=t.getAttribute("data-value");r.forEach(e=>e.classList.remove(E.ACTIVE)),t.classList.add(E.ACTIVE),i.textContent=t.textContent,s.classList.remove(E.OPENED),c[o]=e,d()})})}};r(e,"model",[i]),r(i,"filter",[e]),d(),t.querySelectorAll(u.GALLERY_LINK).forEach(s=>{s.addEventListener("click",()=>{var e,t=document.querySelector(u.GALLERY_POPUP);t&&t.swiper&&(e=parseInt(s.getAttribute("data-index"))||0,t.swiper.update(),t.swiper.slideTo(e,0,!1),t.swiper.pagination)&&t.swiper.pagination.update&&t.swiper.pagination.update()})})}})}},initSliderAnnounce=()=>{const s={BLOCK:".js-announce-slider-block",SLIDER:".js-announce-slider",SWIPER_BTN_NEXT:".swiper-button-next",SWIPER_BTN_PREV:".swiper-button-prev",SWIPER_PAGINATION:".swiper-pagination"};var e=document.querySelectorAll(s.BLOCK);e.length&&e.forEach(e=>{var t=e.querySelector(s.SLIDER),e={slidesPerView:"auto",spaceBetween:16,pagination:{el:e.querySelector(s.SWIPER_PAGINATION),type:"bullets",clickable:!0},navigation:{nextEl:e.querySelector(s.SWIPER_BTN_NEXT),prevEl:e.querySelector(s.SWIPER_BTN_PREV)}};new Swiper(t,e)})};function initLatestNews(){var e=".js-latest-news",r=".js-latest-news-slider",e=(SLIDER_BREAKPOINT="(min-width: 1280px)",Array.prototype.slice.call(document.querySelectorAll(e)));e&&e.forEach(function(e){var t,s=window.matchMedia(SLIDER_BREAKPOINT),o=e.querySelector(r);function i(){s.matches?void 0!==t&&t.destroy(!0,!0):t=new Swiper(o,{slidesPerView:1,slidesPerGroup:1,loop:2<=o.querySelectorAll(".swiper-slide").length,spaceBetween:0,watchSlidesVisibility:!0,breakpoints:{960:{slidesPerView:2,slidesPerGroup:1,spaceBetween:32}},pagination:{el:".latest-news__pagination",clickable:!0}})}s.addListener?s.addListener(i):s.addEventListener("change",i),i()})}const initSliderModelRange=()=>{const y={BLOCK:".js-models-menu",SWIPER_WRAPPER:".swiper-wrapper",SLIDER:".js-models-menu-slider",SLIDER_1:".js-models-menu-slider-1",SLIDER_2:".js-models-menu-slider-2",PAGINATION:".js-models-menu-pagination-main",PAGINATION_1:".js-models-menu-pagination-1",PAGINATION_2:".js-models-menu-pagination-2",SWIPER_SLIDE:".swiper-slide"},g={ACTIVE:"active",SINGLE:"single"};var e=[...document.querySelectorAll(y.BLOCK)];if(e.length)e.forEach(r=>{{var n=r;let t,s,o,e,i;var r=n.querySelector(y.SLIDER),l=n.querySelector(y.SLIDER_1),a=n.querySelector(y.SLIDER_2),c;const m=n.querySelector(y.PAGINATION),S=n.querySelector(y.PAGINATION_1),f=n.querySelector(y.PAGINATION_2),v=(c=r.dataset["activeIndex"])?+c:0;var c=l?.dataset.activeModel?+l.dataset.activeModel:0,d=a?.dataset.activeModel?+a.dataset.activeModel:0,u=(e,t,s,o)=>{var i=e.dataset["activeModel"];return new Swiper(e,{initialSlide:i?+i:0,on:{slideChange:function(e){t.slideTo(o),s&&void 0!==e.clickedIndex&&s.slideTo(e.clickedIndex),loadPicture(e.slides[e.activeIndex])}}})},E=(e,t)=>{var s=e.dataset["activeModel"];return new Swiper(e,{initialSlide:s?+s:0,slidesPerView:"auto",slidesPerGroup:1,spaceBetween:8,allowTouchMove:!0,slideToClickedSlide:!0,threshold:10,breakpoints:{960:{spaceBetween:24},1280:{spaceBetween:24,allowTouchMove:!1}},on:{click:function(e){void 0!==e.clickedIndex&&t&&t.slideTo(e.clickedIndex)}}})},p=e=>{const s=[...e.querySelector(y.SWIPER_WRAPPER).children].reduce((e,t)=>
1t.dataset.series?[...e,t.dataset.series]:e,[]);t=new Swiper(e,{slidesPerView:1,slidesPerGroup:1,allowTouchMove:!1,initialSlide:v,pagination:{el:m,clickable:!0,renderBullet:function(e,t){return'<span class="'+t+' h6">'+s[e]+"</span>"}},on:{slideChangeTransitionEnd:function(e){n.classList.contains(g.SINGLE)||(e=0===e.activeIndex,S.classList.toggle(g.ACTIVE,e),f.classList.toggle(g.ACTIVE,!e))}}}),n.classList.contains(g.SINGLE)&&m.querySelectorAll("span.swiper-pagination-bullet").forEach((e,t)=>{0<t&&(e.style.display="none")})},L=(e,t=0)=>{var s,o;null!=t&&(o=(s=e.slides)[t])&&(s.forEach(e=>e.classList.remove(g.ACTIVE)),o.classList.add(g.ACTIVE),e.slideTo(t,0))};const h=(e,s)=>{e.slides.forEach((e,t)=>{e.classList.toggle(g.ACTIVE,t===s)})};f&&f.addEventListener("click",()=>{f.classList.contains(g.ACTIVE)||t.slideTo(1)}),S&&S.addEventListener("click",()=>{S.classList.contains(g.ACTIVE)||t.slideTo(0)}),n.classList.contains(g.SINGLE)?(p(r),s=u(l,t,e,0),e=E(S,s),s.on("slideChange",()=>{e.slideTo(s.activeIndex),h(e,s.activeIndex)}),L(e,c)):(p(r),s=u(a,t,void 0,1),o=u(l,t,e,0),e=E(S,o),i=E(f,s),o.on("touchEnd",e=>{0===o.activeIndex&&"prev"===e.touchesDirection&&(t.slideTo(1),s.slideTo(s.slides.length-1)),o.slides.length-1<=o.activeIndex&&"next"===e.touchesDirection&&(t.slideTo(1),s.slideTo(0))}),s.on("touchEnd",e=>{0===s.activeIndex&&"prev"===e.touchesDirection&&(t.slideTo(0),o.slideTo(o.slides.length-1)),s.slides.length-1<=s.activeIndex&&"next"===e.touchesDirection&&(t.slideTo(0),o.slideTo(0))}),s.on("slideChange",()=>{i.slideTo(s.activeIndex),h(i,s.activeIndex)}),i.on("slideChange",()=>{s.slideTo(i.activeIndex),h(s,i.activeIndex)}),o.on("slideChange",()=>{e.slideTo(o.activeIndex),h(e,o.activeIndex)}),e.on("slideChange",()=>{o.slideTo(e.activeIndex),h(o,e.activeIndex)}),L(e,0==v?c:0),L(i,1==v?d:0))}})};function initModelColors(){var e=".js-model-colors",o=".js-model-colors-slider",i=".js-model-colors-name",r=".js-model-colors-slide",e=Array.prototype.slice.call(document.querySelectorAll(e));e&&e.forEach(function(e){function t(e){var e=e.slides[e.activeIndex].getAttribute("data-color-name"),t=document.querySelector(i);t&&e&&(t.textContent=e)}var s;e=(s=e).querySelector(o),new Swiper(e,{slidesPerView:1,slidesPerGroup:1,effect:"fade",threshold:10,allowTouchMove:!1,pagination:{el:s.querySelector(".swiper-pagination"),type:"bullets",clickable:!0,renderBullet:function(e,t){return`<div class="${t}"> 2 <div class="web_block_model-colors__slider-pagination-color" style="background-color:${s.querySelectorAll(r)[e].getAttribute("data-color")};"></div> 3 </div>`}},on:{init:function(e){t(e)},activeIndexChange:function(e){t(e)}}})})}function initAccordion(){const s={BLOCK:".js-accordion",ITEM:".js-accordion-item",HEADER:".js-accordion-header",BODY:".js-accordion-body",CONTENT:".js-accordion-content"},o={OPENED:"is-opened"};var e=document.querySelectorAll(s.BLOCK);e.length&&e.forEach(function(e){e=e.querySelectorAll(s.HEADER);function t(){var e=this.closest(s.ITEM),t=e.querySelector(s.BODY),e=e.querySelector(s.CONTENT);this.classList.contains(o.OPENED)?(this.classList.remove(o.OPENED),t.removeAttribute("style")):(this.classList.add(o.OPENED),t.style.height=e.offsetHeight+"px")}e.forEach(function(e){e.addEventListener("click",t)})})}function initAccordionTabs(){const n={BLOCK:".js-tabs",TAB_BTNS_SLIDER:".js-tabs-slider",TAB_BUTTON:".js-tabs-btn",TAB_CONTENT:".js-tabs-content",SWIPER_BTN_NEXT:".swiper-button-next",SWIPER_BTN_PREV:".swiper-button-prev",SWIPER_WRAPPER:".swiper-wrapper",SWIPER_SLIDE:".swiper-slide"},l={ACTIVE:"active",JUSTIFY_CONTENT_CENTER:"justify-content-center"};var e=document.querySelectorAll(n.BLOCK);e.length&&e.forEach(function(r){const e=r.querySelector(n.TAB_BTNS_SLIDER),o=r.querySelectorAll(n.TAB_BUTTON),i=r.querySelectorAll(n.TAB_CONTENT);let t;function s(e){var t=r.querySelector(n.SWIPER_WRAPPER),s=e.slides;const o=e.el.getBoundingClientRect();let i=!0;s.forEach(e=>{e=e.getBoundingClientRect();(e.left<o.left||e.right>o.right)&&(i=!1)}),i&&1<s.length?t.classList.add(l.JUSTIFY_CONTENT_CENTER):t.classList.remove(l.JUSTIFY_CONTENT_CENTER)}t=t||new Swiper(e,{slidesPerView:"auto",freeMode:!0,grabCursor:!0,spaceBetween:8,threshold:10,navigation:{nextEl:r.querySelector(n.SWIPER_BTN_NEXT),prevEl:r.querySelector(n.SWIPER_BTN_PREV)},on:{init:function(e){s(e)},resize:function(e){s(e)},click:function(e,t){var s,t=t.target.closest(n.SWIPER_SLIDE);t&&(s=e.slides.indexOf(t),!function(e,t){var e=e.getBoundingClientRect(),t=t.el.getBoundingClientRect(),s=e.left>=t.left,o=e.right<=t.right;if(!s||!o){if(e.left<t.left)return;if(e.right>t.right)return}return 1}(t,e))&&e.slideTo(s)}}}),o.forEach((e,s)=>e.addEventListener("click",()=>{var e=s,t=o[e],e=i[e];if(t){for(let e=0;e<o.length;e++)o[e].classList.remove(l.ACTIVE),i[e].classList.remove(l.ACTIVE);t.classList.add(l.ACTIVE),e.classList.add(l.ACTIVE)}}))})}function initAccordionImages(){const l={BLOCK:".js-accordion-images",ITEM:".js-accordion-images-item",ACCORDION_HEADER:".js-accordion-images-header",IMAGE:".js-accordion-images-image",IMAGE_MOBILE:".js-accordion-images-image-mobile"},a={ACTIVE:"active"};const c=window.matchMedia("(min-width: 960px)");var e=document.querySelectorAll(l.BLOCK);
3e.length&&e.forEach(e=>{{var i=e;e=[...i.querySelectorAll(l.ACCORDION_HEADER)];const r=[...i.querySelectorAll(l.ITEM)],s=[...i.querySelectorAll(l.IMAGE+":not("+l.IMAGE_MOBILE)],n=[...i.querySelectorAll(l.IMAGE_MOBILE)];let o=c.matches?s:n;function t(){var e,t,s=this.parentNode;s.classList.contains(a.ACTIVE)?s.classList.remove(a.ACTIVE):(e=o[r.indexOf(s)],t=o.find(e=>e.classList.contains(a.ACTIVE)),r.find(e=>e.classList.contains(a.ACTIVE))?.classList.remove(a.ACTIVE),t.classList.remove(a.ACTIVE),s.classList.add(a.ACTIVE),e.classList.add(a.ACTIVE),i.dispatchEvent(new Event("change")))}c.addEventListener("change",function(){o=this.matches?s:n}),n.forEach((e,t)=>{t=s[t].innerHTML;e.insertAdjacentHTML("afterbegin",t)}),e.forEach(e=>e.addEventListener("click",t))}})}function initAccordionCards(){const i={BLOCK:".js-accordion-cards",ITEM:".js-accordion-cards-item",HEADER:".js-accordion-cards-header",BODY:".js-accordion-cards-body",CONTENT:".js-accordion-cards-content"},r={ACTIVE:"active"};var e=document.querySelectorAll(i.BLOCK);e.length&&e.forEach(function(e){e.addEventListener("click",e=>{var t,s,e=e.target.closest(i.HEADER);e&&(t=e.closest(i.ITEM))&&(e.classList.contains(r.ACTIVE)?(s=(e=t).querySelector(i.HEADER),e=e.querySelector(i.BODY),s&&e&&(s.classList.remove(r.ACTIVE),e.removeAttribute("style"))):o(t))});e=e.querySelector(i.ITEM);e&&o(e);function o(e){var t=e.querySelector(i.HEADER),s=e.querySelector(i.BODY),e=e.querySelector(i.CONTENT);t&&s&&e&&(t.classList.add(r.ACTIVE),s.style.height=e.offsetHeight+"px")}})}function initModelMenu(){var e=".js-model-menu",f=".js-model-menu-btn",v=".js-model-menu-active-item",h=".js-model-menu-list",y=".js-model-menu-btns",g=".js-model-menu-item",O=".js-model-menu-link",A=".js-model-menu-more-btn",P=".js-model-menu-hidden-list",w=".header",_="header_hidden",T="sticky",I="active",e=Array.prototype.slice.call(document.querySelectorAll(e));e&&e.forEach(e=>{function t(){a.classList.contains(I)?(d.classList.remove(I),a.classList.remove(I),c.classList.remove(I),c.style.top="auto"):(d.classList.add(I),a.classList.add(I),c.classList.add(I),c.style.top=a.offsetHeight+60+"px")}function s(){var e=window.scrollY||document.documentElement.scrollTop,t=m?m.offsetHeight:0;S<e?(l.classList.add(T),l.style.top=t+"px"):(l.classList.remove(T),l.style.top="0px"),m.classList.contains(_)?(l.classList.add(_),l.style.top="0px"):l.classList.remove(_)}function o(){var o=window.innerHeight;
3L.forEach(function(e){var t,s=e.querySelector(O).getAttribute("href").substring(1),s=document.getElementById(s);if(t=s?(s=s.getBoundingClientRect()).top<=.4*o&&0<=s.bottom:t)return L.forEach(function(e){e.classList.remove(I)}),e.classList.add(I),u.textContent=e.textContent,!0})}function r(){p.classList.contains(I)?p.classList.remove(I):p.classList.add(I)}function i(){var s=a.offsetWidth,o=0,i=[];L.forEach(function(e){var t=window.getComputedStyle(e),t=parseFloat(t.width)+parseFloat(t.marginLeft)+parseFloat(t.marginRight);o+=Math.floor(t),s<o&&(i.push(e.cloneNode(!0)),e.style.display="none")}),0<i.length?(E.classList.add(I),p.innerHTML="",i.forEach(function(e){p.appendChild(e)}),E.addEventListener("click",r),document.addEventListener("click",function(e){a.contains(e.target)||E.contains(e.target)||p.classList.remove(I)})):(E.classList.remove(I),p.innerHTML="")}function n(){Array.prototype.slice.call(document.querySelectorAll(O)).forEach(function(e){var t=e.getAttribute("href").substring(1),s=document.getElementById(t);e.addEventListener("click",function(e){e.preventDefault(),scrollToElement(s)})})}var l,a,c,d,u,E,p,L,m,S;a=(l=e).querySelector(h),c=l.querySelector(y),d=l.querySelector(f),u=l.querySelector(v),E=l.querySelector(A),p=l.querySelector(P),L=Array.prototype.slice.call(l.querySelectorAll(g)),m=document.querySelector(w),S=l.getBoundingClientRect().top+window.pageYOffset,window.addEventListener("scroll",function(){s(),o()}),d.addEventListener("click",function(){t()}),u.addEventListener("click",function(){t()}),L.forEach(e=>{e.addEventListener("click",function(){d.classList.remove(I),a.classList.remove(I),c.classList.remove(I),u.textContent=e.textContent})}),s(),o(),i(),n(),window.addEventListener("resize",function(){L.forEach(function(e){e.style.display=""}),i(),E.removeEventListener("click",r),E.addEventListener("click",r),n(),window.innerWidth<"960"?c.style.top=a.offsetHeight+60+"px":c.style.top="auto"})})}const initFooter=()=>{const o={COLLAPSE:".js-footer-collapse",COLLAPSE_HEADER:".js-footer-collapse-header",COLLAPSE_CONTENT:".js-footer-collapse-content",COLLAPSE_INNER_CONTENT:".js-footer-collapse-inner-content",DISC_NAV_BTN:".js-footer-disc-nav-btn",DISC_PANE:".js-footer-disc-pane",DISC_PANE_TEXT:".js-footer-disc-pane-text",DISC_PANE_BTN:".js-footer-disc-pane-btn"},i={COLLAPSE_OPEN:"footer__collapse_open",COLLAPSE_CLOSE:"footer__collapse_close",COLLAPSE_OPEN_OLD:"footer1__collapse_open",COLLAPSE_CLOSE_OLD:"footer1__collapse_close",ACTIVE:"active",OPEN:"open"};const r=window.matchMedia("(min-width: 960px)"),e=document.querySelectorAll(o.COLLAPSE),t=e=>{e.preventDefault();var t,s,e=e.currentTarget.closest(o.COLLAPSE);e&&(t=e.querySelector(o.COLLAPSE_CONTENT),s=e.querySelector(o.COLLAPSE_INNER_CONTENT),!r.matches)&&t&&s&&(e.classList.contains(i.COLLAPSE_CLOSE)?(e.classList.add(i.COLLAPSE_OPEN),e.classList.remove(i.COLLAPSE_CLOSE),t.style.height=s.offsetHeight+"px"):e.classList.contains(i.COLLAPSE_OPEN)&&(e.classList.add(i.COLLAPSE_CLOSE),e.classList.remove(i.COLLAPSE_OPEN),t.style.height="0px"),e.classList.contains(i.COLLAPSE_CLOSE_OLD)?(e.classList.add(i.COLLAPSE_OPEN_OLD),e.classList.remove(i.COLLAPSE_CLOSE_OLD),t.style.height=s.offsetHeight+"px"):e.classList.contains(i.COLLAPSE_OPEN_OLD)&&(e.classList.add(i.COLLAPSE_CLOSE_OLD),e.classList.remove(i.COLLAPSE_OPEN_OLD),t.style.height="0px"))};var s=()=>{e.forEach(e=>{var t=e.querySelector(o.COLLAPSE_CONTENT),s=e.querySelector(o.COLLAPSE_INNER_CONTENT);t&&s&&(r.matches?(e.classList.remove(i.COLLAPSE_OPEN,i.COLLAPSE_CLOSE,i.COLLAPSE_OPEN_OLD,i.COLLAPSE_CLOSE_OLD),t.style.height=s.style.height):(e.classList.add(i.COLLAPSE_CLOSE,i.COLLAPSE_CLOSE_OLD),t.style.height="0px"))})};const n=()=>{document.querySelectorAll(o.DISC_PANE).forEach(e=>{var t,s;e.classList.contains(i.ACTIVE)&&(t=e.querySelector(o.DISC_PANE_BTN),s=e.querySelector(o.DISC_PANE_TEXT),t)&&s&&(e=e.classList.contains(i.OPEN)||s.scrollHeight>s.clientHeight,t.style.display=e?"":"none")})};s(),n();e.forEach(e=>{e=e.querySelector(o.COLLAPSE_HEADER);e&&e.addEventListener("click",t)}),r.addEventListener("change",s);
3{const l=document.querySelectorAll(o.DISC_NAV_BTN),a=document.querySelectorAll(o.DISC_PANE),c=e=>{l.forEach((e,t)=>{e.classList.remove(i.ACTIVE),a[t]&&a[t].classList.remove(i.ACTIVE)}),l[e]&&l[e].classList.add(i.ACTIVE),a[e]&&a[e].classList.add(i.ACTIVE),n()};l.forEach((e,t)=>{0===t&&c(t),e.addEventListener("click",()=>c(t))})}document.querySelectorAll(o.DISC_PANE_BTN).forEach(t=>{t.addEventListener("click",()=>{var e=t.closest(o.DISC_PANE);e&&e.classList.toggle(i.OPEN)})})};function initMediaFeatures(){var e=".js-features",a=".js-features-list-item",c=".js-features-medias-item",d=".js-features-slider",u="web_block_media-features__list-item_active",E="web_block_media-features__medias-item_active",e=(SLIDER_BREAKPOINT="(min-width: 1024px)",Array.prototype.slice.call(document.querySelectorAll(e)));e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.querySelectorAll(a)),o=Array.prototype.slice.call(e.querySelectorAll(c));function s(e){t.forEach(function(e){e.classList.remove(u)}),this.classList.add(u);var s=t.indexOf(this);-1!==s&&o.forEach(function(e,t){e.classList.toggle(E,t==s)})}t.forEach(function(e){e.addEventListener("click",s)});var i,r=window.matchMedia(SLIDER_BREAKPOINT),n=e.querySelector(d);function l(){r.matches?void 0!==i&&i.destroy(!0,!0):i=new Swiper(n,{slidesPerView:1,slidesPerGroup:1,loop:!1,spaceBetween:0,pagination:{el:".swiper-pagination",type:"bullets",clickable:!0}})}r.addListener?r.addListener(l):r.addEventListener("change",l),l()})}function initFooterModel(){var o=".js-footer-model-collapse",t=".js-footer-model-collapse-header",i=".js-footer-model-collapse-content",r=".js-footer-model-collapse-inner-content",n="footer-model__collapse_open",l="footer-model__collapse_close",a="footer-model1__collapse_open",c="footer-model1__collapse_close",d=window.matchMedia("(min-width: 1280px)"),e=Array.prototype.slice.call(document.querySelectorAll(o));function s(e){e.preventDefault();var t,s,e=this.closest(o);e&&(t=e.querySelector(i),s=e.querySelector(r),!d.matches)&&t&&s&&(e.classList.contains(l)?(e.classList.add(n),e.classList.remove(l),t.style.height=s.offsetHeight+"px"):e.classList.contains(n)&&(e.classList.add(l),e.classList.remove(n),t.style.height="0px"),e.classList.contains(c)?(e.classList.add(a),e.classList.remove(c),t.style.height=s.offsetHeight+"px"):e.classList.contains(a)&&(e.classList.add(c),e.classList.remove(a),t.style.height="0px"))}function u(){e.forEach(function(e){var t=e.querySelector(i),s=e.querySelector(r);t&&s&&(d.matches?(e.classList.remove(n),e.classList.remove(l),e.classList.remove(a),e.classList.remove(c),t.style.height=s.style.height):(e.classList.add(l),e.classList.add(c),t.style.height="0px"))})}e.forEach(function(e){e=e.querySelector(t);e&&e.addEventListener("click",s)}),d.addListener?d.addListener(u):d.addEventListener("change",u),u()}function initMediaFullscreen(){var e=".js-media-fullscreen",s=".js-video-media-fullscreen",n=".js-media-fullscreen-play",l=".js-media-fullscreen-sound",a="active",e=Array.prototype.slice.call(document.querySelectorAll(e));e.length&&e.forEach(function(e){function o(e){var t;e.currentSrc||"none"===getComputedStyle(e).display||((t=e.querySelector("source")).src=t.dataset.src,e.load(),e.muted=!1)}var t,i,r;t=e,i=Array.prototype.slice.call(t.querySelectorAll(s)),e=t.querySelector(n),r=t.querySelector(l),i.length&&(e.classList.add(a),r.style.display="block",e.addEventListener("click",function(){i.forEach(function(e){o(e=e),e.paused?(e.play().catch(function(){}),t.classList.add(a)):(e.pause(),t.classList.remove(a))})}),r.addEventListener("click",function(){var s=!r.classList.contains(a);i.forEach(function(e){var t;t=s,o(e=e),e.muted=t}),s?r.classList.add(a):r.classList.remove(a)}))})}function initMediaFullscreenStandard(){const o={BLOCK:".js-media-fullscreen-standard",VIDEO:".js-video-media-fullscreen-standard",PLAY:".js-media-fullscreen-standard-play"},i={ACTIVE:"active"};var e=[...document.querySelectorAll(o.BLOCK)];function t(t){const e=[...t.querySelectorAll(o.VIDEO)],s=t.querySelector(o.PLAY);e.length&&(s.classList.add(i.ACTIVE),s.addEventListener("click",function(){e.forEach(function(e){(e=e).paused?(e.play().catch(function(){}),t.classList.add(i.ACTIVE)):(e.pause(),t.classList.remove(i.ACTIVE)),e.controls=!e.paused})}
3),e.forEach(e=>{var t;(e=e).currentSrc||"none"===getComputedStyle(e).display||((t=e.querySelector("source")).src=t.dataset.src,e.load(),e.controls=!1)}))}e.length&&e.forEach(function(e){t(e)})}function initMediaVideoStandard(){const o={BLOCK:".js-media-video-standard",VIDEO:".js-video-media-video-standard",PLAY:".js-media-video-standard-play"},i={ACTIVE:"active"};var e=[...document.querySelectorAll(o.BLOCK)];function t(t){const e=[...t.querySelectorAll(o.VIDEO)],s=t.querySelector(o.PLAY);e.length&&(s.classList.add(i.ACTIVE),s.addEventListener("click",function(){e.forEach(function(e){(e=e).paused?(e.play().catch(function(){}),t.classList.add(i.ACTIVE)):(e.pause(),t.classList.remove(i.ACTIVE)),e.controls=!e.paused})}),e.forEach(e=>{var t;(e=e).currentSrc||"none"===getComputedStyle(e).display||((t=e.querySelector("source")).src=t.dataset.src,e.load(),e.controls=!1)}))}e.length&&e.forEach(function(e){t(e)})}function initFloatMenu(){var e=".js-float-menu",S=".js-float-menu-btn",f=".js-float-menu-active-item",v=".js-float-menu-list",h=".js-float-menu-item",y=".js-float-menu-link",g=".js-float-menu-link-internal",O=".js-float-menu-more-btn",A=".js-float-menu-hidden-list",P=".header",w="header_hidden",_="sticky",T="active",e=Array.prototype.slice.call(document.querySelectorAll(e));e&&e.forEach(e=>{function t(){a.classList.contains(T)?(c.classList.remove(T),a.classList.remove(T)):(c.classList.add(T),a.classList.add(T),menuBtns&&menuBtns.classList.add(T))}function s(){var e=window.scrollY||document.documentElement.scrollTop,t=L?L.offsetHeight:0;m<e?(l.classList.add(_),l.style.transform=`translateY(${t}px)`):(l.classList.remove(_),l.style.transform="translateY(0px)"),L.classList.contains(w)?(l.classList.add(w),l.style.transform="translateY(0px)"):l.classList.remove(w)}function o(){var o=window.innerHeight;p.forEach(function(e){var t,s=e.querySelector(y).getAttribute("href").substring(1),s=document.getElementById(s);if(t=s?(s=s.getBoundingClientRect()).top<=.4*o&&0<=s.bottom:t)return p.forEach(function(e){e.classList.remove(T)}),e.classList.add(T),d.textContent=e.textContent,!0})}function r(){E.classList.contains(T)?E.classList.remove(T):E.classList.add(T)}function i(){var s=a.offsetWidth,o=0,i=[];p.forEach(function(e){var t=window.getComputedStyle(e),t=parseFloat(t.width)+parseFloat(t.marginLeft)+parseFloat(t.marginRight);o+=Math.floor(t),s<o&&(i.push(e.cloneNode(!0)),e.style.display="none")}),0<i.length?(u.classList.add(T),E.innerHTML="",i.forEach(function(e){E.appendChild(e)}),u.addEventListener("click",r),document.addEventListener("click",function(e){a.contains(e.target)||u.contains(e.target)||E.classList.remove(T)})):(u.classList.remove(T),E.innerHTML="")}function n(){Array.prototype.slice.call(document.querySelectorAll(g)).forEach(function(e){var t=e.getAttribute("href").substring(1),s=document.getElementById(t);e.addEventListener("click",function(e){e.preventDefault(),scrollToElement(s)})})}var l,a,c,d,u,E,p,L,m;a=(l=e).querySelector(v),c=l.querySelector(S),d=l.querySelector(f),u=l.querySelector(O),E=l.querySelector(A),p=Array.prototype.slice.call(l.querySelectorAll(h)),L=document.querySelector(P),m=l.getBoundingClientRect().top+window.pageYOffset,window.addEventListener("scroll",function(){s(),o()}),c.addEventListener("click",function(){t()}),d.addEventListener("click",function(){t()}),p.forEach(e=>{e.addEventListener("click",function(){c.classList.remove(T),a.classList.remove(T),d.textContent=e.textContent})}),s(),o(),i(),n(),window.addEventListener("resize",function(){p.forEach(function(e){e.style.display=""}),i(),u.removeEventListener("click",r),u.addEventListener("click",r),n()})})}function initUspSlider(){const c={BLOCK:".js-usp-slider-block",SLIDER:".js-usp-slider",SLIDER_CONTAINER:".js-usp-container",LINK:".js-usp-link",TEXT:".js-usp-text-wrap"};const d=window.matchMedia("(min-width: 1280px)");var e=document.querySelectorAll(c.BLOCK);if(e.length){var t=document.querySelectorAll(c.LINK);const o=new WeakMap,u=new Map;e.forEach(function(e){{const l=e.querySelector(c.SLIDER),a=e.querySelector(c.SLIDER_CONTAINER);if(l&&a){let o,i,r;var t=l.querySelectorAll(".swiper-slide").length;function s(e){var t=(o.realIndex+1)%o.slides.length,s=(o.realIndex+2)%o.slides.length;i&&i.realIndex!==t&&("next"===e?i.slideNext():i.slidePrev()),r&&r.realIndex!==s&&("next"===e?r.slideNext():r.slidePrev())}function n(){var t,e,s;d.matches?a.querySelector(".swiper2")||a.querySelector(".swiper3")||((e=l.cloneNode(!0)).classList.remove(c.SLIDER.replace(".","")),e.classList.add("swiper2"),a.appendChild(e),(s=l.cloneNode(!0)).classList.remove(c.SLIDER.replace(".","")),s.classList.add("swiper3"),a.appendChild(s),i=new Swiper(e,{slidesPerView:1,slidesPerGroup:1,loop:2<=e.querySelectorAll(".swiper-slide").length,speed:500,spaceBetween:32,allowTouchMove:!1,initialSlide:1,effect:"fade",fadeEffect:{crossFade:!0}}),r=new Swiper(s,{slidesPerView:1,slidesPerGroup:1,loop:2<=s.querySelectorAll(".swiper-slide").length,speed:500,spaceBetween:32,allowTouchMove:!1,initialSlide:2,effect:"fade",fadeEffect:{crossFade:!0}}
3),t=o,[l,e,s].forEach(e=>{e.addEventListener("mouseenter",()=>{t.autoplay.stop()}),e.addEventListener("mouseleave",()=>{t.autoplay.start()})}),o.slideTo(0),o.update()):(i&&i.destroy(!0,!0),r&&r.destroy(!0,!0),e=a.querySelector(".swiper2"),s=a.querySelector(".swiper3"),e&&e.remove(),s&&s.remove())}(o=new Swiper(l,{slidesPerView:1,slidesPerGroup:1,loop:2<=t,threshold:10,speed:500,spaceBetween:32,touchRatio:.5,allowTouchMove:!0,autoplay:{delay:4e3,disableOnInteraction:!1},breakpoints:{600:{slidesPerView:2,spaceBetween:32,allowTouchMove:!0,loop:3<=t},960:{slidesPerView:2,spaceBetween:32,allowTouchMove:!0,loop:3<=t},1280:{slidesPerView:1,spaceBetween:0,allowTouchMove:!1,loop:2<=t}},pagination:{el:e.querySelector(".swiper-pagination"),clickable:!1},navigation:{nextEl:e.querySelector(".swiper-button-next"),prevEl:e.querySelector(".swiper-button-prev")}})).on("slideNextTransitionStart",function(){s("next")}),o.on("slidePrevTransitionStart",function(){s("prev")}),d.addEventListener("change",n),n(),u.set(e,{swiper1:o,swiper2:i,swiper3:r})}}}),t.forEach(t=>{if(t.querySelector("video")){const s=t.querySelector(c.TEXT);s&&(t.addEventListener("mouseover",e=>{var t;d.matches&&(clearTimeout(o.get(s)),t=setTimeout(()=>{s.style.display="none"},350),o.set(s,t))}),t.addEventListener("mouseout",e=>{!d.matches||e.relatedTarget&&t.contains(e.relatedTarget)||(e=t.querySelector(c.TEXT))&&(clearTimeout(o.get(e)),e.style.display="")}))}})}}function initTableResponsive(){const p={TABLE:".js-table-responsive",SCROLLING:".js-table-responsive-scrolling",CONTAINER:".js-table-responsive-container",CELL:".js-table-responsive-cell",NAV:".js-table-responsive-nav",NAV_BTN:".js-table-responsive-btn",NEXT_BTN:'[data-dir="next"]',PREV_BTN:'[data-dir="prev"]'},L={VISIBLE:"visible",DISABLED:"disabled",SCROLLING:"scrolling",HAS_SCROLLING:"has-scrolling"};var e=[...document.querySelectorAll(p.TABLE)].filter(e=>0<e.querySelectorAll(p.CELL).length);function t(t){const n=[...t.querySelectorAll(p.CELL)],l=t.dataset?.fixed;var e=n[0].offsetWidth;const s=t.closest(p.CONTAINER),a=t.closest(p.SCROLLING),o=s.querySelector(p.PREV_BTN),i=s.querySelector(p.NEXT_BTN),r=l?e+t.getBoundingClientRect().left:t.getBoundingClientRect().left;function c(){var e=a.scrollLeft;t.scrollWidth>s.clientWidth&&(s.querySelector(p.NAV).classList.add(L.VISIBLE),s.classList.add(L.HAS_SCROLLING)),Math.abs(a.scrollLeft+a.clientWidth-a.scrollWidth)<2?i.setAttribute("disabled","disabled"):i.removeAttribute("disabled"),0<e?o.removeAttribute("disabled"):o.setAttribute("disabled","disabled")}const d=e=>e?e.getBoundingClientRect().left-r:void 0;function u(){var e=a.scrollLeft,t=l?n.slice(1):n;let o={index:0,left:0};return 0!==e&&t.forEach((e,t,s)=>{d(e)<1&&1<d(s[t+1])&&(o={index:t,left:d(e)})}),o}function E(){var t=this.dataset.dir;{var s=a.scrollLeft,o=u().index,i=u().left,r=l?n.slice(1):n;let e=r[o+1];"prev"===t&&(e=i<1&&(0<i||0===i)?r[o-1]:r[o]),a.scrollTo({left:s+d(e),behavior:"smooth"})}}c(),[...t.closest(p.CONTAINER).querySelectorAll(p.NAV_BTN)].forEach(e=>{e.addEventListener("click",E)}),a.addEventListener("scroll",function(){0<this.scrollLeft?s.classList.add(L.SCROLLING):s.classList.remove(L.SCROLLING),setTimeout(()=>{c()},350)})}e&&e.forEach(e=>t(e))}function initAccsMenu(){const e=".js-accs-menu",t=".js-toggle-accs-menu",s=".header",o={OPENED:"opened",HEADER_HIDDEN:"header_hidden"},i=document.querySelector(e);var r=document.querySelector(t);const n=document.querySelector(s);function l(){var e=document.querySelector(":root");n.classList.contains(o.HEADER_HIDDEN)?e.style.setProperty("--accs-menu-top","0"):e.style.setProperty("--accs-menu-top",n.offsetHeight+"px")}i&&r&&(l(),r.addEventListener("click",function(){i.classList.toggle(o.OPENED)}),window.addEventListener("scroll",l))}function initDisclaimer(){const c={BLOCK:".js-disclaimer-wrapper",CONTAINER:".js-disclaimer-container",BUTTON:".js-disclaimer-toggle-button",BUTTON_TEXT:".js-disclaimer-toggle-button-text",CONTENT:".js-disclaimer-content"},d={OPENED:"opened",CLOSED:"closed",HIDDEN_BTN:"hidden"};var e=Array.prototype.slice.call(document.querySelectorAll(c.BLOCK));e.length<=0||e.forEach(function(l){const a=l.querySelector(c.BUTTON);var e,t,s=l.querySelector(c.CONTENT),o=l.querySelector(c.CONTAINER);s=s,o=o,e=a,t=o.querySelectorAll("p")[0],s.scrollHeight>o.offsetHeight&&e.classList.remove(d.HIDDEN_BTN),t&&!t.classList.contains(d.CLOSED)&&t.classList.add(d.CLOSED),a.addEventListener("click",function(){{var e=l,t=a;const s=e.querySelector(c.CONTAINER),o=t.querySelector(c.BUTTON_TEXT),i=s.querySelectorAll("p"),r=i[0];if(s.classList.contains(d.OPENED)){s.classList.remove(d.OPENED),t.classList.remove(d.OPENED),o.innerHTML=o.dataset.expand;const n=function(e){"max-height"===e.propertyName&&(r&&r.classList.add(d.CLOSED),s.removeEventListener("transitionend",n))};s.addEventListener("transitionend",n)}else r&&r.classList.contains(d.CLOSED)&&r.classList.remove(d.CLOSED),s.classList.add(d.OPENED),t.classList.add(d.OPENED),o.innerHTML=o.dataset.collapse}})})}function initHeroMask(){const o={BLOCK:".js-hero-mask",MASK:".js-hero-mask-mask",MASK_TEXT:".js-
3hero-mask-text"},i={INITIALIZED:"initialized"};var e=[...document.querySelectorAll(o.BLOCK)];function r(e,t){var s;return 1===t.length?t[0]:(s=Math.min(Math.floor(e*(t.length-1)),t.length-2),e=e*(t.length-1)-s,t[s]+e*(t[s+1]-t[s]))}function n(s,o){return e=>{var t;o.scale&&(t=r(e,o.scale),s.style.transform=`scale(${t})`),o.opacity&&(t=r(e,o.opacity),s.style.opacity=t),o.blur&&(t=r(e,o.blur),s.style.filter=`blur(${t}px)`)}}function l(s,o){function e(){var e=window.innerHeight||document.documentElement.clientHeight,t=o.offsetHeight-e,e=e-o.getBoundingClientRect().top;s(Math.max(0,Math.min(1,e/t)))}document.addEventListener("scroll",e),window.addEventListener("resize",e),e()}0!==e.length&&e.filter(e=>!e.classList.contains(i.INITIALIZED)).forEach(e=>{var t=e.querySelector(o.MASK),s=e.querySelector(o.MASK_TEXT);e.classList.add(i.INITIALIZED),l(n(t,{opacity:[1,1,0]}),e),l(n(s,{scale:[1,1.1,2,4,6],blur:[0,0,0,.1,.5,4]}),e)})}function initTooltip(){const r={TOOLTIP:".js-tooltip",TOOLTIP_BUBBLE:".js-tooltip-text"};var e=[...document.querySelectorAll(r.TOOLTIP)];if(e.length){const n=window.matchMedia("(min-width: 600px)").matches?16:32;e.forEach(function(e){var t=e.querySelector(r.TOOLTIP_BUBBLE),e=e.getBoundingClientRect(),s=t.getBoundingClientRect(),o=s.x+s.width,i=e.x+e.width;s.x<0?(t.style.left="0",t.style.right="auto",t.style.transform=`translateX(${-e.x+n}px)`):o>window.outerWidth&&(t.style.left="auto",t.style.right="0",t.style.transform=`translateX(${window.outerWidth-i-n}px)`)})}}function initStages(){const t={BLOCK:".js-stages",TAG:".js-stages-tag",TAG_POSITION:".js-stages-tag-position",FOLDER:".js-stages-folder"},a={TAG_SHADOW:"web_block_stages__tag_shadow"};var e=[...document.querySelectorAll(t.BLOCK)];e.length&&e.forEach(function(e){const s=[...e.querySelectorAll(t.TAG)],i=[...e.querySelectorAll(t.TAG_POSITION)],r=[...e.querySelectorAll(t.FOLDER)];if(s.length&&r.length){const n=s.length,l=s[0].offsetHeight,o=(e.style.setProperty("padding-bottom",`calc(${n*l}px)`),new IntersectionObserver(e=>{e.forEach(e=>{var t=r.indexOf(e.target),t=s[t+1];e.isIntersecting?t.style.setProperty("bottom","0px"):t.style.setProperty("bottom","")})}));s.forEach(function(e,t){var s=r[t];e.style.setProperty("margin-top",t*l+"px"),e.style.setProperty("top",t*l+"px"),e.style.setProperty("z-index",10-t),s.style.setProperty("height",`calc(-${(t<r.length-1?t+2:n)*l}px + 100vh)`),s.style.setProperty("top",`calc(${(t+1)*l}px)`),s.style.setProperty("margin-bottom",`calc(-${(t+1)*l}px)`),s.style.setProperty("max-height",`calc(-${(t<r.length-1?t+2:n)*l}px + 100vh)`),t<r.length-1&&o.observe(s),e.addEventListener("click",()=>{i[t].scrollIntoView({behavior:"smooth"})})}),new IntersectionObserver(e=>{e.forEach(o=>{s.forEach(function(e,t){var s;o.isIntersecting?(s=r[n-1].offsetTop-i[t].offsetTop-4*l,e.style.setProperty("top",""),e.style.setProperty("bottom",""),e.style.setProperty("position","relative"),e.style.setProperty("transform",`translate(0px, ${s}px)`)):(e.style.setProperty("top",t*l+"px"),e.style.setProperty("bottom","0px"),e.style.setProperty("transform",""),e.style.setProperty("position",""))})})}).observe(e.parentElement.nextElementSibling),r.forEach(function(e){e.addEventListener("scroll",function(){this.previousElementSibling.classList.toggle(a.TAG_SHADOW,0<this.scrollTop)})})}})}function initTariffsSelect(){const c={SELECT:".js-tariffs-select",DROPDOWN:".js-tariffs-select-dropdown",OPTION:".js-tariffs-select-option",ITEM:".js-tariffs-select-item",CURRENT:".js-tariffs-select-current",MODEL_BLOCKS:".js-tariffs-select-model-blocks"},d={OPENED:"opened",SELECTED:"selected",FILLED:"filled",VISIBLE:"visible"};var e=Array.from(document.querySelectorAll(c.SELECT));e.length&&e.forEach(function(e){const i=e.querySelector(c.DROPDOWN),r=Array.from(e.querySelectorAll(c.ITEM)),n=i.querySelector(c.CURRENT),l=Array.from(e.querySelectorAll(c.MODEL_BLOCKS));function a(e){i.contains(e.target)||(i.classList.remove(d.OPENED),document.removeEventListener("click",a))}i.addEventListener("click",e=>{var t,s,o,e=e["target"];i.classList.toggle(d.OPENED),e.matches(c.OPTION)&&(t=i.querySelector("."+d.SELECTED),s=e.dataset?.index,i.classList.add(d.FILLED),n.textContent=e.textContent,t&&t.classList.remove(d.SELECTED),e.classList.toggle(d.SELECTED),void 0!==s)&&(o=s,r.forEach(e
3=>{var t=e.dataset?.models.split(",");e.classList.toggle(d.VISIBLE,!!t&&t.includes(o))}),l.forEach(e=>e.classList.toggle(d.VISIBLE,e.dataset?.index===o))),i.classList.contains(d.OPENED)?document.addEventListener("click",a):document.removeEventListener("click",a)})})}function initTariffsSelectExtend(){const L={SELECT:".js-tariffs-select-extend",DROPDOWN:".js-tariffs-select-extend-dropdown",OPTION:".js-tariffs-select-extend-option",ITEM:".js-tariffs-select-extend-item",CURRENT:".js-tariffs-select-extend-current",MODEL_BLOCKS:".js-tariffs-select-extend-model-blocks",YEAR_TABS:".js-tariffs-select-extend-year-tabs",YEAR_TAB:".js-tariffs-select-extend-year-tab"},m={OPENED:"opened",SELECTED:"selected",VISIBLE:"visible",HIDDEN:"hidden",INACTIVE:"inactive"};var e=document.querySelectorAll(L.SELECT);e.length&&e.forEach(e=>{const r=e.querySelector(L.DROPDOWN),t=Array.from(e.querySelectorAll(L.ITEM)),n=r.querySelector(L.CURRENT),l=Array.from(e.querySelectorAll(L.MODEL_BLOCKS)),a=e.querySelector(L.YEAR_TABS),c=a?Array.from(a.querySelectorAll(L.YEAR_TAB)):[];let d="";const u=e=>{r.contains(e.target)||(r.classList.remove(m.OPENED),document.removeEventListener("click",u))},E=e=>{e=e.dataset.model;return d?d+"||"+e:e},p=s=>{t.forEach(e=>{var t=e.dataset?.models?e.dataset.models.split(","):[];e.classList.toggle(m.VISIBLE,t.includes(s))}),l.forEach(e=>e.classList.toggle(m.VISIBLE,e.dataset?.model===s))};r.addEventListener("click",e=>{var t,s,o,i,e=e["target"];r.classList.toggle(m.OPENED),e.matches(L.OPTION)&&(t=e.dataset?.name,d=t,(o=r.querySelector("."+m.SELECTED))&&o.classList.remove(m.SELECTED),e.classList.add(m.SELECTED),n.textContent=e.textContent.trim(),i=t,l.forEach(e=>e.classList.toggle(m.VISIBLE,e.dataset?.name===i)),c.length?(s=t,c.length&&(c.forEach(e=>{e.classList.remove(m.SELECTED)}),c.forEach(e=>{var t=(e.dataset?.models?e.dataset.models.split(","):[]).includes(s);e.classList.toggle(m.HIDDEN,!t),t?e.classList.remove(m.INACTIVE):e.classList.add(m.INACTIVE)}),o=c.some(e=>!e.classList.contains(m.HIDDEN)),a&&(a.classList.toggle(m.VISIBLE,o),a.classList.toggle(m.HIDDEN,!o)),o?(o=c.find(e=>!e.classList.contains(m.HIDDEN)))&&(o.classList.add(m.SELECTED),p(E(o))):p(s))):p(e.dataset?.model)),r.classList.contains(m.OPENED)?document.addEventListener("click",u):document.removeEventListener("click",u)}),a&&a.addEventListener("click",e=>{var e=e.target.closest(L.YEAR_TAB);!e||(e=e).classList.contains(m.HIDDEN)||(c.forEach(e=>{e.classList.contains(m.HIDDEN)||e.classList.remove(m.SELECTED)}),e.classList.add(m.SELECTED),p(E(e)))})})}
3const initCardDisclaimer=(e={})=>{const r={ROOT:"#wt-sky-root",DISCLAIMER:".js-card-disclaimer",LINK:".js-card-disclaimer-link",OVERLAY:".js-card-disclaimer-overlay",POPUP:".js-card-disclaimer-popup",CLOSE:".js-card-disclaimer-popup-close",INFO:".js-card-disclaimer-popup-info",INFO_WRAP:".js-card-disclaimer-popup-info-wrap"},n={ACTIVE:"active",BODY_NO_SCROLL:"no-scroll",INFO_FADE_TOP:"info-fade-top",INFO_FADE_BOTTOM:"info-fade-bottom",NO_WRAP:"flex-no-wrap"},l=e.portal||r.ROOT;if(!document.querySelectorAll(r.LINK).length)return;const a=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap;let E=null,s=null;const p=()=>{s||(s=new MutationObserver(()=>{const t=document.querySelector(l);t&&(document.querySelectorAll(r.POPUP+'[data-portal-pending="true"]').forEach(e=>{t.appendChild(e),e.removeAttribute("data-portal-pending")}),document.querySelector(r.POPUP+'[data-portal-pending="true"]')||(s.disconnect(),s=null))})).observe(document.documentElement||document.body,{childList:!0,subtree:!0})},o=e=>{var t=a.get(e);t?.parentNode&&(t.parentNode.insertBefore(e,t),t.remove()),a.delete(e)},L=(e,t)=>{e.setAttribute("role","dialog"),e.setAttribute("aria-modal","true"),e.setAttribute("aria-hidden",t?"false":"true")},m=e=>{var t,s;e instanceof HTMLElement&&((s=e.querySelector(r.INFO_WRAP)||e).scrollHeight>s.clientHeight+1?(t=s.scrollTop<=1,s=s.scrollTop+s.clientHeight>=s.scrollHeight-1,e.classList.toggle(n.INFO_FADE_TOP,!t),e.classList.toggle(n.INFO_FADE_BOTTOM,!s)):e.classList.remove(n.INFO_FADE_TOP,n.INFO_FADE_BOTTOM))},i=e=>{var t;e instanceof HTMLElement&&((t=d.get(e))&&(t.wrapEl.removeEventListener("scroll",t.onScroll),d.delete(e)),(t=u.get(e))&&(t.disconnect(),u.delete(e)),e.classList.remove(n.INFO_FADE_TOP,n.INFO_FADE_BOTTOM))},S=e=>{var t;e instanceof HTMLElement&&(e.removeEventListener("click",v),document.removeEventListener("keydown",f),(t=e.querySelector(r.INFO))&&i(t),e.classList.remove(n.ACTIVE),L(e,!1),document.querySelector(r.POPUP+"."+n.ACTIVE)||document.body.classList.remove(n.BODY_NO_SCROLL),o(e),t=c.get(e),c.delete(e),t&&"function"==typeof t.focus&&t.focus(),E===e)&&(E=null)},f=e=>{"Escape"===e.key&&E&&S(E)},v=e=>{e.target.closest(r.CLOSE)?(e.preventDefault(),S(E)):e.target.matches(r.OVERLAY)&&S(E)},h=e=>{var t,s,o,i;e instanceof HTMLElement&&(E&&E!==e&&S(E),o=e,a.has(o)||(t=document.createComment("popup:placeholder"),o.after(t),a.set(o,t)),(t=document.querySelector(l))?t.appendChild(o):((document.body||document.documentElement).appendChild(o),o.setAttribute("data-portal-pending","true"),p()),c.set(e,document.activeElement),L(e,!0),e.classList.add(n.ACTIVE),document.body.classList.add(n.BODY_NO_SCROLL),(t=e.querySelector(r.INFO))&&(s=t)instanceof HTMLElement&&((o=s.querySelector(r.INFO_WRAP)||s).addEventListener("scroll",i=()=>m(s),{passive:!0}),d.set(s,{wrapEl:o,onScroll:i}),(i=new ResizeObserver(()=>m(s))).observe(o),u.set(s,i),requestAnimationFrame(()=>m(s))),e.addEventListener("click",v),document.addEventListener("keydown",f),E=e)};document.addEventListener("click",e=>{var t=e.target.closest(r.LINK);t&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),e=t.getAttribute("data-popup"),t=document.getElementById(e))&&h(t)},!0);e=document.querySelectorAll(r.DISCLAIMER);if(e.length)e.forEach(e=>{var t,s,o;(o=(e=e).previousSibling)&&o.nodeType===Node.TEXT_NODE&&(s=(t=o.textContent).match(/(\S+)\s*$/))&&(s=s[1],o.textContent=t.replace(/\S+\s*$/,""),(o=document.createElement("span")).classList.add(n.NO_WRAP),o.textContent=s,e.parentNode.insertBefore(o,e),o.appendChild(e))})},initPostCarousel=()=>{const D={CAROUSEL:".js-post-carousel",TRACK:".js-post-carousel-track",SLIDE:".js-post-carousel-slide",IMAGE:".js-post-carousel-image",CONTENT:".js-post-carousel-content",OVERLAY:".js-post-carousel-overlay"};var e=document.querySelectorAll(D.CAROUSEL);if(!e.length)return!1;const b={XXL:1920,XL:1280,LG:960,MD:600},R=[{min:b.XXL,sizes:[561,513,465,417]},{min:b.XL,sizes:[487,437,397,357]},{min:b.LG,sizes:[321,289,257,223]},{min:b.MD,sizes:[289,265,241,217],visibleWidth:88},{min:0,sizes:[298,266,235,203],visibleWidth:16}],t=e=>{const l=e;var t=e.querySelector(D.TRACK),e=Array.from(e.querySelectorAll(D.SLIDE));const a=e.length;if(!t||!a)return;const c=4,o=.62,i=.9,r="power3.out";let n=0,d=!1,u=window.innerWidth,E=0,p=[],L=[],m=0;const S=e.map((e,t)=>(e.dataset.index=t,gsap.set(e,{xPercent:-50}),{slide:e,image:e.querySelector(D.IMAGE),overlay:e.querySelector(D.OVERLAY),
3content:e.querySelector(D.CONTENT)})),s=()=>{u=window.innerWidth;t=u;var t,s=R.find(e=>t>=e.min)||R[R.length-1],o=(d=u<b.MD,E=s.sizes[0],(p=s.sizes.map(e=>e/E)).map(e=>e*E/2));if(L=[0,0,0,0],null!=s.visibleWidth){let t=o[0];for(let e=1;e<c;e++)t+=s.visibleWidth,L[e]=t-o[e]}else for(let e=1;e<c;e++)L[e]=L[e-1]+o[e-1];var e=v(o,.5),i=v(L,.5);m=1.05*Math.max(0,e-i);const r=d?"50% 50%":"50% 100%";S.forEach(e=>gsap.set(e.image,{transformOrigin:r})),l.style.setProperty("--base",E+"px");let n=E;S.forEach(e=>{e.content&&(e=e.content.offsetTop+e.content.offsetHeight)>n&&(n=e)}),l.style.setProperty("--stage-h",Math.ceil(n)+"px"),h()},f=(e,t)=>{let s=(e-t)%a;return s>a/2&&(s-=a),s<=-a/2&&(s+=a),s},v=(e,t)=>{var s,o=e.length-1;return t<=0?e[0]:o<=t?(s=e[o]-e[o-1],e[o]+(t-o)*s):e[o=Math.floor(t)]+(e[o+1]-e[o])*(t-o)},h=()=>{S.forEach((e,t)=>{t=(e=>{var t=Math.abs(e),s=Math.sign(e),o=a/2,i=o-(Math.ceil(o)-1),o=Math.min(clamp(c-t),clamp((o-t)/i)),i=v(L,Math.min(t,c)),r=v(p,Math.min(t,c-1));let n=1e3-100*t,l;return d?0<=e?l=i:(l=e*(u+.5*E),n+=40*(1+e)):(l=s*i,0<t&&t<1&&(l+=s*m*Math.sin(t*Math.PI))),{translateX:l,scale:r,zIndex:Math.round(n),opacity:o,overlayOpacity:.4*Math.min(t,1),contentOpacity:clamp(1-2*t),isActive:t<.5}})(f(t,n));e.slide.style.zIndex=t.zIndex,e.content&&(e.content.style.pointerEvents=t.isActive?"auto":"none"),gsap.set(e.slide,{x:t.translateX,opacity:t.opacity}),gsap.set(e.image,{scale:t.scale}),e.overlay&&gsap.set(e.overlay,{opacity:t.overlayOpacity}),e.content&&gsap.set(e.content,{opacity:t.contentOpacity})})};let y=null;const g=(e,t)=>{y&&y.kill();Math.sign(e-n);const s={value:n};y=gsap.to(s,{value:e,duration:t??(d?i:o),ease:r,onUpdate:()=>{n=s.value,h()},onComplete:()=>{n=(Math.round(e)%a+a)%a,h(),y=null}})},O=e=>g(Math.round(n)+e);l.setAttribute("tabindex","0"),l.addEventListener("keydown",e=>{"ArrowLeft"===e.key&&O(-1),"ArrowRight"===e.key&&O(1)});let A=!1,P=!1,w=0,_=0,T=0,I=0,N=300;l.addEventListener("pointerdown",e=>{e.target.closest("a")||(y&&(y.kill(),y=null),A=!0,P=!1,I=0,w=e.clientX,_=e.clientY,T=n,N=Math.max(140,.5*E),l.classList.add("dragging"),l.setPointerCapture?.(e.pointerId))}),l.addEventListener("pointermove",e=>{var t,s;A&&(t=e.clientX-w,s=e.clientY-_,I=t,P=!P&&Math.abs(t)>Math.abs(s)&&5<Math.abs(t)||P)&&(e.preventDefault(),s=T-t/N,n=s,h())});l.addEventListener("pointerup",e=>{var t;A&&(A=!1,l.classList.remove("dragging"),Math.abs(I)<6?(e=(e=document.elementFromPoint(e.clientX,e.clientY))&&e.closest?e.closest(D.SLIDE):null)&&null!=e.dataset.index?(e=+e.dataset.index,t=Math.round(n),0!==(e=f(e,t))&&g(t+e)):g(Math.round(n)):g(Math.round(n),.4))}),l.addEventListener("pointercancel",()=>{A&&(A=!1,l.classList.remove("dragging"),g(Math.round(n),d?i:.4))});let C;window.addEventListener("resize",()=>{clearTimeout(C),C=setTimeout(s,120)}),s(),new IntersectionObserver((e,t)=>{e.some(e=>e.isIntersecting)&&(t.disconnect(),d||setTimeout(()=>O(1),500))},{rootMargin:"0px 0px -35% 0px"}).observe(l)};e.forEach(e=>t(e))},initMediaList=()=>{const d={BLOCK:".js-media-list",FILTERS:".js-media-list-filters",TAB:".js-media-list-tab",TAB_CONTENT:".js-media-list-tab-content",ITEM:".js-media-list-item",HEADER:".header",BLOCK_UGC:".js-slider-ugc"},u={STICKY:"sticky",HEADER_HIDDEN:"header_hidden",SELECTED:"selected",D_NONE:"d-none"};var e=document.querySelectorAll(d.BLOCK);if(e)e.forEach(e=>{{var t=e;const r=t.querySelector(d.FILTERS),s=t.querySelectorAll(d.TAB);if(s){const n=t.querySelectorAll(d.TAB_CONTENT),l=document.querySelector(d.HEADER),a=r.getBoundingClientRect().top+window.pageYOffset,c=t.offsetHeight-r.offsetHeight;let i=!1;t.addEventListener("ugcState",e=>i=e.detail.visible),window.addEventListener("scroll",()=>{var e=window.scrollY||document.documentElement.scrollTop,t=l?.offsetHeight||0,s=l?.classList.contains(u.HEADER_HIDDEN),o=r?.offsetHeight||0;e>a&&e<a+c?(e=(s?0:t)-(i?o:0),r.classList.add(u.STICKY),r.style.transform=e?`translateY(${e}px)`:"none"):(r.classList.remove(u.STICKY),r.style.transform="none")}),s?.forEach(e=>{e.addEventListener("click",o=>{o.target.classList.contains(u.SELECTED)||(s.forEach((e,t)=>{var s=e===o.target;e.classList.toggle(u.SELECTED,s),n[t].classList.toggle(u.D_NONE,!s),s&&n[t].querySelectorAll(d.BLOCK_UGC)?.forEach(e
3=>e.dispatchEvent(new Event("updateUGCBlock")))}),t.scrollIntoView({behavior:"smooth"}))})})}}})},BREAKPOINT="(min-width: 960px)",SHARED_SELECTORS={POPUP_LINK:".js-gallery-link",POPUP_TITLE:".js-gallery-popup-title",POPUP_EXTERNAL_VIDEO:".js-video-holder",SWIPER_NEXT:".swiper-button-next",SWIPER_PREV:".swiper-button-prev",SWIPER_PAGINATION:".swiper-pagination",SWIPER_SLIDE:".swiper-slide"},SHARED_CLASSES={LOADED:"loaded",READY:"ready",PLAYING:"playing",ACTIVE:"active"};let lastRotate=0;window.addEventListener("orientationchange",()=>{lastRotate=Date.now()}),window.matchMedia("(orientation: portrait)").addEventListener("change",()=>{lastRotate=Date.now()});const createGalleryPopup=({selectors:S,classes:f,swiperOptions:v={},breakpointOptions:h={},useSlideOffset:y=!1})=>{const g=window.matchMedia(BREAKPOINT);var e=Array.from(document.querySelectorAll(S.POPUP));e&&e.forEach(i=>{if(!i)return;var e=Array.from(i.parentNode.querySelectorAll(S.POPUP_LINK));if(!e)return;let r;function t(e){e.preventDefault(),i.classList.add(f.POPUP_OPEN),r&&r.slideTo(+this.dataset.index,0);var t=(e=r?E[r.realIndex]:E[0]).querySelector(S.POPUP_VIDEO),e=e.querySelector(S.POPUP_EXTERNAL_VIDEO);t&&(4!==t.readyState&&s(t),n(t)),e&&d(e.closest(S.POPUP_SLIDE))}const s=e=>{var t=e.querySelector("source");t&&t.dataset.src&&(t.src=t.dataset.src,e.load())},n=e=>{e.muted="true"===e.dataset.muted,e.play().catch(()=>{}),e.classList.add(f.PLAYING)},l=(e,t=!1)=>{e.pause(),e.classList.remove(f.PLAYING),t&&s(e)},a=l=>new Promise((e,t)=>{var s=l.querySelector(S.POPUP_EXTERNAL_VIDEO);if(s.classList.contains(f.LOADED))e(s.querySelector("iframe"));else{var o=s.querySelector("iframe");if(o)s.classList.add(f.LOADED),e(o);else{o=s.querySelector("template");if(o){var i,o=o.content.cloneNode(!0),r=o.querySelector("script");const n=o.querySelector("iframe");r&&r.src?((i=document.createElement("script")).src=r.src,i.addEventListener("load",()=>{e(n)},{once:!0}),i.addEventListener("error",()=>{console.error("ÐÑибка загÑÑзки ÑкÑипÑа"),t()},{once:!0}),r.replaceWith(i)):e(n),s.append(o),s.classList.add(f.LOADED)}else e(null)}}}),o=new WeakMap,c=async e=>{var i,t;return o.has(e)?o.get(e):(i=3e3,await new Promise((e,t)=>{if(window.VK&&window.VK.VideoPlayer)return e();const s=Date.now(),o=setInterval(()=>{window.VK&&window.VK.VideoPlayer&&(clearInterval(o),e()),Date.now()-s>i&&(clearInterval(o),t(new Error("Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ VK SDK")))},100)}),t=VK.VideoPlayer(e),o.set(e,t),t)},d=async e=>{var t=e.dataset.type;try{var s=await a(e);if(s)switch(t){case"youtube":s.contentWindow.postMessage(JSON.stringify({event:"command",func:"playVideo"}),"*");break;case"vkvideo":const o=await c(s),i=()=>{o.unmute(),o.play()};let e=!1;o.on(VK.VideoPlayer.Events.STARTED,()=>{e=!0}),i(),setTimeout(()=>{e||i()},500);break;case"rutube":s.contentWindow.postMessage(JSON.stringify({type:"player:unMute"}),"*"),s.contentWindow.postMessage(JSON.stringify({type:"player:play"}),"*");break;default:console.log("default")}}catch(e){console.error("ÐÑибка пÑи загÑÑзке видео:",e)}},u=async e=>{var t=e.dataset.type,s=e.querySelector("iframe");if(s)switch(t){case"youtube":s.contentWindow.postMessage(JSON.stringify({event:"command",func:"pauseVideo"}),"*");break;case"vkvideo":var o=await c(s);o.pause(),o.seek(0);break;case"rutube":s.contentWindow.postMessage(JSON.stringify({type:"player:pause"}),"*");break;default:s.remove(),e.querySelector(S.POPUP_EXTERNAL_VIDEO).classList.remove(f.LOADED)}},E=(e.forEach(e=>e.addEventListener("click",t)),i.querySelectorAll(S.POPUP_SLIDE));if(E.length){const p=i.querySelector(S.POPUP_SLIDER);if(p){let o=!1;i.addEventListener("pointerdown",e=>{o=e.target.matches(S.POPUP_CLOSE)}),i.addEventListener("click",e=>{var t,s;Date.now()-lastRotate<800||(e=e["target"],e.matches(S.POPUP_PLAY)&&(t=e.closest(S.POPUP_SLIDE).querySelector(S.POPUP_VIDEO),s=e.closest(S.POPUP_SLIDE).querySelector(S.POPUP_EXTERNAL_VIDEO),t&&(t.paused?n:l)(t),s)&&d(s.closest(S.POPUP_SLIDE)),S.POPUP_SOUND&&e.matches(S.POPUP_SOUND)&&(t=e.closest(S.POPUP_SLIDE).querySelector(S.POPUP_VIDEO))&&(t.dataset.muted=t.muted=!t.muted,e.classList.toggle(f.ACTIVE,t.muted)),e.matches(S.POPUP_VIDEO)&&l(e),e.matches(S.POPUP_CLOSE)&&o&&(o=!1,i.classList.remove(f.POPUP_OPEN),document.body.classList.remove(f.BODY_NO_SCROLL),(s=r.slides[r.activeIndex]).dataset?.type)&&("video"===s.dataset.type?l(s.querySelector(S.POPUP_VIDEO),!0):u(s)))});const L=e=>{var t,e=e.slides[e.activeIndex];
3e&&(t=e.querySelector(S.POPUP_FOOTER))&&(e.style.paddingTop=t.offsetHeight/2+"px")};if(1<E.length){e={slideChangeTransitionEnd:e=>{var e=e.slides[e.activeIndex].querySelector(S.POPUP_VIDEO),t=p.querySelectorAll(S.POPUP_VIDEO),e=(e&&4!==e.readyState&&s(e),t.length&&t.forEach(e=>l(e)),Array.from(p.querySelectorAll(S.POPUP_EXTERNAL_VIDEO)).filter(e=>e.querySelector("iframe")));e.length&&e.forEach(e=>u(e.closest(S.SWIPER_SLIDE)))}};y&&(e.init=e=>{g.matches||L(e)},e.slideChange=e=>{g.matches||L(e)});const m={[BREAKPOINT]:{pagination:!1}};Object.entries(h).forEach(([e,t])=>{m[e]={...m[e],...t}}),r=new Swiper(p,{slidesPerView:1,slidesPerGroup:1,spaceBetween:0,preloadImages:!1,keyboard:!0,watchSlidesProgress:!0,navigation:{nextEl:i.querySelector(S.SWIPER_NEXT),prevEl:i.querySelector(S.SWIPER_PREV)},pagination:{el:S.SWIPER_PAGINATION,type:"fraction"},...v,breakpoints:m,on:e})}}}})},initGalleryPopup=()=>createGalleryPopup({selectors:{...SHARED_SELECTORS,POPUP:".js-gallery-popup",POPUP_CLOSE:".js-gallery-popup-close",POPUP_SLIDE:".js-gallery-popup-slide",POPUP_SLIDER:".js-gallery-popup-slider",POPUP_VIDEO:".js-gallery-popup-video",POPUP_PLAY:".js-gallery-popup-play",POPUP_SOUND:".js-gallery-popup-sound",POPUP_FOOTER:".js-gallery-popup-footer",POPUP_PAGINATION_SLIDER:".js-gallery-popup-pagination-slider",POPUP_PAGINATION:".js-popup-reviews-pagination"},classes:{...SHARED_CLASSES,POPUP_OPEN:"gallery-popup_show"},swiperOptions:{watchSlidesProgress:!0,observer:!0,observeParents:!0,pagination:{el:".js-popup-reviews-pagination",type:"fraction"}},useSlideOffset:!0}),initUserAgreements=()=>{const e="notify-form",t=".js-notify-form-item",s=".cookie-popup__container",o=".cookie-popup__footer",i={TEXT_CLASS:["form__item-title","large-text"],STICKY_FOOTER:"is-sticky"};const r=window.matchMedia("(min-width: 600px)");var n=document.getElementById(e);if(n){var l,a=n.querySelectorAll(t);2<=a.length&&(a=a[1],(l=document.createElement("div")).classList.add(...i.TEXT_CLASS),l.textContent="ÐÑполÑзование cookie-Ñайлов",a.prepend(l));const c=n.closest(s),d=c?c.querySelector(o):null;c&&d&&(c.addEventListener("scroll",()=>{var e,t,s,o;e=c,t=d,s=i.STICKY_FOOTER,r.matches?t.classList.remove(s):(o=e.scrollHeight>e.clientHeight,e=e.scrollHeight-e.scrollTop<=e.clientHeight+5,t.classList.toggle(s,o&&e))}),c.dispatchEvent(new Event("scroll")))}},initSliderUGC=()=>{const P={BLOCK:".js-slider-ugc",CONTENT:".js-slider-ugc-content",ITEMS:".js-slider-ugc-items",ITEM:".js-slider-ugc-item",BULLET:".js-slider-ugc-bullet",MODAL_LINK:".js-slider-ugc-more",MODAL:".js-slider-ugc-modal",MODAL_CLOSE:".js-slider-ugc-modal-close",MODAL_BOX:".js-slider-ugc-modal-box",MODAL_SLIDER:".js-slider-ugc-modal-slider",MODAL_SLIDE:".js-slider-ugc-modal-slide",MODAL_IMG:".js-slider-ugc-modal-img",MODAL_THUMBS:".js-slider-ugc-thumbs",MODAL_THUMBS_PREV:".js-slider-ugc-thumbs-prev",MODAL_THUMBS_NEXT:".js-slider-ugc-thumbs-next",MODAL_THUMB:".js-slider-ugc-thumb",BLOCK_MEDIA_LIST:".js-media-list",BLOCK_MEDIA_LIST_TAB_CONTENT:".js-media-list-tab-content"},w={ACTIVE:"active",D_NONE:"d-none"};var e=document.querySelectorAll(P.BLOCK);if(e){const _=window.matchMedia("(min-width: 960px)"),t=t=>{const s=t.querySelector(P.CONTENT),o=t.querySelector(P.ITEMS),i=t.querySelector(P.ITEM),r=t.querySelectorAll(P.BULLET),n=t.closest(P.BLOCK_MEDIA_LIST_TAB_CONTENT),l=n.closest(P.BLOCK_MEDIA_LIST);let a,c,d,u,E,p,L,m=-1;const S=()=>{var e=window.pageYOffset||document.documentElement.scrollTop;let t=c-e;n.classList.contains(w.D_NONE)||l?.dispatchEvent(new CustomEvent("ugcState",{detail:{visible:-d<t&&t<0}})),(t=0<t?0:t)<-d&&(t=-d),a.style.translate=t+"px";const s=Math.floor((document.documentElement.clientWidth-t-E+L)/(p+L))-1;s!==m&&(m=s,r.forEach((e,t)=>e.classList.toggle(w.ACTIVE,t===s)))},e=()=>{var e=_.matches?0:2*parseInt(getComputedStyle(s).paddingLeft,10);a=_.matches?s:o,c=offset(t).top,d=a.offsetWidth-document.documentElement.clientWidth+e,u=d+document.documentElement.clientHeight,E=offset(o).left,p=i.offsetWidth,L=parseInt(getComputedStyle(o).gap,10),t.style.height=u+"px",S()},f=(window.addEventListener("scroll",S),window.addEventListener("resize",e),e(),e=>{e=parseInt(e.target.dataset.index,10);let t=(p+L)*(e+1)+E-document.documentElement.clientWidth;t<0&&(t=0),window.scrollTo({top:c+t,behavior:"smooth"})});
3r.forEach(e=>e.addEventListener("click",f)),t.addEventListener("updateUGCBlock",()=>e());var v=t.querySelector(P.MODAL);if(v){var h=v.querySelector(P.MODAL_SLIDER);const y=h.querySelectorAll(P.MODAL_THUMBS),g=new Swiper(h,{slidesPerView:1,slidesPerGroup:1,threshold:10,navigation:{nextEl:h.querySelector(".swiper-button-next"),prevEl:h.querySelector(".swiper-button-prev")},watchSlidesVisibility:!0}),O=createModal(v,{closeSelector:P.MODAL_CLOSE,boxSelector:P.MODAL_BOX,onOpen:e=>{g.slideTo(e,0),g.update(),y.forEach(e=>e.dispatchEvent(new Event("updateThumbs")))}});h=t.querySelectorAll(P.MODAL_LINK);const A=e=>{O.open(e.target.dataset.index)};h.forEach(e=>e.addEventListener("click",A));v=t.querySelectorAll(P.MODAL_SLIDE);if(v)v.forEach(e=>{{const t=e.querySelectorAll(P.MODAL_IMG),s=e.querySelector(P.MODAL_THUMBS),o=e.querySelector(P.MODAL_THUMBS_PREV),i=e.querySelector(P.MODAL_THUMBS_NEXT),r=Array.from(e.querySelectorAll(P.MODAL_THUMB)),n=(e=()=>{o.classList.toggle(w.ACTIVE,0<s.scrollLeft),i.classList.toggle(w.ACTIVE,s.scrollLeft+s.clientWidth<s.scrollWidth)},s.addEventListener("scroll",e),s.addEventListener("updateThumbs",e),window.addEventListener("resize",e),e=>{s.scrollTo({left:s.scrollLeft+112*e,behavior:"smooth"})}),l=(i.addEventListener("click",()=>n(1)),o.addEventListener("click",()=>n(-1)),e=>{const s=r.indexOf(e.currentTarget);r.forEach((e,t)=>e.classList.toggle(w.ACTIVE,t===s)),t.forEach((e,t)=>e.classList.toggle(w.ACTIVE,t===s))});r.forEach(e=>e.addEventListener("click",l))}})}};e.forEach(e=>{t(e)})}};function initContacts(){const p={BLOCK:".js-dc-contacts",TAB_BTN:".js-dc-contacts-tab-btn",TAB_CONTENT:".js-dc-contacts-tab-content",MAP:"#js-dc-contacts-map"},L={ACTIVE:"active"};var e=[...document.querySelectorAll(p.BLOCK)];const m=window.matchMedia("(min-width: 960px)");e.length&&e.forEach(function(e){const n=[...e.querySelectorAll(p.TAB_BTN)],l=[...e.querySelectorAll(p.TAB_CONTENT)];let o=null,a=null;const s=16;let c,d,i,r;n.forEach(function(o){o.addEventListener("click",function(e){var t="A"===o.tagName&&o.getAttribute("href"),s=o.classList.contains(L.ACTIVE);t||s||(e.preventDefault(),u(o,l))})}),n.length<=1&&l[0].classList.add(L.ACTIVE);function u(t,e){var s;e.forEach(function(e){e.classList.remove(L.ACTIVE)}),s=t.id,n.forEach(function(e){e.id==s?e.classList.add(L.ACTIVE):e.classList.remove(L.ACTIVE)}),e.forEach(function(e){e.id===t.id&&e.classList.add(L.ACTIVE)}),o&&(o.container.fitToViewport(),E(t.id))}function E(t){const i=t&&"all"!==t?dealers.filter(e=>e.id==t):dealers,r=(o.geoObjects.remove(a),a.removeAll(),1==i.length);function e(){var e;m.matches?(e=o.getCenter(),o.setCenter([e[0],e[1]+-.0062],o.getZoom())):(e=i[0],o.setCenter(e.coord,o.getZoom(),{duration:500}))}i.forEach(function(s){const o=s.id;var e=new ymaps.Placemark(s.coord,{hintContent:s.name},{iconLayout:1===i.length?d:c,iconShape:{type:"Rectangle",coordinates:[[-23,-57],[22,3]]}});a.add(e),e.events.add("mouseenter",function(e){e.get("target").options.set({iconLayout:d})}).add("mouseleave",function(e){e.get("target").options.set({iconLayout:1===i.length?d:c})}).add("click",function(e){var t;s.url&&!r&&(window.location.href=s.url),!s.url&&!r&&(e.get("target").options.set({iconLayout:d}),t=o,e=n.find(e=>e.id===t))&&(u(e,l),E(t))})}),o.geoObjects.add(a),o.setBounds(a.getBounds(),{useMapMargin:!0,callback:function(){1==a.getLength()&&o.setZoom(s)}}),i.length<2&&o.setZoom(s),1===i.length&&(m.addEventListener("change",e),e())}!function(){function t(){(o=new ymaps.Map(p.MAP.substring(1),{center:[55.751238,37.625393],zoom:s,controls:[]},{balloonPanelMaxMapArea:0,suppressMapOpenBlock:!0})).behaviors.disable("scrollZoom"),function(){var e=navigator.userAgent;return/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(e)}()&&(o.behaviors.disable("drag"),o.behaviors.enable("multiTouch")),i=ymaps.templateLayoutFactory.createClass('<div class="dc-map__zoom"><div id="zoom-in" class="dc-map__zoom-in"></div><div id="zoom-out" class="dc-map__zoom-out"></div></div>',{build:function(){i.superclass.build.call(this),document.getElementById("zoom-in").addEventListener("click",this.zoomIn.bind(this)),document.getElementById("zoom-out").addEventListener("click",this.zoomOut.bind(this))},clear:function(){document.getElementById("zoom-in").removeEventListener("click",this.zoomIn.bind(this)),document.getElementById("zoom-out").removeEventListener("click",this.zoomOut.bind(this)),i.superclass.clear.call(this)},zoomIn:function(){var e=this.getData().control.getMap();e.setZoom(e.getZoom()+1,{checkZoomRange:!0})},zoomOut:function(){var e=this.getData().control.getMap();e.setZoom(e.getZoom()-1,{checkZoomRange:!0})}}),r=new ymaps.control.ZoomControl({options:{layout:i}}),o.controls.add(r),c=ymaps.templateLayoutFactory.createClass('<div class="dc-map__pin"></div>'),d=ymaps.templateLayoutFactory.createClass('<div class="dc-map__pin dc-map__pin_current"></div>'),a=new ymaps.Clusterer({clusterIconLayout:ymaps.templateLayoutFactory.createClass('<div class="dc-map__multi-pin">{{ properties.geoObjects.length }}</div>'),clusterIconShape:{type:"Rectangle",coordinates:[[-22,-22],[23,23]]}}),o.controls.add(r),E()}e.querySelector(p.MAP)&&!function e(){"undefined"!=typeof ymaps?ymaps.ready(t):setTimeout(e,500)}()}()})}initTextAnimation(),document.addEventListener("DOMContentLoaded",()=>{initObjectFitFallback(),initScroll(),initLineAnimation(),initVideoPoster(),initSliderModelRange(),initModelColors(),initHeader(),initSliderFlow(),initSliderFlow4(),initSliderHero(),initSliderFlow2(),initAccordionTabs(),initSliderColumn(),initSliderGallery(),initSliderGalleryNarrow(),initSliderParams(),initAccordion(),initFooter(),initMediaFeatures(),initFooterModel(),initCookiePo
3pup(),initLatestNews(),initModelMenu(),initMediaFullscreen(),initClickOverlay(),initFloatMenu(),setUTMParams(),initMediaVideoStandard(),initUspSlider(),initMediaFullscreenStandard(),initAccordionImages(),initSliderFlowAccordion(),initPopups(),initTableResponsive(),initAccsMenu(),initSliderAccsCollections(),initDisclaimer(),initHeroMask(),initSliderFinance(),initTooltip(),initStages(),initSliderTariffs(),initTariffsSelect(),initAccordionCards(),initCardDisclaimer(),initTariffsSelectExtend(),initPostCarousel(),initMediaList(),initSliderVideoGallery(),initSliderAnnounce(),initGalleryPopup(),initUserAgreements(),initVideoHover(),initSliderUGC()}),document.addEventListener("DOMContentLoaded",function(){initContacts()});
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.