(function(){!function(a){return a.fn.animatext=function(b){var c,d;if(d=a.extend({group:!1,mode:"chars",initdelay:0,speed:200,timetorelaunch:2e3,reverse:!1,infinite:!1,random:!1,onbegin:function(){},onsuccess:function(){}},b),c=function(b){var c,e,f,g,h,i,j,k,l,m,n,o,p,q;if(d.onbegin(),c=[],g=!1,d.group?a(b).each(function(b,d){return a(d).css("visibility","hidden"),c.push(d)}):(l="",i=b.html().split("
"),a(i).each(function(b,c){var e,f;return f="",e=c.split(" "),a(e).each(function(b,c){var e,g;return"chars"===d.mode?(e="",g=c.split(""),a(g).each(function(a,b){return e+='"}),f+=' "):f+=' "}),l+='
"}),b.attr("aria-label",b.text()),b.html(l),f=b.find("span[class^='word']"),"chars"===d.mode?a(f).each(function(b,d){var e;return e=a(d).find("span[class^='char']"),a(e).each(function(a,b){return c.push(b)})}):a(f).each(function(a,b){return c.push(b)})),d.reverse&&!d.random&&c.reverse(),d.random){for(e=[],n=c.length,q=k=o=n;o<=1?k<=1:k>=1;q=o<=1?++k:--k)m=math.floor(math.random()*c.length),e.push(c[m]),c.splice(m,1);c=e}return p=function(b){return d.group?a(b).each(function(b,c){return a(c).css("visibility","hidden"),a(c).removeclass("animated"),a(c).removeclass(d.effect)}):(b.find("span").css("visibility","hidden"),b.find("span").removeclass("animated"),b.find("span").removeclass(d.effect)),j()},j=function(){var e,f;return g=!0,f=0,e=setinterval(function(){return f>=c.length&&(clearinterval(e),d.onsuccess(),d.infinite&&settimeout(function(){return g=!1,p(b)},d.timetorelaunch)),a(c[f]).css("visibility","visible"),d.effect&&a(c[f]).addclass("animated "+d.effect),f+=1},d.speed)},h=function(b){var c,d,e,f;if(b=a(b),f=a(window),e={top:f.scrolltop(),left:f.scrollleft()},e.right=e.left+f.width(),e.bottom=e.top+f.height(),c=b.offset(),c.right=c.left+b.width(),c.bottom=c.top+b.height(),d=!(e.rightc.right||e.bottomc.bottom),d&&!g)return j()},a(window).on("resize scroll",function(){return h(b)}),a(document).ready(function(){return settimeout(function(){return h(b)},d.initdelay)})},this.length>0)return d.group?c(this):a(this).each(function(b,d){return c(a(d))})}}(window.jquery||window.zepto||window.$)}).call(this);