function t_animate__getAttrByRes(t,a){var e,n=$(window).width();return n>=1200?e=t.attr("data-animate-"+a):"y"==t.closest(".t396__elem").attr("data-animate-mobile")?n>=960?((e=t.attr("data-animate-"+a+"-res-960"))||(e=t.attr("data-animate-"+a)),e):n>=640?((e=t.attr("data-animate-"+a+"-res-640"))||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):n>=480?((e=t.attr("data-animate-"+a+"-res-480"))||(e=t.attr("data-animate-"+a+"-res-640")),e||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):n>=320?((e=t.attr("data-animate-"+a+"-res-320"))||(e=t.attr("data-animate-"+a+"-res-480")),e||(e=t.attr("data-animate-"+a+"-res-640")),e||(e=t.attr("data-animate-"+a+"-res-960")),e||(e=t.attr("data-animate-"+a)),e):void 0:void t.css("transition","none")}function t_animate__init(){if(1==window.isSearchBot||"yes"==$(".t-records").attr("data-blocks-animationoff")||t_animate__checkIE()||"edit"==$(".t-records").attr("data-tilda-mode"))$(".t-animate").removeClass("t-animate");else{t_animate__wrapTextWithOpacity(),t_animate__addNoHoverClassToBtns(),$("[data-animate-style=fadeinleft]:not(.t396__elem)").length>0&&$(".t-records#allrecords").css("overflow-x","hidden");var t=$(".t-animate[data-animate-style='animatednumber']");$(window).width()>=1200&&t_animate__parseNumberText(t),setTimeout(function(){t_animate__startAnimation()},1500)}}function t_animate__checkMobile(t){return t.filter(function(){return"y"===$(this).closest(".t396__elem").attr("data-animate-mobile")||($(this).removeClass("t-animate"),!1)}),t}function t_animate__startAnimation(){var t=$(".r").has(".t-animate[data-animate-group=yes]"),a=$(".r").has(".t-animate[data-animate-chain=yes]"),e=$(".t-animate:not([data-animate-group=yes]):not([data-animate-chain=yes])");function n(){t_animate__getGroupsOffsets(t),t_animate__getChainOffsets(a),t_animate__getElemsOffsets(e)}$(window).width()<1200&&(t=t_animate__checkMobile(t),a=t_animate__checkMobile(a),e=t_animate__checkMobile(e)),(void 0!==t&&0!=t.length||void 0!==e&&0!=e.length||void 0!==a&&0!=a.length)&&(t_animate__setAnimationState(t,a,e),t=t.filter(".r:has(.t-animate_wait)"),e=e.filter(".t-animate_wait"),a=a.filter(".r:has(.t-animate_wait)"),n(),$(window).bind("resize",t_throttle(n,200)),setInterval(n,5e3),$(window).bind("scroll",t_throttle(function(){t_animate__animateOnScroll(t,a,e)},200)),$(".r").find(".t-popup").bind("scroll",t_throttle(function(){var t=$(window).scrollTop()+$(window).height(),a=$(this).has(".t-animate[data-animate-chain=yes]");0!==a.length&&(t_animate__setAnimationStateChains(a),t_animate__getChainOffsets(a=a.filter(".r:has(.t-animate_wait)")),t_animate__animateChainsBlocks(a,t))},200)))}function t_animate__animateOnScroll(t,a,e){if(0!=t.length||0!=a.length||0!=e.length){var n=$(window).scrollTop(),i=n+$(window).height();if($("body").is(":animated")){for(var s=0;sa||0==n.find(".t-animate_wait").length||(t_animate__animateChainItemsOnScroll(t,e,a),0==t[e].itemsOffsets.length&&(t.splice(e,1),e--),t_animate__checkSectionButtonAnimation__outOfTurn(n))}}function t_animate__animateChainItemsOnScroll(t,a,e){var n=$(t[a]),i=n.find(".t-animate_wait[data-animate-chain=yes]"),s=0,r=0,o=t[a].itemsOffsets[0],_=t_animate__getDelayFromPreviousScrollEvent(n,i,.16),m=t_animate__getSectionHeadDealy(n);$(i[0]).addClass("t-animate__chain_first-in-row");for(var d=0;d0){var s=e.replace(/[^\d., ]+/g,"").match(/\d+\.\d+|\d+,\d+/g),r=e.replace(/
/g," ").replace(/[^\d., ]+/g,"").replace(/ (\.|,)/g,"").replace(/(\d)(?=\d) /g,"$1").trim(),o=r;if(-1===e.indexOf(r)&&(o=r=r.split(" ")[0]),""!==r){var _;if(t.attr("data-animate-number-count",e),null!==s)if(-1!==r.indexOf(",")&&(_=r.split(",")),-1!==r.indexOf(".")&&(_=r.split(".")),-1!==r.indexOf(",")||-1!==r.indexOf(".")){var m=_[1].length;r=(r=+_.join(".")).toFixed(m)}t_animate__changeNumberOnZero(t,e.replace(o,"num")),t.find("span:not(.t-animate__number)").each(function(){$(this).attr("style",n)})}}})}function t_animate__changeNumberOnZero(t,a){var e=a.replace(/num/g,'0');t.html(e)}function t_animate__animateNumbers(t){t.each(function(){var t=$(this),a=t.attr("data-animate-number-count"),e=[];if(t.find("span:not(.t-animate__number):first").each(function(){e=$(this).attr("style")}),a){var n=a.match(/\d+\.\d+|\d+,\d+/g),i=a.match(/\d+/g),s=[];a.replace(/(\d)(?= \d) /g,"$1").split(" ").forEach(function(t){isNaN(parseInt(t.replace(/[^\d., ]+/g,""),10))||s.push(t.replace(/[^\d., ]+/g,""))});var r=0,o=!1;t.removeAttr("data-animate-number-count"),null!==n&&(o=-1!=n[0].indexOf(",")),s.forEach(function(t,a){var e;null!==n&&(-1!==t.indexOf(",")&&(e=t.split(",")),-1!==t.indexOf(".")&&(e=t.split(".")),-1===t.indexOf(",")&&-1===t.indexOf(".")||(r=e[1].length,s[a]=+e.join("."),!0))});var _=[];t.find(".t-animate__number").each(function(){_.push($(this).text())}),s.forEach(function(n,s){void 0!==_[s]&&$({animateCounter:_[s]}).animate({animateCounter:n},{duration:1500,easing:"swing",step:function(a){var e,_=t.find(".t-animate__number")[s],m=Math.pow(10,r);e=a?(Math.round(this.animateCounter*m)/m).toFixed(r)+"":Math.floor(this.animateCounter)+"",i.length>1&&(e=e.replace(/(\d)(?=(\d{3})+([^\d]|$))/g,"$1 ")),o&&(e=e.replace(/\./g,","),n=(n+"").replace(/\./g,",")),$(_).text(e)},complete:function(){t.html(a),t.find("span").each(function(){$(this).attr("style",e)})}})})}})}function t_animate__setAnimationState(t,a,e){var n=$(window).scrollTop(),i=n+$(window).height();t.each(function(){var t=$(this),a=t.find(".t-animate:not([data-animate-chain=yes])");if(0===a.first().length)return!0;var e=a.first().offset().top;if(t_animate__removeAnimFromHiddenSlides(t),t_animate__assignGroupDelay(t,t_animate__assignSectionDelay(t)),a.hasClass("t-animate_no-hover")&&1===a.parents(".t400__off").length&&a.removeClass("t-animate_no-hover"),e<=n-100)return t_animate__saveSectionHeaderStartTime(t),a.removeClass("t-animate t-animate_no-hover"),a.css("transition-delay",""),!0;en-100&&(t_animate__makeSectionButtonWait(t),t_animate__removeNoHoverClassFromBtns(a=a.filter(".t-animate:not(.t-animate__btn-wait-chain)")),a.addClass("t-animate_started")),e>=i&&a.addClass("t-animate_wait")}),a.each(function(){var t=$(this);t_animate__assignChainDelay(t,i,n),t_animate__checkSectionButtonAnimation__outOfTurn(t)}),e.each(function(){var t=$(this),a=t.offset().top;if(a=e&&t.addClass("t-animate_wait")}),$(window).bind("resize",t_throttle(t_animate__removeInlineAnimStyles,200))}function t_animate__setAnimationStateChains(t){var a=$(window).scrollTop(),e=a+$(window).height();t.each(function(){var t=$(this);t_animate__assignChainDelay(t,e,a),t_animate__checkSectionButtonAnimation__outOfTurn(t)})}function t_animate__assignSectionDelay(t){var a=0,e=t.find(".t-section__title.t-animate"),n=t.find(".t-section__descr.t-animate");return e.length&&(a=.16),n.length&&(n.css("transition-delay",a+"s"),a+=.16),a}function t_animate__assignGroupDelay(t,a){var e=0;if(t.find("[data-animate-order]").length)t_animate__assignOrderedElemsDelay(t,a);else{var n=t.find(".t-img.t-animate"),i=t.find(".t-uptitle.t-animate"),s=t.find(".t-title.t-animate:not(.t-section__title)"),r=t.find(".t-descr.t-animate:not(.t-section__descr)"),o=t.find(".t-btn.t-animate:not(.t-section__bottomwrapper .t-btn)"),_=t.find(".t-timer.t-animate"),m=t.find("form.t-animate");0!=n.length&&(e=.5),0!=s.length&&s.css("transition-delay",e+"s"),0!=s.length&&(e+=.3),0!=r.length&&r.css("transition-delay",e+"s"),0!=r.length&&(e+=.3),0!=i.length&&i.css("transition-delay",e+"s"),0!=i.length&&(e+=.3),0==i.length&&0==s.length&&0==r.length||(e+=.2),0!=_.length&&_.css("transition-delay",e+"s"),0!=_.length&&(e+=.5),0!=o.length&&$(o.get(0)).css("transition-delay",e+"s"),2==o.length&&(e+=.4),2==o.length&&$(o.get(1)).css("transition-delay",e+"s"),0!=m.length&&m.css("transition-delay",e+"s")}}function t_animate__assignOrderedElemsDelay(t,a){var e=0;void 0!==a&&a&&(e=a);var n=t.find(".t-animate[data-animate-order=1]"),i=t.find(".t-animate[data-animate-order=2]"),s=t.find(".t-animate[data-animate-order=3]"),r=t.find(".t-animate[data-animate-order=4]"),o=t.find(".t-animate[data-animate-order=5]"),_=t.find(".t-animate[data-animate-order=6]"),m=t.find(".t-animate[data-animate-order=7]"),d=t.find(".t-animate[data-animate-order=8]"),l=t.find(".t-animate[data-animate-order=9]");n.length&&n.css("transition-delay",e+"s"),n.length&&i.length&&(e+=1*t_animate__getAttrByRes(i,"delay"),i.css("transition-delay",e+"s")),(n.length||i.length)&&s.length&&(e+=1*t_animate__getAttrByRes(s,"delay"),s.css("transition-delay",e+"s")),(n.length||i.length||s.length)&&r.length&&(e+=1*t_animate__getAttrByRes(r,"delay"),r.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length)&&o.length&&(e+=1*t_animate__getAttrByRes(o,"delay"),o.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||o.length)&&_.length&&(e+=1*t_animate__getAttrByRes(_,"delay"),_.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||o.length||_.length)&&m.length&&(e+=1*t_animate__getAttrByRes(m,"delay"),m.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||o.length||_.length||m.length)&&d.length&&(e+=1*t_animate__getAttrByRes(d,"delay"),d.css("transition-delay",e+"s")),(n.length||i.length||s.length||r.length||o.length||_.length||m.length||d.length)&&l.length&&(e+=1*t_animate__getAttrByRes(l,"delay"),l.css("transition-delay",e+"s"))}function t_animate__assignChainDelay(t,a,e){var n=t.find(".t-animate[data-animate-chain=yes]"),i=0;if(0!=n.length){var s=$(n[0]).offset().top;$(n[0]).addClass("t-animate__chain_first-in-row");var r=t_animate__getCurBlockSectionHeadDelay(t);n.each(function(){var o=$(this),_=o.offset().top;if(_0&&(t[a].curTopOffset=$(t[a].querySelector(".t-animate")).offset().top)}function t_animate__getChainOffsets(t){for(var a=0;a0&&(t[a].itemsOffsets[n]=$(e[n]).offset().top)}}function t_animate__getElemsOffsets(t){for(var a=0;a=0){var n=$(a).css("opacity");void 0!==n&&n>0&&($(a).css("opacity",""),$(a).wrapInner('
'))}})}function t_animate__checkIE(){var t=window.navigator.userAgent,a=t.indexOf("MSIE"),e="",n=!1;return a>0&&(8!=(e=parseInt(t.substring(a+5,t.indexOf(".",a))))&&9!=e||(n=!0)),n}$(document).ready(function(){t_animate__init()});