(()=>{"use strict";function e(){if(location.hash)return location.hash.replace("#","")}let t=!0,o=(e=500)=>{let o=document.querySelector("body");if(t){let n=document.querySelectorAll("[data-lp]");setTimeout((()=>{for(let e=0;e{let o=document.querySelector("body");if(t){let n=document.querySelectorAll("[data-lp]");for(let e=0;e{window.FLS&&console.log(e)}),0)}let c=(e,t=!1,n=500,c=0)=>{const l=document.querySelector(e);if(l){let a="",i=0;t&&(a="header.header",i=document.querySelector(a).offsetHeight);let d={speedAsDuration:!0,speed:n,header:a,offset:c,easing:"easeOutQuad"};if(document.documentElement.classList.contains("menu-open")&&(o(),document.documentElement.classList.remove("menu-open")),"undefined"!=typeof SmoothScroll)(new SmoothScroll).animateScroll(l,"",d);else{let e=l.getBoundingClientRect().top+scrollY;e=i?e-i:e,e=c?e-c:e,window.scrollTo({top:e,behavior:"smooth"})}s(`[gotoBlock]: Юхуу...едем к ${e}`)}else s(`[gotoBlock]: Ой ой..Такого блока нет на странице: ${e}`)},l=!1;setTimeout((()=>{if(l){let e=new Event("windowScroll");window.addEventListener("scroll",(function(t){document.dispatchEvent(e)}))}}),0),function(){const e=document.querySelector(".video-player"),t=e.querySelector(".video");e.querySelector(".play-button").addEventListener("click",(e=>{t.paused?t.play():t.pause()})),document.getElementById("play").onclick=function(){document.getElementById("play").classList.add("play--play-hidden")}}();const a=document.querySelectorAll("._anim-items");if(a.length>0){function i(){for(let e=0;ewindow.innerHeight&&(c=window.innerHeight-window.innerHeight/s),pageYOffset>n-c&&pageYOffset{i()}),300)}!function(e){let t=new Image;t.onload=t.onerror=function(){e(2==t.height)},t.src="data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA"}((function(e){let t=!0===e?"webp":"no-webp";document.documentElement.classList.add(t)})),document.querySelector(".icon-menu")&&document.addEventListener("click",(function(e){t&&e.target.closest(".icon-menu")&&(((e=500)=>{document.documentElement.classList.contains("lock")?o(e):n(e)})(),document.documentElement.classList.toggle("menu-open"))})),function(){function t(e){if("click"===e.type){const t=e.target;if(t.closest("[data-goto]")){const o=t.closest("[data-goto]"),n=o.dataset.goto?o.dataset.goto:"",s=!!o.hasAttribute("data-goto-header"),l=o.dataset.gotoSpeed?o.dataset.gotoSpeed:500,a=o.dataset.gotoTop?parseInt(o.dataset.gotoTop):0;c(n,s,l,a),e.preventDefault()}}else if("watcherCallback"===e.type&&e.detail){const t=e.detail.entry,o=t.target;if("navigator"===o.dataset.watch){document.querySelector("[data-goto]._navigator-active");let e;if(o.id&&document.querySelector(`[data-goto="#${o.id}"]`))e=document.querySelector(`[data-goto="#${o.id}"]`);else if(o.classList.length)for(let t=0;t=n?(!e.classList.contains("_header-scroll")&&e.classList.add("_header-scroll"),t&&(a>c?e.classList.contains("_header-show")&&e.classList.remove("_header-show"):!e.classList.contains("_header-show")&&e.classList.add("_header-show"),s=setTimeout((()=>{!e.classList.contains("_header-show")&&e.classList.add("_header-show")}),o))):(e.classList.contains("_header-scroll")&&e.classList.remove("_header-scroll"),t&&e.classList.contains("_header-show")&&e.classList.remove("_header-show")),c=a<=0?0:a}))}()})();