/*! * gsap 3.9.1 * https://greensock.com * * @license copyright 2021, 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(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}function o(t){return"string"==typeof t}function p(t){return"function"==typeof t}function q(t){return"number"==typeof t}function r(t){return void 0===t}function s(t){return"object"==typeof t}function t(t){return!1!==t}function u(){return"undefined"!=typeof window}function v(t){return p(t)||o(t)}function m(t){return(h=mt(t,ot))&&oe}function n(t,e){return console.warn("invalid property",t,"set to",e,"missing plugin? gsap.registerplugin()")}function o(t,e){return!e&&console.warn(t)}function p(t,e){return t&&(ot[t]=e)&&h&&(h[t]=e)||ot}function q(){return 0}function $(t){var e,r,i=t[0];if(s(i)||p(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ct.length;r--&&!ct[r].targettest(i););e=ct[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new lt(t[r],e)))||t.splice(r,1);return t}function _(t){return t._gsap||$(xt(t))[0]._gsap}function aa(t,e,i){return(i=t[e])&&p(i)?t[e]():r(i)&&t.getattribute&&t.getattribute(e)||i}function ba(t,e){return(t=t.split(",")).foreach(e)||t}function ca(t){return math.round(1e5*t)/1e5||0}function da(t){return math.round(1e7*t)/1e7||0}function ea(t,e){for(var r=e.length,i=0;t.indexof(e[i])<0&&++it._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t}function wa(t){return t._repeat?gt(t._ttime,t=t.duration()+t._rdelay)*t:0}function ya(t,e){return(t-e._start)*e._ts+(0<=e._ts?0:e._dirty?e.totalduration():e._tdur)}function za(t){return t._end=da(t._start+(t._tdur/math.abs(t._ts||t._rts||x)||0))}function aa(t,e){var r=t._dp;return r&&r.smoothchildtiming&&t._ts&&(t._start=da(r._time-(0x)&&e.render(r,!0)),ta(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dura;)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[i]=e,e._prev=s,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),vt(e)||(t._recent=e),i||ba(t,e),t}function da(t,e){return(ot.scrolltrigger||n("scrolltrigger",e))&&ot.scrolltrigger.create(e,t)}function ea(t,e,r,i){return jt(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&f!==st.frame?(ht.push(t),t._lazy=[e,i],1):void 0:1}function ja(t,e,r,i){var n=t._repeat,a=da(e)||0,s=t._ttime/t._tdur;return s&&!i&&(t._time*=a/t._dur),t._dur=a,t._tdur=n?n<0?1e10:da(a*(n+1)+t._rdelay*n):a,0(n=math.abs(n))&&(a=i,o=n);return a}function lb(t){return sa(t),t.scrolltrigger&&t.scrolltrigger.kill(!1),t.progress()<1&&mt(t,"oninterrupt"),t}function qb(t,e,r){return(6*(t+=t<0?1:1>16,t>>8&kt,t&kt]:0:ct.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ct[t])p=ct[t];else if("#"===t.charat(0)){if(t.length<6&&(t="#"+(i=t.charat(1))+i+(n=t.charat(2))+n+(a=t.charat(3))+a+(5===t.length?t.charat(4)+t.charat(4):"")),9===t.length)return[(p=parseint(t.substr(1,6),16))>>16,p>>8&kt,p&kt,parseint(t.substr(7),16)/255];p=[(t=parseint(t.substr(1),16))>>16,t>>8&kt,t&kt]}else if("hsl"===t.substr(0,3))if(p=d=t.match(tt),e){if(~t.indexof("="))return p=t.match(et),r&&p.length<4&&(p[3]=1),p}else s=+p[0]%360/360,o=p[1]/100,i=2*(u=p[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),3=j?u.endtime(!1):t._dur;return o(e)&&(isnan(e)||e in s)?(n=e.charat(0),a="%"===e.substr(-1),i=e.indexof("="),"<"===n||">"===n?(0<=i&&(e=e.replace(/=/,"")),("<"===n?u._start:u.endtime(0<=u._repeat))+(parsefloat(e.substr(1))||0)*(a?(i<0?u:r).totalduration()/100:1)):i<0?(e in s||(s[e]=h),s[e]):(n=parsefloat(e.charat(i-1)+e.substr(i+1)),a&&r&&(n=n/100*(w(r)?r[0]:r).totalduration()),1=r&&te)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("ispause"===i.data&&i._start=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(0=this.totalduration()||!v&&_)&&(f!==this._start&&math.abs(l)===math.abs(this._ts)||this._lock||(!t&&g||!(v===m&&0=i&&(a instanceof jt?e&&n.push(a):(r&&n.push(a),t&&n.push.apply(n,a.getchildren(!0,e,r)))),a=a._next;return n},e.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]},e.remove=function remove(t){return o(t)?this.removelabel(t):p(t)?this.killtweensof(t):(ra(this,t),t===this._recent&&(this._recent=this._last),ta(this))},e.totaltime=function totaltime(t,e){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=da(st.time-(0e:!e||a.isactive())&&i.push(a):(r=a.gettweensof(n,e)).length&&i.push.apply(i,r),a=a._next;return i},e.tweento=function tweento(t,e){e=e||{};var r,i=this,n=bt(i,t),a=e.startat,s=e.onstart,o=e.onstartparams,u=e.immediaterender,h=jt.to(i,ja({ease:e.ease||"none",lazy:!1,immediaterender:!1,time:n,overwrite:"auto",duration:e.duration||math.abs((n-(a&&"time"in a?a.time:i._time))/i.timescale())||x,onstart:function onstart(){if(i.pause(),!r){var t=e.duration||math.abs((n-(a&&"time"in a?a.time:i._time))/i.timescale());h._dur!==t&&ja(h,t,0,1).render(h._time,!0,!0),r=1}s&&s.apply(h,o||[])}},e));return u?h.render(0):h},e.tweenfromto=function tweenfromto(t,e,r){return this.tweento(e,ja({startat:{time:bt(this,t)}},r))},e.recent=function recent(){return this._recent},e.nextlabel=function nextlabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t))},e.previouslabel=function previouslabel(t){return void 0===t&&(t=this._time),jb(this,bt(this,t),1)},e.currentlabel=function currentlabel(t){return arguments.length?this.seek(t,!0):this.previouslabel(this._time+x)},e.shiftchildren=function shiftchildren(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,a=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in a)a[i]>=r&&(a[i]+=t);return ta(this)},e.invalidate=function invalidate(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return n.prototype.invalidate.call(this)},e.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._dp&&(this._time=this._ttime=this._ptime=0),t&&(this.labels={}),ta(this)},e.totalduration=function totalduration(t){var e,r,i,n=0,a=this,s=a._last,o=j;if(arguments.length)return a.timescale((a._repeat<0?a.duration():a.totalduration())/(a.reversed()?-t:t));if(a._dirty){for(i=a.parent;s;)e=s._prev,s._dirty&&s.totalduration(),o<(r=s._start)&&a._sort&&s._ts&&!a._lock?(a._lock=1,ca(a,s,r-s._delay,1)._lock=0):o=r,r<0&&s._ts&&(n-=r,(!i&&!a._dp||i&&i.smoothchildtiming)&&(a._start+=r/a._ts,a._time-=r,a._ttime-=r),a.shiftchildren(-r,!1,-infinity),o=0),s._end>n&&s._ts&&(n=s._end),s=e;ja(a,a===i&&a._time>n?a._time:n,1,1),a._dirty=0}return a._tdur},timeline.updateroot=function updateroot(t){if(i._ts&&(ga(i,ya(t,i)),f=st.frame),st.frame>=pt){pt+=y.autosleep||120;var e=i._first;if((!e||!e._ts)&&y.autosleep&&st._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||st.sleep()}}},timeline}(qt);ja(nt.prototype,{_lock:0,_haspause:0,_forcing:0});function tb(t,e,r,i,n,a){var u,h,l,f;if(ft[t]&&!1!==(u=new ft[t]).init(n,u.rawvars?e[t]:function _processvars(t,e,r,i,n){if(p(t)&&(t=xt(t,n,e,r,i)),!s(t)||t.style&&t.nodetype||w(t)||h(t))return o(t)?xt(t,n,e,r,i):t;var a,u={};for(a in t)u[a]=xt(t[a],n,e,r,i);return u}(e[t],i,n,a,r),r,i,a)&&(r._pt=h=new ae(r._pt,n,t,0,1,u.render,u,0,u.priority),r!==d))for(l=r._ptlookup[r._targets.indexof(n)],f=u._props.length;f--;)l[u._props[f]]=h;return u}function xb(t,r,e,i){var n,a,s=r.ease||i||"power1.inout";if(w(r))a=e[t]||(e[t]=[]),r.foreach(function(t,e){return a.push({t:e/(r.length-1)*100,v:t,e:s})});else for(n in r)a=e[n]||(e[n]=[]),"ease"===n||a.push({t:parsefloat(t),v:r[n],e:s})}var qt,yt=function _addproptween(t,e,r,i,n,a,s,u,h){p(i)&&(i=i(n||0,t,a));var l,f=t[e],d="get"!==r?r:p(f)?h?t[e.indexof("set")||!p(t["get"+e.substr(3)])?e:"get"+e.substr(3)](h):t[e]():f,c=p(f)?h?zt:$t:gt;if(o(i)&&(~i.indexof("random(")&&(i=gb(i)),"="===i.charat(1)&&(!(l=parsefloat(d)+parsefloat(i.substr(2))*("-"===i.charat(0)?-1:1)+(qa(d)||0))&&0!==l||(i=l))),d!==i)return isnan(d*i)||""===i?(f||e in t||n(e,i),function _addcomplexstringproptween(t,e,r,i,n,a,s){var o,u,h,l,f,d,p,c,_=new ae(this._pt,t,e,0,1,te,null,n),m=0,g=0;for(_.b=r,_.e=i,r+="",(p=~(i+="").indexof("random("))&&(i=gb(i)),a&&(a(c=[r,i],t,e),r=c[0],i=c[1]),u=r.match(it)||[];o=it.exec(i);)l=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),l!==u[g++]&&(d=parsefloat(u[g-1])||0,_._pt={_next:_._pt,p:f||1===g?f:",",s:d,c:"="===l.charat(1)?parsefloat(l.substr(2))*("-"===l.charat(0)?-1:1):parsefloat(l)-d,m:h&&h<4?math.round:0},m=it.lastindex);return _.c=m")});else{for(f in h={},w)"ease"===f||"easeeach"===f||xb(f,w[f],h,w.easeeach);for(f in h)for(a=h[f].sort(function(t,e){return t.t-e.t}),u=z=0;u=t._tdur||e<0)&&t.ratio===u&&(u&&sa(t,1),r||(mt(t,u?"oncomplete":"onreversecomplete",!0),t._prom&&t._prom()))}else t._ztime||(t._ztime=e)}(this,t,e,r);return this},e.targets=function targets(){return this._targets},e.invalidate=function invalidate(){return this._pt=this._op=this._startat=this._onupdate=this._lazy=this.ratio=0,this._ptlookup=[],this.timeline&&this.timeline.invalidate(),f.prototype.invalidate.call(this)},e.kill=function kill(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?lb(this):this;if(this.timeline){var r=this.timeline.totalduration();return this.timeline.killtweensof(t,e,qt&&!0!==qt.vars.overwrite)._first||lb(this),this.parent&&r!==this.timeline.totalduration()&&ja(this,this._dur*this.timeline._tdur/r,0,1),this}var i,n,a,s,u,h,l,f=this._targets,d=t?xt(t):f,p=this._ptlookup,c=this._pt;if((!e||"all"===e)&&function _arraysmatch(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,d))return"all"===e&&(this._pt=0),lb(this);for(i=this._op=this._op||[],"all"!==e&&(o(e)&&(u={},ba(e,function(t){return u[t]=1}),e=u),e=function _addaliasestovars(t,e){var r,i,n,a,s=t[0]?_(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(i in r=mt({},e),o)if(i in r)for(n=(a=o[i].split(",")).length;n--;)r[a[n]]=r[i];return r}(f,e)),l=f.length;l--;)if(~d.indexof(f[l]))for(u in n=p[l],"all"===e?(i[l]=e,s=n,a={}):(a=i[l]=i[l]||{},s=e),s)(h=n&&n[u])&&("kill"in h.d&&!0!==h.d.kill(u)||ra(this,h,"_pt"),delete n[u]),"all"!==a&&(a[u]=1);return this._initted&&!this._pt&&c&&lb(this),this},tween.to=function to(t,e,r){return new tween(t,e,r)},tween.from=function from(t,e){return na(1,arguments)},tween.delayedcall=function delayedcall(t,e,r,i){return new tween(e,0,{immediaterender:!1,lazy:!1,overwrite:!1,delay:t,oncomplete:e,onreversecomplete:e,oncompleteparams:r,onreversecompleteparams:r,callbackscope:i})},tween.fromto=function fromto(t,e,r){return na(2,arguments)},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 i.killtweensof(t,e,r)},tween}(qt);ja(jt.prototype,{_targets:[],_lazy:0,_startat:0,_op:0,_oninit:0}),ba("staggerto,staggerfrom,staggerfromto",function(r){jt[r]=function(){var t=new nt,e=wt.call(arguments,0);return e.splice("staggerfromto"===r?5:4,0,0),t[r].apply(t,e)}});function dc(t,e,r){return t.setattribute(e,r)}function lc(t,e,r,i){i.mset(t,e,i.m.call(i.tween,r,i.mt),i)}var gt=function _setterplain(t,e,r){return t[e]=r},$t=function _setterfunc(t,e,r){return t[e](r)},zt=function _setterfuncwithparam(t,e,r,i){return t[e](i.fp,r)},kt=function _getsetter(t,e){return p(t[e])?$t:r(t[e])&&t.setattribute?dc:gt},ht=function _renderplain(t,e){return e.set(e.t,e.p,math.round(1e6*(e.s+e.c*t))/1e6,e)},wt=function _renderboolean(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},te=function _rendercomplexstring(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},ee=function _renderproptweens(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},re=function _addpluginmodifier(t,e,r,i){for(var n,a=this._pt;a;)n=a._next,a.p===i&&a.modifier(t,e,r),a=n},ie=function _killproptweensof(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?ra(this,i,"_pt"):i.dep||(e=1),i=r;return!e},ne=function _sortproptweensbypriority(t){for(var e,r,i,n,a=t._pt;a;){for(e=a._next,r=i;r&&r.pr>a.pr;)r=r._next;(a._prev=r?r._prev:n)?a._prev._next=a:i=a,(a._next=r)?r._prev=a:n=a,a=e}t._pt=i},ae=(proptween.prototype.modifier=function modifier(t,e,r){this.mset=this.mset||this.set,this.set=lc,this.m=t,this.mt=r,this.tween=e},proptween);function proptween(t,e,r,i,n,a,s,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=a||ht,this.d=s||this,this.set=o||gt,this.pr=u||0,(this._next=t)&&(t._prev=this)}ba(_t+"parent,duration,ease,delay,overwrite,runbackwards,startat,yoyo,immediaterender,repeat,repeatdelay,data,paused,reversed,lazy,callbackscope,stringfilter,id,yoyoease,stagger,inherit,repeatrefresh,keyframes,autorevert,scrolltrigger",function(t){return ut[t]=1}),ot.tweenmax=ot.tweenlite=jt,ot.timelinelite=ot.timelinemax=nt,i=new nt({sortchildren:!1,defaults:l,autoremovechildren:!0,id:"root",smoothchildtiming:!0}),y.stringfilter=wb;var se={registerplugin:function registerplugin(){for(var t=arguments.length,e=new array(t),r=0;r