import{d as wu}from"./CGR-T3Ho.js";import{a9 as Ko,u as Qo,c as De,r as uo,a8 as fs,E as lo,aa as bu,ab as Tu}from"./NkN6QURX.js";const Zo=a=>{if(!a)return"";const e=a.toString().trim();return e?`/${e.replace(/^\/+/,"").replace(/\/+$/,"")}`:""},Su=a=>Zo(a).split("/").filter(Boolean),Pu=(a,e)=>`detail-nav-context:${a}:${e}`;function ku(a){const e=Array.isArray(a)?a:[],r=e.find(h=>h?.type==="tabs");if(r)return{detailSourceType:r?.data?.type==="content"?2:1,keyword:"",categoryId:0};const t=e.find(h=>["list","grid","table"].includes(h?.type||""))??e.find(h=>["newsList","productList","articleList"].includes(h?.key||""));if(!t)return{detailSourceType:1,keyword:"",categoryId:0};const i=Array.isArray(t?.config?.filter)?t.config.filter:[],n=(i.find(h=>h?.key==="name")?.value??"").toString().trim(),s=i.find(h=>h?.key==="categoriesId")?.value,o=Number(s&&typeof s=="object"?s.value:s),u=Number.isFinite(o)?o:0,l=Number(t?.dataSource||1);return{detailSourceType:l===3?t?.customData?.type==="content"?2:1:l===2?2:1,keyword:n,categoryId:u}}function Cu(){const a=Ko(),e=Qo(),r=De(()=>e.value?.id||0),t=uo(null),i=uo(null),n=async u=>{const l=r.value;if(!l)return null;const f=u===2,h=f?i.value:t.value;if(h)return h;const d=f?"/api/pages/content-detail":"/api/pages/product-detail";try{const c=await $fetch(d,{query:{subdomainId:l}}),p=Array.isArray(c?.data)?c.data?.[0]?.path:c?.data?.path,_=Zo(p);return _?(f?i.value=_:t.value=_,_):null}catch{return null}},s=async(u,l)=>{const f=Number(l?.id);if(!Number.isFinite(f)||f<=0)return;const{detailSourceType:h,keyword:d,categoryId:c}=ku(fs(u)),p=await n(h);if(!p)return;const _=h===1?l.sku:l.slug;if(!_)return;const m=a.path.split("/").filter(Boolean),T=Su(p),x=[m[0],...T].filter(Boolean),y=`/${[...x,encodeURIComponent(_)].join("/")}`;{const b={categoriesId:c>0?c:void 0,keyword:d||void 0},k=!!(b.categoriesId||b.keyword),w=`/${x.join("/")}`,D=Pu(r.value,w);k?sessionStorage.setItem(D,JSON.stringify(b)):sessionStorage.removeItem(D),window.location.href=y;return}};return{navigateFromModule:async(u,l)=>{await s(Array.isArray(u?.content)?u.content:[],l)},navigateFromModuleContent:s}}function Li(...a){for(const e of a){if(typeof e=="number"&&Number.isFinite(e))return String(e);if(typeof e=="string"&&e.trim())return e}return""}function Du(a){if(!a)return"";if(Array.isArray(a))return Li(a[0]);if(typeof a=="string"){const e=a.trim();try{const r=JSON.parse(e);if(Array.isArray(r))return Li(r[0])}catch{}return e.includes(";")?e.split(";")[0].trim():e}return typeof a=="object"?Li(a.src,a.url):""}function fo(a){return a.map((e,r)=>{const t=Du(e.images??e.image),i=Date.now()+r;return{id:Number(e.id)||i,name:e.name,nameDisplay:e.name_display||e.nameDisplay,image:t,description:Li(e.description,e.keywords,e.context,e.content)||"",descriptionDisplay:e.description_display||"",date:e.created_at?wu(e.created_at).format("YYYY-MM-DD"):Li(e.createdAt,e.updatedAt),sku:e.sku||"",slug:e.slug||""}})}function yf(a,e,r,t={}){const i=Ko(),n=Qo(),{navigateFromModuleContent:s}=Cu(),o=De(()=>n.value?.id||0),{listKey:u,defaultLimit:l}=t,f=t.pageParamKey?.trim()||"",h=t.instanceKey?String(t.instanceKey).trim():"",d=h?`${a}-${h}`:a,c=De(()=>{const M=Array.isArray(fs(e))?fs(e):[];if(u){const Y=M.find(I=>I?.key===u);if(Y)return Y}return M.find(Y=>Y?.key==="newsList")??M.find(Y=>Y?.type==="list"||Y?.type==="table")}),p=De(()=>c.value?.config?.pagination?.limit||l||10),_=De(()=>{const M=c.value?.config?.pagination?.page||1;if(f){const ee=i.query[f],xe=Array.isArray(ee)?ee[0]:ee,re=Number(xe);return Number.isFinite(re)&&re>0?re:M}const Y=i.path.split("/").find(ee=>/^page-(\d+)$/i.test(ee));if(Y){const ee=Number(Y.replace(/page-/i,""));if(Number.isFinite(ee)&&ee>0)return ee}const I=Number(i.query.page);return Number.isFinite(I)&&I>0?I:M}),m=De(()=>c.value?.config?.filter||[]),T=De(()=>(m.value.find(Y=>Y.key==="name")?.value??"").toString().trim()),x=De(()=>{const M=m.value.find(ee=>ee.key==="categoriesId")?.value,Y=M&&typeof M=="object"?M.value:M,I=Number(Y);return Number.isFinite(I)?I:0}),S=De(()=>{const M=c.value?.dataSource;if(Array.isArray(M)){const I=Number(M[0]);if(!Number.isNaN(I))return I}const Y=Number(M);return Number.isNaN(Y)?1:Y}),y=De(()=>S.value===3),b=De(()=>c.value?.customData?.type||"product"),k=De(()=>{const M=c.value?.customData?.data;if(!Array.isArray(M))return[];const Y=b.value==="content"?"slug":"sku";return M.map(I=>(I?.[Y]||"").toString().trim()).filter(Boolean)}),w=De(()=>!y.value&&!!c.value?.config?.pagination?.showPagination),D=De(()=>k.value.join(",")),{data:P,pending:C}=lo(()=>`${d}-custom-${b.value}-${D.value}`,async()=>{if(!y.value)return[];if(!o.value)return[];const M=k.value;if(!M.length)return[];try{const Y=await $fetch("/api/custom-data/batch",{method:"POST",body:{ids:M,type:b.value,subdomainId:o.value}});return Array.isArray(Y?.data)?Y.data:[]}catch{return[]}},{server:!0,watch:[y,D,b,o]}),L=De(()=>S.value===2?"/api/content/filter":"/api/product/filter"),{data:O,pending:V}=lo(()=>`${d}-${S.value}-${_.value}-${p.value}-${x.value}-${T.value}`,async()=>{if(!c.value)return{list:[],total:0};if(y.value)return{list:[],total:0};if(!o.value)return{list:[],total:0};try{const M=await $fetch(L.value,{query:{name:T.value,categoriesId:x.value,page:_.value,size:p.value,subdomainId:o.value}}),Y=M?.data?.list||[],I=fo(Y),ee=M?.data?.total??I.length;return{list:I,total:ee}}catch{return{list:[],total:0}}},{server:!0,watch:[L,_,p,T,x,o]}),X=De(()=>y.value?fo(P.value||[]):O.value?.list||[]),Q=De(()=>y.value?X.value.length:O.value?.total||0),W=De(()=>y.value?C.value:V.value),z=De(()=>({page:y.value?1:_.value,limit:p.value,total:Q.value,showPagination:w.value})),J=De(()=>r==="news"?X.value.map(M=>({key:String(M.id),title:M.nameDisplay||M.name||"未命名",description:M.description||"",descriptionDisplay:M.descriptionDisplay||"",date:M.date||"",image:M.image||"",id:M.id,name:M.name,nameDisplay:M.nameDisplay,slug:M.slug,sku:M.sku})):X.value.map(M=>({key:String(M.id),title:M.nameDisplay||M.name||"未命名",description:M.description||"",descriptionDisplay:M.descriptionDisplay||"",image:M.image||"",id:M.id,name:M.name,nameDisplay:M.nameDisplay,sku:M.sku,slug:M.slug}))),se=M=>{const Y=i.path.replace(/\/page-\d+\/?$/i,"").replace(/\/+$/,"")||"/",I=new URLSearchParams;if(Object.entries(i.query||{}).forEach(([re,ke])=>{re!=="page"&&(f&&re===f||(Array.isArray(ke)?ke.forEach(Fe=>I.append(re,String(Fe))):ke!=null&&I.set(re,String(ke))))}),f){I.set(f,String(M));const re=I.toString();return re?`${Y}?${re}`:Y}const ee=Y==="/"?`/page-${M}`:`${Y}/page-${M}`,xe=I.toString();return xe?`${ee}?${xe}`:ee};return{items:J,pagination:z,loading:W,onPageChange:async(M,Y)=>{if(y.value)return;const I=se(M);{window.location.href=I;return}},onItemClick:async M=>{await s(e,M)}}}function ir(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function jo(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}var Pt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},gi={duration:.5,overwrite:!1,delay:0},zs,Ue,he,Rt=1e8,ue=1/Rt,cs=Math.PI*2,Ou=cs/4,Mu=0,Jo=Math.sqrt,Au=Math.cos,Ru=Math.sin,Be=function(e){return typeof e=="string"},ve=function(e){return typeof e=="function"},ur=function(e){return typeof e=="number"},Is=function(e){return typeof e>"u"},Zt=function(e){return typeof e=="object"},lt=function(e){return e!==!1},Ls=function(){return typeof window<"u"},cn=function(e){return ve(e)||Be(e)},ea=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ze=Array.isArray,Eu=/random\([^)]+\)/g,Fu=/,\s*/g,co=/(?:-?\.?\d|\.)+/gi,ta=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ai=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Kn=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ra=/[+-]=-?[.\d]+/,zu=/[^,'"\[\]\s]+/gi,Iu=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pe,Wt,hs,Ns,kt={},En={},ia,na=function(e){return(En=mi(e,kt))&&_t},Bs=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Zi=function(e,r){return!r&&console.warn(e)},sa=function(e,r){return e&&(kt[e]=r)&&En&&(En[e]=r)||kt},ji=function(){return 0},Lu={suppressEvents:!0,isStart:!0,kill:!1},Sn={suppressEvents:!0,kill:!1},Nu={suppressEvents:!0},Ys={},br=[],_s={},oa,vt={},Qn={},ho=30,Pn=[],$s="",Xs=function(e){var r=e[0],t,i;if(Zt(r)||ve(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=Pn.length;i--&&!Pn[i].targetTest(r););t=Pn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ma(e[i],t)))||e.splice(i,1);return e},Xr=function(e){return e._gsap||Xs(Et(e))[0]._gsap},aa=function(e,r,t){return(t=e[r])&&ve(t)?e[r]():Is(t)&&e.getAttribute&&e.getAttribute(r)||t},ft=function(e,r){return(e=e.split(",")).forEach(r)||e},Se=function(e){return Math.round(e*1e5)/1e5||0},de=function(e){return Math.round(e*1e7)/1e7||0},fi=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Bu=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++i<t;);return i<t},Fn=function(){var e=br.length,r=br.slice(0),t,i;for(_s={},br.length=0,t=0;t<e;t++)i=r[t],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Us=function(e){return!!(e._initted||e._startAt||e.add)},ua=function(e,r,t,i){br.length&&!Ue&&Fn(),e.render(r,t,!!(Ue&&r<0&&Us(e))),br.length&&!Ue&&Fn()},la=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(zu).length<2?r:Be(e)?e.trim():e},fa=function(e){return e},Ct=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},Yu=function(e){return function(r,t){for(var i in t)i in r||i==="duration"&&e||i==="ease"||(r[i]=t[i])}},mi=function(e,r){for(var t in r)e[t]=r[t];return e},_o=function a(e,r){for(var t in r)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=Zt(r[t])?a(e[t]||(e[t]={}),r[t]):r[t]);return e},zn=function(e,r){var t={},i;for(i in e)i in r||(t[i]=e[i]);return t},Ni=function(e){var r=e.parent||pe,t=e.keyframes?Yu(Ze(e.keyframes)):Ct;if(lt(e.inherit))for(;r;)t(e,r.vars.defaults),r=r.parent||r._dp;return e},$u=function(e,r){for(var t=e.length,i=t===r.length;i&&t--&&e[t]===r[t];);return t<0},ca=function(e,r,t,i,n){var s=e[i],o;if(n)for(o=r[n];s&&s[n]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},Vn=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Pr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ur=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Xu=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},ds=function(e,r,t,i){return e._startAt&&(Ue?e._startAt.revert(Sn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Uu=function a(e){return!e||e._ts&&a(e.parent)},po=function(e){return e._repeat?yi(e._tTime,e=e.duration()+e._rDelay)*e:0},yi=function(e,r){var t=Math.floor(e=de(e/r));return e&&t===e?t-1:t},In=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Wn=function(e){return e._end=de(e._start+(e._tDur/Math.abs(e._ts||e._rts||ue)||0))},qn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=de(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),Wn(e),t._dirty||Ur(t,e)),e},ha=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(t=In(e.rawTime(),r),(!r._dur||an(0,r.totalDuration(),t)-r._tTime>ue)&&r.render(t,!0)),Ur(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-ue}},Gt=function(e,r,t,i){return r.parent&&Pr(r),r._start=de((ur(t)?t:t||e!==pe?Ot(e,t,r):e._time)+r._delay),r._end=de(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ca(e,r,"_first","_last",e._sort?"_start":0),ps(r)||(e._recent=r),i||ha(e,r),e._ts<0&&qn(e,e._tTime),e},_a=function(e,r){return(kt.ScrollTrigger||Bs("scrollTrigger",r))&&kt.ScrollTrigger.create(r,e)},da=function(e,r,t,i,n){if(Ws(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!Ue&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&oa!==wt.frame)return br.push(e),e._lazy=[n,i],1},Vu=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},ps=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Wu=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Vu(e)&&!(!e._initted&&ps(e))||(e._ts<0||e._dp._ts<0)&&!ps(e))?0:1,o=e._rDelay,u=0,l,f,h;if(o&&e._repeat&&(u=an(0,e._tDur,r),f=yi(u,o),e._yoyo&&f&1&&(s=1-s),f!==yi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||Ue||i||e._zTime===ue||!r&&e._zTime){if(!e._initted&&da(e,r,i,t,u))return;for(h=e._zTime,e._zTime=r||(t?ue:0),t||(t=r&&!h),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=u,l=e._pt;l;)l.r(s,l.d),l=l._next;r<0&&ds(e,r,t,!0),e._onUpdate&&!t&&Tt(e,"onUpdate"),u&&e._repeat&&!t&&e.parent&&Tt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&Pr(e,1),!t&&!Ue&&(Tt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},qu=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},vi=function(e,r,t,i){var n=e._repeat,s=de(r)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:de(s*(n+1)+e._rDelay*n):s,o>0&&!i&&qn(e,e._tTime=e._tDur*o),e.parent&&Wn(e),t||Ur(e.parent,e),e},go=function(e){return e instanceof st?Ur(e):vi(e,e._dur)},Gu={_start:0,endTime:ji,totalDuration:ji},Ot=function a(e,r,t){var i=e.labels,n=e._recent||Gu,s=e.duration()>=Rt?n.endTime(!1):e._dur,o,u,l;return Be(r)&&(isNaN(r)||r in i)?(u=r.charAt(0),l=r.substr(-1)==="%",o=r.indexOf("="),u==="<"||u===">"?(o>=0&&(r=r.replace(/=/,"")),(u==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(u=parseFloat(r.charAt(o-1)+r.substr(o+1)),l&&t&&(u=u/100*(Ze(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+u:s+u)):r==null?s:+r},Bi=function(e,r,t){var i=ur(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,u;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,u=t;u&&!("immediateRender"in o);)o=u.vars.defaults||{},u=lt(u.vars.inherit)&&u.parent;s.immediateRender=lt(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new Me(r[0],s,r[n+1])},Or=function(e,r){return e||e===0?r(e):r},an=function(e,r,t){return t<e?e:t>r?r:t},Ke=function(e,r){return!Be(e)||!(r=Iu.exec(e))?"":r[1]},Hu=function(e,r,t){return Or(t,function(i){return an(e,r,i)})},gs=[].slice,pa=function(e,r){return e&&Zt(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&Zt(e[0]))&&!e.nodeType&&e!==Wt},Ku=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return Be(i)&&!r||pa(i,1)?(n=t).push.apply(n,Et(i)):t.push(i)})||t},Et=function(e,r,t){return he&&!r&&he.selector?he.selector(e):Be(e)&&!t&&(hs||!xi())?gs.call((r||Ns).querySelectorAll(e),0):Ze(e)?Ku(e,t):pa(e)?gs.call(e,0):e?[e]:[]},ms=function(e){return e=Et(e)[0]||Zi("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return Et(r,t.querySelectorAll?t:t===e?Zi("Invalid scope")||Ns.createElement("div"):e)}},ga=function(e){return e.sort(function(){return .5-Math.random()})},ma=function(e){if(ve(e))return e;var r=Zt(e)?e:{each:e},t=Vr(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,u=isNaN(i)||o,l=r.axis,f=i,h=i;return Be(i)?f=h={center:.5,edges:.5,end:1}[i]||0:!o&&u&&(f=i[0],h=i[1]),function(d,c,p){var _=(p||r).length,m=s[_],T,x,S,y,b,k,w,D,P;if(!m){if(P=r.grid==="auto"?0:(r.grid||[1,Rt])[1],!P){for(w=-Rt;w<(w=p[P++].getBoundingClientRect().left)&&P<_;);P<_&&P--}for(m=s[_]=[],T=u?Math.min(P,_)*f-.5:i%P,x=P===Rt?0:u?_*h/P-.5:i/P|0,w=0,D=Rt,k=0;k<_;k++)S=k%P-T,y=x-(k/P|0),m[k]=b=l?Math.abs(l==="y"?y:S):Jo(S*S+y*y),b>w&&(w=b),b<D&&(D=b);i==="random"&&ga(m),m.max=w-D,m.min=D,m.v=_=(parseFloat(r.amount)||parseFloat(r.each)*(P>_?_-1:l?l==="y"?_/P:P:Math.max(P,_/P))||0)*(i==="edges"?-1:1),m.b=_<0?n-_:n,m.u=Ke(r.amount||r.each)||0,t=t&&_<0?Ca(t):t}return _=(m[d]-m.min)/m.max||0,de(m.b+(t?t(_):_)*m.v)+m.u}},ys=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=de(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(ur(t)?0:Ke(t))}},ya=function(e,r){var t=Ze(e),i,n;return!t&&Zt(e)&&(i=t=e.radius||Rt,e.values?(e=Et(e.values),(n=!ur(e[0]))&&(i*=i)):e=ys(e.increment)),Or(r,t?ve(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),u=parseFloat(n?s.y:0),l=Rt,f=0,h=e.length,d,c;h--;)n?(d=e[h].x-o,c=e[h].y-u,d=d*d+c*c):d=Math.abs(e[h]-o),d<l&&(l=d,f=h);return f=!i||l<=i?e[f]:s,n||f===s||ur(s)?f:f+Ke(s)}:ys(e))},va=function(e,r,t,i){return Or(Ze(e)?!r:t===!0?!!(t=0):!i,function(){return Ze(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(i=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(r-e+t*.99))/t)*t*i)/i})},Qu=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(i){return r.reduce(function(n,s){return s(n)},i)}},Zu=function(e,r){return function(t){return e(parseFloat(t))+(r||Ke(t))}},ju=function(e,r,t){return wa(e,r,0,1,t)},xa=function(e,r,t){return Or(t,function(i){return e[~~r(i)]})},Ju=function a(e,r,t){var i=r-e;return Ze(e)?xa(e,a(0,e.length),r):Or(t,function(n){return(i+(n-e)%i)%i+e})},el=function a(e,r,t){var i=r-e,n=i*2;return Ze(e)?xa(e,a(0,e.length-1),r):Or(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>i?n-s:s)})},Ji=function(e){return e.replace(Eu,function(r){var t=r.indexOf("[")+1,i=r.substring(t||7,t?r.indexOf("]"):r.length-1).split(Fu);return va(t?i:+i[0],t?0:+i[1],+i[2]||1e-5)})},wa=function(e,r,t,i,n){var s=r-e,o=i-t;return Or(n,function(u){return t+((u-e)/s*o||0)})},tl=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=Be(e),o={},u,l,f,h,d;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(Ze(e)&&!Ze(r)){for(f=[],h=e.length,d=h-2,l=1;l<h;l++)f.push(a(e[l-1],e[l]));h--,n=function(p){p*=h;var _=Math.min(d,~~p);return f[_](p-_)},t=r}else i||(e=mi(Ze(e)?[]:{},e));if(!f){for(u in r)Vs.call(o,e,u,"get",r[u]);n=function(p){return Hs(p,o)||(s?e.p:e)}}}return Or(t,n)},mo=function(e,r,t){var i=e.labels,n=Rt,s,o,u;for(s in i)o=i[s]-r,o<0==!!t&&o&&n>(o=Math.abs(o))&&(u=s,n=o);return u},Tt=function(e,r,t){var i=e.vars,n=i[r],s=he,o=e._ctx,u,l,f;if(n)return u=i[r+"Params"],l=i.callbackScope||e,t&&br.length&&Fn(),o&&(he=o),f=u?n.apply(l,u):n.call(l),he=s,f},Mi=function(e){return Pr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ue),e.progress()<1&&Tt(e,"onInterrupt"),e},ui,ba=[],Ta=function(e){if(e)if(e=!e.name&&e.default||e,Ls()||e.headless){var r=e.name,t=ve(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:ji,render:Hs,add:Vs,kill:ml,modifier:gl,rawVars:0},s={targetTest:0,get:0,getSetter:Gs,aliases:{},register:0};if(xi(),e!==i){if(vt[r])return;Ct(i,Ct(zn(e,n),s)),mi(i.prototype,mi(n,zn(e,s))),vt[i.prop=r]=i,e.targetTest&&(Pn.push(i),Ys[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}sa(r,i),e.register&&e.register(_t,i,ct)}else ba.push(e)},ae=255,Ai={aqua:[0,ae,ae],lime:[0,ae,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ae],navy:[0,0,128],white:[ae,ae,ae],olive:[128,128,0],yellow:[ae,ae,0],orange:[ae,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ae,0,0],pink:[ae,192,203],cyan:[0,ae,ae],transparent:[ae,ae,ae,0]},Zn=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*ae+.5|0},Sa=function(e,r,t){var i=e?ur(e)?[e>>16,e>>8&ae,e&ae]:0:Ai.black,n,s,o,u,l,f,h,d,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Ai[e])i=Ai[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ae,i&ae,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ae,e&ae]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(co),!r)u=+i[0]%360/360,l=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(l+1):f+l-f*l,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=Zn(u+1/3,n,s),i[1]=Zn(u,n,s),i[2]=Zn(u-1/3,n,s);else if(~e.indexOf("="))return i=e.match(ta),t&&i.length<4&&(i[3]=1),i}else i=e.match(co)||Ai.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/ae,s=i[1]/ae,o=i[2]/ae,h=Math.max(n,s,o),d=Math.min(n,s,o),f=(h+d)/2,h===d?u=l=0:(c=h-d,l=f>.5?c/(2-h-d):c/(h+d),u=h===n?(s-o)/c+(s<o?6:0):h===s?(o-n)/c+2:(n-s)/c+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(f*100+.5)),t&&i.length<4&&(i[3]=1),i},Pa=function(e){var r=[],t=[],i=-1;return e.split(Tr).forEach(function(n){var s=n.match(ai)||[];r.push.apply(r,s),t.push(i+=s.length+1)}),r.c=t,r},yo=function(e,r,t){var i="",n=(e+i).match(Tr),s=r?"hsla(":"rgba(",o=0,u,l,f,h;if(!n)return e;if(n=n.map(function(d){return(d=Sa(d,r,1))&&s+(r?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),t&&(f=Pa(e),u=t.c,u.join(i)!==f.c.join(i)))for(l=e.replace(Tr,"1").split(ai),h=l.length-1;o<h;o++)i+=l[o]+(~u.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:t).shift());if(!l)for(l=e.split(Tr),h=l.length-1;o<h;o++)i+=l[o]+n[o];return i+l[h]},Tr=(function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Ai)a+="|"+e+"\\b";return new RegExp(a+")","gi")})(),rl=/hsl[a]?\(/,ka=function(e){var r=e.join(" "),t;if(Tr.lastIndex=0,Tr.test(r))return t=rl.test(r),e[1]=yo(e[1],t),e[0]=yo(e[0],t,Pa(e[1])),!0},en,wt=(function(){var a=Date.now,e=500,r=33,t=a(),i=t,n=1e3/240,s=n,o=[],u,l,f,h,d,c,p=function _(m){var T=a()-i,x=m===!0,S,y,b,k;if((T>e||T<0)&&(t+=T-r),i+=T,b=i-t,S=b-s,(S>0||x)&&(k=++h.frame,d=b-h.time*1e3,h.time=b=b/1e3,s+=S+(S>=n?4:n-S),y=1),x||(u=l(_)),y)for(c=0;c<o.length;c++)o[c](b,d,k,m)};return h={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){ia&&(!hs&&Ls()&&(Wt=hs=window,Ns=Wt.document||{},kt.gsap=_t,(Wt.gsapVersions||(Wt.gsapVersions=[])).push(_t.version),na(En||Wt.GreenSockGlobals||!Wt.gsap&&Wt||{}),ba.forEach(Ta)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&h.sleep(),l=f||function(m){return setTimeout(m,s-h.time*1e3+1|0)},en=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(u),en=0,l=ji},lagSmoothing:function(m,T){e=m||1/0,r=Math.min(T||33,e)},fps:function(m){n=1e3/(m||240),s=h.time*1e3+n},add:function(m,T,x){var S=T?function(y,b,k,w){m(y,b,k,w),h.remove(S)}:m;return h.remove(m),o[x?"unshift":"push"](S),xi(),S},remove:function(m,T){~(T=o.indexOf(m))&&o.splice(T,1)&&c>=T&&c--},_listeners:o},h})(),xi=function(){return!en&&wt.wake()},j={},il=/^[\d.\-M][\d.\-,\s]/,nl=/["']/g,sl=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,u,l;n<s;n++)u=t[n],o=n!==s-1?u.lastIndexOf(","):u.length,l=u.substr(0,o),r[i]=isNaN(l)?l.replace(nl,"").trim():+l,i=u.substr(o+1).trim();return r},ol=function(e){var r=e.indexOf("(")+1,t=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<t?e.indexOf(")",t+1):t)},al=function(e){var r=(e+"").split("("),t=j[r[0]];return t&&r.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[sl(r[1])]:ol(e).split(",").map(la)):j._CE&&il.test(e)?j._CE("",e):t},Ca=function(e){return function(r){return 1-e(1-r)}},Da=function a(e,r){for(var t=e._first,i;t;)t instanceof st?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},Vr=function(e,r){return e&&(ve(e)?e:j[e]||al(e))||r},jr=function(e,r,t,i){t===void 0&&(t=function(u){return 1-r(1-u)}),i===void 0&&(i=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return ft(e,function(o){j[o]=kt[o]=n,j[s=o.toLowerCase()]=t;for(var u in n)j[s+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=j[o+"."+u]=n[u]}),n},Oa=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},jn=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/cs*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*Ru((f-s)*n)+1},u=e==="out"?o:e==="in"?function(l){return 1-o(1-l)}:Oa(o);return n=cs/n,u.config=function(l,f){return a(e,l,f)},u},Jn=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:Oa(t);return i.config=function(n){return a(e,n)},i};ft("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;jr(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});j.Linear.easeNone=j.none=j.Linear.easeIn;jr("Elastic",jn("in"),jn("out"),jn());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o<r?a*o*o:o<t?a*Math.pow(o-1.5/e,2)+.75:o<i?a*(o-=2.25/e)*o+.9375:a*Math.pow(o-2.625/e,2)+.984375};jr("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);jr("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});jr("Circ",function(a){return-(Jo(1-a*a)-1)});jr("Sine",function(a){return a===1?1:-Au(a*Ou)+1});jr("Back",Jn("in"),Jn("out"),Jn());j.SteppedEase=j.steps=kt.SteppedEase={config:function(e,r){e===void 0&&(e=1);var t=1/e,i=e+(r?0:1),n=r?1:0,s=1-ue;return function(o){return((i*an(0,s,o)|0)+n)*t}}};gi.ease=j["quad.out"];ft("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return $s+=a+","+a+"Params,"});var Ma=function(e,r){this.id=Mu++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:aa,this.set=r?r.getSetter:Gs},tn=(function(){function a(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,vi(this,+r.duration,1,1),this.data=r.data,he&&(this._ctx=he,he.data.push(this)),en||wt.wake()}var e=a.prototype;return e.delay=function(t){return t||t===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,vi(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(xi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(qn(this,t),!n._dp||n.parent||ha(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Gt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===ue||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),ua(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+po(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+po(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?yi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-ue?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?In(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-ue?0:this._rts,this.totalTime(an(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),Wn(this),Xu(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ue&&(this._tTime-=ue)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=de(t);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Gt(i,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(lt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?In(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Nu);var i=Ue;return Ue=t,Us(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),Ue=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,go(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,go(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(Ot(this,t),lt(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,lt(i)),this._dur||(this._zTime=-ue),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-ue:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ue,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n<this.endTime(!0)-ue)},e.eventCallback=function(t,i,n){var s=this.vars;return arguments.length>1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this,n=i._prom;return new Promise(function(s){var o=ve(t)?t:fa,u=function(){var f=i.then;i.then=null,n&&n(),ve(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=f),s(o),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?u():i._prom=u})},e.kill=function(){Mi(this)},a})();Ct(tn.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:-ue,_prom:0,_ps:!1,_rts:1});var st=(function(a){jo(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=lt(t.sortChildren),pe&&Gt(t.parent||pe,ir(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&_a(ir(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Bi(0,arguments,this),this},r.from=function(i,n,s){return Bi(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Bi(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,Ni(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Me(i,n,Ot(this,s),1),this},r.call=function(i,n,s){return Gt(this,Me.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,u,l,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=l,s.onCompleteParams=f,s.parent=this,new Me(i,s,Ot(this,u)),this},r.staggerFrom=function(i,n,s,o,u,l,f){return s.runBackwards=1,Ni(s).immediateRender=lt(s.immediateRender),this.staggerTo(i,n,s,o,u,l,f)},r.staggerFromTo=function(i,n,s,o,u,l,f,h){return o.startAt=s,Ni(o).immediateRender=lt(o.immediateRender),this.staggerTo(i,n,o,u,l,f,h)},r.render=function(i,n,s){var o=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,f=i<=0?0:de(i),h=this._zTime<0!=i<0&&(this._initted||!l),d,c,p,_,m,T,x,S,y,b,k,w;if(this!==pe&&f>u&&i>=0&&(f=u),f!==this._tTime||s||h){if(o!==this._time&&l&&(f+=this._time-o,i+=this._time-o),d=f,y=this._start,S=this._ts,T=!S,h&&(l||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(d=de(f%m),f===u?(_=this._repeat,d=l):(b=de(f/m),_=~~b,_&&_===b&&(d=l,_--),d>l&&(d=l)),b=yi(this._tTime,m),!o&&this._tTime&&b!==_&&this._tTime-b*m-this._dur<=0&&(b=_),k&&_&1&&(d=l-d,w=1),_!==b&&!this._lock){var D=k&&b&1,P=D===(k&&_&1);if(_<b&&(D=!D),o=D?0:f%l?l:f,this._lock=1,this.render(o||(w?0:de(_*m)),n,!l)._lock=0,this._tTime=f,!n&&this.parent&&Tt(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1,b=_),o&&o!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,P&&(this._lock=2,o=D?l:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!T)return this;Da(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=qu(this,de(o),de(d)),x&&(f-=d-(d=x._start))),this._tTime=f,this._time=d,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&l&&!n&&!b&&(Tt(this,"onStart"),this._tTime!==f))return this;if(d>=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||d>=c._start)&&c._ts&&x!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(d-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(d-c._start)*c._ts,n,s),d!==this._time||!this._ts&&!T){x=0,p&&(f+=this._zTime=-ue);break}}c=p}else{c=this._last;for(var C=i<0?i:d;c;){if(p=c._prev,(c._act||C<=c._end)&&c._ts&&x!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(C-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(C-c._start)*c._ts,n,s||Ue&&Us(c)),d!==this._time||!this._ts&&!T){x=0,p&&(f+=this._zTime=C?-ue:ue);break}}c=p}}if(x&&!n&&(this.pause(),x.render(d>=o?0:-ue)._zTime=d>=o?1:-1,this._ts))return this._start=y,Wn(this),this.render(i,n,s);this._onUpdate&&!n&&Tt(this,"onUpdate",!0),(f===u&&this._tTime>=this.totalDuration()||!f&&o)&&(y===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(f===u&&this._ts>0||!f&&this._ts<0)&&Pr(this,1),!n&&!(i<0&&!o)&&(f||o||!u)&&(Tt(this,f===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(ur(n)||(n=Ot(this,n,i)),!(i instanceof tn)){if(Ze(i))return i.forEach(function(o){return s.add(o,n)}),this;if(Be(i))return this.addLabel(i,n);if(ve(i))i=Me.delayedCall(0,i);else return this}return this!==i?Gt(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Rt);for(var u=[],l=this._first;l;)l._start>=o&&(l instanceof Me?n&&u.push(l):(s&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,n,s)))),l=l._next;return u},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return Be(i)?this.removeLabel(i):ve(i)?this.killTweensOf(i):(i.parent===this&&Vn(this,i),i===this._recent&&(this._recent=this._last),Ur(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=de(wt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=Ot(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=Me.delayedCall(0,n||ji,s);return o.data="isPause",this._hasPause=1,Gt(this,o,Ot(this,i))},r.removePause=function(i){var n=this._first;for(i=Ot(this,i);n;)n._start===i&&n.data==="isPause"&&Pr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),u=o.length;u--;)mr!==o[u]&&o[u].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=Et(i),u=this._first,l=ur(n),f;u;)u instanceof Me?Bu(u._targets,o)&&(l?(!mr||u._initted&&u._ts)&&u.globalTime(0)<=n&&u.globalTime(u.totalDuration())>n:!n||u.isActive())&&s.push(u):(f=u.getTweensOf(o,n)).length&&s.push.apply(s,f),u=u._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=Ot(s,i),u=n,l=u.startAt,f=u.onStart,h=u.onStartParams,d=u.immediateRender,c,p=Me.to(s,Ct({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale())||ue,onStart:function(){if(s.pause(),!c){var m=n.duration||Math.abs((o-(l&&"time"in l?l.time:s._time))/s.timeScale());p._dur!==m&&vi(p,m,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,h||[])}},n));return d?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,Ct({startAt:{time:Ot(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),mo(this,Ot(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),mo(this,Ot(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+ue)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);var o=this._first,u=this.labels,l;for(i=de(i);o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(l in u)u[l]>=s&&(u[l]+=i);return Ur(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Ur(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,u=Rt,l,f,h;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(h=s.parent;o;)l=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>u&&s._sort&&o._ts&&!s._lock?(s._lock=1,Gt(s,o,f-o._delay,1)._lock=0):u=f,f<0&&o._ts&&(n-=f,(!h&&!s._dp||h&&h.smoothChildTiming)&&(s._start+=de(f/s._ts),s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),u=0),o._end>n&&o._ts&&(n=o._end),o=l;vi(s,s===pe&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(pe._ts&&(ua(pe,In(i,pe)),oa=wt.frame),wt.frame>=ho){ho+=Pt.autoSleep||120;var n=pe._first;if((!n||!n._ts)&&Pt.autoSleep&&wt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||wt.sleep()}}},e})(tn);Ct(st.prototype,{_lock:0,_hasPause:0,_forcing:0});var ul=function(e,r,t,i,n,s,o){var u=new ct(this._pt,e,r,0,1,Ia,null,n),l=0,f=0,h,d,c,p,_,m,T,x;for(u.b=t,u.e=i,t+="",i+="",(T=~i.indexOf("random("))&&(i=Ji(i)),s&&(x=[t,i],s(x,e,r),t=x[0],i=x[1]),d=t.match(Kn)||[];h=Kn.exec(i);)p=h[0],_=i.substring(l,h.index),c?c=(c+1)%5:_.substr(-5)==="rgba("&&(c=1),p!==d[f++]&&(m=parseFloat(d[f-1])||0,u._pt={_next:u._pt,p:_||f===1?_:",",s:m,c:p.charAt(1)==="="?fi(m,p)-m:parseFloat(p)-m,m:c&&c<4?Math.round:0},l=Kn.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=o,(ra.test(i)||T)&&(u.e=0),this._pt=u,u},Vs=function(e,r,t,i,n,s,o,u,l,f){ve(i)&&(i=i(n||0,e,s));var h=e[r],d=t!=="get"?t:ve(h)?l?e[r.indexOf("set")||!ve(e["get"+r.substr(3)])?r:"get"+r.substr(3)](l):e[r]():h,c=ve(h)?l?_l:Fa:qs,p;if(Be(i)&&(~i.indexOf("random(")&&(i=Ji(i)),i.charAt(1)==="="&&(p=fi(d,i)+(Ke(d)||0),(p||p===0)&&(i=p))),!f||d!==i||vs)return!isNaN(d*i)&&i!==""?(p=new ct(this._pt,e,r,+d||0,i-(d||0),typeof h=="boolean"?pl:za,0,c),l&&(p.fp=l),o&&p.modifier(o,this,e),this._pt=p):(!h&&!(r in e)&&Bs(r,i),ul.call(this,e,r,d,i,c,u||Pt.stringFilter,l))},ll=function(e,r,t,i,n){if(ve(e)&&(e=Yi(e,n,r,t,i)),!Zt(e)||e.style&&e.nodeType||Ze(e)||ea(e))return Be(e)?Yi(e,n,r,t,i):e;var s={},o;for(o in e)s[o]=Yi(e[o],n,r,t,i);return s},Aa=function(e,r,t,i,n,s){var o,u,l,f;if(vt[e]&&(o=new vt[e]).init(n,o.rawVars?r[e]:ll(r[e],i,n,s,t),t,i,s)!==!1&&(t._pt=u=new ct(t._pt,n,e,0,1,o.render,o,0,o.priority),t!==ui))for(l=t._ptLookup[t._targets.indexOf(n)],f=o._props.length;f--;)l[o._props[f]]=u;return o},mr,vs,Ws=function a(e,r,t){var i=e.vars,n=i.ease,s=i.startAt,o=i.immediateRender,u=i.lazy,l=i.onUpdate,f=i.runBackwards,h=i.yoyoEase,d=i.keyframes,c=i.autoRevert,p=e._dur,_=e._startAt,m=e._targets,T=e.parent,x=T&&T.data==="nested"?T.vars.targets:m,S=e._overwrite==="auto"&&!zs,y=e.timeline,b,k,w,D,P,C,L,O,V,X,Q,W,z;if(y&&(!d||!n)&&(n="none"),e._ease=Vr(n,gi.ease),e._yEase=h?Ca(Vr(h===!0?n:h,gi.ease)):0,h&&e._yoyo&&!e._repeat&&(h=e._yEase,e._yEase=e._ease,e._ease=h),e._from=!y&&!!i.runBackwards,!y||d&&!i.stagger){if(O=m[0]?Xr(m[0]).harness:0,W=O&&i[O.prop],b=zn(i,Ys),_&&(_._zTime<0&&_.progress(1),r<0&&f&&o&&!c?_.render(-1,!0):_.revert(f&&p?Sn:Lu),_._lazy=0),s){if(Pr(e._startAt=Me.set(m,Ct({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!_&&lt(u),startAt:null,delay:0,onUpdate:l&&function(){return Tt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ue||!o&&!c)&&e._startAt.revert(Sn),o&&p&&r<=0&&t<=0){r&&(e._zTime=r);return}}else if(f&&p&&!_){if(r&&(o=!1),w=Ct({overwrite:!1,data:"isFromStart",lazy:o&&!_&&lt(u),immediateRender:o,stagger:0,parent:T},b),W&&(w[O.prop]=W),Pr(e._startAt=Me.set(m,w)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ue?e._startAt.revert(Sn):e._startAt.render(-1,!0)),e._zTime=r,!o)a(e._startAt,ue,ue);else if(!r)return}for(e._pt=e._ptCache=0,u=p&&lt(u)||u&&!p,k=0;k<m.length;k++){if(P=m[k],L=P._gsap||Xs(m)[k]._gsap,e._ptLookup[k]=X={},_s[L.id]&&br.length&&Fn(),Q=x===m?k:x.indexOf(P),O&&(V=new O).init(P,W||b,e,Q,x)!==!1&&(e._pt=D=new ct(e._pt,P,V.name,0,1,V.render,V,0,V.priority),V._props.forEach(function(J){X[J]=D}),V.priority&&(C=1)),!O||W)for(w in b)vt[w]&&(V=Aa(w,b,e,Q,P,x))?V.priority&&(C=1):X[w]=D=Vs.call(e,P,w,"get",b[w],Q,x,0,i.stringFilter);e._op&&e._op[k]&&e.kill(P,e._op[k]),S&&e._pt&&(mr=e,pe.killTweensOf(P,X,e.globalTime(r)),z=!e.parent,mr=0),e._pt&&u&&(_s[L.id]=1)}C&&La(e),e._onInit&&e._onInit(e)}e._onUpdate=l,e._initted=(!e._op||e._pt)&&!z,d&&r<=0&&y.render(Rt,!0,!0)},fl=function(e,r,t,i,n,s,o,u){var l=(e._pt&&e._ptCache||(e._ptCache={}))[r],f,h,d,c;if(!l)for(l=e._ptCache[r]=[],d=e._ptLookup,c=e._targets.length;c--;){if(f=d[c][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return vs=1,e.vars[r]="+=0",Ws(e,o),vs=0,u?Zi(r+" not eligible for reset"):1;l.push(f)}for(c=l.length;c--;)h=l[c],f=h._pt||h,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=t-f.s,h.e&&(h.e=Se(t)+Ke(h.e)),h.b&&(h.b=f.s+Ke(h.b))},cl=function(e,r){var t=e[0]?Xr(e[0]).harness:0,i=t&&t.aliases,n,s,o,u;if(!i)return r;n=mi({},r);for(s in i)if(s in n)for(u=i[s].split(","),o=u.length;o--;)n[u[o]]=n[s];return n},hl=function(e,r,t,i){var n=r.ease||i||"power1.inOut",s,o;if(Ze(r))o=t[e]||(t[e]=[]),r.forEach(function(u,l){return o.push({t:l/(r.length-1)*100,v:u,e:n})});else for(s in r)o=t[s]||(t[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:r[s],e:n})},Yi=function(e,r,t,i,n){return ve(e)?e.call(r,t,i,n):Be(e)&&~e.indexOf("random(")?Ji(e):e},Ra=$s+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Ea={};ft(Ra+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return Ea[a]=1});var Me=(function(a){jo(e,a);function e(t,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:Ni(i))||this;var u=o.vars,l=u.duration,f=u.delay,h=u.immediateRender,d=u.stagger,c=u.overwrite,p=u.keyframes,_=u.defaults,m=u.scrollTrigger,T=u.yoyoEase,x=i.parent||pe,S=(Ze(t)||ea(t)?ur(t[0]):"length"in i)?[t]:Et(t),y,b,k,w,D,P,C,L;if(o._targets=S.length?Xs(S):Zi("GSAP target "+t+" not found. https://gsap.com",!Pt.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=c,p||d||cn(l)||cn(f)){if(i=o.vars,y=o.timeline=new st({data:"nested",defaults:_||{},targets:x&&x.data==="nested"?x.vars.targets:S}),y.kill(),y.parent=y._dp=ir(o),y._start=0,d||cn(l)||cn(f)){if(w=S.length,C=d&&ma(d),Zt(d))for(D in d)~Ra.indexOf(D)&&(L||(L={}),L[D]=d[D]);for(b=0;b<w;b++)k=zn(i,Ea),k.stagger=0,T&&(k.yoyoEase=T),L&&mi(k,L),P=S[b],k.duration=+Yi(l,ir(o),b,P,S),k.delay=(+Yi(f,ir(o),b,P,S)||0)-o._delay,!d&&w===1&&k.delay&&(o._delay=f=k.delay,o._start+=f,k.delay=0),y.to(P,k,C?C(b,P,S):0),y._ease=j.none;y.duration()?l=f=0:o.timeline=0}else if(p){Ni(Ct(y.vars.defaults,{ease:"none"})),y._ease=Vr(p.ease||i.ease||"none");var O=0,V,X,Q;if(Ze(p))p.forEach(function(W){return y.to(S,W,">")}),y.duration();else{k={};for(D in p)D==="ease"||D==="easeEach"||hl(D,p[D],k,p.easeEach);for(D in k)for(V=k[D].sort(function(W,z){return W.t-z.t}),O=0,b=0;b<V.length;b++)X=V[b],Q={ease:X.e,duration:(X.t-(b?V[b-1].t:0))/100*l},Q[D]=X.v,y.to(S,Q,O),O+=Q.duration;y.duration()<l&&y.to({},{duration:l-y.duration()})}}l||o.duration(l=y.duration())}else o.timeline=0;return c===!0&&!zs&&(mr=ir(o),pe.killTweensOf(S),mr=0),Gt(x,ir(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(h||!l&&!p&&o._start===de(x._time)&&lt(h)&&Uu(ir(o))&&x.data!=="nested")&&(o._tTime=-ue,o.render(Math.max(0,-f)||0)),m&&_a(ir(o),m),o}var r=e.prototype;return r.render=function(i,n,s){var o=this._time,u=this._tDur,l=this._dur,f=i<0,h=i>u-ue&&!f?u:i<ue?0:i,d,c,p,_,m,T,x,S,y;if(!l)Wu(this,i,n,s);else if(h!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(d=h,S=this.timeline,this._repeat){if(_=l+this._rDelay,this._repeat<-1&&f)return this.totalTime(_*100+i,n,s);if(d=de(h%_),h===u?(p=this._repeat,d=l):(m=de(h/_),p=~~m,p&&p===m?(d=l,p--):d>l&&(d=l)),T=this._yoyo&&p&1,T&&(y=this._yEase,d=l-d),m=yi(this._tTime,_),d===o&&!s&&this._initted&&p===m)return this._tTime=h,this;p!==m&&(S&&this._yEase&&Da(S,T),this.vars.repeatRefresh&&!T&&!this._lock&&d!==_&&this._initted&&(this._lock=s=1,this.render(de(_*p),!0).invalidate()._lock=0))}if(!this._initted){if(da(this,f?i:d,s,n,h))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(l!==this._dur)return this.render(i,n,s)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(y||this._ease)(d/l),this._from&&(this.ratio=x=1-x),!o&&h&&!n&&!m&&(Tt(this,"onStart"),this._tTime!==h))return this;for(c=this._pt;c;)c.r(x,c.d),c=c._next;S&&S.render(i<0?i:S._dur*S._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&ds(this,i,n,s),Tt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&Tt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(f&&!this._onUpdate&&ds(this,i,!0,!0),(i||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Pr(this,1),!n&&!(f&&!o)&&(h||o||T)&&(Tt(this,h===u?"onComplete":"onReverseComplete",!0),this._prom&&!(h<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,u){en||wt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Ws(this,l),f=this._ease(l/this._dur),fl(this,i,n,s,o,f,l,u)?this.resetTo(i,n,s,o,1):(qn(this,0),this.parent||ca(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Mi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ue),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,mr&&mr.vars.overwrite!==!0)._first||Mi(this),this.parent&&s!==this.timeline.totalDuration()&&vi(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,u=i?Et(i):o,l=this._ptLookup,f=this._pt,h,d,c,p,_,m,T;if((!n||n==="all")&&$u(o,u))return n==="all"&&(this._pt=0),Mi(this);for(h=this._op=this._op||[],n!=="all"&&(Be(n)&&(_={},ft(n,function(x){return _[x]=1}),n=_),n=cl(o,n)),T=o.length;T--;)if(~u.indexOf(o[T])){d=l[T],n==="all"?(h[T]=n,p=d,c={}):(c=h[T]=h[T]||{},p=n);for(_ in p)m=d&&d[_],m&&((!("kill"in m.d)||m.d.kill(_)===!0)&&Vn(this,m,"_pt"),delete d[_]),c!=="all"&&(c[_]=1)}return this._initted&&!this._pt&&f&&Mi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Bi(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Bi(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return pe.killTweensOf(i,n,s)},e})(tn);Ct(Me.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});ft("staggerTo,staggerFrom,staggerFromTo",function(a){Me[a]=function(){var e=new st,r=gs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var qs=function(e,r,t){return e[r]=t},Fa=function(e,r,t){return e[r](t)},_l=function(e,r,t,i){return e[r](i.fp,t)},dl=function(e,r,t){return e.setAttribute(r,t)},Gs=function(e,r){return ve(e[r])?Fa:Is(e[r])&&e.setAttribute?dl:qs},za=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},pl=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Ia=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Hs=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},gl=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},ml=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?Vn(this,r,"_pt"):r.dep||(t=1),r=i;return!t},yl=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},La=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},ct=(function(){function a(r,t,i,n,s,o,u,l,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||za,this.d=u||this,this.set=l||qs,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=yl,this.m=t,this.mt=n,this.tween=i},a})();ft($s+"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(a){return Ys[a]=1});kt.TweenMax=kt.TweenLite=Me;kt.TimelineLite=kt.TimelineMax=st;pe=new st({sortChildren:!1,defaults:gi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Pt.stringFilter=ka;var Wr=[],kn={},vl=[],vo=0,xl=0,es=function(e){return(kn[e]||vl).map(function(r){return r()})},xs=function(){var e=Date.now(),r=[];e-vo>2&&(es("matchMediaInit"),Wr.forEach(function(t){var i=t.queries,n=t.conditions,s,o,u,l;for(o in i)s=Wt.matchMedia(i[o]).matches,s&&(u=1),s!==n[o]&&(n[o]=s,l=1);l&&(t.revert(),u&&r.push(t))}),es("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),vo=e,es("matchMedia"))},Na=(function(){function a(r,t){this.selector=t&&ms(t),this.data=[],this._r=[],this.isReverted=!1,this.id=xl++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){ve(t)&&(n=i,i=t,t=ve);var s=this,o=function(){var l=he,f=s.selector,h;return l&&l!==s&&l.data.push(s),n&&(s.selector=ms(n)),he=s,h=i.apply(s,arguments),ve(h)&&s._r.push(h),he=l,s.selector=f,s.isReverted=!1,h};return s.last=o,t===ve?o(s,function(u){return s.add(null,u)}):t?s[t]=o:o},e.ignore=function(t){var i=he;he=null,t(this),he=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof Me&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?(function(){for(var o=n.getTweens(),u=n.data.length,l;u--;)l=n.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,h){return h.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),u=n.data.length;u--;)l=n.data[u],l instanceof st?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof Me)&&l.revert&&l.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0})():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=Wr.length;s--;)Wr[s].id===this.id&&Wr.splice(s,1)},e.revert=function(t){this.kill(t||{})},a})(),wl=(function(){function a(r){this.contexts=[],this.scope=r,he&&he.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){Zt(t)||(t={matches:t});var s=new Na(0,n||this.scope),o=s.conditions={},u,l,f;he&&!s.selector&&(s.selector=he.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(l in t)l==="all"?f=1:(u=Wt.matchMedia(t[l]),u&&(Wr.indexOf(s)<0&&Wr.push(s),(o[l]=u.matches)&&(f=1),u.addListener?u.addListener(xs):u.addEventListener("change",xs)));return f&&i(s,function(h){return s.add(null,h)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a})(),Ln={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r.forEach(function(i){return Ta(i)})},timeline:function(e){return new st(e)},getTweensOf:function(e,r){return pe.getTweensOf(e,r)},getProperty:function(e,r,t,i){Be(e)&&(e=Et(e)[0]);var n=Xr(e||{}).get,s=t?fa:la;return t==="native"&&(t=""),e&&(r?s((vt[r]&&vt[r].get||n)(e,r,t,i)):function(o,u,l){return s((vt[o]&&vt[o].get||n)(e,o,u,l))})},quickSetter:function(e,r,t){if(e=Et(e),e.length>1){var i=e.map(function(f){return _t.quickSetter(f,r,t)}),n=i.length;return function(f){for(var h=n;h--;)i[h](f)}}e=e[0]||{};var s=vt[r],o=Xr(e),u=o.harness&&(o.harness.aliases||{})[r]||r,l=s?function(f){var h=new s;ui._pt=0,h.init(e,t?f+t:f,ui,0,[e]),h.render(1,h),ui._pt&&Hs(1,ui)}:o.set(e,u);return s?l:function(f){return l(e,u,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=_t.to(e,Ct((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(u,l,f){return n.resetTo(r,u,l,f)};return s.tween=n,s},isTweening:function(e){return pe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Vr(e.ease,gi.ease)),_o(gi,e||{})},config:function(e){return _o(Pt,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!vt[o]&&!kt[o]&&Zi(r+" effect requires "+o+" plugin.")}),Qn[r]=function(o,u,l){return t(Et(o),Ct(u||{},n),l)},s&&(st.prototype[r]=function(o,u,l){return this.add(Qn[r](o,Zt(u)?u:(l=u)&&{},this),l)})},registerEase:function(e,r){j[e]=Vr(r)},parseEase:function(e,r){return arguments.length?Vr(e,r):j},getById:function(e){return pe.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new st(e),i,n;for(t.smoothChildTiming=lt(e.smoothChildTiming),pe.remove(t),t._dp=0,t._time=t._tTime=pe._time,i=pe._first;i;)n=i._next,(r||!(!i._dur&&i instanceof Me&&i.vars.onComplete===i._targets[0]))&&Gt(t,i,i._start-i._delay),i=n;return Gt(pe,t,0),t},context:function(e,r){return e?new Na(e,r):he},matchMedia:function(e){return new wl(e)},matchMediaRefresh:function(){return Wr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||xs()},addEventListener:function(e,r){var t=kn[e]||(kn[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=kn[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:Ju,wrapYoyo:el,distribute:ma,random:va,snap:ya,normalize:ju,getUnit:Ke,clamp:Hu,splitColor:Sa,toArray:Et,selector:ms,mapRange:wa,pipe:Qu,unitize:Zu,interpolate:tl,shuffle:ga},install:na,effects:Qn,ticker:wt,updateRoot:st.updateRoot,plugins:vt,globalTimeline:pe,core:{PropTween:ct,globals:sa,Tween:Me,Timeline:st,Animation:tn,getCache:Xr,_removeLinkedListItem:Vn,reverting:function(){return Ue},context:function(e){return e&&he&&(he.data.push(e),e._ctx=he),he},suppressOverwrites:function(e){return zs=e}}};ft("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return Ln[a]=Me[a]});wt.add(st.updateRoot);ui=Ln.to({},{duration:0});var bl=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},Tl=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=bl(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},ts=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var u,l;if(Be(n)&&(u={},ft(n,function(f){return u[f]=1}),n=u),r){u={};for(l in n)u[l]=r(n[l]);n=u}Tl(o,n)}}}},_t=Ln.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,u;this.tween=t;for(s in r)u=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(u||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=u,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)Ue?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},ts("roundProps",ys),ts("modifiers"),ts("snap",ya))||Ln;Me.version=st.version=_t.version="3.14.2";ia=1;Ls()&&xi();j.Power0;j.Power1;j.Power2;j.Power3;j.Power4;j.Linear;j.Quad;j.Cubic;j.Quart;j.Quint;j.Strong;j.Elastic;j.Back;j.SteppedEase;j.Bounce;j.Sine;j.Expo;j.Circ;var xo,yr,ci,Ks,Yr,wo,Qs,Sl=function(){return typeof window<"u"},lr={},Lr=180/Math.PI,hi=Math.PI/180,ri=Math.atan2,bo=1e8,Zs=/([A-Z])/g,Pl=/(left|right|width|margin|padding|x)/i,kl=/[\s,\(]\S/,Ht={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ws=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Cl=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Dl=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Ol=function(e,r){return r.set(r.t,r.p,e===1?r.e:e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Ml=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},Ba=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},Ya=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Al=function(e,r,t){return e.style[r]=t},Rl=function(e,r,t){return e.style.setProperty(r,t)},El=function(e,r,t){return e._gsap[r]=t},Fl=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},zl=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Il=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},ge="transform",ht=ge+"Origin",Ll=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in lr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=Ht[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=nr(i,o)}):this.tfm[e]=s.x?s[e]:nr(i,e),e===ht&&(this.tfm.zOrigin=s.zOrigin);else return Ht.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(ge)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ht,r,"")),e=ge}(n||r)&&this.props.push(e,r,n[e])},$a=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Nl=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?r[e[n]](e[n+2]):r[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(Zs,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),n=Qs(),(!n||!n.isStart)&&!t[ge]&&($a(t),i.zOrigin&&t[ht]&&(t[ht]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Xa=function(e,r){var t={target:e,props:[],revert:Nl,save:Ll};return e._gsap||_t.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return t.save(i)}),t},Ua,bs=function(e,r){var t=yr.createElementNS?yr.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):yr.createElement(e);return t&&t.style?t:yr.createElement(e)},St=function a(e,r,t){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Zs,"-$1").toLowerCase())||i.getPropertyValue(r)||!t&&a(e,wi(r)||r,1)||""},To="O,Moz,ms,Ms,Webkit".split(","),wi=function(e,r,t){var i=r||Yr,n=i.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(To[s]+e in n););return s<0?null:(s===3?"ms":s>=0?To[s]:"")+e},Ts=function(){Sl()&&window.document&&(xo=window,yr=xo.document,ci=yr.documentElement,Yr=bs("div")||{style:{}},bs("div"),ge=wi(ge),ht=ge+"Origin",Yr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ua=!!wi("perspective"),Qs=_t.core.reverting,Ks=1)},So=function(e){var r=e.ownerSVGElement,t=bs("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),ci.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),ci.removeChild(t),n},Po=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},Va=function(e){var r,t;try{r=e.getBBox()}catch{r=So(e),t=1}return r&&(r.width||r.height)||t||(r=So(e)),r&&!r.width&&!r.x&&!r.y?{x:+Po(e,["x","cx","x1"])||0,y:+Po(e,["y","cy","y1"])||0,width:0,height:0}:r},Wa=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Va(e))},kr=function(e,r){if(r){var t=e.style,i;r in lr&&r!==ht&&(r=ge),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(Zs,"-$1").toLowerCase())):t.removeAttribute(r)}},vr=function(e,r,t,i,n,s){var o=new ct(e._pt,r,t,0,1,s?Ya:Ba);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},ko={deg:1,rad:1,turn:1},Bl={grid:1,flex:1},Cr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=Yr.style,u=Pl.test(r),l=e.tagName.toLowerCase()==="svg",f=(l?"client":"offset")+(u?"Width":"Height"),h=100,d=i==="px",c=i==="%",p,_,m,T;if(i===s||!n||ko[i]||ko[s])return n;if(s!=="px"&&!d&&(n=a(e,r,t,"px")),T=e.getCTM&&Wa(e),(c||s==="%")&&(lr[r]||~r.indexOf("adius")))return p=T?e.getBBox()[u?"width":"height"]:e[f],Se(c?n/p*h:n/100*p);if(o[u?"width":"height"]=h+(d?s:i),_=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!l?e:e.parentNode,T&&(_=(e.ownerSVGElement||{}).parentNode),(!_||_===yr||!_.appendChild)&&(_=yr.body),m=_._gsap,m&&c&&m.width&&u&&m.time===wt.time&&!m.uncache)return Se(n/m.width*h);if(c&&(r==="height"||r==="width")){var x=e.style[r];e.style[r]=h+i,p=e[f],x?e.style[r]=x:kr(e,r)}else(c||s==="%")&&!Bl[St(_,"display")]&&(o.position=St(e,"position")),_===e&&(o.position="static"),_.appendChild(Yr),p=Yr[f],_.removeChild(Yr),o.position="absolute";return u&&c&&(m=Xr(_),m.time=wt.time,m.width=_[f]),Se(d?p*n/h:p&&n?h/p*n:0)},nr=function(e,r,t,i){var n;return Ks||Ts(),r in Ht&&r!=="transform"&&(r=Ht[r],~r.indexOf(",")&&(r=r.split(",")[0])),lr[r]&&r!=="transform"?(n=nn(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Bn(St(e,ht))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Nn[r]&&Nn[r](e,r,t)||St(e,r)||aa(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Cr(e,r,n,t)+t:n},Yl=function(e,r,t,i){if(!t||t==="none"){var n=wi(r,e,1),s=n&&St(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=St(e,"borderTopColor"))}var o=new ct(this._pt,e.style,r,0,1,Ia),u=0,l=0,f,h,d,c,p,_,m,T,x,S,y,b;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=St(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(_=e.style[r],e.style[r]=i,i=St(e,r)||i,_?e.style[r]=_:kr(e,r)),f=[t,i],ka(f),t=f[0],i=f[1],d=t.match(ai)||[],b=i.match(ai)||[],b.length){for(;h=ai.exec(i);)m=h[0],x=i.substring(u,h.index),p?p=(p+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(p=1),m!==(_=d[l++]||"")&&(c=parseFloat(_)||0,y=_.substr((c+"").length),m.charAt(1)==="="&&(m=fi(c,m)+y),T=parseFloat(m),S=m.substr((T+"").length),u=ai.lastIndex-S.length,S||(S=S||Pt.units[r]||y,u===i.length&&(i+=S,o.e+=S)),y!==S&&(c=Cr(e,r,_,S)||0),o._pt={_next:o._pt,p:x||l===1?x:",",s:c,c:T-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=u<i.length?i.substring(u,i.length):""}else o.r=r==="display"&&i==="none"?Ya:Ba;return ra.test(i)&&(o.e=0),this._pt=o,o},Co={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$l=function(e){var r=e.split(" "),t=r[0],i=r[1]||"50%";return(t==="top"||t==="bottom"||i==="left"||i==="right")&&(e=t,t=i,i=e),r[0]=Co[t]||t,r[1]=Co[i]||i,r.join(" ")},Xl=function(e,r){if(r.tween&&r.tween._time===r.tween._dur){var t=r.t,i=t.style,n=r.u,s=t._gsap,o,u,l;if(n==="all"||n===!0)i.cssText="",u=1;else for(n=n.split(","),l=n.length;--l>-1;)o=n[l],lr[o]&&(u=1,o=o==="transformOrigin"?ht:ge),kr(t,o);u&&(kr(t,ge),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",nn(t,1),s.uncache=1,$a(i)))}},Nn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new ct(e._pt,r,t,0,0,Xl);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},rn=[1,0,0,1,0,0],qa={},Ga=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Do=function(e){var r=St(e,ge);return Ga(r)?rn:r.substr(7).match(ta).map(Se)},js=function(e,r){var t=e._gsap||Xr(e),i=e.style,n=Do(e),s,o,u,l;return t.svg&&e.getAttribute("transform")?(u=e.transform.baseVal.consolidate().matrix,n=[u.a,u.b,u.c,u.d,u.e,u.f],n.join(",")==="1,0,0,1,0,0"?rn:n):(n===rn&&!e.offsetParent&&e!==ci&&!t.svg&&(u=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(l=1,o=e.nextElementSibling,ci.appendChild(e)),n=Do(e),u?i.display=u:kr(e,"display"),l&&(o?s.insertBefore(e,o):s?s.appendChild(e):ci.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Ss=function(e,r,t,i,n,s){var o=e._gsap,u=n||js(e,!0),l=o.xOrigin||0,f=o.yOrigin||0,h=o.xOffset||0,d=o.yOffset||0,c=u[0],p=u[1],_=u[2],m=u[3],T=u[4],x=u[5],S=r.split(" "),y=parseFloat(S[0])||0,b=parseFloat(S[1])||0,k,w,D,P;t?u!==rn&&(w=c*m-p*_)&&(D=y*(m/w)+b*(-_/w)+(_*x-m*T)/w,P=y*(-p/w)+b*(c/w)-(c*x-p*T)/w,y=D,b=P):(k=Va(e),y=k.x+(~S[0].indexOf("%")?y/100*k.width:y),b=k.y+(~(S[1]||S[0]).indexOf("%")?b/100*k.height:b)),i||i!==!1&&o.smooth?(T=y-l,x=b-f,o.xOffset=h+(T*c+x*_)-T,o.yOffset=d+(T*p+x*m)-x):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[ht]="0px 0px",s&&(vr(s,o,"xOrigin",l,y),vr(s,o,"yOrigin",f,b),vr(s,o,"xOffset",h,o.xOffset),vr(s,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",y+" "+b)},nn=function(e,r){var t=e._gsap||new Ma(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",u=getComputedStyle(e),l=St(e,ht)||"0",f,h,d,c,p,_,m,T,x,S,y,b,k,w,D,P,C,L,O,V,X,Q,W,z,J,se,g,le,M,Y,I,ee;return f=h=d=_=m=T=x=S=y=0,c=p=1,t.svg=!!(e.getCTM&&Wa(e)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ge]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[ge]!=="none"?u[ge]:"")),i.scale=i.rotate=i.translate="none"),w=js(e,t.svg),t.svg&&(t.uncache?(J=e.getBBox(),l=t.xOrigin-J.x+"px "+(t.yOrigin-J.y)+"px",z=""):z=!r&&e.getAttribute("data-svg-origin"),Ss(e,z||l,!!z||t.originIsAbsolute,t.smooth!==!1,w)),b=t.xOrigin||0,k=t.yOrigin||0,w!==rn&&(L=w[0],O=w[1],V=w[2],X=w[3],f=Q=w[4],h=W=w[5],w.length===6?(c=Math.sqrt(L*L+O*O),p=Math.sqrt(X*X+V*V),_=L||O?ri(O,L)*Lr:0,x=V||X?ri(V,X)*Lr+_:0,x&&(p*=Math.abs(Math.cos(x*hi))),t.svg&&(f-=b-(b*L+k*V),h-=k-(b*O+k*X))):(ee=w[6],Y=w[7],g=w[8],le=w[9],M=w[10],I=w[11],f=w[12],h=w[13],d=w[14],D=ri(ee,M),m=D*Lr,D&&(P=Math.cos(-D),C=Math.sin(-D),z=Q*P+g*C,J=W*P+le*C,se=ee*P+M*C,g=Q*-C+g*P,le=W*-C+le*P,M=ee*-C+M*P,I=Y*-C+I*P,Q=z,W=J,ee=se),D=ri(-V,M),T=D*Lr,D&&(P=Math.cos(-D),C=Math.sin(-D),z=L*P-g*C,J=O*P-le*C,se=V*P-M*C,I=X*C+I*P,L=z,O=J,V=se),D=ri(O,L),_=D*Lr,D&&(P=Math.cos(D),C=Math.sin(D),z=L*P+O*C,J=Q*P+W*C,O=O*P-L*C,W=W*P-Q*C,L=z,Q=J),m&&Math.abs(m)+Math.abs(_)>359.9&&(m=_=0,T=180-T),c=Se(Math.sqrt(L*L+O*O+V*V)),p=Se(Math.sqrt(W*W+ee*ee)),D=ri(Q,W),x=Math.abs(D)>2e-4?D*Lr:0,y=I?1/(I<0?-I:I):0),t.svg&&(z=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!Ga(St(e,ge)),z&&e.setAttribute("transform",z))),Math.abs(x)>90&&Math.abs(x)<270&&(n?(c*=-1,x+=_<=0?180:-180,_+=_<=0?180:-180):(p*=-1,x+=x<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=h-((t.yPercent=h&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=d+s,t.scaleX=Se(c),t.scaleY=Se(p),t.rotation=Se(_)+o,t.rotationX=Se(m)+o,t.rotationY=Se(T)+o,t.skewX=x+o,t.skewY=S+o,t.transformPerspective=y+s,(t.zOrigin=parseFloat(l.split(" ")[2])||!r&&t.zOrigin||0)&&(i[ht]=Bn(l)),t.xOffset=t.yOffset=0,t.force3D=Pt.force3D,t.renderTransform=t.svg?Vl:Ua?Ha:Ul,t.uncache=0,t},Bn=function(e){return(e=e.split(" "))[0]+" "+e[1]},rs=function(e,r,t){var i=Ke(r);return Se(parseFloat(r)+parseFloat(Cr(e,"x",t+"px",i)))+i},Ul=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,Ha(e,r)},zr="0deg",Ci="0px",Ir=") ",Ha=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.z,l=t.rotation,f=t.rotationY,h=t.rotationX,d=t.skewX,c=t.skewY,p=t.scaleX,_=t.scaleY,m=t.transformPerspective,T=t.force3D,x=t.target,S=t.zOrigin,y="",b=T==="auto"&&e&&e!==1||T===!0;if(S&&(h!==zr||f!==zr)){var k=parseFloat(f)*hi,w=Math.sin(k),D=Math.cos(k),P;k=parseFloat(h)*hi,P=Math.cos(k),s=rs(x,s,w*P*-S),o=rs(x,o,-Math.sin(k)*-S),u=rs(x,u,D*P*-S+S)}m!==Ci&&(y+="perspective("+m+Ir),(i||n)&&(y+="translate("+i+"%, "+n+"%) "),(b||s!==Ci||o!==Ci||u!==Ci)&&(y+=u!==Ci||b?"translate3d("+s+", "+o+", "+u+") ":"translate("+s+", "+o+Ir),l!==zr&&(y+="rotate("+l+Ir),f!==zr&&(y+="rotateY("+f+Ir),h!==zr&&(y+="rotateX("+h+Ir),(d!==zr||c!==zr)&&(y+="skew("+d+", "+c+Ir),(p!==1||_!==1)&&(y+="scale("+p+", "+_+Ir),x.style[ge]=y||"translate(0, 0)"},Vl=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,u=t.rotation,l=t.skewX,f=t.skewY,h=t.scaleX,d=t.scaleY,c=t.target,p=t.xOrigin,_=t.yOrigin,m=t.xOffset,T=t.yOffset,x=t.forceCSS,S=parseFloat(s),y=parseFloat(o),b,k,w,D,P;u=parseFloat(u),l=parseFloat(l),f=parseFloat(f),f&&(f=parseFloat(f),l+=f,u+=f),u||l?(u*=hi,l*=hi,b=Math.cos(u)*h,k=Math.sin(u)*h,w=Math.sin(u-l)*-d,D=Math.cos(u-l)*d,l&&(f*=hi,P=Math.tan(l-f),P=Math.sqrt(1+P*P),w*=P,D*=P,f&&(P=Math.tan(f),P=Math.sqrt(1+P*P),b*=P,k*=P)),b=Se(b),k=Se(k),w=Se(w),D=Se(D)):(b=h,D=d,k=w=0),(S&&!~(s+"").indexOf("px")||y&&!~(o+"").indexOf("px"))&&(S=Cr(c,"x",s,"px"),y=Cr(c,"y",o,"px")),(p||_||m||T)&&(S=Se(S+p-(p*b+_*w)+m),y=Se(y+_-(p*k+_*D)+T)),(i||n)&&(P=c.getBBox(),S=Se(S+i/100*P.width),y=Se(y+n/100*P.height)),P="matrix("+b+","+k+","+w+","+D+","+S+","+y+")",c.setAttribute("transform",P),x&&(c.style[ge]=P)},Wl=function(e,r,t,i,n){var s=360,o=Be(n),u=parseFloat(n)*(o&&~n.indexOf("rad")?Lr:1),l=u-i,f=i+l+"deg",h,d;return o&&(h=n.split("_")[1],h==="short"&&(l%=s,l!==l%(s/2)&&(l+=l<0?s:-s)),h==="cw"&&l<0?l=(l+s*bo)%s-~~(l/s)*s:h==="ccw"&&l>0&&(l=(l-s*bo)%s-~~(l/s)*s)),e._pt=d=new ct(e._pt,r,t,i,l,Cl),d.e=f,d.u="deg",e._props.push(t),d},Oo=function(e,r){for(var t in r)e[t]=r[t];return e},ql=function(e,r,t){var i=Oo({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,u,l,f,h,d,c,p;i.svg?(l=t.getAttribute("transform"),t.setAttribute("transform",""),s[ge]=r,o=nn(t,1),kr(t,ge),t.setAttribute("transform",l)):(l=getComputedStyle(t)[ge],s[ge]=r,o=nn(t,1),s[ge]=l);for(u in lr)l=i[u],f=o[u],l!==f&&n.indexOf(u)<0&&(c=Ke(l),p=Ke(f),h=c!==p?Cr(t,u,l,p):parseFloat(l),d=parseFloat(f),e._pt=new ct(e._pt,o,u,h,d-h,ws),e._pt.u=p||0,e._props.push(u));Oo(o,i)};ft("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Nn[e>1?"border"+a:a]=function(o,u,l,f,h){var d,c;if(arguments.length<4)return d=s.map(function(p){return nr(o,p,l)}),c=d.join(" "),c.split(d[0]).length===5?d[0]:c;d=(f+"").split(" "),c={},s.forEach(function(p,_){return c[p]=d[_]=d[_]||d[(_-1)/2|0]}),o.init(u,c,h)}});var Ka={name:"css",register:Ts,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,u=t.vars.startAt,l,f,h,d,c,p,_,m,T,x,S,y,b,k,w,D,P;Ks||Ts(),this.styles=this.styles||Xa(e),D=this.styles.props,this.tween=t;for(_ in r)if(_!=="autoRound"&&(f=r[_],!(vt[_]&&Aa(_,r,t,i,e,n)))){if(c=typeof f,p=Nn[_],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=Ji(f)),p)p(this,e,_,f,t)&&(w=1);else if(_.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(_)+"").trim(),f+="",Tr.lastIndex=0,Tr.test(l)||(m=Ke(l),T=Ke(f),T?m!==T&&(l=Cr(e,_,l,T)+T):m&&(f+=m)),this.add(o,"setProperty",l,f,i,n,0,0,_),s.push(_),D.push(_,0,o[_]);else if(c!=="undefined"){if(u&&_ in u?(l=typeof u[_]=="function"?u[_].call(t,i,e,n):u[_],Be(l)&&~l.indexOf("random(")&&(l=Ji(l)),Ke(l+"")||l==="auto"||(l+=Pt.units[_]||Ke(nr(e,_))||""),(l+"").charAt(1)==="="&&(l=nr(e,_))):l=nr(e,_),d=parseFloat(l),x=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),x&&(f=f.substr(2)),h=parseFloat(f),_ in Ht&&(_==="autoAlpha"&&(d===1&&nr(e,"visibility")==="hidden"&&h&&(d=0),D.push("visibility",0,o.visibility),vr(this,o,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),_!=="scale"&&_!=="transform"&&(_=Ht[_],~_.indexOf(",")&&(_=_.split(",")[0]))),S=_ in lr,S){if(this.styles.save(_),P=f,c==="string"&&f.substring(0,6)==="var(--"){if(f=St(e,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var C=e.style.perspective;e.style.perspective=f,f=St(e,"perspective"),C?e.style.perspective=C:kr(e,"perspective")}h=parseFloat(f)}if(y||(b=e._gsap,b.renderTransform&&!r.parseTransform||nn(e,r.parseTransform),k=r.smoothOrigin!==!1&&b.smooth,y=this._pt=new ct(this._pt,o,ge,0,1,b.renderTransform,b,0,-1),y.dep=1),_==="scale")this._pt=new ct(this._pt,b,"scaleY",b.scaleY,(x?fi(b.scaleY,x+h):h)-b.scaleY||0,ws),this._pt.u=0,s.push("scaleY",_),_+="X";else if(_==="transformOrigin"){D.push(ht,0,o[ht]),f=$l(f),b.svg?Ss(e,f,0,k,0,this):(T=parseFloat(f.split(" ")[2])||0,T!==b.zOrigin&&vr(this,b,"zOrigin",b.zOrigin,T),vr(this,o,_,Bn(l),Bn(f)));continue}else if(_==="svgOrigin"){Ss(e,f,1,k,0,this);continue}else if(_ in qa){Wl(this,b,_,d,x?fi(d,x+f):f);continue}else if(_==="smoothOrigin"){vr(this,b,"smooth",b.smooth,f);continue}else if(_==="force3D"){b[_]=f;continue}else if(_==="transform"){ql(this,f,e);continue}}else _ in o||(_=wi(_)||_);if(S||(h||h===0)&&(d||d===0)&&!kl.test(f)&&_ in o)m=(l+"").substr((d+"").length),h||(h=0),T=Ke(f)||(_ in Pt.units?Pt.units[_]:m),m!==T&&(d=Cr(e,_,l,T)),this._pt=new ct(this._pt,S?b:o,_,d,(x?fi(d,x+h):h)-d,!S&&(T==="px"||_==="zIndex")&&r.autoRound!==!1?Ml:ws),this._pt.u=T||0,S&&P!==f?(this._pt.b=l,this._pt.e=P,this._pt.r=Ol):m!==T&&T!=="%"&&(this._pt.b=l,this._pt.r=Dl);else if(_ in o)Yl.call(this,e,_,l,x?x+f:f);else if(_ in e)this.add(e,_,l||e[_],x?x+f:f,i,n);else if(_!=="parseTransform"){Bs(_,f);continue}S||(_ in o?D.push(_,0,o[_]):typeof e[_]=="function"?D.push(_,2,e[_]()):D.push(_,1,l||e[_])),s.push(_)}}w&&La(this)},render:function(e,r){if(r.tween._time||!Qs())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:nr,aliases:Ht,getSetter:function(e,r,t){var i=Ht[r];return i&&i.indexOf(",")<0&&(r=i),r in lr&&r!==ht&&(e._gsap.x||nr(e,"x"))?t&&wo===t?r==="scale"?Fl:El:(wo=t||{})&&(r==="scale"?zl:Il):e.style&&!Is(e.style[r])?Al:~r.indexOf("-")?Rl:Gs(e,r)},core:{_removeProperty:kr,_getMatrix:js}};_t.utils.checkPrefix=wi;_t.core.getStyleSaver=Xa;(function(a,e,r,t){var i=ft(a+","+e+","+r,function(n){lr[n]=1});ft(e,function(n){Pt.units[n]="deg",qa[n]=1}),Ht[i[13]]=a+","+e,ft(t,function(n){var s=n.split(":");Ht[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");ft("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Pt.units[a]="px"});_t.registerPlugin(Ka);var $t=_t.registerPlugin(Ka)||_t;$t.core.Tween;function Gl(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function Hl(a,e,r){return e&&Gl(a.prototype,e),a}var Xe,Cn,bt,xr,wr,_i,Qa,Nr,$i,Za,or,Yt,ja,Ja=function(){return Xe||typeof window<"u"&&(Xe=window.gsap)&&Xe.registerPlugin&&Xe},eu=1,li=[],G=[],Qt=[],Xi=Date.now,Ps=function(e,r){return r},Kl=function(){var e=$i.core,r=e.bridge||{},t=e._scrollers,i=e._proxies;t.push.apply(t,G),i.push.apply(i,Qt),G=t,Qt=i,Ps=function(s,o){return r[s](o)}},Sr=function(e,r){return~Qt.indexOf(e)&&Qt[Qt.indexOf(e)+1][r]},Ui=function(e){return!!~Za.indexOf(e)},tt=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:i!==!1,capture:!!n})},et=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},hn="scrollLeft",_n="scrollTop",ks=function(){return or&&or.isPressed||G.cache++},Yn=function(e,r){var t=function i(n){if(n||n===0){eu&&(bt.history.scrollRestoration="manual");var s=or&&or.isPressed;n=i.v=Math.round(n)||(or&&or.iOS?1:0),e(n),i.cacheID=G.cache,s&&Ps("ss",n)}else(r||G.cache!==i.cacheID||Ps("ref"))&&(i.cacheID=G.cache,i.v=e());return i.v+i.offset};return t.offset=0,e&&t},ot={s:hn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Yn(function(a){return arguments.length?bt.scrollTo(a,Ee.sc()):bt.pageXOffset||xr[hn]||wr[hn]||_i[hn]||0})},Ee={s:_n,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:ot,sc:Yn(function(a){return arguments.length?bt.scrollTo(ot.sc(),a):bt.pageYOffset||xr[_n]||wr[_n]||_i[_n]||0})},ut=function(e,r){return(r&&r._ctx&&r._ctx.selector||Xe.utils.toArray)(e)[0]||(typeof e=="string"&&Xe.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Ql=function(e,r){for(var t=r.length;t--;)if(r[t]===e||r[t].contains(e))return!0;return!1},Dr=function(e,r){var t=r.s,i=r.sc;Ui(e)&&(e=xr.scrollingElement||wr);var n=G.indexOf(e),s=i===Ee.sc?1:2;!~n&&(n=G.push(e)-1),G[n+s]||tt(e,"scroll",ks);var o=G[n+s],u=o||(G[n+s]=Yn(Sr(e,t),!0)||(Ui(e)?i:Yn(function(l){return arguments.length?e[t]=l:e[t]})));return u.target=e,o||(u.smooth=Xe.getProperty(e,"scrollBehavior")==="smooth"),u},Cs=function(e,r,t){var i=e,n=e,s=Xi(),o=s,u=r||50,l=Math.max(500,u*3),f=function(p,_){var m=Xi();_||m-s>u?(n=i,i=p,o=s,s=m):t?i+=p:i=n+(p-n)/(m-o)*(s-o)},h=function(){n=i=t?0:i,o=s=0},d=function(p){var _=o,m=n,T=Xi();return(p||p===0)&&p!==i&&f(p),s===o||T-o>l?0:(i+(t?m:-m))/((t?T:s)-_)*1e3};return{update:f,reset:h,getVelocity:d}},Di=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Mo=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},tu=function(){$i=Xe.core.globals().ScrollTrigger,$i&&$i.core&&Kl()},ru=function(e){return Xe=e||Ja(),!Cn&&Xe&&typeof document<"u"&&document.body&&(bt=window,xr=document,wr=xr.documentElement,_i=xr.body,Za=[bt,xr,wr,_i],Xe.utils.clamp,ja=Xe.core.context||function(){},Nr="onpointerenter"in _i?"pointer":"mouse",Qa=Pe.isTouch=bt.matchMedia&&bt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in bt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Yt=Pe.eventTypes=("ontouchstart"in wr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in wr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return eu=0},500),tu(),Cn=1),Cn};ot.op=Ee;G.cache=0;var Pe=(function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){Cn||ru(Xe)||console.warn("Please gsap.registerPlugin(Observer)"),$i||tu();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,u=t.lineHeight,l=t.debounce,f=t.preventDefault,h=t.onStop,d=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,_=t.event,m=t.onDragStart,T=t.onDragEnd,x=t.onDrag,S=t.onPress,y=t.onRelease,b=t.onRight,k=t.onLeft,w=t.onUp,D=t.onDown,P=t.onChangeX,C=t.onChangeY,L=t.onChange,O=t.onToggleX,V=t.onToggleY,X=t.onHover,Q=t.onHoverEnd,W=t.onMove,z=t.ignoreCheck,J=t.isNormalizer,se=t.onGestureStart,g=t.onGestureEnd,le=t.onWheel,M=t.onEnable,Y=t.onDisable,I=t.onClick,ee=t.scrollSpeed,xe=t.capture,re=t.allowClicks,ke=t.lockAxis,Fe=t.onLockAxis;this.target=o=ut(o)||wr,this.vars=t,c&&(c=Xe.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,ee=ee||1,s=s||"wheel,touch,pointer",l=l!==!1,u||(u=parseFloat(bt.getComputedStyle(_i).lineHeight)||22);var fr,je,Je,te,we,at,dt,v=this,pt=0,jt=0,cr=t.passive||!f&&t.passive!==!1,me=Dr(o,ot),Jt=Dr(o,Ee),hr=me(),Mr=Jt(),ze=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Yt[0]==="pointerdown",_r=Ui(o),be=o.ownerDocument||xr,zt=[0,0,0],Dt=[0,0,0],er=0,Ti=function(){return er=Xi()},Ce=function(F,ie){return(v.event=F)&&c&&Ql(F.target,c)||ie&&ze&&F.pointerType!=="touch"||z&&z(F,ie)},un=function(){v._vx.reset(),v._vy.reset(),je.pause(),h&&h(v)},tr=function(){var F=v.deltaX=Mo(zt),ie=v.deltaY=Mo(Dt),A=Math.abs(F)>=i,N=Math.abs(ie)>=i;L&&(A||N)&&L(v,F,ie,zt,Dt),A&&(b&&v.deltaX>0&&b(v),k&&v.deltaX<0&&k(v),P&&P(v),O&&v.deltaX<0!=pt<0&&O(v),pt=v.deltaX,zt[0]=zt[1]=zt[2]=0),N&&(D&&v.deltaY>0&&D(v),w&&v.deltaY<0&&w(v),C&&C(v),V&&v.deltaY<0!=jt<0&&V(v),jt=v.deltaY,Dt[0]=Dt[1]=Dt[2]=0),(te||Je)&&(W&&W(v),Je&&(m&&Je===1&&m(v),x&&x(v),Je=0),te=!1),at&&!(at=!1)&&Fe&&Fe(v),we&&(le(v),we=!1),fr=0},Jr=function(F,ie,A){zt[A]+=F,Dt[A]+=ie,v._vx.update(F),v._vy.update(ie),l?fr||(fr=requestAnimationFrame(tr)):tr()},ei=function(F,ie){ke&&!dt&&(v.axis=dt=Math.abs(F)>Math.abs(ie)?"x":"y",at=!0),dt!=="y"&&(zt[2]+=F,v._vx.update(F,!0)),dt!=="x"&&(Dt[2]+=ie,v._vy.update(ie,!0)),l?fr||(fr=requestAnimationFrame(tr)):tr()},dr=function(F){if(!Ce(F,1)){F=Di(F,f);var ie=F.clientX,A=F.clientY,N=ie-v.x,E=A-v.y,B=v.isDragging;v.x=ie,v.y=A,(B||(N||E)&&(Math.abs(v.startX-ie)>=n||Math.abs(v.startY-A)>=n))&&(Je||(Je=B?2:1),B||(v.isDragging=!0),ei(N,E))}},Ar=v.onPress=function($){Ce($,1)||$&&$.button||(v.axis=dt=null,je.pause(),v.isPressed=!0,$=Di($),pt=jt=0,v.startX=v.x=$.clientX,v.startY=v.y=$.clientY,v._vx.reset(),v._vy.reset(),tt(J?o:be,Yt[1],dr,cr,!0),v.deltaX=v.deltaY=0,S&&S(v))},K=v.onRelease=function($){if(!Ce($,1)){et(J?o:be,Yt[1],dr,!0);var F=!isNaN(v.y-v.startY),ie=v.isDragging,A=ie&&(Math.abs(v.x-v.startX)>3||Math.abs(v.y-v.startY)>3),N=Di($);!A&&F&&(v._vx.reset(),v._vy.reset(),f&&re&&Xe.delayedCall(.08,function(){if(Xi()-er>300&&!$.defaultPrevented){if($.target.click)$.target.click();else if(be.createEvent){var E=be.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,bt,1,N.screenX,N.screenY,N.clientX,N.clientY,!1,!1,!1,!1,0,null),$.target.dispatchEvent(E)}}})),v.isDragging=v.isGesturing=v.isPressed=!1,h&&ie&&!J&&je.restart(!0),Je&&tr(),T&&ie&&T(v),y&&y(v,A)}},Rr=function(F){return F.touches&&F.touches.length>1&&(v.isGesturing=!0)&&se(F,v.isDragging)},It=function(){return(v.isGesturing=!1)||g(v)},Lt=function(F){if(!Ce(F)){var ie=me(),A=Jt();Jr((ie-hr)*ee,(A-Mr)*ee,1),hr=ie,Mr=A,h&&je.restart(!0)}},Nt=function(F){if(!Ce(F)){F=Di(F,f),le&&(we=!0);var ie=(F.deltaMode===1?u:F.deltaMode===2?bt.innerHeight:1)*p;Jr(F.deltaX*ie,F.deltaY*ie,0),h&&!J&&je.restart(!0)}},Er=function(F){if(!Ce(F)){var ie=F.clientX,A=F.clientY,N=ie-v.x,E=A-v.y;v.x=ie,v.y=A,te=!0,h&&je.restart(!0),(N||E)&&ei(N,E)}},ti=function(F){v.event=F,X(v)},rr=function(F){v.event=F,Q(v)},Si=function(F){return Ce(F)||Di(F,f)&&I(v)};je=v._dc=Xe.delayedCall(d||.25,un).pause(),v.deltaX=v.deltaY=0,v._vx=Cs(0,50,!0),v._vy=Cs(0,50,!0),v.scrollX=me,v.scrollY=Jt,v.isDragging=v.isGesturing=v.isPressed=!1,ja(this),v.enable=function($){return v.isEnabled||(tt(_r?be:o,"scroll",ks),s.indexOf("scroll")>=0&&tt(_r?be:o,"scroll",Lt,cr,xe),s.indexOf("wheel")>=0&&tt(o,"wheel",Nt,cr,xe),(s.indexOf("touch")>=0&&Qa||s.indexOf("pointer")>=0)&&(tt(o,Yt[0],Ar,cr,xe),tt(be,Yt[2],K),tt(be,Yt[3],K),re&&tt(o,"click",Ti,!0,!0),I&&tt(o,"click",Si),se&&tt(be,"gesturestart",Rr),g&&tt(be,"gestureend",It),X&&tt(o,Nr+"enter",ti),Q&&tt(o,Nr+"leave",rr),W&&tt(o,Nr+"move",Er)),v.isEnabled=!0,v.isDragging=v.isGesturing=v.isPressed=te=Je=!1,v._vx.reset(),v._vy.reset(),hr=me(),Mr=Jt(),$&&$.type&&Ar($),M&&M(v)),v},v.disable=function(){v.isEnabled&&(li.filter(function($){return $!==v&&Ui($.target)}).length||et(_r?be:o,"scroll",ks),v.isPressed&&(v._vx.reset(),v._vy.reset(),et(J?o:be,Yt[1],dr,!0)),et(_r?be:o,"scroll",Lt,xe),et(o,"wheel",Nt,xe),et(o,Yt[0],Ar,xe),et(be,Yt[2],K),et(be,Yt[3],K),et(o,"click",Ti,!0),et(o,"click",Si),et(be,"gesturestart",Rr),et(be,"gestureend",It),et(o,Nr+"enter",ti),et(o,Nr+"leave",rr),et(o,Nr+"move",Er),v.isEnabled=v.isPressed=v.isDragging=!1,Y&&Y(v))},v.kill=v.revert=function(){v.disable();var $=li.indexOf(v);$>=0&&li.splice($,1),or===v&&(or=0)},li.push(v),J&&Ui(o)&&(or=v),v.enable(_)},Hl(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a})();Pe.version="3.14.2";Pe.create=function(a){return new Pe(a)};Pe.register=ru;Pe.getAll=function(){return li.slice()};Pe.getById=function(a){return li.filter(function(e){return e.vars.id===a})[0]};Ja()&&Xe.registerPlugin(Pe);var R,si,q,fe,xt,ne,Js,$n,sn,Vi,Ri,dn,Ge,Gn,Ds,it,Ao,Ro,oi,iu,is,nu,rt,Os,su,ou,gr,Ms,eo,di,to,Wi,As,ns,pn=1,He=Date.now,ss=He(),Ft=0,Ei=0,Eo=function(e,r,t){var i=yt(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Fo=function(e,r){return r&&(!yt(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Zl=function a(){return Ei&&requestAnimationFrame(a)},zo=function(){return Gn=1},Io=function(){return Gn=0},qt=function(e){return e},Fi=function(e){return Math.round(e*1e5)/1e5||0},au=function(){return typeof window<"u"},uu=function(){return R||au()&&(R=window.gsap)&&R.registerPlugin&&R},Kr=function(e){return!!~Js.indexOf(e)},lu=function(e){return(e==="Height"?to:q["inner"+e])||xt["client"+e]||ne["client"+e]},fu=function(e){return Sr(e,"getBoundingClientRect")||(Kr(e)?function(){return Rn.width=q.innerWidth,Rn.height=to,Rn}:function(){return sr(e)})},jl=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=Sr(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?lu(n):e["client"+n])||0}},Jl=function(e,r){return!r||~Qt.indexOf(e)?fu(e):function(){return Rn}},Kt=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=Sr(e,t))?s()-fu(e)()[n]:Kr(e)?(xt[t]||ne[t])-lu(i):e[t]-e["offset"+i])},gn=function(e,r){for(var t=0;t<oi.length;t+=3)(!r||~r.indexOf(oi[t+1]))&&e(oi[t],oi[t+1],oi[t+2])},yt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},zi=function(e){return typeof e=="number"},Br=function(e){return typeof e=="object"},Oi=function(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()},os=function(e,r){if(e.enabled){var t=e._ctx?e._ctx.add(function(){return r(e)}):r(e);t&&t.totalTime&&(e.callbackAnimation=t)}},ii=Math.abs,cu="left",hu="top",ro="right",io="bottom",qr="width",Gr="height",qi="Right",Gi="Left",Hi="Top",Ki="Bottom",Oe="padding",Mt="margin",bi="Width",no="Height",Re="px",At=function(e){return q.getComputedStyle(e)},ef=function(e){var r=At(e).position;e.style.position=r==="absolute"||r==="fixed"?r:"relative"},Lo=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},sr=function(e,r){var t=r&&At(e)[Ds]!=="matrix(1, 0, 0, 1, 0, 0)"&&R.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return t&&t.progress(0).kill(),i},Xn=function(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0},_u=function(e){var r=[],t=e.labels,i=e.duration(),n;for(n in t)r.push(t[n]/i);return r},tf=function(e){return function(r){return R.utils.snap(_u(e),r)}},so=function(e){var r=R.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(i,n){return i-n});return t?function(i,n,s){s===void 0&&(s=.001);var o;if(!n)return r(i);if(n>0){for(i-=s,o=0;o<t.length;o++)if(t[o]>=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)<s||o-i<0==n<0?o:r(n<0?i-e:i+e)}},rf=function(e){return function(r,t){return so(_u(e))(r,t.direction)}},mn=function(e,r,t,i){return t.split(",").forEach(function(n){return e(r,n,i)})},Ne=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:!i,capture:!!n})},Le=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},yn=function(e,r,t){t=t&&t.wheelHandler,t&&(e(r,"wheel",t),e(r,"touchmove",t))},No={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},vn={toggleActions:"play",anticipatePin:0},Un={top:0,left:0,center:.5,bottom:1,right:1},Dn=function(e,r){if(yt(e)){var t=e.indexOf("="),i=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Un?Un[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},xn=function(e,r,t,i,n,s,o,u){var l=n.startColor,f=n.endColor,h=n.fontSize,d=n.indent,c=n.fontWeight,p=fe.createElement("div"),_=Kr(t)||Sr(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,T=_?ne:t,x=e.indexOf("start")!==-1,S=x?l:f,y="border-color:"+S+";font-size:"+h+";color:"+S+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((m||u)&&_?"fixed;":"absolute;"),(m||u||!_)&&(y+=(i===Ee?ro:io)+":"+(s+parseFloat(d))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=x,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=y,p.innerText=r||r===0?e+"-"+r:e,T.children[0]?T.insertBefore(p,T.children[0]):T.appendChild(p),p._offset=p["offset"+i.op.d2],On(p,0,i,x),p},On=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+bi]=1,n["border"+o+bi]=0,n[t.p]=r+"px",R.set(e,n)},U=[],Rs={},on,Bo=function(){return He()-Ft>34&&(on||(on=requestAnimationFrame(ar)))},ni=function(){(!rt||!rt.isPressed||rt.startX>ne.clientWidth)&&(G.cache++,rt?on||(on=requestAnimationFrame(ar)):ar(),Ft||Zr("scrollStart"),Ft=He())},as=function(){ou=q.innerWidth,su=q.innerHeight},Ii=function(e){G.cache++,(e===!0||!Ge&&!nu&&!fe.fullscreenElement&&!fe.webkitFullscreenElement&&(!Os||ou!==q.innerWidth||Math.abs(q.innerHeight-su)>q.innerHeight*.25))&&$n.restart(!0)},Qr={},nf=[],du=function a(){return Le(H,"scrollEnd",a)||$r(!0)},Zr=function(e){return Qr[e]&&Qr[e].map(function(r){return r()})||nf},mt=[],pu=function(e){for(var r=0;r<mt.length;r+=5)(!e||mt[r+4]&&mt[r+4].query===e)&&(mt[r].style.cssText=mt[r+1],mt[r].getBBox&&mt[r].setAttribute("transform",mt[r+2]||""),mt[r+3].uncache=1)},gu=function(){return G.forEach(function(e){return Qe(e)&&++e.cacheID&&(e.rec=e())})},oo=function(e,r){var t;for(it=0;it<U.length;it++)t=U[it],t&&(!r||t._ctx===r)&&(e?t.kill(1):t.revert(!0,!0));Wi=!0,r&&pu(r),r||Zr("revert")},mu=function(e,r){G.cache++,(r||!nt)&&G.forEach(function(t){return Qe(t)&&t.cacheID++&&(t.rec=0)}),yt(e)&&(q.history.scrollRestoration=eo=e)},nt,Hr=0,Yo,sf=function(){if(Yo!==Hr){var e=Yo=Hr;requestAnimationFrame(function(){return e===Hr&&$r(!0)})}},yu=function(){ne.appendChild(di),to=!rt&&di.offsetHeight||q.innerHeight,ne.removeChild(di)},$o=function(e){return sn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=e?"none":"block"})},$r=function(e,r){if(xt=fe.documentElement,ne=fe.body,Js=[q,fe,xt,ne],Ft&&!e&&!Wi){Ne(H,"scrollEnd",du);return}yu(),nt=H.isRefreshing=!0,Wi||gu();var t=Zr("refreshInit");iu&&H.sort(),r||oo(),G.forEach(function(i){Qe(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),U.slice(0).forEach(function(i){return i.refresh()}),Wi=!1,U.forEach(function(i){if(i._subPinOffset&&i.pin){var n=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[n];i.revert(!0,1),i.adjustPinSpacing(i.pin[n]-s),i.refresh()}}),As=1,$o(!0),U.forEach(function(i){var n=Kt(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>n,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),$o(!1),As=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),G.forEach(function(i){Qe(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),mu(eo,1),$n.pause(),Hr++,nt=2,ar(2),U.forEach(function(i){return Qe(i.vars.onRefresh)&&i.vars.onRefresh(i)}),nt=H.isRefreshing=!1,Zr("refresh")},Es=0,Mn=1,Qi,ar=function(e){if(e===2||!nt&&!Wi){H.isUpdating=!0,Qi&&Qi.update(0);var r=U.length,t=He(),i=t-ss>=50,n=r&&U[0].scroll();if(Mn=Es>n?-1:1,nt||(Es=n),i&&(Ft&&!Gn&&t-Ft>200&&(Ft=0,Zr("scrollEnd")),Ri=ss,ss=t),Mn<0){for(it=r;it-- >0;)U[it]&&U[it].update(0,i);Mn=1}else for(it=0;it<r;it++)U[it]&&U[it].update(0,i);H.isUpdating=!1}on=0},Fs=[cu,hu,io,ro,Mt+Ki,Mt+qi,Mt+Hi,Mt+Gi,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],An=Fs.concat([qr,Gr,"boxSizing","max"+bi,"max"+no,"position",Mt,Oe,Oe+Hi,Oe+qi,Oe+Ki,Oe+Gi]),of=function(e,r,t){pi(t);var i=e._gsap;if(i.spacerIsNative)pi(i.spacerState);else if(e._gsap.swappedIn){var n=r.parentNode;n&&(n.insertBefore(e,r),n.removeChild(r))}e._gsap.swappedIn=!1},us=function(e,r,t,i){if(!e._gsap.swappedIn){for(var n=Fs.length,s=r.style,o=e.style,u;n--;)u=Fs[n],s[u]=t[u];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),o[io]=o[ro]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[qr]=Xn(e,ot)+Re,s[Gr]=Xn(e,Ee)+Re,s[Oe]=o[Mt]=o[hu]=o[cu]="0",pi(i),o[qr]=o["max"+bi]=t[qr],o[Gr]=o["max"+no]=t[Gr],o[Oe]=t[Oe],e.parentNode!==r&&(e.parentNode.insertBefore(r,e),r.appendChild(e)),e._gsap.swappedIn=!0}},af=/([A-Z])/g,pi=function(e){if(e){var r=e.t.style,t=e.length,i=0,n,s;for((e.t._gsap||R.core.getCache(e.t)).uncache=1;i<t;i+=2)s=e[i+1],n=e[i],s?r[n]=s:r[n]&&r.removeProperty(n.replace(af,"-$1").toLowerCase())}},wn=function(e){for(var r=An.length,t=e.style,i=[],n=0;n<r;n++)i.push(An[n],t[An[n]]);return i.t=e,i},uf=function(e,r,t){for(var i=[],n=e.length,s=t?8:0,o;s<n;s+=2)o=e[s],i.push(o,o in r?r[o]:e[s+1]);return i.t=e.t,i},Rn={left:0,top:0},Xo=function(e,r,t,i,n,s,o,u,l,f,h,d,c,p){Qe(e)&&(e=e(u)),yt(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?Dn("0"+e.substr(3),t):0));var _=c?c.time():0,m,T,x;if(c&&c.seek(0),isNaN(e)||(e=+e),zi(e))c&&(e=R.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,d,e)),o&&On(o,t,i,!0);else{Qe(r)&&(r=r(u));var S=(e||"0").split(" "),y,b,k,w;x=ut(r,u)||ne,y=sr(x)||{},(!y||!y.left&&!y.top)&&At(x).display==="none"&&(w=x.style.display,x.style.display="block",y=sr(x),w?x.style.display=w:x.style.removeProperty("display")),b=Dn(S[0],y[i.d]),k=Dn(S[1]||"0",t),e=y[i.p]-l[i.p]-f+b+n-k,o&&On(o,k,i,t-k<20||o._isStart&&k>20),t-=t-k}if(p&&(u[p]=e||-.001,e<0&&(e=0)),s){var D=e+t,P=s._isStart;m="scroll"+i.d2,On(s,D,i,P&&D>20||!P&&(h?Math.max(ne[m],xt[m]):s.parentNode[m])<=D+1),h&&(l=sr(o),h&&(s.style[i.op.p]=l[i.op.p]-i.op.m-s._offset+Re))}return c&&x&&(m=sr(x),c.seek(d),T=sr(x),c._caScrollDist=m[i.p]-T[i.p],e=e/c._caScrollDist*d),c&&c.seek(_),c?e:Math.round(e)},lf=/(webkit|moz|length|cssText|inset)/i,Uo=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===ne){e._stOrig=n.cssText,o=At(e);for(s in o)!+s&&!lf.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;R.core.getCache(e).uncache=1,r.appendChild(e)}},vu=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},bn=function(e,r,t){var i={};i[r.p]="+="+t,R.set(e,i)},Vo=function(e,r){var t=Dr(e,r),i="_scroll"+r.p2,n=function s(o,u,l,f,h){var d=s.tween,c=u.onComplete,p={};l=l||t();var _=vu(t,l,function(){d.kill(),s.tween=0});return h=f&&h||0,f=f||o-l,d&&d.kill(),u[i]=o,u.inherit=!1,u.modifiers=p,p[i]=function(){return _(l+f*d.ratio+h*d.ratio*d.ratio)},u.onUpdate=function(){G.cache++,s.tween&&ar()},u.onComplete=function(){s.tween=0,c&&c.call(d)},d=s.tween=R.to(e,u),d};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Ne(e,"wheel",t.wheelHandler),H.isTouch&&Ne(e,"touchmove",t.wheelHandler),n},H=(function(){function a(r,t){si||a.register(R)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ms(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Ei){this.update=this.refresh=this.kill=qt;return}t=Lo(yt(t)||zi(t)||t.nodeType?{trigger:t}:t,vn);var n=t,s=n.onUpdate,o=n.toggleClass,u=n.id,l=n.onToggle,f=n.onRefresh,h=n.scrub,d=n.trigger,c=n.pin,p=n.pinSpacing,_=n.invalidateOnRefresh,m=n.anticipatePin,T=n.onScrubComplete,x=n.onSnapComplete,S=n.once,y=n.snap,b=n.pinReparent,k=n.pinSpacer,w=n.containerAnimation,D=n.fastScrollEnd,P=n.preventOverlaps,C=t.horizontal||t.containerAnimation&&t.horizontal!==!1?ot:Ee,L=!h&&h!==0,O=ut(t.scroller||q),V=R.core.getCache(O),X=Kr(O),Q=("pinType"in t?t.pinType:Sr(O,"pinType")||X&&"fixed")==="fixed",W=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],z=L&&t.toggleActions.split(" "),J="markers"in t?t.markers:vn.markers,se=X?0:parseFloat(At(O)["border"+C.p2+bi])||0,g=this,le=t.onRefreshInit&&function(){return t.onRefreshInit(g)},M=jl(O,X,C),Y=Jl(O,X),I=0,ee=0,xe=0,re=Dr(O,C),ke,Fe,fr,je,Je,te,we,at,dt,v,pt,jt,cr,me,Jt,hr,Mr,ze,_r,be,zt,Dt,er,Ti,Ce,un,tr,Jr,ei,dr,Ar,K,Rr,It,Lt,Nt,Er,ti,rr;if(g._startClamp=g._endClamp=!1,g._dir=C,m*=45,g.scroller=O,g.scroll=w?w.time.bind(w):re,je=re(),g.vars=t,i=i||t.animation,"refreshPriority"in t&&(iu=1,t.refreshPriority===-9999&&(Qi=g)),V.tweenScroll=V.tweenScroll||{top:Vo(O,Ee),left:Vo(O,ot)},g.tweenTo=ke=V.tweenScroll[C.p],g.scrubDuration=function(A){Rr=zi(A)&&A,Rr?K?K.duration(A):K=R.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Rr,paused:!0,onComplete:function(){return T&&T(g)}}):(K&&K.progress(1).kill(),K=0)},i&&(i.vars.lazy=!1,i._initted&&!g.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),g.animation=i.pause(),i.scrollTrigger=g,g.scrubDuration(h),dr=0,u||(u=i.vars.id)),y&&((!Br(y)||y.push)&&(y={snapTo:y}),"scrollBehavior"in ne.style&&R.set(X?[ne,xt]:O,{scrollBehavior:"auto"}),G.forEach(function(A){return Qe(A)&&A.target===(X?fe.scrollingElement||xt:O)&&(A.smooth=!1)}),fr=Qe(y.snapTo)?y.snapTo:y.snapTo==="labels"?tf(i):y.snapTo==="labelsDirectional"?rf(i):y.directional!==!1?function(A,N){return so(y.snapTo)(A,He()-ee<500?0:N.direction)}:R.utils.snap(y.snapTo),It=y.duration||{min:.1,max:2},It=Br(It)?Vi(It.min,It.max):Vi(It,It),Lt=R.delayedCall(y.delay||Rr/2||.1,function(){var A=re(),N=He()-ee<500,E=ke.tween;if((N||Math.abs(g.getVelocity())<10)&&!E&&!Gn&&I!==A){var B=(A-te)/me,Ie=i&&!L?i.totalProgress():B,Z=N?0:(Ie-Ar)/(He()-Ri)*1e3||0,Te=R.utils.clamp(-B,1-B,ii(Z/2)*Z/.185),Ve=B+(y.inertia===!1?0:Te),ye,ce,oe=y,Bt=oe.onStart,_e=oe.onInterrupt,gt=oe.onComplete;if(ye=fr(Ve,g),zi(ye)||(ye=Ve),ce=Math.max(0,Math.round(te+ye*me)),A<=we&&A>=te&&ce!==A){if(E&&!E._initted&&E.data<=ii(ce-A))return;y.inertia===!1&&(Te=ye-B),ke(ce,{duration:It(ii(Math.max(ii(Ve-Ie),ii(ye-Ie))*.185/Z/.05||0)),ease:y.ease||"power3",data:ii(ce-A),onInterrupt:function(){return Lt.restart(!0)&&_e&&_e(g)},onComplete:function(){g.update(),I=re(),i&&!L&&(K?K.resetTo("totalProgress",ye,i._tTime/i._tDur):i.progress(ye)),dr=Ar=i&&!L?i.totalProgress():g.progress,x&&x(g),gt&&gt(g)}},A,Te*me,ce-A-Te*me),Bt&&Bt(g,ke.tween)}}else g.isActive&&I!==A&&Lt.restart(!0)}).pause()),u&&(Rs[u]=g),d=g.trigger=ut(d||c!==!0&&c),rr=d&&d._gsap&&d._gsap.stRevert,rr&&(rr=rr(g)),c=c===!0?d:ut(c),yt(o)&&(o={targets:d,className:o}),c&&(p===!1||p===Mt||(p=!p&&c.parentNode&&c.parentNode.style&&At(c.parentNode).display==="flex"?!1:Oe),g.pin=c,Fe=R.core.getCache(c),Fe.spacer?Jt=Fe.pinState:(k&&(k=ut(k),k&&!k.nodeType&&(k=k.current||k.nativeElement),Fe.spacerIsNative=!!k,k&&(Fe.spacerState=wn(k))),Fe.spacer=ze=k||fe.createElement("div"),ze.classList.add("pin-spacer"),u&&ze.classList.add("pin-spacer-"+u),Fe.pinState=Jt=wn(c)),t.force3D!==!1&&R.set(c,{force3D:!0}),g.spacer=ze=Fe.spacer,ei=At(c),Ti=ei[p+C.os2],be=R.getProperty(c),zt=R.quickSetter(c,C.a,Re),us(c,ze,ei),Mr=wn(c)),J){jt=Br(J)?Lo(J,No):No,v=xn("scroller-start",u,O,C,jt,0),pt=xn("scroller-end",u,O,C,jt,0,v),_r=v["offset"+C.op.d2];var Si=ut(Sr(O,"content")||O);at=this.markerStart=xn("start",u,Si,C,jt,_r,0,w),dt=this.markerEnd=xn("end",u,Si,C,jt,_r,0,w),w&&(ti=R.quickSetter([at,dt],C.a,Re)),!Q&&!(Qt.length&&Sr(O,"fixedMarkers")===!0)&&(ef(X?ne:O),R.set([v,pt],{force3D:!0}),un=R.quickSetter(v,C.a,Re),Jr=R.quickSetter(pt,C.a,Re))}if(w){var $=w.vars.onUpdate,F=w.vars.onUpdateParams;w.eventCallback("onUpdate",function(){g.update(0,0,1),$&&$.apply(w,F||[])})}if(g.previous=function(){return U[U.indexOf(g)-1]},g.next=function(){return U[U.indexOf(g)+1]},g.revert=function(A,N){if(!N)return g.kill(!0);var E=A!==!1||!g.enabled,B=Ge;E!==g.isReverted&&(E&&(Nt=Math.max(re(),g.scroll.rec||0),xe=g.progress,Er=i&&i.progress()),at&&[at,dt,v,pt].forEach(function(Ie){return Ie.style.display=E?"none":"block"}),E&&(Ge=g,g.update(E)),c&&(!b||!g.isActive)&&(E?of(c,ze,Jt):us(c,ze,At(c),Ce)),E||g.update(E),Ge=B,g.isReverted=E)},g.refresh=function(A,N,E,B){if(!((Ge||!g.enabled)&&!N)){if(c&&A&&Ft){Ne(a,"scrollEnd",du);return}!nt&&le&&le(g),Ge=g,ke.tween&&!E&&(ke.tween.kill(),ke.tween=0),K&&K.pause(),_&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(pr){return pr.vars.immediateRender&&pr.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),g.isReverted||g.revert(!0,!0),g._subPinOffset=!1;var Ie=M(),Z=Y(),Te=w?w.duration():Kt(O,C),Ve=me<=.01||!me,ye=0,ce=B||0,oe=Br(E)?E.end:t.end,Bt=t.endTrigger||d,_e=Br(E)?E.start:t.start||(t.start===0||!d?0:c?"0 0":"0 100%"),gt=g.pinnedContainer=t.pinnedContainer&&ut(t.pinnedContainer,g),Xt=d&&Math.max(0,U.indexOf(g))||0,Ye=Xt,$e,We,Fr,ln,qe,Ae,Ut,Hn,ao,Pi,Vt,ki,fn;for(J&&Br(E)&&(ki=R.getProperty(v,C.p),fn=R.getProperty(pt,C.p));Ye-- >0;)Ae=U[Ye],Ae.end||Ae.refresh(0,1)||(Ge=g),Ut=Ae.pin,Ut&&(Ut===d||Ut===c||Ut===gt)&&!Ae.isReverted&&(Pi||(Pi=[]),Pi.unshift(Ae),Ae.revert(!0,!0)),Ae!==U[Ye]&&(Xt--,Ye--);for(Qe(_e)&&(_e=_e(g)),_e=Eo(_e,"start",g),te=Xo(_e,d,Ie,C,re(),at,v,g,Z,se,Q,Te,w,g._startClamp&&"_startClamp")||(c?-.001:0),Qe(oe)&&(oe=oe(g)),yt(oe)&&!oe.indexOf("+=")&&(~oe.indexOf(" ")?oe=(yt(_e)?_e.split(" ")[0]:"")+oe:(ye=Dn(oe.substr(2),Ie),oe=yt(_e)?_e:(w?R.utils.mapRange(0,w.duration(),w.scrollTrigger.start,w.scrollTrigger.end,te):te)+ye,Bt=d)),oe=Eo(oe,"end",g),we=Math.max(te,Xo(oe||(Bt?"100% 0":Te),Bt,Ie,C,re()+ye,dt,pt,g,Z,se,Q,Te,w,g._endClamp&&"_endClamp"))||-.001,ye=0,Ye=Xt;Ye--;)Ae=U[Ye]||{},Ut=Ae.pin,Ut&&Ae.start-Ae._pinPush<=te&&!w&&Ae.end>0&&($e=Ae.end-(g._startClamp?Math.max(0,Ae.start):Ae.start),(Ut===d&&Ae.start-Ae._pinPush<te||Ut===gt)&&isNaN(_e)&&(ye+=$e*(1-Ae.progress)),Ut===c&&(ce+=$e));if(te+=ye,we+=ye,g._startClamp&&(g._startClamp+=ye),g._endClamp&&!nt&&(g._endClamp=we||-.001,we=Math.min(we,Kt(O,C))),me=we-te||(te-=.01)&&.001,Ve&&(xe=R.utils.clamp(0,1,R.utils.normalize(te,we,Nt))),g._pinPush=ce,at&&ye&&($e={},$e[C.a]="+="+ye,gt&&($e[C.p]="-="+re()),R.set([at,dt],$e)),c&&!(As&&g.end>=Kt(O,C)))$e=At(c),ln=C===Ee,Fr=re(),Dt=parseFloat(be(C.a))+ce,!Te&&we>1&&(Vt=(X?fe.scrollingElement||xt:O).style,Vt={style:Vt,value:Vt["overflow"+C.a.toUpperCase()]},X&&At(ne)["overflow"+C.a.toUpperCase()]!=="scroll"&&(Vt.style["overflow"+C.a.toUpperCase()]="scroll")),us(c,ze,$e),Mr=wn(c),We=sr(c,!0),Hn=Q&&Dr(O,ln?ot:Ee)(),p?(Ce=[p+C.os2,me+ce+Re],Ce.t=ze,Ye=p===Oe?Xn(c,C)+me+ce:0,Ye&&(Ce.push(C.d,Ye+Re),ze.style.flexBasis!=="auto"&&(ze.style.flexBasis=Ye+Re)),pi(Ce),gt&&U.forEach(function(pr){pr.pin===gt&&pr.vars.pinSpacing!==!1&&(pr._subPinOffset=!0)}),Q&&re(Nt)):(Ye=Xn(c,C),Ye&&ze.style.flexBasis!=="auto"&&(ze.style.flexBasis=Ye+Re)),Q&&(qe={top:We.top+(ln?Fr-te:Hn)+Re,left:We.left+(ln?Hn:Fr-te)+Re,boxSizing:"border-box",position:"fixed"},qe[qr]=qe["max"+bi]=Math.ceil(We.width)+Re,qe[Gr]=qe["max"+no]=Math.ceil(We.height)+Re,qe[Mt]=qe[Mt+Hi]=qe[Mt+qi]=qe[Mt+Ki]=qe[Mt+Gi]="0",qe[Oe]=$e[Oe],qe[Oe+Hi]=$e[Oe+Hi],qe[Oe+qi]=$e[Oe+qi],qe[Oe+Ki]=$e[Oe+Ki],qe[Oe+Gi]=$e[Oe+Gi],hr=uf(Jt,qe,b),nt&&re(0)),i?(ao=i._initted,is(1),i.render(i.duration(),!0,!0),er=be(C.a)-Dt+me+ce,tr=Math.abs(me-er)>1,Q&&tr&&hr.splice(hr.length-2,2),i.render(0,!0,!0),ao||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),is(0)):er=me,Vt&&(Vt.value?Vt.style["overflow"+C.a.toUpperCase()]=Vt.value:Vt.style.removeProperty("overflow-"+C.a));else if(d&&re()&&!w)for(We=d.parentNode;We&&We!==ne;)We._pinOffset&&(te-=We._pinOffset,we-=We._pinOffset),We=We.parentNode;Pi&&Pi.forEach(function(pr){return pr.revert(!1,!0)}),g.start=te,g.end=we,je=Je=nt?Nt:re(),!w&&!nt&&(je<Nt&&re(Nt),g.scroll.rec=0),g.revert(!1,!0),ee=He(),Lt&&(I=-1,Lt.restart(!0)),Ge=0,i&&L&&(i._initted||Er)&&i.progress()!==Er&&i.progress(Er||0,!0).render(i.time(),!0,!0),(Ve||xe!==g.progress||w||_||i&&!i._initted)&&(i&&!L&&(i._initted||xe||i.vars.immediateRender!==!1)&&i.totalProgress(w&&te<-.001&&!xe?R.utils.normalize(te,we,0):xe,!0),g.progress=Ve||(je-te)/me===xe?0:xe),c&&p&&(ze._pinOffset=Math.round(g.progress*er)),K&&K.invalidate(),isNaN(ki)||(ki-=R.getProperty(v,C.p),fn-=R.getProperty(pt,C.p),bn(v,C,ki),bn(at,C,ki-(B||0)),bn(pt,C,fn),bn(dt,C,fn-(B||0))),Ve&&!nt&&g.update(),f&&!nt&&!cr&&(cr=!0,f(g),cr=!1)}},g.getVelocity=function(){return(re()-Je)/(He()-Ri)*1e3||0},g.endAnimation=function(){Oi(g.callbackAnimation),i&&(K?K.progress(1):i.paused()?L||Oi(i,g.direction<0,1):Oi(i,i.reversed()))},g.labelToScroll=function(A){return i&&i.labels&&(te||g.refresh()||te)+i.labels[A]/i.duration()*me||0},g.getTrailing=function(A){var N=U.indexOf(g),E=g.direction>0?U.slice(0,N).reverse():U.slice(N+1);return(yt(A)?E.filter(function(B){return B.vars.preventOverlaps===A}):E).filter(function(B){return g.direction>0?B.end<=te:B.start>=we})},g.update=function(A,N,E){if(!(w&&!E&&!A)){var B=nt===!0?Nt:g.scroll(),Ie=A?0:(B-te)/me,Z=Ie<0?0:Ie>1?1:Ie||0,Te=g.progress,Ve,ye,ce,oe,Bt,_e,gt,Xt;if(N&&(Je=je,je=w?re():B,y&&(Ar=dr,dr=i&&!L?i.totalProgress():Z)),m&&c&&!Ge&&!pn&&Ft&&(!Z&&te<B+(B-Je)/(He()-Ri)*m?Z=1e-4:Z===1&&we>B+(B-Je)/(He()-Ri)*m&&(Z=.9999)),Z!==Te&&g.enabled){if(Ve=g.isActive=!!Z&&Z<1,ye=!!Te&&Te<1,_e=Ve!==ye,Bt=_e||!!Z!=!!Te,g.direction=Z>Te?1:-1,g.progress=Z,Bt&&!Ge&&(ce=Z&&!Te?0:Z===1?1:Te===1?2:3,L&&(oe=!_e&&z[ce+1]!=="none"&&z[ce+1]||z[ce],Xt=i&&(oe==="complete"||oe==="reset"||oe in i))),P&&(_e||Xt)&&(Xt||h||!i)&&(Qe(P)?P(g):g.getTrailing(P).forEach(function(Fr){return Fr.endAnimation()})),L||(K&&!Ge&&!pn?(K._dp._time-K._start!==K._time&&K.render(K._dp._time-K._start),K.resetTo?K.resetTo("totalProgress",Z,i._tTime/i._tDur):(K.vars.totalProgress=Z,K.invalidate().restart())):i&&i.totalProgress(Z,!!(Ge&&(ee||A)))),c){if(A&&p&&(ze.style[p+C.os2]=Ti),!Q)zt(Fi(Dt+er*Z));else if(Bt){if(gt=!A&&Z>Te&&we+1>B&&B+1>=Kt(O,C),b)if(!A&&(Ve||gt)){var Ye=sr(c,!0),$e=B-te;Uo(c,ne,Ye.top+(C===Ee?$e:0)+Re,Ye.left+(C===Ee?0:$e)+Re)}else Uo(c,ze);pi(Ve||gt?hr:Mr),tr&&Z<1&&Ve||zt(Dt+(Z===1&&!gt?er:0))}}y&&!ke.tween&&!Ge&&!pn&&Lt.restart(!0),o&&(_e||S&&Z&&(Z<1||!ns))&&sn(o.targets).forEach(function(Fr){return Fr.classList[Ve||S?"add":"remove"](o.className)}),s&&!L&&!A&&s(g),Bt&&!Ge?(L&&(Xt&&(oe==="complete"?i.pause().totalProgress(1):oe==="reset"?i.restart(!0).pause():oe==="restart"?i.restart(!0):i[oe]()),s&&s(g)),(_e||!ns)&&(l&&_e&&os(g,l),W[ce]&&os(g,W[ce]),S&&(Z===1?g.kill(!1,1):W[ce]=0),_e||(ce=Z===1?1:3,W[ce]&&os(g,W[ce]))),D&&!Ve&&Math.abs(g.getVelocity())>(zi(D)?D:2500)&&(Oi(g.callbackAnimation),K?K.progress(1):Oi(i,oe==="reverse"?1:!Z,1))):L&&s&&!Ge&&s(g)}if(Jr){var We=w?B/w.duration()*(w._caScrollDist||0):B;un(We+(v._isFlipped?1:0)),Jr(We)}ti&&ti(-B/w.duration()*(w._caScrollDist||0))}},g.enable=function(A,N){g.enabled||(g.enabled=!0,Ne(O,"resize",Ii),X||Ne(O,"scroll",ni),le&&Ne(a,"refreshInit",le),A!==!1&&(g.progress=xe=0,je=Je=I=re()),N!==!1&&g.refresh())},g.getTween=function(A){return A&&ke?ke.tween:K},g.setPositions=function(A,N,E,B){if(w){var Ie=w.scrollTrigger,Z=w.duration(),Te=Ie.end-Ie.start;A=Ie.start+Te*A/Z,N=Ie.start+Te*N/Z}g.refresh(!1,!1,{start:Fo(A,E&&!!g._startClamp),end:Fo(N,E&&!!g._endClamp)},B),g.update()},g.adjustPinSpacing=function(A){if(Ce&&A){var N=Ce.indexOf(C.d)+1;Ce[N]=parseFloat(Ce[N])+A+Re,Ce[1]=parseFloat(Ce[1])+A+Re,pi(Ce)}},g.disable=function(A,N){if(A!==!1&&g.revert(!0,!0),g.enabled&&(g.enabled=g.isActive=!1,N||K&&K.pause(),Nt=0,Fe&&(Fe.uncache=1),le&&Le(a,"refreshInit",le),Lt&&(Lt.pause(),ke.tween&&ke.tween.kill()&&(ke.tween=0)),!X)){for(var E=U.length;E--;)if(U[E].scroller===O&&U[E]!==g)return;Le(O,"resize",Ii),X||Le(O,"scroll",ni)}},g.kill=function(A,N){g.disable(A,N),K&&!N&&K.kill(),u&&delete Rs[u];var E=U.indexOf(g);E>=0&&U.splice(E,1),E===it&&Mn>0&&it--,E=0,U.forEach(function(B){return B.scroller===g.scroller&&(E=1)}),E||nt||(g.scroll.rec=0),i&&(i.scrollTrigger=null,A&&i.revert({kill:!1}),N||i.kill()),at&&[at,dt,v,pt].forEach(function(B){return B.parentNode&&B.parentNode.removeChild(B)}),Qi===g&&(Qi=0),c&&(Fe&&(Fe.uncache=1),E=0,U.forEach(function(B){return B.pin===c&&E++}),E||(Fe.spacer=0)),t.onKill&&t.onKill(g)},U.push(g),g.enable(!1,!1),rr&&rr(g),i&&i.add&&!me){var ie=g.update;g.update=function(){g.update=ie,G.cache++,te||we||g.refresh()},R.delayedCall(.01,g.update),me=.01,te=we=0}else g.refresh();c&&sf()},a.register=function(t){return si||(R=t||uu(),au()&&window.document&&a.enable(),si=Ei),si},a.defaults=function(t){if(t)for(var i in t)vn[i]=t[i];return vn},a.disable=function(t,i){Ei=0,U.forEach(function(s){return s[i?"kill":"disable"](t)}),Le(q,"wheel",ni),Le(fe,"scroll",ni),clearInterval(dn),Le(fe,"touchcancel",qt),Le(ne,"touchstart",qt),mn(Le,fe,"pointerdown,touchstart,mousedown",zo),mn(Le,fe,"pointerup,touchend,mouseup",Io),$n.kill(),gn(Le);for(var n=0;n<G.length;n+=3)yn(Le,G[n],G[n+1]),yn(Le,G[n],G[n+2])},a.enable=function(){if(q=window,fe=document,xt=fe.documentElement,ne=fe.body,R&&(sn=R.utils.toArray,Vi=R.utils.clamp,Ms=R.core.context||qt,is=R.core.suppressOverwrites||qt,eo=q.history.scrollRestoration||"auto",Es=q.pageYOffset||0,R.core.globals("ScrollTrigger",a),ne)){Ei=1,di=document.createElement("div"),di.style.height="100vh",di.style.position="absolute",yu(),Zl(),Pe.register(R),a.isTouch=Pe.isTouch,gr=Pe.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Os=Pe.isTouch===1,Ne(q,"wheel",ni),Js=[q,fe,xt,ne],R.matchMedia?(a.matchMedia=function(l){var f=R.matchMedia(),h;for(h in l)f.add(h,l[h]);return f},R.addEventListener("matchMediaInit",function(){gu(),oo()}),R.addEventListener("matchMediaRevert",function(){return pu()}),R.addEventListener("matchMedia",function(){$r(0,1),Zr("matchMedia")}),R.matchMedia().add("(orientation: portrait)",function(){return as(),as})):console.warn("Requires GSAP 3.11.0 or later"),as(),Ne(fe,"scroll",ni);var t=ne.hasAttribute("style"),i=ne.style,n=i.borderTopStyle,s=R.core.Animation.prototype,o,u;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=sr(ne),Ee.m=Math.round(o.top+Ee.sc())||0,ot.m=Math.round(o.left+ot.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),t||(ne.setAttribute("style",""),ne.removeAttribute("style")),dn=setInterval(Bo,250),R.delayedCall(.5,function(){return pn=0}),Ne(fe,"touchcancel",qt),Ne(ne,"touchstart",qt),mn(Ne,fe,"pointerdown,touchstart,mousedown",zo),mn(Ne,fe,"pointerup,touchend,mouseup",Io),Ds=R.utils.checkPrefix("transform"),An.push(Ds),si=He(),$n=R.delayedCall(.2,$r).pause(),oi=[fe,"visibilitychange",function(){var l=q.innerWidth,f=q.innerHeight;fe.hidden?(Ao=l,Ro=f):(Ao!==l||Ro!==f)&&Ii()},fe,"DOMContentLoaded",$r,q,"load",$r,q,"resize",Ii],gn(Ne),U.forEach(function(l){return l.enable(0,1)}),u=0;u<G.length;u+=3)yn(Le,G[u],G[u+1]),yn(Le,G[u],G[u+2])}},a.config=function(t){"limitCallbacks"in t&&(ns=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(dn)||(dn=i)&&setInterval(Bo,i),"ignoreMobileResize"in t&&(Os=a.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(gn(Le)||gn(Ne,t.autoRefreshEvents||"none"),nu=(t.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(t,i){var n=ut(t),s=G.indexOf(n),o=Kr(n);~s&&G.splice(s,o?6:2),i&&(o?Qt.unshift(q,i,ne,i,xt,i):Qt.unshift(n,i))},a.clearMatchMedia=function(t){U.forEach(function(i){return i._ctx&&i._ctx.query===t&&i._ctx.kill(!0,!0)})},a.isInViewport=function(t,i,n){var s=(yt(t)?ut(t):t).getBoundingClientRect(),o=s[n?qr:Gr]*i||0;return n?s.right-o>0&&s.left+o<q.innerWidth:s.bottom-o>0&&s.top+o<q.innerHeight},a.positionInViewport=function(t,i,n){yt(t)&&(t=ut(t));var s=t.getBoundingClientRect(),o=s[n?qr:Gr],u=i==null?o/2:i in Un?Un[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return n?(s.left+u)/q.innerWidth:(s.top+u)/q.innerHeight},a.killAll=function(t){if(U.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var i=Qr.killAll||[];Qr={},i.forEach(function(n){return n()})}},a})();H.version="3.14.2";H.saveStyles=function(a){return a?sn(a).forEach(function(e){if(e&&e.style){var r=mt.indexOf(e);r>=0&&mt.splice(r,5),mt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),R.core.getCache(e),Ms())}}):mt};H.revert=function(a,e){return oo(!a,e)};H.create=function(a,e){return new H(a,e)};H.refresh=function(a){return a?Ii(!0):(si||H.register())&&$r(!0)};H.update=function(a){return++G.cache&&ar(a===!0?2:0)};H.clearScrollMemory=mu;H.maxScroll=function(a,e){return Kt(a,e?ot:Ee)};H.getScrollFunc=function(a,e){return Dr(ut(a),e?ot:Ee)};H.getById=function(a){return Rs[a]};H.getAll=function(){return U.filter(function(a){return a.vars.id!=="ScrollSmoother"})};H.isScrolling=function(){return!!Ft};H.snapDirectional=so;H.addEventListener=function(a,e){var r=Qr[a]||(Qr[a]=[]);~r.indexOf(e)||r.push(e)};H.removeEventListener=function(a,e){var r=Qr[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};H.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(l,f){var h=[],d=[],c=R.delayedCall(i,function(){f(h,d),h=[],d=[]}).pause();return function(p){h.length||c.restart(!0),h.push(p.trigger),d.push(p),n<=h.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&Qe(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return Qe(n)&&(n=n(),Ne(H,"refresh",function(){return n=e.batchMax()})),sn(a).forEach(function(u){var l={};for(o in t)l[o]=t[o];l.trigger=u,r.push(H.create(l))}),r};var Wo=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},ls=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(Pe.isTouch?" pinch-zoom":""):"none",e===xt&&a(ne,r)},Tn={auto:1,scroll:1},ff=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||R.core.getCache(n),o=He(),u;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==ne&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Tn[(u=At(n)).overflowY]||Tn[u.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!Kr(n)&&(Tn[(u=At(n)).overflowY]||Tn[u.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},xu=function(e,r,t,i){return Pe.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&ff,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&Ne(fe,Pe.eventTypes[0],Go,!1,!0)},onDisable:function(){return Le(fe,Pe.eventTypes[0],Go,!0)}})},cf=/(input|label|select|textarea)/i,qo,Go=function(e){var r=cf.test(e.target.tagName);(r||qo)&&(e._gsapAllow=!0,qo=r)},hf=function(e){Br(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 r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,u,l=ut(e.target)||xt,f=R.core.globals().ScrollSmoother,h=f&&f.get(),d=gr&&(e.content&&ut(e.content)||h&&e.content!==!1&&!h.smooth()&&h.content()),c=Dr(l,Ee),p=Dr(l,ot),_=1,m=(Pe.isTouch&&q.visualViewport?q.visualViewport.scale*q.visualViewport.width:q.outerWidth)/q.innerWidth,T=0,x=Qe(i)?function(){return i(o)}:function(){return i||2.8},S,y,b=xu(l,e.type,!0,n),k=function(){return y=!1},w=qt,D=qt,P=function(){u=Kt(l,Ee),D=Vi(gr?1:0,u),t&&(w=Vi(0,Kt(l,ot))),S=Hr},C=function(){d._gsap.y=Fi(parseFloat(d._gsap.y)+c.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},L=function(){if(y){requestAnimationFrame(k);var J=Fi(o.deltaY/2),se=D(c.v-J);if(d&&se!==c.v+c.offset){c.offset=se-c.v;var g=Fi((parseFloat(d&&d._gsap.y)||0)-c.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+g+", 0, 1)",d._gsap.y=g+"px",c.cacheID=G.cache,ar()}return!0}c.offset&&C(),y=!0},O,V,X,Q,W=function(){P(),O.isActive()&&O.vars.scrollY>u&&(c()>u?O.progress(1)&&c(u):O.resetTo("scrollY",u))};return d&&R.set(d,{y:"+=0"}),e.ignoreCheck=function(z){return gr&&z.type==="touchmove"&&L()||_>1.05&&z.type!=="touchstart"||o.isGesturing||z.touches&&z.touches.length>1},e.onPress=function(){y=!1;var z=_;_=Fi((q.visualViewport&&q.visualViewport.scale||1)/m),O.pause(),z!==_&&ls(l,_>1.01?!0:t?!1:"x"),V=p(),X=c(),P(),S=Hr},e.onRelease=e.onGestureStart=function(z,J){if(c.offset&&C(),!J)Q.restart(!0);else{G.cache++;var se=x(),g,le;t&&(g=p(),le=g+se*.05*-z.velocityX/.227,se*=Wo(p,g,le,Kt(l,ot)),O.vars.scrollX=w(le)),g=c(),le=g+se*.05*-z.velocityY/.227,se*=Wo(c,g,le,Kt(l,Ee)),O.vars.scrollY=D(le),O.invalidate().duration(se).play(.01),(gr&&O.vars.scrollY>=u||g>=u-1)&&R.to({},{onUpdate:W,duration:se})}s&&s(z)},e.onWheel=function(){O._ts&&O.pause(),He()-T>1e3&&(S=0,T=He())},e.onChange=function(z,J,se,g,le){if(Hr!==S&&P(),J&&t&&p(w(g[2]===J?V+(z.startX-z.x):p()+J-g[1])),se){c.offset&&C();var M=le[2]===se,Y=M?X+z.startY-z.y:c()+se-le[1],I=D(Y);M&&Y!==I&&(X+=I-Y),c(I)}(se||J)&&ar()},e.onEnable=function(){ls(l,t?!1:"x"),H.addEventListener("refresh",W),Ne(q,"resize",W),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),b.enable()},e.onDisable=function(){ls(l,!0),Le(q,"resize",W),H.removeEventListener("refresh",W),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Pe(e),o.iOS=gr,gr&&!c()&&c(1),gr&&R.ticker.add(qt),Q=o._dc,O=R.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:vu(c,c(),function(){return O.pause()})},onUpdate:ar,onComplete:Q.vars.onComplete}),o};H.sort=function(a){if(Qe(a))return U.sort(a);var e=q.pageYOffset||0;return H.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+q.innerHeight}),U.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};H.observe=function(a){return new Pe(a)};H.normalizeScroll=function(a){if(typeof a>"u")return rt;if(a===!0&&rt)return rt.enable();if(a===!1){rt&&rt.kill(),rt=a;return}var e=a instanceof Pe?a:hf(a);return rt&&rt.target===e.target&&rt.kill(),Kr(e.target)&&(rt=e),e};H.core={_getVelocityProp:Cs,_inputObserver:xu,_scrollers:G,_proxies:Qt,bridge:{ss:function(){Ft||Zr("scrollStart"),Ft=He()},ref:function(){return Ge}}};uu()&&R.registerPlugin(H);let Ho=!1;function _f(){Ho||typeof window>"u"||($t.registerPlugin(H),Ho=!0)}function df(a,e){if(/hero|renovation|machinery|swiper|carousel/i.test(a))return"hero";if(/grid|product/i.test(a))return"fadeUp";if(/news|latest|article/i.test(a))return"staggerUp";if(/consulting|service|section|paragraph|text/i.test(a))return e%2===0?"slideLeft":"slideRight";if(/gallery|hexagon|materials|showcase/i.test(a)||/contact|form/i.test(a))return"scaleUp";if(/bread|crumb/i.test(a))return"fadeDown";const r=["fadeUp","slideLeft","slideRight","scaleUp"];return r[e%r.length]}function pf(a,e,r){const t={scrollTrigger:{trigger:a,start:"top 88%",once:!0}};switch(e){case"slideLeft":return $t.fromTo(a,{autoAlpha:0,y:48,rotate:-1.2,transformOrigin:"center center"},{autoAlpha:1,y:0,rotate:0,duration:.85,ease:"power3.out",...t});case"slideRight":return $t.fromTo(a,{autoAlpha:0,y:48,rotate:1.2,transformOrigin:"center center"},{autoAlpha:1,y:0,rotate:0,duration:.85,ease:"power3.out",...t});case"scaleUp":return $t.fromTo(a,{autoAlpha:0,scale:.92,y:30,transformOrigin:"top center"},{autoAlpha:1,scale:1,y:0,duration:.9,ease:"back.out(1.2)",...t});case"fadeDown":return $t.fromTo(a,{autoAlpha:0,y:-24},{autoAlpha:1,y:0,duration:.5,ease:"power2.out",...t});case"staggerUp":{$t.set(a,{autoAlpha:1});const i=a.querySelectorAll('[class*="card"], [class*="item"], [class*="news"], article, li'),n=i.length>=2?Array.from(i):[a];return $t.fromTo(n,{autoAlpha:0,y:50},{autoAlpha:1,y:0,duration:.65,ease:"power3.out",stagger:{amount:.45,from:"start"},...t})}case"fadeUp":default:return $t.fromTo(a,{autoAlpha:0,y:60},{autoAlpha:1,y:0,duration:.75,ease:"power3.out",...t})}}function vf(a={}){const e=a.rootSelector||".ft-page-section";let r=null;const t=()=>{if(r){try{r.revert()}catch{}r=null}},i=async()=>{_f(),t(),await Tu(),await new Promise(s=>requestAnimationFrame(()=>s()));const n=Array.from(document.querySelectorAll(e));n.length&&(r=$t.context(()=>{$t.fromTo(n[0],{autoAlpha:0,scale:1.04,transformOrigin:"top center"},{autoAlpha:1,scale:1,duration:1.1,ease:"power2.out"}),n.slice(1).forEach((s,o)=>{const u=df(s.id||"",o);pf(s,u)})}),typeof window<"u"&&window.requestAnimationFrame(()=>H.refresh()))};return bu(t),{initAnimations:i,clearAnimations:t}}export{yf as a,vf as b,Cu as u};
