"use strict";function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}!function(Y){var $=Y(window),i=Y("body"),Q=0,J=575,K=768,Z=992,ee=1200,n=1199,t=null,e=null,a=0,o=0,te=[],s=document.getElementsByClassName("swiper-container"),r=document.querySelectorAll(".swiper-container[data-destroy]");function l(){t=window.innerWidth,e=window.innerHeight,i.hasClass("admin-bar")&&782<$.width()?a=32:i.hasClass("admin-bar")&&(a=46),o=Math.max(document.documentElement.clientHeight,window.screen.height||0)}function d(e,t,i){var n=new Date;i?(n.setTime(n.getTime()+24*i*60*60*1e3),document.cookie=e+"="+t+";path=/;expires="+n.toUTCString()):document.cookie=e+"="+t+";path=/;expires=0;"}function c(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function h(e){document.cookie=e+"=;path=/;expires=-1;"}document.addEventListener("touchend",function(){}),l();function u(){Y(".main-header[data-mobile-menu]").length&&(n=Y(".main-header[data-mobile-menu]").data("mobile-menu"),$.width()<=n?(Y(".main-header[data-mobile-menu]").addClass("main-header--mobile").removeClass("main-header--desktop"),Y("body").addClass("aheto-menu--mobile").removeClass("aheto-menu--desktop")):(Y(".main-header[data-mobile-menu]").removeClass("main-header--mobile").addClass("main-header--desktop"),Y("body").removeClass("aheto-menu--mobile").addClass("aheto-menu--desktop")))}function p(e){Y(e.target).closest(".main-header__menu-box").is(".main-header__menu-box")||e.preventDefault()}u(),window.initMenu=function(e){e&&(Array.prototype.forEach.call(e,u),Array.prototype.forEach.call(e,w))},$.on("load resize orientationchange",function(){l(),setTimeout(u,100)}),$.on("orientationchange",function(){Y("html, body").animate({scrollTop:Y(window).scrollTop()-100})}),window.elementorFrontend&&l(),window.addEventListener("load",function(){Y(".aheto-preloader").length&&Y(".aheto-preloader").fadeOut(400),i.hasClass("aheto-lazyload")&&Y("img[data-lazy-src]").ahetolazy()});var g=null,f=null;function m(){f=g=null}window.addEventListener("scroll",function(){null!==g&&null!==f&&window.scrollTo(g,f)});var w=function(){var e=Y(".main-header-js .js-toggle-mobile-menu");Y(".main-header-js .menu-item-has-children > .dropdown-btn").length||Y(".main-header-js .menu-item-has-children > a").after('<span class="dropdown-btn"></span>'),Y(".main-header-js .menu-item-has-children .mega-menu__title > .dropdown-btn").length||Y(".main-header-js .menu-item-has-children .mega-menu__title").after('<span class="dropdown-btn"></span>');var t=Y(".main-header").find(".main-header__menu-box");Y(".aheto-header").append('<span class="body-overlay"></span>'),e.on("click",function(){Y("body").addClass("sidebar-open no-scroll"),t.addClass("menu-open"),g=window.scrollX,f=window.scrollY})};function v(){if(Y(".aheto-header--fixed").length&&i.hasClass("admin-bar")){var e=782<t?32:46;Y(".aheto-header--fixed").css("top",e)}}function b(){if((Y(".aheto-header").length||Y(".main-header-js").length)&&$.width()<=n){var e=Y(".main-header").find(".main-header__menu-box");e.css("top",a),e.find(".btn-close").length||e.append('<span class="btn-close"><i class="ion-android-close"></i></span>'),Y(".btn-close").on("click",function(){e.removeClass("menu-open"),Y("body").removeClass("sidebar-open no-scroll"),m()}),Y(".main-header").each(function(){var e=o-a;navigator.userAgent.match(/(iPod|iPad)/)&&Y(".aheto-header--fixed").length?Y(this).find(".main-header__menu-box").css({height:100+e,"padding-bottom":"156px"}):Y(this).find(".main-header__menu-box").css({height:100+e,"padding-bottom":"100px"})})}else{Y(".main-header").each(function(){Y(this).find(".main-header__menu-box").css({top:"auto",height:"auto","padding-bottom":"0"})});var t=Y(".main-header").find(".main-header__menu-box");t.length&&(t.removeClass("menu-open"),Y("body").removeClass("sidebar-open no-scroll"),m())}}Y(window).on("load",function(){(Y(".aheto-header").length||Y(".main-header-js").length)&&w()}),window.elementorFrontend&&(u(),w()),window.addEventListener("load",function(){v(),b(),(Y(".aheto-header").length||Y(".main-header-js").length)&&$.width()<=n&&Y(".main-header").each(function(){Y(this).find(".menu-item-has-children .dropdown-btn").on("click",function(e){e.stopPropagation(),Y(this).parent().parent().parent().hasClass("menu-home-page-container")&&Y(this).closest(".menu-home-page-container").find(".dropdown-btn").not(this).next(".sub-menu,.mega-menu__list").slideUp(),Y(this).next(".sub-menu,.mega-menu__list").slideToggle()})})}),Y(window).on("resize orientationchange",function(){v(),setTimeout(b,300),n<t?(i.removeClass("overflow-hidden"),document.body.removeEventListener("touchmove",p,{passive:!1})):Y(".main-header-js .js-toggle-mobile-menu").length&&Y(".main-header-js .js-toggle-mobile-menu").hasClass("is-active")&&(i.addClass("overflow-hidden"),document.body.addEventListener("touchmove",p,{passive:!1}))}),Y(window).on("load",function(){Y(".multi-lang").length&&Y(".multi-lang .js-lang").on("click",function(e){e.preventDefault(),Y(this).closest(".multi-lang").find(".js-lang-list").slideToggle(100)})}),Y(window).on("load resize orientationchange",function(){!function(){var e=Y(".aheto-header:not(.aheto-header--absolute):not(.aheto-header--fixed)"),t=Y(".aheto-footer"),i=Y("body.admin-bar").length?32:0,n=e.length?e.outerHeight():0,a=t.length?t.outerHeight():0;Y(".aheto-full-min-height-js").length&&Y(".aheto-full-min-height-js").css("min-height",Y(window).innerHeight()-n-i),Y(".aheto-full-max-height-js").length&&Y(".aheto-full-max-height-js").css("max-height",Y(window).innerHeight()-n-i),Y(".aheto-page-min-height-js").length&&Y(".aheto-page-min-height-js").css("min-height",Y(window).innerHeight()-n-i-a),Y(".aheto-page-height-js").length&&Y(".aheto-page-height-js").css("height",Y(window).height()-n-a+1),Y(".aheto-full-page-height-js").length&&Y(".aheto-full-page-height-js").css("height",Y(window).height()-n+1)}()}),window.changeImgToBg=function(e,i){if(!e)return console.info("no img selector"),!1;Y(e).each(function(){var e,t=Y(this);if(t.hasClass("is-complete"))return!0;(e=(e=t.closest(i)).length?e:t.parent()).css("background-image","url("+this.src+")").addClass("s-back-switch"),t.addClass("is-complete").hide()})},changeImgToBg(".js-bg"),window.lazyLoadImg=function(e){i.hasClass("aheto-lazyload")&&e.ahetolazy()},Y(window).on("scroll load",function(){30<=Y(this).scrollTop()?Y(".aheto-header--fixed").length&&Y(".aheto-header--fixed").addClass("header-scroll"):Y(".aheto-header--fixed").length&&Y(".aheto-header--fixed").removeClass("header-scroll")});function ie(e,t,i){return e.find(t).filter(function(){return Y(this).closest(i).is(e)})}function y(i,e){var t,n="swiper-unique-".concat(e);if(void 0===i)return!1;i.classList.add(n),i.setAttribute("id",n);var a=Y(i).parent(),o=ie(a,".swiper-button-prev",".swiper"),s=ie(a,".swiper-button-next",".swiper"),r=ie(a,".swiper-pagination",".swiper");r&&r.addClass("swiper-pagination-"+n);var l=+i.getAttribute("data-speed")||500,d=+i.getAttribute("data-initial_slide")||0,c=+i.getAttribute("data-autoplay")||0,h=+i.getAttribute("data-destroy")||0,u=+i.getAttribute("data-spaces")||0,p=!!i.getAttribute("data-simulate_touch"),g=i.getAttribute("data-direction")||"horizontal",f=i.getAttribute("data-effect")||"slide",m=!!i.getAttribute("data-loop"),w=!!i.getAttribute("data-progress-move"),v=!!i.getAttribute("data-slideToClickedSlide"),b=!!i.getAttribute("data-centeredSlides"),y=+i.getAttribute("data-slidesPerColumn")||1,C=i.getAttribute("data-pagination-type")||"bullets",j=i.getAttribute("data-slidesPerColumnFill")||"column",x=!!i.getAttribute("data-autoHeight")||!1,_=+i.getAttribute("data-lazy")||0,k=+i.getAttribute("data-thumbs")||0,A=+i.getAttribute("data-mousewheel")||0;A=A&&{invert:!1},_=_&&{loadPrevNext:!0,loadPrevNextAmount:_,loadOnTransitionStart:!0},k=k&&{swiper:te["swiper-unique-".concat(e-1)]};var P=!1,T=!1,z=!1,S=!1,E=c/100,L=1;c&&(P={delay:c,disableOnInteraction:!1}),w&&(a.find("#aheto-progress-"+n).length||a.prepend('<div id="aheto-progress-'+n+'" class="swiper__progress-line"></div>')),m&&(T=1);var I=i.getAttribute("data-slides")||1,B=+i.getAttribute("data-slides_group")||1,D=+i.getAttribute("data-slides_lg")||I,O=+i.getAttribute("data-slides_md")||D,M=+i.getAttribute("data-slides_sm")||O,H=+i.getAttribute("data-slides_xs")||M,G=+i.getAttribute("data-slides_group_lg")||B,q=+i.getAttribute("data-slides_group_md")||G,V=+i.getAttribute("data-slides_group_sm")||q,F=+i.getAttribute("data-slides_group_xs")||V,N=+i.getAttribute("data-spaces_lg")||u,W=+i.getAttribute("data-spaces_md")||N,U=+i.getAttribute("data-spaces_sm")||W,R=+i.getAttribute("data-spaces_xs")||U,X=(_defineProperty(t={},Q,{slidesPerView:H,slidesPerGroup:F,spaceBetween:R,slidesPerColumn:y}),_defineProperty(t,J,{slidesPerView:M,slidesPerGroup:V,spaceBetween:U,slidesPerColumn:y}),_defineProperty(t,K,{slidesPerView:O,slidesPerGroup:q,spaceBetween:W,slidesPerColumn:y}),_defineProperty(t,Z,{slidesPerView:D,slidesPerGroup:G,spaceBetween:N,slidesPerColumn:y}),_defineProperty(t,ee,{slidesPerView:I,slidesPerGroup:B,spaceBetween:u,slidesPerColumn:y}),t);te[n]=new Swiper("."+n,{simulateTouch:p,direction:g,initialSlide:d,speed:l,autoplay:P,spaceBetween:u,loop:m,autoHeight:x,lazy:_,thumbs:k,effect:f,slidesPerView:I,slideToClickedSlide:v,centeredSlides:b,breakpoints:X,mousewheel:A,slidesPerColumn:y,slidesPerColumnFill:j,slidesPerGroup:B,loopFillGroupWithBlank:!1,slidesPerGroupSkip:T,loopAdditionalSlides:4,roundLengths:!0,noSwiping:!0,updateOnWindowResize:!0,noSwipingClass:"swiper-no-swiping",watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",coverflowEffect:{rotate:30,slideShadows:!1},navigation:{nextEl:s,prevEl:o},pagination:{el:".swiper-pagination-"+n,type:C,clickable:!0,renderBullet:function(e,t){return i.querySelector(".swiper-pagination--numeric")?'<span class="'+t+'">'+(e<9?"0":"")+(e+1)+"</span>":i.classList.contains("swiper-pagination--numeric")?'<span class="'+t+'">'+(e<9?"0":"")+(e+1)+"</span>":'<span class="'+t+'"></span>'}},on:{init:function(){if(s.length&&s.hasClass("swiper-button-next--number")&&(ne(i,!1),ae(this,i,!1)),s.length&&s.hasClass("swiper-button-next--number-zero")&&(ne(i,!0),ae(this,i,!0)),w){var e=0;z=setInterval(function(){100<e?(Y("#aheto-progress-"+n).width("0%"),clearInterval(z)):(Y("#aheto-progress-"+n).width(e+"%"),e++)},E)}},resize:function(){$.width()<=h&&(te[n].destroy(!1),te[n]=void 0)},slideChangeTransitionStart:function(){w&&1<L&&(clearInterval(S),clearInterval(z),Y("#aheto-progress-"+n).width("0%"),setTimeout(function(){var e=0;S=setInterval(function(){100<e?(Y("#aheto-progress-"+n).width("0%"),clearInterval(S)):(Y("#aheto-progress-"+n).width(e+"%"),e++)},E)},l)),L++},slideChange:function(){s.length&&s.hasClass("swiper-button-next--number")&&ae(this,i,!1),s.length&&s.hasClass("swiper-button-next--number-zero")&&ae(this,i,!0)},lazyImageReady:function(e,t){t.classList.contains("js-bg-swiper")&&changeImgToBg(t)}}})}function ne(e,t){var i=Y(e).parent(),n=i.find(".swiper-slide:not(.swiper-slide-duplicate)").length;t&&(n=n<10?"0"+n:n),i.find(".swiper-slides-total").html(n)}function ae(e,t,i){var n=Y(t).parent(),a=e.realIndex+1,o=n.find(".swiper-slide:not(.swiper-slide-duplicate)").length,s=a+1;s=o<s?s-o:s;var r=a-1;r=r<=0?o-r:r,i&&(s=s<10?"0"+s:s,r=r<10?"0"+r:r),n.find(".swiper-slides-prev").html(r),n.find(".swiper-slides-next").html(s)}window.initSwiper=function(e){e&&Array.prototype.forEach.call(e,y)},Y(window).on("load ",function(){setTimeout(function(){Y(window).trigger("resize")},200),initSwiper(s),changeImgToBg(".js-bg")}),Y(window).on("load resize orientationchange",function(){r&&r.forEach(function(e){var t=e.getAttribute("id"),i=t.replace("swiper-unique-","");$.width()>e.getAttribute("data-destroy")&&void 0===te[t]?y(document.getElementById(t),i):$.width()<=e.getAttribute("data-destroy")&&void 0!==te[t]&&(te[t].destroy(!1),te[t]=void 0)})}),Y(window).on("load",function(){var t=Y(".site-search");Y(".js-open-search").on("click",function(){t.addClass("open")}),Y(".js-close-search").on("click",function(e){e.stopPropagation(),t.addClass("closing"),setTimeout(function(){t.removeClass("open closing")},300)})});function C(e){var t=$.scrollTop(),i=t+$.height(),n=Y(e).offset().top;return t<=n&&n<=i}function j(){Y(".js-tab-list").on("click",function(e){e.preventDefault();var t=Y(this).parent().index();Y(this).parent().addClass("active").siblings().removeClass("active").closest(".js-tab").find(".js-tab-box").removeClass("active").eq(t).addClass("active")})}if(j(),Y(".js-counter").length){var x=function(){if(!k&&C(_)){k=!0;var t=[];Y(".js-counter").each(function(){t.push(Y(this).html())}),_.each(function(){Y(this).prop("Counter",0).animate({Counter:Y(this).text()},{duration:2500,easing:"swing",step:function(e){var t=Y(this);t.hasClass("js-percent")?t.text(Math.floor(e)+"%"):t.hasClass("js-k")?t.text(A(Math.floor(e)+"k")):t.hasClass("js-plus")?t.text("+"+Math.floor(e).toLocaleString("en")):t.hasClass("js-whole")?t.text(Math.floor(e)):t.text(A(Math.floor(e)))},complete:function(){var e=Y(this);e.hasClass("js-percent")||e.hasClass("js-k")||e.hasClass("js-plus")?t.shift():e.hasClass("js-whole")?e.text(t.shift()):e.text(A(t.shift()))}})})}},_=Y(".js-counter"),k=!1;x(),$.scroll(function(){x()})}function A(e){for(;/(\d+)(\d{3})/.test(e.toString());)e=e.toString().replace(/(\d+)(\d{3})/,"$1,$2");return e}function P(){var e=Y(".prog-bar");if(e.length){var t=function(){i||C(e)&&(i=!0,e.each(function(){var e=Y(this).addClass("active"),t=e.find(".prog-bar-perc").html();e.find(".prog-bar-hldr").animate({left:t+"%"},2e3),e.find(".prog-bar-val").animate({width:t+"%"},2e3)}))},i=!1;t(),$.scroll(function(){t()})}var n=Y(".js-chart-circle");if(n.length){var a=function(){o||C(n)&&(n.addClass("active"),o=!0)},o=!1;a(),$.scroll(function(){a()})}}P(),Y(".aheto-content-block--bgImg").hover(function(){Y(this).find(".aheto-content-block__info").slideDown(200)},function(){Y(this).find(".aheto-content-block__info").slideUp(200)}),Y(".js-accordion").on("click",function(e){e.preventDefault(),Y(this).parent().find(".js-accordion-text").slideToggle(function(){Y(this).is(":hidden")?Y(this).parent().removeClass("is-open"):Y(this).parent().addClass("is-open")}),Y(this).closest(".js-accordion-parent").data("multiple")||Y(this).parent().siblings().removeClass("is-open").find(".js-accordion-text").hide(350)});var T,z,S=Y(".js-typed");function E(){if(T=Y(".js-coming-soon").attr("data-dates"),z=new Date(T).getTime(),T){Y(".js-coming-soon-caption").each(function(){var e=576<=$.width()?Y(this).attr("data-desktop"):Y(this).attr("data-mobile");Y(this).html(e)});var s=setInterval(function(){var e=(new Date).getTime(),t=z-e,i=Math.floor(t/864e5),n=Math.floor(t%864e5/36e5);n=n<10?"0"+n:n;var a=Math.floor(t%36e5/6e4);a=a<10?"0"+a:a;var o=Math.floor(t%6e4/1e3);o=o<10?"0"+o:o,Y(".js-coming-soon-number.days").html(i),Y(".js-coming-soon-number.hours").html(n),Y(".js-coming-soon-number.minutes").html(a),Y(".js-coming-soon-number.seconds").html(o),t<0&&(clearInterval(s),Y(".js-coming-soon-number").html("00"))},1e3)}}function L(){Y(".aheto-coming-soon--default").length&&Y(".aheto-coming-soon--default").each(function(){var e=Y(this).find(".aheto-coming-soon__number").css("font-size");Y(this).find(".aheto-coming-soon__dots").css("line-height",e)})}S.length&&Y(S).each(function(e){var t="js-typed-"+e,i="#"+t,n=Y(this).text();Y(this).attr("id",t).attr("data-text",n).text("").addClass("init");var a=Y(this).attr("data-text").split(","),o=1<a.length;new Typed(i,{strings:a,typeSpeed:50,startDelay:0,loop:o})}),$.on("load",function(){E(),L()}),$.on("resize orientationchange",function(){L()});var I=Y(".wpcf7-form-control.wpcf7-select");I.length&&(I[0].onchange=function(){I.addClass("cf7-selected")}),Y("select").change(function(){Y(this).addClass("selected")});var B=Y(".js-video-btn");B.length&&void 0!==Y.fn.magnificPopup&&B.magnificPopup({disableOn:700,type:"iframe",mainClass:"mfp-fade",removalDelay:160,preloader:!1,fixedContentPos:!0,fixedBgPos:!0});var D=Y(".js-popup-gallery");D.length&&void 0!==Y.fn.magnificPopup&&D.each(function(){Y(this).magnificPopup({delegate:".js-popup-gallery .js-popup-gallery-link",type:"image",tLoading:"Loading image #%curr%...",mainClass:"mfp-img-mobile",gallery:{enabled:!0,navigateByImgClick:!0,preload:[0,1]},image:{tError:'<a href="%url%">The image #%curr%</a> could not be loaded.',titleSrc:function(e){return e.el.attr("data-title")||""}}})});var O=Y(".js-pricing-items");O&&(G(O),Y(window).on("resize",function(){G(O)}));var M=Y(".js-pricing-content");M&&(G(M),Y(window).on("resize",function(){G(M)}));var H=Y(".js-pricing-height");function G(e){var i=[];e.css("min-height","auto"),e.each(function(){var e=Y(this).outerHeight(),t=Y(this).attr("data-height-key")||"key";i[t]=e>(i[t]||0)?e:i[t]}),e.each(function(){var e=Y(this).attr("data-height-key")||"key";Y(this).css("min-height",i[e])})}H&&(G(H),Y(window).on("resize",function(){G(O)}));var q=Y(".js-isotope"),V=Y(".js-lazyload-button a"),F=Y(".js-lazyload-infinity p"),N=[];function W(){if(q.length){var e=window.location.href,t=new URL(e),n=null!==t.searchParams.get("filter")?t.searchParams.get("filter"):"";q.each(function(){var e=Y(this).attr("data-layout")||"masonry",t=Y(this).attr("data-cpt-id"),i=Y(this).find(".aheto-cpt-article--static").length&&"aheto-cpt__list--static-height";Y(this).addClass(i),N[t]=Y(this).isotope({percentPosition:!0,layoutMode:e,masonry:{columnWidth:".aheto-cpt-article--size"}}),Y(this).closest(".aheto-cpt").find('.aheto-cpt-filter a[data-filter=".filter-'+n+'"]').length&&(Y(this).closest(".aheto-cpt").find(".aheto-cpt-filter a").removeClass("is-active"),Y(this).closest(".aheto-cpt").find('.aheto-cpt-filter a[data-filter=".filter-'+n+'"]').addClass("is-active"),N[t].isotope({filter:".filter-"+n}))}),i.hasClass("aheto-lazyload")&&q.find("[data-lazy-src]").ahetolazy("",function(){setTimeout(function(){q.isotope("layout")},200)})}}Y(window).on("load",function(){W(),setTimeout(function(){window.dispatchEvent(new Event("resize"))},100)}),Y(document).on("ready",function(){!function(){var e=null!==c("aheto-cpt-filter-page")?c("aheto-cpt-filter-page"):"no-cookie-page";-1===window.location.href.indexOf(e)&&(h("aheto-cpt-filter"),h("aheto-cpt-filter-page"));if(null!==c("aheto-cpt-filter")&&""!==c("aheto-cpt-filter")){var t=c("aheto-cpt-filter"),i=Y('.aheto-cpt-filter a[data-filter="'+t+'"]').closest(".aheto-cpt-filter");i.find("a").removeClass("is-active"),i.find('a[data-filter="'+t+'"]').addClass("is-active")}}()}),Y("[data-filter]").on("click",function(e){e.preventDefault();var t=Y(this),i=t.attr("data-filter"),n=t.attr("data-cpt-id");if(Y("[data-cpt-id="+n+"]").removeClass("is-active"),t.addClass("is-active"),t.closest(".aheto-cpt").find(".aheto-cpt-pagination").length)d("aheto-cpt-filter",i),c("aheto-cpt-filter-page")||d("aheto-cpt-filter-page",window.location.href),window.location.href=c("aheto-cpt-filter-page");else if(h("aheto-cpt-filter"),h("aheto-cpt-filter-page"),t.closest(".swiper-filter").length){var a=t.closest(".swiper-filter").prev().find(".swiper-container").attr("id"),o=a.replace("swiper-unique-","");Y('.swiper-container[id="'+a+'"] .swiper-slide').addClass("non-swiper-slide").removeClass("swiper-slide"),Y('.swiper-container[id="'+a+'"] .aheto-cpt-article'+i).parent().removeClass("non-swiper-slide").addClass("swiper-slide"),te[a].destroy(),y(document.getElementById(a),o)}else N[n].isotope({filter:i})}),V.on("click",function(e){e.preventDefault(),re(Y(this))});var U,R,X,oe,se=(U=function(){F.each(function(){Y(this).outerHeight()+Y(this).offset().top<$.scrollTop()+e&&re(Y(this))})},R=250,function(){var e=this,t=arguments,i=X&&!oe;clearTimeout(oe),oe=setTimeout(function(){oe=null,X||U.apply(e,t)},R),i&&U.apply(e,t)});function re(i){var e=i.parent(),n=e.attr("data-cpt-id"),t=e.attr("data-loading-text"),a=e.attr("data-static-text"),o=Y(".js-isotope[data-cpt-id=".concat(n,"]")),s=window[n];o.length&&!o.hasClass("is-loading")&&s&&Y.ajax({url:s.nextLink,type:"get",beforeSend:function(){o.addClass("is-loading"),i.addClass("is-loading").find("span").text(t)},success:function(e){if(e){var t=Y(e).find(".aheto-cpt-load").parent().find(".aheto-cpt-article").not(".aheto-cpt-article--size");o.append(t),o.isotope("appended",t),o.isotope("layout"),o.imagesLoaded().progress(function(){N[n].isotope("layout")}),changeImgToBg(o.find(".js-bg")),s.nextPage=+s.nextPage+1,s.nextLink=s.nextLink.replace(/\/page\/[0-9]?/,"/page/"+s.nextPage),s.nextPage>s.maxPage?(o.addClass("is-all"),i.parent().hide()):(o.removeClass("is-loading"),i.removeClass("is-loading").find("span").text(a))}}})}Y(window).on("scroll",se);function le(e){void 0!==Y.fn.mediaelementplayer&&Y(e).mediaelementplayer()}window.initAudio=function(e){e&&Array.prototype.forEach.call(e,le)},Y(window).on("load",function(){initAudio(document.getElementsByClassName("js-audio"))}),Y(window).on("load",function(){Y(".aht-page__socials__icon").on("click",function(){Y(this).toggleClass("active")})}),Y(window).on("load",function(){Y("[data-share]").on("click",function(e){e.preventDefault();var t=window,i=this.getAttribute("data-share"),n=void 0!==t.screenLeft?t.screenLeft:screen.left,a=void 0!==t.screenTop?t.screenTop:screen.top,o=t.innerWidth/2-300+n,s=t.innerHeight/2-300+a,r=t.open(i,"","scrollbars=yes, width=600, height=600, top="+s+", left="+o);return t.focus&&r.focus(),!1})}),$.on("elementor/frontend/init",function(){var n=!1;-1<window.location.href.indexOf("elementor-preview")&&elementorFrontend.hooks.addAction("frontend/element_ready/widget",function(e){if(void 0!==e.context){var t=e.context.dataset.widget_type;-1<t.indexOf("progress-bar")?P():-1<t.indexOf("coming-soon")?(E(),L()):-1<t.indexOf("title-bar")&&j()}if(Y(".swiper-container").length&&(initSwiper(s),y()),Y(".js-isotope").length&&!n){var i=document.createElement("script");i.src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.6/isotope.pkgd.min.js?ver=1",document.getElementsByTagName("head")[0].appendChild(i),n=!0,W()}})}),Y(".js-aheto-lg").length&&Y(".js-aheto-lg").each(function(){Y(this).lightGallery({selector:".js-popup-gallery-link",mode:"lg-zoom-out",preload:3,hash:!1,closable:!0,speed:1e3,backdropDuration:400,thumbnail:!1,share:!1,startClass:"lg-start-fade",download:!1})}),Y(".widget_media_gallery").length&&Y(".widget_media_gallery").each(function(){Y(this).lightGallery({selector:".gallery-item a",mode:"lg-zoom-out",preload:3,hash:!1,closable:!0,speed:1e3,backdropDuration:400,thumbnail:!1,share:!1,startClass:"lg-start-fade",download:!1})}),document.addEventListener("DOMContentLoaded",function(){window.scrollTo(window.pageXOffset,window.pageYOffset-1),window.scrollTo(window.pageXOffset,window.pageYOffset+1)})}(jQuery);