-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-pages-index-tsx-d53e36ce4647de2b95fc.js
3 lines (3 loc) · 72.6 KB
/
component---src-pages-index-tsx-d53e36ce4647de2b95fc.js
1
2
3
/*! For license information please see component---src-pages-index-tsx-d53e36ce4647de2b95fc.js.LICENSE.txt */
(self.webpackChunkmy_gatsby_site=self.webpackChunkmy_gatsby_site||[]).push([[691],{3514:function(e,t,r){"use strict";var n=r(7294),i=r(4593);t.Z=e=>{let{children:t,data:r}=e;return n.createElement("div",{className:"bg-gray-300"},n.createElement(i.Z,{title:r.name,meta:[{name:"description",content:r.summary},{name:"keywords",content:"frontend dev, react, blog"}]}),n.createElement("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,600,600i"}),n.createElement("div",null,t))}},1908:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Jn}});var n,i,o,a,s,l,c,u,f=r(5317),p={},d=180/Math.PI,h=Math.PI/180,g=Math.atan2,m=/([A-Z])/g,v=/(left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,x={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},b=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},w=function(e,t){return t.set(t.t,t.p,1===e?t.e:Math.round(1e4*(t.s+t.c*e))/1e4+t.u,t)},E=function(e,t){return t.set(t.t,t.p,e?Math.round(1e4*(t.s+t.c*e))/1e4+t.u:t.b,t)},_=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},O=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},P=function(e,t){return t.set(t.t,t.p,1!==e?t.b:t.e,t)},k=function(e,t,r){return e.style[t]=r},S=function(e,t,r){return e.style.setProperty(t,r)},M=function(e,t,r){return e._gsap[t]=r},C=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},T=function(e,t,r,n,i){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(i,o)},N=function(e,t,r,n,i){var o=e._gsap;o[t]=r,o.renderTransform(i,o)},A="transform",F=A+"Origin",z=function e(t,r){var n=this,i=this.target,o=i.style,a=i._gsap;if(t in p&&o){if(this.tfm=this.tfm||{},"transform"===t)return x.transform.split(",").forEach((function(t){return e.call(n,t,r)}));if(~(t=x[t]||t).indexOf(",")?t.split(",").forEach((function(e){return n.tfm[e]=J(i,e)})):this.tfm[t]=a.x?a[t]:J(i,t),t===F&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(A)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(F,r,"")),t=A}(o||r)&&this.props.push(t,r,o[t])},Y=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},B=function(){var e,t,r=this.props,n=this.target,i=n.style,o=n._gsap;for(e=0;e<r.length;e+=3)r[e+1]?n[r[e]]=r[e+2]:r[e+2]?i[r[e]]=r[e+2]:i.removeProperty("--"===r[e].substr(0,2)?r[e]:r[e].replace(m,"-$1").toLowerCase());if(this.tfm){for(t in this.tfm)o[t]=this.tfm[t];o.svg&&(o.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(e=c())&&e.isStart||i[A]||(Y(i),o.zOrigin&&i[F]&&(i[F]+=" "+o.zOrigin+"px",o.zOrigin=0,o.renderTransform()),o.uncache=1)}},j=function(e,t){var r={target:e,props:[],revert:B,save:z};return e._gsap||f.p8.core.getCache(e),t&&t.split(",").forEach((function(e){return r.save(e)})),r},D=function(e,t){var r=i.createElementNS?i.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):i.createElement(e);return r&&r.style?r:i.createElement(e)},R=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(m,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,I(r)||r,1)||""},X="O,Moz,ms,Ms,Webkit".split(","),I=function(e,t,r){var n=(t||s).style,i=5;if(e in n&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(X[i]+e in n););return i<0?null:(3===i?"ms":i>=0?X[i]:"")+e},W=function(){"undefined"!=typeof window&&window.document&&(n=window,i=n.document,o=i.documentElement,s=D("div")||{style:{}},D("div"),A=I(A),F=A+"Origin",s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",u=!!I("perspective"),c=f.p8.core.reverting,a=1)},L=function e(t){var r,n=D("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(o.appendChild(n),n.appendChild(this),this.style.display="block",t)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(l){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),o.removeChild(n),this.style.cssText=s,r},H=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},V=function(e){var t;try{t=e.getBBox()}catch(r){t=L.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===L||(t=L.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+H(e,["x","cx","x1"])||0,y:+H(e,["y","cy","y1"])||0,width:0,height:0}},q=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!V(e))},U=function(e,t){if(t){var r,n=e.style;t in p&&t!==F&&(t=A),n.removeProperty?("ms"!==(r=t.substr(0,2))&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty("--"===r?t:t.replace(m,"-$1").toLowerCase())):n.removeAttribute(t)}},$=function(e,t,r,n,i,o){var a=new f.Fo(e._pt,t,r,0,1,o?P:O);return e._pt=a,a.b=n,a.e=i,e._props.push(r),a},G={deg:1,rad:1,turn:1},Z={grid:1,flex:1},K=function e(t,r,n,o){var a,l,c,u,d=parseFloat(n)||0,h=(n+"").trim().substr((d+"").length)||"px",g=s.style,m=v.test(r),y="svg"===t.tagName.toLowerCase(),x=(y?"client":"offset")+(m?"Width":"Height"),b=100,w="px"===o,E="%"===o;if(o===h||!d||G[o]||G[h])return d;if("px"!==h&&!w&&(d=e(t,r,n,"px")),u=t.getCTM&&q(t),(E||"%"===h)&&(p[r]||~r.indexOf("adius")))return a=u?t.getBBox()[m?"width":"height"]:t[x],(0,f.Pr)(E?d/a*b:d/100*a);if(g[m?"width":"height"]=b+(w?h:o),l=~r.indexOf("adius")||"em"===o&&t.appendChild&&!y?t:t.parentNode,u&&(l=(t.ownerSVGElement||{}).parentNode),l&&l!==i&&l.appendChild||(l=i.body),(c=l._gsap)&&E&&c.width&&m&&c.time===f.xr.time&&!c.uncache)return(0,f.Pr)(d/c.width*b);if(!E||"height"!==r&&"width"!==r)(E||"%"===h)&&!Z[R(l,"display")]&&(g.position=R(t,"position")),l===t&&(g.position="static"),l.appendChild(s),a=s[x],l.removeChild(s),g.position="absolute";else{var _=t.style[r];t.style[r]=b+o,a=t[x],_?t.style[r]=_:U(t,r)}return m&&E&&((c=(0,f.DY)(l)).time=f.xr.time,c.width=l[x]),(0,f.Pr)(w?a*d/b:a&&d?b/a*d:0)},J=function(e,t,r,n){var i;return a||W(),t in x&&"transform"!==t&&~(t=x[t]).indexOf(",")&&(t=t.split(",")[0]),p[t]&&"transform"!==t?(i=ce(e,n),i="transformOrigin"!==t?i[t]:i.svg?i.origin:ue(R(e,F))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=re[t]&&re[t](e,t,r)||R(e,t)||(0,f.Ok)(e,t)||("opacity"===t?1:0)),r&&!~(i+"").trim().indexOf(" ")?K(e,t,i,r)+r:i},Q=function(e,t,r,n){if(!r||"none"===r){var i=I(t,e,1),o=i&&R(e,i,1);o&&o!==r?(t=i,r=o):"borderColor"===t&&(r=R(e,"borderTopColor"))}var a,s,l,c,u,p,d,h,g,m,v,y=new f.Fo(this._pt,e.style,t,0,1,f.Ks),x=0,b=0;if(y.b=r,y.e=n,r+="","auto"===(n+="")&&(p=e.style[t],e.style[t]=n,n=R(e,t)||n,p?e.style[t]=p:U(e,t)),a=[r,n],(0,f.kr)(a),n=a[1],l=(r=a[0]).match(f.d4)||[],(n.match(f.d4)||[]).length){for(;s=f.d4.exec(n);)d=s[0],g=n.substring(x,s.index),u?u=(u+1)%5:"rgba("!==g.substr(-5)&&"hsla("!==g.substr(-5)||(u=1),d!==(p=l[b++]||"")&&(c=parseFloat(p)||0,v=p.substr((c+"").length),"="===d.charAt(1)&&(d=(0,f.cy)(c,d)+v),h=parseFloat(d),m=d.substr((h+"").length),x=f.d4.lastIndex-m.length,m||(m=m||f.Fc.units[t]||v,x===n.length&&(n+=m,y.e+=m)),v!==m&&(c=K(e,t,p,m)||0),y._pt={_next:y._pt,p:g||1===b?g:",",s:c,c:h-c,m:u&&u<4||"zIndex"===t?Math.round:0});y.c=x<n.length?n.substring(x,n.length):""}else y.r="display"===t&&"none"===n?P:O;return f.bQ.test(n)&&(y.e=0),this._pt=y,y},ee={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},te=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r,n,i,o=t.t,a=o.style,s=t.u,l=o._gsap;if("all"===s||!0===s)a.cssText="",n=1;else for(i=(s=s.split(",")).length;--i>-1;)r=s[i],p[r]&&(n=1,r="transformOrigin"===r?F:A),U(o,r);n&&(U(o,A),l&&(l.svg&&o.removeAttribute("transform"),ce(o,1),l.uncache=1,Y(a)))}},re={clearProps:function(e,t,r,n,i){if("isFromStart"!==i.data){var o=e._pt=new f.Fo(e._pt,t,r,0,0,te);return o.u=n,o.pr=-10,o.tween=i,e._props.push(r),1}}},ne=[1,0,0,1,0,0],ie={},oe=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},ae=function(e){var t=R(e,A);return oe(t)?ne:t.substr(7).match(f.SI).map(f.Pr)},se=function(e,t){var r,n,i,a,s=e._gsap||(0,f.DY)(e),l=e.style,c=ae(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(c=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?ne:c:(c!==ne||e.offsetParent||e===o||s.svg||(i=l.display,l.display="block",(r=e.parentNode)&&e.offsetParent||(a=1,n=e.nextElementSibling,o.appendChild(e)),c=ae(e),i?l.display=i:U(e,"display"),a&&(n?r.insertBefore(e,n):r?r.appendChild(e):o.removeChild(e))),t&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},le=function(e,t,r,n,i,o){var a,s,l,c=e._gsap,u=i||se(e,!0),f=c.xOrigin||0,p=c.yOrigin||0,d=c.xOffset||0,h=c.yOffset||0,g=u[0],m=u[1],v=u[2],y=u[3],x=u[4],b=u[5],w=t.split(" "),E=parseFloat(w[0])||0,_=parseFloat(w[1])||0;r?u!==ne&&(s=g*y-m*v)&&(l=E*(-m/s)+_*(g/s)-(g*b-m*x)/s,E=E*(y/s)+_*(-v/s)+(v*b-y*x)/s,_=l):(E=(a=V(e)).x+(~w[0].indexOf("%")?E/100*a.width:E),_=a.y+(~(w[1]||w[0]).indexOf("%")?_/100*a.height:_)),n||!1!==n&&c.smooth?(x=E-f,b=_-p,c.xOffset=d+(x*g+b*v)-x,c.yOffset=h+(x*m+b*y)-b):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=_,c.smooth=!!n,c.origin=t,c.originIsAbsolute=!!r,e.style[F]="0px 0px",o&&($(o,c,"xOrigin",f,E),$(o,c,"yOrigin",p,_),$(o,c,"xOffset",d,c.xOffset),$(o,c,"yOffset",h,c.yOffset)),e.setAttribute("data-svg-origin",E+" "+_)},ce=function(e,t){var r=e._gsap||new f.l1(e);if("x"in r&&!t&&!r.uncache)return r;var n,i,o,a,s,l,c,p,m,v,y,x,b,w,E,_,O,P,k,S,M,C,T,N,z,Y,B,j,D,X,I,W,L=e.style,H=r.scaleX<0,V="px",U="deg",$=getComputedStyle(e),G=R(e,F)||"0";return n=i=o=l=c=p=m=v=y=0,a=s=1,r.svg=!(!e.getCTM||!q(e)),$.translate&&("none"===$.translate&&"none"===$.scale&&"none"===$.rotate||(L[A]=("none"!==$.translate?"translate3d("+($.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==$.rotate?"rotate("+$.rotate+") ":"")+("none"!==$.scale?"scale("+$.scale.split(" ").join(",")+") ":"")+("none"!==$[A]?$[A]:"")),L.scale=L.rotate=L.translate="none"),w=se(e,r.svg),r.svg&&(r.uncache?(z=e.getBBox(),G=r.xOrigin-z.x+"px "+(r.yOrigin-z.y)+"px",N=""):N=!t&&e.getAttribute("data-svg-origin"),le(e,N||G,!!N||r.originIsAbsolute,!1!==r.smooth,w)),x=r.xOrigin||0,b=r.yOrigin||0,w!==ne&&(P=w[0],k=w[1],S=w[2],M=w[3],n=C=w[4],i=T=w[5],6===w.length?(a=Math.sqrt(P*P+k*k),s=Math.sqrt(M*M+S*S),l=P||k?g(k,P)*d:0,(m=S||M?g(S,M)*d+l:0)&&(s*=Math.abs(Math.cos(m*h))),r.svg&&(n-=x-(x*P+b*S),i-=b-(x*k+b*M))):(W=w[6],X=w[7],B=w[8],j=w[9],D=w[10],I=w[11],n=w[12],i=w[13],o=w[14],c=(E=g(W,D))*d,E&&(N=C*(_=Math.cos(-E))+B*(O=Math.sin(-E)),z=T*_+j*O,Y=W*_+D*O,B=C*-O+B*_,j=T*-O+j*_,D=W*-O+D*_,I=X*-O+I*_,C=N,T=z,W=Y),p=(E=g(-S,D))*d,E&&(_=Math.cos(-E),I=M*(O=Math.sin(-E))+I*_,P=N=P*_-B*O,k=z=k*_-j*O,S=Y=S*_-D*O),l=(E=g(k,P))*d,E&&(N=P*(_=Math.cos(E))+k*(O=Math.sin(E)),z=C*_+T*O,k=k*_-P*O,T=T*_-C*O,P=N,C=z),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,p=180-p),a=(0,f.Pr)(Math.sqrt(P*P+k*k+S*S)),s=(0,f.Pr)(Math.sqrt(T*T+W*W)),E=g(C,T),m=Math.abs(E)>2e-4?E*d:0,y=I?1/(I<0?-I:I):0),r.svg&&(N=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!oe(R(e,A)),N&&e.setAttribute("transform",N))),Math.abs(m)>90&&Math.abs(m)<270&&(H?(a*=-1,m+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,m+=m<=0?180:-180)),t=t||r.uncache,r.x=n-((r.xPercent=n&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-n)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+V,r.y=i-((r.yPercent=i&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+V,r.z=o+V,r.scaleX=(0,f.Pr)(a),r.scaleY=(0,f.Pr)(s),r.rotation=(0,f.Pr)(l)+U,r.rotationX=(0,f.Pr)(c)+U,r.rotationY=(0,f.Pr)(p)+U,r.skewX=m+U,r.skewY=v+U,r.transformPerspective=y+V,(r.zOrigin=parseFloat(G.split(" ")[2])||!t&&r.zOrigin||0)&&(L[F]=ue(G)),r.xOffset=r.yOffset=0,r.force3D=f.Fc.force3D,r.renderTransform=r.svg?ve:u?me:pe,r.uncache=0,r},ue=function(e){return(e=e.split(" "))[0]+" "+e[1]},fe=function(e,t,r){var n=(0,f.Wy)(t);return(0,f.Pr)(parseFloat(t)+parseFloat(K(e,"x",r+"px",n)))+n},pe=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,me(e,t)},de="0deg",he="0px",ge=") ",me=function(e,t){var r=t||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,s=r.z,l=r.rotation,c=r.rotationY,u=r.rotationX,f=r.skewX,p=r.skewY,d=r.scaleX,g=r.scaleY,m=r.transformPerspective,v=r.force3D,y=r.target,x=r.zOrigin,b="",w="auto"===v&&e&&1!==e||!0===v;if(x&&(u!==de||c!==de)){var E,_=parseFloat(c)*h,O=Math.sin(_),P=Math.cos(_);_=parseFloat(u)*h,E=Math.cos(_),o=fe(y,o,O*E*-x),a=fe(y,a,-Math.sin(_)*-x),s=fe(y,s,P*E*-x+x)}m!==he&&(b+="perspective("+m+ge),(n||i)&&(b+="translate("+n+"%, "+i+"%) "),(w||o!==he||a!==he||s!==he)&&(b+=s!==he||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+ge),l!==de&&(b+="rotate("+l+ge),c!==de&&(b+="rotateY("+c+ge),u!==de&&(b+="rotateX("+u+ge),f===de&&p===de||(b+="skew("+f+", "+p+ge),1===d&&1===g||(b+="scale("+d+", "+g+ge),y.style[A]=b||"translate(0, 0)"},ve=function(e,t){var r,n,i,o,a,s=t||this,l=s.xPercent,c=s.yPercent,u=s.x,p=s.y,d=s.rotation,g=s.skewX,m=s.skewY,v=s.scaleX,y=s.scaleY,x=s.target,b=s.xOrigin,w=s.yOrigin,E=s.xOffset,_=s.yOffset,O=s.forceCSS,P=parseFloat(u),k=parseFloat(p);d=parseFloat(d),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),d+=m),d||g?(d*=h,g*=h,r=Math.cos(d)*v,n=Math.sin(d)*v,i=Math.sin(d-g)*-y,o=Math.cos(d-g)*y,g&&(m*=h,a=Math.tan(g-m),i*=a=Math.sqrt(1+a*a),o*=a,m&&(a=Math.tan(m),r*=a=Math.sqrt(1+a*a),n*=a)),r=(0,f.Pr)(r),n=(0,f.Pr)(n),i=(0,f.Pr)(i),o=(0,f.Pr)(o)):(r=v,o=y,n=i=0),(P&&!~(u+"").indexOf("px")||k&&!~(p+"").indexOf("px"))&&(P=K(x,"x",u,"px"),k=K(x,"y",p,"px")),(b||w||E||_)&&(P=(0,f.Pr)(P+b-(b*r+w*i)+E),k=(0,f.Pr)(k+w-(b*n+w*o)+_)),(l||c)&&(a=x.getBBox(),P=(0,f.Pr)(P+l/100*a.width),k=(0,f.Pr)(k+c/100*a.height)),a="matrix("+r+","+n+","+i+","+o+","+P+","+k+")",x.setAttribute("transform",a),O&&(x.style[A]=a)},ye=function(e,t,r,n,i){var o,a,s=360,l=(0,f.r9)(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?d:1)-n,u=n+c+"deg";return l&&("short"===(o=i.split("_")[1])&&(c%=s)!==c%180&&(c+=c<0?s:-360),"cw"===o&&c<0?c=(c+36e9)%s-~~(c/s)*s:"ccw"===o&&c>0&&(c=(c-36e9)%s-~~(c/s)*s)),e._pt=a=new f.Fo(e._pt,t,r,n,c,w),a.e=u,a.u="deg",e._props.push(r),a},xe=function(e,t){for(var r in t)e[r]=t[r];return e},be=function(e,t,r){var n,i,o,a,s,l,c,u=xe({},r._gsap),d=r.style;for(i in u.svg?(o=r.getAttribute("transform"),r.setAttribute("transform",""),d[A]=t,n=ce(r,1),U(r,A),r.setAttribute("transform",o)):(o=getComputedStyle(r)[A],d[A]=t,n=ce(r,1),d[A]=o),p)(o=u[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=(0,f.Wy)(o)!==(c=(0,f.Wy)(a))?K(r,i,o,c):parseFloat(o),l=parseFloat(a),e._pt=new f.Fo(e._pt,n,i,s,l-s,b),e._pt.u=c||0,e._props.push(i));xe(n,u)};(0,f.fS)("padding,margin,Width,Radius",(function(e,t){var r="Top",n="Right",i="Bottom",o="Left",a=(t<3?[r,n,i,o]:[r+o,r+n,i+n,i+o]).map((function(r){return t<2?e+r:"border"+r+e}));re[t>1?"border"+e:e]=function(e,t,r,n,i){var o,s;if(arguments.length<4)return o=a.map((function(t){return J(e,t,r)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach((function(e,t){return s[e]=o[t]=o[t]||o[(t-1)/2|0]})),e.init(t,s,i)}}));var we,Ee,_e,Oe={name:"css",register:W,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,i){var o,s,l,c,u,d,h,g,m,v,w,O,P,k,S,M,C,T,N,z,Y=this._props,B=e.style,D=r.vars.startAt;for(h in a||W(),this.styles=this.styles||j(e),M=this.styles.props,this.tween=r,t)if("autoRound"!==h&&(s=t[h],!f.$i[h]||!(0,f.if)(h,t,r,n,e,i)))if(u=typeof s,d=re[h],"function"===u&&(u=typeof(s=s.call(r,n,e,i))),"string"===u&&~s.indexOf("random(")&&(s=(0,f.UI)(s)),d)d(this,e,h,s,r)&&(S=1);else if("--"===h.substr(0,2))o=(getComputedStyle(e).getPropertyValue(h)+"").trim(),s+="",f.GN.lastIndex=0,f.GN.test(o)||(g=(0,f.Wy)(o),m=(0,f.Wy)(s)),m?g!==m&&(o=K(e,h,o,m)+m):g&&(s+=g),this.add(B,"setProperty",o,s,n,i,0,0,h),Y.push(h),M.push(h,0,B[h]);else if("undefined"!==u){if(D&&h in D?(o="function"==typeof D[h]?D[h].call(r,n,e,i):D[h],(0,f.r9)(o)&&~o.indexOf("random(")&&(o=(0,f.UI)(o)),(0,f.Wy)(o+"")||"auto"===o||(o+=f.Fc.units[h]||(0,f.Wy)(J(e,h))||""),"="===(o+"").charAt(1)&&(o=J(e,h))):o=J(e,h),c=parseFloat(o),(v="string"===u&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),l=parseFloat(s),h in x&&("autoAlpha"===h&&(1===c&&"hidden"===J(e,"visibility")&&l&&(c=0),M.push("visibility",0,B.visibility),$(this,B,"visibility",c?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==h&&"transform"!==h&&~(h=x[h]).indexOf(",")&&(h=h.split(",")[0])),w=h in p)if(this.styles.save(h),O||((P=e._gsap).renderTransform&&!t.parseTransform||ce(e,t.parseTransform),k=!1!==t.smoothOrigin&&P.smooth,(O=this._pt=new f.Fo(this._pt,B,A,0,1,P.renderTransform,P,0,-1)).dep=1),"scale"===h)this._pt=new f.Fo(this._pt,P,"scaleY",P.scaleY,(v?(0,f.cy)(P.scaleY,v+l):l)-P.scaleY||0,b),this._pt.u=0,Y.push("scaleY",h),h+="X";else{if("transformOrigin"===h){M.push(F,0,B[F]),T=void 0,N=void 0,z=void 0,T=(C=s).split(" "),N=T[0],z=T[1]||"50%","top"!==N&&"bottom"!==N&&"left"!==z&&"right"!==z||(C=N,N=z,z=C),T[0]=ee[N]||N,T[1]=ee[z]||z,s=T.join(" "),P.svg?le(e,s,0,k,0,this):((m=parseFloat(s.split(" ")[2])||0)!==P.zOrigin&&$(this,P,"zOrigin",P.zOrigin,m),$(this,B,h,ue(o),ue(s)));continue}if("svgOrigin"===h){le(e,s,1,k,0,this);continue}if(h in ie){ye(this,P,h,c,v?(0,f.cy)(c,v+s):s);continue}if("smoothOrigin"===h){$(this,P,"smooth",P.smooth,s);continue}if("force3D"===h){P[h]=s;continue}if("transform"===h){be(this,s,e);continue}}else h in B||(h=I(h)||h);if(w||(l||0===l)&&(c||0===c)&&!y.test(s)&&h in B)l||(l=0),(g=(o+"").substr((c+"").length))!==(m=(0,f.Wy)(s)||(h in f.Fc.units?f.Fc.units[h]:g))&&(c=K(e,h,o,m)),this._pt=new f.Fo(this._pt,w?P:B,h,c,(v?(0,f.cy)(c,v+l):l)-c,w||"px"!==m&&"zIndex"!==h||!1===t.autoRound?b:_),this._pt.u=m||0,g!==m&&"%"!==m&&(this._pt.b=o,this._pt.r=E);else if(h in B)Q.call(this,e,h,o,v?v+s:s);else if(h in e)this.add(e,h,o||e[h],v?v+s:s,n,i);else if("parseTransform"!==h){(0,f.lC)(h,s);continue}w||(h in B?M.push(h,0,B[h]):M.push(h,1,o||e[h])),Y.push(h)}S&&(0,f.JV)(this)},render:function(e,t){if(t.tween._time||!c())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:J,aliases:x,getSetter:function(e,t,r){var n=x[t];return n&&n.indexOf(",")<0&&(t=n),t in p&&t!==F&&(e._gsap.x||J(e,"x"))?r&&l===r?"scale"===t?C:M:(l=r||{})&&("scale"===t?T:N):e.style&&!(0,f.m2)(e.style[t])?k:~t.indexOf("-")?S:(0,f.S5)(e,t)},core:{_removeProperty:U,_getMatrix:se}};f.p8.utils.checkPrefix=I,f.p8.core.getStyleSaver=j,we="x,y,z,scale,scaleX,scaleY,xPercent,yPercent",Ee="rotation,rotationX,rotationY,skewX,skewY",_e=(0,f.fS)(we+","+Ee+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){p[e]=1})),(0,f.fS)(Ee,(function(e){f.Fc.units[e]="deg",ie[e]=1})),x[_e[13]]=we+","+Ee,(0,f.fS)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");x[t[1]]=_e[t[0]]})),(0,f.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){f.Fc.units[e]="px"})),f.p8.registerPlugin(Oe);var Pe=f.p8.registerPlugin(Oe)||f.p8;Pe.core.Tween;function ke(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Se,Me,Ce,Te,Ne,Ae,Fe,ze,Ye,Be,je,De,Re,Xe=function(){return Se||"undefined"!=typeof window&&(Se=window.gsap)&&Se.registerPlugin&&Se},Ie=1,We=[],Le=[],He=[],Ve=Date.now,qe=function(e,t){return t},Ue=function(e,t){return~He.indexOf(e)&&He[He.indexOf(e)+1][t]},$e=function(e){return!!~Be.indexOf(e)},Ge=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!1!==n,capture:!!i})},Ze=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},Ke="scrollLeft",Je="scrollTop",Qe=function(){return je&&je.isPressed||Le.cache++},et=function(e,t){var r=function r(n){if(n||0===n){Ie&&(Ce.history.scrollRestoration="manual");var i=je&&je.isPressed;n=r.v=Math.round(n)||(je&&je.iOS?1:0),e(n),r.cacheID=Le.cache,i&&qe("ss",n)}else(t||Le.cache!==r.cacheID||qe("ref"))&&(r.cacheID=Le.cache,r.v=e());return r.v+r.offset};return r.offset=0,e&&r},tt={s:Ke,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:et((function(e){return arguments.length?Ce.scrollTo(e,rt.sc()):Ce.pageXOffset||Te[Ke]||Ne[Ke]||Ae[Ke]||0}))},rt={s:Je,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:tt,sc:et((function(e){return arguments.length?Ce.scrollTo(tt.sc(),e):Ce.pageYOffset||Te[Je]||Ne[Je]||Ae[Je]||0}))},nt=function(e,t){return(t&&t._ctx&&t._ctx.selector||Se.utils.toArray)(e)[0]||("string"==typeof e&&!1!==Se.config().nullTargetWarn?console.warn("Element not found:",e):null)},it=function(e,t){var r=t.s,n=t.sc;$e(e)&&(e=Te.scrollingElement||Ne);var i=Le.indexOf(e),o=n===rt.sc?1:2;!~i&&(i=Le.push(e)-1),Le[i+o]||Ge(e,"scroll",Qe);var a=Le[i+o],s=a||(Le[i+o]=et(Ue(e,r),!0)||($e(e)?n:et((function(t){return arguments.length?e[r]=t:e[r]}))));return s.target=e,a||(s.smooth="smooth"===Se.getProperty(e,"scrollBehavior")),s},ot=function(e,t,r){var n=e,i=e,o=Ve(),a=o,s=t||50,l=Math.max(500,3*s),c=function(e,t){var l=Ve();t||l-o>s?(i=n,n=e,a=o,o=l):r?n+=e:n=i+(e-i)/(l-a)*(o-a)};return{update:c,reset:function(){i=n=r?0:n,a=o=0},getVelocity:function(e){var t=a,s=i,u=Ve();return(e||0===e)&&e!==n&&c(e),o===a||u-a>l?0:(n+(r?s:-s))/((r?u:o)-t)*1e3}}},at=function(e,t){return t&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},st=function(e){var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(r)?t:r},lt=function(){var e,t,r,n;(Ye=Se.core.globals().ScrollTrigger)&&Ye.core&&(e=Ye.core,t=e.bridge||{},r=e._scrollers,n=e._proxies,r.push.apply(r,Le),n.push.apply(n,He),Le=r,He=n,qe=function(e,r){return t[e](r)})},ct=function(e){return Se=e||Xe(),!Me&&Se&&"undefined"!=typeof document&&document.body&&(Ce=window,Te=document,Ne=Te.documentElement,Ae=Te.body,Be=[Ce,Te,Ne,Ae],Se.utils.clamp,Re=Se.core.context||function(){},ze="onpointerenter"in Ae?"pointer":"mouse",Fe=ut.isTouch=Ce.matchMedia&&Ce.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Ce||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,De=ut.eventTypes=("ontouchstart"in Ne?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ne?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Ie=0}),500),lt(),Me=1),Me};tt.op=rt,Le.cache=0;var ut=function(){function e(e){this.init(e)}var t,r,n;return e.prototype.init=function(e){Me||ct(Se)||console.warn("Please gsap.registerPlugin(Observer)"),Ye||lt();var t=e.tolerance,r=e.dragMinimum,n=e.type,i=e.target,o=e.lineHeight,a=e.debounce,s=e.preventDefault,l=e.onStop,c=e.onStopDelay,u=e.ignore,f=e.wheelSpeed,p=e.event,d=e.onDragStart,h=e.onDragEnd,g=e.onDrag,m=e.onPress,v=e.onRelease,y=e.onRight,x=e.onLeft,b=e.onUp,w=e.onDown,E=e.onChangeX,_=e.onChangeY,O=e.onChange,P=e.onToggleX,k=e.onToggleY,S=e.onHover,M=e.onHoverEnd,C=e.onMove,T=e.ignoreCheck,N=e.isNormalizer,A=e.onGestureStart,F=e.onGestureEnd,z=e.onWheel,Y=e.onEnable,B=e.onDisable,j=e.onClick,D=e.scrollSpeed,R=e.capture,X=e.allowClicks,I=e.lockAxis,W=e.onLockAxis;this.target=i=nt(i)||Ne,this.vars=e,u&&(u=Se.utils.toArray(u)),t=t||1e-9,r=r||0,f=f||1,D=D||1,n=n||"wheel,touch,pointer",a=!1!==a,o||(o=parseFloat(Ce.getComputedStyle(Ae).lineHeight)||22);var L,H,V,q,U,$,G,Z=this,K=0,J=0,Q=e.passive||!s,ee=it(i,tt),te=it(i,rt),re=ee(),ne=te(),ie=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===De[0],oe=$e(i),ae=i.ownerDocument||Te,se=[0,0,0],le=[0,0,0],ce=0,ue=function(){return ce=Ve()},fe=function(e,t){return(Z.event=e)&&u&&~u.indexOf(e.target)||t&&ie&&"touch"!==e.pointerType||T&&T(e,t)},pe=function(){var e=Z.deltaX=st(se),r=Z.deltaY=st(le),n=Math.abs(e)>=t,i=Math.abs(r)>=t;O&&(n||i)&&O(Z,e,r,se,le),n&&(y&&Z.deltaX>0&&y(Z),x&&Z.deltaX<0&&x(Z),E&&E(Z),P&&Z.deltaX<0!=K<0&&P(Z),K=Z.deltaX,se[0]=se[1]=se[2]=0),i&&(w&&Z.deltaY>0&&w(Z),b&&Z.deltaY<0&&b(Z),_&&_(Z),k&&Z.deltaY<0!=J<0&&k(Z),J=Z.deltaY,le[0]=le[1]=le[2]=0),(q||V)&&(C&&C(Z),V&&(g(Z),V=!1),q=!1),$&&!($=!1)&&W&&W(Z),U&&(z(Z),U=!1),L=0},de=function(e,t,r){se[r]+=e,le[r]+=t,Z._vx.update(e),Z._vy.update(t),a?L||(L=requestAnimationFrame(pe)):pe()},he=function(e,t){I&&!G&&(Z.axis=G=Math.abs(e)>Math.abs(t)?"x":"y",$=!0),"y"!==G&&(se[2]+=e,Z._vx.update(e,!0)),"x"!==G&&(le[2]+=t,Z._vy.update(t,!0)),a?L||(L=requestAnimationFrame(pe)):pe()},ge=function(e){if(!fe(e,1)){var t=(e=at(e,s)).clientX,n=e.clientY,i=t-Z.x,o=n-Z.y,a=Z.isDragging;Z.x=t,Z.y=n,(a||Math.abs(Z.startX-t)>=r||Math.abs(Z.startY-n)>=r)&&(g&&(V=!0),a||(Z.isDragging=!0),he(i,o),a||d&&d(Z))}},me=Z.onPress=function(e){fe(e,1)||e&&e.button||(Z.axis=G=null,H.pause(),Z.isPressed=!0,e=at(e),K=J=0,Z.startX=Z.x=e.clientX,Z.startY=Z.y=e.clientY,Z._vx.reset(),Z._vy.reset(),Ge(N?i:ae,De[1],ge,Q,!0),Z.deltaX=Z.deltaY=0,m&&m(Z))},ve=Z.onRelease=function(e){if(!fe(e,1)){Ze(N?i:ae,De[1],ge,!0);var t=!isNaN(Z.y-Z.startY),r=Z.isDragging,n=r&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),o=at(e);!n&&t&&(Z._vx.reset(),Z._vy.reset(),s&&X&&Se.delayedCall(.08,(function(){if(Ve()-ce>300&&!e.defaultPrevented)if(e.target.click)e.target.click();else if(ae.createEvent){var t=ae.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,Ce,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}))),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&r&&!N&&H.restart(!0),h&&r&&h(Z),v&&v(Z,n)}},ye=function(e){return e.touches&&e.touches.length>1&&(Z.isGesturing=!0)&&A(e,Z.isDragging)},xe=function(){return(Z.isGesturing=!1)||F(Z)},be=function(e){if(!fe(e)){var t=ee(),r=te();de((t-re)*D,(r-ne)*D,1),re=t,ne=r,l&&H.restart(!0)}},we=function(e){if(!fe(e)){e=at(e,s),z&&(U=!0);var t=(1===e.deltaMode?o:2===e.deltaMode?Ce.innerHeight:1)*f;de(e.deltaX*t,e.deltaY*t,0),l&&!N&&H.restart(!0)}},Ee=function(e){if(!fe(e)){var t=e.clientX,r=e.clientY,n=t-Z.x,i=r-Z.y;Z.x=t,Z.y=r,q=!0,l&&H.restart(!0),(n||i)&&he(n,i)}},_e=function(e){Z.event=e,S(Z)},Oe=function(e){Z.event=e,M(Z)},Pe=function(e){return fe(e)||at(e,s)&&j(Z)};H=Z._dc=Se.delayedCall(c||.25,(function(){Z._vx.reset(),Z._vy.reset(),H.pause(),l&&l(Z)})).pause(),Z.deltaX=Z.deltaY=0,Z._vx=ot(0,50,!0),Z._vy=ot(0,50,!0),Z.scrollX=ee,Z.scrollY=te,Z.isDragging=Z.isGesturing=Z.isPressed=!1,Re(this),Z.enable=function(e){return Z.isEnabled||(Ge(oe?ae:i,"scroll",Qe),n.indexOf("scroll")>=0&&Ge(oe?ae:i,"scroll",be,Q,R),n.indexOf("wheel")>=0&&Ge(i,"wheel",we,Q,R),(n.indexOf("touch")>=0&&Fe||n.indexOf("pointer")>=0)&&(Ge(i,De[0],me,Q,R),Ge(ae,De[2],ve),Ge(ae,De[3],ve),X&&Ge(i,"click",ue,!0,!0),j&&Ge(i,"click",Pe),A&&Ge(ae,"gesturestart",ye),F&&Ge(ae,"gestureend",xe),S&&Ge(i,ze+"enter",_e),M&&Ge(i,ze+"leave",Oe),C&&Ge(i,ze+"move",Ee)),Z.isEnabled=!0,e&&e.type&&me(e),Y&&Y(Z)),Z},Z.disable=function(){Z.isEnabled&&(We.filter((function(e){return e!==Z&&$e(e.target)})).length||Ze(oe?ae:i,"scroll",Qe),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Ze(N?i:ae,De[1],ge,!0)),Ze(oe?ae:i,"scroll",be,R),Ze(i,"wheel",we,R),Ze(i,De[0],me,R),Ze(ae,De[2],ve),Ze(ae,De[3],ve),Ze(i,"click",ue,!0),Ze(i,"click",Pe),Ze(ae,"gesturestart",ye),Ze(ae,"gestureend",xe),Ze(i,ze+"enter",_e),Ze(i,ze+"leave",Oe),Ze(i,ze+"move",Ee),Z.isEnabled=Z.isPressed=Z.isDragging=!1,B&&B(Z))},Z.kill=Z.revert=function(){Z.disable();var e=We.indexOf(Z);e>=0&&We.splice(e,1),je===Z&&(je=0)},We.push(Z),N&&$e(i)&&(je=Z),Z.enable(p)},t=e,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&ke(t.prototype,r),n&&ke(t,n),e}();ut.version="3.12.5",ut.create=function(e){return new ut(e)},ut.register=ct,ut.getAll=function(){return We.slice()},ut.getById=function(e){return We.filter((function(t){return t.vars.id===e}))[0]},Xe()&&Se.registerPlugin(ut);var ft,pt,dt,ht,gt,mt,vt,yt,xt,bt,wt,Et,_t,Ot,Pt,kt,St,Mt,Ct,Tt,Nt,At,Ft,zt,Yt,Bt,jt,Dt,Rt,Xt,It,Wt,Lt,Ht,Vt,qt,Ut,$t,Gt=1,Zt=Date.now,Kt=Zt(),Jt=0,Qt=0,er=function(e,t,r){var n=hr(e)&&("clamp("===e.substr(0,6)||e.indexOf("max")>-1);return r["_"+t+"Clamp"]=n,n?e.substr(6,e.length-7):e},tr=function(e,t){return!t||hr(e)&&"clamp("===e.substr(0,6)?e:"clamp("+e+")"},rr=function e(){return Qt&&requestAnimationFrame(e)},nr=function(){return Ot=1},ir=function(){return Ot=0},or=function(e){return e},ar=function(e){return Math.round(1e5*e)/1e5||0},sr=function(){return"undefined"!=typeof window},lr=function(){return ft||sr()&&(ft=window.gsap)&&ft.registerPlugin&&ft},cr=function(e){return!!~vt.indexOf(e)},ur=function(e){return("Height"===e?It:dt["inner"+e])||gt["client"+e]||mt["client"+e]},fr=function(e){return Ue(e,"getBoundingClientRect")||(cr(e)?function(){return Pn.width=dt.innerWidth,Pn.height=It,Pn}:function(){return jr(e)})},pr=function(e,t){var r=t.s,n=t.d2,i=t.d,o=t.a;return Math.max(0,(r="scroll"+n)&&(o=Ue(e,r))?o()-fr(e)()[i]:cr(e)?(gt[r]||mt[r])-ur(n):e[r]-e["offset"+n])},dr=function(e,t){for(var r=0;r<Ct.length;r+=3)(!t||~t.indexOf(Ct[r+1]))&&e(Ct[r],Ct[r+1],Ct[r+2])},hr=function(e){return"string"==typeof e},gr=function(e){return"function"==typeof e},mr=function(e){return"number"==typeof e},vr=function(e){return"object"==typeof e},yr=function(e,t,r){return e&&e.progress(t?0:1)&&r&&e.pause()},xr=function(e,t){if(e.enabled){var r=e._ctx?e._ctx.add((function(){return t(e)})):t(e);r&&r.totalTime&&(e.callbackAnimation=r)}},br=Math.abs,wr="left",Er="right",_r="bottom",Or="width",Pr="height",kr="Right",Sr="Left",Mr="Top",Cr="Bottom",Tr="padding",Nr="margin",Ar="Width",Fr="Height",zr="px",Yr=function(e){return dt.getComputedStyle(e)},Br=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},jr=function(e,t){var r=t&&"matrix(1, 0, 0, 1, 0, 0)"!==Yr(e)[Pt]&&ft.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=e.getBoundingClientRect();return r&&r.progress(0).kill(),n},Dr=function(e,t){var r=t.d2;return e["offset"+r]||e["client"+r]||0},Rr=function(e){var t,r=[],n=e.labels,i=e.duration();for(t in n)r.push(n[t]/i);return r},Xr=function(e){var t=ft.utils.snap(e),r=Array.isArray(e)&&e.slice(0).sort((function(e,t){return e-t}));return r?function(e,n,i){var o;if(void 0===i&&(i=.001),!n)return t(e);if(n>0){for(e-=i,o=0;o<r.length;o++)if(r[o]>=e)return r[o];return r[o-1]}for(o=r.length,e+=i;o--;)if(r[o]<=e)return r[o];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var o=t(r);return!n||Math.abs(o-r)<i||o-r<0==n<0?o:t(n<0?r-e:r+e)}},Ir=function(e,t,r,n){return r.split(",").forEach((function(r){return e(t,r,n)}))},Wr=function(e,t,r,n,i){return e.addEventListener(t,r,{passive:!n,capture:!!i})},Lr=function(e,t,r,n){return e.removeEventListener(t,r,!!n)},Hr=function(e,t,r){(r=r&&r.wheelHandler)&&(e(t,"wheel",r),e(t,"touchmove",r))},Vr={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},qr={toggleActions:"play",anticipatePin:0},Ur={top:0,left:0,center:.5,bottom:1,right:1},$r=function(e,t){if(hr(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 Ur?Ur[e]*t:~e.indexOf("%")?parseFloat(e)*t/100:parseFloat(e)||0)}return e},Gr=function(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=ht.createElement("div"),h=cr(r)||"fixed"===Ue(r,"pinType"),g=-1!==e.indexOf("scroller"),m=h?mt:r,v=-1!==e.indexOf("start"),y=v?l:c,x="border-color:"+y+";font-size:"+u+";color:"+y+";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:"+((g||s)&&h?"fixed;":"absolute;"),(g||s||!h)&&(x+=(n===rt?Er:_r)+":"+(o+parseFloat(f))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),d._isStart=v,d.setAttribute("class","gsap-marker-"+e+(t?" marker-"+t:"")),d.style.cssText=x,d.innerText=t||0===t?e+"-"+t:e,m.children[0]?m.insertBefore(d,m.children[0]):m.appendChild(d),d._offset=d["offset"+n.op.d2],Zr(d,0,n,v),d},Zr=function(e,t,r,n){var i={display:"block"},o=r[n?"os2":"p2"],a=r[n?"p2":"os2"];e._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+o+Ar]=1,i["border"+a+Ar]=0,i[r.p]=t+"px",ft.set(e,i)},Kr=[],Jr={},Qr=function(){return Zt()-Jt>34&&(Vt||(Vt=requestAnimationFrame(yn)))},en=function(){(!Ft||!Ft.isPressed||Ft.startX>mt.clientWidth)&&(Le.cache++,Ft?Vt||(Vt=requestAnimationFrame(yn)):yn(),Jt||sn("scrollStart"),Jt=Zt())},tn=function(){Bt=dt.innerWidth,Yt=dt.innerHeight},rn=function(){Le.cache++,!_t&&!At&&!ht.fullscreenElement&&!ht.webkitFullscreenElement&&(!zt||Bt!==dt.innerWidth||Math.abs(dt.innerHeight-Yt)>.25*dt.innerHeight)&&yt.restart(!0)},nn={},on=[],an=function e(){return Lr(An,"scrollEnd",e)||gn(!0)},sn=function(e){return nn[e]&&nn[e].map((function(e){return e()}))||on},ln=[],cn=function(e){for(var t=0;t<ln.length;t+=5)(!e||ln[t+4]&&ln[t+4].query===e)&&(ln[t].style.cssText=ln[t+1],ln[t].getBBox&&ln[t].setAttribute("transform",ln[t+2]||""),ln[t+3].uncache=1)},un=function(e,t){var r;for(kt=0;kt<Kr.length;kt++)!(r=Kr[kt])||t&&r._ctx!==t||(e?r.kill(1):r.revert(!0,!0));Wt=!0,t&&cn(t),t||sn("revert")},fn=function(e,t){Le.cache++,(t||!qt)&&Le.forEach((function(e){return gr(e)&&e.cacheID++&&(e.rec=0)})),hr(e)&&(dt.history.scrollRestoration=Rt=e)},pn=0,dn=function(){mt.appendChild(Xt),It=!Ft&&Xt.offsetHeight||dt.innerHeight,mt.removeChild(Xt)},hn=function(e){return xt(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(t){return t.style.display=e?"none":"block"}))},gn=function(e,t){if(!Jt||e||Wt){dn(),qt=An.isRefreshing=!0,Le.forEach((function(e){return gr(e)&&++e.cacheID&&(e.rec=e())}));var r=sn("refreshInit");Tt&&An.sort(),t||un(),Le.forEach((function(e){gr(e)&&(e.smooth&&(e.target.style.scrollBehavior="auto"),e(0))})),Kr.slice(0).forEach((function(e){return e.refresh()})),Wt=!1,Kr.forEach((function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?"offsetWidth":"offsetHeight",r=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-r),e.refresh()}})),Lt=1,hn(!0),Kr.forEach((function(e){var t=pr(e.scroller,e._dir),r="max"===e.vars.end||e._endClamp&&e.end>t,n=e._startClamp&&e.start>=t;(r||n)&&e.setPositions(n?t-1:e.start,r?Math.max(n?t:e.start+1,t):e.end,!0)})),hn(!1),Lt=0,r.forEach((function(e){return e&&e.render&&e.render(-1)})),Le.forEach((function(e){gr(e)&&(e.smooth&&requestAnimationFrame((function(){return e.target.style.scrollBehavior="smooth"})),e.rec&&e(e.rec))})),fn(Rt,1),yt.pause(),pn++,qt=2,yn(2),Kr.forEach((function(e){return gr(e.vars.onRefresh)&&e.vars.onRefresh(e)})),qt=An.isRefreshing=!1,sn("refresh")}else Wr(An,"scrollEnd",an)},mn=0,vn=1,yn=function(e){if(2===e||!qt&&!Wt){An.isUpdating=!0,$t&&$t.update(0);var t=Kr.length,r=Zt(),n=r-Kt>=50,i=t&&Kr[0].scroll();if(vn=mn>i?-1:1,qt||(mn=i),n&&(Jt&&!Ot&&r-Jt>200&&(Jt=0,sn("scrollEnd")),wt=Kt,Kt=r),vn<0){for(kt=t;kt-- >0;)Kr[kt]&&Kr[kt].update(0,n);vn=1}else for(kt=0;kt<t;kt++)Kr[kt]&&Kr[kt].update(0,n);An.isUpdating=!1}Vt=0},xn=[wr,"top",_r,Er,Nr+Cr,Nr+kr,Nr+Mr,Nr+Sr,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],bn=xn.concat([Or,Pr,"boxSizing","max"+Ar,"max"+Fr,"position",Nr,Tr,Tr+Mr,Tr+kr,Tr+Cr,Tr+Sr]),wn=function(e,t,r,n){if(!e._gsap.swappedIn){for(var i,o=xn.length,a=t.style,s=e.style;o--;)a[i=xn[o]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),s[_r]=s[Er]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[Or]=Dr(e,tt)+zr,a[Pr]=Dr(e,rt)+zr,a[Tr]=s[Nr]=s.top=s[wr]="0",_n(n),s[Or]=s["max"+Ar]=r[Or],s[Pr]=s["max"+Fr]=r[Pr],s[Tr]=r[Tr],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},En=/([A-Z])/g,_n=function(e){if(e){var t,r,n=e.t.style,i=e.length,o=0;for((e.t._gsap||ft.core.getCache(e.t)).uncache=1;o<i;o+=2)r=e[o+1],t=e[o],r?n[t]=r:n[t]&&n.removeProperty(t.replace(En,"-$1").toLowerCase())}},On=function(e){for(var t=bn.length,r=e.style,n=[],i=0;i<t;i++)n.push(bn[i],r[bn[i]]);return n.t=e,n},Pn={left:0,top:0},kn=function(e,t,r,n,i,o,a,s,l,c,u,f,p,d){gr(e)&&(e=e(s)),hr(e)&&"max"===e.substr(0,3)&&(e=f+("="===e.charAt(4)?$r("0"+e.substr(3),r):0));var h,g,m,v=p?p.time():0;if(p&&p.seek(0),isNaN(e)||(e=+e),mr(e))p&&(e=ft.utils.mapRange(p.scrollTrigger.start,p.scrollTrigger.end,0,f,e)),a&&Zr(a,r,n,!0);else{gr(t)&&(t=t(s));var y,x,b,w,E=(e||"0").split(" ");m=nt(t,s)||mt,(y=jr(m)||{})&&(y.left||y.top)||"none"!==Yr(m).display||(w=m.style.display,m.style.display="block",y=jr(m),w?m.style.display=w:m.style.removeProperty("display")),x=$r(E[0],y[n.d]),b=$r(E[1]||"0",r),e=y[n.p]-l[n.p]-c+x+i-b,a&&Zr(a,b,n,r-b<20||a._isStart&&b>20),r-=r-b}if(d&&(s[d]=e||-.001,e<0&&(e=0)),o){var _=e+r,O=o._isStart;h="scroll"+n.d2,Zr(o,_,n,O&&_>20||!O&&(u?Math.max(mt[h],gt[h]):o.parentNode[h])<=_+1),u&&(l=jr(a),u&&(o.style[n.op.p]=l[n.op.p]-n.op.m-o._offset+zr))}return p&&m&&(h=jr(m),p.seek(f),g=jr(m),p._caScrollDist=h[n.p]-g[n.p],e=e/p._caScrollDist*f),p&&p.seek(v),p?e:Math.round(e)},Sn=/(webkit|moz|length|cssText|inset)/i,Mn=function(e,t,r,n){if(e.parentNode!==t){var i,o,a=e.style;if(t===mt){for(i in e._stOrig=a.cssText,o=Yr(e))+i||Sn.test(i)||!o[i]||"string"!=typeof a[i]||"0"===i||(a[i]=o[i]);a.top=r,a.left=n}else a.cssText=e._stOrig;ft.core.getCache(e).uncache=1,t.appendChild(e)}},Cn=function(e,t,r){var n=t,i=n;return function(t){var o=Math.round(e());return o!==n&&o!==i&&Math.abs(o-n)>3&&Math.abs(o-i)>3&&(t=o,r&&r()),i=n,n=t,t}},Tn=function(e,t,r){var n={};n[t.p]="+="+r,ft.set(e,n)},Nn=function(e,t){var r=it(e,t),n="_scroll"+t.p2,i=function t(i,o,a,s,l){var c=t.tween,u=o.onComplete,f={};a=a||r();var p=Cn(r,a,(function(){c.kill(),t.tween=0}));return l=s&&l||0,s=s||i-a,c&&c.kill(),o[n]=i,o.inherit=!1,o.modifiers=f,f[n]=function(){return p(a+s*c.ratio+l*c.ratio*c.ratio)},o.onUpdate=function(){Le.cache++,t.tween&&yn()},o.onComplete=function(){t.tween=0,u&&u.call(c)},c=t.tween=ft.to(e,o)};return e[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Wr(e,"wheel",r.wheelHandler),An.isTouch&&Wr(e,"touchmove",r.wheelHandler),i},An=function(){function e(t,r){pt||e.register(ft)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Dt(this),this.init(t,r)}return e.prototype.init=function(t,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Qt){var n,i,o,a,s,l,c,u,f,p,d,h,g,m,v,y,x,b,w,E,_,O,P,k,S,M,C,T,N,A,F,z,Y,B,j,D,R,X,I,W,L,H,V=t=Br(hr(t)||mr(t)||t.nodeType?{trigger:t}:t,qr),q=V.onUpdate,U=V.toggleClass,$=V.id,G=V.onToggle,Z=V.onRefresh,K=V.scrub,J=V.trigger,Q=V.pin,ee=V.pinSpacing,te=V.invalidateOnRefresh,re=V.anticipatePin,ne=V.onScrubComplete,ie=V.onSnapComplete,oe=V.once,ae=V.snap,se=V.pinReparent,le=V.pinSpacer,ce=V.containerAnimation,ue=V.fastScrollEnd,fe=V.preventOverlaps,pe=t.horizontal||t.containerAnimation&&!1!==t.horizontal?tt:rt,de=!K&&0!==K,he=nt(t.scroller||dt),ge=ft.core.getCache(he),me=cr(he),ve="fixed"===("pinType"in t?t.pinType:Ue(he,"pinType")||me&&"fixed"),ye=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],xe=de&&t.toggleActions.split(" "),be="markers"in t?t.markers:qr.markers,we=me?0:parseFloat(Yr(he)["border"+pe.p2+Ar])||0,Ee=this,_e=t.onRefreshInit&&function(){return t.onRefreshInit(Ee)},Oe=function(e,t,r){var n=r.d,i=r.d2,o=r.a;return(o=Ue(e,"getBoundingClientRect"))?function(){return o()[n]}:function(){return(t?ur(i):e["client"+i])||0}}(he,me,pe),Pe=function(e,t){return!t||~He.indexOf(e)?fr(e):function(){return Pn}}(he,me),ke=0,Se=0,Me=0,Ce=it(he,pe);if(Ee._startClamp=Ee._endClamp=!1,Ee._dir=pe,re*=45,Ee.scroller=he,Ee.scroll=ce?ce.time.bind(ce):Ce,a=Ce(),Ee.vars=t,r=r||t.animation,"refreshPriority"in t&&(Tt=1,-9999===t.refreshPriority&&($t=Ee)),ge.tweenScroll=ge.tweenScroll||{top:Nn(he,rt),left:Nn(he,tt)},Ee.tweenTo=n=ge.tweenScroll[pe.p],Ee.scrubDuration=function(e){(Y=mr(e)&&e)?z?z.duration(e):z=ft.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Y,paused:!0,onComplete:function(){return ne&&ne(Ee)}}):(z&&z.progress(1).kill(),z=0)},r&&(r.vars.lazy=!1,r._initted&&!Ee.isReverted||!1!==r.vars.immediateRender&&!1!==t.immediateRender&&r.duration()&&r.render(0,!0,!0),Ee.animation=r.pause(),r.scrollTrigger=Ee,Ee.scrubDuration(K),A=0,$||($=r.vars.id)),ae&&(vr(ae)&&!ae.push||(ae={snapTo:ae}),"scrollBehavior"in mt.style&&ft.set(me?[mt,gt]:he,{scrollBehavior:"auto"}),Le.forEach((function(e){return gr(e)&&e.target===(me?ht.scrollingElement||gt:he)&&(e.smooth=!1)})),o=gr(ae.snapTo)?ae.snapTo:"labels"===ae.snapTo?function(e){return function(t){return ft.utils.snap(Rr(e),t)}}(r):"labelsDirectional"===ae.snapTo?(W=r,function(e,t){return Xr(Rr(W))(e,t.direction)}):!1!==ae.directional?function(e,t){return Xr(ae.snapTo)(e,Zt()-Se<500?0:t.direction)}:ft.utils.snap(ae.snapTo),B=ae.duration||{min:.1,max:2},B=vr(B)?bt(B.min,B.max):bt(B,B),j=ft.delayedCall(ae.delay||Y/2||.1,(function(){var e=Ce(),t=Zt()-Se<500,i=n.tween;if(!(t||Math.abs(Ee.getVelocity())<10)||i||Ot||ke===e)Ee.isActive&&ke!==e&&j.restart(!0);else{var a,s,u=(e-l)/m,f=r&&!de?r.totalProgress():u,p=t?0:(f-F)/(Zt()-wt)*1e3||0,d=ft.utils.clamp(-u,1-u,br(p/2)*p/.185),h=u+(!1===ae.inertia?0:d),g=ae,v=g.onStart,y=g.onInterrupt,x=g.onComplete;if(a=o(h,Ee),mr(a)||(a=h),s=Math.round(l+a*m),e<=c&&e>=l&&s!==e){if(i&&!i._initted&&i.data<=br(s-e))return;!1===ae.inertia&&(d=a-u),n(s,{duration:B(br(.185*Math.max(br(h-f),br(a-f))/p/.05||0)),ease:ae.ease||"power3",data:br(s-e),onInterrupt:function(){return j.restart(!0)&&y&&y(Ee)},onComplete:function(){Ee.update(),ke=Ce(),r&&(z?z.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),A=F=r&&!de?r.totalProgress():Ee.progress,ie&&ie(Ee),x&&x(Ee)}},e,d*m,s-e-d*m),v&&v(Ee,n.tween)}}})).pause()),$&&(Jr[$]=Ee),(I=(J=Ee.trigger=nt(J||!0!==Q&&Q))&&J._gsap&&J._gsap.stRevert)&&(I=I(Ee)),Q=!0===Q?J:nt(Q),hr(U)&&(U={targets:J,className:U}),Q&&(!1===ee||ee===Nr||(ee=!(!ee&&Q.parentNode&&Q.parentNode.style&&"flex"===Yr(Q.parentNode).display)&&Tr),Ee.pin=Q,(i=ft.core.getCache(Q)).spacer?v=i.pinState:(le&&((le=nt(le))&&!le.nodeType&&(le=le.current||le.nativeElement),i.spacerIsNative=!!le,le&&(i.spacerState=On(le))),i.spacer=b=le||ht.createElement("div"),b.classList.add("pin-spacer"),$&&b.classList.add("pin-spacer-"+$),i.pinState=v=On(Q)),!1!==t.force3D&&ft.set(Q,{force3D:!0}),Ee.spacer=b=i.spacer,N=Yr(Q),k=N[ee+pe.os2],E=ft.getProperty(Q),_=ft.quickSetter(Q,pe.a,zr),wn(Q,b,N),x=On(Q)),be){h=vr(be)?Br(be,Vr):Vr,p=Gr("scroller-start",$,he,pe,h,0),d=Gr("scroller-end",$,he,pe,h,0,p),w=p["offset"+pe.op.d2];var Te=nt(Ue(he,"content")||he);u=this.markerStart=Gr("start",$,Te,pe,h,w,0,ce),f=this.markerEnd=Gr("end",$,Te,pe,h,w,0,ce),ce&&(X=ft.quickSetter([u,f],pe.a,zr)),ve||He.length&&!0===Ue(he,"fixedMarkers")||(H=Yr(L=me?mt:he).position,L.style.position="absolute"===H||"fixed"===H?H:"relative",ft.set([p,d],{force3D:!0}),M=ft.quickSetter(p,pe.a,zr),T=ft.quickSetter(d,pe.a,zr))}if(ce){var Ne=ce.vars.onUpdate,Ae=ce.vars.onUpdateParams;ce.eventCallback("onUpdate",(function(){Ee.update(0,0,1),Ne&&Ne.apply(ce,Ae||[])}))}if(Ee.previous=function(){return Kr[Kr.indexOf(Ee)-1]},Ee.next=function(){return Kr[Kr.indexOf(Ee)+1]},Ee.revert=function(e,t){if(!t)return Ee.kill(!0);var n=!1!==e||!Ee.enabled,i=_t;n!==Ee.isReverted&&(n&&(D=Math.max(Ce(),Ee.scroll.rec||0),Me=Ee.progress,R=r&&r.progress()),u&&[u,f,p,d].forEach((function(e){return e.style.display=n?"none":"block"})),n&&(_t=Ee,Ee.update(n)),!Q||se&&Ee.isActive||(n?function(e,t,r){_n(r);var n=e._gsap;if(n.spacerIsNative)_n(n.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1}(Q,b,v):wn(Q,b,Yr(Q),S)),n||Ee.update(n),_t=i,Ee.isReverted=n)},Ee.refresh=function(i,o,h,w){if(!_t&&Ee.enabled||o)if(Q&&i&&Jt)Wr(e,"scrollEnd",an);else{!qt&&_e&&_e(Ee),_t=Ee,n.tween&&!h&&(n.tween.kill(),n.tween=0),z&&z.pause(),te&&r&&r.revert({kill:!1}).invalidate(),Ee.isReverted||Ee.revert(!0,!0),Ee._subPinOffset=!1;var _,k,M,T,N,A,F,Y,B,X,I,W,L,H=Oe(),V=Pe(),q=ce?ce.duration():pr(he,pe),U=m<=.01,$=0,G=w||0,K=vr(h)?h.end:t.end,re=t.endTrigger||J,ne=vr(h)?h.start:t.start||(0!==t.start&&J?Q?"0 0":"0 100%":0),ie=Ee.pinnedContainer=t.pinnedContainer&&nt(t.pinnedContainer,Ee),oe=J&&Math.max(0,Kr.indexOf(Ee))||0,ae=oe;for(be&&vr(h)&&(W=ft.getProperty(p,pe.p),L=ft.getProperty(d,pe.p));ae--;)(A=Kr[ae]).end||A.refresh(0,1)||(_t=Ee),!(F=A.pin)||F!==J&&F!==Q&&F!==ie||A.isReverted||(X||(X=[]),X.unshift(A),A.revert(!0,!0)),A!==Kr[ae]&&(oe--,ae--);for(gr(ne)&&(ne=ne(Ee)),ne=er(ne,"start",Ee),l=kn(ne,J,H,pe,Ce(),u,p,Ee,V,we,ve,q,ce,Ee._startClamp&&"_startClamp")||(Q?-.001:0),gr(K)&&(K=K(Ee)),hr(K)&&!K.indexOf("+=")&&(~K.indexOf(" ")?K=(hr(ne)?ne.split(" ")[0]:"")+K:($=$r(K.substr(2),H),K=hr(ne)?ne:(ce?ft.utils.mapRange(0,ce.duration(),ce.scrollTrigger.start,ce.scrollTrigger.end,l):l)+$,re=J)),K=er(K,"end",Ee),c=Math.max(l,kn(K||(re?"100% 0":q),re,H,pe,Ce()+$,f,d,Ee,V,we,ve,q,ce,Ee._endClamp&&"_endClamp"))||-.001,$=0,ae=oe;ae--;)(F=(A=Kr[ae]).pin)&&A.start-A._pinPush<=l&&!ce&&A.end>0&&(_=A.end-(Ee._startClamp?Math.max(0,A.start):A.start),(F===J&&A.start-A._pinPush<l||F===ie)&&isNaN(ne)&&($+=_*(1-A.progress)),F===Q&&(G+=_));if(l+=$,c+=$,Ee._startClamp&&(Ee._startClamp+=$),Ee._endClamp&&!qt&&(Ee._endClamp=c||-.001,c=Math.min(c,pr(he,pe))),m=c-l||(l-=.01)&&.001,U&&(Me=ft.utils.clamp(0,1,ft.utils.normalize(l,c,D))),Ee._pinPush=G,u&&$&&((_={})[pe.a]="+="+$,ie&&(_[pe.p]="-="+Ce()),ft.set([u,f],_)),!Q||Lt&&Ee.end>=pr(he,pe)){if(J&&Ce()&&!ce)for(k=J.parentNode;k&&k!==mt;)k._pinOffset&&(l-=k._pinOffset,c-=k._pinOffset),k=k.parentNode}else _=Yr(Q),T=pe===rt,M=Ce(),O=parseFloat(E(pe.a))+G,!q&&c>1&&(I={style:I=(me?ht.scrollingElement||gt:he).style,value:I["overflow"+pe.a.toUpperCase()]},me&&"scroll"!==Yr(mt)["overflow"+pe.a.toUpperCase()]&&(I.style["overflow"+pe.a.toUpperCase()]="scroll")),wn(Q,b,_),x=On(Q),k=jr(Q,!0),Y=ve&&it(he,T?tt:rt)(),ee?((S=[ee+pe.os2,m+G+zr]).t=b,(ae=ee===Tr?Dr(Q,pe)+m+G:0)&&(S.push(pe.d,ae+zr),"auto"!==b.style.flexBasis&&(b.style.flexBasis=ae+zr)),_n(S),ie&&Kr.forEach((function(e){e.pin===ie&&!1!==e.vars.pinSpacing&&(e._subPinOffset=!0)})),ve&&Ce(D)):(ae=Dr(Q,pe))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=ae+zr),ve&&((N={top:k.top+(T?M-l:Y)+zr,left:k.left+(T?Y:M-l)+zr,boxSizing:"border-box",position:"fixed"})[Or]=N["max"+Ar]=Math.ceil(k.width)+zr,N[Pr]=N["max"+Fr]=Math.ceil(k.height)+zr,N[Nr]=N[Nr+Mr]=N[Nr+kr]=N[Nr+Cr]=N[Nr+Sr]="0",N[Tr]=_[Tr],N[Tr+Mr]=_[Tr+Mr],N[Tr+kr]=_[Tr+kr],N[Tr+Cr]=_[Tr+Cr],N[Tr+Sr]=_[Tr+Sr],y=function(e,t,r){for(var n,i=[],o=e.length,a=r?8:0;a<o;a+=2)n=e[a],i.push(n,n in t?t[n]:e[a+1]);return i.t=e.t,i}(v,N,se),qt&&Ce(0)),r?(B=r._initted,Nt(1),r.render(r.duration(),!0,!0),P=E(pe.a)-O+m+G,C=Math.abs(m-P)>1,ve&&C&&y.splice(y.length-2,2),r.render(0,!0,!0),B||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),Nt(0)):P=m,I&&(I.value?I.style["overflow"+pe.a.toUpperCase()]=I.value:I.style.removeProperty("overflow-"+pe.a));X&&X.forEach((function(e){return e.revert(!1,!0)})),Ee.start=l,Ee.end=c,a=s=qt?D:Ce(),ce||qt||(a<D&&Ce(D),Ee.scroll.rec=0),Ee.revert(!1,!0),Se=Zt(),j&&(ke=-1,j.restart(!0)),_t=0,r&&de&&(r._initted||R)&&r.progress()!==R&&r.progress(R||0,!0).render(r.time(),!0,!0),(U||Me!==Ee.progress||ce||te)&&(r&&!de&&r.totalProgress(ce&&l<-.001&&!Me?ft.utils.normalize(l,c,0):Me,!0),Ee.progress=U||(a-l)/m===Me?0:Me),Q&&ee&&(b._pinOffset=Math.round(Ee.progress*P)),z&&z.invalidate(),isNaN(W)||(W-=ft.getProperty(p,pe.p),L-=ft.getProperty(d,pe.p),Tn(p,pe,W),Tn(u,pe,W-(w||0)),Tn(d,pe,L),Tn(f,pe,L-(w||0))),U&&!qt&&Ee.update(),!Z||qt||g||(g=!0,Z(Ee),g=!1)}},Ee.getVelocity=function(){return(Ce()-s)/(Zt()-wt)*1e3||0},Ee.endAnimation=function(){yr(Ee.callbackAnimation),r&&(z?z.progress(1):r.paused()?de||yr(r,Ee.direction<0,1):yr(r,r.reversed()))},Ee.labelToScroll=function(e){return r&&r.labels&&(l||Ee.refresh()||l)+r.labels[e]/r.duration()*m||0},Ee.getTrailing=function(e){var t=Kr.indexOf(Ee),r=Ee.direction>0?Kr.slice(0,t).reverse():Kr.slice(t+1);return(hr(e)?r.filter((function(t){return t.vars.preventOverlaps===e})):r).filter((function(e){return Ee.direction>0?e.end<=l:e.start>=c}))},Ee.update=function(e,t,i){if(!ce||i||e){var o,u,f,d,h,g,v,w=!0===qt?D:Ee.scroll(),E=e?0:(w-l)/m,S=E<0?0:E>1?1:E||0,N=Ee.progress;if(t&&(s=a,a=ce?Ce():w,ae&&(F=A,A=r&&!de?r.totalProgress():S)),re&&Q&&!_t&&!Gt&&Jt&&(!S&&l<w+(w-s)/(Zt()-wt)*re?S=1e-4:1===S&&c>w+(w-s)/(Zt()-wt)*re&&(S=.9999)),S!==N&&Ee.enabled){if(d=(h=(o=Ee.isActive=!!S&&S<1)!==(!!N&&N<1))||!!S!=!!N,Ee.direction=S>N?1:-1,Ee.progress=S,d&&!_t&&(u=S&&!N?0:1===S?1:1===N?2:3,de&&(f=!h&&"none"!==xe[u+1]&&xe[u+1]||xe[u],v=r&&("complete"===f||"reset"===f||f in r))),fe&&(h||v)&&(v||K||!r)&&(gr(fe)?fe(Ee):Ee.getTrailing(fe).forEach((function(e){return e.endAnimation()}))),de||(!z||_t||Gt?r&&r.totalProgress(S,!(!_t||!Se&&!e)):(z._dp._time-z._start!==z._time&&z.render(z._dp._time-z._start),z.resetTo?z.resetTo("totalProgress",S,r._tTime/r._tDur):(z.vars.totalProgress=S,z.invalidate().restart()))),Q)if(e&&ee&&(b.style[ee+pe.os2]=k),ve){if(d){if(g=!e&&S>N&&c+1>w&&w+1>=pr(he,pe),se)if(e||!o&&!g)Mn(Q,b);else{var Y=jr(Q,!0),B=w-l;Mn(Q,mt,Y.top+(pe===rt?B:0)+zr,Y.left+(pe===rt?0:B)+zr)}_n(o||g?y:x),C&&S<1&&o||_(O+(1!==S||g?0:P))}}else _(ar(O+P*S));ae&&!n.tween&&!_t&&!Gt&&j.restart(!0),U&&(h||oe&&S&&(S<1||!Ht))&&xt(U.targets).forEach((function(e){return e.classList[o||oe?"add":"remove"](U.className)})),q&&!de&&!e&&q(Ee),d&&!_t?(de&&(v&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),q&&q(Ee)),!h&&Ht||(G&&h&&xr(Ee,G),ye[u]&&xr(Ee,ye[u]),oe&&(1===S?Ee.kill(!1,1):ye[u]=0),h||ye[u=1===S?1:3]&&xr(Ee,ye[u])),ue&&!o&&Math.abs(Ee.getVelocity())>(mr(ue)?ue:2500)&&(yr(Ee.callbackAnimation),z?z.progress(1):yr(r,"reverse"===f?1:!S,1))):de&&q&&!_t&&q(Ee)}if(T){var R=ce?w/ce.duration()*(ce._caScrollDist||0):w;M(R+(p._isFlipped?1:0)),T(R)}X&&X(-w/ce.duration()*(ce._caScrollDist||0))}},Ee.enable=function(t,r){Ee.enabled||(Ee.enabled=!0,Wr(he,"resize",rn),me||Wr(he,"scroll",en),_e&&Wr(e,"refreshInit",_e),!1!==t&&(Ee.progress=Me=0,a=s=ke=Ce()),!1!==r&&Ee.refresh())},Ee.getTween=function(e){return e&&n?n.tween:z},Ee.setPositions=function(e,t,r,n){if(ce){var i=ce.scrollTrigger,o=ce.duration(),a=i.end-i.start;e=i.start+a*e/o,t=i.start+a*t/o}Ee.refresh(!1,!1,{start:tr(e,r&&!!Ee._startClamp),end:tr(t,r&&!!Ee._endClamp)},n),Ee.update()},Ee.adjustPinSpacing=function(e){if(S&&e){var t=S.indexOf(pe.d)+1;S[t]=parseFloat(S[t])+e+zr,S[1]=parseFloat(S[1])+e+zr,_n(S)}},Ee.disable=function(t,r){if(Ee.enabled&&(!1!==t&&Ee.revert(!0,!0),Ee.enabled=Ee.isActive=!1,r||z&&z.pause(),D=0,i&&(i.uncache=1),_e&&Lr(e,"refreshInit",_e),j&&(j.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!me)){for(var o=Kr.length;o--;)if(Kr[o].scroller===he&&Kr[o]!==Ee)return;Lr(he,"resize",rn),me||Lr(he,"scroll",en)}},Ee.kill=function(e,n){Ee.disable(e,n),z&&!n&&z.kill(),$&&delete Jr[$];var o=Kr.indexOf(Ee);o>=0&&Kr.splice(o,1),o===kt&&vn>0&&kt--,o=0,Kr.forEach((function(e){return e.scroller===Ee.scroller&&(o=1)})),o||qt||(Ee.scroll.rec=0),r&&(r.scrollTrigger=null,e&&r.revert({kill:!1}),n||r.kill()),u&&[u,f,p,d].forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),$t===Ee&&($t=0),Q&&(i&&(i.uncache=1),o=0,Kr.forEach((function(e){return e.pin===Q&&o++})),o||(i.spacer=0)),t.onKill&&t.onKill(Ee)},Kr.push(Ee),Ee.enable(!1,!1),I&&I(Ee),r&&r.add&&!m){var Fe=Ee.update;Ee.update=function(){Ee.update=Fe,l||c||Ee.refresh()},ft.delayedCall(.01,Ee.update),m=.01,l=c=0}else Ee.refresh();Q&&function(){if(Ut!==pn){var e=Ut=pn;requestAnimationFrame((function(){return e===pn&&gn(!0)}))}}()}else this.update=this.refresh=this.kill=or},e.register=function(t){return pt||(ft=t||lr(),sr()&&window.document&&e.enable(),pt=Qt),pt},e.defaults=function(e){if(e)for(var t in e)qr[t]=e[t];return qr},e.disable=function(e,t){Qt=0,Kr.forEach((function(r){return r[t?"kill":"disable"](e)})),Lr(dt,"wheel",en),Lr(ht,"scroll",en),clearInterval(Et),Lr(ht,"touchcancel",or),Lr(mt,"touchstart",or),Ir(Lr,ht,"pointerdown,touchstart,mousedown",nr),Ir(Lr,ht,"pointerup,touchend,mouseup",ir),yt.kill(),dr(Lr);for(var r=0;r<Le.length;r+=3)Hr(Lr,Le[r],Le[r+1]),Hr(Lr,Le[r],Le[r+2])},e.enable=function(){if(dt=window,ht=document,gt=ht.documentElement,mt=ht.body,ft&&(xt=ft.utils.toArray,bt=ft.utils.clamp,Dt=ft.core.context||or,Nt=ft.core.suppressOverwrites||or,Rt=dt.history.scrollRestoration||"auto",mn=dt.pageYOffset,ft.core.globals("ScrollTrigger",e),mt)){Qt=1,(Xt=document.createElement("div")).style.height="100vh",Xt.style.position="absolute",dn(),rr(),ut.register(ft),e.isTouch=ut.isTouch,jt=ut.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),zt=1===ut.isTouch,Wr(dt,"wheel",en),vt=[dt,ht,gt,mt],ft.matchMedia?(e.matchMedia=function(e){var t,r=ft.matchMedia();for(t in e)r.add(t,e[t]);return r},ft.addEventListener("matchMediaInit",(function(){return un()})),ft.addEventListener("matchMediaRevert",(function(){return cn()})),ft.addEventListener("matchMedia",(function(){gn(0,1),sn("matchMedia")})),ft.matchMedia("(orientation: portrait)",(function(){return tn(),tn}))):console.warn("Requires GSAP 3.11.0 or later"),tn(),Wr(ht,"scroll",en);var t,r,n=mt.style,i=n.borderTopStyle,o=ft.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle="solid",t=jr(mt),rt.m=Math.round(t.top+rt.sc())||0,tt.m=Math.round(t.left+tt.sc())||0,i?n.borderTopStyle=i:n.removeProperty("border-top-style"),Et=setInterval(Qr,250),ft.delayedCall(.5,(function(){return Gt=0})),Wr(ht,"touchcancel",or),Wr(mt,"touchstart",or),Ir(Wr,ht,"pointerdown,touchstart,mousedown",nr),Ir(Wr,ht,"pointerup,touchend,mouseup",ir),Pt=ft.utils.checkPrefix("transform"),bn.push(Pt),pt=Zt(),yt=ft.delayedCall(.2,gn).pause(),Ct=[ht,"visibilitychange",function(){var e=dt.innerWidth,t=dt.innerHeight;ht.hidden?(St=e,Mt=t):St===e&&Mt===t||rn()},ht,"DOMContentLoaded",gn,dt,"load",gn,dt,"resize",rn],dr(Wr),Kr.forEach((function(e){return e.enable(0,1)})),r=0;r<Le.length;r+=3)Hr(Lr,Le[r],Le[r+1]),Hr(Lr,Le[r],Le[r+2])}},e.config=function(t){"limitCallbacks"in t&&(Ht=!!t.limitCallbacks);var r=t.syncInterval;r&&clearInterval(Et)||(Et=r)&&setInterval(Qr,r),"ignoreMobileResize"in t&&(zt=1===e.isTouch&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(dr(Lr)||dr(Wr,t.autoRefreshEvents||"none"),At=-1===(t.autoRefreshEvents+"").indexOf("resize"))},e.scrollerProxy=function(e,t){var r=nt(e),n=Le.indexOf(r),i=cr(r);~n&&Le.splice(n,i?6:2),t&&(i?He.unshift(dt,t,mt,t,gt,t):He.unshift(r,t))},e.clearMatchMedia=function(e){Kr.forEach((function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)}))},e.isInViewport=function(e,t,r){var n=(hr(e)?nt(e):e).getBoundingClientRect(),i=n[r?Or:Pr]*t||0;return r?n.right-i>0&&n.left+i<dt.innerWidth:n.bottom-i>0&&n.top+i<dt.innerHeight},e.positionInViewport=function(e,t,r){hr(e)&&(e=nt(e));var n=e.getBoundingClientRect(),i=n[r?Or:Pr],o=null==t?i/2:t in Ur?Ur[t]*i:~t.indexOf("%")?parseFloat(t)*i/100:parseFloat(t)||0;return r?(n.left+o)/dt.innerWidth:(n.top+o)/dt.innerHeight},e.killAll=function(e){if(Kr.slice(0).forEach((function(e){return"ScrollSmoother"!==e.vars.id&&e.kill()})),!0!==e){var t=nn.killAll||[];nn={},t.forEach((function(e){return e()}))}},e}();An.version="3.12.5",An.saveStyles=function(e){return e?xt(e).forEach((function(e){if(e&&e.style){var t=ln.indexOf(e);t>=0&&ln.splice(t,5),ln.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),ft.core.getCache(e),Dt())}})):ln},An.revert=function(e,t){return un(!e,t)},An.create=function(e,t){return new An(e,t)},An.refresh=function(e){return e?rn():(pt||An.register())&&gn(!0)},An.update=function(e){return++Le.cache&&yn(!0===e?2:0)},An.clearScrollMemory=fn,An.maxScroll=function(e,t){return pr(e,t?tt:rt)},An.getScrollFunc=function(e,t){return it(nt(e),t?tt:rt)},An.getById=function(e){return Jr[e]},An.getAll=function(){return Kr.filter((function(e){return"ScrollSmoother"!==e.vars.id}))},An.isScrolling=function(){return!!Jt},An.snapDirectional=Xr,An.addEventListener=function(e,t){var r=nn[e]||(nn[e]=[]);~r.indexOf(t)||r.push(t)},An.removeEventListener=function(e,t){var r=nn[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},An.batch=function(e,t){var r,n=[],i={},o=t.interval||.016,a=t.batchMax||1e9,s=function(e,t){var r=[],n=[],i=ft.delayedCall(o,(function(){t(r,n),r=[],n=[]})).pause();return function(e){r.length||i.restart(!0),r.push(e.trigger),n.push(e),a<=r.length&&i.progress(1)}};for(r in t)i[r]="on"===r.substr(0,2)&&gr(t[r])&&"onRefreshInit"!==r?s(0,t[r]):t[r];return gr(a)&&(a=a(),Wr(An,"refresh",(function(){return a=t.batchMax()}))),xt(e).forEach((function(e){var t={};for(r in i)t[r]=i[r];t.trigger=e,n.push(An.create(t))})),n};var Fn,zn=function(e,t,r,n){return t>n?e(n):t<0&&e(0),r>n?(n-t)/(r-t):r<0?t/(t-r):1},Yn=function e(t,r){!0===r?t.style.removeProperty("touch-action"):t.style.touchAction=!0===r?"auto":r?"pan-"+r+(ut.isTouch?" pinch-zoom":""):"none",t===gt&&e(mt,r)},Bn={auto:1,scroll:1},jn=function(e){var t,r=e.event,n=e.target,i=e.axis,o=(r.changedTouches?r.changedTouches[0]:r).target,a=o._gsap||ft.core.getCache(o),s=Zt();if(!a._isScrollT||s-a._isScrollT>2e3){for(;o&&o!==mt&&(o.scrollHeight<=o.clientHeight&&o.scrollWidth<=o.clientWidth||!Bn[(t=Yr(o)).overflowY]&&!Bn[t.overflowX]);)o=o.parentNode;a._isScroll=o&&o!==n&&!cr(o)&&(Bn[(t=Yr(o)).overflowY]||Bn[t.overflowX]),a._isScrollT=s}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Dn=function(e,t,r,n){return ut.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:n=n&&jn,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Wr(ht,ut.eventTypes[0],Xn,!1,!0)},onDisable:function(){return Lr(ht,ut.eventTypes[0],Xn,!0)}})},Rn=/(input|label|select|textarea)/i,Xn=function(e){var t=Rn.test(e.target.tagName);(t||Fn)&&(e._gsapAllow=!0,Fn=t)},In=function(e){vr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var t,r,n,i,o,a,s,l,c=e,u=c.normalizeScrollX,f=c.momentum,p=c.allowNestedScroll,d=c.onRelease,h=nt(e.target)||gt,g=ft.core.globals().ScrollSmoother,m=g&&g.get(),v=jt&&(e.content&&nt(e.content)||m&&!1!==e.content&&!m.smooth()&&m.content()),y=it(h,rt),x=it(h,tt),b=1,w=(ut.isTouch&&dt.visualViewport?dt.visualViewport.scale*dt.visualViewport.width:dt.outerWidth)/dt.innerWidth,E=0,_=gr(f)?function(){return f(t)}:function(){return f||2.8},O=Dn(h,e.type,!0,p),P=function(){return i=!1},k=or,S=or,M=function(){r=pr(h,rt),S=bt(jt?1:0,r),u&&(k=bt(0,pr(h,tt))),n=pn},C=function(){v._gsap.y=ar(parseFloat(v._gsap.y)+y.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",y.offset=y.cacheID=0},T=function(){M(),o.isActive()&&o.vars.scrollY>r&&(y()>r?o.progress(1)&&y(r):o.resetTo("scrollY",r))};return v&&ft.set(v,{y:"+=0"}),e.ignoreCheck=function(e){return jt&&"touchmove"===e.type&&function(){if(i){requestAnimationFrame(P);var e=ar(t.deltaY/2),r=S(y.v-e);if(v&&r!==y.v+y.offset){y.offset=r-y.v;var n=ar((parseFloat(v&&v._gsap.y)||0)-y.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",v._gsap.y=n+"px",y.cacheID=Le.cache,yn()}return!0}y.offset&&C(),i=!0}()||b>1.05&&"touchstart"!==e.type||t.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){i=!1;var e=b;b=ar((dt.visualViewport&&dt.visualViewport.scale||1)/w),o.pause(),e!==b&&Yn(h,b>1.01||!u&&"x"),a=x(),s=y(),M(),n=pn},e.onRelease=e.onGestureStart=function(e,t){if(y.offset&&C(),t){Le.cache++;var n,i,a=_();u&&(i=(n=x())+.05*a*-e.velocityX/.227,a*=zn(x,n,i,pr(h,tt)),o.vars.scrollX=k(i)),i=(n=y())+.05*a*-e.velocityY/.227,a*=zn(y,n,i,pr(h,rt)),o.vars.scrollY=S(i),o.invalidate().duration(a).play(.01),(jt&&o.vars.scrollY>=r||n>=r-1)&&ft.to({},{onUpdate:T,duration:a})}else l.restart(!0);d&&d(e)},e.onWheel=function(){o._ts&&o.pause(),Zt()-E>1e3&&(n=0,E=Zt())},e.onChange=function(e,t,r,i,o){if(pn!==n&&M(),t&&u&&x(k(i[2]===t?a+(e.startX-e.x):x()+t-i[1])),r){y.offset&&C();var l=o[2]===r,c=l?s+e.startY-e.y:y()+r-o[1],f=S(c);l&&c!==f&&(s+=f-c),y(f)}(r||t)&&yn()},e.onEnable=function(){Yn(h,!u&&"x"),An.addEventListener("refresh",T),Wr(dt,"resize",T),y.smooth&&(y.target.style.scrollBehavior="auto",y.smooth=x.smooth=!1),O.enable()},e.onDisable=function(){Yn(h,!0),Lr(dt,"resize",T),An.removeEventListener("refresh",T),O.kill()},e.lockAxis=!1!==e.lockAxis,(t=new ut(e)).iOS=jt,jt&&!y()&&y(1),jt&&ft.ticker.add(or),l=t._dc,o=ft.to(t,{ease:"power4",paused:!0,inherit:!1,scrollX:u?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:Cn(y,y(),(function(){return o.pause()}))},onUpdate:yn,onComplete:l.vars.onComplete}),t};An.sort=function(e){return Kr.sort(e||function(e,t){return-1e6*(e.vars.refreshPriority||0)+e.start-(t.start+-1e6*(t.vars.refreshPriority||0))})},An.observe=function(e){return new ut(e)},An.normalizeScroll=function(e){if(void 0===e)return Ft;if(!0===e&&Ft)return Ft.enable();if(!1===e)return Ft&&Ft.kill(),void(Ft=e);var t=e instanceof ut?e:In(e);return Ft&&Ft.target===t.target&&Ft.kill(),cr(t.target)&&(Ft=t),t},An.core={_getVelocityProp:ot,_inputObserver:Dn,_scrollers:Le,_proxies:He,bridge:{ss:function(){Jt||sn("scrollStart"),Jt=Zt()},ref:function(){return _t}}},lr()&&ft.registerPlugin(An);var Wn=r(7294);var Ln=e=>{let{picture:t,name:r,email:n,label:i,region:o,phone:a,headline:s}=e;return Wn.createElement("div",{className:"bg-white rounded-r-xl sm:rounded-xl overflow-hidden flex flex-col lg:flex-row p-8"},Wn.createElement("div",{className:"z-10 overflow-hidden flex-none lg:-m-8 lg:mr-8 lg:w-56 w-auto h-auto"},Wn.createElement("img",{src:t,className:"object-cover bg-gray-100 w-full h-full",alt:`${r}'s picture`})),Wn.createElement("div",{className:"description max-w-xs flex flex-col justify-between"},Wn.createElement("section",null,Wn.createElement("h2",{className:"pb-1 pt-2"},r),Wn.createElement("p",null,i),Wn.createElement("p",null,Wn.createElement("i",{className:"bi bi-envelope pr-1"}),Wn.createElement("a",{href:`mailto:${n}`},n)),Wn.createElement("p",null,Wn.createElement("i",{className:"bi bi-phone pr-1"}),a),Wn.createElement("p",null,Wn.createElement("i",{className:"bi bi-geo-alt pr-1"}),o),Wn.createElement("p",{className:"font-mono text-sm my-3",dangerouslySetInnerHTML:{__html:s}})),Wn.createElement("section",null,Wn.createElement("a",{href:"/cv"},"Click here for my full CV."))))};var Hn=e=>((0,Wn.useEffect)((()=>{const e=Pe.timeline({defaults:{ease:"power1.out"}});e.to("#logo",{y:"0%",opacity:1,duration:1,stagger:.25}),e.to("#slider",{y:"-100%",duration:1.5,delay:.5}),e.to("#intro",{y:"-100%",duration:1},"-=1"),e.to(".card",{x:"0%",duration:.5}),e.to(".welcome",{y:"0%",opacity:1,duration:1})}),[]),Wn.createElement("div",{className:"bg-[url('/5651978.png')] bg-cover bg-center h-screen flex panel"},Wn.createElement("div",{className:"bg-white flex-grow absolute z-50 top-0 left-0 w-full h-full grid place-content-center overflow-hidden intro",id:"intro"},Wn.createElement("img",{src:"./logo.png",alt:"Logo",id:"logo",className:"my-logo translate-y-full opacity-0 w-16 animate-spin"})),Wn.createElement("div",{className:"bg-yellow fixed top-0 left-0 w-full h-100 slider",id:"slider"}),Wn.createElement("div",{className:"relative justify-center m-auto flex flex-wrap lg:flex-nowrap hero container lg:justify-between"},Wn.createElement(Ln,e),Wn.createElement("div",{className:"welcome lg:flex flex-col my-auto hidden flex-1 text-current text-right text-4xl opacity-0 translate-y-full font-serif"},Wn.createElement("p",{className:"welcome-text mb-0 shad"},"Welcome"),Wn.createElement("p",{className:"welcome-text mb-0"},"to my"),Wn.createElement("p",{className:"welcome-text mb-0"},"Portfolio"))))),Vn=r(3279),qn=r.n(Vn);var Un=e=>{let{title:t,link:r,date:n,image_url:i,background:o,background_color:a,description:s,panelClass:l,stack:c}=e;const{0:u,1:f}=(0,Wn.useState)(!1),{0:p,1:d}=(0,Wn.useState)(o);(0,Wn.useEffect)((()=>{const e=window.innerWidth||document.documentElement.clientWidth;f(e<900);o||(async()=>{let e=[];try{const t=await fetch("https://api.pexels.com/v1/search?query=abstract&orientation=landscape&size=large&per_page=25",{headers:{Authorization:"0Yj9fnhb8D5ZsYMFnnOUwgw35xD4rviKaYpJJEwg6kkRzu0m60QViXAZ"}});e=(await t.json()).photos,e.length>0&&d(e[Math.floor(Math.random()*e.length)].src.large)}catch(t){console.error("Failed to fetch images:",t)}})()}),[o]);const h=null==c?void 0:c.split(",").map(((e,t)=>Wn.createElement("p",{className:"rounded-full py-1 px-3 text-white bg-gray-700 text-xs mr-2",key:t},e))),g=p?Wn.createElement("img",{src:p,className:"absolute z-0 max-w-none object-cover bg-gray-100 w-full h-full left-0 top-0 mb-0",alt:""}):Wn.createElement("div",{className:"absolute z-0 max-w-none object-cover bg-gray-100 w-full h-full left-0 top-0 mb-0"});return Wn.createElement("article",{className:`flex-grow lg:w-1/2 w-full flex flex-col justify-center align-middle min-h-screen ${l||""}`},Wn.createElement("div",{className:"relative overflow-hidden flex-none h-100",role:"button",tabIndex:0,onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)},a?null:g,Wn.createElement("div",{className:"relative flex flex-col lg:justify-center h-full items-center z-10",style:{backgroundColor:a?`#${a}`:void 0}},Wn.createElement("header",{className:"flex justify-center h-28 mt-40 lg:mt-0"},i&&Wn.createElement("img",{src:i,className:"max-h-20 min-h-20 w-40",alt:""}))),Wn.createElement("div",{className:`absolute transform bg-gray-50 bg-opacity-75 bg z-20 w-full ${u?"lg:-translate-y-full translate-y-[-175%]":"translate-y-0"} transition-transform`},Wn.createElement("div",{className:"flex flex-col justify-center p-4"},Wn.createElement("h2",{className:"font-bold text-center py-2 text-md"},t||r),Wn.createElement("section",{className:"overflow-ellipsis overflow-hidden"},Wn.createElement("div",{dangerouslySetInnerHTML:{__html:s}}),Wn.createElement("div",{className:"flex mt-2"},Wn.createElement("p",{className:"rounded-full py-1 px-3 bg-gray-700 text-white mr-2 p-2 text-xs"},"HTML+CSS"),h)),Wn.createElement("div",{className:"flex justify-between items-center"},n&&Wn.createElement("p",null,n),r&&Wn.createElement("a",{href:r},"Visit site"))))))};var $n=e=>{let{projects:t}=e;const{0:r,1:n}=(0,Wn.useState)("Present"),{1:i}=(0,Wn.useState)(0),o=(0,Wn.useRef)(null);console.log("projects",t);const a=qn()((e=>{let t=!1;document.querySelectorAll("article").forEach((e=>{(function(e){const t=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,n=window.innerWidth||document.documentElement.clientWidth,i=t.top<=r&&t.top+t.height>=0,o=t.left<=n&&t.left+t.width>=0;return i&&o})(e)&&!t&&(n(e.getAttribute("year")||"Present"),t=!0)})),i(e)}),100),s=e=>{a(window.pageYOffset)};(0,Wn.useEffect)((()=>(window.addEventListener("scroll",s),()=>{window.removeEventListener("scroll",s)})),[]);return Wn.createElement("div",{ref:o,className:"projects grid grid-cols-1 bg-projects relative"},Wn.createElement("h1",{className:"text-3xl py-8 pl-4 sticky top-0 left-0 text-black z-20"},"Projects - ",r),Wn.createElement("div",{className:"flex flex-wrap lg:px-28"},t.map(((e,t)=>Wn.createElement(Un,Object.assign({panelClass:""+(t%2==0?"":"panel lg:pl-2"),key:e.node.id},e.node.frontmatter,{description:e.node.html}))))),Wn.createElement("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"text-3xl py-8 pl-4 sticky bottom-0 right-0 cursor-pointer group animate-bounce text-black flex"},Wn.createElement("i",{className:"bi bi-arrow-up ml-auto mr-8 group-hover:text-red-400"}," ")))},Gn=r(3514);var Zn=e=>{let{title:t,link:r,image_url:n,background:i,background_color:o,description:a,panelClass:s,stack:l}=e;const{0:c,1:u}=(0,Wn.useState)(!1),f=null==l?void 0:l.split(",").map(((e,t)=>Wn.createElement("p",{className:"rounded-full py-1 px-3 text-white bg-gray-700 text-xs mr-2",key:t},e))),p=i?Wn.createElement("img",{src:i,className:"absolute z-0 max-w-none object-cover bg-gray-100 w-full h-full left-0 top-0 mb-0",alt:""}):Wn.createElement("div",{className:"absolute z-0 max-w-none object-cover bg-gray-100 w-full h-full left-0 top-0 mb-0"});return Wn.createElement("div",{className:`flex-grow lg:w-1/3 w-full flex flex-col justify-center align-middle min-h-screen ${s||""}`},Wn.createElement("div",{className:"relative overflow-hidden flex-none h-100",role:"button",tabIndex:0,onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1)},o?null:p,Wn.createElement("div",{className:"relative flex flex-col lg:justify-center h-full items-center z-10",style:{backgroundColor:o?`#${o}`:void 0}},Wn.createElement("header",{className:"flex justify-center h-28 mt-40 lg:mt-0"},n&&Wn.createElement("img",{src:n,className:"max-h-20 min-h-20 w-40",alt:""}))),Wn.createElement("div",{className:"absolute transform bg-gray-50 bg-opacity-75 bg z-20 w-full lg:-translate-y-full translate-y-[-175%] transition-transform"},Wn.createElement("div",{className:"flex flex-col justify-center p-4"},Wn.createElement("h2",{className:"font-bold text-center py-2 text-md"},t||r),Wn.createElement("section",{className:"overflow-ellipsis overflow-hidden"},Wn.createElement("div",{dangerouslySetInnerHTML:{__html:a}}),Wn.createElement("div",{className:"flex flex-wrap space-y-2 mt-2"},Wn.createElement("p",{className:"rounded-full py-1 px-3 bg-gray-700 text-white mr-2 p-2 text-xs"},"HTML+CSS"),f)),Wn.createElement("div",{className:"flex justify-between items-center"},r&&Wn.createElement("a",{href:r},"Visit site"))))))};var Kn=e=>{let{challenges:t}=e;return Wn.createElement("div",{className:"grid grid-cols-1 bg-sides relative challenges"},Wn.createElement("h1",{className:"text-3xl py-8 pl-4 sticky top-0 left-0 text-black z-20"},"Challenges"),Wn.createElement("div",{className:"flex flex-wrap lg:px-28"},t.map(((e,t)=>Wn.createElement(Zn,Object.assign({panelClass:""+(t%2==0?"":"panel lg:pl-2 lg:pr-2"),key:e.node.id},e.node.frontmatter,{description:e.node.html}))))),Wn.createElement("button",{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},className:"text-3xl py-8 pl-4 sticky bottom-0 right-0 cursor-pointer group animate-bounce text-black flex"},Wn.createElement("i",{className:"bi bi-arrow-up ml-auto mr-8 group-hover:text-red-400"}," ")))};"undefined"!=typeof window&&(Pe.registerPlugin(An),Pe.core.globals("ScrollTrigger",An));var Jn=e=>{let{data:t}=e;const{0:r}=(0,Wn.useState)("day");(0,Wn.useEffect)((()=>{document.documentElement.style.setProperty("--background-color",`var(--${r}-background-color)`),document.documentElement.style.setProperty("--theme-accent-color",`var(--${r}-accent-color)`),document.documentElement.style.setProperty("--gradient",`var(--${r}-gradient)`),document.documentElement.style.setProperty("--text-color",`var(--${r}-text-color)`)}),[r]),(0,Wn.useEffect)((()=>{Pe.registerPlugin(An),An.defaults({toggleActions:"restart pause resume pause"}),Pe.to(".challenges h1",{scrollTrigger:".challenges",duration:.5,opacity:1,y:"0%"}),Pe.to(".projects h1",{scrollTrigger:".projects",duration:.5,opacity:1,y:"0%"})}),[]);const n=t.allMarkdownRemark.edges;return Wn.createElement(Gn.Z,{data:t.basic.value},Wn.createElement(Hn,t.basic.value),Wn.createElement(Kn,{challenges:n.filter((e=>!e.node.frontmatter.disabled&&e.node.fileAbsolutePath.includes("challenges")))}),Wn.createElement($n,{projects:n.filter((e=>!e.node.frontmatter.disabled&&e.node.fileAbsolutePath.includes("clients")))}))}},2705:function(e,t,r){var n=r(5639).Symbol;e.exports=n},4239:function(e,t,r){var n=r(2705),i=r(9607),o=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},7561:function(e,t,r){var n=r(7990),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},1957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9607:function(e,t,r){var n=r(2705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:function(e,t,r){var n=r(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},7990:function(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},3279:function(e,t,r){var n=r(3218),i=r(7771),o=r(4841),a=Math.max,s=Math.min;e.exports=function(e,t,r){var l,c,u,f,p,d,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=c;return l=c=void 0,h=t,f=e.apply(n,r)}function x(e){var r=e-d;return void 0===d||r>=t||r<0||m&&e-h>=u}function b(){var e=i();if(x(e))return w(e);p=setTimeout(b,function(e){var r=t-(e-d);return m?s(r,u-(e-h)):r}(e))}function w(e){return p=void 0,v&&l?y(e):(l=c=void 0,f)}function E(){var e=i(),r=x(e);if(l=arguments,c=this,d=e,r){if(void 0===p)return function(e){return h=e,p=setTimeout(b,t),g?y(e):f}(d);if(m)return clearTimeout(p),p=setTimeout(b,t),y(d)}return void 0===p&&(p=setTimeout(b,t)),f}return t=o(t)||0,n(r)&&(g=!!r.leading,u=(m="maxWait"in r)?a(o(r.maxWait)||0,t):u,v="trailing"in r?!!r.trailing:v),E.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=c=p=void 0},E.flush=function(){return void 0===p?f:w(i())},E}},3218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},3448:function(e,t,r){var n=r(4239),i=r(7005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},7771:function(e,t,r){var n=r(5639);e.exports=function(){return n.Date.now()}},4841:function(e,t,r){var n=r(7561),i=r(3218),o=r(3448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=s.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):a.test(e)?NaN:+e}}}]);
//# sourceMappingURL=component---src-pages-index-tsx-d53e36ce4647de2b95fc.js.map