/*! * ScrollTrigger 3.8.0 * 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(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function J(e){return e}function K(e){return Fe(e)[0]||(Je(e)?console.warn("Element not found:",e):null)}function L(e){return Math.round(1e5*e)/1e5||0}function M(){return"undefined"!=typeof window}function N(){return Le||M()&&(Le=window.gsap)&&Le.registerPlugin&&Le}function O(e){return!!~i.indexOf(e)}function P(e,t){return~Ue.indexOf(e)&&Ue[Ue.indexOf(e)+1][t]}function Q(t,e){var r=e.s,n=e.sc,i=v.indexOf(t),o=n===pt.sc?1:2;return~i||(i=v.push(t)-1),v[i+o]||(v[i+o]=P(t,r)||(O(t)?n:function(e){return arguments.length?t[r]=e:t[r]}))}function R(e){return P(e,"getBoundingClientRect")||(O(e)?function(){return yt.width=Be.innerWidth,yt.height=Be.innerHeight,yt}:function(){return dt(e)})}function U(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return(r="scroll"+n)&&(o=P(e,r))?o()-R(e)()[i]:O(e)?(Ne[r]||ze[r])-(Be["inner"+n]||ze["client"+n]||Ne["client"+n]):e[r]-e["offset"+n]}function V(e,t){for(var r=0;r=e)return o[r];return o[r-1]}for(r=o.length,e+=1e-4;r--;)if(o[r]<=e)return o[r];return o[0]}:function(e,t){var r=i(e);return!t||Math.abs(r-e)<.001||r-e<0==t<0?r:i(t<0?e-n:e+n)}}function Fa(t,r,e,n){return e.split(",").forEach(function(e){return t(r,e,n)})}function Ga(e,t,r){return e.addEventListener(t,r,{passive:!0})}function Ha(e,t,r){return e.removeEventListener(t,r)}function La(e,t){if(Je(e)){var r=e.indexOf("="),n=~r?(e.charAt(r-1)+1)*parseFloat(e.substr(r+1)):0;~r&&(e.indexOf("%")>r&&(n*=t/100),e=e.substr(0,r-1)),e=n+(e in S?S[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e}function Ma(e,t,r,n,i,o,a,s){var l=i.startColor,c=i.endColor,u=i.fontSize,f=i.indent,p=i.fontWeight,d=Ie.createElement("div"),g=O(r)||"fixed"===P(r,"pinType"),h=-1!==e.indexOf("scroller"),v=g?Ne:r,m=-1!==e.indexOf("start"),b=m?l:c,x="border-color:"+b+";font-size:"+u+";color:"+b+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((h||s)&&g?"fixed;":"absolute;"),!h&&!s&&g||(x+=(n===pt?y:w)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=m,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=x,d.innerText=t||0===t?e+"-"+t:e,v.children[0]?v.insertBefore(d,v.children[0]):v.appendChild(d),d._offset=d["offset"+n.op.d2],k(d,0,n,m),d}function Qa(){return 20=U(Te,we),me)if(e||!n&&!l)tb(fe,G);else{var g=dt(fe,!0),h=u-M;tb(fe,Ne,g.top+(we===pt?h:0)+ut,g.left+(we===pt?0:h)+ut)}xt(n||l?F:D),W!==z&&p<1&&n||b(V+(1!==p||l?0:W))}}else b(V+W*p);!ve||m.tween||Xe||Qe||ee.restart(!0),ae&&(s||he&&p&&(p<1||!We))&&Fe(ae.targets).forEach(function(e){return e.classList[n||he?"add":"remove"](ae.className)}),!oe||Se||e||oe(Pe),a&&!Xe?(Se&&(c&&("complete"===o?k.pause().totalProgress(1):"reset"===o?k.restart(!0).pause():"restart"===o?k.restart(!0):k[o]()),oe&&oe(Pe)),!s&&We||(se&&s&&ba(Pe,se),_e[i]&&ba(Pe,_e[i]),he&&(1===p?Pe.kill(!1,1):_e[i]=0),s||_e[i=1===p?1:3]&&ba(Pe,_e[i])),xe&&!n&&Math.abs(Pe.getVelocity())>(Y(xe)?xe:2500)&&(aa(Pe.callbackAnimation),q?q.progress(1):aa(k,!p,1))):Se&&oe&&!Xe&&oe(Pe)}if(w){var v=be?u/be.duration()*(be._caScrollDist||0):u;y(v+(B._isFlipped?1:0)),w(v)}ie&&ie(-u/be.duration()*(be._caScrollDist||0))}},Pe.enable=function(e,t){Pe.enabled||(Pe.enabled=!0,Ga(Te,"resize",Sa),Ga(Te,"scroll",Ra),u&&Ga(ScrollTrigger,"refreshInit",u),!1!==e&&(Pe.progress=te=0,_=C=g=Re()),!1!==t&&Pe.refresh())},Pe.getTween=function(e){return e&&m?m.tween:q},Pe.disable=function(e,t){if(Pe.enabled&&(!1!==e&&Pe.revert(),Pe.enabled=Pe.isActive=!1,t||q&&q.pause(),re=0,n&&(n.uncache=1),u&&Ha(ScrollTrigger,"refreshInit",u),ee&&(ee.pause(),m.tween&&m.tween.kill()&&(m.tween=0)),!Oe)){for(var r=vt.length;r--;)if(vt[r].scroller===Te&&vt[r]!==Pe)return;Ha(Te,"resize",Sa),Ha(Te,"scroll",Ra)}},Pe.kill=function(e,t){Pe.disable(e,t),q&&q.kill(),o&&delete mt[o];var r=vt.indexOf(Pe);vt.splice(r,1),r===Ye&&0