/*jQuery easy ticker v3.2.1 - (c) 2021 Aakash Chakravarthy*/
!function(r,c){var e="easyTicker",p={direction:"up",easing:"swing",speed:"slow",interval:2e3,height:"auto",visible:0,mousePause:!0,controls:{up:"",down:"",toggle:"",playText:"Play",stopText:"Stop"},callbacks:{before:!1,after:!1}};function i(t,e){var l=this;function i(){0==l.timer&&(l.timer=setInterval(function(){o(l.opts.direction)},l.opts.interval),r(l.opts.controls.toggle).addClass("et-run").html(l.opts.controls.stopText))}function n(){clearInterval(l.timer),l.timer=0,r(l.opts.controls.toggle).removeClass("et-run").html(l.opts.controls.playText)}function o(t){var e,i,n;if(l.elem.is(":visible")){n="up"==t?(e=":first-child",i="-=","appendTo"):(e=":last-child",i="+=","prependTo");var o=l.targ.children(e),s=o.outerHeight();"function"==typeof l.opts.callbacks.before&&l.opts.callbacks.before.call(l,l.targ,o),l.targ.stop(!0,!0).animate({top:i+s+"px"},l.opts.speed,l.opts.easing,function(){o.hide()[n](l.targ).fadeIn(),l.targ.css("top",0),a(!0),"function"==typeof l.opts.callbacks.after&&l.opts.callbacks.after.call(l,l.targ,o)})}}function s(t){n(),o("up"==t?"up":"down")}function a(t){var e,i,n,o,s;"auto"==l.opts.height&&(0<l.opts.visible?(n=t,o=0,s="et-item-visible",l.targ.children().removeClass(s),l.targ.children(":lt("+l.opts.visible+")").each(function(){o+=r(this).outerHeight(),r(this).addClass(s)}),n?l.elem.stop(!0,!0).animate({height:o},l.opts.speed):l.elem.css("height",o)):(e=0,i=l.elem.css("display"),l.elem.css("display","block"),l.targ.children().each(function(){e+=r(this).outerHeight()}),l.elem.css({display:i,height:e}))),t||clearInterval(l.heightTimer)}return l.opts=r.extend({},p,e),l.elem=r(t),l.targ=r(t).children(":first-child"),l.timer=0,l.elem.children().css("margin",0).children().css("margin",0),l.elem.css({position:"relative",height:l.opts.height,overflow:"hidden"}),l.targ.css({position:"absolute",margin:0}),l.heightTimer=setInterval(function(){a(!1)},100),i(),function(){var t,e;void 0!==c.hidden?(t="hidden",e="visibilitychange"):void 0!==c.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==c.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange");c.addEventListener(e,function(){(c[t]?n:i)()},!1)}(),l.opts.mousePause&&l.elem.on("mouseenter",function(){l.timerTemp=l.timer,n()}).on("mouseleave",function(){0!==l.timerTemp&&i()}),r(l.opts.controls.up).on("click",function(t){t.preventDefault(),s("up")}),r(l.opts.controls.down).on("click",function(t){t.preventDefault(),s("down")}),r(l.opts.controls.toggle).on("click",function(t){t.preventDefault(),(0==l.timer?i:n)()}),{up:function(){s("up")},down:function(){s("down")},start:i,stop:n,options:l.opts}}r.fn[e]=function(t){return this.each(function(){r.data(this,e)||r.data(this,e,new i(this,t))})}}(jQuery,(window,document));