various-ui
Version:
This is a test version of the Vue 3 component library
9 lines • 350 kB
JavaScript
(function(v,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(v=typeof globalThis!="undefined"?globalThis:v||self,u(v.VariousUI={},v.Vue))})(this,function(v,u){"use strict";const On=t=>{const e=t.getBoundingClientRect();return{rootY:e.top+window.scrollY,rootX:e.left+window.scrollX,visibleY:e.top,visibleX:e.left,width:e.width,height:e.height}},ho=(t,e,n)=>t<n.min?n.min:t+e>n.max?n.max-e:t;function Se(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
* GSAP 3.12.5
* https://gsap.com
*
* @license Copyright 2008-2024, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license or for
* Club GSAP members, the agreement issued with that membership.
* @author: Jack Doyle, jack@greensock.com
*/var me={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},hu={duration:.5,overwrite:!1,delay:0},kt,ee,j,Fe=1e8,z=1/Fe,wt=Math.PI*2,Co=wt/4,po=0,Un=Math.sqrt,Ao=Math.cos,Do=Math.sin,K=function(e){return typeof e=="string"},W=function(e){return typeof e=="function"},Te=function(e){return typeof e=="number"},xt=function(e){return typeof e=="undefined"},ge=function(e){return typeof e=="object"},ae=function(e){return e!==!1},Nt=function(){return typeof window!="undefined"},Ju=function(e){return W(e)||K(e)},zn=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ue=Array.isArray,St=/(?:-?\.?\d|\.)+/gi,In=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Cu=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Tt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Rn=/[+-]=-?[.\d]+/,jn=/[^,'"\[\]\s]+/gi,_o=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,ye,Vt,$t,ce={},et={},Ln,Hn=function(e){return(et=Qe(e,ce))&&oe},Pt=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},Su=function(e,n){return!n&&console.warn(e)},Yn=function(e,n){return e&&(ce[e]=n)&&et&&(et[e]=n)||ce},Tu=function(){return 0},go={suppressEvents:!0,isStart:!0,kill:!1},ut={suppressEvents:!0,kill:!1},yo={suppressEvents:!0},Ot={},Ue=[],Mt={},Wn,de={},Ut={},Xn=30,tt=[],zt="",It=function(e){var n=e[0],a,r;if(ge(n)||W(n)||(e=[e]),!(a=(n._gsap||{}).harness)){for(r=tt.length;r--&&!tt[r].targetTest(n););a=tt[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new _a(e[r],a)))||e.splice(r,1);return e},Ze=function(e){return e._gsap||It(Ce(e))[0]._gsap},qn=function(e,n,a){return(a=e[n])&&W(a)?e[n]():xt(a)&&e.getAttribute&&e.getAttribute(n)||a},re=function(e,n){return(e=e.split(",")).forEach(n)||e},X=function(e){return Math.round(e*1e5)/1e5||0},Z=function(e){return Math.round(e*1e7)/1e7||0},pu=function(e,n){var a=n.charAt(0),r=parseFloat(n.substr(2));return e=parseFloat(e),a==="+"?e+r:a==="-"?e-r:a==="*"?e*r:e/r},bo=function(e,n){for(var a=n.length,r=0;e.indexOf(n[r])<0&&++r<a;);return r<a},nt=function(){var e=Ue.length,n=Ue.slice(0),a,r;for(Mt={},Ue.length=0,a=0;a<e;a++)r=n[a],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},Gn=function(e,n,a,r){Ue.length&&!ee&&nt(),e.render(n,a,r||ee&&n<0&&(e._initted||e._startAt)),Ue.length&&!ee&&nt()},Kn=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(jn).length<2?n:K(e)?e.trim():e},Zn=function(e){return e},Be=function(e,n){for(var a in n)a in e||(e[a]=n[a]);return e},vo=function(e){return function(n,a){for(var r in a)r in n||r==="duration"&&e||r==="ease"||(n[r]=a[r])}},Qe=function(e,n){for(var a in n)e[a]=n[a];return e},Qn=function t(e,n){for(var a in n)a!=="__proto__"&&a!=="constructor"&&a!=="prototype"&&(e[a]=ge(n[a])?t(e[a]||(e[a]={}),n[a]):n[a]);return e},at=function(e,n){var a={},r;for(r in e)r in n||(a[r]=e[r]);return a},Vu=function(e){var n=e.parent||H,a=e.keyframes?vo(ue(e.keyframes)):Be;if(ae(e.inherit))for(;n;)a(e,n.vars.defaults),n=n.parent||n._dp;return e},ko=function(e,n){for(var a=e.length,r=a===n.length;r&&a--&&e[a]===n[a];);return a<0},Jn=function(e,n,a,r,i){a===void 0&&(a="_first"),r===void 0&&(r="_last");var o=e[r],s;if(i)for(s=n[i];o&&o[i]>s;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[a],e[a]=n),n._next?n._next._prev=n:e[r]=n,n._prev=o,n.parent=n._dp=e,n},rt=function(e,n,a,r){a===void 0&&(a="_first"),r===void 0&&(r="_last");var i=n._prev,o=n._next;i?i._next=o:e[a]===n&&(e[a]=o),o?o._prev=i:e[r]===n&&(e[r]=i),n._next=n._prev=n.parent=null},ze=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Je=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var a=e;a;)a._dirty=1,a=a.parent;return e},wo=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Rt=function(e,n,a,r){return e._startAt&&(ee?e._startAt.revert(ut):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,r))},xo=function t(e){return!e||e._ts&&t(e.parent)},ea=function(e){return e._repeat?Au(e._tTime,e=e.duration()+e._rDelay)*e:0},Au=function(e,n){var a=Math.floor(e/=n);return e&&a===e?a-1:a},it=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},ot=function(e){return e._end=Z(e._start+(e._tDur/Math.abs(e._ts||e._rts||z)||0))},st=function(e,n){var a=e._dp;return a&&a.smoothChildTiming&&e._ts&&(e._start=Z(a._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),ot(e),a._dirty||Je(a,e)),e},ua=function(e,n){var a;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(a=it(e.rawTime(),n),(!n._dur||Pu(0,n.totalDuration(),a)-n._tTime>z)&&n.render(a,!0)),Je(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(a=e;a._dp;)a.rawTime()>=0&&a.totalTime(a._tTime),a=a._dp;e._zTime=-z}},be=function(e,n,a,r){return n.parent&&ze(n),n._start=Z((Te(a)?a:a||e!==H?he(e,a,n):e._time)+n._delay),n._end=Z(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Jn(e,n,"_first","_last",e._sort?"_start":0),jt(n)||(e._recent=n),r||ua(e,n),e._ts<0&&st(e,e._tTime),e},ta=function(e,n){return(ce.ScrollTrigger||Pt("scrollTrigger",n))&&ce.ScrollTrigger.create(n,e)},na=function(e,n,a,r,i){if(Zt(e,n,i),!e._initted)return 1;if(!a&&e._pt&&!ee&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Wn!==fe.frame)return Ue.push(e),e._lazy=[i,r],1},No=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},jt=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},So=function(e,n,a,r){var i=e.ratio,o=n<0||!n&&(!e._start&&No(e)&&!(!e._initted&&jt(e))||(e._ts<0||e._dp._ts<0)&&!jt(e))?0:1,s=e._rDelay,l=0,m,c,d;if(s&&e._repeat&&(l=Pu(0,e._tDur,n),c=Au(l,s),e._yoyo&&c&1&&(o=1-o),c!==Au(e._tTime,s)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||ee||r||e._zTime===z||!n&&e._zTime){if(!e._initted&&na(e,n,r,a,l))return;for(d=e._zTime,e._zTime=n||(a?z:0),a||(a=n&&!d),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,m=e._pt;m;)m.r(o,m.d),m=m._next;n<0&&Rt(e,n,a,!0),e._onUpdate&&!a&&Ee(e,"onUpdate"),l&&e._repeat&&!a&&e.parent&&Ee(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&ze(e,1),!a&&!ee&&(Ee(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},To=function(e,n,a){var r;if(a>n)for(r=e._first;r&&r._start<=a;){if(r.data==="isPause"&&r._start>n)return r;r=r._next}else for(r=e._last;r&&r._start>=a;){if(r.data==="isPause"&&r._start<n)return r;r=r._prev}},Du=function(e,n,a,r){var i=e._repeat,o=Z(n)||0,s=e._tTime/e._tDur;return s&&!r&&(e._time*=o/e._dur),e._dur=o,e._tDur=i?i<0?1e10:Z(o*(i+1)+e._rDelay*i):o,s>0&&!r&&st(e,e._tTime=e._tDur*s),e.parent&&ot(e),a||Je(e.parent,e),e},aa=function(e){return e instanceof ne?Je(e):Du(e,e._dur)},Vo={_start:0,endTime:Tu,totalDuration:Tu},he=function t(e,n,a){var r=e.labels,i=e._recent||Vo,o=e.duration()>=Fe?i.endTime(!1):e._dur,s,l,m;return K(n)&&(isNaN(n)||n in r)?(l=n.charAt(0),m=n.substr(-1)==="%",s=n.indexOf("="),l==="<"||l===">"?(s>=0&&(n=n.replace(/=/,"")),(l==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(n.substr(1))||0)*(m?(s<0?i:a).totalDuration()/100:1)):s<0?(n in r||(r[n]=o),r[n]):(l=parseFloat(n.charAt(s-1)+n.substr(s+1)),m&&a&&(l=l/100*(ue(a)?a[0]:a).totalDuration()),s>1?t(e,n.substr(0,s-1),a)+l:o+l)):n==null?o:+n},$u=function(e,n,a){var r=Te(n[1]),i=(r?2:1)+(e<2?0:1),o=n[i],s,l;if(r&&(o.duration=n[1]),o.parent=a,e){for(s=o,l=a;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=ae(l.vars.inherit)&&l.parent;o.immediateRender=ae(s.immediateRender),e<2?o.runBackwards=1:o.startAt=n[i-1]}return new q(n[0],o,n[i+1])},Ie=function(e,n){return e||e===0?n(e):n},Pu=function(e,n,a){return a<e?e:a>n?n:a},te=function(e,n){return!K(e)||!(n=_o.exec(e))?"":n[1]},$o=function(e,n,a){return Ie(a,function(r){return Pu(e,n,r)})},Lt=[].slice,ra=function(e,n){return e&&ge(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&ge(e[0]))&&!e.nodeType&&e!==ye},Po=function(e,n,a){return a===void 0&&(a=[]),e.forEach(function(r){var i;return K(r)&&!n||ra(r,1)?(i=a).push.apply(i,Ce(r)):a.push(r)})||a},Ce=function(e,n,a){return j&&!n&&j.selector?j.selector(e):K(e)&&!a&&(Vt||!gu())?Lt.call((n||$t).querySelectorAll(e),0):ue(e)?Po(e,a):ra(e)?Lt.call(e,0):e?[e]:[]},Ht=function(e){return e=Ce(e)[0]||Su("Invalid scope")||{},function(n){var a=e.current||e.nativeElement||e;return Ce(n,a.querySelectorAll?a:a===e?Su("Invalid scope")||$t.createElement("div"):e)}},ia=function(e){return e.sort(function(){return .5-Math.random()})},oa=function(e){if(W(e))return e;var n=ge(e)?e:{each:e},a=eu(n.ease),r=n.from||0,i=parseFloat(n.base)||0,o={},s=r>0&&r<1,l=isNaN(r)||s,m=n.axis,c=r,d=r;return K(r)?c=d={center:.5,edges:.5,end:1}[r]||0:!s&&l&&(c=r[0],d=r[1]),function(E,B,F){var f=(F||n).length,h=o[f],C,p,A,g,D,b,k,_,y;if(!h){if(y=n.grid==="auto"?0:(n.grid||[1,Fe])[1],!y){for(k=-Fe;k<(k=F[y++].getBoundingClientRect().left)&&y<f;);y<f&&y--}for(h=o[f]=[],C=l?Math.min(y,f)*c-.5:r%y,p=y===Fe?0:l?f*d/y-.5:r/y|0,k=0,_=Fe,b=0;b<f;b++)A=b%y-C,g=p-(b/y|0),h[b]=D=m?Math.abs(m==="y"?g:A):Un(A*A+g*g),D>k&&(k=D),D<_&&(_=D);r==="random"&&ia(h),h.max=k-_,h.min=_,h.v=f=(parseFloat(n.amount)||parseFloat(n.each)*(y>f?f-1:m?m==="y"?f/y:y:Math.max(y,f/y))||0)*(r==="edges"?-1:1),h.b=f<0?i-f:i,h.u=te(n.amount||n.each)||0,a=a&&f<0?pa(a):a}return f=(h[E]-h.min)/h.max||0,Z(h.b+(a?a(f):f)*h.v)+h.u}},Yt=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(a){var r=Z(Math.round(parseFloat(a)/e)*e*n);return(r-r%1)/n+(Te(a)?0:te(a))}},sa=function(e,n){var a=ue(e),r,i;return!a&&ge(e)&&(r=a=e.radius||Fe,e.values?(e=Ce(e.values),(i=!Te(e[0]))&&(r*=r)):e=Yt(e.increment)),Ie(n,a?W(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var s=parseFloat(i?o.x:o),l=parseFloat(i?o.y:0),m=Fe,c=0,d=e.length,E,B;d--;)i?(E=e[d].x-s,B=e[d].y-l,E=E*E+B*B):E=Math.abs(e[d]-s),E<m&&(m=E,c=d);return c=!r||m<=r?e[c]:o,i||c===o||Te(o)?c:c+te(o)}:Yt(e))},la=function(e,n,a,r){return Ie(ue(e)?!n:a===!0?!!(a=0):!r,function(){return ue(e)?e[~~(Math.random()*e.length)]:(a=a||1e-5)&&(r=a<1?Math.pow(10,(a+"").length-2):1)&&Math.floor(Math.round((e-a/2+Math.random()*(n-e+a*.99))/a)*a*r)/r})},Oo=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return function(r){return n.reduce(function(i,o){return o(i)},r)}},Mo=function(e,n){return function(a){return e(parseFloat(a))+(n||te(a))}},Uo=function(e,n,a){return ca(e,n,0,1,a)},ma=function(e,n,a){return Ie(a,function(r){return e[~~n(r)]})},zo=function t(e,n,a){var r=n-e;return ue(e)?ma(e,t(0,e.length),n):Ie(a,function(i){return(r+(i-e)%r)%r+e})},Io=function t(e,n,a){var r=n-e,i=r*2;return ue(e)?ma(e,t(0,e.length-1),n):Ie(a,function(o){return o=(i+(o-e)%i)%i||0,e+(o>r?i-o:o)})},Ou=function(e){for(var n=0,a="",r,i,o,s;~(r=e.indexOf("random(",n));)o=e.indexOf(")",r),s=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(s?jn:St),a+=e.substr(n,r-n)+la(s?i:+i[0],s?0:+i[1],+i[2]||1e-5),n=o+1;return a+e.substr(n,e.length-n)},ca=function(e,n,a,r,i){var o=n-e,s=r-a;return Ie(i,function(l){return a+((l-e)/o*s||0)})},Ro=function t(e,n,a,r){var i=isNaN(e+n)?0:function(B){return(1-B)*e+B*n};if(!i){var o=K(e),s={},l,m,c,d,E;if(a===!0&&(r=1)&&(a=null),o)e={p:e},n={p:n};else if(ue(e)&&!ue(n)){for(c=[],d=e.length,E=d-2,m=1;m<d;m++)c.push(t(e[m-1],e[m]));d--,i=function(F){F*=d;var f=Math.min(E,~~F);return c[f](F-f)},a=n}else r||(e=Qe(ue(e)?[]:{},e));if(!c){for(l in n)Gt.call(s,e,l,"get",n[l]);i=function(F){return en(F,s)||(o?e.p:e)}}}return Ie(a,i)},da=function(e,n,a){var r=e.labels,i=Fe,o,s,l;for(o in r)s=r[o]-n,s<0==!!a&&s&&i>(s=Math.abs(s))&&(l=o,i=s);return l},Ee=function(e,n,a){var r=e.vars,i=r[n],o=j,s=e._ctx,l,m,c;if(i)return l=r[n+"Params"],m=r.callbackScope||e,a&&Ue.length&&nt(),s&&(j=s),c=l?i.apply(m,l):i.call(m),j=o,c},Mu=function(e){return ze(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ee),e.progress()<1&&Ee(e,"onInterrupt"),e},_u,Ea=[],fa=function(e){if(e)if(e=!e.name&&e.default||e,Nt()||e.headless){var n=e.name,a=W(e),r=n&&!a&&e.init?function(){this._props=[]}:e,i={init:Tu,render:en,add:Gt,kill:n5,modifier:t5,rawVars:0},o={targetTest:0,get:0,getSetter:Jt,aliases:{},register:0};if(gu(),e!==r){if(de[n])return;Be(r,Be(at(e,i),o)),Qe(r.prototype,Qe(i,at(e,o))),de[r.prop=n]=r,e.targetTest&&(tt.push(r),Ot[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Yn(n,r),e.register&&e.register(oe,r,ie)}else Ea.push(e)},U=255,Uu={aqua:[0,U,U],lime:[0,U,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,U],navy:[0,0,128],white:[U,U,U],olive:[128,128,0],yellow:[U,U,0],orange:[U,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[U,0,0],pink:[U,192,203],cyan:[0,U,U],transparent:[U,U,U,0]},Wt=function(e,n,a){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(a-n)*e*6:e<.5?a:e*3<2?n+(a-n)*(2/3-e)*6:n)*U+.5|0},Fa=function(e,n,a){var r=e?Te(e)?[e>>16,e>>8&U,e&U]:0:Uu.black,i,o,s,l,m,c,d,E,B,F;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Uu[e])r=Uu[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),s=e.charAt(3),e="#"+i+i+o+o+s+s+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&U,r&U,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&U,e&U]}else if(e.substr(0,3)==="hsl"){if(r=F=e.match(St),!n)l=+r[0]%360/360,m=+r[1]/100,c=+r[2]/100,o=c<=.5?c*(m+1):c+m-c*m,i=c*2-o,r.length>3&&(r[3]*=1),r[0]=Wt(l+1/3,i,o),r[1]=Wt(l,i,o),r[2]=Wt(l-1/3,i,o);else if(~e.indexOf("="))return r=e.match(In),a&&r.length<4&&(r[3]=1),r}else r=e.match(St)||Uu.transparent;r=r.map(Number)}return n&&!F&&(i=r[0]/U,o=r[1]/U,s=r[2]/U,d=Math.max(i,o,s),E=Math.min(i,o,s),c=(d+E)/2,d===E?l=m=0:(B=d-E,m=c>.5?B/(2-d-E):B/(d+E),l=d===i?(o-s)/B+(o<s?6:0):d===o?(s-i)/B+2:(i-o)/B+4,l*=60),r[0]=~~(l+.5),r[1]=~~(m*100+.5),r[2]=~~(c*100+.5)),a&&r.length<4&&(r[3]=1),r},Ba=function(e){var n=[],a=[],r=-1;return e.split(Re).forEach(function(i){var o=i.match(Cu)||[];n.push.apply(n,o),a.push(r+=o.length+1)}),n.c=a,n},ha=function(e,n,a){var r="",i=(e+r).match(Re),o=n?"hsla(":"rgba(",s=0,l,m,c,d;if(!i)return e;if(i=i.map(function(E){return(E=Fa(E,n,1))&&o+(n?E[0]+","+E[1]+"%,"+E[2]+"%,"+E[3]:E.join(","))+")"}),a&&(c=Ba(e),l=a.c,l.join(r)!==c.c.join(r)))for(m=e.replace(Re,"1").split(Cu),d=m.length-1;s<d;s++)r+=m[s]+(~l.indexOf(s)?i.shift()||o+"0,0,0,0)":(c.length?c:i.length?i:a).shift());if(!m)for(m=e.split(Re),d=m.length-1;s<d;s++)r+=m[s]+i[s];return r+m[d]},Re=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Uu)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),jo=/hsl[a]?\(/,Ca=function(e){var n=e.join(" "),a;if(Re.lastIndex=0,Re.test(n))return a=jo.test(n),e[1]=ha(e[1],a),e[0]=ha(e[0],a,Ba(e[1])),!0},zu,fe=function(){var t=Date.now,e=500,n=33,a=t(),r=a,i=1e3/240,o=i,s=[],l,m,c,d,E,B,F=function f(h){var C=t()-r,p=h===!0,A,g,D,b;if((C>e||C<0)&&(a+=C-n),r+=C,D=r-a,A=D-o,(A>0||p)&&(b=++d.frame,E=D-d.time*1e3,d.time=D=D/1e3,o+=A+(A>=i?4:i-A),g=1),p||(l=m(f)),g)for(B=0;B<s.length;B++)s[B](D,E,b,h)};return d={time:0,frame:0,tick:function(){F(!0)},deltaRatio:function(h){return E/(1e3/(h||60))},wake:function(){Ln&&(!Vt&&Nt()&&(ye=Vt=window,$t=ye.document||{},ce.gsap=oe,(ye.gsapVersions||(ye.gsapVersions=[])).push(oe.version),Hn(et||ye.GreenSockGlobals||!ye.gsap&&ye||{}),Ea.forEach(fa)),c=typeof requestAnimationFrame!="undefined"&&requestAnimationFrame,l&&d.sleep(),m=c||function(h){return setTimeout(h,o-d.time*1e3+1|0)},zu=1,F(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),zu=0,m=Tu},lagSmoothing:function(h,C){e=h||1/0,n=Math.min(C||33,e)},fps:function(h){i=1e3/(h||240),o=d.time*1e3+i},add:function(h,C,p){var A=C?function(g,D,b,k){h(g,D,b,k),d.remove(A)}:h;return d.remove(h),s[p?"unshift":"push"](A),gu(),A},remove:function(h,C){~(C=s.indexOf(h))&&s.splice(C,1)&&B>=C&&B--},_listeners:s},d}(),gu=function(){return!zu&&fe.wake()},V={},Lo=/^[\d.\-M][\d.\-,\s]/,Ho=/["']/g,Yo=function(e){for(var n={},a=e.substr(1,e.length-3).split(":"),r=a[0],i=1,o=a.length,s,l,m;i<o;i++)l=a[i],s=i!==o-1?l.lastIndexOf(","):l.length,m=l.substr(0,s),n[r]=isNaN(m)?m.replace(Ho,"").trim():+m,r=l.substr(s+1).trim();return n},Wo=function(e){var n=e.indexOf("(")+1,a=e.indexOf(")"),r=e.indexOf("(",n);return e.substring(n,~r&&r<a?e.indexOf(")",a+1):a)},Xo=function(e){var n=(e+"").split("("),a=V[n[0]];return a&&n.length>1&&a.config?a.config.apply(null,~e.indexOf("{")?[Yo(n[1])]:Wo(e).split(",").map(Kn)):V._CE&&Lo.test(e)?V._CE("",e):a},pa=function(e){return function(n){return 1-e(1-n)}},Aa=function t(e,n){for(var a=e._first,r;a;)a instanceof ne?t(a,n):a.vars.yoyoEase&&(!a._yoyo||!a._repeat)&&a._yoyo!==n&&(a.timeline?t(a.timeline,n):(r=a._ease,a._ease=a._yEase,a._yEase=r,a._yoyo=n)),a=a._next},eu=function(e,n){return e&&(W(e)?e:V[e]||Xo(e))||n},uu=function(e,n,a,r){a===void 0&&(a=function(l){return 1-n(1-l)}),r===void 0&&(r=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var i={easeIn:n,easeOut:a,easeInOut:r},o;return re(e,function(s){V[s]=ce[s]=i,V[o=s.toLowerCase()]=a;for(var l in i)V[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=V[s+"."+l]=i[l]}),i},Da=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},Xt=function t(e,n,a){var r=n>=1?n:1,i=(a||(e?.3:.45))/(n<1?n:1),o=i/wt*(Math.asin(1/r)||0),s=function(c){return c===1?1:r*Math.pow(2,-10*c)*Do((c-o)*i)+1},l=e==="out"?s:e==="in"?function(m){return 1-s(1-m)}:Da(s);return i=wt/i,l.config=function(m,c){return t(e,m,c)},l},qt=function t(e,n){n===void 0&&(n=1.70158);var a=function(o){return o?--o*o*((n+1)*o+n)+1:0},r=e==="out"?a:e==="in"?function(i){return 1-a(1-i)}:Da(a);return r.config=function(i){return t(e,i)},r};re("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;uu(t+",Power"+(n-1),e?function(a){return Math.pow(a,n)}:function(a){return a},function(a){return 1-Math.pow(1-a,n)},function(a){return a<.5?Math.pow(a*2,n)/2:1-Math.pow((1-a)*2,n)/2})}),V.Linear.easeNone=V.none=V.Linear.easeIn,uu("Elastic",Xt("in"),Xt("out"),Xt()),function(t,e){var n=1/e,a=2*n,r=2.5*n,i=function(s){return s<n?t*s*s:s<a?t*Math.pow(s-1.5/e,2)+.75:s<r?t*(s-=2.25/e)*s+.9375:t*Math.pow(s-2.625/e,2)+.984375};uu("Bounce",function(o){return 1-i(1-o)},i)}(7.5625,2.75),uu("Expo",function(t){return t?Math.pow(2,10*(t-1)):0}),uu("Circ",function(t){return-(Un(1-t*t)-1)}),uu("Sine",function(t){return t===1?1:-Ao(t*Co)+1}),uu("Back",qt("in"),qt("out"),qt()),V.SteppedEase=V.steps=ce.SteppedEase={config:function(e,n){e===void 0&&(e=1);var a=1/e,r=e+(n?0:1),i=n?1:0,o=1-z;return function(s){return((r*Pu(0,o,s)|0)+i)*a}}},hu.ease=V["quad.out"],re("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return zt+=t+","+t+"Params,"});var _a=function(e,n){this.id=po++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:qn,this.set=n?n.getSetter:Jt},Iu=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Du(this,+n.duration,1,1),this.data=n.data,j&&(this._ctx=j,j.data.push(this)),zu||fe.wake()}var e=t.prototype;return e.delay=function(a){return a||a===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?this.totalDuration(this._repeat>0?a+(a+this._rDelay)*this._repeat:a):this.totalDuration()&&this._dur},e.totalDuration=function(a){return arguments.length?(this._dirty=0,Du(this,this._repeat<0?a:(a-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(a,r){if(gu(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(st(this,a),!i._dp||i.parent||ua(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&a<this._tDur||this._ts<0&&a>0||!this._tDur&&!a)&&be(this._dp,this,this._start-this._delay)}return(this._tTime!==a||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===z||!a&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=a),Gn(this,a,r)),this},e.time=function(a,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),a+ea(this))%(this._dur+this._rDelay)||(a?this._dur:0),r):this._time},e.totalProgress=function(a,r){return arguments.length?this.totalTime(this.totalDuration()*a,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(a,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-a:a)+ea(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(a,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(a-1)*i,r):this._repeat?Au(this._tTime,i)+1:1},e.timeScale=function(a,r){if(!arguments.length)return this._rts===-z?0:this._rts;if(this._rts===a)return this;var i=this.parent&&this._ts?it(this.parent._time,this):this._tTime;return this._rts=+a||0,this._ts=this._ps||a===-z?0:this._rts,this.totalTime(Pu(-Math.abs(this._delay),this._tDur,i),r!==!1),ot(this),wo(this)},e.paused=function(a){return arguments.length?(this._ps!==a&&(this._ps=a,a?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(gu(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==z&&(this._tTime-=z)))),this):this._ps},e.startTime=function(a){if(arguments.length){this._start=a;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&be(r,this,a-this._delay),this}return this._start},e.endTime=function(a){return this._start+(ae(a)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(a){var r=this.parent||this._dp;return r?a&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?it(r.rawTime(a),this):this._tTime:this._tTime},e.revert=function(a){a===void 0&&(a=yo);var r=ee;return ee=a,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(a),this.totalTime(-.01,a.suppressEvents)),this.data!=="nested"&&a.kill!==!1&&this.kill(),ee=r,this},e.globalTime=function(a){for(var r=this,i=arguments.length?a:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(a):i},e.repeat=function(a){return arguments.length?(this._repeat=a===1/0?-2:a,aa(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(a){if(arguments.length){var r=this._time;return this._rDelay=a,aa(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e.seek=function(a,r){return this.totalTime(he(this,a),ae(r))},e.restart=function(a,r){return this.play().totalTime(a?-this._delay:0,ae(r))},e.play=function(a,r){return a!=null&&this.seek(a,r),this.reversed(!1).paused(!1)},e.reverse=function(a,r){return a!=null&&this.seek(a||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(a,r){return a!=null&&this.seek(a,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(a){return arguments.length?(!!a!==this.reversed()&&this.timeScale(-this._rts||(a?-z:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-z,this},e.isActive=function(){var a=this.parent||this._dp,r=this._start,i;return!!(!a||this._ts&&this._initted&&a.isActive()&&(i=a.rawTime(!0))>=r&&i<this.endTime(!0)-z)},e.eventCallback=function(a,r,i){var o=this.vars;return arguments.length>1?(r?(o[a]=r,i&&(o[a+"Params"]=i),a==="onUpdate"&&(this._onUpdate=r)):delete o[a],this):o[a]},e.then=function(a){var r=this;return new Promise(function(i){var o=W(a)?a:Zn,s=function(){var m=r.then;r.then=null,W(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=m),i(o),r.then=m};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?s():r._prom=s})},e.kill=function(){Mu(this)},t}();Be(Iu.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-z,_prom:0,_ps:!1,_rts:1});var ne=function(t){Mn(e,t);function e(a,r){var i;return a===void 0&&(a={}),i=t.call(this,a)||this,i.labels={},i.smoothChildTiming=!!a.smoothChildTiming,i.autoRemoveChildren=!!a.autoRemoveChildren,i._sort=ae(a.sortChildren),H&&be(a.parent||H,Se(i),r),a.reversed&&i.reverse(),a.paused&&i.paused(!0),a.scrollTrigger&&ta(Se(i),a.scrollTrigger),i}var n=e.prototype;return n.to=function(r,i,o){return $u(0,arguments,this),this},n.from=function(r,i,o){return $u(1,arguments,this),this},n.fromTo=function(r,i,o,s){return $u(2,arguments,this),this},n.set=function(r,i,o){return i.duration=0,i.parent=this,Vu(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new q(r,i,he(this,o),1),this},n.call=function(r,i,o){return be(this,q.delayedCall(0,r,i),o)},n.staggerTo=function(r,i,o,s,l,m,c){return o.duration=i,o.stagger=o.stagger||s,o.onComplete=m,o.onCompleteParams=c,o.parent=this,new q(r,o,he(this,l)),this},n.staggerFrom=function(r,i,o,s,l,m,c){return o.runBackwards=1,Vu(o).immediateRender=ae(o.immediateRender),this.staggerTo(r,i,o,s,l,m,c)},n.staggerFromTo=function(r,i,o,s,l,m,c,d){return s.startAt=o,Vu(s).immediateRender=ae(s.immediateRender),this.staggerTo(r,i,s,l,m,c,d)},n.render=function(r,i,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,m=this._dur,c=r<=0?0:Z(r),d=this._zTime<0!=r<0&&(this._initted||!m),E,B,F,f,h,C,p,A,g,D,b,k;if(this!==H&&c>l&&r>=0&&(c=l),c!==this._tTime||o||d){if(s!==this._time&&m&&(c+=this._time-s,r+=this._time-s),E=c,g=this._start,A=this._ts,C=!A,d&&(m||(s=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(b=this._yoyo,h=m+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(h*100+r,i,o);if(E=Z(c%h),c===l?(f=this._repeat,E=m):(f=~~(c/h),f&&f===c/h&&(E=m,f--),E>m&&(E=m)),D=Au(this._tTime,h),!s&&this._tTime&&D!==f&&this._tTime-D*h-this._dur<=0&&(D=f),b&&f&1&&(E=m-E,k=1),f!==D&&!this._lock){var _=b&&D&1,y=_===(b&&f&1);if(f<D&&(_=!_),s=_?0:c%m?m:c,this._lock=1,this.render(s||(k?0:Z(f*h)),i,!m)._lock=0,this._tTime=c,!i&&this.parent&&Ee(this,"onRepeat"),this.vars.repeatRefresh&&!k&&(this.invalidate()._lock=1),s&&s!==this._time||C!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,l=this._tDur,y&&(this._lock=2,s=_?m:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!k&&this.invalidate()),this._lock=0,!this._ts&&!C)return this;Aa(this,k)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(p=To(this,Z(s),Z(E)),p&&(c-=E-(E=p._start))),this._tTime=c,this._time=E,this._act=!A,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=r,s=0),!s&&E&&!i&&!f&&(Ee(this,"onStart"),this._tTime!==c))return this;if(E>=s&&r>=0)for(B=this._first;B;){if(F=B._next,(B._act||E>=B._start)&&B._ts&&p!==B){if(B.parent!==this)return this.render(r,i,o);if(B.render(B._ts>0?(E-B._start)*B._ts:(B._dirty?B.totalDuration():B._tDur)+(E-B._start)*B._ts,i,o),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=-z);break}}B=F}else{B=this._last;for(var w=r<0?r:E;B;){if(F=B._prev,(B._act||w<=B._end)&&B._ts&&p!==B){if(B.parent!==this)return this.render(r,i,o);if(B.render(B._ts>0?(w-B._start)*B._ts:(B._dirty?B.totalDuration():B._tDur)+(w-B._start)*B._ts,i,o||ee&&(B._initted||B._startAt)),E!==this._time||!this._ts&&!C){p=0,F&&(c+=this._zTime=w?-z:z);break}}B=F}}if(p&&!i&&(this.pause(),p.render(E>=s?0:-z)._zTime=E>=s?1:-1,this._ts))return this._start=g,ot(this),this.render(r,i,o);this._onUpdate&&!i&&Ee(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(g===this._start||Math.abs(A)!==Math.abs(this._ts))&&(this._lock||((r||!m)&&(c===l&&this._ts>0||!c&&this._ts<0)&&ze(this,1),!i&&!(r<0&&!s)&&(c||s||!l)&&(Ee(this,c===l&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(r,i){var o=this;if(Te(i)||(i=he(this,i,r)),!(r instanceof Iu)){if(ue(r))return r.forEach(function(s){return o.add(s,i)}),this;if(K(r))return this.addLabel(r,i);if(W(r))r=q.delayedCall(0,r);else return this}return this!==r?be(this,r,i):this},n.getChildren=function(r,i,o,s){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=-Fe);for(var l=[],m=this._first;m;)m._start>=s&&(m instanceof q?i&&l.push(m):(o&&l.push(m),r&&l.push.apply(l,m.getChildren(!0,i,o)))),m=m._next;return l},n.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},n.remove=function(r){return K(r)?this.removeLabel(r):W(r)?this.killTweensOf(r):(rt(this,r),r===this._recent&&(this._recent=this._last),Je(this))},n.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Z(fe.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),t.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},n.addLabel=function(r,i){return this.labels[r]=he(this,i),this},n.removeLabel=function(r){return delete this.labels[r],this},n.addPause=function(r,i,o){var s=q.delayedCall(0,i||Tu,o);return s.data="isPause",this._hasPause=1,be(this,s,he(this,r))},n.removePause=function(r){var i=this._first;for(r=he(this,r);i;)i._start===r&&i.data==="isPause"&&ze(i),i=i._next},n.killTweensOf=function(r,i,o){for(var s=this.getTweensOf(r,o),l=s.length;l--;)je!==s[l]&&s[l].kill(r,i);return this},n.getTweensOf=function(r,i){for(var o=[],s=Ce(r),l=this._first,m=Te(i),c;l;)l instanceof q?bo(l._targets,s)&&(m?(!je||l._initted&&l._ts)&&l.globalTime(0)<=i&&l.globalTime(l.totalDuration())>i:!i||l.isActive())&&o.push(l):(c=l.getTweensOf(s,i)).length&&o.push.apply(o,c),l=l._next;return o},n.tweenTo=function(r,i){i=i||{};var o=this,s=he(o,r),l=i,m=l.startAt,c=l.onStart,d=l.onStartParams,E=l.immediateRender,B,F=q.to(o,Be({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:i.duration||Math.abs((s-(m&&"time"in m?m.time:o._time))/o.timeScale())||z,onStart:function(){if(o.pause(),!B){var h=i.duration||Math.abs((s-(m&&"time"in m?m.time:o._time))/o.timeScale());F._dur!==h&&Du(F,h,0,1).render(F._time,!0,!0),B=1}c&&c.apply(F,d||[])}},i));return E?F.render(0):F},n.tweenFromTo=function(r,i,o){return this.tweenTo(i,Be({startAt:{time:he(this,r)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(r){return r===void 0&&(r=this._time),da(this,he(this,r))},n.previousLabel=function(r){return r===void 0&&(r=this._time),da(this,he(this,r),1)},n.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+z)},n.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,m;s;)s._start>=o&&(s._start+=r,s._end+=r),s=s._next;if(i)for(m in l)l[m]>=o&&(l[m]+=r);return Je(this)},n.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return t.prototype.invalidate.call(this,r)},n.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Je(this)},n.totalDuration=function(r){var i=0,o=this,s=o._last,l=Fe,m,c,d;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(d=o.parent;s;)m=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,be(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(i-=c,(!d&&!o._dp||d&&d.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>i&&s._ts&&(i=s._end),s=m;Du(o,o===H&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(H._ts&&(Gn(H,it(r,H)),Wn=fe.frame),fe.frame>=Xn){Xn+=me.autoSleep||120;var i=H._first;if((!i||!i._ts)&&me.autoSleep&&fe._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||fe.sleep()}}},e}(Iu);Be(ne.prototype,{_lock:0,_hasPause:0,_forcing:0});var qo=function(e,n,a,r,i,o,s){var l=new ie(this._pt,e,n,0,1,wa,null,i),m=0,c=0,d,E,B,F,f,h,C,p;for(l.b=a,l.e=r,a+="",r+="",(C=~r.indexOf("random("))&&(r=Ou(r)),o&&(p=[a,r],o(p,e,n),a=p[0],r=p[1]),E=a.match(Tt)||[];d=Tt.exec(r);)F=d[0],f=r.substring(m,d.index),B?B=(B+1)%5:f.substr(-5)==="rgba("&&(B=1),F!==E[c++]&&(h=parseFloat(E[c-1])||0,l._pt={_next:l._pt,p:f||c===1?f:",",s:h,c:F.charAt(1)==="="?pu(h,F)-h:parseFloat(F)-h,m:B&&B<4?Math.round:0},m=Tt.lastIndex);return l.c=m<r.length?r.substring(m,r.length):"",l.fp=s,(Rn.test(r)||C)&&(l.e=0),this._pt=l,l},Gt=function(e,n,a,r,i,o,s,l,m,c){W(r)&&(r=r(i||0,e,o));var d=e[n],E=a!=="get"?a:W(d)?m?e[n.indexOf("set")||!W(e["get"+n.substr(3)])?n:"get"+n.substr(3)](m):e[n]():d,B=W(d)?m?Jo:va:Qt,F;if(K(r)&&(~r.indexOf("random(")&&(r=Ou(r)),r.charAt(1)==="="&&(F=pu(E,r)+(te(E)||0),(F||F===0)&&(r=F))),!c||E!==r||Kt)return!isNaN(E*r)&&r!==""?(F=new ie(this._pt,e,n,+E||0,r-(E||0),typeof d=="boolean"?u5:ka,0,B),m&&(F.fp=m),s&&F.modifier(s,this,e),this._pt=F):(!d&&!(n in e)&&Pt(n,r),qo.call(this,e,n,E,r,B,l||me.stringFilter,m))},Go=function(e,n,a,r,i){if(W(e)&&(e=Ru(e,i,n,a,r)),!ge(e)||e.style&&e.nodeType||ue(e)||zn(e))return K(e)?Ru(e,i,n,a,r):e;var o={},s;for(s in e)o[s]=Ru(e[s],i,n,a,r);return o},ga=function(e,n,a,r,i,o){var s,l,m,c;if(de[e]&&(s=new de[e]).init(i,s.rawVars?n[e]:Go(n[e],r,i,o,a),a,r,o)!==!1&&(a._pt=l=new ie(a._pt,i,e,0,1,s.render,s,0,s.priority),a!==_u))for(m=a._ptLookup[a._targets.indexOf(i)],c=s._props.length;c--;)m[s._props[c]]=l;return s},je,Kt,Zt=function t(e,n,a){var r=e.vars,i=r.ease,o=r.startAt,s=r.immediateRender,l=r.lazy,m=r.onUpdate,c=r.runBackwards,d=r.yoyoEase,E=r.keyframes,B=r.autoRevert,F=e._dur,f=e._startAt,h=e._targets,C=e.parent,p=C&&C.data==="nested"?C.vars.targets:h,A=e._overwrite==="auto"&&!kt,g=e.timeline,D,b,k,_,y,w,N,x,M,$,Q,G,J;if(g&&(!E||!i)&&(i="none"),e._ease=eu(i,hu.ease),e._yEase=d?pa(eu(d===!0?i:d,hu.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!g&&!!r.runBackwards,!g||E&&!r.stagger){if(x=h[0]?Ze(h[0]).harness:0,G=x&&r[x.prop],D=at(r,Ot),f&&(f._zTime<0&&f.progress(1),n<0&&c&&s&&!B?f.render(-1,!0):f.revert(c&&F?ut:go),f._lazy=0),o){if(ze(e._startAt=q.set(h,Be({data:"isStart",overwrite:!1,parent:C,immediateRender:!0,lazy:!f&&ae(l),startAt:null,delay:0,onUpdate:m&&function(){return Ee(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(ee||!s&&!B)&&e._startAt.revert(ut),s&&F&&n<=0&&a<=0){n&&(e._zTime=n);return}}else if(c&&F&&!f){if(n&&(s=!1),k=Be({overwrite:!1,data:"isFromStart",lazy:s&&!f&&ae(l),immediateRender:s,stagger:0,parent:C},D),G&&(k[x.prop]=G),ze(e._startAt=q.set(h,k)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(ee?e._startAt.revert(ut):e._startAt.render(-1,!0)),e._zTime=n,!s)t(e._startAt,z,z);else if(!n)return}for(e._pt=e._ptCache=0,l=F&&ae(l)||l&&!F,b=0;b<h.length;b++){if(y=h[b],N=y._gsap||It(h)[b]._gsap,e._ptLookup[b]=$={},Mt[N.id]&&Ue.length&&nt(),Q=p===h?b:p.indexOf(y),x&&(M=new x).init(y,G||D,e,Q,p)!==!1&&(e._pt=_=new ie(e._pt,y,M.name,0,1,M.render,M,0,M.priority),M._props.forEach(function(_e){$[_e]=_}),M.priority&&(w=1)),!x||G)for(k in D)de[k]&&(M=ga(k,D,e,Q,y,p))?M.priority&&(w=1):$[k]=_=Gt.call(e,y,k,"get",D[k],Q,p,0,r.stringFilter);e._op&&e._op[b]&&e.kill(y,e._op[b]),A&&e._pt&&(je=e,H.killTweensOf(y,$,e.globalTime(n)),J=!e.parent,je=0),e._pt&&l&&(Mt[N.id]=1)}w&&xa(e),e._onInit&&e._onInit(e)}e._onUpdate=m,e._initted=(!e._op||e._pt)&&!J,E&&n<=0&&g.render(Fe,!0,!0)},Ko=function(e,n,a,r,i,o,s,l){var m=(e._pt&&e._ptCache||(e._ptCache={}))[n],c,d,E,B;if(!m)for(m=e._ptCache[n]=[],E=e._ptLookup,B=e._targets.length;B--;){if(c=E[B][n],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==n&&c.fp!==n;)c=c._next;if(!c)return Kt=1,e.vars[n]="+=0",Zt(e,s),Kt=0,l?Su(n+" not eligible for reset"):1;m.push(c)}for(B=m.length;B--;)d=m[B],c=d._pt||d,c.s=(r||r===0)&&!i?r:c.s+(r||0)+o*c.c,c.c=a-c.s,d.e&&(d.e=X(a)+te(d.e)),d.b&&(d.b=c.s+te(d.b))},Zo=function(e,n){var a=e[0]?Ze(e[0]).harness:0,r=a&&a.aliases,i,o,s,l;if(!r)return n;i=Qe({},n);for(o in r)if(o in i)for(l=r[o].split(","),s=l.length;s--;)i[l[s]]=i[o];return i},Qo=function(e,n,a,r){var i=n.ease||r||"power1.inOut",o,s;if(ue(n))s=a[e]||(a[e]=[]),n.forEach(function(l,m){return s.push({t:m/(n.length-1)*100,v:l,e:i})});else for(o in n)s=a[o]||(a[o]=[]),o==="ease"||s.push({t:parseFloat(e),v:n[o],e:i})},Ru=function(e,n,a,r,i){return W(e)?e.call(n,a,r,i):K(e)&&~e.indexOf("random(")?Ou(e):e},ya=zt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",ba={};re(ya+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return ba[t]=1});var q=function(t){Mn(e,t);function e(a,r,i,o){var s;typeof r=="number"&&(i.duration=r,r=i,i=null),s=t.call(this,o?r:Vu(r))||this;var l=s.vars,m=l.duration,c=l.delay,d=l.immediateRender,E=l.stagger,B=l.overwrite,F=l.keyframes,f=l.defaults,h=l.scrollTrigger,C=l.yoyoEase,p=r.parent||H,A=(ue(a)||zn(a)?Te(a[0]):"length"in r)?[a]:Ce(a),g,D,b,k,_,y,w,N;if(s._targets=A.length?It(A):Su("GSAP target "+a+" not found. https://gsap.com",!me.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=B,F||E||Ju(m)||Ju(c)){if(r=s.vars,g=s.timeline=new ne({data:"nested",defaults:f||{},targets:p&&p.data==="nested"?p.vars.targets:A}),g.kill(),g.parent=g._dp=Se(s),g._start=0,E||Ju(m)||Ju(c)){if(k=A.length,w=E&&oa(E),ge(E))for(_ in E)~ya.indexOf(_)&&(N||(N={}),N[_]=E[_]);for(D=0;D<k;D++)b=at(r,ba),b.stagger=0,C&&(b.yoyoEase=C),N&&Qe(b,N),y=A[D],b.duration=+Ru(m,Se(s),D,y,A),b.delay=(+Ru(c,Se(s),D,y,A)||0)-s._delay,!E&&k===1&&b.delay&&(s._delay=c=b.delay,s._start+=c,b.delay=0),g.to(y,b,w?w(D,y,A):0),g._ease=V.none;g.duration()?m=c=0:s.timeline=0}else if(F){Vu(Be(g.vars.defaults,{ease:"none"})),g._ease=eu(F.ease||r.ease||"none");var x=0,M,$,Q;if(ue(F))F.forEach(function(G){return g.to(A,G,">")}),g.duration();else{b={};for(_ in F)_==="ease"||_==="easeEach"||Qo(_,F[_],b,F.easeEach);for(_ in b)for(M=b[_].sort(function(G,J){return G.t-J.t}),x=0,D=0;D<M.length;D++)$=M[D],Q={ease:$.e,duration:($.t-(D?M[D-1].t:0))/100*m},Q[_]=$.v,g.to(A,Q,x),x+=Q.duration;g.duration()<m&&g.to({},{duration:m-g.duration()})}}m||s.duration(m=g.duration())}else s.timeline=0;return B===!0&&!kt&&(je=Se(s),H.killTweensOf(A),je=0),be(p,Se(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(d||!m&&!F&&s._start===Z(p._time)&&ae(d)&&xo(Se(s))&&p.data!=="nested")&&(s._tTime=-z,s.render(Math.max(0,-c)||0)),h&&ta(Se(s),h),s}var n=e.prototype;return n.render=function(r,i,o){var s=this._time,l=this._tDur,m=this._dur,c=r<0,d=r>l-z&&!c?l:r<z?0:r,E,B,F,f,h,C,p,A,g;if(!m)So(this,r,i,o);else if(d!==this._tTime||!r||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c){if(E=d,A=this.timeline,this._repeat){if(f=m+this._rDelay,this._repeat<-1&&c)return this.totalTime(f*100+r,i,o);if(E=Z(d%f),d===l?(F=this._repeat,E=m):(F=~~(d/f),F&&F===Z(d/f)&&(E=m,F--),E>m&&(E=m)),C=this._yoyo&&F&1,C&&(g=this._yEase,E=m-E),h=Au(this._tTime,f),E===s&&!o&&this._initted&&F===h)return this._tTime=d,this;F!==h&&(A&&this._yEase&&Aa(A,C),this.vars.repeatRefresh&&!C&&!this._lock&&this._time!==f&&this._initted&&(this._lock=o=1,this.render(Z(f*F),!0).invalidate()._lock=0))}if(!this._initted){if(na(this,c?r:E,o,i,d))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&F!==h))return this;if(m!==this._dur)return this.render(r,i,o)}if(this._tTime=d,this._time=E,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=p=(g||this._ease)(E/m),this._from&&(this.ratio=p=1-p),E&&!s&&!i&&!F&&(Ee(this,"onStart"),this._tTime!==d))return this;for(B=this._pt;B;)B.r(p,B.d),B=B._next;A&&A.render(r<0?r:A._dur*A._ease(E/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(c&&Rt(this,r,i,o),Ee(this,"onUpdate")),this._repeat&&F!==h&&this.vars.onRepeat&&!i&&this.parent&&Ee(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(c&&!this._onUpdate&&Rt(this,r,!0,!0),(r||!m)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&ze(this,1),!i&&!(c&&!s)&&(d||s||C)&&(Ee(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),t.prototype.invalidate.call(this,r)},n.resetTo=function(r,i,o,s,l){zu||fe.wake(),this._ts||this.play();var m=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Zt(this,m),c=this._ease(m/this._dur),Ko(this,r,i,o,s,c,m,l)?this.resetTo(r,i,o,s,1):(st(this,0),this.parent||Jn(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Mu(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,je&&je.vars.overwrite!==!0)._first||Mu(this),this.parent&&o!==this.timeline.totalDuration()&&Du(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=r?Ce(r):s,m=this._ptLookup,c=this._pt,d,E,B,F,f,h,C;if((!i||i==="all")&&ko(s,l))return i==="all"&&(this._pt=0),Mu(this);for(d=this._op=this._op||[],i!=="all"&&(K(i)&&(f={},re(i,function(p){return f[p]=1}),i=f),i=Zo(s,i)),C=s.length;C--;)if(~l.indexOf(s[C])){E=m[C],i==="all"?(d[C]=i,F=E,B={}):(B=d[C]=d[C]||{},F=i);for(f in F)h=E&&E[f],h&&((!("kill"in h.d)||h.d.kill(f)===!0)&&rt(this,h,"_pt"),delete E[f]),B!=="all"&&(B[f]=1)}return this._initted&&!this._pt&&c&&Mu(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return $u(1,arguments)},e.delayedCall=function(r,i,o,s){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},e.fromTo=function(r,i,o){return $u(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return H.killTweensOf(r,i,o)},e}(Iu);Be(q.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),re("staggerTo,staggerFrom,staggerFromTo",function(t){q[t]=function(){var e=new ne,n=Lt.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var Qt=function(e,n,a){return e[n]=a},va=function(e,n,a){return e[n](a)},Jo=function(e,n,a,r){return e[n](r.fp,a)},e5=function(e,n,a){return e.setAttribute(n,a)},Jt=function(e,n){return W(e[n])?va:xt(e[n])&&e.setAttribute?e5:Qt},ka=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},u5=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},wa=function(e,n){var a=n._pt,r="";if(!e&&n.b)r=n.b;else if(e===1&&n.e)r=n.e;else{for(;a;)r=a.p+(a.m?a.m(a.s+a.c*e):Math.round((a.s+a.c*e)*1e4)/1e4)+r,a=a._next;r+=n.c}n.set(n.t,n.p,r,n)},en=function(e,n){for(var a=n._pt;a;)a.r(e,a.d),a=a._next},t5=function(e,n,a,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,n,a),i=o},n5=function(e){for(var n=this._pt,a,r;n;)r=n._next,n.p===e&&!n.op||n.op===e?rt(this,n,"_pt"):n.dep||(a=1),n=r;return!a},a5=function(e,n,a,r){r.mSet(e,n,r.m.call(r.tween,a,r.mt),r)},xa=function(e){for(var n=e._pt,a,r,i,o;n;){for(a=n._next,r=i;r&&r.pr>n.pr;)r=r._next;(n._prev=r?r._prev:o)?n._prev._next=n:i=n,(n._next=r)?r._prev=n:o=n,n=a}e._pt=i},ie=function(){function t(n,a,r,i,o,s,l,m,c){this.t=a,this.s=i,this.c=o,this.p=r,this.r=s||ka,this.d=l||this,this.set=m||Qt,this.pr=c||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(a,r,i){this.mSet=this.mSet||this.set,this.set=a5,this.m=a,this.mt=i,this.tween=r},t}();re(zt+"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 Ot[t]=1}),ce.TweenMax=ce.TweenLite=q,ce.TimelineLite=ce.TimelineMax=ne,H=new ne({sortChildren:!1,defaults:hu,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),me.stringFilter=Ca;var tu=[],lt={},r5=[],Na=0,i5=0,un=function(e){return(lt[e]||r5).map(function(n){return n()})},tn=function(){var e=Date.now(),n=[];e-Na>2&&(un("matchMediaInit"),tu.forEach(function(a){var r=a.queries,i=a.conditions,o,s,l,m;for(s in r)o=ye.matchMedia(r[s]).matches,o&&(l=1),o!==i[s]&&(i[s]=o,m=1);m&&(a.revert(),l&&n.push(a))}),un("matchMediaRevert"),n.forEach(function(a){return a.onMatch(a,function(r){return a.add(null,r)})}),Na=e,un("matchMedia"))},Sa=function(){function t(n,a){this.selector=a&&Ht(a),this.data=[],this._r=[],this.isReverted=!1,this.id=i5++,n&&this.add(n)}var e=t.prototype;return e.add=function(a,r,i){W(a)&&(i=r,r=a,a=W);var o=this,s=function(){var m=j,c=o.selector,d;return m&&m!==o&&m.data.push(o),i&&(o.selector=Ht(i)),j=o,d=r.apply(o,arguments),W(d)&&o._r.push(d),j=m,o.selector=c,o.isReverted=!1,d};return o.last=s,a===W?s(o,function(l){return o.add(null,l)}):a?o[a]=s:s},e.ignore=function(a){var r=j;j=null,a(this),j=r},e.getTweens=function(){var a=[];return this.data.forEach(function(r){return r instanceof t?a.push.apply(a,r.getTweens()):r instanceof q&&!(r.parent&&r.parent.data==="nested")&&a.push(r)}),a},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(a,r){var i=this;if(a?function(){for(var s=i.getTweens(),l=i.data.length,m;l--;)m=i.data[l],m.data==="isFlip"&&(m.revert(),m.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,d){return d.g-c.g||-1/0}).forEach(function(c){return c.t.revert(a)}),l=i.data.length;l--;)m=i.data[l],m instanceof ne?m.data!=="nested"&&(m.scrollTrigger&&m.scrollTrigger.revert(),m.kill()):!(m instanceof q)&&m.revert&&m.revert(a);i._r.forEach(function(c){return c(a,i)}),i.isReverted=!0}():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),r)for(var o=tu.length;o--;)tu[o].id===this.id&&tu.splice(o,1)},e.revert=function(a){this.kill(a||{})},t}(),o5=function(){function t(n){this.contexts=[],this.scope=n,j&&j.data.push(this)}var e=t.prototype;return e.add=function(a,r,i){ge(a)||(a={matches:a});var o=new Sa(0,i||this.scope),s=o.conditions={},l,m,c;j&&!o.selector&&(o.selector=j.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=a;for(m in a)m==="all"?c=1:(l=ye.matchMedia(a[m]),l&&(tu.indexOf(o)<0&&tu.push(o),(s[m]=l.matches)&&(c=1),l.addListener?l.addListener(tn):l.addEventListener("change",tn)));return c&&r(o,function(d){return o.add(null,d)}),this},e.revert=function(a){this.kill(a||{})},e.kill=function(a){this.contexts.forEach(function(r){return r.kill(a,!0)})},t}(),mt={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];n.forEach(function(r){return fa(r)})},timeline:function(e){return new ne(e)},getTweensOf:function(e,n){return H.getTweensOf(e,n)},getProperty:function(e,n,a,r){K(e)&&(e=Ce(e)[0]);var i=Ze(e||{}).get,o=a?Zn:Kn;return a==="native"&&(a=""),e&&(n?o((de[n]&&de[n].get||i)(e,n,a,r)):function(s,l,m){return o((de[s]&&de[s].get||i)(e,s,l,m))})},quickSetter:function(e,n,a){if(e=Ce(e),e.length>1){var r=e.map(function(c){return oe.quickSetter(c,n,a)}),i=r.length;return function(c){for(var d=i;d--;)r[d](c)}}e=e[0]||{};var o=de[n],s=Ze(e),l=s.harness&&(s.harness.aliases||{})[n]||n,m=o?function(c){var d=new o;_u._pt=0,d.init(e,a?c+a:c,_u,0,[e]),d.render(1,d),_u._pt&&en(1,_u)}:s.set(e,l);return o?m:function(c){return m(e,l,a?c+a:c,s,1)}},quickTo:function(e,n,a){var r,i=oe.to(e,Qe((r={},r[n]="+=0.1",r.paused=!0,r),a||{})),o=function(l,m,c){return i.resetTo(n,l,m,c)};return o.tween=i,o},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=eu(e.ease,hu.ease)),Qn(hu,e||{})},config:function(e){return Qn(me,e||{})},registerEffect:function(e){var n=e.name,a=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(s){return s&&!de[s]&&!ce[s]&&Su(n+" effect requires "+s+" plugin.")}),Ut[n]=function(s,l,m){return a(Ce(s),Be(l||{},i),m)},o&&(ne.prototype[n]=function(s,l,m){return this.add(Ut[n](s,ge(l)?l:(m=l)&&{},this),m)})},registerEase:function(e,n){V[e]=eu(n)},parseEase:function(e,n){return arguments.length?eu(e,n):V},getById:function(e){return H.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var a=new ne(e),r,i;for(a.smoothChildTiming=ae(e.smoothChildTiming),H.remove(a),a._dp=0,a._time=a._tTime=H._time,r=H._first;r;)i=r._next,(n||!(!r._dur&&r instanceof q&&r.vars.onComplete===r._targets[0]))&&be(a,r,r._start-r._delay),r=i;return be(H,a,0),a},context:function(e,n){return e?new Sa(e,n):j},matchMedia:function(e){return new o5(e)},matchMediaRefresh:function(){return tu.forEach(function(e){var n=e.conditions,a,r;for(r in n)n[r]&&(n[r]=!1,a=1);a&&e.revert()})||tn()},addEventListener:function(e,n){var a=lt[e]||(lt[e]=[]);~a.indexOf(n)||a.push(n)},removeEventListener:function(e,n){var a=lt[e],r=a&&a.inde