/*! * version: beta 1.9.4 * date: 2014-07-17 * updates and docs at: http://www.greensock.com * * @license copyright (c) 2008-2014, greensock. all rights reserved. * this work is subject to the terms at http://www.greensock.com/terms_of_use.html or for * club greensock members, the software agreement that was issued with your membership. * * @author: jack doyle, jack@greensock.com **/ var _gsscope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsscope._gsqueue||(_gsscope._gsqueue=[])).push(function(){"use strict";_gsscope._gsdefine("easing.back",["easing.ease"],function(t){var e,i,s,r=_gsscope.greensockglobals||_gsscope,n=r.com.greensock,a=2*math.pi,o=math.pi/2,h=n._class,l=function(e,i){var s=h("easing."+e,function(){},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,s},_=t.register||function(){},u=function(t,e,i,s){var r=h("easing."+t,{easeout:new e,easein:new i,easeinout:new s},!0);return _(r,t),r},c=function(t,e,i){this.t=t,this.v=e,i&&(this.next=i,i.prev=this,this.c=i.v-e,this.gap=i.t-t)},p=function(e,i){var s=h("easing."+e,function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1},!0),r=s.prototype=new t;return r.constructor=s,r.getratio=i,r.config=function(t){return new s(t)},s},f=u("back",p("backout",function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1}),p("backin",function(t){return t*t*((this._p1+1)*t-this._p1)}),p("backinout",function(t){return 1>(t*=2)?.5*t*t*((this._p2+1)*t-this._p2):.5*((t-=2)*t*((this._p2+1)*t+this._p2)+2)})),m=h("easing.slowmo",function(t,e,i){e=e||0===e?e:.7,null==t?t=.7:t>1&&(t=1),this._p=1!==t?e:0,this._p1=(1-t)/2,this._p2=t,this._p3=this._p1+this._p2,this._calcend=i===!0},!0),d=m.prototype=new t;return d.constructor=m,d.getratio=function(t){var e=t+(.5-t)*this._p;return this._p1>t?this._calcend?1-(t=1-t/this._p1)*t:e-(t=1-t/this._p1)*t*t*t*e:t>this._p3?this._calcend?1-(t=(t-this._p3)/this._p1)*t:e+(t-e)*(t=(t-this._p3)/this._p1)*t*t*t:this._calcend?1:e},m.ease=new m(.7,.7),d.config=m.config=function(t,e,i){return new m(t,e,i)},e=h("easing.steppedease",function(t){t=t||1,this._p1=1/t,this._p2=t+1},!0),d=e.prototype=new t,d.constructor=e,d.getratio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},d.config=e.config=function(t){return new e(t)},i=h("easing.roughease",function(e){e=e||{};for(var i,s,r,n,a,o,h=e.taper||"none",l=[],_=0,u=0|(e.points||20),p=u,f=e.randomize!==!1,m=e.clamp===!0,d=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--p>-1;)i=f?math.random():1/u*p,s=d?d.getratio(i):i,"none"===h?r=g:"out"===h?(n=1-i,r=n*n*g):"in"===h?r=i*i*g:.5>i?(n=2*i,r=.5*n*n*g):(n=2*(1-i),r=.5*n*n*g),f?s+=math.random()*r-.5*r:p%2?s+=.5*r:s-=.5*r,m&&(s>1?s=1:0>s&&(s=0)),l[_++]={x:i,y:s};for(l.sort(function(t,e){return t.x-e.x}),o=new c(1,1,null),p=u;--p>-1;)a=l[p],o=new c(a.x,a.y,o);this._prev=new c(0,0,0!==o.t?o:o.next)},!0),d=i.prototype=new t,d.constructor=i,d.getratio=function(t){var e=this._prev;if(t>e.t){for(;e.next&&t>=e.t;)e=e.next;e=e.prev}else for(;e.prev&&e.t>=t;)e=e.prev;return this._prev=e,e.v+(t-e.t)/e.gap*e.c},d.config=function(t){return new i(t)},i.ease=new i,u("bounce",l("bounceout",function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}),l("bouncein",function(t){return 1/2.75>(t=1-t)?1-7.5625*t*t:2/2.75>t?1-(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}),l("bounceinout",function(t){var e=.5>t;return t=e?1-2*t:2*t-1,t=1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5})),u("circ",l("circout",function(t){return math.sqrt(1-(t-=1)*t)}),l("circin",function(t){return-(math.sqrt(1-t*t)-1)}),l("circinout",function(t){return 1>(t*=2)?-.5*(math.sqrt(1-t*t)-1):.5*(math.sqrt(1-(t-=2)*t)+1)})),s=function(e,i,s){var r=h("easing."+e,function(t,e){this._p1=t||1,this._p2=e||s,this._p3=this._p2/a*(math.asin(1/this._p1)||0)},!0),n=r.prototype=new t;return n.constructor=r,n.getratio=i,n.config=function(t,e){return new r(t,e)},r},u("elastic",s("elasticout",function(t){return this._p1*math.pow(2,-10*t)*math.sin((t-this._p3)*a/this._p2)+1},.3),s("elasticin",function(t){return-(this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2))},.3),s("elasticinout",function(t){return 1>(t*=2)?-.5*this._p1*math.pow(2,10*(t-=1))*math.sin((t-this._p3)*a/this._p2):.5*this._p1*math.pow(2,-10*(t-=1))*math.sin((t-this._p3)*a/this._p2)+1},.45)),u("expo",l("expoout",function(t){return 1-math.pow(2,-10*t)}),l("expoin",function(t){return math.pow(2,10*(t-1))-.001}),l("expoinout",function(t){return 1>(t*=2)?.5*math.pow(2,10*(t-1)):.5*(2-math.pow(2,-10*(t-1)))})),u("sine",l("sineout",function(t){return math.sin(t*o)}),l("sinein",function(t){return-math.cos(t*o)+1}),l("sineinout",function(t){return-.5*(math.cos(math.pi*t)-1)})),h("easing.easelookup",{find:function(e){return t.map[e]}},!0),_(r.slowmo,"slowmo","ease,"),_(i,"roughease","ease,"),_(e,"steppedease","ease,"),f},!0)}),_gsscope._gsdefine&&_gsscope._gsqueue.pop()();