Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
74 kB
1
Indexable
Never
!function(t){"use strict";t.fn.UltpSlider=function(e){let i=t.extend({},t.fn.UltpSlider.defaults,e),s=t(this),o=!0,n=0;if(s.wrap("<div class='acmeticker-wrap'></div>"),s.parent().css({position:"relative"}),s.children().first().addClass("active"),"horizontal"==i.type||"vertical"==i.type||"typewriter"==i.type){let e="";"typewriter"==i.type&&(e=setInterval((function(){a()}),i.speed));let n="";"horizontal"!=i.type&&"vertical"!=i.type||(n=setInterval((function(){a()}),i.speed)),t(i.controls.prev).click((function(){"horizontal"!=i.type&&"vertical"!=i.type||(clearInterval(n),l("prev"),o&&(n=setInterval((function(){a()}),i.speed))),"typewriter"==i.type&&(clearInterval(e),l("prev"),o&&(e=setInterval((function(){a()}),i.speed)))})),t(i.controls.next).click((function(){"horizontal"!=i.type&&"vertical"!=i.type||(clearInterval(n),l("next"),o&&(n=setInterval((function(){a()}),i.speed))),"typewriter"==i.type&&(clearInterval(e),l("next"),o&&(e=setInterval((function(){a()}),i.speed)))})),t(i.controls.toggle).click((function(){"horizontal"!=i.type&&"vertical"!=i.type||(o?(o=!1,clearInterval(n)):(o=!0,clearInterval(n),n=setInterval((function(){a()}),i.speed))),"typewriter"==i.type&&(o?(o=!1,clearInterval(e)):(o=!0,clearInterval(e),e=setInterval((function(){a()}),i.speed)))})),i.pauseOnHover&&s.hover((function(){"typewriter"==i.type&&clearInterval(e),"horizontal"!=i.type&&"vertical"!=i.type||clearInterval(n)}),(function(){"typewriter"==i.type&&o&&(e=setInterval((function(){a()}),i.speed)),("horizontal"==i.type||"vertical"==i.type&&o)&&(n=setInterval((function(){a()}),i.speed))}))}if("marquee"==i.type){let e,l=i.speed,a=0,r=i.direction,d=s.outerWidth(),p=t(".ultp-newsTicker-wrap").outerWidth(),c=t(document).find("body").hasClass("rtl");"right"==r&&(e=p),"left"==r&&(e=s.outerWidth());let u=setInterval((function(){e<a&&"left"==r&&!c&&(a=-p),e<a&&"right"==r&&!c&&(a=-d),d<a&&"right"==r&&c&&(a=-p),p<a&&"left"==r&&c&&(a=-e),s.css(r,-a),a++}),l);t(i.controls.prev).click((function(){o?(-s.outerWidth()>a&&"right"==r&&!c&&(a=e),a<-t(".ultp-newsTicker-wrap").outerWidth()&&"left"==r&&!c&&(a=e),-e>a&&"right"==r&&c&&(a=s.outerWidth()),-e>a&&"left"==r&&c&&(a=t(".ultp-newsTicker-wrap").outerWidth()),a-=250):(o=!0,u=setInterval((function(){e<a&&"left"==r&&!c&&(a=-p),-p>a&&"left"==r&&!c&&(a=e-100),e<a&&"right"==r&&!c&&(a=-d),d<a&&"right"==r&&c&&(a=-e),p<a&&"left"==r&&c&&(a=-e),s.css(r,-a),a++}),l))})),t(i.controls.prev).on("mousedown touchstart",(function(e){n=setInterval((function(){c||"right"!=r?c&&"left"==r?(a<-d&&(a=t(".ultp-newsTicker-wrap").outerWidth()-10),a-=30):c||"left"!=r?(a<-t(".ultp-newsTicker-wrap").outerWidth()&&c&&"right"==r&&(a=d),a-=30):(a<-t(".ultp-newsTicker-wrap").outerWidth()&&(a=d),a-=30):a>-d?a-=30:a=t(".ultp-newsTicker-wrap").outerWidth()-10}),100)})).bind("mouseup mouseleave touchend",(function(){clearInterval(n)})),t(i.controls.next).click((function(){o?a+=250:(o=!0,u=setInterval((function(){e<a&&"left"==r&&!c&&(a=-p),e<a&&"right"==r&&!c&&(a=-d),p<a&&"left"==r&&c&&(a=-e),d<a&&"right"==r&&c&&(a=-e),s.css(r,-a),a++}),l))})),t(i.controls.next).on("mousedown touchstart",(function(t){n=setInterval((function(){a+=80}),80)})).bind("mouseup mouseleave touchend",(function(){clearInterval(n)})),t(i.controls.toggle).click((function(){o?(o=!1,clearInterval(u)):(o=!0,u=setInterval((function(){e<a&&"left"==r&&!c&&(a=-p),t(".ultp-newsTicker-wrap").outerWidth()<a&&"left"==r&&c&&(a=-(d+100)),e<a&&"right"==r&&!c&&(a=-d),d<a&&"right"==r&&c&&(a=-t(".ultp-newsTicker-wrap").outerWidth()),s.css(r,-a),a++}),l))})),i.pauseOnHover&&s.hover((function(){clearInterval(u)}),(function(){o&&(u=setInterval((function(){e<a&&"left"==r&&!c&&(a=-t(".ultp-newsTicker-wrap").outerWidth()),t(".ultp-newsTicker-wrap").outerWidth()<a&&"left"==r&&c&&(a=-e),t(".ultp-newsTicker-wrap").outerWidth()<a&&"right"==r&&!c&&(a=-d),d<a&&"right"==r&&c&&(a=-e),s.css(r,-a),a++}),l))}))}function l(t){let e=s.find(".active").index();e<0&&(e=0);let i=1;"prev"==t&&(s.children().eq(e).removeClass("active"),s.children().eq(e-i).addClass("active")),"next"==t&&(s.children().eq(e).removeClass("active"),e==s.children().length-1&&(i=-(s.children().length-1)),s.children().eq(e+i).addClass("active"))}function a(){let t=1,e=s.find(".active").index();e<0&&(e=0),s.children().eq(e).removeClass("active"),e==s.children().length-1&&(t=-(s.children().length-1)),s.children().eq(e+t).addClass("active")}},t.fn.UltpSlider.defaults={type:"horizontal",autoplay:2e3,speed:50,direction:"up",pauseOnFocus:!0,pauseOnHover:!0,controls:{prev:"",next:"",toggle:""}}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){var e,i=t(window).width(),s=t(window).height(),o=[];t(window).resize((function(){clearTimeout(e),e=setTimeout((function(){t(window).width()===i&&t(window).height()===s||(t(o).each((function(){t(this).flexMenu({undo:!0}).flexMenu(this.options)})),i=t(window).width(),s=t(window).height())}),200)})),t.fn.flexMenu=function(e){var i,s=t.extend({threshold:2,cutoff:2,linkText:"More",linkTitle:"View More",linkTextAll:"Menu",linkTitleAll:"Open/Close Menu",shouldApply:function(){return!0},showOnHover:!0,popupAbsolute:!0,popupClass:"",undo:!1},e);return this.options=s,(i=t.inArray(this,o))>=0?o.splice(i,1):o.push(this),this.each((function(){var e,i,o,n,l,a,r=t(this),d=r.find("> li"),p=d.first(),c=d.last(),u=d.length,h=Math.floor(p.offset().top),f=Math.floor(p.outerHeight(!0)),v=!1;function k(t){return Math.ceil(t.offset().top)>=h+f}if(k(c)&&u>s.threshold&&!s.undo&&r.is(":visible")&&s.shouldApply()){var w=t('<ul class="flexMenu-popup" style="display:none;'+(s.popupAbsolute?" position: absolute;":"")+'"></ul>');for(w.addClass(s.popupClass),a=u;a>1;a--){if(i=k(e=r.find("> li:last-child")),a-1<=s.cutoff){t(r.children().get().reverse()).appendTo(w),v=!0;break}if(!i)break;e.appendTo(w)}v?r.append('<li class="flexMenu-viewMore flexMenu-allInPopup"><a href="#" title="'+s.linkTitleAll+'">'+s.linkTextAll+"</a></li>"):r.append('<li class="flexMenu-viewMore"><a href="#" title="'+s.linkTitle+'">'+s.linkText+"</a></li>"),k(o=r.find("> li.flexMenu-viewMore"))&&r.find("> li:nth-last-child(2)").appendTo(w),w.children().each((function(t,e){w.prepend(e)})),o.append(w),r.find("> li.flexMenu-viewMore > a").click((function(e){var i;i=o,t("li.flexMenu-viewMore.active").not(i).removeClass("active").find("> ul").hide(),w.toggle(),o.toggleClass("active"),e.preventDefault()})),s.showOnHover&&"undefined"!=typeof Modernizr&&!Modernizr.touch&&o.hover((function(){w.show(),t(this).addClass("active")}),(function(){w.hide(),t(this).removeClass("active")}))}else if(s.undo&&r.find("ul.flexMenu-popup")){for(n=(l=r.find("ul.flexMenu-popup")).find("li").length,a=1;a<=n;a++)l.find("> li:first-child").appendTo(r);l.remove(),r.find("> li.flexMenu-viewMore").remove()}}))}})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e,i=window.Slick||{};e=0,(i=function(i,s){var o,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=t(i),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,o=t(i).data("slick")||{},n.options=t.extend({},n.defaults,s,o),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=t.proxy(n.autoPlay,n),n.autoPlayClear=t.proxy(n.autoPlayClear,n),n.autoPlayIterator=t.proxy(n.autoPlayIterator,n),n.changeSlide=t.proxy(n.changeSlide,n),n.clickHandler=t.proxy(n.clickHandler,n),n.selectHandler=t.proxy(n.selectHandler,n),n.setPosition=t.proxy(n.setPosition,n),n.swipeHandler=t.proxy(n.swipeHandler,n),n.dragHandler=t.proxy(n.dragHandler,n),n.keyHandler=t.proxy(n.keyHandler,n),n.instanceUid=e++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},i.prototype.addSlide=i.prototype.slickAdd=function(e,i,s){var o=this;if("boolean"==typeof i)s=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):s?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===s?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each((function(e,i){t(i).attr("data-slick-index",e)})),o.$slidesCache=o.$slides,o.reinit()},i.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},i.prototype.animateSlide=function(e,i){var s={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(s[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(s)):(s[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(s))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?s[o.animType]="translate3d("+e+"px, 0px, 0px)":s[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(s),i&&setTimeout((function(){o.disableTransition(),i.call()}),o.options.speed))},i.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},i.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)}))},i.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},i.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},i.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},i.prototype.buildDots=function(){var e,i,s=this;if(!0===s.options.dots&&s.slideCount>s.options.slidesToShow){for(s.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(s.options.dotsClass),e=0;e<=s.getDotCount();e+=1)i.append(t("<li />").append(s.options.customPaging.call(this,s,e)));s.$dots=i.appendTo(s.options.appendDots),s.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each((function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")})),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},i.prototype.buildRows=function(){var t,e,i,s,o,n,l,a=this;if(s=document.createDocumentFragment(),n=a.$slider.children(),a.options.rows>0){for(l=a.options.slidesPerRow*a.options.rows,o=Math.ceil(n.length/l),t=0;t<o;t++){var r=document.createElement("div");for(e=0;e<a.options.rows;e++){var d=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var p=t*l+(e*a.options.slidesPerRow+i);n.get(p)&&d.appendChild(n.get(p))}r.appendChild(d)}s.appendChild(r)}a.$slider.empty().append(s),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},i.prototype.checkResponsive=function(e,i){var s,o,n,l=this,a=!1,r=l.$slider.width(),d=window.innerWidth||t(window).width();if("window"===l.respondTo?n=d:"slider"===l.respondTo?n=r:"min"===l.respondTo&&(n=Math.min(d,r)),l.options.responsive&&l.options.responsive.length&&null!==l.options.responsive){for(s in o=null,l.breakpoints)l.breakpoints.hasOwnProperty(s)&&(!1===l.originalSettings.mobileFirst?n<l.breakpoints[s]&&(o=l.breakpoints[s]):n>l.breakpoints[s]&&(o=l.breakpoints[s]));null!==o?null!==l.activeBreakpoint?(o!==l.activeBreakpoint||i)&&(l.activeBreakpoint=o,"unslick"===l.breakpointSettings[o]?l.unslick(o):(l.options=t.extend({},l.originalSettings,l.breakpointSettings[o]),!0===e&&(l.currentSlide=l.options.initialSlide),l.refresh(e)),a=o):(l.activeBreakpoint=o,"unslick"===l.breakpointSettings[o]?l.unslick(o):(l.options=t.extend({},l.originalSettings,l.breakpointSettings[o]),!0===e&&(l.currentSlide=l.options.initialSlide),l.refresh(e)),a=o):null!==l.activeBreakpoint&&(l.activeBreakpoint=null,l.options=l.originalSettings,!0===e&&(l.currentSlide=l.options.initialSlide),l.refresh(e),a=o),e||!1===a||l.$slider.trigger("breakpoint",[l,a])}},i.prototype.changeSlide=function(e,i){var s,o,n=this,l=t(e.currentTarget);switch(l.is("a")&&e.preventDefault(),l.is("li")||(l=l.closest("li")),s=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":o=0===s?n.options.slidesToScroll:n.options.slidesToShow-s,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,i);break;case"next":o=0===s?n.options.slidesToScroll:s,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||l.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(a),!1,i),l.children().trigger("focus");break;default:return}},i.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var s in e){if(t<e[s]){t=i;break}i=e[s]}return t},i.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},i.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},i.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},i.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},i.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){t(this).attr("style",t(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},i.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},i.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout((function(){i.disableTransition(t),e.call()}),i.options.speed))},i.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},i.prototype.filterSlides=i.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},i.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick","*",(function(i){var s=t(this);setTimeout((function(){e.options.pauseOnFocus&&s.is(":focus")&&(e.focussed=!0,e.autoPlay())}),0)})).on("blur.slick","*",(function(i){t(this);e.options.pauseOnFocus&&(e.focussed=!1,e.autoPlay())}))},i.prototype.getCurrent=i.prototype.slickCurrentSlide=function(){return this.currentSlide},i.prototype.getDotCount=function(){var t=this,e=0,i=0,s=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++s;else for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)s=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++s,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else s=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return s-1},i.prototype.getLeft=function(t){var e,i,s,o,n=this,l=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,o=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?o=-1.5:1===n.options.slidesToShow&&(o=-2)),l=i*n.options.slidesToShow*o),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,l=(n.options.slidesToShow-(t-n.slideCount))*i*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,l=n.slideCount%n.options.slidesToScroll*i*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,l=(t+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,l=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*i*-1+l,!0===n.options.variableWidth&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,!0===n.options.centerMode&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,e+=(n.$list.width()-s.outerWidth())/2)),e},i.prototype.getOption=i.prototype.slickGetOption=function(t){return this.options[t]},i.prototype.getNavigableIndexes=function(){var t,e=this,i=0,s=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,s=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)o.push(i),i=s+e.options.slidesToScroll,s+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},i.prototype.getSlick=function(){return this},i.prototype.getSlideCount=function(){var e,i,s,o=this;return s=!0===o.options.centerMode?Math.floor(o.$list.width()/2):0,i=-1*o.swipeLeft+s,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each((function(s,n){var l,a;if(l=t(n).outerWidth(),a=n.offsetLeft,!0!==o.options.centerMode&&(a+=l/2),i<a+l)return e=n,!1})),Math.abs(t(e).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},i.prototype.goTo=i.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},i.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},i.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),s=e.getNavigableIndexes().filter((function(t){return t>=0&&t<e.slideCount}));e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each((function(i){var o=s.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==o){var n="slick-slide-control"+e.instanceUid+o;t("#"+n).length&&t(this).attr({"aria-describedby":n})}})),e.$dots.attr("role","tablist").find("li").each((function(o){var n=s[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+n,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,n=o+e.options.slidesToShow;o<n;o++)e.options.focusOnChange?e.$slides.eq(o).attr({tabindex:"0"}):e.$slides.eq(o).removeAttr("tabindex");e.activateADA()},i.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},i.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},i.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},i.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},i.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},i.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},i.prototype.lazyLoad=function(){var e,i,s,o=this;function n(e){t("img[data-lazy]",e).each((function(){var e=t(this),i=t(this).attr("data-lazy"),s=t(this).attr("data-srcset"),n=t(this).attr("data-sizes")||o.$slider.attr("data-sizes"),l=document.createElement("img");l.onload=function(){e.animate({opacity:0},100,(function(){s&&(e.attr("srcset",s),n&&e.attr("sizes",n)),e.attr("src",i).animate({opacity:1},200,(function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,e,i])}))},l.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i])},l.src=i}))}if(!0===o.options.centerMode?!0===o.options.infinite?s=(i=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(i=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),s=o.options.slidesToShow/2+1+2+o.currentSlide):(i=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,s=Math.ceil(i+o.options.slidesToShow),!0===o.options.fade&&(i>0&&i--,s<=o.slideCount&&s++)),e=o.$slider.find(".slick-slide").slice(i,s),"anticipated"===o.options.lazyLoad)for(var l=i-1,a=s,r=o.$slider.find(".slick-slide"),d=0;d<o.options.slidesToScroll;d++)l<0&&(l=o.slideCount-1),e=(e=e.add(r.eq(l))).add(r.eq(a)),l--,a++;n(e),o.slideCount<=o.options.slidesToShow?n(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?n(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&n(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},i.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},i.prototype.next=i.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},i.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},i.prototype.pause=i.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},i.prototype.play=i.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},i.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},i.prototype.prev=i.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},i.prototype.preventDefault=function(t){t.preventDefault()},i.prototype.progressiveLazyLoad=function(e){e=e||1;var i,s,o,n,l,a=this,r=t("img[data-lazy]",a.$slider);r.length?(i=r.first(),s=i.attr("data-lazy"),o=i.attr("data-srcset"),n=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(l=document.createElement("img")).onload=function(){o&&(i.attr("srcset",o),n&&i.attr("sizes",n)),i.attr("src",s).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,s]),a.progressiveLazyLoad()},l.onerror=function(){e<3?setTimeout((function(){a.progressiveLazyLoad(e+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,s]),a.progressiveLazyLoad())},l.src=s):a.$slider.trigger("allImagesLoaded",[a])},i.prototype.refresh=function(e){var i,s,o=this;s=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>s&&(o.currentSlide=s),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},i.prototype.registerBreakpoints=function(){var e,i,s,o=this,n=o.options.responsive||null;if("array"===t.type(n)&&n.length){for(e in o.respondTo=o.options.respondTo||"window",n)if(s=o.breakpoints.length-1,n.hasOwnProperty(e)){for(i=n[e].breakpoint;s>=0;)o.breakpoints[s]&&o.breakpoints[s]===i&&o.breakpoints.splice(s,1),s--;o.breakpoints.push(i),o.breakpointSettings[i]=n[e].settings}o.breakpoints.sort((function(t,e){return o.options.mobileFirst?t-e:e-t}))}},i.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},i.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout((function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()}),50))},i.prototype.removeSlide=i.prototype.slickRemove=function(t,e,i){var s=this;if(t="boolean"==typeof t?!0===(e=t)?0:s.slideCount-1:!0===e?--t:t,s.slideCount<1||t<0||t>s.slideCount-1)return!1;s.unload(),!0===i?s.$slideTrack.children().remove():s.$slideTrack.children(this.options.slide).eq(t).remove(),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slidesCache=s.$slides,s.reinit()},i.prototype.setCSS=function(t){var e,i,s=this,o={};!0===s.options.rtl&&(t=-t),e="left"==s.positionProp?Math.ceil(t)+"px":"0px",i="top"==s.positionProp?Math.ceil(t)+"px":"0px",o[s.positionProp]=t,!1===s.transformsEnabled?s.$slideTrack.css(o):(o={},!1===s.cssTransitions?(o[s.animType]="translate("+e+", "+i+")",s.$slideTrack.css(o)):(o[s.animType]="translate3d("+e+", "+i+", 0px)",s.$slideTrack.css(o)))},i.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},i.prototype.setFade=function(){var e,i=this;i.$slides.each((function(s,o){e=i.slideWidth*s*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},i.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},i.prototype.setOption=i.prototype.slickSetOption=function(){var e,i,s,o,n,l=this,a=!1;if("object"===t.type(arguments[0])?(s=arguments[0],a=arguments[1],n="multiple"):"string"===t.type(arguments[0])&&(s=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)l.options[s]=o;else if("multiple"===n)t.each(s,(function(t,e){l.options[t]=e}));else if("responsive"===n)for(i in o)if("array"!==t.type(l.options.responsive))l.options.responsive=[o[i]];else{for(e=l.options.responsive.length-1;e>=0;)l.options.responsive[e].breakpoint===o[i].breakpoint&&l.options.responsive.splice(e,1),e--;l.options.responsive.push(o[i])}a&&(l.unload(),l.reinit())},i.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},i.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},i.prototype.setSlideClasses=function(t){var e,i,s,o,n=this;if(i=n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),n.$slides.eq(t).addClass("slick-current"),!0===n.options.centerMode){var l=n.options.slidesToShow%2==0?1:0;e=Math.floor(n.options.slidesToShow/2),!0===n.options.infinite&&(t>=e&&t<=n.slideCount-1-e?n.$slides.slice(t-e+l,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(s=n.options.slidesToShow+t,i.slice(s-e+1+l,s+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(n.options.slidesToShow+n.slideCount+1).addClass("slick-center"):t===n.slideCount-1&&i.eq(n.options.slidesToShow).addClass("slick-center")),n.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=n.slideCount-n.options.slidesToShow?n.$slides.slice(t,t+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=n.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=n.slideCount%n.options.slidesToShow,s=!0===n.options.infinite?n.options.slidesToShow+t:t,n.options.slidesToShow==n.options.slidesToScroll&&n.slideCount-t<n.options.slidesToShow?i.slice(s-(n.options.slidesToShow-o),s+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(s,s+n.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==n.options.lazyLoad&&"anticipated"!==n.options.lazyLoad||n.lazyLoad()},i.prototype.setupInfinite=function(){var e,i,s,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(s=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-s;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<s+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each((function(){t(this).attr("id","")}))}},i.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},i.prototype.selectHandler=function(e){var i=this,s=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(s.attr("data-slick-index"));o||(o=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(o,!1,!0):i.slideHandler(o)},i.prototype.slideHandler=function(t,e,i){var s,o,n,l,a,r,d=this;if(e=e||!1,!(!0===d.animating&&!0===d.options.waitForAnimate||!0===d.options.fade&&d.currentSlide===t))if(!1===e&&d.asNavFor(t),s=t,a=d.getLeft(s),l=d.getLeft(d.currentSlide),d.currentLeft=null===d.swipeLeft?l:d.swipeLeft,!1===d.options.infinite&&!1===d.options.centerMode&&(t<0||t>d.getDotCount()*d.options.slidesToScroll))!1===d.options.fade&&(s=d.currentSlide,!0!==i&&d.slideCount>d.options.slidesToShow?d.animateSlide(l,(function(){d.postSlide(s)})):d.postSlide(s));else if(!1===d.options.infinite&&!0===d.options.centerMode&&(t<0||t>d.slideCount-d.options.slidesToScroll))!1===d.options.fade&&(s=d.currentSlide,!0!==i&&d.slideCount>d.options.slidesToShow?d.animateSlide(l,(function(){d.postSlide(s)})):d.postSlide(s));else{if(d.options.autoplay&&clearInterval(d.autoPlayTimer),o=s<0?d.slideCount%d.options.slidesToScroll!=0?d.slideCount-d.slideCount%d.options.slidesToScroll:d.slideCount+s:s>=d.slideCount?d.slideCount%d.options.slidesToScroll!=0?0:s-d.slideCount:s,d.animating=!0,d.$slider.trigger("beforeChange",[d,d.currentSlide,o]),n=d.currentSlide,d.currentSlide=o,d.setSlideClasses(d.currentSlide),d.options.asNavFor&&(r=(r=d.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(d.currentSlide),d.updateDots(),d.updateArrows(),!0===d.options.fade)return!0!==i?(d.fadeSlideOut(n),d.fadeSlide(o,(function(){d.postSlide(o)}))):d.postSlide(o),void d.animateHeight();!0!==i&&d.slideCount>d.options.slidesToShow?d.animateSlide(a,(function(){d.postSlide(o)})):d.postSlide(o)}},i.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var t,e,i,s,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),(s=Math.round(180*i/Math.PI))<0&&(s=360-Math.abs(s)),s<=45&&s>=0||s<=360&&s>=315?!1===o.options.rtl?"left":"right":s>=135&&s<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?s>=35&&s<=135?"down":"up":"vertical"},i.prototype.swipeEnd=function(t){var e,i,s=this;if(s.dragging=!1,s.swiping=!1,s.scrolling)return s.scrolling=!1,!1;if(s.interrupted=!1,s.shouldClick=!(s.touchObject.swipeLength>10),void 0===s.touchObject.curX)return!1;if(!0===s.touchObject.edgeHit&&s.$slider.trigger("edge",[s,s.swipeDirection()]),s.touchObject.swipeLength>=s.touchObject.minSwipe){switch(i=s.swipeDirection()){case"left":case"down":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide+s.getSlideCount()):s.currentSlide+s.getSlideCount(),s.currentDirection=0;break;case"right":case"up":e=s.options.swipeToSlide?s.checkNavigable(s.currentSlide-s.getSlideCount()):s.currentSlide-s.getSlideCount(),s.currentDirection=1}"vertical"!=i&&(s.slideHandler(e),s.touchObject={},s.$slider.trigger("swipe",[s,i]))}else s.touchObject.startX!==s.touchObject.curX&&(s.slideHandler(s.currentSlide),s.touchObject={})},i.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},i.prototype.swipeMove=function(t){var e,i,s,o,n,l,a=this;return n=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||n&&1!==n.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==n?n[0].pageX:t.clientX,a.touchObject.curY=void 0!==n?n[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),l=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&l>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=l),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),s=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(s=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+s*o:a.swipeLeft=e+s*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=e+s*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},i.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},i.prototype.unfilterSlides=i.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},i.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},i.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},i.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},i.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},i.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,e,s=this,o=arguments[0],n=Array.prototype.slice.call(arguments,1),l=s.length;for(t=0;t<l;t++)if("object"==typeof o||void 0===o?s[t].slick=new i(s[t],o):e=s[t].slick[o].apply(s[t].slick,n),void 0!==e)return e;return s}})),function(t){"use strict";function e(){t(document).scrollTop()>1e3?(t(".ultp-toc-backtotop").addClass("tocshow"),t(".wp-block-ultimate-post-table-of-content").addClass("ultp-toc-scroll")):(t(".ultp-toc-backtotop").removeClass("tocshow"),t(".wp-block-ultimate-post-table-of-content").removeClass("ultp-toc-scroll"))}function i(t,e,i){e==i?t.find(".ultp-next-page-numbers").hide():t.find(".ultp-next-page-numbers").show(),e>1?t.find(".ultp-prev-page-numbers").show():t.find(".ultp-prev-page-numbers").hide(),e>3?t.find(".ultp-first-dot").show():t.find(".ultp-first-dot").hide(),e>2?t.find(".ultp-first-pages").show():t.find(".ultp-first-pages").hide(),i>e+2?t.find(".ultp-last-dot").show():t.find(".ultp-last-dot").hide(),i>e+1?t.find(".ultp-last-pages").show():t.find(".ultp-last-pages").hide()}function s(e,i,s){let o=i<=2?[1,2,3]:s==i?[s-2,s-1,s]:[i-1,i,i+1],n=0;e.find(".ultp-center-item").each((function(){i==o[n]&&t(this).addClass("pagination-active"),t(this).find("a").blur(),t(this).attr("data-current",o[n]).find("a").text(o[n]),n++}))}function o(t,e){null!=e&&sessionStorage.setItem(t,e)}function n(){t(".wp-block-ultimate-post-post-slider-1, .wp-block-ultimate-post-post-slider-2").each((function(){const e="#"+t(this).attr("id");let i=t(e).find(".ultp-block-items-wrap");t(this).parent(".ultp-shortcode")&&(i=t(this).find(".ultp-block-items-wrap"));let s={arrows:!0,dots:!!i.data("dots"),infinite:!0,speed:500,slidesToShow:i.data("slidelg")||1,slidesToScroll:1,autoplay:!!i.data("autoplay"),autoplaySpeed:i.data("slidespeed")||3e3,cssEase:"linear",prevArrow:i.parent().find(".ultp-slick-prev").html(),nextArrow:i.parent().find(".ultp-slick-next").html()},o="slide2"==i.data("layout")||"slide3"==i.data("layout")||"slide5"==i.data("layout")||"slide6"==i.data("layout")||"slide8"==i.data("layout");i.data("layout")?i.data("fade")&&o?s.fade=!!i.data("fade"):!i.data("fade")&&o?(s.slidesToShow=i.data("slidelg")||1,s.responsive=[{breakpoint:991,settings:{slidesToShow:i.data("slidesm")||1,slidesToScroll:1}},{breakpoint:767,settings:{slidesToShow:i.data("slidexs")||1,slidesToScroll:1}}]):(s.slidesToShow=i.data("slidelg")||1,s.centerMode=!0,s.centerPadding=`${i.data("paddlg")}px`||100,s.responsive=[{breakpoint:991,settings:{slidesToShow:i.data("slidesm")||1,slidesToScroll:1,centerPadding:`${i.data("paddsm")}px`||50}},{breakpoint:767,settings:{slidesToShow:i.data("slidexs")||1,slidesToScroll:1,centerPadding:`${i.data("paddxs")}px`||50}}]):i.data("slidelg")<2?s.fade=!!i.data("fade"):s.responsive=[{breakpoint:1024,settings:{slidesToShow:i.data("slidesm")||1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:i.data("slidexs")||1,slidesToScroll:1}}],i.not(".slick-initialized").slick(s)}))}function l(){if(t(".ultp-video-modal.modal_active").length>0){let e=t(".ultp-video-modal.modal_active").find("iframe");if(e.length){if(e.attr("src")){const t=e.attr("src").replace("&autoplay=1","");e.attr("src",t)}}else t(".ultp-video-modal.modal_active").find("video").trigger("pause");t(".ultp-video-modal").removeClass("modal_active")}}t(".ultp-post-share-item a").each((function(){t(this).click((function(){let e,i,s=t(this).attr("url");e=window.screen.width/2-410,i=window.screen.height/2-300;let o="height=500,width=800,resizable=yes,left="+e+",top="+i+",screenX="+e+",screenY="+i;window.open(s,"sharer",o);let n=t(this).parents(".ultp-post-share-item-inner-block").attr("postId"),l=t(this).parents(".ultp-post-share-item-inner-block").attr("count");return t.ajax({url:ultp_data_frontend.ajax,type:"POST",data:{action:"ultp_share_count",shareCount:l,postId:n,wpnonce:ultp_data_frontend.security},error:function(t){console.log("Error occured.please try again"+t.statusText+t.responseText)}}),!1}))})),t(window).scroll((function(){t(window).scrollTop()+window.innerHeight>=t("footer")?.offset()?.top?t(".wp-block-ultimate-post-post_share .ultp-block-wrapper .ultp-disable-sticky-footer").addClass("remove-sticky"):t(".wp-block-ultimate-post-post_share .ultp-block-wrapper .ultp-disable-sticky-footer").removeClass("remove-sticky")})),t(".ultp-news-ticker").each((function(){t(this).UltpSlider({type:t(this).data("type"),direction:t(this).data("direction"),speed:t(this).data("speed"),pauseOnHover:1==t(this).data("hover"),controls:{prev:t(this).closest(".ultp-newsTicker-wrap").find(".ultp-news-ticker-prev"),next:t(this).closest(".ultp-newsTicker-wrap").find(".ultp-news-ticker-next"),toggle:t(this).closest(".ultp-newsTicker-wrap").find(".ultp-news-ticker-pause")}})})),t(".ultp-toc-backtotop").click((function(e){e.preventDefault(),t("html, body").animate({scrollTop:0},"slow")})),t(window).scroll((function(){e()})),e(),t(".ultp-collapsible-open").click((function(e){t(this).closest(".ultp-collapsible-toggle").removeClass("ultp-toggle-collapsed"),t(this).parents(".ultp-block-toc").find(".ultp-block-toc-body").show()})),t(".ultp-collapsible-hide").click((function(e){t(this).closest(".ultp-collapsible-toggle").addClass("ultp-toggle-collapsed"),t(this).parents(".ultp-block-toc").find(".ultp-block-toc-body").hide()})),t(".ultp-toc-lists li a").click((function(){t([document.documentElement,document.body]).animate({scrollTop:t(t(this).attr("href")).offset().top-50},500)})),t(document).ready((function(){if(t(".ultp-flex-menu").length>0){const e=t("ul.ultp-flex-menu").data("name");t("ul.ultp-flex-menu").flexMenu({linkText:e,linkTextAll:e,linkTitle:e})}})),t(document).on("click",(function(e){0===t(e.target).closest(".flexMenu-viewMore").length&&(t(".flexMenu-viewMore").removeClass("active"),t(".flexMenu-viewMore").children("ul.flexMenu-popup").css("display","none"))})),t(document).on("click",".ultp-filter-navigation .flexMenu-popup .filter-item",(function(e){t(".flexMenu-viewMore").removeClass("active"),t(".flexMenu-viewMore").children("ul.flexMenu-popup").css("display","none")})),t(document).off("click",".ultp-pagination-ajax-action li, .ultp-loadmore-action, .ultp-prev-action, .ultp-next-action",(function(t){})),t(document).on("click",".ultp-prev-action, .ultp-next-action",(function(e){e.preventDefault();let i=t(this).closest(".ultp-next-prev-wrap"),s=i.closest(".ultp-block-wrapper").find(".ultp-block-items-wrap"),n=parseInt(i.data("pagenum")),l=parseInt(i.data("pages"));if(i.is(".ultp-disable-editor-click"))return;if(t(this).hasClass("ultp-prev-action")){if(t(this).hasClass("ultp-disable"))return;n--,i.data("pagenum",n),i.find(".ultp-prev-action, .ultp-next-action").removeClass("ultp-disable"),1==n&&t(this).addClass("ultp-disable")}if(t(this).hasClass("ultp-next-action")){if(t(this).hasClass("ultp-disable"))return;n++,i.data("pagenum",n),i.find(".ultp-prev-action, .ultp-next-action").removeClass("ultp-disable"),n==l&&t(this).addClass("ultp-disable")}let a=0!=i.parents(".ultp-shortcode").length&&"no"==i.data("selfpostid")?i.parents(".ultp-shortcode").data("postid"):i.data("postid");t(this).closest(".ultp-builder-content").length>0&&(a=t(this).closest(".ultp-builder-content").data("postid"));let r="",d=t(this).parents(".widget_block:first");if(d.length>0){let t=d.attr("id").split("-");r=t[t.length-1]}const p=sessionStorage.getItem("ultp_uniqueIds"),c=JSON.stringify(s.find(".ultp-current-unique-posts").data("current-unique-posts"));t.ajax({url:ultp_data_frontend.ajax,type:"POST",data:{action:"ultp_next_prev",paged:n,blockId:i.data("blockid"),postId:a,exclude:i.data("expost"),blockName:i.data("blockname"),builder:i.data("builder"),filterValue:i.data("filter-value")||"",filterType:i.data("filter-type")||"",widgetBlockId:r,ultpUniqueIds:p||[],ultpCurrentUniquePosts:c||[],wpnonce:ultp_data_frontend.security},beforeSend:function(){i.closest(".ultp-block-wrapper").addClass("ultp-loading-active")},success:function(t){t&&(s.html(t),o("ultp_uniqueIds",JSON.stringify(s.find(".ultp-current-unique-posts").data("ultp-unique-ids"))))},complete:function(){i.closest(".ultp-block-wrapper").removeClass("ultp-loading-active")},error:function(t){console.log("Error occured.please try again"+t.statusText+t.responseText),i.closest(".ultp-block-wrapper").removeClass("ultp-loading-active")}})})),t(document).on("click",".ultp-loadmore-action",(function(e){if(t(this).is(".ultp-disable-editor-click"))return;e.preventDefault();let i=t(this),s=i.closest(".ultp-block-wrapper"),n=parseInt(i.data("pagenum")),l=parseInt(i.data("pages"));if(i.hasClass("ultp-disable"))return;n++,i.data("pagenum",n),n==l?t(this).addClass("ultp-disable"):t(this).removeClass("ultp-disable");let a=0!=i.parents(".ultp-shortcode").length&&"no"==i.data("selfpostid")?i.parents(".ultp-shortcode").data("postid"):i.data("postid");i.closest(".ultp-builder-content").length>0&&(a=i.closest(".ultp-builder-content").data("postid"));let r="",d=t(this).parents(".widget_block:first");if(d.length>0){let t=d.attr("id").split("-");r=t[t.length-1]}const p=sessionStorage.getItem("ultp_uniqueIds"),c=JSON.stringify(s.find(".ultp-current-unique-posts").data("current-unique-posts"));t.ajax({url:ultp_data_frontend.ajax,type:"POST",data:{action:"ultp_next_prev",paged:n,blockId:i.data("blockid"),postId:a,blockName:i.data("blockname"),builder:i.data("builder"),filterValue:i.closest(".ultp-loadmore").data("filter-value")||"",filterType:i.closest(".ultp-loadmore").data("filter-type")||"",widgetBlockId:r,ultpUniqueIds:p||[],ultpCurrentUniquePosts:c||[],wpnonce:ultp_data_frontend.security},beforeSend:function(){s.addClass("ultp-loading-active")},success:function(e){e&&(s.find(".ultp-current-unique-posts").remove(),t(e).insertBefore(s.find(".ultp-loadmore-insert-before")),o("ultp_uniqueIds",JSON.stringify(s.find(".ultp-current-unique-posts").data("ultp-unique-ids"))))},complete:function(){s.removeClass("ultp-loading-active")},error:function(t){console.log("Error occured.please try again"+t.statusText+t.responseText),s.removeClass("ultp-loading-active")}})})),t(document).on("click",".ultp-filter-wrap li a",(function(e){if(e.preventDefault(),t(this).closest("li").hasClass("filter-item")){let e=t(this),i=e.closest(".ultp-filter-wrap"),s=e.closest(".ultp-block-wrapper");if(i.find("a").removeClass("filter-active"),e.addClass("filter-active"),i.is(".ultp-disable-editor-click"))return;let o=0!=i.parents(".ultp-shortcode").length&&"no"==i.data("selfpostid")?i.parents(".ultp-shortcode").data("postid"):i.data("postid");e.closest(".ultp-builder-content").length>0&&(o=e.closest(".ultp-builder-content").data("postid"));let n="",l=t(this).parents(".widget_block:first");if(l.length>0){let t=l.attr("id").split("-");n=t[t.length-1]}i.data("blockid")&&t.ajax({url:ultp_data_frontend.ajax,type:"POST",data:{action:"ultp_filter",taxtype:i.data("taxtype"),taxonomy:e.data("taxonomy"),blockId:i.data("blockid"),postId:o,blockName:i.data("blockname"),widgetBlockId:n,wpnonce:ultp_data_frontend.security},beforeSend:function(){s.addClass("ultp-loading-active")},success:function(t){s.find(".ultp-block-items-wrap").html(t?.data?.filteredData?.blocks),"loadMore"==t?.data?.filteredData?.paginationType&&t?.data?.filteredData?.paginationShow?(s.find(".ultp-block-items-wrap").append('<span class="ultp-loadmore-insert-before"></span>'),s.find(".ultp-loadmore").replaceWith(t?.data?.filteredData?.pagination)):"navigation"==t?.data?.filteredData?.paginationType?s.find(".ultp-next-prev-wrap").replaceWith(t?.data?.filteredData?.pagination):"pagination"==t?.data?.filteredData?.paginationType&&s.find(".ultp-pagination-wrap").replaceWith(t?.data?.filteredData?.pagination)},complete:function(){s.removeClass("ultp-loading-active")},error:function(t){console.log("Error occured.please try again"+t.statusText+t.responseText),s.removeClass("ultp-loading-active")}})}})),t(".ultp-current-unique-posts").length>0&&t(".ultp-current-unique-posts").each((function(){o("ultp_uniqueIds",JSON.stringify(t(this).data("ultp-unique-ids")))})),t(document).on("click",".ultp-pagination-ajax-action li",(function(e){e.preventDefault();let n=t(this),l=n.closest(".ultp-pagination-ajax-action"),a=n.closest(".ultp-block-wrapper");if(l.is(".ultp-disable-editor-click"))return;let r=1,d=l.attr("data-pages");n.attr("data-current")?(r=Number(n.attr("data-current")),l.attr("data-paged",r).find("li").removeClass("pagination-active"),s(l,r,d),i(l,r,d)):n.hasClass("ultp-prev-page-numbers")?(r=Number(l.attr("data-paged"))-1,l.attr("data-paged",r).find("li").removeClass("pagination-active"),s(l,r,d),i(l,r,d)):n.hasClass("ultp-next-page-numbers")&&(r=Number(l.attr("data-paged"))+1,l.attr("data-paged",r).find("li").removeClass("pagination-active"),s(l,r,d),i(l,r,d));let p=0!=l.parents(".ultp-shortcode").length&&"no"==l.data("selfpostid")?l.parents(".ultp-shortcode").data("postid"):l.data("postid");n.closest(".ultp-builder-content").length>0&&(p=n.closest(".ultp-builder-content").data("postid"));let c="",u=t(this).parents(".widget_block:first");if(u.length>0){let t=u.attr("id").split("-");c=t[t.length-1]}const h=sessionStorage.getItem("ultp_uniqueIds"),f=JSON.stringify(a.find(".ultp-current-unique-posts").data("current-unique-posts"));r&&t.ajax({url:ultp_data_frontend.ajax,type:"POST",data:{exclude:l.data("expost"),action:"ultp_pagination",paged:r,blockId:l.data("blockid"),postId:p,blockName:l.data("blockname"),builder:l.data("builder"),filterValue:l.data("filter-value")||"",filterType:l.data("filter-type")||"",widgetBlockId:c,ultpUniqueIds:h||[],ultpCurrentUniquePosts:f||[],wpnonce:ultp_data_frontend.security},beforeSend:function(){a.addClass("ultp-loading-active")},success:function(e){a.find(".ultp-block-items-wrap").html(e),o("ultp_uniqueIds",JSON.stringify(a.find(".ultp-current-unique-posts").data("ultp-unique-ids"))),t(window).scrollTop()>a.offset().top&&t([document.documentElement,document.body]).animate({scrollTop:a.offset().top-80},100)},complete:function(){a.removeClass("ultp-loading-active")},error:function(t){console.log("Error occured.please try again"+t.statusText+t.responseText),a.removeClass("ultp-loading-active")}})})),t(window).on("elementor/frontend/init",(()=>{setTimeout((()=>{t(".elementor-editor-active").length>0&&n()}),2e3)})),t(window.parent.document).find(".bricks-panel-controls").length>0&&setTimeout((()=>{n()}),2500),n(),t('span[role="button"]').on("keydown",(function(t){const e=void 0!==t.key?t.key:t.keyCode;("Enter"===e||13===e||["Spacebar"," "].indexOf(e)>=0||32===e)&&(t.preventDefault(),this.click())})),t(document).on("click",".ultp-block-item .ultp-video-icon",(function(){const e=t(this).parents(".ultp-block-item");let i=e.find("iframe");if(e.find(".ultp-video-modal").addClass("modal_active"),i.length){let s=e.find(".ultp-video-icon").attr("enableAutoPlay");i.attr("src")&&s&&i.attr("src",`${i.attr("src")}&autoplay=1`),e.find("iframe").on("load",(function(){t(".ultp-loader-container").css("display","none")}))}else t(".ultp-video-modal.modal_active").find("video").trigger("play")})),t(document).on("click",".ultp-video-close",(function(){l()})),t(document).on("keyup",(function(t){"Escape"==t.key&&l()}));let a=!0;if(t(window).scroll((function(){let e=t(this).scrollTop();t(".wp-block-ultimate-post-post-image").each((function(){let i=t(this).find(".ultp-builder-video video , .ultp-builder-video iframe");if(t(this).find(".ultp-video-block").hasClass("ultp-sticky-video")){let s=t(this).find(".ultp-image-wrapper"),o=s.offset(),n=i.height(),l=i.offset(),r=e+(t("#wpadminbar").height()||0),d=l.top+n;r>l.top&&r>d&&a&&(t(this).find(".ultp-image-wrapper").css("height",s.height()),t(this).find(".ultp-sticky-video").addClass("ultp-sticky-active")),r<s.height()+o.top&&(t(this).find(".ultp-sticky-video").removeClass("ultp-sticky-active"),t(this).find(".ultp-image-wrapper").css("height","auto")),t(".ultp-sticky-close").on("click",(function(){t(this).find(".ultp-image-wrapper").css("height","auto"),t(".ultp-sticky-video").removeClass("ultp-sticky-active"),a=!1}))}}))})),t(".wp-block-ultimate-post-advanced-search").length){let e=1;t(document).on("click",".ultp-search-clear",(function(){e=1;const i=t(this).data("blockid");t(this).parents(".ultp-search-inputwrap").find(".ultp-searchres-input").val(""),t(this).removeClass("active"),t(`.ultp-block-${i}`).find(".ultp-result-data").html(""),t(`.ultp-block-${i}`).find(".ultp-search-noresult, .ultp-viewall-results, .ultp-result-loader").removeClass("active")})),t(document).on("click",".ultp-popupclose-icon",(function(){t(this).parents(".result-data").removeClass("popup-active")})),t(document).on("click",".ultp-searchpopup-icon",(function(){const e=t(this).parents(".ultp-search-frontend"),i=e.data("blockid");s(e,!t(`.result-data.ultp-block-${i}`).length),t(`.result-data.ultp-block-${i}`).toggleClass("popup-active")})),t(".ultp-searchres-input").val().length>2&&t(".ultp-searchres-input").closest(".ultp-search-inputwrap").find(".ultp-search-clear").addClass("active"),t(document).on("input",".ultp-searchres-input",(function(e){i(t(this),e.target.value)}));const i=(i,o,n="",l=!0)=>{n=n||i.parents(".ultp-search-inputwrap").find(".ultp-search-clear").data("blockid");const a=t(`.wp-block-ultimate-post-advanced-search.ultp-block-${n}`).find(".ultp-search-frontend"),r=t(`.result-data.ultp-block-${n}`);s(a,!r.length),o.length>2?a.data("ajax")&&(r.find(".ultp-search-result").addClass("ultp-search-show"),r.find(".ultp-result-loader").addClass("active"),r.addClass("popup-active"),wp.apiFetch({path:"/ultp/ultp_search_data",method:"POST",data:{searchText:o,date:parseInt(a.data("date")),image:parseInt(a.data("image")),author:parseInt(a.data("author")),excerpt:parseInt(a.data("excerpt")),category:parseInt(a.data("catenable")),excerptLimit:parseInt(a.data("excerptlimit")),postPerPage:a.data("allresult")?a.data("postno"):10,exclude:"string"!=typeof a.data("searchposttype")&&a.data("searchposttype").length>0&&a.data("searchposttype"),paged:e,wpnonce:ultp_data_frontend.security}}).then((e=>{if(e.post_data){l?(r.find(".ultp-search-result").addClass("ultp-search-show"),r.find(".ultp-result-data").addClass("ultp-result-show"),r.find(".ultp-result-data").html(e.post_data)):(r.find(".ultp-search-result").addClass("ultp-search-show"),r.find(".ultp-result-data").addClass("ultp-result-show"),r.find(".ultp-result-data").append(e.post_data).fadeIn(500,(function(){t(this).animate({scrollTop:t(this).prop("scrollHeight")},400)}))),r.find(".ultp-search-noresult, .ultp-result-loader").removeClass("active");const i=r.find(".ultp-result-data .ultp-search-result__item").length;r.find(".ultp-viewall-results").addClass("active").find("span").text(`(${e.post_count-i})`)}else r.find(".ultp-result-data").removeClass("ultp-result-show"),r.find(".ultp-result-data").html(""),r.find(".ultp-search-noresult").addClass("active"),r.find(".ultp-result-loader, .ultp-viewall-results").removeClass("active");if(a.data("allresult")){const t=r.find(".ultp-result-data .ultp-search-result__item").length;e.post_count&&e.post_count>t?r.find(".ultp-viewall-results").addClass("active").find("span").text(`(${e.post_count-t})`):r.find(".ultp-viewall-results").removeClass("active")}}))):(r.find(".ultp-search-result").removeClass("ultp-search-show"),r.find(".ultp-result-data").removeClass("ultp-result-show"),r.find(".ultp-search-noresult").removeClass("active")),o.length<3?(e=1,r.find(".ultp-result-data").html(""),r.find(".ultp-viewall-results").removeClass("active"),r.find(".ultp-search-noresult").removeClass("active"),a.find(".ultp-search-clear").removeClass("active"),t(`.result-data.ultp-block-${n}`).find(".ultp-search-clear").removeClass("active")):(a.find(".ultp-search-clear").addClass("active"),t(`.result-data.ultp-block-${n}`).find(".ultp-search-clear").addClass("active"))};t(document).on("click",".ultp-viewall-results",(function(s){e++;const o=t(this).closest(".result-data").data("blockid");i(t(this),t(`.ultp-block-${o} .ultp-searchres-input`).val(),o,!1)})),t(".wp-block-ultimate-post-advanced-search").length>0&&t(document).on("click",(function(e){t(e.target).closest(".ultp-searchpopup-icon").length||t(e.target).closest(".ultp-searchres-input").length||t(e.target).closest(".result-data.popup-active").length||t(".result-data").removeClass("popup-active"),t(e.target).closest(".ultp-search-frontend").length||t(e.target).closest(".result-data.popup-active").length||t(".result-data").removeClass("popup-active")})),t(document).on("keyup",".ultp-searchres-input",(function(e){const i=t(this).closest(".ultp-search-inputwrap").find(".ultp-search-clear").data("blockid"),s=t(`.wp-block-ultimate-post-advanced-search.ultp-block-${i}`).find(".ultp-search-frontend").data("gosearch");let o="_self";t(`.wp-block-ultimate-post-advanced-search.ultp-block-${i}`).find(".ultp-search-frontend").data("enablenewtab")&&(o="_blank"),s&&"Enter"==e.key&&t(this).val().length>2&&window.open(`${ultp_data_frontend.home_url}/?s=${t(this).val()}`,o)})),t(document).on("click",".ultp-search-button",(function(e){const i=t(this).closest(".ultp-searchform-content").find(".ultp-search-clear").data("blockid"),s=t(`.wp-block-ultimate-post-advanced-search.ultp-block-${i}`).find(".ultp-search-frontend").data("gosearch");let o="_self";t(`.wp-block-ultimate-post-advanced-search.ultp-block-${i}`).find(".ultp-search-frontend").data("enablenewtab")&&(o="_blank"),s?window.open(`${ultp_data_frontend.home_url}/?s=${t(this).closest(".ultp-searchform-content").find(".ultp-searchres-input").val()}`,o):t(`.result-data.ultp-block-${i}`).addClass("popup-active")})),t(document).on("click",".ultp-searchres-input",(function(e){const i=t(this).closest(".ultp-searchform-content").find(".ultp-search-clear").data("blockid");t(".result-data").removeClass("popup-active"),t(`.result-data.ultp-block-${i}`).addClass("popup-active")})),t(window).on("resize",(function(){t(".ultp-search-result").length>0&&t(".ultp-search-frontend").each((function(e){s(t(e))}))}));const s=(e,i=!1)=>{const s=e.data("blockid"),o=e.data("popuptype"),n=e.data("popupposition");if(i){const i=e.data("allresult"),l=`<div class="ultp-search-result" data-image=${e.data("image")||!1} data-author=${e.data("author")||!1} data-date=${e.data("date")||!1} data-excerpt=${e.data("excerpt")||!1} data-excerptlimit=${e.data("excerptlimit")} data-allresult=${i||!1} data-catenable=${e.data("catenable")||!1} data-postno=${e.data("postno")||!1} data-gosearch=${e.data("gosearch")||!1} data-popupposition=${n||!1}>\n                    <div class="ultp-result-data"></div>\n                    <div class="ultp-search-result__item ultp-search-noresult">${e.data("noresultext")}</div>\n                    <div class="ultp-search-result__item ultp-result-loader"></div>\n                    ${i?`<div class="ultp-viewall-results ultp-search-result__item">${e.data("viewmoretext")}<span></span></div><div class="ultp-search-result__item ultp-viewmore-loader"></div>`:""}\n                    </div>`;if(o){const i=t(`.ultp-block-${s}`).find(".ultp-search-canvas").detach();t("body").append(`<div class="result-data ultp-block-${s} ultp-search-animation-${o}" data-blockid=${s}><div class="ultp-search-canvas">${i.html()+(e.data("ajax")?l:"")}</div></div>`)}else t("body").append(`<div class="result-data ultp-block-${s}" data-blockid=${s}>${l}</div>`)}let l="";if(!o){l=e.find(".ultp-searchform-content");const i=l.offset();return t(`body > .ultp-block-${s}`).css({width:`${l.width()}px`,top:`${i?.top+l.height()}px`,left:`${i?.left}px`})}if("popup"==o){l=e.find(".ultp-searchpopup-icon");const i=l.offset(),o="right"==n?i?.left>t(`body > .ultp-block-${s}`).width():t(document).width()-i?.left>t(`body > .ultp-block-${s}`).width();let a="",r="";return"right"==n?(a=o?t(document).width()-i?.left-l.outerWidth()+"px":"unset",r=o?"auto":i?.left+("right"==n?10:0)+"px"):(a=o?"unset":t(document).width()-i?.left-l.outerWidth()+"px",r=o?i?.left+("right"==n?10:0)+"px":"auto"),t(`body > .ultp-block-${s}`).css({top:`${i?.top+l.outerHeight()}px`,right:a,left:r})}}}}(jQuery);