!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(e){"use strict";function _inheritsloose(t,e){t.prototype=object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function _assertthisinitialized(t){if(void 0===t)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return t} /*! * gsap 3.0.1 * https://greensock.com * * @license copyright 2008-2019, greensock. all rights reserved. * subject to the terms at https://greensock.com/standard-license or for * club greensock members, the agreement issued with that membership. * @author: jack doyle, jack@greensock.com */function n(t){return"string"==typeof t}function o(t){return"function"==typeof t}function p(t){return"number"==typeof t}function q(t){return void 0===t}function r(t){return"object"==typeof t}function s(t){return!1!==t}function t(){return"undefined"!=typeof window}function u(t){return o(t)||n(t)}function j(t){return(l=dt(t,at))&&ee}function k(t,e){return console.warn("invalid",t,"tween of",e,"missing plugin? gsap.registerplugin()")}function l(t,e){return!e&&console.warn(t)}function m(t,e){return t&&(at[t]=e)&&l&&(l[t]=e)||at}function n(){return 0}function w(t){var e,n,i=t[0];if(!r(i)&&!o(i))return g(t)?t:[t];if(!(e=(i._gsap||{}).harness)){for(n=ct.length;n--&&!ct[n].targettest(i););e=ct[n]}for(n=t.length;n--;)t[n]._gsap||(t[n]._gsap=new ft(t[n],e));return t}function x(t){return t._gsap||w(vt(t))[0]._gsap}function y(t,e){var r=t[e];return o(r)?t[e]():q(r)&&t.getattribute(e)||r}function z(t,e){return(t=t.split(",")).foreach(e)||t}function $(t){return math.round(1e4*t)/1e4}function _(t,e){for(var r=e.length,n=0;t.indexof(e[n])<0&&++na;)s=s._prev;s?(e._next=s._next,s._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=s,e.parent=t}(t,e,"_first","_last",t._sort?"_start":0),(t._recent=e)._time||!e._dur&&e._initted){var n=(t.rawtime()-e._start)*e._ts;(!e._dur||mt(0,e.totalduration(),n)-e._ttime>b)&&e.render(n,!0)}if(pa(t),t._dp&&t._time>=t._dur&&t._ts&&t._dur=d?s.endtime(!1):t._dur;return n(e)&&(isnan(e)||e in a)?"<"===(r=e.charat(0))||">"===r?("<"===r?s._start:s.endtime(0<=s._repeat))+(parsefloat(e.substr(1))||0):(r=e.indexof("="))<0?(e in a||(a[e]=o),a[e]):(i=+(e.charat(r-1)+e.substr(r+1)),1(i=math.abs(i))&&(a=n,o=i);return a}function ya(t){return oa(t),t.progress()<1&&bt(t,"oninterrupt"),t}function bb(t,e,r){return(6*(t=t<0?t+1:1>16,t>>8&wt,t&wt]:0:tt.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),tt[t])c=tt[t];else if("#"===t.charat(0))4===t.length&&(t="#"+(r=t.charat(1))+r+(n=t.charat(2))+n+(i=t.charat(3))+i),c=[(t=parseint(t.substr(1),16))>>16,t>>8&wt,t&wt];else if("hsl"===t.substr(0,3))if(c=f=t.match(h),e){if(~t.indexof("="))return t.match(tt)}else a=+c[0]%360/360,s=+c[1]/100,r=2*(o=+c[2]/100)-(n=o<=.5?o*(s+1):o+s-o*s),3=r&&te)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(!n._dur&&"ispause"===n.data&&n._start=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(0=this.totalduration())&&(!t&&m||oa(this,1),e||t<0&&!d||(bt(this,g===_?"oncomplete":"onreversecomplete",!0),this._prom&&g===_&&this._prom())))}return this},t.add=function add(t,e){var r=this;if(p(e)||(e=aa(this,e)),!(t instanceof rt)){if(g(t))return t.foreach(function(t){return r.add(t,e)}),pa(this);if(n(t))return this.addlabel(t,e);if(!o(t))return this;t=xt.delayedcall(0,t)}return this!==t?ua(this,t,e):this},t.getchildren=function getchildren(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-d);for(var i=[],a=this._first;a;)a._start>=n&&(a instanceof xt?e&&i.push(a):(r&&i.push(a),t&&i.push.apply(i,a.getchildren(!0,e,r)))),a=a._next;return i},t.getbyid=function getbyid(t){for(var e=this.getchildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},t.remove=function remove(t){return n(t)?this.removelabel(t):o(t)?this.killtweensof(t):(na(this,t),t===this._recent&&(this._recent=this._last),pa(this))},t.totaltime=function totaltime(t,e){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=at.time-(0=r&&(i._start+=t),i=i._next;if(e)for(n in a)a[n]>=r&&(a[n]+=t);return pa(this)},t.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return i.prototype.invalidate.call(this)},t.clear=function clear(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._ttime=0,t&&(this.labels={}),pa(this)},t.totalduration=function totalduration(t){var e,r,n=0,i=this,a=i._last,s=d,o=i._repeat,u=o*i._rdelay||0,h=o<0;if(arguments.length)return h?i:i.timescale(i.totalduration()/t);if(i._dirty){for(;a;)e=a._prev,a._dirty&&a.totalduration(),a._start>s&&i._sort&&a._ts&&!i._lock?(i._lock=1,ua(i,a,a._start-a._delay),i._lock=0):s=a._start,a._start<0&&a._ts&&(n-=a._start,(!i.parent&&!i._dp||i.parent&&i.parent.smoothchildtiming)&&(i._start+=a._start/i._ts,i._time-=a._start,i._ttime-=a._start),i.shiftchildren(-a._start,!1,-d),s=0),n<(r=a._end=a._start+a._tdur/math.abs(a._ts||a._pausets))&&a._ts&&(n=$(r)),a=e;i._dur=i===r&&i._time>n?i._time:math.min(d,n),i._tdur=h&&(i._dur||u)?1e20:math.min(d,n*(o+1)+u),i._end=i._start+(i._tdur/math.abs(i._ts||i._pausets)||0),i._dirty=0}return i._tdur},timeline.updateroot=function updateroot(t){if(r._ts&&ca(r,ta(t,r)),at.frame>=ft){ft+=u.autosleep||120;var e=r._first;if((!e||!e._ts)&&u.autosleep&&at._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||at.sleep()}}},timeline}(rt);fa(et.prototype,{_lock:0,_haspause:0,_forcing:0});function bb(t,e,i,a,s,u){var h,l,f,c;if(ht[t]&&!1!==(h=new ht[t]).init(s,h.rawvars?e[t]:function _processvars(t,e,i,a,s){if(o(t)&&(t=yt(t,s,e,i,a)),!r(t)||t.style&&t.nodetype||g(t))return n(t)?yt(t,s,e,i,a):t;var u,h={};for(u in t)h[u]=yt(t[u],s,e,i,a);return h}(e[t],a,s,u,i),i,a,u)&&(i._pt=l=new te(i._pt,s,t,0,1,h.render,h,0,h.priority),i!==d))for(f=i._ptlookup[i._targets.indexof(s)],c=h._props.length;c--;)f[h._props[c]]=l;return h}var zt,lt=function _addproptween(t,e,r,i,a,s,u,h,l){o(i)&&(i=i(a||0,t,s));var f,c=t[e],p="get"!==r?r:o(c)?l?t[e.indexof("set")||!o(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():c,d=o(c)?l?qt:ut:zt;if(n(i)&&(~i.indexof("random(")&&(i=ta(i)),"="===i.charat(1)&&(i=parsefloat(p)+parsefloat(i.substr(2))*("-"===i.charat(0)?-1:1)+da(p))),p!==i)return isnan(p+i)?(c||e in t||k(e,i),function _addcomplexstringproptween(t,e,r,n,i,a,s){var o,u,h,l,f,c,p,d,_=new te(this._pt,t,e,0,1,wt,null,i),m=0,g=0;for(_.b=r,_.e=n,r+="",(p=~(n+="").indexof("random("))&&(n=ta(n)),a&&(a(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(et)||[];o=et.exec(n);)l=o[0],f=n.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(c=parsefloat(u[g-1]),_._pt={_next:_._pt,p:f||1===g?f:",",s:c,c:"="===l.charat(1)?parsefloat(l.substr(2))*("-"===l.charat(0)?-1:1):parsefloat(l)-c,m:h&&h<4?math.round:0},m=et.lastindex);return _.c=m")});else{if(l=x.length,p=y?ja(y):n,r(y))for(f in y)~nt.indexof(f)&&((d=d||{})[f]=y[f]);for(o=0;o=t._tdur||e<0)&&t.ratio===u&&(t.ratio&&oa(t,1),r||(bt(t,t.ratio?"oncomplete":"onreversecomplete",!0),t._prom&&t.ratio&&t._prom()))}}(this,t,e,r);return this},t.targets=function targets(){return this._targets},t.invalidate=function invalidate(){return this._pt=this._op=this._startat=this._onupdate=this._act=this._lazy=0,this._ptlookup=[],this.timeline&&this.timeline.invalidate(),k.prototype.invalidate.call(this)},t.kill=function kill(t,e){if(void 0===e&&(e="all"),zt===this)return zt;if(!(t||e&&"all"!==e)&&this.parent)return this._lazy=0,ya(this);if(this.timeline)return this.timeline.killtweensof(t,e),this;var r,i,a,s,o,u,h,l=this._targets,f=t?vt(t):l,c=this._ptlookup,p=this._pt;if((!e||"all"===e)&&function _arraysmatch(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(l,f))return ya(this);for(r=this._op=this._op||[],"all"!==e&&(n(e)&&(o={},z(e,function(t){return o[t]=1}),e=o),e=function _addaliasestovars(t,e){var r,n,i,a,s=t[0]?x(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(n in r=dt({},e),o)if(n in r)for(i=(a=o[n].split(",")).length;i--;)r[a[i]]=r[n];return r}(l,e)),h=l.length;h--;)if(~f.indexof(l[h]))for(o in i=c[h],"all"===e?(r[h]=e,s=i,a={}):(a=r[h]=r[h]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||(na(this,u,"_pt"),delete i[o])),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&p&&ya(this),this},tween.to=function to(t,e,r){return new tween(t,e,r)},tween.from=function from(t,e){return new tween(t,aa(arguments,1))},tween.delayedcall=function delayedcall(t,e,r,n){return new tween(e,0,{immediaterender:!1,lazy:!1,overwrite:!1,delay:t,oncomplete:e,onreversecomplete:e,oncompleteparams:r,onreversecompleteparams:r,callbackscope:n})},tween.fromto=function fromto(t,e,r){return new tween(t,aa(arguments,2))},tween.set=function set(t,e){return e.duration=0,e.repeatdelay||(e.repeat=0),new tween(t,e)},tween.killtweensof=function killtweensof(t,e,r){return r.killtweensof(t,e,r)},tween}(rt);fa(xt.prototype,{_targets:[],_initted:0,_lazy:0,_startat:0,_op:0,_oninit:0}),z("staggerto,staggerfrom,staggerfromto",function(r){xt[r]=function(){var t=new et,e=vt(arguments);return e.splice("staggerfromto"===r?5:4,0,0),t[r].apply(t,e)}});function mb(t,e,r){return t.setattribute(e,r)}function ub(t,e,r,n){n.mset(t,e,n.m.call(n.tween,r,n.mt),n)}var zt=function _setterplain(t,e,r){return t[e]=r},ut=function _setterfunc(t,e,r){return t[e](r)},qt=function _setterfuncwithparam(t,e,r,n){return t[e](n.fp,r)},jt=function _getsetter(t,e){return o(t[e])?ut:q(t[e])&&t.setattribute?mb:zt},vt=function _renderplain(t,e){return e.set(e.t,e.p,~~(1e4*(e.s+e.c*t))/1e4,e)},qt=function _renderboolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},wt=function _rendercomplexstring(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):~~(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},gt=function _renderproptweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},jt=function _addpluginmodifier(t,e,r,n){for(var i,a=this._pt;a;)i=a._next,a.p===n&&a.modifier(t,e,r),a=i},kt=function _killproptweensof(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?na(this,n,"_pt"):n.dep||(e=1),n=r;return!e},ht=function _sortproptweensbypriority(t){for(var e,r,n,i,a=t._pt;a;){for(e=a._next,r=n;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:i)?a._prev._next=a:n=a,(a._next=r)?r._prev=a:i=a,a=e}t._pt=n},te=(proptween.prototype.modifier=function modifier(t,e,r){this.mset=this.mset||this.set,this.set=ub,this.m=t,this.mt=r,this.tween=e},proptween);function proptween(t,e,r,n,i,a,s,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=a||vt,this.d=s||this,this.set=o||zt,this.pr=u||0,(this._next=t)&&(t._prev=this)}z(pt+",parent,duration,ease,delay,overwrite,runbackwards,startat,yoyo,immediaterender,repeat,repeatdelay,data,paused,reversed,lazy,callbackscope,stringfilter,id,yoyoease,stagger,inherit,repeatrefresh,keyframes,autorevert",function(t){st[t]=1,"on"===t.substr(0,2)&&(st[t+"params"]=1)}),at.tweenmax=at.tweenlite=xt,at.timelinelite=at.timelinemax=et,r=new et({sortchildren:!1,defaults:e,autoremovechildren:!0,id:"root"}),u.stringfilter=gb;var ee={registerplugin:function registerplugin(){for(var t=arguments.length,e=new array(t),r=0;r