PageSourceSearch

https://lespecs.com/cdn/shop/t/286/assets/jquery.ScrollMagic.js?v=100064161800961904801789610190

js lespecs.com collected 2026-09-25 19:04:33 UTC 136,449 bytes, 58 lines download raw bytes

1/*!
2 * VERSION: 1.15.1
3 * DATE: 2015-01-20
4 * UPDATES AND DOCS AT: http://greensock.com
5 *
6 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
7 *
8 * @license Copyright (c) 2008-2015, GreenSock. All rights reserved.
9 * This work is subject to the terms at http://greensock.com/standard-license or for
10 * Club GreenSock members, the software agreement that was issued with your membership.
11 *
12 * @author: Jack Doyle, [email protected]
13 **/
14var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push((function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,i){var r=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},n=function(t,e,r){i.call(this,t,e,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=n.prototype.render},s=1e-10,o=i._internals,a=o.isSelector,l=o.isArray,h=n.prototype=i.to({},.1,{}),u=[];n.version="1.15.1",h.constructor=n,h.kill()._gc=!1,n.killTweensOf=n.killDelayedCallsTo=i.killTweensOf,n.getTweensOf=i.getTweensOf,n.lagSmoothing=i.lagSmoothing,n.ticker=i.ticker,n.render=i.render,h.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),i.prototype.invalidate.call(this)},h.updateTo=function(t,e){var r,n=this.ratio,s=this.vars.immediateRender||t.immediateRender;for(r in e&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay)),t)this.vars[r]=t[r];if(this._initted||s)if(e)this._initted=!1,s&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&i._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var o=this._time;this.render(0,!0,!1),this._initted=!1,this.render(o,!0,!1)}else if(this._time>0||s){this._initted=!1,this._init();for(var a,l=1/(1-n),h=this._firstPT;h;)a=h.s+h.c,h.c*=l,h.s=a-h.c,h=h._next}return this},h.render=function(t,e,i){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var r,n,a,l,h,c,p,f,d=this._dirty?this.totalDuration():this._totalDuration,_=this._time,m=this._totalTime,g=this._cycle,v=this._duration,y=this._rawPrevTime;if(t>=d?(this._totalTime=d,this._cycle=this._repeat,this._yoyo&&0!=(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=v,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(r=!0,n="onComplete"),0===v&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>y||y===s)&&y!==t&&(i=!0,y>s&&(n="onReverseComplete")),this._rawPrevTime=f=!e||t||y===t?t:s)):1e-7>t?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==m||0===v&&y>0&&y!==s)&&(n="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===v&&(this._initted||!this.vars.lazy||i)&&(y>=0&&(i=!0),this._rawPrevTime=f=!e||t||y===t?t:s)),this._initted||(i=!0)):(this._totalTime=this._time=t,0!==this._repeat&&(l=v+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!=(1&this._cycle)&&(this._time=v-this._time),this._time>v?this._time=v:0>this._time&&(this._time=0)),this._easeType?(h=this._time/v,(1===(c=this._easeType)||3===c&&h>=.5)&&(h=1-h),3===c&&(h*=2),1===(p=this._easePower)?h*=h:2===p?h*=h*h:3===p?h*=h*h*h:4===p&&(h*=h*h*h*h),this.ratio=1===c?1-h:2===c?h:.5>this._time/v?h/2:1-h/2):this.ratio=this._ease.getRatio(this._time/v)),_===this._time&&!i&&g===this._cycle)return m!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUp
vendor: 5,734 bytes, line 14
14dateParams||u)),void 0;if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=_,this._totalTime=m,this._rawPrevTime=y,this._cycle=g,o.lazyTweens.push(this),this._lazy=[t,e],void 0;this._time&&!r?this.ratio=this._ease.getRatio(this._time/v):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==_&&t>=0&&(this._active=!0),0===m&&(2===this._initted&&t>0&&this._init(),this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===v)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||u))),a=this._firstPT;a;)a.f?a.t[a.p](a.c*this.ratio+a.s):a.t[a.p]=a.c*this.ratio+a.s,a=a._next;this._onUpdate&&(0>t&&this._startAt&&this._startTime&&this._startAt.render(t,e,i),e||(this._totalTime!==m||r)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||u)),this._cycle!==g&&(e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||u)),n&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this.vars[n].apply(this.vars[n+"Scope"]||this,this.vars[n+"Params"]||u),0===v&&this._rawPrevTime===s&&f!==s&&(this._rawPrevTime=0))},n.to=function(t,e,i){return new n(t,e,i)},n.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new n(t,e,i)},n.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new n(t,e,r)},n.staggerTo=n.allTo=function(t,e,s,o,h,c,p){o=o||0;var f,d,_,m,g=s.delay||0,v=[],y=function(){s.onComplete&&s.onComplete.apply(s.onCompleteScope||this,arguments),h.apply(p||this,c||u)};for(l(t)||("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=r(t))),t=t||[],0>o&&((t=r(t)).reverse(),o*=-1),f=t.length-1,_=0;f>=_;_++){for(m in d={},s)d[m]=s[m];d.delay=g,_===f&&h&&(d.onComplete=y),v[_]=new n(t[_],e,d),g+=o}return v},n.staggerFrom=n.allFrom=function(t,e,i,r,s,o,a){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,n.staggerTo(t,e,i,r,s,o,a)},n.staggerFromTo=n.allFromTo=function(t,e,i,r,s,o,a,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,n.staggerTo(t,e,r,s,o,a,l)},n.delayedCall=function(t,e,i,r,s){return new n(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:r,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:r,immediateRender:!1,useFrames:s,overwrite:0})},n.set=function(t,e){return new n(t,0,e)},n.isTweening=function(t){return i.getTweensOf(t,!0).length>0};var c=function(t,e){for(var r=[],n=0,s=t._first;s;)s instanceof i?r[n++]=s:(e&&(r[n++]=s),n=(r=r.concat(c(s,e))).length),s=s._next;return r},p=n.getAllTweens=function(e){return c(t._rootTimeline,e).concat(c(t._rootFramesTimeline,e))};n.killAll=function(t,i,r,n){null==i&&(i=!0),null==r&&(r=!0);var s,o,a,l=p(0!=n),h=l.length,u=i&&r&&n;for(a=0;h>a;a++)o=l[a],(u||o instanceof e||(s=o.target===o.vars.onComplete)&&r||i&&!s)&&(t?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},n.killChildTweensOf=function(t,e){if(null!=t){var s,h,u,c,p,f=o.tweenLookup;if("string"==typeof t&&(t=i.selector(t)||t),a(t)&&(t=r(t)),l(t))for(c=t.length;--c>-1;)n.killChildTweensOf(t[c],e);else{for(u in s=[],f)for(h=f[u].target.parentNode;h;)h===t&&(s=s.concat(f[u].tweens)),h=h.parentNode;for(p=s.length,c=0;p>c;c++)e&&s[c].totalTime(s[c].totalDuration()),s[c]._enabled(!1,!1)}}};var f=function(t,i,r,n){i=!1!==i,r=!1!==r;for(var s,o,a=p(n=!1!==n),l=i&&r&&n,h=a.length;--h>-1;)o=a[h],(l||o instanceof e||(s=o.target===o.vars.onComplete)&&r||i&&!s)&&o.paused(t)};return n.pauseAll=function(t,e,i){f(!0,t,e,i)},n.resumeAll=function(t,e,i){f(!1,t,e,i)},n.globalTimeScale=function(e){var r=t._rootTimeline,n=i.ticker.time;return arguments.length?(e=e||s,r._startTime=n-(n-r._startTime)*r._timeScale/e,r=t._rootFramesTimeline,n=i.ticker.frame,r._startTime=n-(n-r._startTime)*r._timeScale/e,r._timeScale=t._rootTimeline._timeScale=e,e):r._timeScale},h.progress=function(t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},h.totalProgress=function(t){return arguments.length?this.totalTime(this.totalDuration()*t,!1):this._totalTime/this.totalDuration()},h.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},h.duration=function(e){return arguments.length?t.prototype.duration.call(this,e):this._duration},h.totalDuration=function(t){return arguments.length?-1===this._repeat?this:this.duration((t-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},h.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},h.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},h.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},n}),!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],(function(t,e,
14i){var r=function(t){e.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var i,r,n=this.vars;for(r in n)i=n[r],l(i)&&-1!==i.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(i));l(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},n=1e-10,s=i._internals,o=r._internals={},a=s.isSelector,l=s.isArray,h=s.lazyTweens,u=s.lazyRender,c=[],p=_gsScope._gsDefine.globals,f=function(t){var e,i={};for(e in t)i[e]=t[e];return i},d=o.pauseCallback=function(t,e,i,r){var n=t._timeline,s=n._totalTime;!e&&this._forcingPlayhead||n._rawPrevTime===t._startTime||(n.pause(t._startTime),e&&e.apply(r||n,i||c),this._forcingPlayhead&&n.seek(s))},_=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},m=r.prototype=new e;return r.version="1.15.1",m.constructor=r,m.kill()._gc=m._forcingPlayhead=!1,m.to=function(t,e,r,n){var s=r.repeat&&p.TweenMax||i;return e?this.add(new s(t,e,r),n):this.set(t,r,n)},m.from=function(t,e,r,n){return this.add((r.repeat&&p.TweenMax||i).from(t,e,r),n)},m.fromTo=function(t,e,r,n,s){var o=n.repeat&&p.TweenMax||i;return e?this.add(o.fromTo(t,e,r,n),s):this.set(t,n,s)},m.staggerTo=function(t,e,n,s,o,l,h,u){var c,p=new r({onComplete:l,onCompleteParams:h,onCompleteScope:u,smoothChildTiming:this.smoothChildTiming});for("string"==typeof t&&(t=i.selector(t)||t),a(t=t||[])&&(t=_(t)),0>(s=s||0)&&((t=_(t)).reverse(),s*=-1),c=0;t.length>c;c++)n.startAt&&(n.startAt=f(n.startAt)),p.to(t[c],e,f(n),c*s);return this.add(p,o)},m.staggerFrom=function(t,e,i,r,n,s,o,a){return i.immediateRender=0!=i.immediateRender,i.runBackwards=!0,this.staggerTo(t,e,i,r,n,s,o,a)},m.staggerFromTo=function(t,e,i,r,n,s,o,a,l){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,this.staggerTo(t,e,r,n,s,o,a,l)},m.call=function(t,e,r,n){return this.add(i.delayedCall(0,t,e,r),n)},m.set=function(t,e,r){return r=this._parseTimeOrLabel(r,0,!0),null==e.immediateRender&&(e.immediateRender=r===this._time&&!this._paused),this.add(new i(t,0,e),r)},r.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var n,s,o=new r(t),a=o._timeline;for(null==e&&(e=!0),a._remove(o,!0),o._startTime=0,o._rawPrevTime=o._time=o._totalTime=a._time,n=a._first;n;)s=n._next,e&&n instanceof i&&n.target===n.vars.onComplete||o.add(n,n._startTime-n._delay),n=s;return a.add(o,0),o},m.add=function(n,s,o,a){var h,u,c,p,f,d;if("number"!=typeof s&&(s=this._parseTimeOrLabel(s,0,!0,n)),!(n instanceof t)){if(n instanceof Array||n&&n.push&&l(n)){for(o=o||"normal",a=a||0,h=s,u=n.length,c=0;u>c;c++)l(p=n[c])&&(p=new r({tweens:p})),this.add(p,h),"string"!=typeof p&&"function"!=typeof p&&("sequence"===o?h=p._startTime+p.totalDuration()/p._timeScale:"start"===o&&(p._startTime-=p.delay())),h+=a;return this._uncache(!0)}if("string"==typeof n)return this.addLabel(n,s);if("function"!=typeof n)throw"Cannot add "+n+" into the timeline; it is not a tween, timeline, function, or string.";n=i.delayedCall(0,n)}if(e.prototype.add.call(this,n,s),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(d=(f=this).rawTime()>n._startTime;f._timeline;)d&&f._timeline.smoothChildTiming?f.totalTime(f._totalTime,!0):f._gc&&f._enabled(!0,!1),f=f._timeline;return this},m.remove=function(e){if(e instanceof t)return this._remove(e,!1);if(e instanceof Array||e&&e.push&&l(e)){for(var i=e.length;--i>-1;)this.remove(e[i]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},m._remove=function(t,i){e.prototype._remove.call(this,t,i);var r=this._last;return r?this._time>r._startTime+r._totalDuration/r._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},m.insert=m.insertMultiple=function(t,e,i,r){return this.add(t,e||0,i,r)},m.appendMultiple=function(t,e,i,r){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),i,r)},m.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},m.addPause=function(t,e,r,n){var s=i.delayedCall(0,d,["{self}",e,r,n],this);return s.data="isPause",this.add(s,t)},m.removeLabel=function(t){return delete this._labels[t],this},m.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},m._parseTimeOrLabel=function(e,i,r,n){var s;if(n instanceof t&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&l(n)))for(s=n.length;--s>-1;)n[s]instanceof t&&n[s].timeline===this&&this.remove(n[s]);if("string"==typeof i)return this._parseTimeOrLabel(i,r&&"number"==typeof e&&null==this._labels[i]?e-this.duration():0,r);if(i=i||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=this.duration());else{if(-1===(s=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=this.duration()+i:i:this._labels[e]+i;i=parseInt(e.charAt(s-1)+"1",10)*Number(e.substr(s+1)),e=s>1?this._parseTimeOrLabel(e.substr(0,s-1),0,r):this.duration()}return Number(e)+i},m.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(t,e){return this.play(t,e)},m.gotoAndStop=function(t,e){return this.pause(t,e)}
14,m.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,s,o,a,l,p=this._dirty?this.totalDuration():this._totalDuration,f=this._time,d=this._startTime,_=this._timeScale,m=this._paused;if(t>=p?(this._totalTime=this._time=p,this._reversed||this._hasPausedChild()||(s=!0,a="onComplete",0===this._duration&&(0===t||0>this._rawPrevTime||this._rawPrevTime===n)&&this._rawPrevTime!==t&&this._first&&(l=!0,this._rawPrevTime>n&&(a="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,t=p+1e-4):1e-7>t?(this._totalTime=this._time=0,(0!==f||0===this._duration&&this._rawPrevTime!==n&&(this._rawPrevTime>0||0>t&&this._rawPrevTime>=0))&&(a="onReverseComplete",s=this._reversed),0>t?(this._active=!1,this._rawPrevTime>=0&&this._first&&(l=!0),this._rawPrevTime=t):(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,t=0,this._initted||(l=!0))):this._totalTime=this._time=this._rawPrevTime=t,this._time!==f&&this._first||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==f&&t>0&&(this._active=!0),0===f&&this.vars.onStart&&0!==this._time&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||c)),this._time>=f)for(r=this._first;r&&(o=r._next,!this._paused||m);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=o;else for(r=this._last;r&&(o=r._prev,!this._paused||m);)(r._active||f>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=o;this._onUpdate&&(e||(h.length&&u(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||c))),a&&(this._gc||(d===this._startTime||_!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(s&&(h.length&&u(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[a]&&this.vars[a].apply(this.vars[a+"Scope"]||this,this.vars[a+"Params"]||c)))}},m._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof r&&t._hasPausedChild())return!0;t=t._next}return!1},m.getChildren=function(t,e,r,n){n=n||-9999999999;for(var s=[],o=this._first,a=0;o;)n>o._startTime||(o instanceof i?!1!==e&&(s[a++]=o):(!1!==r&&(s[a++]=o),!1!==t&&(a=(s=s.concat(o.getChildren(!0,e,r))).length))),o=o._next;return s},m.getTweensOf=function(t,e){var r,n,s=this._gc,o=[],a=0;for(s&&this._enabled(!0,!0),n=(r=i.getTweensOf(t)).length;--n>-1;)(r[n].timeline===this||e&&this._contains(r[n]))&&(o[a++]=r[n]);return s&&this._enabled(!1,!0),o},m.recent=function(){return this._recent},m._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},m.shiftChildren=function(t,e,i){i=i||0;for(var r,n=this._first,s=this._labels;n;)n._startTime>=i&&(n._startTime+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return this._uncache(!0)},m._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var i=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),r=i.length,n=!1;--r>-1;)i[r]._kill(t,e)&&(n=!0);return n},m.clear=function(t){var e=this.getChildren(!1,!0,!0),i=e.length;for(this._time=this._totalTime=0;--i>-1;)e[i]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)}
14,m.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},m._enabled=function(t,i){if(t===this._gc)for(var r=this._first;r;)r._enabled(t,!0),r=r._next;return e.prototype._enabled.call(this,t,i)},m.totalTime=function(){this._forcingPlayhead=!0;var e=t.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},m.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(t){if(!arguments.length){if(this._dirty){for(var e,i,r=0,n=this._last,s=999999999999;n;)e=n._prev,n._dirty&&n.totalDuration(),n._startTime>s&&this._sortChildren&&!n._paused?this.add(n,n._startTime-n._delay):s=n._startTime,0>n._startTime&&!n._paused&&(r-=n._startTime,this._timeline.smoothChildTiming&&(this._startTime+=n._startTime/this._timeScale),this.shiftChildren(-n._startTime,!1,-9999999999),s=0),(i=n._startTime+n._totalDuration/n._timeScale)>r&&(r=i),n=e;this._duration=this._totalDuration=r,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==t&&this.timeScale(this._totalDuration/t),this},m.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===t._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},r}),!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],(function(t,e,i){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!0===this.vars.yoyo,this._dirty=!0},n=1e-10,s=[],o=e._internals,a=o.lazyTweens,l=o.lazyRender,h=new i(null,null,1,0),u=r.prototype=new t;return u.constructor=r,u.kill()._gc=!1,r.version="1.15.1",u.invalidate=function(){return this._yoyo=!0===this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},u.addCallback=function(t,i,r,n){return this.add(e.delayedCall(0,t,r,n),i)},u.removeCallback=function(t,e){if(t)if(null==e)this._kill(null,t);else for(var i=this.getTweensOf(t,!1),r=i.length,n=this._parseTimeOrLabel(e);--r>-1;)i[r]._startTime===n&&i[r]._enabled(!1,!1);return this},u.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},u.tweenTo=function(t,i){i=i||{};var r,n,o,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1};for(n in i)a[n]=i[n];return a.time=this._parseTimeOrLabel(t),r=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,o=new e(this,r,a),a.onStart=function(){o.target.paused(!0),o.vars.time!==o.target.time()&&r===o.duration()&&o.duration(Math.abs(o.vars.time-o.target.time())/o.target._timeScale),i.onStart&&i.onStart.apply(i.onStartScope||o,i.onStartParams||s)},o},u.tweenFromTo=function(t,e,i){i=i||{},t=this._parseTimeOrLabel(t),i.startAt={onComplete:this.seek,onCompleteParams:[t],onCompleteScope:this},i.immediateRender=!1!==i.immediateRender;var r=this.tweenTo(e,i);return r.duration(Math.abs(r.vars.time-t)/this._timeScale||.001)},u.render=function(t,e,i){this._gc&&this._enabled(!0,!1);var r,o,h,u,c,p,f=this._dirty?this.totalDuration():this._totalDuration,d=this._duration,_=this._time,m=this._totalTime,g=this._startTime,v=this._timeScale,y=this._rawPrevTime,w=this._paused,T=this._cycle;if(t>=f?(this._locked||(this._totalTime=f,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(o=!0,u="onComplete",0===this._duration&&(0===t||0>y||y===n)&&y!==t&&this._first&&(c=!0,y>n&&(u="onReverseComplete"))),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:n,this._yoyo&&0!=(1&this._cycle)?this._time=t=0:(this._time=d,t=d+1e-4)):1e-7>t?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==_||0===d&&y!==n&&(y>0||0>t&&y>=0)&&!this._locked)&&(u="onReverseComplete",o=this._reversed),0>t?(this._active=!1,y>=0&&this._first&&(c=!0),this._rawPrevTime=t):(this._rawPrevTime=d||!e||t||this._rawPrevTime===t?t:n,t=0,this._initted||(c=!0))):(0===d&&0>y&&(c=!0),this._time=this._rawPrevTime=t,this._locked||(this._totalTime=t,0!==this._repeat&&(p=d+this._repeatDelay,this._cycle=this._totalTime/p>>0,0!==this._cycle&&this._cycle===this._totalTime/p&&this._cycle--,this._time=this._totalTime-this._cycle*p,this._yoyo&&0!=(1&this._cycle)&&(this._time=d-this._time),this._time>d?(this._time=d,t=d+1e-4):0>this._time?this._time=t=0:t=this._time))),this._cycle!==T&&!this._locked){var b=this._yoyo&&0!=(1&T),x=b===(this._yoyo&&0!=(1&this._cycle)),P=this._totalTime,S=this._cycle,R=this._rawPrevTime,C=this._time;if(this._totalTime=T*d,T>this._cycle?b=!b:this._totalTime+=d,this._time=_,this._rawPrevTime=0===d?y-1e-4:y,this._cycle=T,this._locked=!0,_=b?0:d,this.render(_,e,0===d),e||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||s),x&&(_=b?d+1e-4:-1e-4,this.render(_,!0,!1)),this._locked=!1,this._paused&&!w)return;this._time=C,this._totalTime=P,this._cycle=S,this._rawPrevTime=R}if(!(this._time!==_&&this._first||i||c))return m!==this._totalTime&&this._onUpdate&&(e||this._onUpdate.apply(this.vars.onUp
14dateScope||this,this.vars.onUpdateParams||s)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==m&&t>0&&(this._active=!0),0===m&&this.vars.onStart&&0!==this._totalTime&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s)),this._time>=_)for(r=this._first;r&&(h=r._next,!this._paused||w);)(r._active||r._startTime<=this._time&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=h;else for(r=this._last;r&&(h=r._prev,!this._paused||w);)(r._active||_>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,i):r.render((t-r._startTime)*r._timeScale,e,i)),r=h;this._onUpdate&&(e||(a.length&&l(),this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s))),u&&(this._locked||this._gc||(g===this._startTime||v!==this._timeScale)&&(0===this._time||f>=this.totalDuration())&&(o&&(a.length&&l(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[u]&&this.vars[u].apply(this.vars[u+"Scope"]||this,this.vars[u+"Param
14s"]||s)))},u.getActive=function(t,e,i){null==t&&(t=!0),null==e&&(e=!0),null==i&&(i=!1);var r,n,s=[],o=this.getChildren(t,e,i),a=0,l=o.length;for(r=0;l>r;r++)(n=o[r]).isActive()&&(s[a++]=n);return s},u.getLabelAfter=function(t){t||0!==t&&(t=this._time);var e,i=this.getLabelsArray(),r=i.length;for(e=0;r>e;e++)if(i[e].time>t)return i[e].name;return null},u.getLabelBefore=function(t){null==t&&(t=this._time);for(var e=this.getLabelsArray(),i=e.length;--i>-1;)if(t>e[i].time)return e[i].name;return null},u.getLabelsArray=function(){var t,e=[],i=0;for(t in this._labels)e[i++]={time:this._labels[t],name:t};return e.sort((function(t,e){return t.time-e.time})),e},u.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-t:t)+this._cycle*(this._duration+this._repeatDelay),e):this._time/this.duration()},u.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this._totalTime/this.totalDuration()},u.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},u.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),t>this._duration&&(t=this._duration),this._yoyo&&0!=(1&this._cycle)?t=this._duration-t+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(t+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(t,e)):this._time},u.repeat=function(t){return arguments.length?(this._repeat=t,this._uncache(!0)):this._repeat},u.repeatDelay=function(t){return arguments.length?(this._repeatDelay=t,this._uncache(!0)):this._repeatDelay},u.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},u.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.getLabelBefore(this._time+1e-8)},r}),!0),function(){var t=180/Math.PI,e=[],i=[],r=[],n={},s=_gsScope._gsDefine.globals,o=function(t,e,i,r){this.a=t,this.b=e,this.c=i,this.d=r,this.da=r-t,this.ca=i-t,this.ba=e-t},a=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",l=function(t,e,i,r){var n={a:t},s={},o={},a={c:r},l=(t+e)/2,h=(e+i)/2,u=(i+r)/2,c=(l+h)/2,p=(h+u)/2,f=(p-c)/8;return n.b=l+(t-l)/4,s.b=c+f,n.c=s.a=(n.b+s.b)/2,s.c=o.a=(c+p)/2,o.b=p-f,a.b=u+(r-u)/4,o.c=a.a=(o.b+a.b)/2,[n,s,o,a]},h=function(t,n,s,o,a){var h,u,c,p,f,d,_,m,g,v,y,w,T,b=t.length-1,x=0,P=t[0].a;for(h=0;b>h;h++)u=(f=t[x]).a,c=f.d,p=t[x+1].d,a?(y=e[h],T=.25*((w=i[h])+y)*n/(o?.5:r[h]||.5),m=c-((d=c-(c-u)*(o?.5*n:0!==y?T/y:0))+(((_=c+(p-c)*(o?.5*n:0!==w?T/w:0))-d)*(3*y/(y+w)+.5)/4||0))):m=c-((d=c-.5*(c-u)*n)+(_=c+.5*(p-c)*n))/2,d+=m,_+=m,f.c=g=d,f.b=0!==h?P:P=f.a+.6*(f.c-f.a),f.da=c-u,f.ca=g-u,f.ba=P-u,s?(v=l(u,P,g,c),t.splice(x,1,v[0],v[1],v[2],v[3]),x+=4):x++,P=_;(f=t[x]).b=P,f.c=P+.4*(f.d-P),f.da=f.d-f.a,f.ca=f.c-f.a,f.ba=P-f.a,s&&(v=l(f.a,P,f.c,f.d),t.splice(x,1,v[0],v[1],v[2],v[3]))},u=function(t,r,n,s){var a,l,h,u,c,p,f=[];if(s)for(l=(t=[s].concat(t)).length;--l>-1;)"string"==typeof(p=t[l][r])&&"="===p.charAt(1)&&(t[l][r]=s[r]+Number(p.charAt(0)+p.substr(2)));if(0>(a=t.length-2))return f[0]=new o(t[0][r],0,0,t[-1>a?0:1][r]),f;for(l=0;a>l;l++)h=t[l][r],u=t[l+1][r],f[l]=new o(h,0,0,u),n&&(c=t[l+2][r],e[l]=(e[l]||0)+(u-h)*(u-h),i[l]=(i[l]||0)+(c-u)*(c-u));return f[l]=new o(t[l][r],0,0,t[l+1][r]),f},c=function(t,s,o,l,c,p){var f,d,_,m,g,v,y,w,T={},b=[],x=p||t[0];for(d in c="string"==typeof c?","+c+",":a,null==s&&(s=1),t[0])b.push(d);if(t.length>1){for(w=t[t.length-1],y=!0,f=b.length;--f>-1;)if(d=b[f],Math.abs(x[d]-w[d])>.05){y=!1;break}y&&(t=t.concat(),p&&t.unshift(p),t.push(t[1]),p=t[t.length-3])}for(e.length=i.length=r.length=0,f=b.length;--f>-1;)d=b[f],n[d]=-1!==c.indexOf(","+d+","),T[d]=u(t,d,n[d],p);for(f=e.length;--f>-1;)e[f]=Math.sqrt(e[f]),i[f]=Math.sqrt(i[f]);if(!l){for(f=b.length;--f>-1;)if(n[d])for(v=(_=T[b[f]]).length-1,m=0;v>m;m++)g=_[m+1].da/i[m]+_[m].da/e[m],r[m]=(r[m]||0)+g*g;for(f=r.length;--f>-1;)r[f]=Math.sqrt(r[f])}for(f=b.length,m=o?4:1;--f>-1;)_=T[d=b[f]],h(_,s,o,l,n[d]),y&&(_.splice(0,m),_.splice(_.length-m,m));return T}
14,p=function(t,e,i){var r,n,s,a,l,h,u,c,p,f,d,_={},m="cubic"===(e=e||"soft")?3:2,g="soft"===e,v=[];if(g&&i&&(t=[i].concat(t)),null==t||m+1>t.length)throw"invalid Bezier data";for(p in t[0])v.push(p);for(h=v.length;--h>-1;){for(_[p=v[h]]=l=[],f=0,c=t.length,u=0;c>u;u++)r=null==i?t[u][p]:"string"==typeof(d=t[u][p])&&"="===d.charAt(1)?i[p]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&u>1&&c-1>u&&(l[f++]=(r+l[f-2])/2),l[f++]=r;for(c=f-m+1,f=0,u=0;c>u;u+=m)r=l[u],n=l[u+1],s=l[u+2],a=2===m?0:l[u+3],l[f++]=d=3===m?new o(r,n,s,a):new o(r,(2*n+r)/3,(2*n+s)/3,s);l.length=f}return _},f=function(t,e,i){for(var r,n,s,o,a,l,h,u,c,p,f,d=1/i,_=t.length;--_>-1;)for(s=(p=t[_]).a,o=p.d-s,a=p.c-s,l=p.b-s,r=n=0,u=1;i>=u;u++)r=n-(n=((h=d*u)*h*o+3*(c=1-h)*(h*a+c*l))*h),e[f=_*i+u-1]=(e[f]||0)+r*r},d=function(t,e){var i,r,n,s,o=[],a=[],l=0,h=0,u=(e=e>>0||6)-1,c=[],p=[];for(i in t)f(t[i],o,e);for(n=o.length,r=0;n>r;r++)l+=Math.sqrt(o[r]),p[s=r%e]=l,s===u&&(h+=l,c[s=r/e>>0]=p,a[s]=h,l=0,p=[]);return{length:h,lengths:a,segments:c}},_=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.4",API:2,global:!0,init:function(t,e,i){this._target=t,e instanceof Array&&(e={values:e}),this._func={},this._round={},this._props=[],this._timeRes=null==e.timeResolution?6:parseInt(e.timeResolution,10);var r,n,s,o,a,l=e.values||[],h={},u=l[0],f=e.autoRotate||i.vars.orientToBezier;for(r in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,u)this._props.push(r);for(s=this._props.length;--s>-1;)r=this._props[s],this._overwriteProps.push(r),n=this._func[r]="function"==typeof t[r],h[r]=n?t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)]():parseFloat(t[r]),a||h[r]!==l[0][r]&&(a=h);if(this._beziers="cubic"!==e.type&&"quadratic"!==e.type&&"soft"!==e.type?c(l,isNaN(e.curviness)?1:e.curviness,!1,"thruBasic"===e.type,e.correlate,a):p(l,e.type,h),this._segCount=this._beziers[r].length,this._timeRes){var _=d(this._beziers,this._timeRes);this._length=_.length,this._lengths=_.lengths,this._segments=_.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),s=f.length;--s>-1;){for(o=0;3>o;o++)r=f[s][o],this._func[r]="function"==typeof t[r]&&t[r.indexOf("set")||"function"!=typeof t["get"+r.substr(3)]?r:"get"+r.substr(3)];r=f[s][2],this._initialRotations[s]=this._func[r]?this._func[r].call(this._target):this._target[r]}return this._startRatio=i.vars.runBackwards?1:0,!0},set:function(e){var i,r,n,s,o,a,l,h,u,c,p=this._segCount,f=this._func,d=this._target,_=e!==this._startRatio;if(this._timeRes){if(u=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&p-1>n){for(h=p-1;h>n&&e>=(this._l2=u[++n]););this._l1=u[n-1],this._li=n,this._curSeg=c=this._segments[n],this._s2=c[this._s1=this._si=0]}else if(this._l1>e&&n>0){for(;n>0&&(this._l1=u[--n])>=e;);0===n&&this._l1>e?this._l1=0:n++,this._l2=u[n],this._li=n,this._curSeg=c=this._segments[n],this._s1=c[(this._si=c.length-1)-1]||0,this._s2=c[this._si]}if(i=n,e-=this._l1,n=this._si,e>this._s2&&c.length-1>n){for(h=c.length-1;h>n&&e>=(this._s2=c[++n]););this._s1=c[n-1],this._si=n}else if(this._s1>e&&n>0){for(;n>0&&(this._s1=c[--n])>=e;);0===n&&this._s1>e?this._s1=0:n++,this._s2=c[n],this._si=n}a=(n+(e-this._s1)/(this._s2-this._s1))*this._prec}else a=(e-(i=0>e?0:e>=1?p-1:p*e>>0)*(1/p))*p;for(r=1-a,n=this._props.length;--n>-1;)s=this._props[n],l=(a*a*(o=this._beziers[s][i]).da+3*r*(a*o.ca+r*o.ba))*a+o.a,this._round[s]&&(l=Math.round(l)),f[s]?d[s](l):d[s]=l;if(this._autoRotate){var m,g,v,y,w,T,b,x=this._autoRotate;for(n=x.length;--n>-1;)s=x[n][2],T=x[n][3]||0,b=!0===x[n][4]?1:t,o=this._beziers[x[n][0]],m=this._beziers[x[n][1]],o&&m&&(o=o[i],m=m[i],g=o.a+(o.b-o.a)*a,g+=((y=o.b+(o.c-o.b)*a)-g)*a,y+=(o.c+(o.d-o.c)*a-y)*a,v=m.a+(m.b-m.a)*a,v+=((w=m.b+(m.c-m.b)*a)-v)*a,w+=(m.c+(m.d-m.c)*a-w)*a,l=_?Math.atan2(w-v,y-g)*b+T:this._initialRotations[n],f[s]?d[s](l):d[s]=l)}}}),m=_.prototype;_.bezierThrough=c,_.cubicToQuadratic=l,_._autoCSS=!0,_.quadraticToCubic=function(t,e,
14i){return new o(t,(2*e+t)/3,(2*e+i)/3,i)},_._cssRegister=function(){var t=s.CSSPlugin;if(t){var e=t._internals,i=e._parseToProxy,r=e._setPluginRatio,n=e.CSSPropTween;e._registerComplexSpecialProp("bezier",{parser:function(t,e,s,o,a,l){e instanceof Array&&(e={values:e}),l=new _;var h,u,c,p=e.values,f=p.length-1,d=[],m={};if(0>f)return a;for(h=0;f>=h;h++)c=i(t,p[h],o,a,l,f!==h),d[h]=c.end;for(u in e)m[u]=e[u];return m.values=d,(a=new n(t,"bezier",0,0,c.pt,2)).data=c,a.plugin=l,a.setRatio=r,0===m.autoRotate&&(m.autoRotate=!0),!m.autoRotate||m.autoRotate instanceof Array||(h=!0===m.autoRotate?0:Number(m.autoRotate),m.autoRotate=null!=c.end.left?[["left","top","rotation",h,!1]]:null!=c.end.x&&[["x","y","rotation",h,!1]]),m.autoRotate&&(o._transform||o._enableTransforms(!1),c.autoRotate=o._target._gsTransform),l._onInitTween(c.proxy,m,o._tween),a}})}},m._roundProps=function(t,e){for(var i=this._overwriteProps,r=i.length;--r>-1;)(t[i[r]]||t.bezier||t.bezierThrough)&&(this._round[i[r]]=e)},m._kill=function(t){var e,i,r=this._props;for(e in this._beziers)if(e in t)for(delete this._beziers[e],delete this._func[e],i=r.length;--i>-1;)r[i]===e&&r.splice(i,1);return this._super._kill.call(this,t)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],(function(t,e){var i,r,n,s,o=function(){t.call(this,"css"),this._overwriteProps.length=0,this.setRatio=o.prototype.setRatio},a=_gsScope._gsDefine.globals,l={},h=o.prototype=new t("css");h.constructor=o,o.version="1.15.1",o.API=2,o.defaultTransformPerspective=0,o.defaultSkewType="compensated",h="px",o.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var u,c,p,f,d,_,m=/(?:\d|\-\d|\.\d|\-\.\d)+/g,g=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,y=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,T=/opacity *= *([^)]*)/i,b=/opacity:([^;]*)/i,x=/alpha\(opacity *=.+?\)/i,P=/^(rgb|hsl)/,S=/([A-Z])/g,R=/-([a-z])/gi,C=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,O=function(t,e){return e.toUpperCase()},k=/(?:Left|Right|Width)/i,A=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,M=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,E=/,(?=[^\)]*(?:\(|$))/gi,D=Math.PI/180,z=180/Math.PI,I={},F=document,L=function(t){return F.createElementNS?F.createElementNS("http://www.w3.org/1999/xhtml",t):F.createElement(t)},N=L("div"),X=L("img"),G=o._internals={_specialProps:l},B=navigator.userAgent,j=function(){var t=B.indexOf("Android"),e=L("a");return p=-1!==B.indexOf("Safari")&&-1===B.indexOf("Chrome")&&(-1===t||Number(B.substr(t+8,1))>3),d=p&&6>Number(B.substr(B.indexOf("Version/")+8,1)),f=-1!==B.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(B)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(B))&&(_=parseFloat(RegExp.$1)),!!e&&(e.style.cssText="top:1px;opacity:.55;",/^0.55/.test(e.style.opacity))}(),Y=function(t){return T.test("string"==typeof t?t:(t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100:1},U=function(t){window.console&&console.log(t)},q="",W="",V=function(t,e){var i,r,n=(e=e||N).style;if(void 0!==n[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),i=["O","Moz","ms","Ms","Webkit"],r=5;--r>-1&&void 0===n[i[r]+t];);return r>=0?(W=3===r?"ms":i[r],q="-"+W.toLowerCase()+"-",W+t):null},H=F.defaultView?F.defaultView.getComputedStyle:function(){},$=o.getStyle=function(t,e,i,r,n){var s;return j||"opacity"!==e?(!r&&t.style[e]?s=t.style[e]:(i=i||H(t))?s=i[e]||i.getPropertyValue(e)||i.getPropertyValue(e.replace(S,"-$1").toLowerCase()):t.currentStyle&&(s=t.currentStyle[e]),null==n||s&&"none"!==s&&"auto"!==s&&"auto auto"!==s?s:n):Y(t)},Z=G.convertToPixels=function(t,i,r,n,s){if("px"===n||!n)return r;if("auto"===n||!r)return 0;var a,l,h,u=k.test(i),c=t,p=N.style,f=0>r;if(f&&(r=-r),"%"===n&&-1!==i.indexOf("border"))a=r/100*(u?t.clientWidth:t.clientHeight);else{if(p.cssText="border:0 solid red;position:"+$(t,"position")+";line-height:0;","%"!==n&&c.appendChild)p[u?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(l=(c=t.parentNode||F.body)._gsCache,h=e.ticker.frame,l&&u&&l.time===h)return l.width*r/100;p[u?"width":"height"]=r+n}c.appendChild(N),a=parseFloat(N[u?"offsetWidth":"offsetHeight"]),c.removeChild(N),u&&"%"===n&&!1!==o.cacheWidths&&((l=c._gsCache=c._gsCache||{}
14).time=h,l.width=100*(a/r)),0!==a||s||(a=Z(t,i,r,n,!0))}return f?-a:a},Q=G.calculateOffset=function(t,e,i){if("absolute"!==$(t,"position",i))return 0;var r="left"===e?"Left":"Top",n=$(t,"margin"+r,i);return t["offset"+r]-(Z(t,e,parseFloat(n),n.replace(w,""))||0)},K=function(t,e){var i,r,n={};if(e=e||H(t,null))for(i in e)(-1===i.indexOf("Transform")||bt===i)&&(n[i]=e[i]);else if(e=t.currentStyle||t.style)for(i in e)"string"==typeof i&&void 0===n[i]&&(n[i.replace(R,O)]=e[i]);return j||(n.opacity=Y(t)),r=Et(t,e,!1),n.rotation=r.rotation,n.skewX=r.skewX,n.scaleX=r.scaleX,n.scaleY=r.scaleY,n.x=r.x,n.y=r.y,St&&(n.z=r.z,n.rotationX=r.rotationX,n.rotationY=r.rotationY,n.scaleZ=r.scaleZ),n.filters&&delete n.filters,n},J=function(t,e,i,r,n){var s,o,a,l={},h=t.style;for(o in i)"cssText"!==o&&"length"!==o&&isNaN(o)&&(e[o]!==(s=i[o])||n&&n[o])&&-1===o.indexOf("Origin")&&("number"==typeof s||"string"==typeof s)&&(l[o]="auto"!==s||"left"!==o&&"top"!==o?""!==s&&"auto"!==s&&"none"!==s||"string"!=typeof e[o]||""===e[o].replace(y,"")?s:0:Q(t,o),void 0!==h[o]&&(a=new ft(h,o,h[o],a)));if(r)for(o in r)"className"!==o&&(l[o]=r[o]);return{difs:l,firstMPT:a}},tt={width:["Left","Right"],height:["Top","Bottom"]},et=["marginLeft","marginRight","marginTop","marginBottom"],it=function(t,e,i){var r=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),n=tt[e],s=n.length;for(i=i||H(t,null);--s>-1;)r-=parseFloat($(t,"padding"+n[s],i,!0))||0,r-=parseFloat($(t,"border"+n[s]+"Width",i,!0))||0;return r},rt=function(t,e){(null==t||""===t||"auto"===t||"auto auto"===t)&&(t="0 0");var i=t.split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],n=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];return null==n?n="center"===r?"50%":"0":"center"===n&&(n="50%"),("center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("="))&&(r="50%"),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==n.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===n.charAt(1),e.ox=parseFloat(r.replace(y,"")),e.oy=parseFloat(n.replace(y,""))),r+" "+n+(i.length>2?" "+i[2]:"")},nt=function(t,e){return"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)},st=function(t,e){return null==t?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)},ot=function(t,e,i,r){var n,s,o,a,l,h=1e-6;return null==t?a=e:"number"==typeof t?a=t:(n=360,s=t.split("_"),o=((l="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(s[0].substr(2)):parseFloat(s[0]))*(-1===t.indexOf("rad")?1:z)-(l?0:e),s.length&&(r&&(r[i]=e+o),-1!==t.indexOf("short")&&((o%=n)!==o%(n/2)&&(o=0>o?o+n:o-n)),-1!==t.indexOf("_cw")&&0>o?o=(o+9999999999*n)%n-(0|o/n)*n:-1!==t.indexOf("ccw")&&o>0&&(o=(o-9999999999*n)%n-(0|o/n)*n)),a=e+o),h>a&&a>-h&&(a=0),a},at={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},lt=function(t,e,i){return 0|255*(1>6*(t=0>t?t+1:t>1?t-1:t)?e+6*(i-e)*t:.5>t?i:2>3*t?e+6*(i-e)*(2/3-t):e)+.5},ht=o.parseColor=function(t){var e,i,r,n,s,o;return t&&""!==t?"number"==typeof t?[t>>16,255&t>>8,255&t]:(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),at[t]?at[t]:"#"===t.charAt(0)?(4===t.length&&(e=t.charAt(1),i=t.charAt(2),r=t.charAt(3),t="#"+e+e+i+i+r+r),[(t=parseInt(t.substr(1),16))>>16,255&t>>8,255&t]):"hsl"===t.substr(0,3)?(t=t.match(m),n=Number(t[0])%360/360,s=Number(t[1])/100,e=2*(o=Number(t[2])/100)-(i=.5>=o?o*(s+1):o+s-o*s),t.length>3&&(t[3]=Number(t[3])),t[0]=lt(n+1/3,e,i),t[1]=lt(n,e,i),t[2]=lt(n-1/3,e,i),t):((t=t.match(m)||at.transparent)[0]=Number(t[0]),t[1]=Number(t[1]),t[2]=Number(t[2]),t.length>3&&(t[3]=Number(t[3])),t)):at.black},ut="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(h in at)ut+="|"+h+"\\b";ut=RegExp(ut+")","gi");var ct=function(t,e,i,r){if(null==t)return function(t){return t};var n,s=e?(t.match(ut)||[""])[0]:"",o=t.split(s).join("").match(v)||[],a=t.substr(0,t.indexOf(o[0])),l=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",u=o.length,c=u>0?o[0].replace(m,""):"";return u?n=e?function(t){var e,p,f,d;if("number"==typeof t)t+=c;else if(r&&E.test(t)){for(d=t.replace(E,"|").split("|"),f=0;d.length>f;f++)d[f]=n(d[f]);return d.join(",")}if(e=(t.match(ut)||[s])[0],f=(p=t.split(e).join("").match(v)||[]).length,u>f--)for(;u>++f;)p[f]=i?p[0|(f-1)/2]:o[f];return a+p.join(h)+h+e+l+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,s,p;if("number"==typeof t)t+=c;else if(r&&E.test(t)){for(s=t.replace(E,"|").split("|"),p=0;s.length>p;p++)s[p]=n(s[p]);return s.join(",")}if(p=(e=t.match(v)||[]).length,u>p--)for(;u>++p;)e[p]=i?e[0|(p-1)/2]:o[p];return a+e.join(h)+l}:function(t){return t}},pt=function(t){return t=t.split(","),function(e,i,r,n,s,o,a){var l,h=(i+"").split(" ");for(a={},l=0;4>l;l++)a[t[l]]=h[l]=h[l]||h[(l-1)/2>>0];return n.parse(e,a,s,o)}},ft=(G._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,i,r,n,s=this.data,o=s.proxy,a=s.firstMPT,l=1e-6;a;)e=o[a.v],a.r?e=Math.round(e):l>e&&e>-l&&(e=0),a.t[a.p]=e,a=a._next;if(s.autoRotate&&(s.autoRotate.rotation=o.rotation),1===t)for(a=s.firstMPT;a;){if((i=a.t).type){if(1===i.type){for(n=i.xs0+i.s+i.xs1,r=1;i.l>r;r++)n+=i["xn"+r]+i["xs"+(r+1)];i.e=n}}else i.e=i.s+i.xs0;a=a._next}}
14,function(t,e,i,r,n){this.t=t,this.p=e,this.v=i,this.r=n,r&&(r._prev=this,this._next=r)}),dt=(G._parseToProxy=function(t,e,i,r,n,s){var o,a,l,h,u,c=r,p={},f={},d=i._transform,_=I;for(i._transform=null,I=e,r=u=i.parse(t,e,r,n),I=_,s&&(i._transform=d,c&&(c._prev=null,c._prev&&(c._prev._next=null)));r&&r!==c;){if(1>=r.type&&(f[a=r.p]=r.s+r.c,p[a]=r.s,s||(h=new ft(r,"s",a,h,r.r),r.c=0),1===r.type))for(o=r.l;--o>0;)l="xn"+o,f[a=r.p+"_"+l]=r.data[l],p[a]=r[l],s||(h=new ft(r,l,a,h,r.rxp[l]));r=r._next}return{proxy:p,end:f,firstMPT:h,pt:u}},G.CSSPropTween=function(t,e,r,n,o,a,l,h,u,c,p){this.t=t,this.p=e,this.s=r,this.c=n,this.n=l||e,t instanceof dt||s.push(this.n),this.r=h,this.type=a||0,u&&(this.pr=u,i=!0),this.b=void 0===c?r:c,this.e=void 0===p?r+n:p,o&&(this._next=o,o._prev=this)}),_t=o.parseComplex=function(t,e,i,r,n,s,o,a,l,h){o=new dt(t,e,0,0,o,h?2:1,null,!1,a,i=i||s||"",r),r+="";var c,p,f,d,_,v,y,w,T,b,x,S,R=i.split(", ").join(",").split(" "),C=r.split(", ").join(",").split(" "),O=R.length,k=!1!==u;for((-1!==r.indexOf(",")||-1!==i.indexOf(","))&&(R=R.join(" ").replace(E,", ").split(" "),C=C.join(" ").replace(E,", ").split(" "),O=R.length),O!==C.length&&(O=(R=(s||"").split(" ")).length),o.plugin=l,o.setRatio=h,c=0;O>c;c++)if(d=R[c],_=C[c],(w=parseFloat(d))||0===w)o.appendXtra("",w,nt(_,w),_.replace(g,""),k&&-1!==_.indexOf("px"),!0);else if(n&&("#"===d.charAt(0)||at[d]||P.test(d)))S=","===_.charAt(_.length-1)?"),":")",d=ht(d),_=ht(_),(T=d.length+_.length>6)&&!j&&0===_[3]?(o["xs"+o.l]+=o.l?" transparent":"transparent",o.e=o.e.split(C[c]).join("transparent")):(j||(T=!1),o.appendXtra(T?"rgba(":"rgb(",d[0],_[0]-d[0],",",!0,!0).appendXtra("",d[1],_[1]-d[1],",",!0).appendXtra("",d[2],_[2]-d[2],T?",":S,!0),T&&(d=4>d.length?1:d[3],o.appendXtra("",d,(4>_.length?1:_[3])-d,S,!1)));else if(v=d.match(m)){if(!(y=_.match(g))||y.length!==v.length)return o;for(f=0,p=0;v.length>p;p++)x=v[p],b=d.indexOf(x,f),o.appendXtra(d.substr(f,b-f),Number(x),nt(y[p],x),"",k&&"px"===d.substr(b+x.length,2),0===p),f=b+x.length;o["xs"+o.l]+=d.substr(f)}else o["xs"+o.l]+=o.l?" "+d:d;if(-1!==r.indexOf("=")&&o.data){for(S=o.xs0+o.data.s,c=1;o.l>c;c++)S+=o["xs"+c]+o.data["xn"+c];o.e=S+o["xs"+c]}return o.l||(o.type=-1,o.xs0=o.e),o.xfirst||o},mt=9;for((h=dt.prototype).l=h.pr=0;--mt>0;)h["xn"+mt]=0,h["xs"+mt]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(t,e,i,r,n,s){var o=this,a=o.l;return o["xs"+a]+=s&&a?" "+t:t||"",i||0===a||o.plugin?(o.l++,o.type=o.setRatio?2:1,o["xs"+o.l]=r||"",a>0?(o.data["xn"+a]=e+i,o.rxp["xn"+a]=n,o["xn"+a]=e,o.plugin||(o.xfirst=new dt(o,"xn"+a,e,i,o.xfirst||o,0,o.n,n,o.pr),o.xfirst.xs0=0),o):(o.data={s:e+i},o.rxp={},o.s=e,o.c=i,o.r=n,o)):(o["xs"+a]+=e+(r||""),o)};var gt=function(t,e){e=e||{},this.p=e.prefix&&V(t)||t,l[t]=l[this.p]=this,this.format=e.formatter||ct(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0},vt=G._registerComplexSpecialProp=function(t,e,i){"object"!=typeof e&&(e={parser:i});var r,n,s=t.split(","),o=e.defaultValue;for(i=i||[o],r=0;s.length>r;r++)e.prefix=0===r&&e.prefix,e.defaultValue=i[r]||o,n=new gt(s[r],e)},yt=function(t){if(!l[t]){var e=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin";vt(t,{parser:function(t,i,r,n,s,o,h){var u=a.com.greensock.plugins[e];return u?(u._cssRegister(),l[r].parse(t,i,r,n,s,o,h)):(U("Error: "+e+" js file not loaded."),s)}})}};(h=gt.prototype).parseComplex=function(t,e,i,r,n,s){var o,a,l,h,u,c,p=this.keyword;if(this.multi&&(E.test(i)||E.test(e)?(a=e.replace(E,"|").split("|"),l=i.replace(E,"|").split("|")):p&&(a=[e],l=[i])),l){for(h=l.length>a.length?l.length:a.length,o=0;h>o;o++)e=a[o]=a[o]||this.dflt,i=l[o]=l[o]||this.dflt,p&&((u=e.indexOf(p))!==(c=i.indexOf(p))&&((i=-1===c?l:a)[o]+=" "+p));e=a.join(", "),i=l.join(", ")}return _t(t,this.p,e,i,this.clrs,this.dflt,r,this.pr,n,s)},h.parse=function(t,e,i,r,s,o){return this.parseComplex(t.style,this.format($(t,this.p,n,!1,this.dflt)),this.format(e),s,o)}
14,o.registerSpecialProp=function(t,e,i){vt(t,{parser:function(t,r,n,s,o,a){var l=new dt(t,n,0,0,o,2,n,!1,i);return l.plugin=a,l.setRatio=e(t,r,s._tween,n),l},priority:i})};var wt,Tt="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),bt=V("transform"),xt=q+"transform",Pt=V("transformOrigin"),St=null!==V("perspective"),Rt=G.Transform=function(){this.perspective=parseFloat(o.defaultTransformPerspective)||0,this.force3D=!(!1===o.defaultForce3D||!St)&&(o.defaultForce3D||"auto")},Ct=window.SVGElement,Ot=function(t,e,i){var r,n=F.createElementNS("http://www.w3.org/2000/svg",t),s=/([a-z])([A-Z])/g;for(r in i)n.setAttributeNS(null,r.replace(s,"$1-$2").toLowerCase(),i[r]);return e.appendChild(n),n},kt=document.documentElement,At=function(){var t,e,i,r=_||/Android/i.test(B)&&!window.chrome;return F.createElementNS&&!r&&(t=Ot("svg",kt),i=(e=Ot("rect",t,{width:100,height:50,x:100})).getBoundingClientRect().width,e.style[Pt]="50% 50%",e.style[bt]="scaleX(0.5)",r=i===e.getBoundingClientRect().width&&!(f&&St),kt.removeChild(t)),r}(),Mt=function(t,e,i){var r=t.getBBox();e=rt(e).split(" "),i.xOrigin=(-1!==e[0].indexOf("%")?parseFloat(e[0])/100*r.width:parseFloat(e[0]))+r.x,i.yOrigin=(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*r.height:parseFloat(e[1]))+r.y},Et=G.getTransform=function(t,e,i,r){if(t._gsTransform&&i&&!r)return t._gsTransform;var s,a,l,h,u,c,p,f,d,_,m=i&&t._gsTransform||new Rt,g=0>m.scaleX,v=2e-5,y=1e5,w=St&&(parseFloat($(t,Pt,e,!1,"0 0 0").split(" ")[2])||m.zOrigin)||0,T=parseFloat(o.defaultTransformPerspective)||0;if(bt?a=$(t,xt,e,!0):t.currentStyle&&(a=(a=t.currentStyle.filter.match(A))&&4===a.length?[a[0].substr(4),Number(a[2].substr(4)),Number(a[1].substr(4)),a[3].substr(4),m.x||0,m.y||0].join(","):""),s=!a||"none"===a||"matrix(1, 0, 0, 1, 0, 0)"===a,m.svg=!!(Ct&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM)),m.svg&&(Mt(t,$(t,Pt,n,!1,"50% 50%")+"",m),wt=o.useSVGTransformAttr||At,l=t.getAttribute("transform"),s&&l&&-1!==l.indexOf("matrix")&&(a=l,s=0)),!s){for(h=(l=(a||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[]).length;--h>-1;)u=Number(l[h]),l[h]=(c=u-(u|=0))?(0|c*y+(0>c?-.5:.5))/y+u:u;if(16===l.length){var b,x,P,S,R,C=l[0],O=l[1],k=l[2],M=l[3],E=l[4],D=l[5],I=l[6],F=l[7],L=l[8],N=l[9],X=l[10],G=l[12],B=l[13],j=l[14],Y=l[11],U=Math.atan2(I,X);m.zOrigin&&(G=L*(j=-m.zOrigin)-l[12],B=N*j-l[13],j=X*j+m.zOrigin-l[14]),m.rotationX=U*z,U&&(b=E*(S=Math.cos(-U))+L*(R=Math.sin(-U)),x=D*S+N*R,P=I*S+X*R,L=E*-R+L*S,N=D*-R+N*S,X=I*-R+X*S,Y=F*-R+Y*S,E=b,D=x,I=P),U=Math.atan2(L,X),m.rotationY=U*z,U&&(x=O*(S=Math.cos(-U))-N*(R=Math.sin(-U)),P=k*S-X*R,N=O*R+N*S,
14X=k*R+X*S,Y=M*R+Y*S,C=b=C*S-L*R,O=x,k=P),U=Math.atan2(O,C),m.rotation=U*z,U&&(C=C*(S=Math.cos(-U))+E*(R=Math.sin(-U)),x=O*S+D*R,D=O*-R+D*S,I=k*-R+I*S,O=x),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY+=180),m.scaleX=(0|Math.sqrt(C*C+O*O)*y+.5)/y,m.scaleY=(0|Math.sqrt(D*D+N*N)*y+.5)/y,m.scaleZ=(0|Math.sqrt(I*I+X*X)*y+.5)/y,m.skewX=0,m.perspective=Y?1/(0>Y?-Y:Y):0,m.x=G,m.y=B,m.z=j}else if(!(St&&!r&&l.length&&m.x===l[4]&&m.y===l[5]&&(m.rotationX||m.rotationY)||void 0!==m.x&&"none"===$(t,"display",e))){var q=l.length>=6,W=q?l[0]:1,V=l[1]||0,H=l[2]||0,Z=q?l[3]:1;m.x=l[4]||0,m.y=l[5]||0,p=Math.sqrt(W*W+V*V),f=Math.sqrt(Z*Z+H*H),d=W||V?Math.atan2(V,W)*z:m.rotation||0,_=H||Z?Math.atan2(H,Z)*z+d:m.skewX||0,Math.abs(_)>90&&270>Math.abs(_)&&(g?(p*=-1,_+=0>=d?180:-180,d+=0>=d?180:-180):(f*=-1,_+=0>=_?180:-180)),m.scaleX=p,m.scaleY=f,m.rotation=d,m.skewX=_,St&&(m.rotationX=m.rotationY=m.z=0,m.perspective=T,m.scaleZ=1)}for(h in m.zOrigin=w,m)v>m[h]&&m[h]>-v&&(m[h]=0)}return i&&(t._gsTransform=m),m},Dt=function(t){var e,i,r=this.data,n=-r.rotation*D,s=n+r.skewX*D,o=1e5,a=(0|Math.cos(n)*r.scaleX*o)/o,l=(0|Math.sin(n)*r.scaleX*o)/o,h=(0|Math.sin(s)*-r.scaleY*o)/o,u=(0|Math.cos(s)*r.scaleY*o)/o,c=this.t.style,p=this.t.currentStyle;if(p){i=l,l=-h,h=-i,e=p.filter,c.filter="";var f,d,m=this.t.offsetWidth,g=this.t.offsetHeight,v="absolute"!==p.position,y="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+l+", M21="+h+", M22="+u,b=r.x+m*r.xPercent/100,x=r.y+g*r.yPercent/100;if(null!=r.ox&&(b+=(f=(r.oxp?.01*m*r.ox:r.ox)-m/2)-(f*a+(d=(r.oyp?.01*g*r.oy:r.oy)-g/2)*l),x+=d-(f*h+d*u)),v?y+=", Dx="+((f=m/2)-(f*a+(d=g/2)*l)+b)+", Dy="+(d-(f*h+d*u)+x)+")":y+=", sizingMethod='auto expand')",c.filter=-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?e.replace(M,y):y+" "+e,(0===t||1===t)&&1===a&&0===l&&0===h&&1===u&&(v&&-1===y.indexOf("Dx=0, Dy=0")||T.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf("gradient("&&e.indexOf("Alpha"))&&c.removeAttribute("filter")),!v){var P,S,R,C=8>_?1:-1;for(f=r.ieOffsetX||0,d=r.ieOffsetY||0,r.ieOffsetX=Math.round((m-((0>a?-a:a)*m+(0>l?-l:l)*g))/2+b),r.ieOffsetY=Math.round((g-((0>u?-u:u)*g+(0>h?-h:h)*m))/2+x),mt=0;4>mt;mt++)R=(i=-1!==(P=p[S=et[mt]]).indexOf("px")?parseFloat(P):Z(this.t,S,parseFloat(P),P.replace(w,""))||0)!==r[S]?2>mt?-r.ieOffsetX:-r.ieOffsetY:2>mt?f-r.ieOffsetX:d-r.ieOffsetY,c[S]=(r[S]=Math.round(i-R*(0===mt||2===mt?1:C)))+"px"}}},zt=G.set3DTransformRatio=function(t){var e,i,r,n,s,o,a,l,h,u,c,p,d,_,m,g,v,y,w,T,b,x=this.data,P=this.t.style,S=x.rotation*D,R=x.scaleX,C=x.scaleY,O=x.scaleZ,k=x.x,A=x.y,M=x.z,E=x.perspective;if(!(1!==t&&0!==t&&x.force3D||!0===x.force3D||x.rotationY||x.rotationX||1!==O||E||M))return It.call(this,t),void 0;if(f&&((_=1e-4)>R&&R>-_&&(R=O=2e-5),_>C&&C>-_&&(C=O=2e-5),!E||x.z||x.rotationX||x.rotationY||(E=0)),S||x.skewX)m=e=Math.cos(S),g=n=Math.sin(S),x.skewX&&(S-=x.skewX*D,m=Math.cos(S),g=Math.sin(S),"simple"===x.skewType&&(v=Math.tan(x.skewX*D),m*=v=Math.sqrt(1+v*v),g*=v)),i=-g,s=m;else{if(!(x.rotationY||x.rotationX||1!==O||E||x.svg))return P[bt]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+A+"px,"+M+"px)"+(1!==R||1!==C?" scale("+R+","+C+")":""),void 0;e=s=1,i=n=0}h=1,r=o=a=l=u=c=0,p=E?-1/E:0,d=x.zOrigin,_=1e-6,T=",",b="0",(S=x.rotationY*D)&&(m=Math.cos(S),a=-(g=Math.sin(S)),u=p*-g,r=e*g,o=n*g,h=m,p*=m,e*=m,n*=m),(S=x.rotationX*D)&&(v=i*(m=Math.cos(S))+r*(g=Math.sin(S)),y=s*m+o*g,l=h*g,c=p*g,r=i*-g+r*m,o=s*-g+o*m,h*=m,p*=m,i=v,s=y),1!==O&&(r*=O,o*=O,h*=O,p*=O),1!==C&&(i*=C,s*=C,l*=C,c*=C),1!==R&&(e*=R,n*=R,a*=R,u*=R),(d||x.svg)&&(d&&(k+=r*-d,A+=o*-d,M+=h*-d+d),x.svg&&(k+=x.xOrigin-(x.xOrigin*e+x.yOrigin*i),A+=x.yOrigin-(x.xOrigin*n+x.yOrigin*s)),_>k&&k>-_&&(k=b),_>A&&A>-_&&(A=b),_>M&&M>-_&&(M=0)),w=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",w+=(_>e&&e>-_?b:e)+T+(_>n&&n>-_?b:n)+T+(_>a&&a>-_?b:a),w+=T+(_>u&&u>-_?b:u)+T+(_>i&&i>-_?b:i)+T+(_>s&&s>-_?b:s),x.rotationX||x.rotationY?(w+=T+(_>l&&l>-_?b:l)+T+(_>c&&c>-_?b:c)+T+(_>r&&r>-_?b:r),w+=T+(_>o&&o>-_?b:o)+T+(_>h&&h>-_?b:h)+T+(_>p&&p>-_?b:p)+T):w+=",0,0,0,0,1,0,",w+=k+T+A+T+M+T+(E?1+-M/E:1)+")",P[bt]=w},It=G.set2DTransformRatio=function(t){var e,i,r,n,s,o,a,l,h,u,c,p=this.data,f=this.t,d=f.style,_=p.x,m=p.y;return!(p.rotationX||p.rotationY||p.z||!0===p.force3D||"auto"===p.force3D&&1!==t&&0!==t)||p.svg&&wt||!St?(n=p.scaleX,s=p.scaleY,p.rotation||p.skewX||p.svg?(i=(e=p.rotation*D)-p.skewX*D,r=1e5,o=Math.cos(e)*n,a=Math.sin(e)*n,l=Math.sin(i)*-s,h=Math.cos(i)*s,p.svg&&((c=1e-6)>(_+=p.xOrigin-(p.xOrigin*o+p.yOrigin*l))&&_>-c&&(_=0),c>(m+=p.yOrigin-(p.xOrigin*a+p.yOrigin*h))&&m>-c&&(m=0)),u=(0|o*r)/r+","+(0|a*r)/r+","+(0|l*r)/r+","+(0|h*r)/r
14+","+_+","+m+")",p.svg&&wt?f.setAttribute("transform","matrix("+u):d[bt]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+u):d[bt]=(p.xPercent||p.yPercent?"translate("+p.xPercent+"%,"+p.yPercent+"%) matrix(":"matrix(")+n+",0,0,"+s+","+_+","+m+")",void 0):(this.setRatio=zt,zt.call(this,t),void 0)};(h=Rt.prototype).x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=0,h.scaleX=h.scaleY=h.scaleZ=1,vt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent",{parser:function(t,e,i,r,s,a,l){if(r._lastParsedTransform===l)return s;r._lastParsedTransform=l;var h,u,c,p,f,d,_,m=r._transform=Et(t,n,!0,l.parseTransform),g=t.style,v=1e-6,y=Tt.length,w=l,T={};if("string"==typeof w.transform&&bt)(c=N.style)[bt]=w.transform,c.display="block",c.position="absolute",F.body.appendChild(N),h=Et(N,null,!1),F.body.removeChild(N);else if("object"==typeof w){if(h={scaleX:st(null!=w.scaleX?w.scaleX:w.scale,m.scaleX),scaleY:st(null!=w.scaleY?w.scaleY:w.scale,m.scaleY),scaleZ:st(w.scaleZ,m.scaleZ),x:st(w.x,m.x),y:st(w.y,m.y),z:st(w.z,m.z),xPercent:st(w.xPercent,m.xPercent),yPercent:st(w.yPercent,m.yPercent),perspective:st(w.transformPerspective,m.perspective)},null!=(_=w.directionalRotation))if("object"==typeof _)for(c in _)w[c]=_[c];else w.rotation=_;"string"==typeof w.x&&-1!==w.x.indexOf("%")&&(h.x=0,h.xPercent=st(w.x,m.xPercent)),"string"==typeof w.y&&-1!==w.y.indexOf("%")&&(h.y=0,h.yPercent=st(w.y,m.yPercent)),h.rotation=ot("rotation"in w?w.rotation:"shortRotation"in w?w.shortRotation+"_short":"rotationZ"in w?w.rotationZ:m.rotation,m.rotation,"rotation",T),St&&(h.rotationX=ot("rotationX"in w?w.rotationX:"shortRotationX"in w?w.shortRotationX+"_short":m.rotationX||0,m.rotationX,"rotationX",T),h.rotationY=ot("rotationY"in w?w.rotationY:"shortRotationY"in w?w.shortRotationY+"_short":m.rotationY||0,m.rotationY,"rotationY",T)),h.skewX=null==w.skewX?m.skewX:ot(w.skewX,m.skewX),h.skewY=null==w.skewY?m.skewY:ot(w.skewY,m.skewY),(u=h.skewY-m.skewY)&&(h.skewX+=u,h.rotation+=u)}for(St&&null!=w.force3D&&(m.force3D=w.force3D,d=!0),m.skewType=w.skewType||m.skewType||o.defaultSkewType,(f=m.force3D||m.z||m.rotationX||m.rotationY||h.z||h.rotationX||h.rotationY||h.perspective)||null==w.scale||(h.scaleZ=1);--y>-1;)((p=h[i=Tt[y]]-m[i])>v||-v>p||null!=w[i]||null!=I[i])&&(d=!0,s=new dt(m,i,m[i],p,s),i in T&&(s.e=T[i]),s.xs0=0,s.plugin=a,r._overwriteProps.push(s.n));return(p=w.transformOrigin)&&m.svg&&(Mt(t,rt(p),h),(s=new dt(m,"xOrigin",m.xOrigin,h.xOrigin-m.xOrigin,s,-1,"transformOrigin")).b=m.xOrigin,s.e=s.xs0=h.xOrigin,(s=new dt(m,"yOrigin",m.yOrigin,h.yOrigin-m.yOrigin,s,-1,"transformOrigin")).b=m.yOrigin,s.e=s.xs0=h.yOrigin,p="0px 0px"),(p||St&&f&&m.zOrigin)&&(bt?(d=!0,i=Pt,p=(p||$(t,i,n,!1,"50% 50%"))+"",(s=new dt(g,i,0,0,s,-1,"transformOrigin")).b=g[i],s.plugin=a,St?(c=m.zOrigin,p=p.split(" "),m.zOrigin=(p.length>2&&(0===c||"0px"!==p[2])?parseFloat(p[2]):c)||0,s.xs0=s.e=p[0]+" "+(p[1]||"50%")+" 0px",(s=new dt(m,"zOrigin",0,0,s,-1,s.n)).b=c,s.xs0=s.e=m.zOrigin):s.xs0=s.e=p):rt(p+"",m)),d&&(r._transformType=m.svg&&wt||!f&&3!==this._transformType?2:3),s},prefix:!0}),vt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),vt("borderRadius",{defaultValue:"0px",parser:function(t,e,i,s,o){e=this.format(e);var a,l,h,u,c,p,f,d,_,m,g,v,y,w,T,b,x=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],P=t.style;for(_=parseFloat(t.offsetWidth),m=parseFloat(t.offsetHeight),a=e.split(" "),l=0;x.length>l;l++)this.p.indexOf("border")&&(x[l]=V(x[l])),-1!==(c=u=$(t,x[l],n,!1,"0px")).indexOf(" ")&&(u=c.split(" "),c=u[0],u=u[1]),p=h=a[l],f=parseFloat(c),v=c.substr((f+"").length),(y="="===p.charAt(1))?(d=parseInt(p.charAt(0)+"1",10),p=
vendor: 6,623 bytes, line 14
14p.substr(2),d*=parseFloat(p),g=p.substr((d+"").length-(0>d?1:0))||""):(d=parseFloat(p),g=p.substr((d+"").length)),""===g&&(g=r[i]||v),g!==v&&(w=Z(t,"borderLeft",f,v),T=Z(t,"borderTop",f,v),"%"===g?(c=100*(w/_)+"%",u=100*(T/m)+"%"):"em"===g?(c=w/(b=Z(t,"borderLeft",1,"em"))+"em",u=T/b+"em"):(c=w+"px",u=T+"px"),y&&(p=parseFloat(c)+d+g,h=parseFloat(u)+d+g)),o=_t(P,x[l],c+" "+u,p+" "+h,!1,"0px",o);return o},prefix:!0,formatter:ct("0px 0px 0px 0px",!1,!0)}),vt("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,i,r,s,o){var a,l,h,u,c,p,f="background-position",d=n||H(t,null),m=this.format((d?_?d.getPropertyValue(f+"-x")+" "+d.getPropertyValue(f+"-y"):d.getPropertyValue(f):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),g=this.format(e);if(-1!==m.indexOf("%")!=(-1!==g.indexOf("%"))&&((p=$(t,"backgroundImage").replace(C,""))&&"none"!==p)){for(a=m.split(" "),l=g.split(" "),X.setAttribute("src",p),h=2;--h>-1;)(u=-1!==(m=a[h]).indexOf("%"))!==(-1!==l[h].indexOf("%"))&&(c=0===h?t.offsetWidth-X.width:t.offsetHeight-X.height,a[h]=u?parseFloat(m)/100*c+"px":100*(parseFloat(m)/c)+"%");m=a.join(" ")}return this.parseComplex(t.style,m,g,s,o)},formatter:rt}),vt("backgroundSize",{defaultValue:"0 0",formatter:rt}),vt("perspective",{defaultValue:"0px",prefix:!0}),vt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),vt("transformStyle",{prefix:!0}),vt("backfaceVisibility",{prefix:!0}),vt("userSelect",{prefix:!0}),vt("margin",{parser:pt("marginTop,marginRight,marginBottom,marginLeft")}),vt("padding",{parser:pt("paddingTop,paddingRight,paddingBottom,paddingLeft")}),vt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,i,r,s,o){var a,l,h;return 9>_?(l=t.currentStyle,h=8>_?" ":",",a="rect("+l.clipTop+h+l.clipRight+h+l.clipBottom+h+l.clipLeft+")",e=this.format(e).split(",").join(h)):(a=this.format($(t,this.p,n,!1,this.dflt)),e=this.format(e)),this.parseComplex(t.style,a,e,s,o)}}),vt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),vt("autoRound,strictUnits",{parser:function(t,e,i,r,n){return n}}),vt("border",{defaultValue:"0px solid #000",parser:function(t,e,i,r,s,o){return this.parseComplex(t.style,this.format($(t,"borderTopWidth",n,!1,"0px")+" "+$(t,"borderTopStyle",n,!1,"solid")+" "+$(t,"borderTopColor",n,!1,"#000")),this.format(e),s,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(ut)||["#000"])[0]}}),vt("borderWidth",{parser:pt("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),vt("float,cssFloat,styleFloat",{parser:function(t,e,i,r,n){var s=t.style,o="cssFloat"in s?"cssFloat":"styleFloat";return new dt(s,o,0,0,n,-1,i,!1,0,s[o],e)}});var Ft=function(t){var e,i=this.t,r=i.filter||$(this.data,"filter")||"",n=0|this.s+this.c*t;100===n&&(-1===r.indexOf("atrix(")&&-1===r.indexOf("radient(")&&-1===r.indexOf("oader(")?(i.removeAttribute("filter"),e=!$(this.data,"filter")):(i.filter=r.replace(x,""),e=!0)),e||(this.xn1&&(i.filter=r=r||"alpha(opacity="+n+")"),-1===r.indexOf("pacity")?0===n&&this.xn1||(i.filter=r+" alpha(opacity="+n+")"):i.filter=r.replace(T,"opacity="+n))};vt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,i,r,s,o){var a=parseFloat($(t,"opacity",n,!1,"1")),l=t.style,h="autoAlpha"===i;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),h&&1===a&&"hidden"===$(t,"visibility",n)&&0!==e&&(a=0),j?s=new dt(l,"opacity",a,e-a,s):((s=new dt(l,"opacity",100*a,100*(e-a),s)).xn1=h?1:0,l.zoom=1,s.type=2,s.b="alpha(opacity="+s.s+")",s.e="alpha(opacity="+(s.s+s.c)+")",s.data=t,s.plugin=o,s.setRatio=Ft),h&&((s=new dt(l,"visibility",0,0,s,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",r._overwriteProps.push(s.n),r._overwriteProps.push(i)),s}});var Lt=function(t,e){e&&(t.removeProperty?("ms"===e.substr(0,2)&&(e="M"+e.substr(1)),t.removeProperty(e.replace(S,"-$1").toLowerCase())):t.removeAttribute(e))},Nt=function(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,i=this.t.style;e;)e.v?i[e.p]=e.v:Lt(i,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};vt("className",{parser:function(t,e,r,s,o,a,l){var h,u,c,p,f,d=t.getAttribute("class")||"",_=t.style.cssText;if((o=s._classNamePT=new dt(t,r,0,0,o,2)).setRatio=Nt,o.pr=-11,i=!0,o.b=d,u=K(t,n),c=t._gsClassPT){for(p={},f=c.data;f;)p[f.p]=1,f=f._next;c.setRatio(1)}return t._gsClassPT=o,o.e="="!==e.charAt(1)?e:d.replace(RegExp("\\s*\\b"+e.substr(2)+"\\b"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),s._tween._duration&&(t.setAttribute("class",o.e),h=J(t,u,K(t),l,p),t.setAttribute("class",d),o.data=h.firstMPT,t.style.cssText=_,o=o.xfirst=s.parse(t,h.difs,o,a)),o}});var Xt=function(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,i,r,n,s=this.t.style,o=l.transform.parse;if("all"===this.e)s.cssText="",n=!0;else for(r=(e=this.e.split(" ").join("").split(",")).length;--r>-1;)i=e[r],l[i]&&(l[i].parse===o?n=!0:i="transformOrigin"===i?Pt:l[i].p),Lt(s,i);n&&(Lt(s,bt),this.t._gsTransform&&delete this.t._gsTransform)}};for(vt("clearProps",{parser:function(t,e,r,n,s){return(s=new dt(t,r,0,0,s,2)).setRatio=Xt,s.e=e,s.pr=-10,s.data=n._tween,i=!0,s}}),h="bezier,throwProps,physicsProps,physics2D".split(","),mt=h.length;mt--;)yt(h[mt]);(h=o.prototype)._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(t,e,a){if(!t.nodeType)return!1;this._target=t,this._tween=a,this._vars=e,u=e.autoRound,i=!1,r=e.suffixMap||o.suffixMap,n=H(t,""),s=this._overwriteProps;var l,h,f,_,m,g,v,y,w,T=t.style;if(c&&""===T.zIndex&&(("auto"===(l=$(t,"zIndex",n))||""===l)&&this._addLazySet(T,"zIndex",0)),"string"==typeof e&&(_=T.cssText,l=K(t,n),T.cssText=_+";"+e,l=J(t,l,K(t)).difs,!j&&b.test(e)&&(l.opacity=parseFloat(RegExp.$1)),e=l,T.cssText=_),this._firstPT=h=this.parse(t,e,null),this._transformType){for(w=3===this._transformType,bt?p&&(c=!0,""===T.zIndex&&(("auto"===(v=$(t,"zIndex",n))||""===v)&&this._addLazySet(T,"zIndex",0)),d&&this._addLazySet(T,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(w?"visible":"hidden"))):T.zoom=1,f=h;f&&f._next;)f=f._next;y=new dt(t,"transform",0,0,null,2),this._linkCSSP(y,null,f),y.setRatio=w&&St?zt:bt?It:Dt,y.data=this._transform||Et(t,n,!0),s.pop()}if(i){for(;h;){for(g=h._next,f=_;f&&f.pr>h.pr;)f=f._next;(h._prev=f?f._prev:m)?h._prev._next=h:_=h,(h._next=f)?f._prev=h:m=h,h=g}this._firstPT=_}return!0}
14,h.parse=function(t,e,i,s){var o,a,h,c,p,f,d,_,m,g,v=t.style;for(o in e)f=e[o],(a=l[o])?i=a.parse(t,f,o,this,i,s,e):(p=$(t,o,n)+"",m="string"==typeof f,"color"===o||"fill"===o||"stroke"===o||-1!==o.indexOf("Color")||m&&P.test(f)?(m||(f=((f=ht(f)).length>3?"rgba(":"rgb(")+f.join(",")+")"),i=_t(v,o,p,f,!0,"transparent",i,0,s)):!m||-1===f.indexOf(" ")&&-1===f.indexOf(",")?(d=(h=parseFloat(p))||0===h?p.substr((h+"").length):"",(""===p||"auto"===p)&&("width"===o||"height"===o?(h=it(t,o,n),d="px"):"left"===o||"top"===o?(h=Q(t,o,n),d="px"):(h="opacity"!==o?0:1,d="")),(g=m&&"="===f.charAt(1))?(c=parseInt(f.charAt(0)+"1",10),f=f.substr(2),c*=parseFloat(f),_=f.replace(w,"")):(c=parseFloat(f),_=m?f.replace(w,""):""),""===_&&(_=o in r?r[o]:d),f=c||0===c?(g?c+h:c)+_:e[o],d!==_&&""!==_&&(c||0===c)&&h&&(h=Z(t,o,h,d),"%"===_?(h/=Z(t,o,100,"%")/100,!0!==e.strictUnits&&(p=h+"%")):"em"===_?h/=Z(t,o,1,"em"):"px"!==_&&(c=Z(t,o,c,_),_="px"),g&&(c||0===c)&&(f=c+h+_)),g&&(c+=h),!h&&0!==h||!c&&0!==c?void 0!==v[o]&&(f||"NaN"!=f+""&&null!=f)?(i=new dt(v,o,c||h||0,0,i,-1,o,!1,0,p,f)).xs0="none"!==f||"display"!==o&&-1===o.indexOf("Style")?f:p:U("invalid "+o+" tween value: "+e[o]):(i=new dt(v,o,h,c-h,i,0,o,!1!==u&&("px"===_||"zIndex"===o),0,p,f)).xs0=_):i=_t(v,o,p,f,!0,null,i,0,s)),s&&i&&!i.plugin&&(i.plugin=s);return i},h.setRatio=function(t){var e,i,r,n=this._firstPT,s=1e-6;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;n;){if(e=n.c*t+n.s,n.r?e=Math.round(e):s>e&&e>-s&&(e=0),n.type)if(1===n.type)if(2===(r=n.l))n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2;else if(3===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3;else if(4===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4;else if(5===r)n.t[n.p]=n.xs0+e+n.xs1+n.xn1+n.xs2+n.xn2+n.xs3+n.xn3+n.xs4+n.xn4+n.xs5;else{for(i=n.xs0+e+n.xs1,r=1;n.l>r;r++)i+=n["xn"+r]+n["xs"+(r+1)];n.t[n.p]=i}else-1===n.type?n.t[n.p]=n.xs0:n.setRatio&&n.setRatio(t);else n.t[n.p]=e+n.xs0;n=n._next}else for(;n;)2!==n.type?n.t[n.p]=n.b:n.setRatio(t),n=n._next;else for(;n;)2!==n.type?n.t[n.p]=n.e:n.setRatio(t),n=n._next},h._enableTransforms=function(t){this._transform=this._transform||Et(this._target,n,!0),this._transformType=this._transform.svg&&wt||!t&&3!==this._transformType?2:3};var Gt=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(t,e,i){var r=this._firstPT=new dt(t,e,0,0,this._firstPT,2);r.e=i,r.setRatio=Gt,r.data=this},h._linkCSSP=function(t,e,i,r){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,r=!0),i?i._next=t:r||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=i),t},h._kill=function(e){var i,r,n,s=e;if(e.autoAlpha||e.alpha){for(r in s={},e)s[r]=e[r];s.opacity=1,s.autoAlpha&&(s.visibility=1)}return e.className&&(i=this._classNamePT)&&((n=i.xfirst)&&n._prev?this._linkCSSP(n._prev,i._next,n._prev._prev):n===this._firstPT&&(this._firstPT=i._next),i._next&&this._linkCSSP(i._next,i._next._next,n._prev),this._classNamePT=null),t.prototype._kill.call(this,s)};var Bt=function(t,e,i){var r,n,s,o;if(t.slice)for(n=t.length;--n>-1;)Bt(t[n],e,i);else for(n=(r=t.childNodes).length;--n>-1;)o=(s=r[n]).type,s.style&&(e.push(K(s)),i&&i.push(s)),1!==o&&9!==o&&11!==o||!s.childNodes.length||Bt(s,e,i)};return o.cascadeTo=function(t,i,r){var n,s,o,a=e.to(t,i,r),l=[a],h=[],u=[],c=[],p=e._internals.reservedProps;for(t=a._targets||a.target,Bt(t,h,c),a.render(i,!0),Bt(t,u),a.render(0,!0),a._enabled(!0),n=c.length;--n>-1;)if((s=J(c[n],h[n],u[n])).firstMPT){for(o in s=s.difs,r)p[o]&&(s[o]=r[o]);l.push(e.to(c[n],i,s))}return l},t.activate([o]),o}),!0),function(){var t,e=_gsScope._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(t,e,i){return this._tween=i,!0}}).prototype;e._onInitAllProps=function(){for(var t,e,i,r=this._tween,n=r.vars.roundProps instanceof Array?r.vars.roundProps:r.vars.roundProps.split(","),s=n.length,o={},a=r._propLookup.roundProps;--s>-1;)o[n[s]]=1;for(s=n.length;--s>-1;)for(t=n[s],e=r._firstPT;e;)i=e._next,e.pg?e.t._roundProps(o,!0):e.n===t&&(this._add(e.t,t,e.s,e.c),i&&(i._prev=e._prev),e._prev?e._prev._next=i:r._firstPT===e&&(r._firstPT=i),e._next=e._prev=null,r._propLookup[t]=a),e=i;return!1}
14,e._add=function(t,e,i,r){this._addTween(t,e,i,i+r,e,!0),this._overwriteProps.push(e)}}(),_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.3.3",init:function(t,e){var i,r,n;if("function"!=typeof t.setAttribute)return!1;for(i in this._target=t,this._proxy={},this._start={},this._end={},e)this._start[i]=this._proxy[i]=r=t.getAttribute(i),n=this._addTween(this._proxy,i,parseFloat(r),e[i],i),this._end[i]=n?n.s+n.c:e[i],this._overwriteProps.push(i);return!0},set:function(t){this._super.setRatio.call(this,t);for(var e,i=this._overwriteProps,r=i.length,n=1===t?this._end:t?this._proxy:this._start;--r>-1;)e=i[r],this._target.setAttribute(e,n[e]+"")}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.2.1",API:2,init:function(t,e){"object"!=typeof e&&(e={rotation:e}),this.finals={};var i,r,n,s,o,a,l=!0===e.useRadians?2*Math.PI:360,h=1e-6;for(i in e)"useRadians"!==i&&(r=(a=(e[i]+"").split("_"))[0],n=parseFloat("function"!=typeof t[i]?t[i]:t[i.indexOf("set")||"function"!=typeof t["get"+i.substr(3)]?i:"get"+i.substr(3)]()),o=(s=this.finals[i]="string"==typeof r&&"="===r.charAt(1)?n+parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)):Number(r)||0)-n,a.length&&(-1!==(r=a.join("_")).indexOf("short")&&((o%=l)!==o%(l/2)&&(o=0>o?o+l:o-l)),-1!==r.indexOf("_cw")&&0>o?o=(o+9999999999*l)%l-(0|o/l)*l:-1!==r.indexOf("ccw")&&o>0&&(o=(o-9999999999*l)%l-(0|o/l)*l)),(o>h||-h>o)&&(this._addTween(t,i,n,n+o,i),this._overwriteProps.push(i)));return!0},set:function(t){var e;if(1!==t)this._super.setRatio.call(this,t);else for(e=this._firstPT;e;)e.f?e.t[e.p](this.finals[e.p]):e.t[e.p]=this.finals[e.p],e=e._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],(function(t){var e,i,r,n=_gsScope.GreenSockGlobals||_gsScope,s=n.com.greensock,o=2*Math.PI,a=Math.PI/2,l=s._class,h=function(e,i){var r=l("easing."+e,(function(){}),!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,r},u=t.register||function(){},c=function(t,e,i,r){var n=l("easing."+t,{easeOut:new e,easeIn:new i,easeInOut:new r},!0);return u(n,t),n},p=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)},f=function(e,i){var r=l("easing."+e,(function(t){this._p1=t||0===t?t:1.70158,this._p2=1.525*this._p1}),!0),n=r.prototype=new t;return n.constructor=r,n.getRatio=i,n.config=function(t){return new r(t)},r},d=c("Back",f("BackOut",(function(t){return(t-=1)*t*((this._p1+1)*t+this._p1)+1})),f("BackIn",(function(t){return t*t*((this._p1+1)*t-this._p1)})),f("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)}))),_=l("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=!0===i}),!0),m=_.prototype=new t;return m.constructor=_,m.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},_.ease=new _(.7,.7),m.config=_.config=function(t,e,i){return new _(t,e,i)},(m=(e=l("easing.SteppedEase",(function(t){t=t||1,this._p1=1/t,this._p2=t+1}),!0)).prototype=new t).constructor=e,m.getRatio=function(t){return 0>t?t=0:t>=1&&(t=.999999999),(this._p2*t>>0)*this._p1},m.config=e.config=function(t){return new e(t)},i=l("easing.RoughEase",(function(e){for(var i,r,n,s,o,a,l=(e=e||{}).taper||"none",h=[],u=0,c=0|(e.points||20),f=c,d=!1!==e.randomize,_=!0===e.clamp,m=e.template instanceof t?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;--f>-1;)i=d?Math.random():1/c*f,r=m?m.getRatio(i):i,"none"===l?n=g:"out"===l?n=(s=1-i)*s*g:"in"===l?n=i*i*g:.5>i?n=.5*(s=2*i)*s*g:n=.5*(s=2*(1-i))*s*g,d?r+=Math.random()*n-.5*n:f%2?r+=.5*n:r-=.5*n,_&&(r>1?r=1:0>r&&(r=0)),h[u++]={x:i,y:r};for(h.sort((function(t,e){return t.x-e.x})),a=new p(1,1,null),f=c;--f>-1;)o=h[f],a=new p(o.x,o.y,a);this._prev=new p(0,0,0!==a.t?a:a.next)}),!0),(m=i.prototype=new t).constructor=i,m.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},m.config=function(t){return new i(t)},i.ease=new i,c("Bounce",h("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})),h("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)})),h("BounceInOut",(function(t){var e=.5>t;return t=1/2.75>(t=e?1-2*t:2*t-1)?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}))),c("Circ",h("CircOut",(function(t){return Math.sqrt(1-(t-=1)*t)})),h("CircIn",(function(t){return-(Math.sqrt(1-t*t)-1)})),h("CircInOut",(function(t){return 1>(t*=2)?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}))),c("Elastic",(r=function(e,i,r){var n=l("easing."+e,(function(t,e){this._p1=t||1,this._p2=e||r,this._p3=this._p2/o*(Math.asin(1/this._p1)||0)}),!0),s=n.prototype=new t;return s.constructor=n,s.getRatio=i,s.config=function(t,e){return new n(t,e)},n})("ElasticOut",(function(t){return this._p1*Math.pow(2,-10*t)*Math.sin((t-this._p3)*o/this._p2)+1}),.3),r("ElasticIn",(function(t){return-this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*o/this._p2)}),.3),r("ElasticInOut",(function(t){return 1>(t*=2)?-.5*this._p1*Math.pow(2,10*(t-=1))*Math.sin((t-this._p3)*o/this._p2):.5*this._p1*Math.pow(2,-10*(t-=1))*Math.sin((t-this._p3)*o/this._p2)+1}),.45)),c("Expo",h("ExpoOut",(function(t){return 1-Math.pow(2,-10*t)})),h("ExpoIn",(function(t){return Math.pow(2,10*(t-1))-.001})),h("ExpoInOut",(function(t){return 1>(t*=2)?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}))),c("Sine",h("SineOut",(function(t){return Math.sin(t*a)})),h("SineIn",(function(t){return-Math.cos(t*a)+1})),h("SineInOut",(function(t){return-.5*(Math.cos(Math.PI*t)-1)}))),l("easing.EaseLookup",{find:function(e){return t.map[e]}},!0),u(n.SlowMo,"SlowMo","ease,"),u(i,"RoughEase","ease,"),u(e,"SteppedEase","ease,"),d}),!0)})),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(t,e){"use strict";var i=t.GreenSockGlobals=t.GreenSockGlobals||t;if(!i.TweenLite){var r,n,s,o,a,l=function(t){var e,r=t.split("."),n=i;for(e=0;r.length>e;e++)n[r[e]]=n=n[r[e]]||{};return n},h=l("com.greensock"),u=1e-10,c=function(t){var e,i=[],r=t.length;for(e=0;e!==r;i.push(t[e++]));return i},p=function(){},f=function(){var t=Object.prototype.toString,e=t.call([]);return function(i){return null!=i&&(i instanceof Array||"object"==typeof i&&!!i.push&&t.call(i)===e)}}(),d={},_=function(r,n,s,o){this.sc=d[r]?d[r].sc:[],d[r]=this,this.gsClass=null,this.func=s;var a=[];this.check=function(h){for(var u,c,p,f,m=n.length,g=m;--m>-1;)(u=d[n[m]]||new _(n[m],[])).gsClass?(a[m]=u.gsClass,g--):h&&u.sc.push(this);if(0===g&&s)for(p=(c=("com.greensock."+r).split(".")).pop(),f=l(c.join("."))[p]=this.gsClass=s.apply(s,a),o&&(i[p]=f,"function"==typeof define&&define.amd?define((t.GreenSockAMDPath?t.GreenSockAMDPath+"/":"")+r.split(".").pop(),[],(function(){return f})):r===e&&"undefined"!=typeof module&&module.exports&&(module.exports=f)),m=0;this.sc.length>m;m++)this.sc[m].check()},this.check(!0)}
14,m=t._gsDefine=function(t,e,i,r){return new _(t,e,i,r)},g=h._class=function(t,e,i){return e=e||function(){},m(t,[],(function(){return e}),i),e};m.globals=i;var v=[0,0,1,1],y=[],w=g("easing.Ease",(function(t,e,i,r){this._func=t,this._type=i||0,this._power=r||0,this._params=e?v.concat(e):v}),!0),T=w.map={},b=w.register=function(t,e,i,r){for(var n,s,o,a,l=e.split(","),u=l.length,c=(i||"easeIn,easeOut,easeInOut").split(",");--u>-1;)for(s=l[u],n=r?g("easing."+s,null,!0):h.easing[s]||{},o=c.length;--o>-1;)a=c[o],T[s+"."+a]=T[a+s]=n[a]=t.getRatio?t:t[a]||new t};for((s=w.prototype)._calcEnd=!1,s.getRatio=function(t){if(this._func)return this._params[0]=t,this._func.apply(null,this._params);var e=this._type,i=this._power,r=1===e?1-t:2===e?t:.5>t?2*t:2*(1-t);return 1===i?r*=r:2===i?r*=r*r:3===i?r*=r*r*r:4===i&&(r*=r*r*r*r),1===e?1-r:2===e?r:.5>t?r/2:1-r/2},n=(r=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;--n>-1;)s=r[n]+",Power"+n,b(new w(null,null,1,n),s,"easeOut",!0),b(new w(null,null,2,n),s,"easeIn"+(0===n?",easeNone":"")),b(new w(null,null,3,n),s,"easeInOut");T.linear=h.easing.Linear.easeIn,T.swing=h.easing.Quad.easeInOut;var x=g("events.EventDispatcher",(function(t){this._listeners={},this._eventTarget=t||this}));(s=x.prototype).addEventListener=function(t,e,i,r,n){n=n||0;var s,l,h=this._listeners[t],u=0;for(null==h&&(this._listeners[t]=h=[]),l=h.length;--l>-1;)(s=h[l]).c===e&&s.s===i?h.splice(l,1):0===u&&n>s.pr&&(u=l+1);h.splice(u,0,{c:e,s:i,up:r,pr:n}),this!==o||a||o.wake()},s.removeEventListener=function(t,e){var i,r=this._listeners[t];if(r)for(i=r.length;--i>-1;)if(r[i].c===e)return r.splice(i,1),void 0},s.dispatchEvent=function(t){var e,i,r,n=this._listeners[t];if(n)for(e=n.length,i=this._eventTarget;--e>-1;)(r=n[e])&&(r.up?r.c.call(r.s||i,{type:t,target:i}):r.c.call(r.s||i))};var P=t.requestAnimationFrame,S=t.cancelAnimationFrame,R=Date.now||function(){return(new Date).getTime()},C=R();for(n=(r=["ms","moz","webkit","o"]).length;--n>-1&&!P;)P=t[r[n]+"RequestAnimationFrame"],S=t[r[n]+"CancelAnimationFrame"]||t[r[n]+"CancelRequestAnimationFrame"];g("Ticker",(function(t,e){var i,r,n,s,l,h=this,c=R(),f=!1!==e&&P,d=500,_=33,m="tick",g=function(t){var e,o,a=R()-C;a>d&&(c+=a-_),C+=a,h.time=(C-c)/1e3,e=h.time-l,(!i||e>0||!0===t)&&(h.frame++,l+=e+(e>=s?.004:s-e),o=!0),!0!==t&&(n=r(g)),o&&h.dispatchEvent(m)};x.call(h),h.time=h.frame=0,h.tick=function(){g(!0)},h.lagSmoothing=function(t,e){d=t||1/u,_=Math.min(e,d,0)},h.sleep=function(){null!=n&&(f&&S?S(n):clearTimeout(n),r=p,n=null,h===o&&(a=!1))},h.wake=function(){null!==n?h.sleep():h.frame>10&&(C=R()-d+5),r=0===i?p:f&&P?P:function(t){return setTimeout(t,0|1e3*(l-h.time)+1)},h===o&&(a=!0),g(2)},h.fps=function(t){return arguments.length?(s=1/((i=t)||60),l=this.time+s,h.wake(),void 0):i},h.useRAF=function(t){return arguments.length?(h.sleep(),f=t,h.fps(i),void 0):f},h.fps(t),setTimeout((function(){f&&(!n||5>h.frame)&&h.useRAF(!1)}),1500)})),(s=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var O=g("core.Animation",(function(t,e){if(this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,Y){a||o.wake();var i=this.vars.useFrames?j:Y;i.add(this,i._time),this.vars.paused&&this.paused(!0)}}));o=O.ticker=new h.Ticker,(s=O.prototype)._dirty=s._gc=s._initted=s._paused=!1,s._totalTime=s._time=0,s._rawPrevTime=-1,s._next=s._last=s._onUpdate=s._timeline=s.timeline=null,s._paused=!1;var k=function(){a&&R()-C>2e3&&o.wake(),setTimeout(k,2e3)};k(),s.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},s.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},s.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},s.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},s.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},s.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},s.render=function(){},s.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},s.isActive=function(){var t,e=this._timeline,i=this._startTime;return!e||!this._gc&&!this._paused&&e.isActive()&&(t=e.rawTime())>=i&&i+this.totalDuration()/this._timeScale>t},s._enabled=function(t,e){return a||o.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},s._kill=function(){return this._enabled(!1,!1)},s.kill=function(t,e){return this._kill(t,e),this},s._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},s._swapSelfInParams=function(t){for(var e=t.length,i=t.concat();--e>-1;)"{self}"===t[e]&&(i[e]=this);return i}
vendor: 4,123 bytes, line 14
14,s.eventCallback=function(t,e,i,r){if("on"===(t||"").substr(0,2)){var n=this.vars;if(1===arguments.length)return n[t];null==e?delete n[t]:(n[t]=e,n[t+"Params"]=f(i)&&-1!==i.join("").indexOf("{self}")?this._swapSelfInParams(i):i,n[t+"Scope"]=r),"onUpdate"===t&&(this._onUpdate=e)}return this},s.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},s.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},s.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},s.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},s.totalTime=function(t,e,i){if(a||o.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>t&&!i&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var r=this._totalDuration,n=this._timeline;if(t>r&&!i&&(t=r),this._startTime=(this._paused?this._pauseTime:n._time)-(this._reversed?r-t:t)/this._timeScale,n._dirty||this._uncache(!1),n._timeline)for(;n._timeline;)n._timeline._time!==(n._startTime+n._totalTime)/n._timeScale&&n.totalTime(n._totalTime,!0),n=n._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==t||0===this._duration)&&(this.render(t,e,!1),z.length&&U())}return this},s.progress=s.totalProgress=function(t,e){return arguments.length?this.totalTime(this.duration()*t,e):this._time/this.duration()},s.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay)),this):this._startTime},s.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},s.timeScale=function(t){if(!arguments.length)return this._timeScale;if(t=t||u,this._timeline&&this._timeline.smoothChildTiming){var e=this._pauseTime,i=e||0===e?e:this._timeline.totalTime();this._startTime=i-(i-this._startTime)*this._timeScale/t}return this._timeScale=t,this._uncache(!1)},s.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},s.paused=function(t){if(!arguments.length)return this._paused;if(t!=this._paused&&this._timeline){a||t||o.wake();var e=this._timeline,i=e.rawTime(),r=i-this._pauseTime;!t&&e.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=t?i:null,this._paused=t,this._active=this.isActive(),!t&&0!==r&&this._initted&&this.duration()&&this.render(e.smoothChildTiming?this._totalTime:(i-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!t&&this._enabled(!0,!1),this};var A=g("core.SimpleTimeline",(function(t){O.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0}));(s=A.prototype=new O).constructor=A,s.kill()._gc=!1,s._first=s._last=s._recent=null,s._sortChildren=!1,s.add=s.insert=function(t,e){var i,r;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=t._startTime+(this.rawTime()-t._startTime)/t._timeScale),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),i=this._last,this._sortChildren)for(r=t._startTime;i&&i._startTime>r;)i=i._prev;return i?(t._next=i._next,i._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=i,this._recent=t,this._timeline&&this._uncache(!0),this},s._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this}
14,s.render=function(t,e,i){var r,n=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;n;)r=n._next,(n._active||t>=n._startTime&&!n._paused)&&(n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(t-n._startTime)*n._timeScale,e,i):n.render((t-n._startTime)*n._timeScale,e,i)),n=r},s.rawTime=function(){return a||o.wake(),this._totalTime};var M=g("TweenLite",(function(e,i,r){if(O.call(this,i,r),this.render=M.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:M.selector(e)||e;var n,s,o,a=e.jquery||e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType),l=this.vars.overwrite;if(this._overwrite=l=null==l?B[M.defaultOverwrite]:"number"==typeof l?l>>0:B[l],(a||e instanceof Array||e.push&&f(e))&&"number"!=typeof e[0])for(this._targets=o=c(e),this._propLookup=[],this._siblings=[],n=0;o.length>n;n++)(s=o[n])?"string"!=typeof s?s.length&&s!==t&&s[0]&&(s[0]===t||s[0].nodeType&&s[0].style&&!s.nodeType)?(o.splice(n--,1),this._targets=o=o.concat(c(s))):(this._siblings[n]=q(s,this,!1),1===l&&this._siblings[n].length>1&&V(s,this,null,1,this._siblings[n])):"string"==typeof(s=o[n--]=M.selector(s))&&o.splice(n+1,1):o.splice(n--,1);else this._propLookup={},this._siblings=q(e,this,!1),1===l&&this._siblings.length>1&&V(e,this,null,1,this._siblings);(this.vars.immediateRender||0===i&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-u,this.render(-this._delay))}),!0),E=function(e){return e&&e.length&&e!==t&&e[0]&&(e[0]===t||e[0].nodeType&&e[0].style&&!e.nodeType)},D=function(t,e){var i,r={};for(i in t)G[i]||i in e&&"transform"!==i&&"x"!==i&&"y"!==i&&"width"!==i&&"height"!==i&&"className"!==i&&"border"!==i||!(!L[i]||L[i]&&L[i]._autoCSS)||(r[i]=t[i],delete t[i]);t.css=r};(s=M.prototype=new O).constructor=M,s.kill()._gc=!1,s.ratio=0,s._firstPT=s._targets=s._overwrittenProps=s._startAt=null,s._notifyPluginsOfEnabled=s._lazy=!1,M.version="1.15.1",M.defaultEase=s._ease=new w(null,null,1,1),M.defaultOverwrite="auto",M.ticker=o,M.autoSleep=!0,M.lagSmoothing=function(t,e){o.lagSmoothing(t,e)},M.selector=t.$||t.jQuery||function(e){var i=t.$||t.jQuery;return i?(M.selector=i,i(e)):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)};var z=[],I={},F=M._internals={isArray:f,isSelector:E,lazyTweens:z},L=M._plugins={},N=F.tweenLookup={},X=0,G=F.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1},B={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},j=O._rootFramesTimeline=new A,Y=O._rootTimeline=new A,U=F.lazyRender=function(){var t,e=z.length;for(I={};--e>-1;)(t=z[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);z.length=0};Y._startTime=o.time,j._startTime=o.frame,Y._active=j._active=!0,setTimeout(U,1),O._updateRoot=M.render=function(){var t,e,i;if(z.length&&U(),Y.render((o.time-Y._startTime)*Y._timeScale,!1,!1),j.render((o.frame-j._startTime)*j._timeScale,!1,!1),z.length&&U(),!(o.frame%120)){for(i in N){for(t=(e=N[i].tweens).length;--t>-1;)e[t]._gc&&e.splice(t,1);0===e.length&&delete N[i]}if((!(i=Y._first)||i._paused)&&M.autoSleep&&!j._first&&1===o._listeners.tick.length){for(;i&&i._paused;)i=i._next;i||o.sleep()}}},o.addEventListener("tick",O._updateRoot);var q=function(t,e,i){var r,n,s=t._gsTweenID;if(N[s||(t._gsTweenID=s="t"+X++)]||(N[s]={target:t,tweens:[]}),e&&((r=N[s].tweens)[n=r.length]=e,i))for(;--n>-1;)r[n]===e&&r.splice(n,1);return N[s].tweens},W=function(t,e,i,r){var n,s,o=t.vars.onOverwrite;return o&&(n=o(t,e,i,r)),(o=M.onOverwrite)&&(s=o(t,e,i,r)),!1!==n&&!1!==s},V=function(t,e,i,r,n){var s,o,a,l;if(1===r||r>=4){for(l=n.length,s=0;l>s;s++)if((a=n[s])!==e)a._gc||W(a,e)&&a._enabled(!1,!1)&&(o=!0);else if(5===r)break;return o}var h,c=e._startTime+u,p=[],f=0,d=0===e._duration;for(s=n.length;--s>-1;)(a=n[s])===e||a._gc||a._paused||(a._timeline!==e._timeline?(h=h||H(e,0,d),0===H(a,h,d)&&(p[f++]=a)):c>=a._startTime&&a._startTime+a.totalDuration()/a._timeScale>c&&((d||!a._initted)&&2e-10>=c-a._startTime||(p[f++]=a)));for(s=f;--s>-1;
14)if(a=p[s],2===r&&a._kill(i,t,e)&&(o=!0),2!==r||!a._firstPT&&a._initted){if(2!==r&&!W(a,e))continue;a._enabled(!1,!1)&&(o=!0)}return o},H=function(t,e,i){for(var r=t._timeline,n=r._timeScale,s=t._startTime;r._timeline;){if(s+=r._startTime,n*=r._timeScale,r._paused)return-100;r=r._timeline}return(s/=n)>e?s-e:i&&s===e||!t._initted&&2*u>s-e?u:(s+=t.totalDuration()/t._timeScale/n)>e+u?0:s-e-u};s._init=function(){var t,e,i,r,n,s=this.vars,o=this._overwrittenProps,a=this._duration,l=!!s.immediateRender,h=s.ease;if(s.startAt){for(r in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),n={},s.startAt)n[r]=s.startAt[r];if(n.overwrite=!1,n.immediateRender=!0,n.lazy=l&&!1!==s.lazy,n.startAt=n.delay=null,this._startAt=M.to(this.target,0,n),l)if(this._time>0)this._startAt=null;else if(0!==a)return}else if(s.runBackwards&&0!==a)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(r in 0!==this._time&&(l=!1),i={},s)G[r]&&"autoCSS"!==r||(i[r]=s[r]);if(i.overwrite=0,i.data="isFromStart",i.lazy=l&&!1!==s.lazy,i.immediateRender=l,this._startAt=M.to(this.target,0,i),l){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=h=h?h instanceof w?h:"function"==typeof h?new w(h,s.easeParams):T[h]||M.defaultEase:M.defaultEase,s.easeParams instanceof Array&&h.config&&(this._ease=h.config.apply(h,s.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(t=this._targets.length;--t>-1;)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],o?o[t]:null)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,o);if(e&&M._onPluginEvent("_onInitAllProps",this),o&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),s.runBackwards)for(i=this._firstPT;i;)i.s+=i.c,i.c=-i.c,i=i._next;this._onUpdate=s.onUpdate,this._initted=!0},s._initProps=function(e,i,r,n){var s,o,a,l,h,u;if(null==e)return!1;for(s in I[e._gsTweenID]&&U(),this.vars.css||e.style&&e!==t&&e.nodeType&&L.css&&!1!==this.vars.autoCSS&&D(this.vars,e),this.vars){if(u=this.vars[s],G[s])u&&(u instanceof Array||u.push&&f(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[s]=u=this._swapSelfInParams(u,this));else if(L[s]&&(l=new L[s])._onInitTween(e,this.vars[s],this)){for(this._firstPT=h={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:!0,n:s,pg:!0,pr:l._priority},o=l._overwriteProps.length;--o>-1;)i[l._overwriteProps[o]]=this._firstPT;(l._priority||l._onInitAllProps)&&(a=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=i[s]=h={_next:this._firstPT,t:e,p:s,f:"function"==typeof e[s],n:s,pg:!1,pr:0},h.s=h.f?e[s.indexOf("set")||"function"!=typeof e["get"+s.substr(3)]?s:"get"+s.substr(3)]():parseFloat(e[s]),h.c="string"==typeof u&&"="===u.charAt(1)?parseInt(u.charAt(0)+"1",10)*Number(u.substr(2)):Number(u)-h.s||0;h&&h._next&&(h._next._prev=h)}return n&&this._kill(n,e)?this._initProps(e,i,r,n):this._overwrite>1&&this._firstPT&&r.length>1&&V(e,this,i,this._overwrite,r)?(this._kill(i,e),this._initProps(e,i,r,n)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(I[e._gsTweenID]=!0),a)},s.render=function(t,e,i){var r,n,s,o,a=this._time,l=this._duration,h=this._rawPrevTime;if(t>=l)this._totalTime=this._time=l,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(r=!0,n="onComplete"),0===l&&(this._initted||!this.vars.lazy||i)&&(this._startTime===this._timeline._duration&&(t=0),(0===t||0>h||h===u&&"isPause"!==this.data)&&h!==t&&(i=!0,h>u&&(n="onReverseComplete")),this._rawPrevTime=o=!e||t||h===t?t:u);else if(1e-7>t)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==a||0===l&&h>0&&h!==u)&&(n="onReverseComplete",r=this._reversed),0>t&&(this._active=!1,0===l&&(this._initted||!this.vars.lazy||i)&&(h>=0&&(h!==u||"isPause"!==this.data)&&(i=!0),this._rawPrevTime=o=!e||t||h===t?t:u)),this._initted||(i=!0);else if(this._totalTime=this._time=t,this._easeType){var c=t/l,p=this._easeType,f=this._easePower;(1===p||3===p&&c>=.5)&&(c=1-c),3===p&&(c*=2),1===f?c*=c:2===f?c*=c*c:3===f?c*=c*c*c:4===f&&(c*=c*c*c*c),this.ratio=1===p?1-c:2===p?c:.5>t/l?c/2:1-c/2}else this.ratio=this._ease.getRatio(t/l);
vendor: 4,066 bytes, line 14
14if(this._time!==a||i){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!i&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=a,this._rawPrevTime=h,z.push(this),this._lazy=[t,e],void 0;this._time&&!r?this.ratio=this._ease.getRatio(this._time/l):r&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==a&&t>=0&&(this._active=!0),0===a&&(this._startAt&&(t>=0?this._startAt.render(t,e,i):n||(n="_dummyGS")),this.vars.onStart&&(0!==this._time||0===l)&&(e||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||y))),s=this._firstPT;s;)s.f?s.t[s.p](s.c*this.ratio+s.s):s.t[s.p]=s.c*this.ratio+s.s,s=s._next;this._onUpdate&&(0>t&&this._startAt&&-1e-4!==t&&this._startAt.render(t,e,i),e||(this._time!==a||r)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||y)),n&&(!this._gc||i)&&(0>t&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,e,i),r&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[n]&&this.vars[n].apply(this.vars[n+"Scope"]||this,this.vars[n+"Params"]||y),0===l&&this._rawPrevTime===u&&o!==u&&(this._rawPrevTime=0))}},s._kill=function(t,e,i){if("all"===t&&(t=null),null==t&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);var r,n,s,o,a,l,h,u,c;if(e="string"!=typeof e?e||this._targets||this.target:M.selector(e)||e,(f(e)||E(e))&&"number"!=typeof e[0])for(r=e.length;--r>-1;)this._kill(t,e[r])&&(l=!0);else{if(this._targets){for(r=this._targets.length;--r>-1;)if(e===this._targets[r]){a=this._propLookup[r]||{},this._overwrittenProps=this._overwrittenProps||[],n=this._overwrittenProps[r]=t?this._overwrittenProps[r]||{}:"all";break}}else{if(e!==this.target)return!1;a=this._propLookup,n=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(a){if(h=t||a,u=t!==n&&"all"!==n&&t!==a&&("object"!=typeof t||!t._tempKill),i&&(M.onOverwrite||this.vars.onOverwrite)){for(s in h)a[s]&&(c||(c=[]),c.push(s));if(!W(this,i,e,c))return!1}for(s in h)(o=a[s])&&(o.pg&&o.t._kill(h)&&(l=!0),o.pg&&0!==o.t._overwriteProps.length||(o._prev?o._prev._next=o._next:o===this._firstPT&&(this._firstPT=o._next),o._next&&(o._next._prev=o._prev),o._next=o._prev=null),delete a[s]),u&&(n[s]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},s.invalidate=function(){return this._notifyPluginsOfEnabled&&M._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],O.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-u,this.render(-this._delay)),this},s._enabled=function(t,e){if(a||o.wake(),t&&this._gc){var i,r=this._targets;if(r)for(i=r.length;--i>-1;)this._siblings[i]=q(r[i],this,!0);else this._siblings=q(this.target,this,!0)}return O.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&M._onPluginEvent(t?"_onEnable":"_onDisable",this)},M.to=function(t,e,i){return new M(t,e,i)},M.from=function(t,e,i){return i.runBackwards=!0,i.immediateRender=0!=i.immediateRender,new M(t,e,i)},M.fromTo=function(t,e,i,r){return r.startAt=i,r.immediateRender=0!=r.immediateRender&&0!=i.immediateRender,new M(t,e,r)},M.delayedCall=function(t,e,i,r,n){return new M(e,0,{delay:t,onComplete:e,onCompleteParams:i,onCompleteScope:r,onReverseComplete:e,onReverseCompleteParams:i,onReverseCompleteScope:r,immediateRender:!1,lazy:!1,useFrames:n,overwrite:0})},M.set=function(t,e){return new M(t,0,e)},M.getTweensOf=function(t,e){if(null==t)return[];var i,r,n,s;if(t="string"!=typeof t?t:M.selector(t)||t,(f(t)||E(t))&&"number"!=typeof t[0]){for(i=t.length,r=[];--i>-1;)r=r.concat(M.getTweensOf(t[i],e));for(i=r.length;--i>-1;)for(s=r[i],n=i;--n>-1;)s===r[n]&&r.splice(i,1)}else for(i=(r=q(t).concat()).length;--i>-1;)(r[i]._gc||e&&!r[i].isActive())&&r.splice(i,1);return r}
14,M.killTweensOf=M.killDelayedCallsTo=function(t,e,i){"object"==typeof e&&(i=e,e=!1);for(var r=M.getTweensOf(t,e),n=r.length;--n>-1;)r[n]._kill(i,t)};var $=g("plugins.TweenPlugin",(function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=$.prototype}),!0);if(s=$.prototype,$.version="1.10.1",$.API=2,s._firstPT=null,s._addTween=function(t,e,i,r,n,s){var o,a;return null!=r&&(o="number"==typeof r||"="!==r.charAt(1)?Number(r)-i:parseInt(r.charAt(0)+"1",10)*Number(r.substr(2)))?(this._firstPT=a={_next:this._firstPT,t:t,p:e,s:i,c:o,f:"function"==typeof t[e],n:n||e,r:s},a._next&&(a._next._prev=a),a):void 0},s.setRatio=function(t){for(var e,i=this._firstPT,r=1e-6;i;)e=i.c*t+i.s,i.r?e=Math.round(e):r>e&&e>-r&&(e=0),i.f?i.t[i.p](e):i.t[i.p]=e,i=i._next},s._kill=function(t){var e,i=this._overwriteProps,r=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=i.length;--e>-1;)null!=t[i[e]]&&i.splice(e,1);for(;r;)null!=t[r.n]&&(r._next&&(r._next._prev=r._prev),r._prev?(r._prev._next=r._next,r._prev=null):this._firstPT===r&&(this._firstPT=r._next)),r=r._next;return!1},s._roundProps=function(t,e){for(var i=this._firstPT;i;)(t[this._propName]||null!=i.n&&t[i.n.split(this._propName+"_").join("")])&&(i.r=e),i=i._next},M._onPluginEvent=function(t,e){var i,r,n,s,o,a=e._firstPT;if("_onInitAllProps"===t){for(;a;){for(o=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:s)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:s=a,a=o}a=e._firstPT=n}for(;a;)a.pg&&"function"==typeof a.t[t]&&a.t[t]()&&(i=!0),a=a._next;return i},$.activate=function(t){for(var e=t.length;--e>-1;)t[e].API===$.API&&(L[(new t[e])._propName]=t[e]);return!0},m.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,i=t.propName,r=t.priority||0,n=t.overwriteProps,s={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},o=g("plugins."+i.charAt(0).toUpperCase()+i.substr(1)+"Plugin",(function(){$.call(this,i,r),this._overwriteProps=n||[]}),!0===t.global),a=o.prototype=new $(i);for(e in a.constructor=o,o.API=t.API,s)"function"==typeof t[e]&&(a[s[e]]=t[e]);return o.version=t.version,$.activate([o]),o},r=t._gsQueue){for(n=0;r.length>n;n++)r[n]();for(s in d)d[s].func||t.console.log("GSAP encountered missing dependency: com.greensock."+s)}a=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),
15/*!
16 * ScrollMagic v2.0.5 (2015-04-29)
17 * The javascript library for magical scroll interactions.
18 * (c) 2015 Jan Paepke (@janpaepke)
19 * Project Website: http://scrollmagic.io
20 *
21 * @version 2.0.5
22 * @license Dual licensed under MIT license and GPL.
23 * @author Jan Paepke - [email protected]
24 *
25 * @file ScrollMagic main library.
26 */
27function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.ScrollMagic=e()}(this,(function(){"use strict";var t=function(){n.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};t.version="2.0.5",window.addEventListener("mousewheel",(function(){}));var e="data-scrollmagic-pin-spacer";t.Controller=function(r){var s="ScrollMagic.Controller",o="FORWARD",a="REVERSE",l="PAUSED",h=i.defaults;var u=this,c=n.extend({},h,r),p=[],f=!1,d=0,_=l,m=!0,g=0,v=!0,y,w;var T=function(){for(var e in c)h.hasOwnProperty(e)||(A(2,'WARNING: Unknown option "'+e+'"'),delete c[e]);if(c.container=n.get.elements(c.container)[0],!c.container)throw A(1,"ERROR creating object "+s+": No valid scroll container supplied"),s+" init failed.";(m=c.container===window||c.container===document.body||!document.body.contains(c.container))&&(c.container=window),g=P(),c.container.addEventListener("resize",O),c.container.addEventListener("scroll",O),c.refreshInterval=parseInt(c.refreshInterval)||h.refreshInterval,b(),A(3,"added new "+s+" controller (v"+t.version+")")};var b=function(){c.refreshInterval>0&&(w=window.setTimeout(k,c.refreshInterval))};var x=function(){return c.vertical?n.get.scrollTop(c.container):n.get.scrollLeft(c.container)};var P=function(){return c.vertical?n.get.height(c.container):n.get.width(c.container)};var S=this._setScrollPos=function(t){c.vertical?m?window.scrollTo(n.get.scrollLeft(),t):c.container.scrollTop=t:m?window.scrollTo(t,n.get.scrollTop()):c.container.scrollLeft=t};var R=function(){if(v&&f){var t=n.type.Array(f)?f:p.slice(0);f=!1;var e=d;var i=(d=u.scrollPos())-e;0!==i&&(_=i>0?o:a),_===a&&t.reverse(),t.forEach((function(e,i){A(3,"updating Scene "+(i+1)+"/"+t.length+" ("+p.length+" total)"),e.update(!0)})),0===t.length&&c.loglevel>=3&&A(3,"updating 0 Scenes (nothing added to controller)")}};
27var C=function(){y=n.rAF(R)};var O=function(t){A(3,"event fired causing an update:",t.type),"resize"==t.type&&(g=P(),_=l),!0!==f&&(f=!0,C())};var k=function(){if(!m&&g!=P()){var t;try{t=new Event("resize",{bubbles:!1,cancelable:!1})}catch(e){(t=document.createEvent("Event")).initEvent("resize",!1,!1)}c.container.dispatchEvent(t)}p.forEach((function(t,e){t.refresh()})),b()};var A=this._log=function(t,e){c.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),n.log.apply(window,arguments))};this._options=c;var M=function(t){if(t.length<=1)return t;var e=t.slice(0);return e.sort((function(t,e){return t.scrollOffset()>e.scrollOffset()?1:-1})),e};return this.addScene=function(e){if(n.type.Array(e))e.forEach((function(t,e){u.addScene(t)}));else if(e instanceof t.Scene){if(e.controller()!==u)e.addTo(u);else if(p.indexOf(e)<0){for(var i in p.push(e),p=M(p),e.on("shift.controller_sort",(function(){p=M(p)})),c.globalSceneOptions)e[i]&&e[i].call(e,c.globalSceneOptions[i]);A(3,"adding Scene (now "+p.length+" total)")}}else A(1,"ERROR: invalid argument supplied for '.addScene()'");return u},this.removeScene=function(t){if(n.type.Array(t))t.forEach((function(t,e){u.removeScene(t)}));else{var e=p.indexOf(t);e>-1&&(t.off("shift.controller_sort"),p.splice(e,1),A(3,"removing Scene (now "+p.length+" left)"),t.remove())}return u},this.updateScene=function(e,i){return n.type.Array(e)?e.forEach((function(t,e){u.updateScene(t,i)})):i?e.update(!0):!0!==f&&e instanceof t.Scene&&(-1==(f=f||[]).indexOf(e)&&f.push(e),f=M(f),C()),u},this.update=function(t){return O({type:"resize"}),t&&R(),u},this.scrollTo=function(i,r){if(n.type.Number(i))S.call(c.container,i,r);else if(i instanceof t.Scene)i.controller()===u?u.scrollTo(i.scrollOffset(),r):A(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))S=i;else{var s=n.get.elements(i)[0];if(s){while(s.parentNode.hasAttribute(e))s=s.parentNode;var o=c.vertical?"top":"left",a=n.get.offset(c.container),l=n.get.offset(s);m||(a[o]-=u.scrollPos()),u.scrollTo(l[o]-a[o],r)}else A(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return u},this.scrollPos=function(t){return arguments.length?(n.type.Function(t)?x=t:A(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),u):x.call(u)},this.info=function(t){var e={size:g,vertical:c.vertical,scrollPos:d,scrollDirection:_,container:c.container,isDocument:m};return arguments.length?void 0!==e[t]?e[t]:(A(1,'ERROR: option "'+t+'" is not available'),void 0):e},this.loglevel=function(t){return arguments.length?(c.loglevel!=t&&(c.loglevel=t),u):c.loglevel},this.enabled=function(t){return arguments.length?(v!=t&&(v=!!t,u.updateScene(p,!0)),u):v},this.destroy=function(t){window.clearTimeout(w);var e=p.length;while(e--)p[e].destroy(t);return c.container.removeEventListener("resize",O),c.container.removeEventListener("scroll",O),n.cAF(y),A(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},T(),u};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};t.Controller.addOption=function(t,e){i.defaults[t]=e},t.Controller.extend=function(e){var i=this;t.Controller=function(){return i.apply(this,arguments),this.$super=n.extend({},this),e.apply(this,arguments)||this},n.extend(t.Controller,i),t.Controller.prototype=i.prototype,t.Controller.prototype.constructor=t.Controller},t.Scene=function(i){var s="ScrollMagic.Scene",o="BEFORE",a="DURING",l="AFTER",h=r.defaults;var u=this,c=n.extend({},h,i),p=o,f=0,d={start:0,end:0},_=0,m=!0,g,v;var y=function(){for(var t in c)h.hasOwnProperty(t)||(T(2,'WARNING: Unknown option "'+t+'"'),delete c[t]);for(var e in h)k(e);C()};var w={};this.on=function(t,e){return n.type.Function(e)?(t=t.trim().split(" ")).forEach((function(t){var i=t.split("."),r=i[0],n=i[1];"*"!=r&&(w[r]||(w[r]=[]),w[r].push({namespace:n||"",callback:e}))})):T(1,"ERROR when calling '.on()': Supplied callback for '"+t+"' is not a valid function!"),u},this.off=function(t,e){return t?((t=t.trim().split(" ")).forEac
27h((function(t,i){var r=t.split("."),n=r[0],s=r[1]||"",o;("*"===n?Object.keys(w):[n]).forEach((function(t){var i=w[t]||[],r=i.length;while(r--){var n=i[r];!n||s!==n.namespace&&"*"!==s||e&&e!=n.callback||i.splice(r,1)}i.length||delete w[t]}))})),u):(T(1,"ERROR: Invalid event name supplied."),u)},this.trigger=function(e,i){if(e){var r=e.trim().split("."),n=r[0],s=r[1],o=w[n];T(3,"event fired:",n,i?"->":"",i||""),o&&o.forEach((function(e,r){s&&s!==e.namespace||e.callback.call(u,new t.Event(n,e.namespace,u,i))}))}else T(1,"ERROR: Invalid event name supplied.");return u},u.on("change.internal",(function(t){"loglevel"!==t.what&&"tweenChanges"!==t.what&&("triggerElement"===t.what?P():"reverse"===t.what&&u.update())})).on("shift.internal",(function(t){b(),u.update()}));var T=this._log=function(t,e){c.loglevel>=t&&(Array.prototype.splice.call(arguments,1,0,"("+s+") ->"),n.log.apply(window,arguments))};this.addTo=function(e){return e instanceof t.Controller?v!=e&&(v&&v.removeScene(u),v=e,C(),x(!0),P(!0),b(),v.info("container").addEventListener("resize",S),e.addScene(u),u.trigger("add",{controller:v}),T(3,"added "+s+" to controller"),u.update()):T(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),u},this.enabled=function(t){return arguments.length?(m!=t&&(m=!!t,u.update(!0)),u):m},this.remove=function(){if(v){v.info("container").removeEventListener("resize",S);var t=v;v=void 0,t.removeScene(u),u.trigger("remove"),T(3,"removed "+s+" from controller")}return u},this.destroy=function(t){return u.trigger("destroy",{reset:t}),u.remove(),u.off("*.*"),T(3,"destroyed "+s+" (reset: "+(t?"true":"false")+")"),null},this.update=function(t){if(v)if(t)if(v.enabled()&&m){var e=v.info("scrollPos"),i;i=c.duration>0?(e-d.start)/(d.end-d.start):e>=d.start?1:0,u.trigger("update",{startPos:d.start,endPos:d.end,scrollPos:e}),u.progress(i)}else A&&p===a&&E(!0);else v.updateScene(u,!1);return u},this.refresh=function(){return x(),P(),u},this.progress=function(t){if(arguments.length){var e=!1,i=p,r=v?v.info("scrollDirection"):"PAUSED",n=c.reverse||t>=f;if(0===c.duration?(e=f!=t,p=0===(f=t<1&&n?0:1)?o:a):t<0&&p!==o&&n?(f=0,p=o,e=!0):t>=0&&t<1&&n?(f=t,p=a,e=!0):t>=1&&p!==l?(f=1,p=l,e=!0):p!==a||n||E(),e){var s={progress:f,state:p,scrollDirection:r},h=p!=i;var d=function(t){u.trigger(t,s)};h&&i!==a&&(d("enter"),d(i===o?"start":"end")),d("progress"),h&&p!==a&&(d(p===o?"start":"end"),d("leave"))}return u}return f};var b=function(){d={start:_+c.offset},v&&c.triggerElement&&(d.start-=v.info("size")*c.triggerHook),d.end=d.start+c.duration};var x=function(t){if(g){var e="duration";O(e,g.call(u))&&!t&&(u.trigger("change",{what:e,newval:c[e]}),u.trigger("shift",{reason:e}))}};var P=function(t){var i=0,r=c.triggerElement;if(v&&r){var s=v.info(),o=n.get.offset(s.container),a=s.vertical?"top":"left";while(r.parentNode.hasAttribute(e))r=r.parentNode;var l=n.get.offset(r);s.isDocument||(o[a]-=v.scrollPos()),i=l[a]-o[a]}var h=i!=_;_=i,h&&!t&&u.trigger("shift",{reason:"triggerElementPosition"})};var S=function(t){c.triggerHook>0&&u.trigger("shift",{reason:"containerResize"})};var R=n.extend(r.validate,{duration:function(t){if(n.type.String(t)&&t.match(/^(\.|\d)*\d+%$/)){var e=parseFloat(t)/100;t=function(){return v?v.info("size")*e:0}}if(n.type.Function(t)){g=t;try{t=parseFloat(g())}catch(e){t=-1}}if(t=parseFloat(t),!n.type.Number(t)||t<0)throw g?(g=void 0,['Invalid return value of supplied function for option "duration":',t]):['Invalid value for option "duration":',t];return t}});var C=function(t){(t=arguments.length?[t]:Object.keys(R)).forEach((function(t,e){var i;if(R[t])try{i=R[t](c[t])}catch(e){i=h[t];var r=n.type.String(e)?[e]:e;n.type.Array(r)?(r[0]="ERROR: "+r[0],r.unshift(1),T.apply(this,r)):T(1,"ERROR: Problem executing validation callback for option '"+t+"':",e.message)}finally{c[t]=i}}))};var O=function(t,e){var i=!1,r=c[t];return c[t]!=e&&(c[t]=e,C(t),i=r!=c[t]),i};var k=function(t){u[t]||(u[t]=function(e){return arguments.length?("duration"===t&&(g=void 0),O(t,e)&&(u.trigger("change",{what:t,newval:c[t]}),r.shifts.indexOf(t)>-1&&u.trigger("shift",{reason:t})),u):c[t]})};var A,M;this.controller=function(){return v},this.state=function(){return p},this.scrollOffset=function(){return d.start},this.triggerPosition=function(){var t=c.offset;return v&&(c.triggerElement?t+=_:t+=v.info("size")*u.triggerHook()),t},u.on("shift.internal",(function(t){var e="duration"===t.reason;(p===l&&e||p===a&&0===c.duration)&&E(),e&&D()})).on("progress.internal",(function(t){E()})).on("add.internal",(function(t){D()})).on("destroy.internal",(function(t){u.removePin(t.reset)}));var E=function(t){if(A&&v){var e=v.info(),i=M.spacer.firstChild;if(t||p!==a){var r={position:M.inFlow?"relative":"absolute",top:0,left:0},s=n.css(i,"position")!=r.position;M.pushFollowers?c.duration>0&&(p===l&&0===parseFloat(n.css(M.spacer,"padding-top"))||p===o&&0===parseFloat(n.css(M.spacer,"padding-bottom")))&&(s=!0):r[e.vertical?"top":"left"]=c.duration*f,n.css(i,r),s&&D()}else{"fixed"!=n.css(i,"position")&&(n.css(i,{position:"fixed"}),D());var h=n.get.offset(M.spacer,!0),u=c.reverse||0===c.duration?e.scrollPos-d.start:Math.round(f*c.duration*10)/10;h[e.vertical?"top":"left"]+=u,n.css(M.spacer.firstChild,{top:h.top,left
27:h.left})}}};var D=function(){if(A&&v&&M.inFlow){var t=p===l,e=p===o,i=p===a,r=v.info("vertical"),s=M.spacer.firstChild,h=n.isMarginCollapseType(n.css(M.spacer,"display")),u={};M.relSize.width||M.relSize.autoFullWidth?i?n.css(A,{width:n.get.width(M.spacer)}):n.css(A,{width:"100%"}):(u["min-width"]=n.get.width(r?A:s,!0,!0),u.width=i?u["min-width"]:"auto"),M.relSize.height?i?n.css(A,{height:n.get.height(M.spacer)-(M.pushFollowers?c.duration:0)}):n.css(A,{height:"100%"}):(u["min-height"]=n.get.height(r?s:A,!0,!h),u.height=i?u["min-height"]:"auto"),M.pushFollowers&&(u["padding"+(r?"Top":"Left")]=c.duration*f,u["padding"+(r?"Bottom":"Right")]=c.duration*(1-f)),n.css(M.spacer,u)}};var z=function(){v&&A&&p===a&&!v.info("isDocument")&&E()};var I=function(){v&&A&&p===a&&((M.relSize.width||M.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(M.spacer.parentNode)||M.relSize.height&&n.get.height(window)!=n.get.height(M.spacer.parentNode))&&D()};var F=function(t){v&&A&&p===a&&!v.info("isDocument")&&(t.preventDefault(),v._setScrollPos(v.info("scrollPos")-((t.wheelDelta||t[v.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-t.detail)))};this.setPin=function(t,i){var r={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};if(i=n.extend({},r,i),!(t=n.get.elements(t)[0]))return T(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),u;if("fixed"===n.css(t,"position"))return T(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),u;if(A){if(A===t)return u;u.removePin()}var s=(A=t).parentNode.style.display,o=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];A.parentNode.style.display="none";var a="absolute"!=n.css(A,"position"),l=n.css(A,o.concat(["display"])),h=n.css(A,["width","height"]);A.parentNode.style.display=s,!a&&i.pushFollowers&&(T(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout((function(){A&&0===c.duration&&i.pushFollowers&&T(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")}),0);var p=A.parentNode.insertBefore(document.createElement("div"),A),f=n.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||n.extend(f,n.css(A,["width","height"])),n.css(p,f),p.setAttribute(e,""),n.addClass(p,i.spacerClass),M={spacer:p,relSize:{width:"%"===h.width.slice(-1),height:"%"===h.height.slice(-1),autoFullWidth:"auto"===h.width&&a&&n.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!A.___origStyle){A.___origStyle={};var d=A.style,_;o.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]).forEach((function(t){A.___origStyle[t]=d[t]||""}))}return M.relSize.width&&n.css(p,{width:h.width}),M.relSize.height&&n.css(p,{height:h.height}),p.appendChild(A),n.css(A,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(M.relSize.width||M.relSize.autoFullWidth)&&n.css(A,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",z),window.addEventListener("resize",z),window.addEventListener("resize",I),A.addEventListener("mousewheel",F),A.addEventListener("DOMMouseScroll",F),T(3,"added pin"),E(),u},this.removePin=function(t){if(A){if(p===a&&E(!0),t||!v){var i=M.spacer.firstChild;if(i.hasAttribute(e)){var r=M.spacer.style,s;margins={},["margin","marginLeft","marginRight","marginTop","marginBottom"].forEach((function(t){margins[t]=r[t]||""})),n.css(i,margins)}M.spacer.parentNode.insertBefore(i,M.spacer),M.spacer.parentNode.removeChild(M.spacer),A.parentNode.hasAttribute(e)||(n.css(A,A.___origStyle),delete A.___origStyle)}window.removeEventListener("scroll",z),window.removeEventListener("resize",z),window.removeEventListener("resize",I),A.removeEventListener("mousewheel",F),A.removeEventListener("DOMMouseScroll",F),A=void 0,T(3,"removed pin (reset: "+(t?"true":"false")+")")}return u};var L,N=[];return u.on("destroy.internal",(function(t){u.removeClassToggle(t.reset)})),this.setClassToggle=function(t,e){var i=n.get.elements(t);return 0!==i.length&&n.type.String(e)?(N.length>
270&&u.removeClassToggle(),L=e,N=i,u.on("enter.internal_class leave.internal_class",(function(t){var e="enter"===t.type?n.addClass:n.removeClass;N.forEach((function(t,i){e(t,L)}))})),u):(T(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),u)},this.removeClassToggle=function(t){return t&&N.forEach((function(t,e){n.removeClass(t,L)})),u.off("start.internal_class end.internal_class"),L=void 0,N=[],u},y(),u};var r={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(t){if(t=parseFloat(t),!n.type.Number(t))throw['Invalid value for option "offset":',t];return t},triggerElement:function(t){if(t=t||void 0){var e=n.get.elements(t)[0];if(!e)throw['Element defined in option "triggerElement" was not found:',t];t=e}return t},triggerHook:function(t){var e={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(t))t=Math.max(0,Math.min(parseFloat(t),1));else{if(!(t in e))throw['Invalid value for option "triggerHook": ',t];t=e[t]}return t},reverse:function(t){return!!t},loglevel:function(t){if(t=parseInt(t),!n.type.Number(t)||t<0||t>3)throw['Invalid value for option "loglevel":',t];return t}},shifts:["duration","offset","triggerHook"]};t.Scene.addOption=function(e,i,n,s){e in r.defaults?t._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+e+"', because it already exists."):(r.defaults[e]=i,r.validate[e]=n,s&&r.shifts.push(e))},t.Scene.extend=function(e){var i=this;t.Scene=function(){return i.apply(this,arguments),this.$super=n.extend({},this),e.apply(this,arguments)||this},n.extend(t.Scene,i),t.Scene.prototype=i.prototype,t.Scene.prototype.constructor=t.Scene},t.Event=function(t,e,i,r){for(var n in r=r||{})this[n]=r[n];return this.type=t,this.target=this.currentTarget=i,this.namespace=e||"",this.timeStamp=this.timestamp=Date.now(),this};var n=t._util=function(t){var e={},i;var r=function(t){return parseFloat(t)||0};var n=function(e){return e.currentStyle?e.currentStyle:t.getComputedStyle(e)};var s=function(e,i,s,o){if((i=i===document?t:i)===t)o=!1;else if(!d.DomElement(i))return 0;e=e.charAt(0).toUpperCase()+e.substr(1).toLowerCase();var a=(s?i["offset"+e]||i["outer"+e]:i["client"+e]||i["inner"+e])||0;if(s&&o){var l=n(i);a+="Height"===e?r(l.marginTop)+r(l.marginBottom):r(l.marginLeft)+r(l.marginRight)}return a};var o=function(t){return t.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))};e.extend=function(t){for(t=t||{},i=1;i<arguments.length;i++)if(arguments[i])for(var e in arguments[i])arguments[i].hasOwnProperty(e)&&(t[e]=arguments[i][e]);return t},e.isMarginCollapseType=function(t){return["block","flex","list-item","table","-webkit-box"].indexOf(t)>-1};var a=0,l=["ms","moz","webkit","o"];var h=t.requestAnimationFrame;var u=t.cancelAnimationFrame;for(i=0;!h&&i<l.length;++i)h=t[l[i]+"RequestAnimationFrame"],u=t[l[i]+"CancelAnimationFrame"]||t[l[i]+"CancelRequestAnimationFrame"];h||(h=function(e){var i=(new Date).getTime(),r=Math.max(0,16-(i-a)),n=t.setTimeout((function(){e(i+r)}),r);return a=i+r,n}),u||(u=function(e){t.clearTimeout(e)}),e.rAF=h.bind(t),e.cAF=u.bind(t);var c=["error","warn","log"],p=t.console||{};for(p.log=p.log||function(){},i=0;i<c.length;i++){var f=c[i];p[f]||(p[f]=p.log)}e.log=function(t){(t>c.length||t<=0)&&(t=c.length);var e=new Date,i=("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)+":"+("0"+e.getSeconds()).slice(-2)+":"+("00"+e.getMilliseconds()).slice(-3),r=c[t-1],n=Array.prototype.splice.call(arguments,1),s=Function.prototype.bind.call(p[r],p);n.unshift(i),s.apply(p,n)};var d=e.type=function(t){return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};d.String=function(t){return"string"===d(t)},d.Function=function(t){return"function"===d(t)},d.Array=function(t){return Array.isArray(t)},d.Number=function(t){return!d.Array(t)&&t-parseFloat(t)+1>=0},d.DomElement=function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};var _=e.get={};return _.elements=function(e){var i=[];if(d.String(e))try{e=document.querySelectorAll(e)}catch(t){return i}if("nodelist"===d(e)||d.Array(e))for(var r=0,n=i.length=e.length;r<n;r++){var s=e[r];i[r]=d.DomElement(s)?s:_.elements(s)}else(d.DomElement(e)||e===document||e===t)&&(i=[e]);return i},_.scrollTop=function(e){return e&&"number"==typeof e.scrollTop?e.scrollTop:t.pageYOffset||0},_.scrollLeft=function(e){return e&&"number"==typeof e.scrollLeft?e.scrollLeft:t.pageXOffset||0}
27,_.width=function(t,e,i){return s("width",t,e,i)},_.height=function(t,e,i){return s("height",t,e,i)},_.offset=function(t,e){var i={top:0,left:0};if(t&&t.getBoundingClientRect){var r=t.getBoundingClientRect();i.top=r.top,i.left=r.left,e||(i.top+=_.scrollTop(),i.left+=_.scrollLeft())}return i},e.addClass=function(t,e){e&&(t.classList?t.classList.add(e):t.className+=" "+e)},e.removeClass=function(t,e){e&&(t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," "))},e.css=function(t,e){if(d.String(e))return n(t)[o(e)];if(d.Array(e)){var i={},r=n(t);return e.forEach((function(t,e){i[t]=r[o(t)]})),i}for(var s in e){var a=e[s];a==parseFloat(a)&&(a+="px"),t.style[o(s)]=a}},e}(window||{});return t.Scene.prototype.addIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.removeIndicators=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},t.Scene.prototype.setTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.removeTween=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},t.Scene.prototype.setVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t.Scene.prototype.removeVelocity=function(){return t._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},t})),
28/*!
29 * ScrollMagic v2.0.5 (2015-04-29)
30 * The javascript library for magical scroll interactions.
31 * (c) 2015 Jan Paepke (@janpaepke)
32 * Project Website: http://scrollmagic.io
33 *
34 * @version 2.0.5
35 * @license Dual licensed under MIT license and GPL.
36 * @author Jan Paepke - [email protected]
37 *
38 * @file ScrollMagic GSAP Animation Plugin.
39 *
40 * requires: GSAP ~1.14
41 * Powered by the Greensock Animation Platform (GSAP): http://www.greensock.com/js
42 * Greensock License info at http://www.greensock.com/licensing/
43 */
44function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic","TweenMax","TimelineMax"],e):"object"==typeof exports?(require("gsap"),e(require("scrollmagic"),TweenMax,TimelineMax)):e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic,t.TweenMax||t.TweenLite,t.TimelineMax||t.TimelineLite)}(this,(function(t,e,i){"use strict";var r="animation.gsap";var n=window.console||{},s=Function.prototype.bind.call(n.error||n.log||function(){},n);t||s("("+r+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs."),e||s("("+r+") -> ERROR: TweenLite or TweenMax could not be found. Please make sure GSAP is loaded before ScrollMagic or use an asynchronous loader like requirejs."),t.Scene.addOption("tweenChanges",!1,(function(t){return!!t})),t.Scene.extend((function(){var t=this,n;var s=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+r+")","->"),t._log.apply(this,arguments))};t.on("progress.plugin_gsap",(function(){o()})),t.on("destroy.plugin_gsap",(function(e){t.removeTween(e.reset)}));var o=function(){if(n){var e=t.progress(),i=t.state();n.repeat&&-1===n.repeat()?"DURING"===i&&n.paused()?n.play():"DURING"===i||n.paused()||n.pause():e!=n.progress()&&(0===t.duration()?e>0?n.play():n.reverse():t.tweenChanges()&&n.tweenTo?n.tweenTo(e*n.duration()):n.progress(e).pause())}};t.setTween=function(r,a,l){var h;arguments.length>1&&(arguments.length<3&&(l=a,a=1),r=e.to(r,a,l));try{(h=i?new i({smoothChildTiming:!0}).add(r):r).pause()}catch(e){return s(1,"ERROR calling method 'setTween()': Supplied argument is not a valid TweenObject"),t}if(n&&t.removeTween(),n=h,r.repeat&&-1===r.repeat()&&(n.repeat(-1),n.yoyo(r.yoyo())),t.tweenChanges()&&!n.tweenTo&&s(2,"WARNING: tweenChanges will only work if the TimelineMax object is available for ScrollMagic."),n&&t.controller()&&t.triggerElement()&&t.loglevel()>=2){var u=e.getTweensOf(t.triggerElement()),c=t.controller().info("vertical");u.forEach((function(t,e){var i=t.vars.css||t.vars,r;if(c?void 0!==i.top||void 0!==i.bottom:void 0!==i.left||void 0!==i.right)return s(2,"WARNING: Tweening the position of the trigger element affects the scene timing and should be avoided!"),!1}))}if(parseFloat(TweenLite.version)>=1.14){var p=n.getChildren?n.getChildren(!0,!0,!1):[n],f=function(){s(2,"WARNING: tween was overwritten by another. To learn how to avoid this issue see here: https://github.com/janpaepke/ScrollMagic/wiki/WARNING:-tween-was-overwritten-by-another")};for(var d=0,_,m;d<p.length;d++)_=p[d],m!==f&&(m=_.vars.onOverwrite,_.vars.onOverwrite=function(){m&&m.apply(this,arguments),f.apply(this,arguments)})}return s(3,"added tween"),o(),t},t.removeTween=function(e){return n&&(e&&n.progress(0).pause(),n.kill(),n=void 0,s(3,"removed tween (reset: "+(e?"true":"false")+")")),t}}))}
44)),
45/*!
46 * ScrollMagic v2.0.5 (2015-04-29)
47 * The javascript library for magical scroll interactions.
48 * (c) 2015 Jan Paepke (@janpaepke)
49 * Project Website: http://scrollmagic.io
50 *
51 * @version 2.0.5
52 * @license Dual licensed under MIT license and GPL.
53 * @author Jan Paepke - [email protected]
54 *
55 * @file Debug Extension for ScrollMagic.
56 */
57function(t,e){"function"==typeof define&&define.amd?define(["ScrollMagic"],e):"object"==typeof exports?e(require("scrollmagic")):e(t.ScrollMagic||t.jQuery&&t.jQuery.ScrollMagic)}(this,(function(t){"use strict";var e="debug.addIndicators";var i=window.console||{},r=Function.prototype.bind.call(i.error||i.log||function(){},i);t||r("("+e+") -> ERROR: The ScrollMagic main module could not be found. Please make sure it's loaded before this plugin or use an asynchronous loader like requirejs.");var n="0.85em",s="9999",o=15;var a=t._util,l=0;t.Scene.extend((function(){var t=this,i;var r=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};t.addIndicators=function(e){if(!i){var r={name:"",indent:0,parent:void 0,colorStart:"green",colorEnd:"red",colorTrigger:"blue"};e=a.extend({},r,e),l++,i=new h(t,e),t.on("add.plugin_addIndicators",i.add),t.on("remove.plugin_addIndicators",i.remove),t.on("destroy.plugin_addIndicators",t.removeIndicators),t.controller()&&i.add()}return t},t.removeIndicators=function(){return i&&(i.remove(),this.off("*.plugin_addIndicators"),i=void 0),t}})),t.Controller.addOption("addIndicators",!1),t.Controller.extend((function(){var i=this,r=i.info(),n=r.container,s=r.isDocument,l=r.vertical,h={groups:[]};var u=function(){i._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),i._log.apply(this,arguments))};i._indicators&&u(2,"WARNING: Scene already has a property '_indicators', which will be overwritten by plugin."),this._indicators=h;var c=function(){h.updateBoundsPositions()};var p=function(){h.updateTriggerGroupPositions()};return n.addEventListener("resize",p),s||(window.addEventListener("resize",p),window.addEventListener("scroll",p)),n.addEventListener("resize",c),n.addEventListener("scroll",c),this._indicators.updateBoundsPositions=function(t){var e=t?[a.extend({},t.triggerGroup,{members:[t]})]:h.groups,i=e.length,r={},s=l?"left":"top",u=l?"width":"height",c=l?a.get.scrollLeft(n)+a.get.width(n)-o:a.get.scrollTop(n)+a.get.height(n)-o,p,f,d;while(i--){p=(d=e[i]).members.length,f=a.get[u](d.element.firstChild);while(p--)r[s]=c-f,a.css(d.members[p].bounds,r)}},this._indicators.updateTriggerGroupPositions=function(t){var e=t?[t]:h.groups,r=e.length,u=s?document.body:n,c=s?{top:0,left:0}:a.get.offset(u,!0),p=l?a.get.width(n)-o:a.get.height(n)-o,f=l?"width":"height",d=l?"Y":"X";var _,m,g,v,y;while(r--)m=(_=e[r]).element,y=(g=_.triggerHook*i.info("size"))>(v=a.get[f](m.firstChild.firstChild))?"translate"+d+"(-100%)":"",a.css(m,{top:c.top+(l?g:p-_.members[0].options.indent),left:c.left+(l?p-_.members[0].options.indent:g)}),a.css(m.firstChild.firstChild,{"-ms-transform":y,"-webkit-transform":y,transform:y})},this._indicators.updateTriggerGroupLabel=function(t){var e="trigger"+(t.members.length>1?"":" "+t.members[0].options.name),i=t.element.firstChild.firstChild,r;i.textContent!==e&&(i.textContent=e,l&&h.updateBoundsPositions())},this.addScene=function(e){this._options.addIndicators&&e instanceof t.Scene&&e.controller()===i&&e.addIndicators(),this.$super.addScene.apply(this,arguments)},this.destroy=function(){n.removeEventListener("resize",p),s||(window.removeEventListener("resize",p),window.removeEventListener("scroll",p)),n.removeEventListener("resize",c),n.removeEventListener("scroll",c),this.$super.destroy.apply(this,arguments)},i}));var h=function(t,i){var r=this,n=u.bounds(),s=u.start(i.colorStart),o=u.end(i.colorEnd),h=i.parent&&a.get.elements(i.parent)[0],c,p;var f=function(){t._log&&(Array.prototype.splice.call(arguments,1,0,"("+e+")","->"),t._log.apply(this,arguments))};i.name=i.name||l,s.firstChild.textContent+=" "+i.name,o.textContent+=" "+i.name,n.appendChild(s),n.appendChild(o),r.options=i,r.bounds=n,r.triggerGroup=void 0,this.add=function(){p=t.controller(),c=p.info("vertical");var e=p.info("isDocument");h||(h=e?document.body:p.info("container")),e||"static"!==a.css(h,"position")||a.css(h,{position:"relative"}),t.on("change.plugin_addIndicators",_),t.on("shift.plugin_addIndicators",d),T(),v(),setTimeout((function(){p._indicators.updateBoundsPositions(r)}),0),f(3,"added indicators")},this.remove=function(){if(r.triggerGroup){if(t.off("change.plugin_addIndicators",_),t.off("shift.plugin_addIndicators",d),r.triggerGroup.members.length>1){var e=r.triggerGroup;e.members.splice(e.members.indexOf(r),1),p._indicators.updateTriggerGroupLabel(e),p._indicators.updateTriggerGroupPositions(e),r.triggerGroup=void 0}else w();g(),f(3,"removed indicators")}};var d=function(){v()};var _=function(t){"triggerHook"===t.what&&T()};var m=function(){var t=p.info("vertical");a.css(s.firstChild,{"border-bottom-width":t?1:0,"border-right-width":t?0:1,bottom:t?-1:i.indent,right:t?i.indent:-1,padding:t?"0 8px":"2px 4px"}),a.css(o,{"border-top-width":t?1:0,"border-left-width":t?0:1,top:t?"100%":"",right:t?i.indent:"",bottom:t?"":i.indent,left:t?"":"100%",padding:t?"0 8px":"2px 4px"}),h.appendChild(n)};var g=function(){n.parentNode.removeChild(n)};var v=function(){n.parentNode!==h&&m();var e={};e[c?"top":"left"]=t.triggerPosition(),e[c?"height":"width"]=t.duration(),a.css(n,e),a.css(o,{display:t.duration()>
570?"":"none"})};var y=function(){var e=u.trigger(i.colorTrigger);var n={};n[c?"right":"bottom"]=0,n[c?"border-top-width":"border-left-width"]=1,a.css(e.firstChild,n),a.css(e.firstChild.firstChild,{padding:c?"0 8px 3px 8px":"3px 4px"}),document.body.appendChild(e);var s={triggerHook:t.triggerHook(),element:e,members:[r]};p._indicators.groups.push(s),r.triggerGroup=s,p._indicators.updateTriggerGroupLabel(s),p._indicators.updateTriggerGroupPositions(s)};var w=function(){p._indicators.groups.splice(p._indicators.groups.indexOf(r.triggerGroup),1),r.triggerGroup.element.parentNode.removeChild(r.triggerGroup.element),r.triggerGroup=void 0};var T=function(){var e=t.triggerHook(),i=1e-4;if(!(r.triggerGroup&&Math.abs(r.triggerGroup.triggerHook-e)<i)){var n=p._indicators.groups,s,o=n.length;while(o--)if(s=n[o],Math.abs(s.triggerHook-e)<i)return r.triggerGroup&&(1===r.triggerGroup.members.length?w():(r.triggerGroup.members.splice(r.triggerGroup.members.indexOf(r),1),p._indicators.updateTriggerGroupLabel(r.triggerGroup),p._indicators.updateTriggerGroupPositions(r.triggerGroup))),s.members.push(r),r.triggerGroup=s,p._indicators.updateTriggerGroupLabel(s),void 0;if(r.triggerGroup){if(1===r.triggerGroup.members.length)return r.triggerGroup.triggerHook=e,p._indicators.updateTriggerGroupPositions(r.triggerGroup),void 0;r.triggerGroup.members.splice(r.triggerGroup.members.indexOf(r),1),p._indicators.updateTriggerGroupLabel(r.triggerGroup),p._indicators.updateTriggerGroupPositions(r.triggerGroup),r.triggerGroup=void 0}y()}}};var u={start:function(t){var e=document.createElement("div");e.textContent="start",a.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t});var i=document.createElement("div");return a.css(i,{position:"absolute",overflow:"visible",width:0,height:0}),i.appendChild(e),i},end:function(t){var e=document.createElement("div");return e.textContent="end",a.css(e,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),e},bounds:function(){var t=document.createElement("div");return a.css(t,{position:"absolute",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":n}),t.style.zIndex=s,t},trigger:function(t){var e=document.createElement("div");e.textContent="trigger",a.css(e,{position:"relative"});var i=document.createElement("div");a.css(i,{position:"absolute",overflow:"visible","border-width":0,"border-style":"solid",color:t,"border-color":t}),i.appendChild(e);var r=document.createElement("div");return a.css(r,{position:"fixed",overflow:"visible","white-space":"nowrap","pointer-events":"none","font-size":n}),r.style.zIndex=s,r.appendChild(i),r}}}));
58//# sourceMappingURL=/s/files/1/2502/5716/t/67/assets/jquery.ScrollMagic.js.map?v=1591748109

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.