(()=>{var L6=Object.create;var{getPrototypeOf:N6,defineProperty:sJ,getOwnPropertyNames:A7,getOwnPropertyDescriptor:F6}=Object,P7=Object.prototype.hasOwnProperty;var X6=(U,Z,$)=>{$=U!=null?L6(N6(U)):{};let J=Z||!U||!U.__esModule?sJ($,"default",{value:U,enumerable:!0}):$;for(let K of A7(U))if(!P7.call(J,K))sJ(J,K,{get:()=>U[K],enumerable:!0});return J},k7=new WeakMap,MH=(U)=>{var Z=k7.get(U),$;if(Z)return Z;if(Z=sJ({},"__esModule",{value:!0}),U&&typeof U==="object"||typeof U==="function")A7(U).map((J)=>!P7.call(Z,J)&&sJ(Z,J,{get:()=>U[J],enumerable:!($=F6(U,J))||$.enumerable}));return k7.set(U,Z),Z},M6=(U,Z)=>()=>(Z||U((Z={exports:{}}).exports,Z),Z.exports);var K1=(U,Z)=>{for(var $ in Z)sJ(U,$,{get:Z[$],enumerable:!0,configurable:!0,set:(J)=>Z[$]=()=>J})};var G6=M6((f9,C7)=>{/*! * matter-js 0.20.0 by @liabru * http://brm.io/matter-js/ * License MIT * * The MIT License (MIT) * * Copyright (c) Liam Brummitt and contributors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */(function(Z,$){if(typeof f9==="object"&&typeof C7==="object")C7.exports=$();else if(typeof define==="function"&&define.amd)define("Matter",[],$);else if(typeof f9==="object")f9.Matter=$();else Z.Matter=$()})(f9,function(){return function(U){var Z={};function $(J){if(Z[J])return Z[J].exports;var K=Z[J]={i:J,l:!1,exports:{}};return U[J].call(K.exports,K,K.exports,$),K.l=!0,K.exports}return $.m=U,$.c=Z,$.d=function(J,K,Q){if(!$.o(J,K))Object.defineProperty(J,K,{enumerable:!0,get:Q})},$.r=function(J){if(typeof Symbol<"u"&&Symbol.toStringTag)Object.defineProperty(J,Symbol.toStringTag,{value:"Module"});Object.defineProperty(J,"__esModule",{value:!0})},$.t=function(J,K){if(K&1)J=$(J);if(K&8)return J;if(K&4&&typeof J==="object"&&J&&J.__esModule)return J;var Q=Object.create(null);if($.r(Q),Object.defineProperty(Q,"default",{enumerable:!0,value:J}),K&2&&typeof J!="string")for(var W in J)$.d(Q,W,function(G){return J[G]}.bind(null,W));return Q},$.n=function(J){var K=J&&J.__esModule?function(){return J.default}:function(){return J};return $.d(K,"a",K),K},$.o=function(J,K){return Object.prototype.hasOwnProperty.call(J,K)},$.p="",$($.s=20)}([function(U,Z){var $={};U.exports=$,function(){$._baseDelta=16.666666666666668,$._nextId=0,$._seed=0,$._nowStartTime=+new Date,$._warnedOnce={},$._decomp=null,$.extend=function(K,Q){var W,G,z;if(typeof Q==="boolean")W=2,z=Q;else W=1,z=!0;for(var L=W;L0;Q--){var W=Math.floor($.random()*(Q+1)),G=K[Q];K[Q]=K[W],K[W]=G}return K},$.choose=function(K){return K[Math.floor($.random()*K.length)]},$.isElement=function(K){if(typeof HTMLElement<"u")return K instanceof HTMLElement;return!!(K&&K.nodeType&&K.nodeName)},$.isArray=function(K){return Object.prototype.toString.call(K)==="[object Array]"},$.isFunction=function(K){return typeof K==="function"},$.isPlainObject=function(K){return typeof K==="object"&&K.constructor===Object},$.isString=function(K){return toString.call(K)==="[object String]"},$.clamp=function(K,Q,W){if(KW)return W;return K},$.sign=function(K){return K<0?-1:1},$.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();else if(window.performance.webkitNow)return window.performance.webkitNow()}if(Date.now)return Date.now();return new Date-$._nowStartTime},$.random=function(K,Q){return K=typeof K<"u"?K:0,Q=typeof Q<"u"?Q:1,K+J()*(Q-K)};var J=function(){return $._seed=($._seed*9301+49297)%233280,$._seed/233280};$.colorToNumber=function(K){if(K=K.replace("#",""),K.length==3)K=K.charAt(0)+K.charAt(0)+K.charAt(1)+K.charAt(1)+K.charAt(2)+K.charAt(2);return parseInt(K,16)},$.logLevel=1,$.log=function(){if(console&&$.logLevel>0&&$.logLevel<=3)console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.info=function(){if(console&&$.logLevel>0&&$.logLevel<=2)console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.warn=function(){if(console&&$.logLevel>0&&$.logLevel<=3)console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},$.warnOnce=function(){var K=Array.prototype.slice.call(arguments).join(" ");if(!$._warnedOnce[K])$.warn(K),$._warnedOnce[K]=!0},$.deprecated=function(K,Q,W){K[Q]=$.chain(function(){$.warnOnce("\uD83D\uDD05 deprecated \uD83D\uDD05",W)},K[Q])},$.nextId=function(){return $._nextId++},$.indexOf=function(K,Q){if(K.indexOf)return K.indexOf(Q);for(var W=0;WJ.max.x)J.max.x=G.x;if(G.xJ.max.y)J.max.y=G.y;if(G.y0)J.max.x+=Q.x;else J.min.x+=Q.x;if(Q.y>0)J.max.y+=Q.y;else J.min.y+=Q.y}},$.contains=function(J,K){return K.x>=J.min.x&&K.x<=J.max.x&&K.y>=J.min.y&&K.y<=J.max.y},$.overlaps=function(J,K){return J.min.x<=K.max.x&&J.max.x>=K.min.x&&J.max.y>=K.min.y&&J.min.y<=K.max.y},$.translate=function(J,K){J.min.x+=K.x,J.max.x+=K.x,J.min.y+=K.y,J.max.y+=K.y},$.shift=function(J,K){var Q=J.max.x-J.min.x,W=J.max.y-J.min.y;J.min.x=K.x,J.max.x=K.x+Q,J.min.y=K.y,J.max.y=K.y+W}}()},function(U,Z){var $={};U.exports=$,function(){$.create=function(J,K){return{x:J||0,y:K||0}},$.clone=function(J){return{x:J.x,y:J.y}},$.magnitude=function(J){return Math.sqrt(J.x*J.x+J.y*J.y)},$.magnitudeSquared=function(J){return J.x*J.x+J.y*J.y},$.rotate=function(J,K,Q){var W=Math.cos(K),G=Math.sin(K);if(!Q)Q={};var z=J.x*W-J.y*G;return Q.y=J.x*G+J.y*W,Q.x=z,Q},$.rotateAbout=function(J,K,Q,W){var G=Math.cos(K),z=Math.sin(K);if(!W)W={};var L=Q.x+((J.x-Q.x)*G-(J.y-Q.y)*z);return W.y=Q.y+((J.x-Q.x)*z+(J.y-Q.y)*G),W.x=L,W},$.normalise=function(J){var K=$.magnitude(J);if(K===0)return{x:0,y:0};return{x:J.x/K,y:J.y/K}},$.dot=function(J,K){return J.x*K.x+J.y*K.y},$.cross=function(J,K){return J.x*K.y-J.y*K.x},$.cross3=function(J,K,Q){return(K.x-J.x)*(Q.y-J.y)-(K.y-J.y)*(Q.x-J.x)},$.add=function(J,K,Q){if(!Q)Q={};return Q.x=J.x+K.x,Q.y=J.y+K.y,Q},$.sub=function(J,K,Q){if(!Q)Q={};return Q.x=J.x-K.x,Q.y=J.y-K.y,Q},$.mult=function(J,K){return{x:J.x*K,y:J.y*K}},$.div=function(J,K){return{x:J.x/K,y:J.y/K}},$.perp=function(J,K){return K=K===!0?-1:1,{x:K*-J.y,y:K*J.x}},$.neg=function(J){return{x:-J.x,y:-J.y}},$.angle=function(J,K){return Math.atan2(K.y-J.y,K.x-J.x)},$._temp=[$.create(),$.create(),$.create(),$.create(),$.create(),$.create()]}()},function(U,Z,$){var J={};U.exports=J;var K=$(2),Q=$(0);(function(){J.create=function(W,G){var z=[];for(var L=0;L0)return!1;H=X}return!0},J.scale=function(W,G,z,L){if(G===1&&z===1)return W;L=L||J.centre(W);var N,H;for(var X=0;X=0?X-1:W.length-1],M=W[X],O=W[(X+1)%W.length],E=G[X0)G|=2;if(G===3)return!1}if(G!==0)return!0;else return null},J.hull=function(W){var G=[],z=[],L,N;W=W.slice(0),W.sort(function(H,X){var F=H.x-X.x;return F!==0?F:H.y-X.y});for(N=0;N=2&&K.cross3(z[z.length-2],z[z.length-1],L)<=0)z.pop();z.push(L)}for(N=W.length-1;N>=0;N-=1){L=W[N];while(G.length>=2&&K.cross3(G[G.length-2],G[G.length-1],L)<=0)G.pop();G.push(L)}return G.pop(),z.pop(),G.concat(z)}})()},function(U,Z,$){var J={};U.exports=J;var K=$(3),Q=$(2),W=$(7),G=$(0),z=$(1),L=$(11);(function(){J._timeCorrection=!0,J._inertiaScale=4,J._nextCollidingGroupId=1,J._nextNonCollidingGroupId=-1,J._nextCategory=1,J._baseDelta=16.666666666666668,J.create=function(H){var X={id:G.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:K.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:0.001,restitution:0,friction:0.1,frictionStatic:0.5,frictionAir:0.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:0.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},F=G.extend(X,H);return N(F,H),F},J.nextGroup=function(H){if(H)return J._nextNonCollidingGroupId--;return J._nextCollidingGroupId++},J.nextCategory=function(){return J._nextCategory=J._nextCategory<<1,J._nextCategory};var N=function(H,X){X=X||{},J.set(H,{bounds:H.bounds||z.create(H.vertices),positionPrev:H.positionPrev||Q.clone(H.position),anglePrev:H.anglePrev||H.angle,vertices:H.vertices,parts:H.parts||[H],isStatic:H.isStatic,isSleeping:H.isSleeping,parent:H.parent||H}),K.rotate(H.vertices,H.angle,H.position),L.rotate(H.axes,H.angle),z.update(H.bounds,H.vertices,H.velocity),J.set(H,{axes:X.axes||H.axes,area:X.area||H.area,mass:X.mass||H.mass,inertia:X.inertia||H.inertia});var F=H.isStatic?"#14151f":G.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),M=H.isStatic?"#555":"#ccc",O=H.isStatic&&H.render.fillStyle===null?1:0;H.render.fillStyle=H.render.fillStyle||F,H.render.strokeStyle=H.render.strokeStyle||M,H.render.lineWidth=H.render.lineWidth||O,H.render.sprite.xOffset+=-(H.bounds.min.x-H.position.x)/(H.bounds.max.x-H.bounds.min.x),H.render.sprite.yOffset+=-(H.bounds.min.y-H.position.y)/(H.bounds.max.y-H.bounds.min.y)};J.set=function(H,X,F){var M;if(typeof X==="string")M=X,X={},X[M]=F;for(M in X){if(!Object.prototype.hasOwnProperty.call(X,M))continue;switch(F=X[M],M){case"isStatic":J.setStatic(H,F);break;case"isSleeping":W.set(H,F);break;case"mass":J.setMass(H,F);break;case"density":J.setDensity(H,F);break;case"inertia":J.setInertia(H,F);break;case"vertices":J.setVertices(H,F);break;case"position":J.setPosition(H,F);break;case"angle":J.setAngle(H,F);break;case"velocity":J.setVelocity(H,F);break;case"angularVelocity":J.setAngularVelocity(H,F);break;case"speed":J.setSpeed(H,F);break;case"angularSpeed":J.setAngularSpeed(H,F);break;case"parts":J.setParts(H,F);break;case"centre":J.setCentre(H,F);break;default:H[M]=F}}},J.setStatic=function(H,X){for(var F=0;F0)Q.rotateAbout(E.position,M,H.position,E.position)}},J.setVelocity=function(H,X){var F=H.deltaTime/J._baseDelta;H.positionPrev.x=H.position.x-X.x*F,H.positionPrev.y=H.position.y-X.y*F,H.velocity.x=(H.position.x-H.positionPrev.x)/F,H.velocity.y=(H.position.y-H.positionPrev.y)/F,H.speed=Q.magnitude(H.velocity)},J.getVelocity=function(H){var X=J._baseDelta/H.deltaTime;return{x:(H.position.x-H.positionPrev.x)*X,y:(H.position.y-H.positionPrev.y)*X}},J.getSpeed=function(H){return Q.magnitude(J.getVelocity(H))},J.setSpeed=function(H,X){J.setVelocity(H,Q.mult(Q.normalise(J.getVelocity(H)),X))},J.setAngularVelocity=function(H,X){var F=H.deltaTime/J._baseDelta;H.anglePrev=H.angle-X*F,H.angularVelocity=(H.angle-H.anglePrev)/F,H.angularSpeed=Math.abs(H.angularVelocity)},J.getAngularVelocity=function(H){return(H.angle-H.anglePrev)*J._baseDelta/H.deltaTime},J.getAngularSpeed=function(H){return Math.abs(J.getAngularVelocity(H))},J.setAngularSpeed=function(H,X){J.setAngularVelocity(H,G.sign(J.getAngularVelocity(H))*X)},J.translate=function(H,X,F){J.setPosition(H,Q.add(H.position,X),F)},J.rotate=function(H,X,F,M){if(!F)J.setAngle(H,H.angle+X,M);else{var O=Math.cos(X),E=Math.sin(X),V=H.position.x-F.x,I=H.position.y-F.y;J.setPosition(H,{x:F.x+(V*O-I*E),y:F.y+(V*E+I*O)},M),J.setAngle(H,H.angle+X,M)}},J.scale=function(H,X,F,M){var O=0,E=0;M=M||H.position;for(var V=0;V0)O+=I.area,E+=I.inertia;I.position.x=M.x+(I.position.x-M.x)*X,I.position.y=M.y+(I.position.y-M.y)*F,z.update(I.bounds,I.vertices,H.velocity)}if(H.parts.length>1){if(H.area=O,!H.isStatic)J.setMass(H,H.density*O),J.setInertia(H,E)}if(H.circleRadius)if(X===F)H.circleRadius*=X;else H.circleRadius=null},J.update=function(H,X){X=(typeof X<"u"?X:16.666666666666668)*H.timeScale;var F=X*X,M=J._timeCorrection?X/(H.deltaTime||X):1,O=1-H.frictionAir*(X/G._baseDelta),E=(H.position.x-H.positionPrev.x)*M,V=(H.position.y-H.positionPrev.y)*M;H.velocity.x=E*O+H.force.x/H.mass*F,H.velocity.y=V*O+H.force.y/H.mass*F,H.positionPrev.x=H.position.x,H.positionPrev.y=H.position.y,H.position.x+=H.velocity.x,H.position.y+=H.velocity.y,H.deltaTime=X,H.angularVelocity=(H.angle-H.anglePrev)*O*M+H.torque/H.inertia*F,H.anglePrev=H.angle,H.angle+=H.angularVelocity;for(var I=0;I0)q.position.x+=H.velocity.x,q.position.y+=H.velocity.y;if(H.angularVelocity!==0){if(K.rotate(q.vertices,H.angularVelocity,H.position),L.rotate(q.axes,H.angularVelocity),I>0)Q.rotateAbout(q.position,H.angularVelocity,H.position,q.position)}z.update(q.bounds,q.vertices,H.velocity)}},J.updateVelocities=function(H){var X=J._baseDelta/H.deltaTime,F=H.velocity;F.x=(H.position.x-H.positionPrev.x)*X,F.y=(H.position.y-H.positionPrev.y)*X,H.speed=Math.sqrt(F.x*F.x+F.y*F.y),H.angularVelocity=(H.angle-H.anglePrev)*X,H.angularSpeed=Math.abs(H.angularVelocity)},J.applyForce=function(H,X,F){var M={x:X.x-H.position.x,y:X.y-H.position.y};H.force.x+=F.x,H.force.y+=F.y,H.torque+=M.x*F.y-M.y*F.x},J._totalProperties=function(H){var X={mass:0,area:0,inertia:0,centre:{x:0,y:0}};for(var F=H.parts.length===1?0:1;F0){if(!G)G={};z=W.split(" ");for(var F=0;F0&&X.motion=X.sleepThreshold/L)J.set(X,!0)}else if(X.sleepCounter>0)X.sleepCounter-=1}},J.afterCollisions=function(G){var z=J._motionSleepThreshold;for(var L=0;Lz)J.set(M,!1)}}},J.set=function(G,z){var L=G.isSleeping;if(z){if(G.isSleeping=!0,G.sleepCounter=G.sleepThreshold,G.positionImpulse.x=0,G.positionImpulse.y=0,G.positionPrev.x=G.position.x,G.positionPrev.y=G.position.y,G.anglePrev=G.angle,G.speed=0,G.angularSpeed=0,G.motion=0,!L)Q.trigger(G,"sleepStart")}else if(G.isSleeping=!1,G.sleepCounter=0,L)Q.trigger(G,"sleepEnd")}})()},function(U,Z,$){var J={};U.exports=J;var K=$(3),Q=$(9);(function(){var W=[],G={overlap:0,axis:null},z={overlap:0,axis:null};J.create=function(L,N){return{pair:null,collided:!1,bodyA:L,bodyB:N,parentA:L.parent,parentB:N.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[null,null],supportCount:0}},J.collides=function(L,N,H){if(J._overlapAxes(G,L.vertices,N.vertices,L.axes),G.overlap<=0)return null;if(J._overlapAxes(z,N.vertices,L.vertices,N.axes),z.overlap<=0)return null;var X=H&&H.table[Q.id(L,N)],F;if(!X)F=J.create(L,N),F.collided=!0,F.bodyA=L.id=0)R=-R,D=-D;O.x=R,O.y=D,E.x=-D,E.y=R,V.x=R*q,V.y=D*q,F.depth=q;var j=J._findSupports(L,N,O,1),S=0;if(K.contains(L.vertices,j[0]))I[S++]=j[0];if(K.contains(L.vertices,j[1]))I[S++]=j[1];if(S<2){var k=J._findSupports(N,L,O,-1);if(K.contains(N.vertices,k[0]))I[S++]=k[0];if(S<2&&K.contains(N.vertices,k[1]))I[S++]=k[1]}if(S===0)I[S++]=j[0];return F.supportCount=S,F},J._overlapAxes=function(L,N,H,X){var F=N.length,M=H.length,O=N[0].x,E=N[0].y,V=H[0].x,I=H[0].y,q=X.length,Y=Number.MAX_VALUE,R=0,D,B,C,j,S,k;for(S=0;Sb)b=j;else if(jy)y=j;else if(jX.frictionStatic?H.frictionStatic:X.frictionStatic,Q.restitution=H.restitution>X.restitution?H.restitution:X.restitution,Q.slop=H.slop>X.slop?H.slop:X.slop,Q.contactCount=L,W.pair=Q;var F=z[0],M=N[0],O=z[1],E=N[1];if(E.vertex===F||M.vertex===O)N[1]=M,N[0]=M=E,E=N[1];M.vertex=F,E.vertex=O},J.setActive=function(Q,W,G){if(W)Q.isActive=!0,Q.timeUpdated=G;else Q.isActive=!1,Q.contactCount=0},J.id=function(Q,W){return Q.id0?1:0.7),H.damping=H.damping||0,H.angularStiffness=H.angularStiffness||0,H.angleA=H.bodyA?H.bodyA.angle:H.angleA,H.angleB=H.bodyB?H.bodyB.angle:H.angleB,H.plugin={};var O={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};if(H.length===0&&H.stiffness>0.1)O.type="pin",O.anchors=!1;else if(H.stiffness<0.9)O.type="spring";return H.render=L.extend(O,H.render),H},J.preSolveAll=function(N){for(var H=0;H=1||N.length===0,D=R?N.stiffness*H:N.stiffness*H*H,B=N.damping*H,C=Q.mult(I,Y*D),j=(X?X.inverseMass:0)+(F?F.inverseMass:0),S=(X?X.inverseInertia:0)+(F?F.inverseInertia:0),k=j+S,P,T,h,f,x;if(B>0){var b=Q.create();h=Q.div(I,q),x=Q.sub(F&&Q.sub(F.position,F.positionPrev)||b,X&&Q.sub(X.position,X.positionPrev)||b),f=Q.dot(h,x)}if(X&&!X.isStatic){if(T=X.inverseMass/j,X.constraintImpulse.x-=C.x*T,X.constraintImpulse.y-=C.y*T,X.position.x-=C.x*T,X.position.y-=C.y*T,B>0)X.positionPrev.x-=B*h.x*f*T,X.positionPrev.y-=B*h.y*f*T;P=Q.cross(M,C)/k*J._torqueDampen*X.inverseInertia*(1-N.angularStiffness),X.constraintImpulse.angle-=P,X.angle-=P}if(F&&!F.isStatic){if(T=F.inverseMass/j,F.constraintImpulse.x+=C.x*T,F.constraintImpulse.y+=C.y*T,F.position.x+=C.x*T,F.position.y+=C.y*T,B>0)F.positionPrev.x+=B*h.x*f*T,F.positionPrev.y+=B*h.y*f*T;P=Q.cross(O,C)/k*J._torqueDampen*F.inverseInertia*(1-N.angularStiffness),F.constraintImpulse.angle+=P,F.angle+=P}},J.postSolveAll=function(N){for(var H=0;H0)O.position.x+=F.x,O.position.y+=F.y;if(F.angle!==0){if(K.rotate(O.vertices,F.angle,X.position),z.rotate(O.axes,F.angle),M>0)Q.rotateAbout(O.position,F.angle,X.position,O.position)}G.update(O.bounds,O.vertices,X.velocity)}F.angle*=J._warming,F.x*=J._warming,F.y*=J._warming}},J.pointAWorld=function(N){return{x:(N.bodyA?N.bodyA.position.x:0)+(N.pointA?N.pointA.x:0),y:(N.bodyA?N.bodyA.position.y:0)+(N.pointA?N.pointA.y:0)}},J.pointBWorld=function(N){return{x:(N.bodyB?N.bodyB.position.x:0)+(N.pointB?N.pointB.x:0),y:(N.bodyB?N.bodyB.position.y:0)+(N.pointB?N.pointB.y:0)}},J.currentLength=function(N){var H=(N.bodyA?N.bodyA.position.x:0)+(N.pointA?N.pointA.x:0),X=(N.bodyA?N.bodyA.position.y:0)+(N.pointA?N.pointA.y:0),F=(N.bodyB?N.bodyB.position.x:0)+(N.pointB?N.pointB.x:0),M=(N.bodyB?N.bodyB.position.y:0)+(N.pointB?N.pointB.y:0),O=H-F,E=X-M;return Math.sqrt(O*O+E*E)}})()},function(U,Z,$){var J={};U.exports=J;var K=$(2),Q=$(0);(function(){J.fromVertices=function(W){var G={};for(var z=0;z=1)Q.warn("Bodies.trapezoid: slope parameter must be < 1.");F*=0.5;var O=(1-F*2)*H,E=H*F,V=E+O,I=V+E,q;if(F<0.5)q="L 0 0 L "+E+" "+-X+" L "+V+" "+-X+" L "+I+" 0";else q="L 0 0 L "+V+" "+-X+" L "+I+" 0";var Y={label:"Trapezoid Body",position:{x:L,y:N},vertices:K.fromPath(q)};if(M.chamfer){var R=M.chamfer;Y.vertices=K.chamfer(Y.vertices,R.radius,R.quality,R.qualityMin,R.qualityMax),delete M.chamfer}return W.create(Q.extend({},Y,M))},J.circle=function(L,N,H,X,F){X=X||{};var M={label:"Circle Body",circleRadius:H};F=F||25;var O=Math.ceil(Math.max(10,Math.min(F,H)));if(O%2===1)O+=1;return J.polygon(L,N,O,H,Q.extend({},M,X))},J.polygon=function(L,N,H,X,F){if(F=F||{},H<3)return J.circle(L,N,X,F);var M=2*Math.PI/H,O="",E=M*0.5;for(var V=0;V0&&K.area(x)1)return q=W.create(Q.extend({parts:Y.slice(0)},X)),W.setPosition(q,{x:L,y:N}),q;else return Y[0]}})()},function(U,Z,$){var J={};U.exports=J;var K=$(0),Q=$(8);(function(){J.create=function(W){var G={bodies:[],collisions:[],pairs:null};return K.extend(G,W)},J.setBodies=function(W,G){W.bodies=G.slice(0)},J.clear=function(W){W.bodies=[],W.collisions=[]},J.collisions=function(W){var{pairs:G,bodies:z}=W,L=z.length,N=J.canCollide,H=Q.collides,X=W.collisions,F=0,M,O;z.sort(J._compareBoundsX);for(M=0;MI)break;if(qj.max.y)continue;if(R&&(C.isStatic||C.isSleeping))continue;if(!N(E.collisionFilter,C.collisionFilter))continue;var S=C.parts.length;if(B&&S===1){var k=H(E,C,G);if(k)X[F++]=k}else{var P=D>1?1:0,T=S>1?1:0;for(var h=P;hj.max.x||V.max.xj.max.y)continue;var k=H(f,b,G);if(k)X[F++]=k}}}}}if(X.length!==F)X.length=F;return X},J.canCollide=function(W,G){if(W.group===G.group&&W.group!==0)return W.group>0;return(W.mask&G.category)!==0&&(G.mask&W.category)!==0},J._compareBoundsX=function(W,G){return W.bounds.min.x-G.bounds.min.x}})()},function(U,Z,$){var J={};U.exports=J;var K=$(0);(function(){J.create=function(Q){var W={};if(!Q)K.log("Mouse.create: element was undefined, defaulting to document.body","warn");return W.element=Q||document.body,W.absolute={x:0,y:0},W.position={x:0,y:0},W.mousedownPosition={x:0,y:0},W.mouseupPosition={x:0,y:0},W.offset={x:0,y:0},W.scale={x:1,y:1},W.wheelDelta=0,W.button=-1,W.pixelRatio=parseInt(W.element.getAttribute("data-pixel-ratio"),10)||1,W.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},W.mousemove=function(G){var z=J._getRelativeMousePosition(G,W.element,W.pixelRatio),L=G.changedTouches;if(L)W.button=0,G.preventDefault();W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.sourceEvents.mousemove=G},W.mousedown=function(G){var z=J._getRelativeMousePosition(G,W.element,W.pixelRatio),L=G.changedTouches;if(L)W.button=0,G.preventDefault();else W.button=G.button;W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.mousedownPosition.x=W.position.x,W.mousedownPosition.y=W.position.y,W.sourceEvents.mousedown=G},W.mouseup=function(G){var z=J._getRelativeMousePosition(G,W.element,W.pixelRatio),L=G.changedTouches;if(L)G.preventDefault();W.button=-1,W.absolute.x=z.x,W.absolute.y=z.y,W.position.x=W.absolute.x*W.scale.x+W.offset.x,W.position.y=W.absolute.y*W.scale.y+W.offset.y,W.mouseupPosition.x=W.position.x,W.mouseupPosition.y=W.position.y,W.sourceEvents.mouseup=G},W.mousewheel=function(G){W.wheelDelta=Math.max(-1,Math.min(1,G.wheelDelta||-G.detail)),G.preventDefault(),W.sourceEvents.mousewheel=G},J.setElement(W,W.element),W},J.setElement=function(Q,W){Q.element=W,W.addEventListener("mousemove",Q.mousemove,{passive:!0}),W.addEventListener("mousedown",Q.mousedown,{passive:!0}),W.addEventListener("mouseup",Q.mouseup,{passive:!0}),W.addEventListener("wheel",Q.mousewheel,{passive:!1}),W.addEventListener("touchmove",Q.mousemove,{passive:!1}),W.addEventListener("touchstart",Q.mousedown,{passive:!1}),W.addEventListener("touchend",Q.mouseup,{passive:!1})},J.clearSourceEvents=function(Q){Q.sourceEvents.mousemove=null,Q.sourceEvents.mousedown=null,Q.sourceEvents.mouseup=null,Q.sourceEvents.mousewheel=null,Q.wheelDelta=0},J.setOffset=function(Q,W){Q.offset.x=W.x,Q.offset.y=W.y,Q.position.x=Q.absolute.x*Q.scale.x+Q.offset.x,Q.position.y=Q.absolute.y*Q.scale.y+Q.offset.y},J.setScale=function(Q,W){Q.scale.x=W.x,Q.scale.y=W.y,Q.position.x=Q.absolute.x*Q.scale.x+Q.offset.x,Q.position.y=Q.absolute.y*Q.scale.y+Q.offset.y},J._getRelativeMousePosition=function(Q,W,G){var z=W.getBoundingClientRect(),L=document.documentElement||document.body.parentNode||document.body,N=window.pageXOffset!==void 0?window.pageXOffset:L.scrollLeft,H=window.pageYOffset!==void 0?window.pageYOffset:L.scrollTop,X=Q.changedTouches,F,M;if(X)F=X[0].pageX-z.left-N,M=X[0].pageY-z.top-H;else F=Q.pageX-z.left-N,M=Q.pageY-z.top-H;return{x:F/(W.clientWidth/(W.width||W.clientWidth)*G),y:M/(W.clientHeight/(W.height||W.clientHeight)*G)}}})()},function(U,Z,$){var J={};U.exports=J;var K=$(0);(function(){J._registry={},J.register=function(Q){if(!J.isPlugin(Q))K.warn("Plugin.register:",J.toString(Q),"does not implement all required fields.");if(Q.name in J._registry){var W=J._registry[Q.name],G=J.versionParse(Q.version).number,z=J.versionParse(W.version).number;if(G>z)K.warn("Plugin.register:",J.toString(W),"was upgraded to",J.toString(Q)),J._registry[Q.name]=Q;else if(G-1},J.isFor=function(Q,W){var G=Q.for&&J.dependencyParse(Q.for);return!Q.for||W.name===G.name&&J.versionSatisfies(W.version,G.range)},J.use=function(Q,W){if(Q.uses=(Q.uses||[]).concat(W||[]),Q.uses.length===0){K.warn("Plugin.use:",J.toString(Q),"does not specify any dependencies to install.");return}var G=J.dependencies(Q),z=K.topologicalSort(G),L=[];for(var N=0;N0)K.info(L.join(" "))},J.dependencies=function(Q,W){var G=J.dependencyParse(Q),z=G.name;if(W=W||{},z in W)return;Q=J.resolve(Q)||Q,W[z]=K.map(Q.uses||[],function(N){if(J.isPlugin(N))J.register(N);var H=J.dependencyParse(N),X=J.resolve(N);if(X&&!J.versionSatisfies(X.version,H.range))K.warn("Plugin.dependencies:",J.toString(X),"does not satisfy",J.toString(H),"used by",J.toString(G)+"."),X._warned=!0,Q._warned=!0;else if(!X)K.warn("Plugin.dependencies:",J.toString(N),"used by",J.toString(G),"could not be resolved."),Q._warned=!0;return H.name});for(var L=0;L=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;if(!W.test(Q))K.warn("Plugin.versionParse:",Q,"is not a valid version or range.");var G=W.exec(Q),z=Number(G[4]),L=Number(G[5]),N=Number(G[6]);return{isRange:Boolean(G[1]||G[2]),version:G[3],range:Q,operator:G[1]||G[2]||"",major:z,minor:L,patch:N,parts:[z,L,N],prerelease:G[7],number:z*1e8+L*1e4+N}},J.versionSatisfies=function(Q,W){W=W||"*";var G=J.versionParse(W),z=J.versionParse(Q);if(G.isRange){if(G.operator==="*"||Q==="*")return!0;if(G.operator===">")return z.number>G.number;if(G.operator===">=")return z.number>=G.number;if(G.operator==="~")return z.major===G.major&&z.minor===G.minor&&z.patch>=G.patch;if(G.operator==="^"){if(G.major>0)return z.major===G.major&&z.number>=G.number;if(G.minor>0)return z.minor===G.minor&&z.patch>=G.patch;return z.patch===G.patch}}return Q===W||Q==="*"}})()},function(U,Z){var $={};U.exports=$,function(){$.create=function(J){return{vertex:J,normalImpulse:0,tangentImpulse:0}}}()},function(U,Z,$){var J={};U.exports=J;var K=$(7),Q=$(18),W=$(13),G=$(19),z=$(5),L=$(6),N=$(10),H=$(0),X=$(4);(function(){J._deltaMax=16.666666666666668,J.create=function(F){F=F||{};var M={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:0.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0,lastUpdatesPerFrame:0}},O=H.extend(M,F);return O.world=F.world||L.create({label:"World"}),O.pairs=F.pairs||G.create(),O.detector=F.detector||W.create(),O.detector.pairs=O.pairs,O.grid={buckets:[]},O.world.gravity=O.gravity,O.broadphase=O.grid,O.metrics={},O},J.update=function(F,M){var O=H.now(),E=F.world,V=F.detector,I=F.pairs,q=F.timing,Y=q.timestamp,R;if(M>J._deltaMax)H.warnOnce("Matter.Engine.update: delta argument is recommended to be less than or equal to",J._deltaMax.toFixed(3),"ms.");M=typeof M<"u"?M:H._baseDelta,M*=q.timeScale,q.timestamp+=M,q.lastDelta=M;var D={timestamp:q.timestamp,delta:M};z.trigger(F,"beforeUpdate",D);var B=L.allBodies(E),C=L.allConstraints(E);if(E.isModified)W.setBodies(V,B),L.setModified(E,!1,!1,!0);if(F.enableSleeping)K.update(B,M);if(J._bodiesApplyGravity(B,F.gravity),M>0)J._bodiesUpdate(B,M);z.trigger(F,"beforeSolve",D),N.preSolveAll(B);for(R=0;R0)z.trigger(F,"collisionStart",{pairs:I.collisionStart,timestamp:q.timestamp,delta:M});var S=H.clamp(20/F.positionIterations,0,1);Q.preSolvePosition(I.list);for(R=0;R0)z.trigger(F,"collisionActive",{pairs:I.collisionActive,timestamp:q.timestamp,delta:M});if(I.collisionEnd.length>0)z.trigger(F,"collisionEnd",{pairs:I.collisionEnd,timestamp:q.timestamp,delta:M});return J._bodiesClearForces(B),z.trigger(F,"afterUpdate",D),F.timing.lastElapsed=H.now()-O,F},J.merge=function(F,M){if(H.extend(F,M),M.world){F.world=M.world,J.clear(F);var O=L.allBodies(F.world);for(var E=0;Ep8){if(I=w>0?w:-w,V=R.friction*(w>0?1:-1)*H,V<-I)V=-I;else if(V>I)V=I}else V=w,I=O;var E0=$0*S-N0*j,f8=F0*S-L0*j,l8=b/(T+B.inverseInertia*E0*E0+C.inverseInertia*f8*f8),h8=(1+R.restitution)*p0*l8;if(V*=l8,p00)u.normalImpulse=0;h8=u.normalImpulse-w0}if(w<-F||w>F)u.tangentImpulse=0;else{var e8=u.tangentImpulse;if(u.tangentImpulse+=V,u.tangentImpulse<-I)u.tangentImpulse=-I;if(u.tangentImpulse>I)u.tangentImpulse=I;V=u.tangentImpulse-e8}var q0=j*h8+k*V,e0=S*h8+P*V;if(!(B.isStatic||B.isSleeping))B.positionPrev.x+=q0*B.inverseMass,B.positionPrev.y+=e0*B.inverseMass,B.anglePrev+=($0*e0-N0*q0)*B.inverseInertia;if(!(C.isStatic||C.isSleeping))C.positionPrev.x-=q0*C.inverseMass,C.positionPrev.y-=e0*C.inverseMass,C.anglePrev-=(F0*e0-L0*q0)*C.inverseInertia}}}})()},function(U,Z,$){var J={};U.exports=J;var K=$(9),Q=$(0);(function(){J.create=function(W){return Q.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},W)},J.update=function(W,G,z){var{update:L,create:N,setActive:H}=K,X=W.table,F=W.list,M=F.length,O=M,E=W.collisionStart,V=W.collisionEnd,I=W.collisionActive,q=G.length,Y=0,R=0,D=0,B,C,j;for(j=0;j=z)F[O++]=C;else if(H(C,!1,z),C.collision.bodyA.sleepCounter>0&&C.collision.bodyB.sleepCounter>0)F[O++]=C;else V[R++]=C,delete X[C.id];if(F.length!==O)F.length=O;if(E.length!==Y)E.length=Y;if(V.length!==R)V.length=R;if(I.length!==D)I.length=D},J.clear=function(W){return W.table={},W.list.length=0,W.collisionStart.length=0,W.collisionActive.length=0,W.collisionEnd.length=0,W}})()},function(U,Z,$){var J=U.exports=$(21);J.Axes=$(11),J.Bodies=$(12),J.Body=$(4),J.Bounds=$(1),J.Collision=$(8),J.Common=$(0),J.Composite=$(6),J.Composites=$(22),J.Constraint=$(10),J.Contact=$(16),J.Detector=$(13),J.Engine=$(17),J.Events=$(5),J.Grid=$(23),J.Mouse=$(14),J.MouseConstraint=$(24),J.Pair=$(9),J.Pairs=$(19),J.Plugin=$(15),J.Query=$(25),J.Render=$(26),J.Resolver=$(18),J.Runner=$(27),J.SAT=$(28),J.Sleeping=$(7),J.Svg=$(29),J.Vector=$(2),J.Vertices=$(3),J.World=$(30),J.Engine.run=J.Runner.run,J.Common.deprecated(J.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(U,Z,$){var J={};U.exports=J;var K=$(15),Q=$(0);(function(){J.name="matter-js",J.version="0.20.0",J.uses=[],J.used=[],J.use=function(){K.use(J,Array.prototype.slice.call(arguments))},J.before=function(W,G){return W=W.replace(/^Matter./,""),Q.chainPathBefore(J,W,G)},J.after=function(W,G){return W=W.replace(/^Matter./,""),Q.chainPathAfter(J,W,G)}})()},function(U,Z,$){var J={};U.exports=J;var K=$(6),Q=$(10),W=$(0),G=$(4),z=$(12),L=W.deprecated;(function(){J.stack=function(N,H,X,F,M,O,E){var V=K.create({label:"Stack"}),I=N,q=H,Y,R=0;for(var D=0;DB)B=S;G.translate(j,{x:k*0.5,y:S*0.5}),I=j.bounds.max.x+M,K.addBody(V,j),Y=j,R+=1}else I+=M}q+=B+O,I=N}return V},J.chain=function(N,H,X,F,M,O){var E=N.bodies;for(var V=1;V0)for(V=0;V0)Y=O[V-1+(E-1)*H],K.addConstraint(N,Q.create(W.extend({bodyA:Y,bodyB:q},M)));if(F&&VB)return;Y=B-Y;var j=Y,S=X-1-Y;if(qS)return;if(D===1)G.translate(R,{x:(q+(X%2===1?1:-1))*C,y:0});var k=R?q*C:0;return E(N+k+q*M,I,q,Y,R,D)})},J.newtonsCradle=function(N,H,X,F,M){var O=K.create({label:"Newtons Cradle"});for(var E=0;EM.bounds.max.x||q.bounds.max.yM.bounds.max.y))continue;var Y=J._getRegion(G,q);if(!q.region||Y.id!==q.region.id||N){if(!q.region||N)q.region=Y;var R=J._regionUnion(Y,q.region);for(X=R.startCol;X<=R.endCol;X++)for(F=R.startRow;F<=R.endRow;F++){V=J._getBucketId(X,F),E=O[V];var D=X>=Y.startCol&&X<=Y.endCol&&F>=Y.startRow&&F<=Y.endRow,B=X>=q.region.startCol&&X<=q.region.endCol&&F>=q.region.startRow&&F<=q.region.endRow;if(!D&&B){if(B){if(E)J._bucketRemoveBody(G,E,q)}}if(q.region===Y||D&&!B||N){if(!E)E=J._createBucket(O,V);J._bucketAddBody(G,E,q)}}q.region=Y,I=!0}}if(I)G.pairsList=J._createActivePairsList(G)},W(J,"update","Grid.update ➤ replaced by Matter.Detector"),J.clear=function(G){G.buckets={},G.pairs={},G.pairsList=[]},W(J,"clear","Grid.clear ➤ replaced by Matter.Detector"),J._regionUnion=function(G,z){var L=Math.min(G.startCol,z.startCol),N=Math.max(G.endCol,z.endCol),H=Math.min(G.startRow,z.startRow),X=Math.max(G.endRow,z.endRow);return J._createRegion(L,N,H,X)},J._getRegion=function(G,z){var L=z.bounds,N=Math.floor(L.min.x/G.bucketWidth),H=Math.floor(L.max.x/G.bucketWidth),X=Math.floor(L.min.y/G.bucketHeight),F=Math.floor(L.max.y/G.bucketHeight);return J._createRegion(N,H,X,F)},J._createRegion=function(G,z,L,N){return{id:G+","+z+","+L+","+N,startCol:G,endCol:z,startRow:L,endRow:N}},J._getBucketId=function(G,z){return"C"+G+"R"+z},J._createBucket=function(G,z){var L=G[z]=[];return L},J._bucketAddBody=function(G,z,L){var N=G.pairs,H=K.id,X=z.length,F;for(F=0;F0)X.push(z);else delete L[N[F]];return X}})()},function(U,Z,$){var J={};U.exports=J;var K=$(3),Q=$(7),W=$(14),G=$(5),z=$(13),L=$(10),N=$(6),H=$(0),X=$(1);(function(){J.create=function(F,M){var O=(F?F.mouse:null)||(M?M.mouse:null);if(!O)if(F&&F.render&&F.render.canvas)O=W.create(F.render.canvas);else if(M&&M.element)O=W.create(M.element);else O=W.create(),H.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected");var E=L.create({label:"Mouse Constraint",pointA:O.position,pointB:{x:0,y:0},length:0.01,stiffness:0.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),V={type:"mouseConstraint",mouse:O,element:null,body:null,constraint:E,collisionFilter:{category:1,mask:4294967295,group:0}},I=H.extend(V,M);return G.on(F,"beforeUpdate",function(){var q=N.allBodies(F.world);J.update(I,q),J._triggerEvents(I)}),I},J.update=function(F,M){var{mouse:O,constraint:E,body:V}=F;if(O.button===0)if(!E.bodyB){for(var I=0;I1?1:0;qB.max.x)B.max.x=k.x;if(S.yB.max.y)B.max.y=k.y}}var P=B.max.x-B.min.x+2*R.x,T=B.max.y-B.min.y+2*R.y,h=q.canvas.height,f=q.canvas.width,x=f/h,b=P/T,y=1,g=1;if(b>x)g=b/x;else y=x/b;if(q.options.hasBounds=!0,q.bounds.min.x=B.min.x,q.bounds.max.x=B.min.x+P*y,q.bounds.min.y=B.min.y,q.bounds.max.y=B.min.y+T*g,D)q.bounds.min.x+=P*0.5-P*y*0.5,q.bounds.max.x+=P*0.5-P*y*0.5,q.bounds.min.y+=T*0.5-T*g*0.5,q.bounds.max.y+=T*0.5-T*g*0.5;if(q.bounds.min.x-=R.x,q.bounds.max.x-=R.x,q.bounds.min.y-=R.y,q.bounds.max.y-=R.y,q.mouse)N.setScale(q.mouse,{x:(q.bounds.max.x-q.bounds.min.x)/q.canvas.width,y:(q.bounds.max.y-q.bounds.min.y)/q.canvas.height}),N.setOffset(q.mouse,q.bounds.min)},J.startViewTransform=function(q){var Y=q.bounds.max.x-q.bounds.min.x,R=q.bounds.max.y-q.bounds.min.y,D=Y/q.options.width,B=R/q.options.height;q.context.setTransform(q.options.pixelRatio/D,0,0,q.options.pixelRatio/B,0,0),q.context.translate(-q.bounds.min.x,-q.bounds.min.y)},J.endViewTransform=function(q){q.context.setTransform(q.options.pixelRatio,0,0,q.options.pixelRatio,0,0)},J.world=function(q,Y){var R=Q.now(),D=q.engine,B=D.world,C=q.canvas,j=q.context,S=q.options,k=q.timing,P=W.allBodies(B),T=W.allConstraints(B),h=S.wireframes?S.wireframeBackground:S.background,f=[],x=[],b,y={timestamp:D.timing.timestamp};if(z.trigger(q,"beforeRender",y),q.currentBackground!==h)I(q,h);if(j.globalCompositeOperation="source-in",j.fillStyle="transparent",j.fillRect(0,0,C.width,C.height),j.globalCompositeOperation="source-over",S.hasBounds){for(b=0;b1?1:0;T1?1:0;P1?1:0;j1?1:0;P1?1:0;k1?1:0;k1?1:0;C0){var b=C.contacts[0].vertex.x,y=C.contacts[0].vertex.y;if(C.contactCount===2)b=(C.contacts[0].vertex.x+C.contacts[1].vertex.x)/2,y=(C.contacts[0].vertex.y+C.contacts[1].vertex.y)/2;if(j.bodyB===j.supports[0].body||j.bodyA.isStatic===!0)D.moveTo(b-j.normal.x*8,y-j.normal.y*8);else D.moveTo(b+j.normal.x*8,y+j.normal.y*8);D.lineTo(b,y)}}if(B.wireframes)D.strokeStyle="rgba(255,165,0,0.7)";else D.strokeStyle="orange";D.lineWidth=1,D.stroke()},J.separations=function(q,Y,R){var D=R,B=q.options,C,j,S,k,P,T,h;D.beginPath();for(T=0;TMath.max(J._maxFrameDelta,z.maxFrameTime))M=z.frameDelta||J._frameDeltaFallback;if(z.frameDeltaSmoothing){z.frameDeltaHistory.push(M),z.frameDeltaHistory=z.frameDeltaHistory.slice(-z.frameDeltaHistorySize);var O=z.frameDeltaHistory.slice(0).sort(),E=z.frameDeltaHistory.slice(O.length*J._smoothingLowerBound,O.length*J._smoothingUpperBound),V=G(E);M=V||M}if(z.frameDeltaSnapping)M=1000/Math.round(1000/M);z.frameDelta=M,z.timeLastTick=N,z.timeBuffer+=z.frameDelta,z.timeBuffer=W.clamp(z.timeBuffer,0,z.frameDelta+X*J._timeBufferMargin),z.lastUpdatesDeferred=0;var I=z.maxUpdates||Math.ceil(z.maxFrameTime/X),q={timestamp:L.timing.timestamp};K.trigger(z,"beforeTick",q),K.trigger(z,"tick",q);var Y=W.now();while(X>0&&z.timeBuffer>=X*J._timeBufferMargin){K.trigger(z,"beforeUpdate",q),Q.update(L,X),K.trigger(z,"afterUpdate",q),z.timeBuffer-=X,F+=1;var R=W.now()-H,D=W.now()-Y,B=R+J._elapsedNextEstimate*D/F;if(F>=I||B>z.maxFrameTime){z.lastUpdatesDeferred=Math.round(Math.max(0,z.timeBuffer/X-J._timeBufferMargin));break}}if(L.timing.lastUpdatesPerFrame=F,K.trigger(z,"afterTick",q),z.frameDeltaHistory.length>=100){if(z.lastUpdatesDeferred&&Math.round(z.frameDelta/X)>I)W.warnOnce("Matter.Runner: runner reached runner.maxUpdates, see docs.");else if(z.lastUpdatesDeferred)W.warnOnce("Matter.Runner: runner reached runner.maxFrameTime, see docs.");if(typeof z.isFixed<"u")W.warnOnce("Matter.Runner: runner.isFixed is now redundant, see docs.");if(z.deltaMin||z.deltaMax)W.warnOnce("Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs.");if(z.fps!==0)W.warnOnce("Matter.Runner: runner.fps was replaced by runner.delta, see docs.")}},J.stop=function(z){J._cancelNextFrame(z)},J._onNextFrame=function(z,L){if(typeof window<"u"&&window.requestAnimationFrame)z.frameRequestId=window.requestAnimationFrame(L);else throw Error("Matter.Runner: missing required global window.requestAnimationFrame.");return z.frameRequestId},J._cancelNextFrame=function(z){if(typeof window<"u"&&window.cancelAnimationFrame)window.cancelAnimationFrame(z.frameRequestId);else throw Error("Matter.Runner: missing required global window.cancelAnimationFrame.")};var G=function(z){var L=0,N=z.length;for(var H=0;H1;if(!E||S!=E.x||k!=E.y){if(E&&T)q=E.x,Y=E.y;else q=0,Y=0;var h={x:q+S,y:Y+k};if(T||!E)E=h;I.push(h),D=q+S,B=Y+k}},j=function(S){var k=S.pathSegTypeAsLetter.toUpperCase();if(k==="Z")return;switch(k){case"M":case"L":case"T":case"C":case"S":case"Q":D=S.x,B=S.y;break;case"H":D=S.x;break;case"V":B=S.y;break}C(D,B,S.pathSegType)};J._svgPathToAbsolute(W),N=W.getTotalLength(),F=[];for(z=0;zTZ});function X1(U){if(U===void 0)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function y7(U,Z){U.prototype=Object.create(Z.prototype),U.prototype.constructor=U,U.__proto__=Z}/*! * GSAP 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var R8={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},DJ={duration:0.5,overwrite:!1,delay:0},z$,n0,I0,v8=1e8,O0=1/v8,tZ=Math.PI*2,O6=tZ/4,q6=0,_7=Math.sqrt,Y6=Math.cos,E6=Math.sin,y0=function(Z){return typeof Z==="string"},S0=function(Z){return typeof Z==="function"},O1=function(Z){return typeof Z==="number"},l9=function(Z){return typeof Z>"u"},G1=function(Z){return typeof Z==="object"},D8=function(Z){return Z!==!1},L$=function(){return typeof window<"u"},v9=function(Z){return S0(Z)||y0(Z)},g7=typeof ArrayBuffer==="function"&&ArrayBuffer.isView||function(){},K8=Array.isArray,eZ=/(?:-?\.?\d|\.)+/gi,N$=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,n1=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,lZ=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,F$=/[+-]=-?[.\d]+/,u7=/[^,'"\[\]\s]+/gi,D6=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,j0,Q1,J$,X$,k8={},u9={},m7,d7=function(Z){return(u9=RJ(Z,k8))&&Q8},s9=function(Z,$){return console.warn("Invalid property",Z,"set to",$,"Missing plugin? gsap.registerPlugin()")},tJ=function(Z,$){return!$&&console.warn(Z)},c7=function(Z,$){return Z&&(k8[Z]=$)&&u9&&(u9[Z]=$)||k8},eJ=function(){return 0},R6={suppressEvents:!0,isStart:!0,kill:!1},y9={suppressEvents:!0,kill:!1},I6={suppressEvents:!0},M$={},P1=[],Z$={},p7,Y8={},sZ={},T7=30,_9=[],O$="",q$=function(Z){var $=Z[0],J,K;if(G1($)||S0($)||(Z=[Z]),!(J=($._gsap||{}).harness)){K=_9.length;while(K--&&!_9[K].targetTest($));J=_9[K]}K=Z.length;while(K--)Z[K]&&(Z[K]._gsap||(Z[K]._gsap=new R$(Z[K],J)))||Z.splice(K,1);return Z},T1=function(Z){return Z._gsap||q$(y8(Z))[0]._gsap},Y$=function(Z,$,J){return(J=Z[$])&&S0(J)?Z[$]():l9(J)&&Z.getAttribute&&Z.getAttribute($)||J},z8=function(Z,$){return(Z=Z.split(",")).forEach($)||Z},k0=function(Z){return Math.round(Z*1e5)/1e5||0},h0=function(Z){return Math.round(Z*1e7)/1e7||0},o1=function(Z,$){var J=$.charAt(0),K=parseFloat($.substr(2));return Z=parseFloat(Z),J==="+"?Z+K:J==="-"?Z-K:J==="*"?Z*K:Z/K},V6=function(Z,$){var J=$.length,K=0;for(;Z.indexOf($[K])<0&&++KG)W=W._prev}if(W)$._next=W._next,W._next=$;else $._next=Z[J],Z[J]=$;if($._next)$._next._prev=$;else Z[K]=$;return $._prev=W,$.parent=$._dp=Z,$},$9=function(Z,$,J,K){if(J===void 0)J="_first";if(K===void 0)K="_last";var{_prev:Q,_next:W}=$;if(Q)Q._next=W;else if(Z[J]===$)Z[J]=W;if(W)W._prev=Q;else if(Z[K]===$)Z[K]=Q;$._next=$._prev=$.parent=null},w1=function(Z,$){Z.parent&&(!$||Z.parent.autoRemoveChildren)&&Z.parent.remove&&Z.parent.remove(Z),Z._act=0},l1=function(Z,$){if(Z&&(!$||$._end>Z._dur||$._start<0)){var J=Z;while(J)J._dirty=1,J=J.parent}return Z},C6=function(Z){var $=Z.parent;while($&&$.parent)$._dirty=1,$.totalDuration(),$=$.parent;return Z},$$=function(Z,$,J,K){return Z._startAt&&(n0?Z._startAt.revert(y9):Z.vars.immediateRender&&!Z.vars.autoRevert||Z._startAt.render($,!0,K))},S6=function U(Z){return!Z||Z._ts&&U(Z.parent)},f7=function(Z){return Z._repeat?IJ(Z._tTime,Z=Z.duration()+Z._rDelay)*Z:0},IJ=function(Z,$){var J=Math.floor(Z=h0(Z/$));return Z&&J===Z?J-1:J},c9=function(Z,$){return(Z-$._start)*$._ts+($._ts>=0?0:$._dirty?$.totalDuration():$._tDur)},i9=function(Z){return Z._end=h0(Z._start+(Z._tDur/Math.abs(Z._ts||Z._rts||O0)||0))},n9=function(Z,$){var J=Z._dp;if(J&&J.smoothChildTiming&&Z._ts)Z._start=h0(J._time-(Z._ts>0?$/Z._ts:((Z._dirty?Z.totalDuration():Z._tDur)-$)/-Z._ts)),i9(Z),J._dirty||l1(J,Z);return Z},o7=function(Z,$){var J;if($._time||!$._dur&&$._initted||$._startO0)$.render(J,!0)}if(l1(Z,$)._dp&&Z._initted&&Z._time>=Z._dur&&Z._ts){if(Z._dur=0&&J.totalTime(J._tTime),J=J._dp}Z._zTime=-O0}},W1=function(Z,$,J,K){return $.parent&&w1($),$._start=h0((O1(J)?J:J||Z!==j0?b8(Z,J,$):Z._time)+$._delay),$._end=h0($._start+($.totalDuration()/Math.abs($.timeScale())||0)),n7(Z,$,"_first","_last",Z._sort?"_start":0),K$($)||(Z._recent=$),K||o7(Z,$),Z._ts<0&&n9(Z,Z._tTime),Z},a7=function(Z,$){return(k8.ScrollTrigger||s9("scrollTrigger",$))&&k8.ScrollTrigger.create($,Z)},r7=function(Z,$,J,K,Q){if(j$(Z,$,Q),!Z._initted)return 1;if(!J&&Z._pt&&!n0&&(Z._dur&&Z.vars.lazy!==!1||!Z._dur&&Z.vars.lazy)&&p7!==E8.frame)return P1.push(Z),Z._lazy=[Q,K],1},k6=function U(Z){var $=Z.parent;return $&&$._ts&&$._initted&&!$._lock&&($.rawTime()<0||U($))},K$=function(Z){var $=Z.data;return $==="isFromStart"||$==="isStart"},A6=function(Z,$,J,K){var Q=Z.ratio,W=$<0||!$&&(!Z._start&&k6(Z)&&!(!Z._initted&&K$(Z))||(Z._ts<0||Z._dp._ts<0)&&!K$(Z))?0:1,G=Z._rDelay,z=0,L,N,H;if(G&&Z._repeat){if(z=K9(0,Z._tDur,$),N=IJ(z,G),Z._yoyo&&N&1&&(W=1-W),N!==IJ(Z._tTime,G))Q=1-W,Z.vars.repeatRefresh&&Z._initted&&Z.invalidate()}if(W!==Q||n0||K||Z._zTime===O0||!$&&Z._zTime){if(!Z._initted&&r7(Z,$,K,J,z))return;H=Z._zTime,Z._zTime=$||(J?O0:0),J||(J=$&&!H),Z.ratio=W,Z._from&&(W=1-W),Z._time=0,Z._tTime=z,L=Z._pt;while(L)L.r(W,L.d),L=L._next;if($<0&&$$(Z,$,J,!0),Z._onUpdate&&!J&&S8(Z,"onUpdate"),z&&Z._repeat&&!J&&Z.parent&&S8(Z,"onRepeat"),($>=Z._tDur||$<0)&&Z.ratio===W){if(W&&w1(Z,1),!J&&!n0)S8(Z,W?"onComplete":"onReverseComplete",!0),Z._prom&&Z._prom()}}else if(!Z._zTime)Z._zTime=$},P6=function(Z,$,J){var K;if(J>$){K=Z._first;while(K&&K._start<=J){if(K.data==="isPause"&&K._start>$)return K;K=K._next}}else{K=Z._last;while(K&&K._start>=J){if(K.data==="isPause"&&K._start<$)return K;K=K._prev}}},VJ=function(Z,$,J,K){var Q=Z._repeat,W=h0($)||0,G=Z._tTime/Z._tDur;return G&&!K&&(Z._time*=W/Z._dur),Z._dur=W,Z._tDur=!Q?W:Q<0?10000000000:h0(W*(Q+1)+Z._rDelay*Q),G>0&&!K&&n9(Z,Z._tTime=Z._tDur*G),Z.parent&&i9(Z),J||l1(Z.parent,Z),Z},h7=function(Z){return Z instanceof i0?l1(Z):VJ(Z,Z._dur)},T6={_start:0,endTime:eJ,totalDuration:eJ},b8=function U(Z,$,J){var K=Z.labels,Q=Z._recent||T6,W=Z.duration()>=v8?Q.endTime(!1):Z._dur,G,z,L;if(y0($)&&(isNaN($)||($ in K))){if(z=$.charAt(0),L=$.substr(-1)==="%",G=$.indexOf("="),z==="<"||z===">")return G>=0&&($=$.replace(/=/,"")),(z==="<"?Q._start:Q.endTime(Q._repeat>=0))+(parseFloat($.substr(1))||0)*(L?(G<0?Q:J).totalDuration()/100:1);if(G<0)return $ in K||(K[$]=W),K[$];if(z=parseFloat($.charAt(G-1)+$.substr(G+1)),L&&J)z=z/100*(K8(J)?J[0]:J).totalDuration();return G>1?U(Z,$.substr(0,G-1),J)+z:W+z}return $==null?W:+$},aJ=function(Z,$,J){var K=O1($[1]),Q=(K?2:1)+(Z<2?0:1),W=$[Q],G,z;if(K&&(W.duration=$[1]),W.parent=J,Z){G=W,z=J;while(z&&!("immediateRender"in G))G=z.vars.defaults||{},z=D8(z.vars.inherit)&&z.parent;W.immediateRender=D8(G.immediateRender),Z<2?W.runBackwards=1:W.startAt=$[Q-1]}return new T0($[0],W,$[Q+1])},f1=function(Z,$){return Z||Z===0?$(Z):$},K9=function(Z,$,J){return J$?$:J},o0=function(Z,$){return!y0(Z)||!($=D6.exec(Z))?"":$[1]},w6=function(Z,$,J){return f1(J,function(K){return K9(Z,$,K)})},Q$=[].slice,t7=function(Z,$){return Z&&G1(Z)&&"length"in Z&&(!$&&!Z.length||(Z.length-1 in Z)&&G1(Z[0]))&&!Z.nodeType&&Z!==Q1},f6=function(Z,$,J){if(J===void 0)J=[];return Z.forEach(function(K){var Q;return y0(K)&&!$||t7(K,1)?(Q=J).push.apply(Q,y8(K)):J.push(K)})||J},y8=function(Z,$,J){return I0&&!$&&I0.selector?I0.selector(Z):y0(Z)&&!J&&(J$||!jJ())?Q$.call(($||X$).querySelectorAll(Z),0):K8(Z)?f6(Z,J):t7(Z)?Q$.call(Z,0):Z?[Z]:[]},W$=function(Z){return Z=y8(Z)[0]||tJ("Invalid scope")||{},function($){var J=Z.current||Z.nativeElement||Z;return y8($,J.querySelectorAll?J:J===Z?tJ("Invalid scope")||X$.createElement("div"):Z)}},e7=function(Z){return Z.sort(function(){return 0.5-Math.random()})},JK=function(Z){if(S0(Z))return Z;var $=G1(Z)?Z:{each:Z},J=s1($.ease),K=$.from||0,Q=parseFloat($.base)||0,W={},G=K>0&&K<1,z=isNaN(K)||G,L=$.axis,N=K,H=K;if(y0(K))N=H={center:0.5,edges:0.5,end:1}[K]||0;else if(!G&&z)N=K[0],H=K[1];return function(X,F,M){var O=(M||$).length,E=W[O],V,I,q,Y,R,D,B,C,j;if(!E){if(j=$.grid==="auto"?0:($.grid||[1,v8])[1],!j){B=-v8;while(B<(B=M[j++].getBoundingClientRect().left)&&jB&&(B=R),RO?O-1:!L?Math.max(j,O/j):L==="y"?O/j:j)||0)*(K==="edges"?-1:1),E.b=O<0?Q-O:Q,E.u=o0($.amount||$.each)||0,J=J&&O<0?zK(J):J}return O=(E[X]-E.min)/E.max||0,h0(E.b+(J?J(O):O)*E.v)+E.u}},G$=function(Z){var $=Math.pow(10,((Z+"").split(".")[1]||"").length);return function(J){var K=h0(Math.round(parseFloat(J)/Z)*Z*$);return(K-K%1)/$+(O1(J)?0:o0(J))}},ZK=function(Z,$){var J=K8(Z),K,Q;if(!J&&G1(Z))if(K=J=Z.radius||v8,Z.values){if(Z=y8(Z.values),Q=!O1(Z[0]))K*=K}else Z=G$(Z.increment);return f1($,!J?G$(Z):S0(Z)?function(W){return Q=Z(W),Math.abs(Q-W)<=K?Q:W}:function(W){var G=parseFloat(Q?W.x:W),z=parseFloat(Q?W.y:0),L=v8,N=0,H=Z.length,X,F;while(H--){if(Q)X=Z[H].x-G,F=Z[H].y-z,X=X*X+F*F;else X=Math.abs(Z[H]-G);if(XK?Q-W:W)})},BJ=function(Z){var $=0,J="",K,Q,W,G;while(~(K=Z.indexOf("random(",$)))W=Z.indexOf(")",K),G=Z.charAt(K+7)==="[",Q=Z.substr(K+7,W-K-7).match(G?u7:eZ),J+=Z.substr($,K-$)+$K(G?Q:+Q[0],G?0:+Q[1],+Q[2]||0.00001),$=W+1;return J+Z.substr($,Z.length-$)},QK=function(Z,$,J,K,Q){var W=$-Z,G=K-J;return f1(Q,function(z){return J+((z-Z)/W*G||0)})},_6=function U(Z,$,J,K){var Q=isNaN(Z+$)?0:function(F){return(1-F)*Z+F*$};if(!Q){var W=y0(Z),G={},z,L,N,H,X;if(J===!0&&(K=1)&&(J=null),W)Z={p:Z},$={p:$};else if(K8(Z)&&!K8($)){N=[],H=Z.length,X=H-2;for(L=1;L(G=Math.abs(G)))z=W,Q=G;return z},S8=function(Z,$,J){var K=Z.vars,Q=K[$],W=I0,G=Z._ctx,z,L,N;if(!Q)return;return z=K[$+"Params"],L=K.callbackScope||Z,J&&P1.length&&m9(),G&&(I0=G),N=z?Q.apply(L,z):Q.call(L),I0=W,N},iJ=function(Z){return w1(Z),Z.scrollTrigger&&Z.scrollTrigger.kill(!!n0),Z.progress()<1&&S8(Z,"onInterrupt"),Z},EJ,WK=[],GK=function(Z){if(!Z)return;if(Z=!Z.name&&Z.default||Z,L$()||Z.headless){var $=Z.name,J=S0(Z),K=$&&!J&&Z.init?function(){this._props=[]}:Z,Q={init:eJ,render:S$,add:I$,kill:JW,modifier:e6,rawVars:0},W={targetTest:0,get:0,getSetter:o9,aliases:{},register:0};if(jJ(),Z!==K){if(Y8[$])return;if(I8(K,I8(d9(Z,Q),W)),RJ(K.prototype,RJ(Q,d9(Z,W))),Y8[K.prop=$]=K,Z.targetTest)_9.push(K),M$[$]=1;$=($==="css"?"CSS":$.charAt(0).toUpperCase()+$.substr(1))+"Plugin"}c7($,K),Z.register&&Z.register(Q8,K,L8)}else WK.push(Z)},M0=255,nJ={aqua:[0,M0,M0],lime:[0,M0,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,M0],navy:[0,0,128],white:[M0,M0,M0],olive:[128,128,0],yellow:[M0,M0,0],orange:[M0,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[M0,0,0],pink:[M0,192,203],cyan:[0,M0,M0],transparent:[M0,M0,M0,0]},iZ=function(Z,$,J){return Z+=Z<0?1:Z>1?-1:0,(Z*6<1?$+(J-$)*Z*6:Z<0.5?J:Z*3<2?$+(J-$)*(0.6666666666666666-Z)*6:$)*M0+0.5|0},HK=function(Z,$,J){var K=!Z?nJ.black:O1(Z)?[Z>>16,Z>>8&M0,Z&M0]:0,Q,W,G,z,L,N,H,X,F,M;if(!K){if(Z.substr(-1)===",")Z=Z.substr(0,Z.length-1);if(nJ[Z])K=nJ[Z];else if(Z.charAt(0)==="#"){if(Z.length<6)Q=Z.charAt(1),W=Z.charAt(2),G=Z.charAt(3),Z="#"+Q+Q+W+W+G+G+(Z.length===5?Z.charAt(4)+Z.charAt(4):"");if(Z.length===9)return K=parseInt(Z.substr(1,6),16),[K>>16,K>>8&M0,K&M0,parseInt(Z.substr(7),16)/255];Z=parseInt(Z.substr(1),16),K=[Z>>16,Z>>8&M0,Z&M0]}else if(Z.substr(0,3)==="hsl"){if(K=M=Z.match(eZ),!$)z=+K[0]%360/360,L=+K[1]/100,N=+K[2]/100,W=N<=0.5?N*(L+1):N+L-N*L,Q=N*2-W,K.length>3&&(K[3]*=1),K[0]=iZ(z+0.3333333333333333,Q,W),K[1]=iZ(z,Q,W),K[2]=iZ(z-0.3333333333333333,Q,W);else if(~Z.indexOf("="))return K=Z.match(N$),J&&K.length<4&&(K[3]=1),K}else K=Z.match(eZ)||nJ.transparent;K=K.map(Number)}if($&&!M){if(Q=K[0]/M0,W=K[1]/M0,G=K[2]/M0,H=Math.max(Q,W,G),X=Math.min(Q,W,G),N=(H+X)/2,H===X)z=L=0;else F=H-X,L=N>0.5?F/(2-H-X):F/(H+X),z=H===Q?(W-G)/F+(WZ||V<0)&&(J+=V-$),K+=V,R=K-J,q=R-W,q>0||I)D=++H.frame,X=R-H.time*1000,H.time=R=R/1000,W+=q+(q>=Q?4:Q-q),Y=1;if(I||(z=L(O)),Y)for(F=0;F=V&&F--},_listeners:G},H}(),jJ=function(){return!J9&&E8.wake()},W0={},u6=/^[\d.\-M][\d.\-,\s]/,m6=/["']/g,d6=function(Z){var $={},J=Z.substr(1,Z.length-3).split(":"),K=J[0],Q=1,W=J.length,G,z,L;for(;Q1&&J.config?J.config.apply(null,~Z.indexOf("{")?[d6($[1])]:c6(Z).split(",").map(s7)):W0._CE&&u6.test(Z)?W0._CE("",Z):J},zK=function(Z){return function($){return 1-Z(1-$)}},LK=function U(Z,$){var J=Z._first,K;while(J){if(J instanceof i0)U(J,$);else if(J.vars.yoyoEase&&(!J._yoyo||!J._repeat)&&J._yoyo!==$)if(J.timeline)U(J.timeline,$);else K=J._ease,J._ease=J._yEase,J._yEase=K,J._yoyo=$;J=J._next}},s1=function(Z,$){return!Z?$:(S0(Z)?Z:W0[Z]||p6(Z))||$},a1=function(Z,$,J,K){if(J===void 0)J=function(z){return 1-$(1-z)};if(K===void 0)K=function(z){return z<0.5?$(z*2)/2:1-$((1-z)*2)/2};var Q={easeIn:$,easeOut:J,easeInOut:K},W;return z8(Z,function(G){W0[G]=k8[G]=Q,W0[W=G.toLowerCase()]=J;for(var z in Q)W0[W+(z==="easeIn"?".in":z==="easeOut"?".out":".inOut")]=W0[G+"."+z]=Q[z]}),Q},NK=function(Z){return function($){return $<0.5?(1-Z(1-$*2))/2:0.5+Z(($-0.5)*2)/2}},nZ=function U(Z,$,J){var K=$>=1?$:1,Q=(J||(Z?0.3:0.45))/($<1?$:1),W=Q/tZ*(Math.asin(1/K)||0),G=function(N){return N===1?1:K*Math.pow(2,-10*N)*E6((N-W)*Q)+1},z=Z==="out"?G:Z==="in"?function(L){return 1-G(1-L)}:NK(G);return Q=tZ/Q,z.config=function(L,N){return U(Z,L,N)},z},oZ=function U(Z,$){if($===void 0)$=1.70158;var J=function(W){return W?--W*W*(($+1)*W+$)+1:0},K=Z==="out"?J:Z==="in"?function(Q){return 1-J(1-Q)}:NK(J);return K.config=function(Q){return U(Z,Q)},K};z8("Linear,Quad,Cubic,Quart,Quint,Strong",function(U,Z){var $=Z<5?Z+1:Z;a1(U+",Power"+($-1),Z?function(J){return Math.pow(J,$)}:function(J){return J},function(J){return 1-Math.pow(1-J,$)},function(J){return J<0.5?Math.pow(J*2,$)/2:1-Math.pow((1-J)*2,$)/2})});W0.Linear.easeNone=W0.none=W0.Linear.easeIn;a1("Elastic",nZ("in"),nZ("out"),nZ());(function(U,Z){var $=1/Z,J=2*$,K=2.5*$,Q=function(G){return G<$?U*G*G:G0?J+(J+this._rDelay)*this._repeat:J):this.totalDuration()&&this._dur},Z.totalDuration=function(J){if(!arguments.length)return this._tDur;return this._dirty=0,VJ(this,this._repeat<0?J:(J-this._repeat*this._rDelay)/(this._repeat+1))},Z.totalTime=function(J,K){if(jJ(),!arguments.length)return this._tTime;var Q=this._dp;if(Q&&Q.smoothChildTiming&&this._ts){n9(this,J),!Q._dp||Q.parent||o7(Q,this);while(Q&&Q.parent){if(Q.parent._time!==Q._start+(Q._ts>=0?Q._tTime/Q._ts:(Q.totalDuration()-Q._tTime)/-Q._ts))Q.totalTime(Q._tTime,!0);Q=Q.parent}if(!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&J0||!this._tDur&&!J))W1(this._dp,this,this._start-this._delay)}if(this._tTime!==J||!this._dur&&!K||this._initted&&Math.abs(this._zTime)===O0||!J&&!this._initted&&(this.add||this._ptLookup))this._ts||(this._pTime=J),l7(this,J,K);return this},Z.time=function(J,K){return arguments.length?this.totalTime(Math.min(this.totalDuration(),J+f7(this))%(this._dur+this._rDelay)||(J?this._dur:0),K):this._time},Z.totalProgress=function(J,K){return arguments.length?this.totalTime(this.totalDuration()*J,K):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},Z.progress=function(J,K){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-J:J)+f7(this),K):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},Z.iteration=function(J,K){var Q=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(J-1)*Q,K):this._repeat?IJ(this._tTime,Q)+1:1},Z.timeScale=function(J,K){if(!arguments.length)return this._rts===-O0?0:this._rts;if(this._rts===J)return this;var Q=this.parent&&this._ts?c9(this.parent._time,this):this._tTime;return this._rts=+J||0,this._ts=this._ps||J===-O0?0:this._rts,this.totalTime(K9(-Math.abs(this._delay),this.totalDuration(),Q),K!==!1),i9(this),C6(this)},Z.paused=function(J){if(!arguments.length)return this._ps;if(this._ps!==J)if(this._ps=J,J)this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0;else jJ(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==O0&&(this._tTime-=O0));return this},Z.startTime=function(J){if(arguments.length){this._start=J;var K=this.parent||this._dp;return K&&(K._sort||!this.parent)&&W1(K,this,J-this._delay),this}return this._start},Z.endTime=function(J){return this._start+(D8(J)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},Z.rawTime=function(J){var K=this.parent||this._dp;return!K?this._tTime:J&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):!this._ts?this._tTime:c9(K.rawTime(J),this)},Z.revert=function(J){if(J===void 0)J=I6;var K=n0;if(n0=J,E$(this))this.timeline&&this.timeline.revert(J),this.totalTime(-0.01,J.suppressEvents);return this.data!=="nested"&&J.kill!==!1&&this.kill(),n0=K,this},Z.globalTime=function(J){var K=this,Q=arguments.length?J:K.rawTime();while(K)Q=K._start+Q/(Math.abs(K._ts)||1),K=K._dp;return!this.parent&&this._sat?this._sat.globalTime(J):Q},Z.repeat=function(J){if(arguments.length)return this._repeat=J===1/0?-2:J,h7(this);return this._repeat===-2?1/0:this._repeat},Z.repeatDelay=function(J){if(arguments.length){var K=this._time;return this._rDelay=J,h7(this),K?this.time(K):this}return this._rDelay},Z.yoyo=function(J){if(arguments.length)return this._yoyo=J,this;return this._yoyo},Z.seek=function(J,K){return this.totalTime(b8(this,J),D8(K))},Z.restart=function(J,K){return this.play().totalTime(J?-this._delay:0,D8(K)),this._dur||(this._zTime=-O0),this},Z.play=function(J,K){return J!=null&&this.seek(J,K),this.reversed(!1).paused(!1)},Z.reverse=function(J,K){return J!=null&&this.seek(J||this.totalDuration(),K),this.reversed(!0).paused(!1)},Z.pause=function(J,K){return J!=null&&this.seek(J,K),this.paused(!0)},Z.resume=function(){return this.paused(!1)},Z.reversed=function(J){if(arguments.length)return!!J!==this.reversed()&&this.timeScale(-this._rts||(J?-O0:0)),this;return this._rts<0},Z.invalidate=function(){return this._initted=this._act=0,this._zTime=-O0,this},Z.isActive=function(){var J=this.parent||this._dp,K=this._start,Q;return!!(!J||this._ts&&this._initted&&J.isActive()&&(Q=J.rawTime(!0))>=K&&Q1){if(!K)delete W[J];else W[J]=K,Q&&(W[J+"Params"]=Q),J==="onUpdate"&&(this._onUpdate=K);return this}return W[J]},Z.then=function(J){var K=this;return new Promise(function(Q){var W=S0(J)?J:i7,G=function(){var L=K.then;K.then=null,S0(W)&&(W=W(K))&&(W.then||W===K)&&(K.then=L),Q(W),K.then=L};if(K._initted&&K.totalProgress()===1&&K._ts>=0||!K._tTime&&K._ts<0)G();else K._prom=G})},Z.kill=function(){iJ(this)},U}();I8(Z9.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:-O0,_prom:0,_ps:!1,_rts:1});var i0=function(U){y7(Z,U);function Z(J,K){var Q;if(J===void 0)J={};return Q=U.call(this,J)||this,Q.labels={},Q.smoothChildTiming=!!J.smoothChildTiming,Q.autoRemoveChildren=!!J.autoRemoveChildren,Q._sort=D8(J.sortChildren),j0&&W1(J.parent||j0,X1(Q),K),J.reversed&&Q.reverse(),J.paused&&Q.paused(!0),J.scrollTrigger&&a7(X1(Q),J.scrollTrigger),Q}var $=Z.prototype;return $.to=function(K,Q,W){return aJ(0,arguments,this),this},$.from=function(K,Q,W){return aJ(1,arguments,this),this},$.fromTo=function(K,Q,W,G){return aJ(2,arguments,this),this},$.set=function(K,Q,W){return Q.duration=0,Q.parent=this,oJ(Q).repeatDelay||(Q.repeat=0),Q.immediateRender=!!Q.immediateRender,new T0(K,Q,b8(this,W),1),this},$.call=function(K,Q,W){return W1(this,T0.delayedCall(0,K,Q),W)},$.staggerTo=function(K,Q,W,G,z,L,N){return W.duration=Q,W.stagger=W.stagger||G,W.onComplete=L,W.onCompleteParams=N,W.parent=this,new T0(K,W,b8(this,z)),this},$.staggerFrom=function(K,Q,W,G,z,L,N){return W.runBackwards=1,oJ(W).immediateRender=D8(W.immediateRender),this.staggerTo(K,Q,W,G,z,L,N)},$.staggerFromTo=function(K,Q,W,G,z,L,N,H){return G.startAt=W,oJ(G).immediateRender=D8(G.immediateRender),this.staggerTo(K,Q,G,z,L,N,H)},$.render=function(K,Q,W){var G=this._time,z=this._dirty?this.totalDuration():this._tDur,L=this._dur,N=K<=0?0:h0(K),H=this._zTime<0!==K<0&&(this._initted||!L),X,F,M,O,E,V,I,q,Y,R,D,B;if(this!==j0&&N>z&&K>=0&&(N=z),N!==this._tTime||W||H){if(G!==this._time&&L)N+=this._time-G,K+=this._time-G;if(X=N,Y=this._start,q=this._ts,V=!q,H)L||(G=this._zTime),(K||!Q)&&(this._zTime=K);if(this._repeat){if(D=this._yoyo,E=L+this._rDelay,this._repeat<-1&&K<0)return this.totalTime(E*100+K,Q,W);if(X=h0(N%E),N===z)O=this._repeat,X=L;else{if(R=h0(N/E),O=~~R,O&&O===R)X=L,O--;X>L&&(X=L)}if(R=IJ(this._tTime,E),!G&&this._tTime&&R!==O&&this._tTime-R*E-this._dur<=0&&(R=O),D&&O&1)X=L-X,B=1;if(O!==R&&!this._lock){var C=D&&R&1,j=C===(D&&O&1);if(O=G&&K>=0){F=this._first;while(F){if(M=F._next,(F._act||X>=F._start)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,Q,W);if(F.render(F._ts>0?(X-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(X-F._start)*F._ts,Q,W),X!==this._time||!this._ts&&!V){I=0,M&&(N+=this._zTime=-O0);break}}F=M}}else{F=this._last;var S=K<0?K:X;while(F){if(M=F._prev,(F._act||S<=F._end)&&F._ts&&I!==F){if(F.parent!==this)return this.render(K,Q,W);if(F.render(F._ts>0?(S-F._start)*F._ts:(F._dirty?F.totalDuration():F._tDur)+(S-F._start)*F._ts,Q,W||n0&&E$(F)),X!==this._time||!this._ts&&!V){I=0,M&&(N+=this._zTime=S?-O0:O0);break}}F=M}}if(I&&!Q){if(this.pause(),I.render(X>=G?0:-O0)._zTime=X>=G?1:-1,this._ts)return this._start=Y,i9(this),this.render(K,Q,W)}if(this._onUpdate&&!Q&&S8(this,"onUpdate",!0),N===z&&this._tTime>=this.totalDuration()||!N&&G){if(Y===this._start||Math.abs(q)!==Math.abs(this._ts)){if(!this._lock){if((K||!L)&&(N===z&&this._ts>0||!N&&this._ts<0)&&w1(this,1),!Q&&!(K<0&&!G)&&(N||G||!z))S8(this,N===z&&K>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(N0)&&this._prom()}}}}return this},$.add=function(K,Q){var W=this;if(O1(Q)||(Q=b8(this,Q,K)),!(K instanceof Z9)){if(K8(K))return K.forEach(function(G){return W.add(G,Q)}),this;if(y0(K))return this.addLabel(K,Q);if(S0(K))K=T0.delayedCall(0,K);else return this}return this!==K?W1(this,K,Q):this},$.getChildren=function(K,Q,W,G){if(K===void 0)K=!0;if(Q===void 0)Q=!0;if(W===void 0)W=!0;if(G===void 0)G=-v8;var z=[],L=this._first;while(L){if(L._start>=G)if(L instanceof T0)Q&&z.push(L);else W&&z.push(L),K&&z.push.apply(z,L.getChildren(!0,Q,W));L=L._next}return z},$.getById=function(K){var Q=this.getChildren(1,1,1),W=Q.length;while(W--)if(Q[W].vars.id===K)return Q[W]},$.remove=function(K){if(y0(K))return this.removeLabel(K);if(S0(K))return this.killTweensOf(K);if(K.parent===this&&$9(this,K),K===this._recent)this._recent=this._last;return l1(this)},$.totalTime=function(K,Q){if(!arguments.length)return this._tTime;if(this._forcing=1,!this._dp&&this._ts)this._start=h0(E8.time-(this._ts>0?K/this._ts:(this.totalDuration()-K)/-this._ts));return U.prototype.totalTime.call(this,K,Q),this._forcing=0,this},$.addLabel=function(K,Q){return this.labels[K]=b8(this,Q),this},$.removeLabel=function(K){return delete this.labels[K],this},$.addPause=function(K,Q,W){var G=T0.delayedCall(0,Q||eJ,W);return G.data="isPause",this._hasPause=1,W1(this,G,b8(this,K))},$.removePause=function(K){var Q=this._first;K=b8(this,K);while(Q){if(Q._start===K&&Q.data==="isPause")w1(Q);Q=Q._next}},$.killTweensOf=function(K,Q,W){var G=this.getTweensOf(K,W),z=G.length;while(z--)A1!==G[z]&&G[z].kill(K,Q);return this},$.getTweensOf=function(K,Q){var W=[],G=y8(K),z=this._first,L=O1(Q),N;while(z){if(z instanceof T0){if(V6(z._targets,G)&&(L?(!A1||z._initted&&z._ts)&&z.globalTime(0)<=Q&&z.globalTime(z.totalDuration())>Q:!Q||z.isActive()))W.push(z)}else if((N=z.getTweensOf(G,Q)).length)W.push.apply(W,N);z=z._next}return W},$.tweenTo=function(K,Q){Q=Q||{};var W=this,G=b8(W,K),z=Q,L=z.startAt,N=z.onStart,H=z.onStartParams,X=z.immediateRender,F,M=T0.to(W,I8({ease:Q.ease||"none",lazy:!1,immediateRender:!1,time:G,overwrite:"auto",duration:Q.duration||Math.abs((G-(L&&"time"in L?L.time:W._time))/W.timeScale())||O0,onStart:function(){if(W.pause(),!F){var E=Q.duration||Math.abs((G-(L&&"time"in L?L.time:W._time))/W.timeScale());M._dur!==E&&VJ(M,E,0,1).render(M._time,!0,!0),F=1}N&&N.apply(M,H||[])}},Q));return X?M.render(0):M},$.tweenFromTo=function(K,Q,W){return this.tweenTo(Q,I8({startAt:{time:b8(this,K)}},W))},$.recent=function(){return this._recent},$.nextLabel=function(K){if(K===void 0)K=this._time;return x7(this,b8(this,K))},$.previousLabel=function(K){if(K===void 0)K=this._time;return x7(this,b8(this,K),1)},$.currentLabel=function(K){return arguments.length?this.seek(K,!0):this.previousLabel(this._time+O0)},$.shiftChildren=function(K,Q,W){if(W===void 0)W=0;var G=this._first,z=this.labels,L;while(G){if(G._start>=W)G._start+=K,G._end+=K;G=G._next}if(Q){for(L in z)if(z[L]>=W)z[L]+=K}return l1(this)},$.invalidate=function(K){var Q=this._first;this._lock=0;while(Q)Q.invalidate(K),Q=Q._next;return U.prototype.invalidate.call(this,K)},$.clear=function(K){if(K===void 0)K=!0;var Q=this._first,W;while(Q)W=Q._next,this.remove(Q),Q=W;return this._dp&&(this._time=this._tTime=this._pTime=0),K&&(this.labels={}),l1(this)},$.totalDuration=function(K){var Q=0,W=this,G=W._last,z=v8,L,N,H;if(arguments.length)return W.timeScale((W._repeat<0?W.duration():W.totalDuration())/(W.reversed()?-K:K));if(W._dirty){H=W.parent;while(G){if(L=G._prev,G._dirty&&G.totalDuration(),N=G._start,N>z&&W._sort&&G._ts&&!W._lock)W._lock=1,W1(W,G,N-G._delay,1)._lock=0;else z=N;if(N<0&&G._ts){if(Q-=N,!H&&!W._dp||H&&H.smoothChildTiming)W._start+=N/W._ts,W._time-=N,W._tTime-=N;W.shiftChildren(-N,!1,-1/0),z=0}G._end>Q&&G._ts&&(Q=G._end),G=L}VJ(W,W===j0&&W._time>Q?W._time:Q,1,1),W._dirty=0}return W._tDur},Z.updateRoot=function(K){if(j0._ts)l7(j0,c9(K,j0)),p7=E8.frame;if(E8.frame>=T7){T7+=R8.autoSleep||120;var Q=j0._first;if(!Q||!Q._ts){if(R8.autoSleep&&E8._listeners.length<2){while(Q&&!Q._ts)Q=Q._next;Q||E8.sleep()}}}},Z}(Z9);I8(i0.prototype,{_lock:0,_hasPause:0,_forcing:0});var l6=function(Z,$,J,K,Q,W,G){var z=new L8(this._pt,Z,$,0,1,C$,null,Q),L=0,N=0,H,X,F,M,O,E,V,I;if(z.b=J,z.e=K,J+="",K+="",V=~K.indexOf("random("))K=BJ(K);if(W)I=[J,K],W(I,Z,$),J=I[0],K=I[1];X=J.match(lZ)||[];while(H=lZ.exec(K)){if(M=H[0],O=K.substring(L,H.index),F)F=(F+1)%5;else if(O.substr(-5)==="rgba(")F=1;if(M!==X[N++])E=parseFloat(X[N-1])||0,z._pt={_next:z._pt,p:O||N===1?O:",",s:E,c:M.charAt(1)==="="?o1(E,M)-E:parseFloat(M)-E,m:F&&F<4?Math.round:0},L=lZ.lastIndex}if(z.c=L")}),Y.duration();else{D={};for(C in M)C==="ease"||C==="easeEach"||o6(C,M[C],D,M.easeEach);for(C in D){T=D[C].sort(function(x,b){return x.t-b.t}),P=0;for(R=0;Rz-O0&&!N?z:KL)X=L;if(V=this._yoyo&&M&1,V)Y=this._yEase,X=L-X;if(E=IJ(this._tTime,O),X===G&&!W&&this._initted&&M===E)return this._tTime=H,this;if(M!==E){if(q&&this._yEase&&LK(q,V),this.vars.repeatRefresh&&!V&&!this._lock&&X!==O&&this._initted)this._lock=W=1,this.render(h0(O*M),!0).invalidate()._lock=0}}if(!this._initted){if(r7(this,N?K:X,W,Q,H))return this._tTime=0,this;if(G!==this._time&&!(W&&this.vars.repeatRefresh&&M!==E))return this;if(L!==this._dur)return this.render(K,Q,W)}if(this._tTime=H,this._time=X,!this._act&&this._ts)this._act=1,this._lazy=0;if(this.ratio=I=(Y||this._ease)(X/L),this._from)this.ratio=I=1-I;if(!G&&H&&!Q&&!E){if(S8(this,"onStart"),this._tTime!==H)return this}F=this._pt;while(F)F.r(I,F.d),F=F._next;if(q&&q.render(K<0?K:q._dur*q._ease(X/this._dur),Q,W)||this._startAt&&(this._zTime=K),this._onUpdate&&!Q)N&&$$(this,K,Q,W),S8(this,"onUpdate");if(this._repeat&&M!==E&&this.vars.onRepeat&&!Q&&this.parent&&S8(this,"onRepeat"),(H===this._tDur||!H)&&this._tTime===H){if(N&&!this._onUpdate&&$$(this,K,!0,!0),(K||!L)&&(H===this._tDur&&this._ts>0||!H&&this._ts<0)&&w1(this,1),!Q&&!(N&&!G)&&(H||G||V))S8(this,H===z?"onComplete":"onReverseComplete",!0),this._prom&&!(H0)&&this._prom()}}return this},$.targets=function(){return this._targets},$.invalidate=function(K){return(!K||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(K),U.prototype.invalidate.call(this,K)},$.resetTo=function(K,Q,W,G,z){J9||E8.wake(),this._ts||this.play();var L=Math.min(this._dur,(this._dp._time-this._start)*this._ts),N;if(this._initted||j$(this,L),N=this._ease(L/this._dur),i6(this,K,Q,W,G,N,L,z))return this.resetTo(K,Q,W,G,1);return n9(this,0),this.parent||n7(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0)},$.kill=function(K,Q){if(Q===void 0)Q="all";if(!K&&(!Q||Q==="all"))return this._lazy=this._pt=0,this.parent?iJ(this):this.scrollTrigger&&this.scrollTrigger.kill(!!n0),this;if(this.timeline){var W=this.timeline.totalDuration();return this.timeline.killTweensOf(K,Q,A1&&A1.vars.overwrite!==!0)._first||iJ(this),this.parent&&W!==this.timeline.totalDuration()&&VJ(this,this._dur*this.timeline._tDur/W,0,1),this}var G=this._targets,z=K?y8(K):G,L=this._ptLookup,N=this._pt,H,X,F,M,O,E,V;if((!Q||Q==="all")&&B6(G,z))return Q==="all"&&(this._pt=0),iJ(this);if(H=this._op=this._op||[],Q!=="all"){if(y0(Q))O={},z8(Q,function(I){return O[I]=1}),Q=O;Q=n6(G,Q)}V=G.length;while(V--)if(~z.indexOf(G[V])){if(X=L[V],Q==="all")H[V]=Q,M=X,F={};else F=H[V]=H[V]||{},M=Q;for(O in M){if(E=X&&X[O],E){if(!("kill"in E.d)||E.d.kill(O)===!0)$9(this,E,"_pt");delete X[O]}if(F!=="all")F[O]=1}}return this._initted&&!this._pt&&N&&iJ(this),this},Z.to=function(K,Q){return new Z(K,Q,arguments[2])},Z.from=function(K,Q){return aJ(1,arguments)},Z.delayedCall=function(K,Q,W,G){return new Z(Q,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:K,onComplete:Q,onReverseComplete:Q,onCompleteParams:W,onReverseCompleteParams:W,callbackScope:G})},Z.fromTo=function(K,Q,W){return aJ(2,arguments)},Z.set=function(K,Q){return Q.duration=0,Q.repeatDelay||(Q.repeat=0),new Z(K,Q)},Z.killTweensOf=function(K,Q,W){return j0.killTweensOf(K,Q,W)},Z}(Z9);I8(T0.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});z8("staggerTo,staggerFrom,staggerFromTo",function(U){T0[U]=function(){var Z=new i0,$=Q$.call(arguments,0);return $.splice(U==="staggerFromTo"?5:4,0,0),Z[U].apply(Z,$)}});var B$=function(Z,$,J){return Z[$]=J},MK=function(Z,$,J){return Z[$](J)},a6=function(Z,$,J,K){return Z[$](K.fp,J)},r6=function(Z,$,J){return Z.setAttribute($,J)},o9=function(Z,$){return S0(Z[$])?MK:l9(Z[$])&&Z.setAttribute?r6:B$},OK=function(Z,$){return $.set($.t,$.p,Math.round(($.s+$.c*Z)*1e6)/1e6,$)},t6=function(Z,$){return $.set($.t,$.p,!!($.s+$.c*Z),$)},C$=function(Z,$){var J=$._pt,K="";if(!Z&&$.b)K=$.b;else if(Z===1&&$.e)K=$.e;else{while(J)K=J.p+(J.m?J.m(J.s+J.c*Z):Math.round((J.s+J.c*Z)*1e4)/1e4)+K,J=J._next;K+=$.c}$.set($.t,$.p,K,$)},S$=function(Z,$){var J=$._pt;while(J)J.r(Z,J.d),J=J._next},e6=function(Z,$,J,K){var Q=this._pt,W;while(Q)W=Q._next,Q.p===K&&Q.modifier(Z,$,J),Q=W},JW=function(Z){var $=this._pt,J,K;while($){if(K=$._next,$.p===Z&&!$.op||$.op===Z)$9(this,$,"_pt");else if(!$.dep)J=1;$=K}return!J},ZW=function(Z,$,J,K){K.mSet(Z,$,K.m.call(K.tween,J,K.mt),K)},k$=function(Z){var $=Z._pt,J,K,Q,W;while($){J=$._next,K=Q;while(K&&K.pr>$.pr)K=K._next;if($._prev=K?K._prev:W)$._prev._next=$;else Q=$;if($._next=K)K._prev=$;else W=$;$=J}Z._pt=Q},L8=function(){function U($,J,K,Q,W,G,z,L,N){if(this.t=J,this.s=Q,this.c=W,this.p=K,this.r=G||OK,this.d=z||this,this.set=L||B$,this.pr=N||0,this._next=$,$)$._prev=this}var Z=U.prototype;return Z.modifier=function(J,K,Q){this.mSet=this.mSet||this.set,this.set=ZW,this.m=J,this.mt=Q,this.tween=K},U}();z8(O$+"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(U){return M$[U]=1});k8.TweenMax=k8.TweenLite=T0;k8.TimelineLite=k8.TimelineMax=i0;j0=new i0({sortChildren:!1,defaults:DJ,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});R8.stringFilter=D$;var i1=[],g9={},$W=[],v7=0,KW=0,aZ=function(Z){return(g9[Z]||$W).map(function($){return $()})},U$=function(){var Z=Date.now(),$=[];if(Z-v7>2)aZ("matchMediaInit"),i1.forEach(function(J){var{queries:K,conditions:Q}=J,W,G,z,L;for(G in K)if(W=Q1.matchMedia(K[G]).matches,W&&(z=1),W!==Q[G])Q[G]=W,L=1;if(L)J.revert(),z&&$.push(J)}),aZ("matchMediaRevert"),$.forEach(function(J){return J.onMatch(J,function(K){return J.add(null,K)})}),v7=Z,aZ("matchMedia")},qK=function(){function U($,J){this.selector=J&&W$(J),this.data=[],this._r=[],this.isReverted=!1,this.id=KW++,$&&this.add($)}var Z=U.prototype;return Z.add=function(J,K,Q){if(S0(J))Q=K,K=J,J=S0;var W=this,G=function(){var L=I0,N=W.selector,H;return L&&L!==W&&L.data.push(W),Q&&(W.selector=W$(Q)),I0=W,H=K.apply(W,arguments),S0(H)&&W._r.push(H),I0=L,W.selector=N,W.isReverted=!1,H};return W.last=G,J===S0?G(W,function(z){return W.add(null,z)}):J?W[J]=G:G},Z.ignore=function(J){var K=I0;I0=null,J(this),I0=K},Z.getTweens=function(){var J=[];return this.data.forEach(function(K){return K instanceof U?J.push.apply(J,K.getTweens()):K instanceof T0&&!(K.parent&&K.parent.data==="nested")&&J.push(K)}),J},Z.clear=function(){this._r.length=this.data.length=0},Z.kill=function(J,K){var Q=this;if(J)(function(){var G=Q.getTweens(),z=Q.data.length,L;while(z--)if(L=Q.data[z],L.data==="isFlip")L.revert(),L.getChildren(!0,!0,!1).forEach(function(N){return G.splice(G.indexOf(N),1)});G.map(function(N){return{g:N._dur||N._delay||N._sat&&!N._sat.vars.immediateRender?N.globalTime(0):-1/0,t:N}}).sort(function(N,H){return H.g-N.g||-1/0}).forEach(function(N){return N.t.revert(J)}),z=Q.data.length;while(z--)if(L=Q.data[z],L instanceof i0){if(L.data!=="nested")L.scrollTrigger&&L.scrollTrigger.revert(),L.kill()}else!(L instanceof T0)&&L.revert&&L.revert(J);Q._r.forEach(function(N){return N(J,Q)}),Q.isReverted=!0})();else this.data.forEach(function(G){return G.kill&&G.kill()});if(this.clear(),K){var W=i1.length;while(W--)i1[W].id===this.id&&i1.splice(W,1)}},Z.revert=function(J){this.kill(J||{})},U}(),QW=function(){function U($){this.contexts=[],this.scope=$,I0&&I0.data.push(this)}var Z=U.prototype;return Z.add=function(J,K,Q){G1(J)||(J={matches:J});var W=new qK(0,Q||this.scope),G=W.conditions={},z,L,N;I0&&!W.selector&&(W.selector=I0.selector),this.contexts.push(W),K=W.add("onMatch",K),W.queries=J;for(L in J)if(L==="all")N=1;else if(z=Q1.matchMedia(J[L]),z)i1.indexOf(W)<0&&i1.push(W),(G[L]=z.matches)&&(N=1),z.addListener?z.addListener(U$):z.addEventListener("change",U$);return N&&K(W,function(H){return W.add(null,H)}),this},Z.revert=function(J){this.kill(J||{})},Z.kill=function(J){this.contexts.forEach(function(K){return K.kill(J,!0)})},U}(),p9={registerPlugin:function(){for(var Z=arguments.length,$=Array(Z),J=0;J1){var K=Z.map(function(N){return Q8.quickSetter(N,$,J)}),Q=K.length;return function(N){var H=Q;while(H--)K[H](N)}}Z=Z[0]||{};var W=Y8[$],G=T1(Z),z=G.harness&&(G.harness.aliases||{})[$]||$,L=W?function(N){var H=new W;EJ._pt=0,H.init(Z,J?N+J:N,EJ,0,[Z]),H.render(1,H),EJ._pt&&S$(1,EJ)}:G.set(Z,z);return W?L:function(N){return L(Z,z,J?N+J:N,G,1)}},quickTo:function(Z,$,J){var K,Q=Q8.to(Z,I8((K={},K[$]="+=0.1",K.paused=!0,K.stagger=0,K),J||{})),W=function(z,L,N){return Q.resetTo($,z,L,N)};return W.tween=Q,W},isTweening:function(Z){return j0.getTweensOf(Z,!0).length>0},defaults:function(Z){return Z&&Z.ease&&(Z.ease=s1(Z.ease,DJ.ease)),w7(DJ,Z||{})},config:function(Z){return w7(R8,Z||{})},registerEffect:function(Z){var{name:$,effect:J,plugins:K,defaults:Q,extendTimeline:W}=Z;if((K||"").split(",").forEach(function(G){return G&&!Y8[G]&&!k8[G]&&tJ($+" effect requires "+G+" plugin.")}),sZ[$]=function(G,z,L){return J(y8(G),I8(z||{},Q),L)},W)i0.prototype[$]=function(G,z,L){return this.add(sZ[$](G,G1(z)?z:(L=z)&&{},this),L)}},registerEase:function(Z,$){W0[Z]=s1($)},parseEase:function(Z,$){return arguments.length?s1(Z,$):W0},getById:function(Z){return j0.getById(Z)},exportRoot:function(Z,$){if(Z===void 0)Z={};var J=new i0(Z),K,Q;J.smoothChildTiming=D8(Z.smoothChildTiming),j0.remove(J),J._dp=0,J._time=J._tTime=j0._time,K=j0._first;while(K){if(Q=K._next,$||!(!K._dur&&K instanceof T0&&K.vars.onComplete===K._targets[0]))W1(J,K,K._start-K._delay);K=Q}return W1(j0,J,0),J},context:function(Z,$){return Z?new qK(Z,$):I0},matchMedia:function(Z){return new QW(Z)},matchMediaRefresh:function(){return i1.forEach(function(Z){var $=Z.conditions,J,K;for(K in $)if($[K])$[K]=!1,J=1;J&&Z.revert()})||U$()},addEventListener:function(Z,$){var J=g9[Z]||(g9[Z]=[]);~J.indexOf($)||J.push($)},removeEventListener:function(Z,$){var J=g9[Z],K=J&&J.indexOf($);K>=0&&J.splice(K,1)},utils:{wrap:v6,wrapYoyo:y6,distribute:JK,random:$K,snap:ZK,normalize:b6,getUnit:o0,clamp:w6,splitColor:HK,toArray:y8,selector:W$,mapRange:QK,pipe:h6,unitize:x6,interpolate:_6,shuffle:e7},install:d7,effects:sZ,ticker:E8,updateRoot:i0.updateRoot,plugins:Y8,globalTimeline:j0,core:{PropTween:L8,globals:c7,Tween:T0,Timeline:i0,Animation:Z9,getCache:T1,_removeLinkedListItem:$9,reverting:function(){return n0},context:function(Z){if(Z&&I0)I0.data.push(Z),Z._ctx=I0;return I0},suppressOverwrites:function(Z){return z$=Z}}};z8("to,from,fromTo,delayedCall,set,killTweensOf",function(U){return p9[U]=T0[U]});E8.add(i0.updateRoot);EJ=p9.to({},{duration:0});var WW=function(Z,$){var J=Z._pt;while(J&&J.p!==$&&J.op!==$&&J.fp!==$)J=J._next;return J},GW=function(Z,$){var J=Z._targets,K,Q,W;for(K in $){Q=J.length;while(Q--)if(W=Z._ptLookup[Q][K],W&&(W=W.d)){if(W._pt)W=WW(W,K);W&&W.modifier&&W.modifier($[K],Z,J[Q],K)}}},rZ=function(Z,$){return{name:Z,headless:1,rawVars:1,init:function(K,Q,W){W._onInit=function(G){var z,L;if(y0(Q))z={},z8(Q,function(N){return z[N]=1}),Q=z;if($){z={};for(L in Q)z[L]=$(Q[L]);Q=z}GW(G,Q)}}}},Q8=p9.registerPlugin({name:"attr",init:function(Z,$,J,K,Q){var W,G,z;this.tween=J;for(W in $)z=Z.getAttribute(W)||"",G=this.add(Z,"setAttribute",(z||0)+"",$[W],K,Q,0,0,W),G.op=W,G.b=z,this._props.push(W)},render:function(Z,$){var J=$._pt;while(J)n0?J.set(J.t,J.p,J.b,J):J.r(Z,J.d),J=J._next}},{name:"endArray",headless:1,init:function(Z,$){var J=$.length;while(J--)this.add(Z,J,Z[J]||0,$[J],0,0,0,0,0,1)}},rZ("roundProps",G$),rZ("modifiers"),rZ("snap",ZK))||p9;T0.version=i0.version=Q8.version="3.13.0";m7=1;L$()&&jJ();var{Power0:HW,Power1:UW,Power2:zW,Power3:LW,Power4:NW,Linear:FW,Quad:XW,Cubic:MW,Quart:OW,Quint:qW,Strong:YW,Elastic:EW,Back:DW,SteppedEase:RW,Bounce:IW,Sine:VW,Expo:jW,Circ:BW}=W0;/*! * CSSPlugin 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var YK,h1,SJ,h$,JJ,CW,EK,x$,SW=function(){return typeof window<"u"},Y1={},e1=180/Math.PI,kJ=Math.PI/180,CJ=Math.atan2,DK=1e8,b$=/([A-Z])/g,kW=/(left|right|width|margin|padding|x)/i,AW=/[\s,\(]\S/,H1={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},P$=function(Z,$){return $.set($.t,$.p,Math.round(($.s+$.c*Z)*1e4)/1e4+$.u,$)},PW=function(Z,$){return $.set($.t,$.p,Z===1?$.e:Math.round(($.s+$.c*Z)*1e4)/1e4+$.u,$)},TW=function(Z,$){return $.set($.t,$.p,Z?Math.round(($.s+$.c*Z)*1e4)/1e4+$.u:$.b,$)},wW=function(Z,$){var J=$.s+$.c*Z;$.set($.t,$.p,~~(J+(J<0?-0.5:0.5))+$.u,$)},kK=function(Z,$){return $.set($.t,$.p,Z?$.e:$.b,$)},AK=function(Z,$){return $.set($.t,$.p,Z!==1?$.b:$.e,$)},fW=function(Z,$,J){return Z.style[$]=J},hW=function(Z,$,J){return Z.style.setProperty($,J)},xW=function(Z,$,J){return Z._gsap[$]=J},bW=function(Z,$,J){return Z._gsap.scaleX=Z._gsap.scaleY=J},vW=function(Z,$,J,K,Q){var W=Z._gsap;W.scaleX=W.scaleY=J,W.renderTransform(Q,W)},yW=function(Z,$,J,K,Q){var W=Z._gsap;W[$]=J,W.renderTransform(Q,W)},B0="transform",V8=B0+"Origin",_W=function U(Z,$){var J=this,K=this.target,Q=K.style,W=K._gsap;if(Z in Y1&&Q){if(this.tfm=this.tfm||{},Z!=="transform")Z=H1[Z]||Z,~Z.indexOf(",")?Z.split(",").forEach(function(G){return J.tfm[G]=q1(K,G)}):this.tfm[Z]=W.x?W[Z]:q1(K,Z),Z===V8&&(this.tfm.zOrigin=W.zOrigin);else return H1.transform.split(",").forEach(function(G){return U.call(J,G,$)});if(this.props.indexOf(B0)>=0)return;if(W.svg)this.svgo=K.getAttribute("data-svg-origin"),this.props.push(V8,$,"");Z=B0}(Q||$)&&this.props.push(Z,$,Q[Z])},PK=function(Z){if(Z.translate)Z.removeProperty("translate"),Z.removeProperty("scale"),Z.removeProperty("rotate")},gW=function(){var Z=this.props,$=this.target,J=$.style,K=$._gsap,Q,W;for(Q=0;Q=0?RK[W]:"")+Z},w$=function(){if(SW()&&window.document)YK=window,h1=YK.document,SJ=h1.documentElement,JJ=T$("div")||{style:{}},CW=T$("div"),B0=AJ(B0),V8=B0+"Origin",JJ.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",wK=!!AJ("perspective"),x$=Q8.core.reverting,h$=1},IK=function(Z){var $=Z.ownerSVGElement,J=T$("svg",$&&$.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),K=Z.cloneNode(!0),Q;K.style.display="block",J.appendChild(K),SJ.appendChild(J);try{Q=K.getBBox()}catch(W){}return J.removeChild(K),SJ.removeChild(J),Q},VK=function(Z,$){var J=$.length;while(J--)if(Z.hasAttribute($[J]))return Z.getAttribute($[J])},fK=function(Z){var $,J;try{$=Z.getBBox()}catch(K){$=IK(Z),J=1}return $&&($.width||$.height)||J||($=IK(Z)),$&&!$.width&&!$.x&&!$.y?{x:+VK(Z,["x","cx","x1"])||0,y:+VK(Z,["y","cy","y1"])||0,width:0,height:0}:$},hK=function(Z){return!!(Z.getCTM&&(!Z.parentNode||Z.ownerSVGElement)&&fK(Z))},ZJ=function(Z,$){if($){var J=Z.style,K;if($ in Y1&&$!==V8)$=B0;if(J.removeProperty){if(K=$.substr(0,2),K==="ms"||$.substr(0,6)==="webkit")$="-"+$;J.removeProperty(K==="--"?$:$.replace(b$,"-$1").toLowerCase())}else J.removeAttribute($)}},x1=function(Z,$,J,K,Q,W){var G=new L8(Z._pt,$,J,0,1,W?AK:kK);return Z._pt=G,G.b=K,G.e=Q,Z._props.push(J),G},jK={deg:1,rad:1,turn:1},uW={grid:1,flex:1},b1=function U(Z,$,J,K){var Q=parseFloat(J)||0,W=(J+"").trim().substr((Q+"").length)||"px",G=JJ.style,z=kW.test($),L=Z.tagName.toLowerCase()==="svg",N=(L?"client":"offset")+(z?"Width":"Height"),H=100,X=K==="px",F=K==="%",M,O,E,V;if(K===W||!Q||jK[K]||jK[W])return Q;if(W!=="px"&&!X&&(Q=U(Z,$,J,"px")),V=Z.getCTM&&hK(Z),(F||W==="%")&&(Y1[$]||~$.indexOf("adius")))return M=V?Z.getBBox()[z?"width":"height"]:Z[N],k0(F?Q/M*H:Q/100*M);if(G[z?"width":"height"]=H+(X?W:K),O=K!=="rem"&&~$.indexOf("adius")||K==="em"&&Z.appendChild&&!L?Z:Z.parentNode,V)O=(Z.ownerSVGElement||{}).parentNode;if(!O||O===h1||!O.appendChild)O=h1.body;if(E=O._gsap,E&&F&&E.width&&z&&E.time===E8.time&&!E.uncache)return k0(Q/E.width*H);else{if(F&&($==="height"||$==="width")){var I=Z.style[$];Z.style[$]=H+K,M=Z[N],I?Z.style[$]=I:ZJ(Z,$)}else(F||W==="%")&&!uW[_8(O,"display")]&&(G.position=_8(Z,"position")),O===Z&&(G.position="static"),O.appendChild(JJ),M=JJ[N],O.removeChild(JJ),G.position="absolute";if(z&&F)E=T1(O),E.time=E8.time,E.width=O[N]}return k0(X?M*Q/H:M&&Q?H/M*Q:0)},q1=function(Z,$,J,K){var Q;if(h$||w$(),$ in H1&&$!=="transform"){if($=H1[$],~$.indexOf(","))$=$.split(",")[0]}if(Y1[$]&&$!=="transform")Q=G9(Z,K),Q=$!=="transformOrigin"?Q[$]:Q.svg?Q.origin:r9(_8(Z,V8))+" "+Q.zOrigin+"px";else if(Q=Z.style[$],!Q||Q==="auto"||K||~(Q+"").indexOf("calc("))Q=a9[$]&&a9[$](Z,$,J)||_8(Z,$)||Y$(Z,$)||($==="opacity"?1:0);return J&&!~(Q+"").trim().indexOf(" ")?b1(Z,$,Q,J)+J:Q},mW=function(Z,$,J,K){if(!J||J==="none"){var Q=AJ($,Z,1),W=Q&&_8(Z,Q,1);if(W&&W!==J)$=Q,J=W;else if($==="borderColor")J=_8(Z,"borderTopColor")}var G=new L8(this._pt,Z.style,$,0,1,C$),z=0,L=0,N,H,X,F,M,O,E,V,I,q,Y,R;if(G.b=J,G.e=K,J+="",K+="",K.substring(0,6)==="var(--")K=_8(Z,K.substring(4,K.indexOf(")")));if(K==="auto")O=Z.style[$],Z.style[$]=K,K=_8(Z,$)||K,O?Z.style[$]=O:ZJ(Z,$);if(N=[J,K],D$(N),J=N[0],K=N[1],X=J.match(n1)||[],R=K.match(n1)||[],R.length){while(H=n1.exec(K)){if(E=H[0],I=K.substring(z,H.index),M)M=(M+1)%5;else if(I.substr(-5)==="rgba("||I.substr(-5)==="hsla(")M=1;if(E!==(O=X[L++]||"")){if(F=parseFloat(O)||0,Y=O.substr((F+"").length),E.charAt(1)==="="&&(E=o1(F,E)+Y),V=parseFloat(E),q=E.substr((V+"").length),z=n1.lastIndex-q.length,!q){if(q=q||R8.units[$]||Y,z===K.length)K+=q,G.e+=q}if(Y!==q)F=b1(Z,$,O,q)||0;G._pt={_next:G._pt,p:I||L===1?I:",",s:F,c:V-F,m:M&&M<4||$==="zIndex"?Math.round:0}}}G.c=z-1){if(G=Q[L],Y1[G])z=1,G=G==="transformOrigin"?V8:B0;ZJ(J,G)}}if(z){if(ZJ(J,B0),W)W.svg&&J.removeAttribute("transform"),K.scale=K.rotate=K.translate="none",G9(J,1),W.uncache=1,PK(K)}}},a9={clearProps:function(Z,$,J,K,Q){if(Q.data!=="isFromStart"){var W=Z._pt=new L8(Z._pt,$,J,0,0,cW);return W.u=K,W.pr=-10,W.tween=Q,Z._props.push(J),1}}},W9=[1,0,0,1,0,0],xK={},bK=function(Z){return Z==="matrix(1, 0, 0, 1, 0, 0)"||Z==="none"||!Z},CK=function(Z){var $=_8(Z,B0);return bK($)?W9:$.substr(7).match(N$).map(k0)},v$=function(Z,$){var J=Z._gsap||T1(Z),K=Z.style,Q=CK(Z),W,G,z,L;if(J.svg&&Z.getAttribute("transform"))return z=Z.transform.baseVal.consolidate().matrix,Q=[z.a,z.b,z.c,z.d,z.e,z.f],Q.join(",")==="1,0,0,1,0,0"?W9:Q;else if(Q===W9&&!Z.offsetParent&&Z!==SJ&&!J.svg){if(z=K.display,K.display="block",W=Z.parentNode,!W||!Z.offsetParent&&!Z.getBoundingClientRect().width)L=1,G=Z.nextElementSibling,SJ.appendChild(Z);if(Q=CK(Z),z?K.display=z:ZJ(Z,"display"),L)G?W.insertBefore(Z,G):W?W.appendChild(Z):SJ.removeChild(Z)}return $&&Q.length>6?[Q[0],Q[1],Q[4],Q[5],Q[12],Q[13]]:Q},f$=function(Z,$,J,K,Q,W){var G=Z._gsap,z=Q||v$(Z,!0),L=G.xOrigin||0,N=G.yOrigin||0,H=G.xOffset||0,X=G.yOffset||0,F=z[0],M=z[1],O=z[2],E=z[3],V=z[4],I=z[5],q=$.split(" "),Y=parseFloat(q[0])||0,R=parseFloat(q[1])||0,D,B,C,j;if(!J)D=fK(Z),Y=D.x+(~q[0].indexOf("%")?Y/100*D.width:Y),R=D.y+(~(q[1]||q[0]).indexOf("%")?R/100*D.height:R);else if(z!==W9&&(B=F*E-M*O))C=Y*(E/B)+R*(-O/B)+(O*I-E*V)/B,j=Y*(-M/B)+R*(F/B)-(F*I-M*V)/B,Y=C,R=j;if(K||K!==!1&&G.smooth)V=Y-L,I=R-N,G.xOffset=H+(V*F+I*O)-V,G.yOffset=X+(V*M+I*E)-I;else G.xOffset=G.yOffset=0;if(G.xOrigin=Y,G.yOrigin=R,G.smooth=!!K,G.origin=$,G.originIsAbsolute=!!J,Z.style[V8]="0px 0px",W)x1(W,G,"xOrigin",L,Y),x1(W,G,"yOrigin",N,R),x1(W,G,"xOffset",H,G.xOffset),x1(W,G,"yOffset",X,G.yOffset);Z.setAttribute("data-svg-origin",Y+" "+R)},G9=function(Z,$){var J=Z._gsap||new R$(Z);if("x"in J&&!$&&!J.uncache)return J;var K=Z.style,Q=J.scaleX<0,W="px",G="deg",z=getComputedStyle(Z),L=_8(Z,V8)||"0",N,H,X,F,M,O,E,V,I,q,Y,R,D,B,C,j,S,k,P,T,h,f,x,b,y,g,A,d,t,n,u,G0;if(N=H=X=O=E=V=I=q=Y=0,F=M=1,J.svg=!!(Z.getCTM&&hK(Z)),z.translate){if(z.translate!=="none"||z.scale!=="none"||z.rotate!=="none")K[B0]=(z.translate!=="none"?"translate3d("+(z.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(z.rotate!=="none"?"rotate("+z.rotate+") ":"")+(z.scale!=="none"?"scale("+z.scale.split(" ").join(",")+") ":"")+(z[B0]!=="none"?z[B0]:"");K.scale=K.rotate=K.translate="none"}if(B=v$(Z,J.svg),J.svg){if(J.uncache)y=Z.getBBox(),L=J.xOrigin-y.x+"px "+(J.yOrigin-y.y)+"px",b="";else b=!$&&Z.getAttribute("data-svg-origin");f$(Z,b||L,!!b||J.originIsAbsolute,J.smooth!==!1,B)}if(R=J.xOrigin||0,D=J.yOrigin||0,B!==W9){if(k=B[0],P=B[1],T=B[2],h=B[3],N=f=B[4],H=x=B[5],B.length===6){if(F=Math.sqrt(k*k+P*P),M=Math.sqrt(h*h+T*T),O=k||P?CJ(P,k)*e1:0,I=T||h?CJ(T,h)*e1+O:0,I&&(M*=Math.abs(Math.cos(I*kJ))),J.svg)N-=R-(R*k+D*T),H-=D-(R*P+D*h)}else{if(G0=B[6],n=B[7],A=B[8],d=B[9],t=B[10],u=B[11],N=B[12],H=B[13],X=B[14],C=CJ(G0,t),E=C*e1,C)j=Math.cos(-C),S=Math.sin(-C),b=f*j+A*S,y=x*j+d*S,g=G0*j+t*S,A=f*-S+A*j,d=x*-S+d*j,t=G0*-S+t*j,u=n*-S+u*j,f=b,x=y,G0=g;if(C=CJ(-T,t),V=C*e1,C)j=Math.cos(-C),S=Math.sin(-C),b=k*j-A*S,y=P*j-d*S,g=T*j-t*S,u=h*S+u*j,k=b,P=y,T=g;if(C=CJ(P,k),O=C*e1,C)j=Math.cos(C),S=Math.sin(C),b=k*j+P*S,y=f*j+x*S,P=P*j-k*S,x=x*j-f*S,k=b,f=y;if(E&&Math.abs(E)+Math.abs(O)>359.9)E=O=0,V=180-V;F=k0(Math.sqrt(k*k+P*P+T*T)),M=k0(Math.sqrt(x*x+G0*G0)),C=CJ(f,x),I=Math.abs(C)>0.0002?C*e1:0,Y=u?1/(u<0?-u:u):0}if(J.svg)b=Z.getAttribute("transform"),J.forceCSS=Z.setAttribute("transform","")||!bK(_8(Z,B0)),b&&Z.setAttribute("transform",b)}if(Math.abs(I)>90&&Math.abs(I)<270)if(Q)F*=-1,I+=O<=0?180:-180,O+=O<=0?180:-180;else M*=-1,I+=I<=0?180:-180;if($=$||J.uncache,J.x=N-((J.xPercent=N&&(!$&&J.xPercent||(Math.round(Z.offsetWidth/2)===Math.round(-N)?-50:0)))?Z.offsetWidth*J.xPercent/100:0)+W,J.y=H-((J.yPercent=H&&(!$&&J.yPercent||(Math.round(Z.offsetHeight/2)===Math.round(-H)?-50:0)))?Z.offsetHeight*J.yPercent/100:0)+W,J.z=X+W,J.scaleX=k0(F),J.scaleY=k0(M),J.rotation=k0(O)+G,J.rotationX=k0(E)+G,J.rotationY=k0(V)+G,J.skewX=I+G,J.skewY=q+G,J.transformPerspective=Y+W,J.zOrigin=parseFloat(L.split(" ")[2])||!$&&J.zOrigin||0)K[V8]=r9(L);return J.xOffset=J.yOffset=0,J.force3D=R8.force3D,J.renderTransform=J.svg?lW:wK?vK:pW,J.uncache=0,J},r9=function(Z){return(Z=Z.split(" "))[0]+" "+Z[1]},A$=function(Z,$,J){var K=o0($);return k0(parseFloat($)+parseFloat(b1(Z,"x",J+"px",K)))+K},pW=function(Z,$){$.z="0px",$.rotationY=$.rotationX="0deg",$.force3D=0,vK(Z,$)},r1="0deg",Q9="0px",t1=") ",vK=function(Z,$){var J=$||this,K=J.xPercent,Q=J.yPercent,W=J.x,G=J.y,z=J.z,L=J.rotation,N=J.rotationY,H=J.rotationX,X=J.skewX,F=J.skewY,M=J.scaleX,O=J.scaleY,E=J.transformPerspective,V=J.force3D,I=J.target,q=J.zOrigin,Y="",R=V==="auto"&&Z&&Z!==1||V===!0;if(q&&(H!==r1||N!==r1)){var D=parseFloat(N)*kJ,B=Math.sin(D),C=Math.cos(D),j;D=parseFloat(H)*kJ,j=Math.cos(D),W=A$(I,W,B*j*-q),G=A$(I,G,-Math.sin(D)*-q),z=A$(I,z,C*j*-q+q)}if(E!==Q9)Y+="perspective("+E+t1;if(K||Q)Y+="translate("+K+"%, "+Q+"%) ";if(R||W!==Q9||G!==Q9||z!==Q9)Y+=z!==Q9||R?"translate3d("+W+", "+G+", "+z+") ":"translate("+W+", "+G+t1;if(L!==r1)Y+="rotate("+L+t1;if(N!==r1)Y+="rotateY("+N+t1;if(H!==r1)Y+="rotateX("+H+t1;if(X!==r1||F!==r1)Y+="skew("+X+", "+F+t1;if(M!==1||O!==1)Y+="scale("+M+", "+O+t1;I.style[B0]=Y||"translate(0, 0)"},lW=function(Z,$){var J=$||this,K=J.xPercent,Q=J.yPercent,W=J.x,G=J.y,z=J.rotation,L=J.skewX,N=J.skewY,H=J.scaleX,X=J.scaleY,F=J.target,M=J.xOrigin,O=J.yOrigin,E=J.xOffset,V=J.yOffset,I=J.forceCSS,q=parseFloat(W),Y=parseFloat(G),R,D,B,C,j;if(z=parseFloat(z),L=parseFloat(L),N=parseFloat(N),N)N=parseFloat(N),L+=N,z+=N;if(z||L){if(z*=kJ,L*=kJ,R=Math.cos(z)*H,D=Math.sin(z)*H,B=Math.sin(z-L)*-X,C=Math.cos(z-L)*X,L){if(N*=kJ,j=Math.tan(L-N),j=Math.sqrt(1+j*j),B*=j,C*=j,N)j=Math.tan(N),j=Math.sqrt(1+j*j),R*=j,D*=j}R=k0(R),D=k0(D),B=k0(B),C=k0(C)}else R=H,C=X,D=B=0;if(q&&!~(W+"").indexOf("px")||Y&&!~(G+"").indexOf("px"))q=b1(F,"x",W,"px"),Y=b1(F,"y",G,"px");if(M||O||E||V)q=k0(q+M-(M*R+O*B)+E),Y=k0(Y+O-(M*D+O*C)+V);if(K||Q)j=F.getBBox(),q=k0(q+K/100*j.width),Y=k0(Y+Q/100*j.height);j="matrix("+R+","+D+","+B+","+C+","+q+","+Y+")",F.setAttribute("transform",j),I&&(F.style[B0]=j)},sW=function(Z,$,J,K,Q){var W=360,G=y0(Q),z=parseFloat(Q)*(G&&~Q.indexOf("rad")?e1:1),L=z-K,N=K+L+"deg",H,X;if(G){if(H=Q.split("_")[1],H==="short"){if(L%=W,L!==L%(W/2))L+=L<0?W:-W}if(H==="cw"&&L<0)L=(L+W*DK)%W-~~(L/W)*W;else if(H==="ccw"&&L>0)L=(L-W*DK)%W-~~(L/W)*W}return Z._pt=X=new L8(Z._pt,$,J,K,L,PW),X.e=N,X.u="deg",Z._props.push(J),X},SK=function(Z,$){for(var J in $)Z[J]=$[J];return Z},iW=function(Z,$,J){var K=SK({},J._gsap),Q="perspective,force3D,transformOrigin,svgOrigin",W=J.style,G,z,L,N,H,X,F,M;if(K.svg)L=J.getAttribute("transform"),J.setAttribute("transform",""),W[B0]=$,G=G9(J,1),ZJ(J,B0),J.setAttribute("transform",L);else L=getComputedStyle(J)[B0],W[B0]=$,G=G9(J,1),W[B0]=L;for(z in Y1)if(L=K[z],N=G[z],L!==N&&Q.indexOf(z)<0)F=o0(L),M=o0(N),H=F!==M?b1(J,z,L,M):parseFloat(L),X=parseFloat(N),Z._pt=new L8(Z._pt,G,z,H,X-H,P$),Z._pt.u=M||0,Z._props.push(z);SK(G,K)};z8("padding,margin,Width,Radius",function(U,Z){var $="Top",J="Right",K="Bottom",Q="Left",W=(Z<3?[$,J,K,Q]:[$+Q,$+J,K+J,K+Q]).map(function(G){return Z<2?U+G:"border"+G+U});a9[Z>1?"border"+U:U]=function(G,z,L,N,H){var X,F;if(arguments.length<4)return X=W.map(function(M){return q1(G,M,L)}),F=X.join(" "),F.split(X[0]).length===5?X[0]:F;X=(N+"").split(" "),F={},W.forEach(function(M,O){return F[M]=X[O]=X[O]||X[(O-1)/2|0]}),G.init(z,F,H)}});var y$={name:"css",register:w$,targetTest:function(Z){return Z.style&&Z.nodeType},init:function(Z,$,J,K,Q){var W=this._props,G=Z.style,z=J.vars.startAt,L,N,H,X,F,M,O,E,V,I,q,Y,R,D,B,C;h$||w$(),this.styles=this.styles||TK(Z),C=this.styles.props,this.tween=J;for(O in $){if(O==="autoRound")continue;if(N=$[O],Y8[O]&&V$(O,$,J,K,Z,Q))continue;if(F=typeof N,M=a9[O],F==="function")N=N.call(J,K,Z,Q),F=typeof N;if(F==="string"&&~N.indexOf("random("))N=BJ(N);if(M)M(this,Z,O,N,J)&&(B=1);else if(O.substr(0,2)==="--"){if(L=(getComputedStyle(Z).getPropertyValue(O)+"").trim(),N+="",M1.lastIndex=0,!M1.test(L))E=o0(L),V=o0(N);V?E!==V&&(L=b1(Z,O,L,V)+V):E&&(N+=E),this.add(G,"setProperty",L,N,K,Q,0,0,O),W.push(O),C.push(O,0,G[O])}else if(F!=="undefined"){if(z&&O in z)L=typeof z[O]==="function"?z[O].call(J,K,Z,Q):z[O],y0(L)&&~L.indexOf("random(")&&(L=BJ(L)),o0(L+"")||L==="auto"||(L+=R8.units[O]||o0(q1(Z,O))||""),(L+"").charAt(1)==="="&&(L=q1(Z,O));else L=q1(Z,O);if(X=parseFloat(L),I=F==="string"&&N.charAt(1)==="="&&N.substr(0,2),I&&(N=N.substr(2)),H=parseFloat(N),O in H1){if(O==="autoAlpha"){if(X===1&&q1(Z,"visibility")==="hidden"&&H)X=0;C.push("visibility",0,G.visibility),x1(this,G,"visibility",X?"inherit":"hidden",H?"inherit":"hidden",!H)}if(O!=="scale"&&O!=="transform")O=H1[O],~O.indexOf(",")&&(O=O.split(",")[0])}if(q=O in Y1,q){if(this.styles.save(O),F==="string"&&N.substring(0,6)==="var(--")N=_8(Z,N.substring(4,N.indexOf(")"))),H=parseFloat(N);if(!Y)R=Z._gsap,R.renderTransform&&!$.parseTransform||G9(Z,$.parseTransform),D=$.smoothOrigin!==!1&&R.smooth,Y=this._pt=new L8(this._pt,G,B0,0,1,R.renderTransform,R,0,-1),Y.dep=1;if(O==="scale")this._pt=new L8(this._pt,R,"scaleY",R.scaleY,(I?o1(R.scaleY,I+H):H)-R.scaleY||0,P$),this._pt.u=0,W.push("scaleY",O),O+="X";else if(O==="transformOrigin"){if(C.push(V8,0,G[V8]),N=dW(N),R.svg)f$(Z,N,0,D,0,this);else V=parseFloat(N.split(" ")[2])||0,V!==R.zOrigin&&x1(this,R,"zOrigin",R.zOrigin,V),x1(this,G,O,r9(L),r9(N));continue}else if(O==="svgOrigin"){f$(Z,N,1,D,0,this);continue}else if(O in xK){sW(this,R,O,X,I?o1(X,I+N):N);continue}else if(O==="smoothOrigin"){x1(this,R,"smooth",R.smooth,N);continue}else if(O==="force3D"){R[O]=N;continue}else if(O==="transform"){iW(this,N,Z);continue}}else if(!(O in G))O=AJ(O)||O;if(q||(H||H===0)&&(X||X===0)&&!AW.test(N)&&O in G){if(E=(L+"").substr((X+"").length),H||(H=0),V=o0(N)||(O in R8.units?R8.units[O]:E),E!==V&&(X=b1(Z,O,L,V)),this._pt=new L8(this._pt,q?R:G,O,X,(I?o1(X,I+H):H)-X,!q&&(V==="px"||O==="zIndex")&&$.autoRound!==!1?wW:P$),this._pt.u=V||0,E!==V&&V!=="%")this._pt.b=L,this._pt.r=TW}else if(!(O in G)){if(O in Z)this.add(Z,O,L||Z[O],I?I+N:N,K,Q);else if(O!=="parseTransform"){s9(O,N);continue}}else mW.call(this,Z,O,L,I?I+N:N);q||(O in G?C.push(O,0,G[O]):typeof Z[O]==="function"?C.push(O,2,Z[O]()):C.push(O,1,L||Z[O])),W.push(O)}}B&&k$(this)},render:function(Z,$){if($.tween._time||!x$()){var J=$._pt;while(J)J.r(Z,J.d),J=J._next}else $.styles.revert()},get:q1,aliases:H1,getSetter:function(Z,$,J){var K=H1[$];return K&&K.indexOf(",")<0&&($=K),$ in Y1&&$!==V8&&(Z._gsap.x||q1(Z,"x"))?J&&EK===J?$==="scale"?bW:xW:(EK=J||{})&&($==="scale"?vW:yW):Z.style&&!l9(Z.style[$])?fW:~$.indexOf("-")?hW:o9(Z,$)},core:{_removeProperty:ZJ,_getMatrix:v$}};Q8.utils.checkPrefix=AJ;Q8.core.getStyleSaver=TK;(function(U,Z,$,J){var K=z8(U+","+Z+","+$,function(Q){Y1[Q]=1});z8(Z,function(Q){R8.units[Q]="deg",xK[Q]=1}),H1[K[13]]=U+","+Z,z8(J,function(Q){var W=Q.split(":");H1[W[1]]=K[W[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");z8("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(U){R8.units[U]="px"});Q8.registerPlugin(y$);var o=Q8.registerPlugin(y$)||Q8,IH=o.core.Tween;function yK(U,Z){for(var $=0;$z)Q=K,K=M,G=W,W=E;else if(J)K+=M;else K=Q+(M-Q)/(E-G)*(W-G)},H=function(){Q=K=J?0:K,G=W=0},X=function(M){var O=G,E=Q,V=z9();return(M||M===0)&&M!==K&&N(M),W===G||V-G>L?0:(K+(J?E:-E))/((J?V:W)-O)*1000};return{update:N,reset:H,getVelocity:X}},H9=function(Z,$){return $&&!Z._gsapAllow&&Z.preventDefault(),Z.changedTouches?Z.changedTouches[0]:Z},_K=function(Z){var $=Math.max.apply(Math,Z),J=Math.min.apply(Math,Z);return Math.abs($)>=Math.abs(J)?$:J},pK=function(){U9=a0.core.globals().ScrollTrigger,U9&&U9.core&&aW()},lK=function(Z){if(a0=Z||dK(),!JZ&&a0&&typeof document<"u"&&document.body)A8=window,v1=document,y1=v1.documentElement,TJ=v1.body,uK=[A8,v1,y1,TJ],oW=a0.utils.clamp,mK=a0.core.context||function(){},$J="onpointerenter"in TJ?"pointer":"mouse",gK=A0.isTouch=A8.matchMedia&&A8.matchMedia("(hover: none), (pointer: coarse)").matches?1:("ontouchstart"in A8)||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,a8=A0.eventTypes=("ontouchstart"in y1?"touchstart,touchmove,touchcancel,touchend":!("onpointerdown"in y1)?"mousedown,mousemove,mouseup,mouseup":"pointerdown,pointermove,pointercancel,pointerup").split(","),setTimeout(function(){return cK=0},500),pK(),JZ=1;return JZ};W8.op=x0;a.cache=0;var A0=function(){function U($){this.init($)}var Z=U.prototype;return Z.init=function(J){JZ||lK(a0)||console.warn("Please gsap.registerPlugin(Observer)"),U9||pK();var{tolerance:K,dragMinimum:Q,type:W,target:G,lineHeight:z,debounce:L,preventDefault:N,onStop:H,onStopDelay:X,ignore:F,wheelSpeed:M,event:O,onDragStart:E,onDragEnd:V,onDrag:I,onPress:q,onRelease:Y,onRight:R,onLeft:D,onUp:B,onDown:C,onChangeX:j,onChangeY:S,onChange:k,onToggleX:P,onToggleY:T,onHover:h,onHoverEnd:f,onMove:x,ignoreCheck:b,isNormalizer:y,onGestureStart:g,onGestureEnd:A,onWheel:d,onEnable:t,onDisable:n,onClick:u,scrollSpeed:G0,capture:$0,allowClicks:N0,lockAxis:F0,onLockAxis:L0}=J;this.target=G=X8(G)||y1,this.vars=J,F&&(F=a0.utils.toArray(F)),K=K||0.000000001,Q=Q||0,M=M||1,G0=G0||1,W=W||"wheel,touch,pointer",L=L!==!1,z||(z=parseFloat(A8.getComputedStyle(TJ).lineHeight)||22);var J0,d0,r0,K0,D0,c0,p0,w=this,t0=0,B8=0,p8=J.passive||!N&&J.passive!==!1,E0=D1(G,W8),f8=D1(G,x0),l8=E0(),h8=f8(),w0=~W.indexOf("touch")&&!~W.indexOf("pointer")&&a8[0]==="pointerdown",e8=L9(G),q0=G.ownerDocument||v1,e0=[0,0,0],x8=[0,0,0],L1=0,dJ=function(){return L1=z9()},f0=function(p,H0){return(w.event=p)&&F&&rW(p.target,F)||H0&&w0&&p.pointerType!=="touch"||b&&b(p,H0)},h9=function(){w._vx.reset(),w._vy.reset(),d0.pause(),H&&H(w)},N1=function(){var p=w.deltaX=_K(e0),H0=w.deltaY=_K(x8),v=Math.abs(p)>=K,l=Math.abs(H0)>=K;if(k&&(v||l)&&k(w,p,H0,e0,x8),v)R&&w.deltaX>0&&R(w),D&&w.deltaX<0&&D(w),j&&j(w),P&&w.deltaX<0!==t0<0&&P(w),t0=w.deltaX,e0[0]=e0[1]=e0[2]=0;if(l)C&&w.deltaY>0&&C(w),B&&w.deltaY<0&&B(w),S&&S(w),T&&w.deltaY<0!==B8<0&&T(w),B8=w.deltaY,x8[0]=x8[1]=x8[2]=0;if(K0||r0){if(x&&x(w),r0)E&&r0===1&&E(w),I&&I(w),r0=0;K0=!1}if(c0&&!(c0=!1)&&L0&&L0(w),D0)d(w),D0=!1;J0=0},OJ=function(p,H0,v){e0[v]+=p,x8[v]+=H0,w._vx.update(p),w._vy.update(H0),L?J0||(J0=requestAnimationFrame(N1)):N1()},qJ=function(p,H0){if(F0&&!p0)w.axis=p0=Math.abs(p)>Math.abs(H0)?"x":"y",c0=!0;if(p0!=="y")e0[2]+=p,w._vx.update(p,!0);if(p0!=="x")x8[2]+=H0,w._vy.update(H0,!0);L?J0||(J0=requestAnimationFrame(N1)):N1()},S1=function(p){if(f0(p,1))return;p=H9(p,N);var{clientX:H0,clientY:v}=p,l=H0-w.x,c=v-w.y,s=w.isDragging;if(w.x=H0,w.y=v,s||(l||c)&&(Math.abs(w.startX-H0)>=Q||Math.abs(w.startY-v)>=Q))r0=s?2:1,s||(w.isDragging=!0),qJ(l,c)},m1=w.onPress=function(i){if(f0(i,1)||i&&i.button)return;w.axis=p0=null,d0.pause(),w.isPressed=!0,i=H9(i),t0=B8=0,w.startX=w.x=i.clientX,w.startY=w.y=i.clientY,w._vx.reset(),w._vy.reset(),F8(y?G:q0,a8[1],S1,p8,!0),w.deltaX=w.deltaY=0,q&&q(w)},Z0=w.onRelease=function(i){if(f0(i,1))return;N8(y?G:q0,a8[1],S1,!0);var p=!isNaN(w.y-w.startY),H0=w.isDragging,v=H0&&(Math.abs(w.x-w.startX)>3||Math.abs(w.y-w.startY)>3),l=H9(i);if(!v&&p){if(w._vx.reset(),w._vy.reset(),N&&N0)a0.delayedCall(0.08,function(){if(z9()-L1>300&&!i.defaultPrevented){if(i.target.click)i.target.click();else if(q0.createEvent){var c=q0.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,A8,1,l.screenX,l.screenY,l.clientX,l.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(c)}}})}w.isDragging=w.isGesturing=w.isPressed=!1,H&&H0&&!y&&d0.restart(!0),r0&&N1(),V&&H0&&V(w),Y&&Y(w,v)},d1=function(p){return p.touches&&p.touches.length>1&&(w.isGesturing=!0)&&g(p,w.isDragging)},s8=function(){return(w.isGesturing=!1)||A(w)},i8=function(p){if(f0(p))return;var H0=E0(),v=f8();OJ((H0-l8)*G0,(v-h8)*G0,1),l8=H0,h8=v,H&&d0.restart(!0)},n8=function(p){if(f0(p))return;p=H9(p,N),d&&(D0=!0);var H0=(p.deltaMode===1?z:p.deltaMode===2?A8.innerHeight:1)*M;OJ(p.deltaX*H0,p.deltaY*H0,0),H&&!y&&d0.restart(!0)},c1=function(p){if(f0(p))return;var{clientX:H0,clientY:v}=p,l=H0-w.x,c=v-w.y;w.x=H0,w.y=v,K0=!0,H&&d0.restart(!0),(l||c)&&qJ(l,c)},YJ=function(p){w.event=p,h(w)},F1=function(p){w.event=p,f(w)},cJ=function(p){return f0(p)||H9(p,N)&&u(w)};d0=w._dc=a0.delayedCall(X||0.25,h9).pause(),w.deltaX=w.deltaY=0,w._vx=$Z(0,50,!0),w._vy=$Z(0,50,!0),w.scrollX=E0,w.scrollY=f8,w.isDragging=w.isGesturing=w.isPressed=!1,mK(this),w.enable=function(i){if(!w.isEnabled){if(F8(e8?q0:G,"scroll",g$),W.indexOf("scroll")>=0&&F8(e8?q0:G,"scroll",i8,p8,$0),W.indexOf("wheel")>=0&&F8(G,"wheel",n8,p8,$0),W.indexOf("touch")>=0&&gK||W.indexOf("pointer")>=0)F8(G,a8[0],m1,p8,$0),F8(q0,a8[2],Z0),F8(q0,a8[3],Z0),N0&&F8(G,"click",dJ,!0,!0),u&&F8(G,"click",cJ),g&&F8(q0,"gesturestart",d1),A&&F8(q0,"gestureend",s8),h&&F8(G,$J+"enter",YJ),f&&F8(G,$J+"leave",F1),x&&F8(G,$J+"move",c1);w.isEnabled=!0,w.isDragging=w.isGesturing=w.isPressed=K0=r0=!1,w._vx.reset(),w._vy.reset(),l8=E0(),h8=f8(),i&&i.type&&m1(i),t&&t(w)}return w},w.disable=function(){if(w.isEnabled){if(PJ.filter(function(i){return i!==w&&L9(i.target)}).length||N8(e8?q0:G,"scroll",g$),w.isPressed)w._vx.reset(),w._vy.reset(),N8(y?G:q0,a8[1],S1,!0);N8(e8?q0:G,"scroll",i8,$0),N8(G,"wheel",n8,$0),N8(G,a8[0],m1,$0),N8(q0,a8[2],Z0),N8(q0,a8[3],Z0),N8(G,"click",dJ,!0),N8(G,"click",cJ),N8(q0,"gesturestart",d1),N8(q0,"gestureend",s8),N8(G,$J+"enter",YJ),N8(G,$J+"leave",F1),N8(G,$J+"move",c1),w.isEnabled=w.isPressed=w.isDragging=!1,n&&n(w)}},w.kill=w.revert=function(){w.disable();var i=PJ.indexOf(w);i>=0&&PJ.splice(i,1),E1===w&&(E1=0)},PJ.push(w),y&&L9(G)&&(E1=w),w.enable(O)},nW(U,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),U}();A0.version="3.13.0";A0.create=function(U){return new A0(U)};A0.register=lK;A0.getAll=function(){return PJ.slice()};A0.getById=function(U){return PJ.filter(function(Z){return Z.vars.id===U})[0]};dK()&&a0.registerPlugin(A0);/*! * ScrollTrigger 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var _,hJ,e,Y0,w8,z0,J7,EZ,j9,Y9,F9,KZ,G8,VZ,i$,O8,sK,iK,xJ,zQ,u$,LQ,M8,n$,NQ,FQ,_1,o$,Z7,bJ,$7,DZ,a$,m$,QZ=1,H8=Date.now,d$=H8(),m8=0,X9=0,nK=function(Z,$,J){var K=T8(Z)&&(Z.substr(0,6)==="clamp("||Z.indexOf("max")>-1);return J["_"+$+"Clamp"]=K,K?Z.substr(6,Z.length-7):Z},oK=function(Z,$){return $&&(!T8(Z)||Z.substr(0,6)!=="clamp(")?"clamp("+Z+")":Z},tW=function U(){return X9&&requestAnimationFrame(U)},aK=function(){return VZ=1},rK=function(){return VZ=0},U1=function(Z){return Z},M9=function(Z){return Math.round(Z*1e5)/1e5||0},XQ=function(){return typeof window<"u"},MQ=function(){return _||XQ()&&(_=window.gsap)&&_.registerPlugin&&_},UJ=function(Z){return!!~J7.indexOf(Z)},OQ=function(Z){return(Z==="Height"?$7:e["inner"+Z])||w8["client"+Z]||z0["client"+Z]},qQ=function(Z){return R1(Z,"getBoundingClientRect")||(UJ(Z)?function(){return YZ.width=e.innerWidth,YZ.height=$7,YZ}:function(){return I1(Z)})},eW=function(Z,$,J){var{d:K,d2:Q,a:W}=J;return(W=R1(Z,"getBoundingClientRect"))?function(){return W()[K]}:function(){return($?OQ(Q):Z["client"+Q])||0}},JG=function(Z,$){return!$||~r8.indexOf(Z)?qQ(Z):function(){return YZ}},z1=function(Z,$){var{s:J,d2:K,d:Q,a:W}=$;return Math.max(0,(J="scroll"+K)&&(W=R1(Z,J))?W()-qQ(Z)()[Q]:UJ(Z)?(w8[J]||z0[J])-OQ(K):Z[J]-Z["offset"+K])},WZ=function(Z,$){for(var J=0;J0){K-=W;for(G=0;G=K)return J[G];return J[G-1]}else{G=J.length,K+=W;while(G--)if(J[G]<=K)return J[G]}return J[0]}:function(K,Q,W){if(W===void 0)W=0.001;var G=$(K);return!Q||Math.abs(G-K)J&&(K*=$/100),Z=Z.substr(0,J-1);Z=K+(Z in IZ?IZ[Z]*$:~Z.indexOf("%")?parseFloat(Z)*$/100:parseFloat(Z)||0)}return Z},zZ=function(Z,$,J,K,Q,W,G,z){var{startColor:L,endColor:N,fontSize:H,indent:X,fontWeight:F}=Q,M=Y0.createElement("div"),O=UJ(J)||R1(J,"pinType")==="fixed",E=Z.indexOf("scroller")!==-1,V=O?z0:J,I=Z.indexOf("start")!==-1,q=I?L:N,Y="border-color:"+q+";font-size:"+H+";color:"+q+";font-weight:"+F+";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:"+((E||z)&&O?"fixed;":"absolute;"),(E||z||!O)&&(Y+=(K===x0?K7:Q7)+":"+(W+parseFloat(X))+"px;"),G&&(Y+="box-sizing:border-box;text-align:left;width:"+G.offsetWidth+"px;"),M._isStart=I,M.setAttribute("class","gsap-marker-"+Z+($?" marker-"+$:"")),M.style.cssText=Y,M.innerText=$||$===0?Z+"-"+$:Z,V.children[0]?V.insertBefore(M,V.children[0]):V.appendChild(M),M._offset=M["offset"+K.op.d2],MZ(M,0,K,I),M},MZ=function(Z,$,J,K){var Q={display:"block"},W=J[K?"os2":"p2"],G=J[K?"p2":"os2"];Z._isFlipped=K,Q[J.a+"Percent"]=K?-100:0,Q[J.a]=K?"1px":0,Q["border"+W+yJ]=1,Q["border"+G+yJ]=0,Q[J.p]=$+"px",_.set(Z,Q)},r=[],r$={},B9,JQ=function(){return H8()-m8>34&&(B9||(B9=requestAnimationFrame(V1)))},fJ=function(){if(!M8||!M8.isPressed||M8.startX>z0.clientWidth){if(a.cache++,M8)B9||(B9=requestAnimationFrame(V1));else V1();m8||LJ("scrollStart"),m8=H8()}},p$=function(){FQ=e.innerWidth,NQ=e.innerHeight},q9=function(Z){a.cache++,(Z===!0||!G8&&!LQ&&!Y0.fullscreenElement&&!Y0.webkitFullscreenElement&&(!n$||FQ!==e.innerWidth||Math.abs(e.innerHeight-NQ)>e.innerHeight*0.25))&&EZ.restart(!0)},zJ={},QG=[],RQ=function U(){return u0(m,"scrollEnd",U)||QJ(!0)},LJ=function(Z){return zJ[Z]&&zJ[Z].map(function($){return $()})||QG},P8=[],IQ=function(Z){for(var $=0;$Q,G=K._startClamp&&K.start>=Q;(W||G)&&K.setPositions(G?Q-1:K.start,W?Math.max(G?Q:K.start+1,Q):K.end,!0)}),$Q(!1),a$=0,J.forEach(function(K){return K&&K.render&&K.render(-1)}),a.forEach(function(K){if(U8(K))K.smooth&&requestAnimationFrame(function(){return K.target.style.scrollBehavior="smooth"}),K.rec&&K(K.rec)}),VQ(Z7,1),EZ.pause(),HJ++,q8=2,V1(2),r.forEach(function(K){return U8(K.vars.onRefresh)&&K.vars.onRefresh(K)}),q8=m.isRefreshing=!1,LJ("refresh")},t$=0,OZ=1,V9,V1=function(Z){if(Z===2||!q8&&!DZ){m.isUpdating=!0,V9&&V9.update(0);var $=r.length,J=H8(),K=J-d$>=50,Q=$&&r[0].scroll();if(OZ=t$>Q?-1:1,q8||(t$=Q),K){if(m8&&!VZ&&J-m8>200)m8=0,LJ("scrollEnd");F9=d$,d$=J}if(OZ<0){O8=$;while(O8-- >0)r[O8]&&r[O8].update(0,K);OZ=1}else for(O8=0;O8<$;O8++)r[O8]&&r[O8].update(0,K);m.isUpdating=!1}B9=0},e$=[YQ,EQ,Q7,K7,g8+I9,g8+E9,g8+R9,g8+D9,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],qZ=e$.concat([WJ,GJ,"boxSizing","max"+yJ,"max"+W7,"position",g8,b0,b0+R9,b0+E9,b0+I9,b0+D9]),GG=function(Z,$,J){vJ(J);var K=Z._gsap;if(K.spacerIsNative)vJ(K.spacerState);else if(Z._gsap.swappedIn){var Q=$.parentNode;if(Q)Q.insertBefore(Z,$),Q.removeChild($)}Z._gsap.swappedIn=!1},l$=function(Z,$,J,K){if(!Z._gsap.swappedIn){var Q=e$.length,W=$.style,G=Z.style,z;while(Q--)z=e$[Q],W[z]=J[z];if(W.position=J.position==="absolute"?"absolute":"relative",J.display==="inline"&&(W.display="inline-block"),G[Q7]=G[K7]="auto",W.flexBasis=J.flexBasis||"auto",W.overflow="visible",W.boxSizing="border-box",W[WJ]=RZ(Z,W8)+_0,W[GJ]=RZ(Z,x0)+_0,W[b0]=G[g8]=G[EQ]=G[YQ]="0",vJ(K),G[WJ]=G["max"+yJ]=J[WJ],G[GJ]=G["max"+W7]=J[GJ],G[b0]=J[b0],Z.parentNode!==$)Z.parentNode.insertBefore($,Z),$.appendChild(Z);Z._gsap.swappedIn=!0}},HG=/([A-Z])/g,vJ=function(Z){if(Z){var $=Z.t.style,J=Z.length,K=0,Q,W;(Z.t._gsap||_.core.getCache(Z.t)).uncache=1;for(;K20),J-=J-D}else F&&(Z=_.utils.mapRange(F.scrollTrigger.start,F.scrollTrigger.end,0,X,Z)),G&&MZ(G,J,K,!0);if(M)z[M]=Z||-0.001,Z<0&&(Z=0);if(W){var C=Z+J,j=W._isStart;if(E="scroll"+K.d2,MZ(W,C,K,j&&C>20||!j&&(H?Math.max(z0[E],w8[E]):W.parentNode[E])<=C+1),H)L=I1(G),H&&(W.style[K.op.p]=L[K.op.p]-K.op.m-W._offset+_0)}if(F&&I)E=I1(I),F.seek(X),V=I1(I),F._caScrollDist=E[K.p]-V[K.p],Z=Z/F._caScrollDist*X;return F&&F.seek(O),F?Z:Math.round(Z)},zG=/(webkit|moz|length|cssText|inset)/i,QQ=function(Z,$,J,K){if(Z.parentNode!==$){var Q=Z.style,W,G;if($===z0){Z._stOrig=Q.cssText,G=u8(Z);for(W in G)if(!+W&&!zG.test(W)&&G[W]&&typeof Q[W]==="string"&&W!=="0")Q[W]=G[W];Q.top=J,Q.left=K}else Q.cssText=Z._stOrig;_.core.getCache(Z).uncache=1,$.appendChild(Z)}},BQ=function(Z,$,J){var K=$,Q=K;return function(W){var G=Math.round(Z());if(G!==K&&G!==Q&&Math.abs(G-K)>3&&Math.abs(G-Q)>3)W=G,J&&J();return Q=K,K=Math.round(W),K}},NZ=function(Z,$,J){var K={};K[$.p]="+="+J,_.set(Z,K)},WQ=function(Z,$){var J=D1(Z,$),K="_scroll"+$.p2,Q=function W(G,z,L,N,H){var X=W.tween,F=z.onComplete,M={};L=L||J();var O=BQ(J,L,function(){X.kill(),W.tween=0});return H=N&&H||0,N=N||G-L,X&&X.kill(),z[K]=G,z.inherit=!1,z.modifiers=M,M[K]=function(){return O(L+N*X.ratio+H*X.ratio*X.ratio)},z.onUpdate=function(){a.cache++,W.tween&&V1()},z.onComplete=function(){W.tween=0,F&&F.call(X)},X=W.tween=_.to(Z,z),X};return Z[K]=J,J.wheelHandler=function(){return Q.tween&&Q.tween.kill()&&(Q.tween=0)},m0(Z,"wheel",J.wheelHandler),m.isTouch&&m0(Z,"touchmove",J.wheelHandler),Q},m=function(){function U($,J){hJ||U.register(_)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),o$(this),this.init($,J)}var Z=U.prototype;return Z.init=function(J,K){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!X9){this.update=this.refresh=this.kill=U1;return}J=tK(T8(J)||O9(J)||J.nodeType?{trigger:J}:J,UZ);var Q=J,W=Q.onUpdate,G=Q.toggleClass,z=Q.id,L=Q.onToggle,N=Q.onRefresh,H=Q.scrub,X=Q.trigger,F=Q.pin,M=Q.pinSpacing,O=Q.invalidateOnRefresh,E=Q.anticipatePin,V=Q.onScrubComplete,I=Q.onSnapComplete,q=Q.once,Y=Q.snap,R=Q.pinReparent,D=Q.pinSpacer,B=Q.containerAnimation,C=Q.fastScrollEnd,j=Q.preventOverlaps,S=J.horizontal||J.containerAnimation&&J.horizontal!==!1?W8:x0,k=!H&&H!==0,P=X8(J.scroller||e),T=_.core.getCache(P),h=UJ(P),f=("pinType"in J?J.pinType:R1(P,"pinType")||h&&"fixed")==="fixed",x=[J.onEnter,J.onLeave,J.onEnterBack,J.onLeaveBack],b=k&&J.toggleActions.split(" "),y="markers"in J?J.markers:UZ.markers,g=h?0:parseFloat(u8(P)["border"+S.p2+yJ])||0,A=this,d=J.onRefreshInit&&function(){return J.onRefreshInit(A)},t=eW(P,h,S),n=JG(P,h),u=0,G0=0,$0=0,N0=D1(P,S),F0,L0,J0,d0,r0,K0,D0,c0,p0,w,t0,B8,p8,E0,f8,l8,h8,w0,e8,q0,e0,x8,L1,dJ,f0,h9,N1,OJ,qJ,S1,m1,Z0,d1,s8,i8,n8,c1,YJ,F1;if(A._startClamp=A._endClamp=!1,A._dir=S,E*=45,A.scroller=P,A.scroll=B?B.time.bind(B):N0,d0=N0(),A.vars=J,K=K||J.animation,"refreshPriority"in J)zQ=1,J.refreshPriority===-9999&&(V9=A);if(T.tweenScroll=T.tweenScroll||{top:WQ(P,x0),left:WQ(P,W8)},A.tweenTo=F0=T.tweenScroll[S.p],A.scrubDuration=function(v){if(d1=O9(v)&&v,!d1)Z0&&Z0.progress(1).kill(),Z0=0;else Z0?Z0.duration(v):Z0=_.to(K,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:d1,paused:!0,onComplete:function(){return V&&V(A)}})},K)K.vars.lazy=!1,K._initted&&!A.isReverted||K.vars.immediateRender!==!1&&J.immediateRender!==!1&&K.duration()&&K.render(0,!0,!0),A.animation=K.pause(),K.scrollTrigger=A,A.scrubDuration(H),S1=0,z||(z=K.vars.id);if(Y){if(!KJ(Y)||Y.push)Y={snapTo:Y};"scrollBehavior"in z0.style&&_.set(h?[z0,w8]:P,{scrollBehavior:"auto"}),a.forEach(function(v){return U8(v)&&v.target===(h?Y0.scrollingElement||w8:P)&&(v.smooth=!1)}),J0=U8(Y.snapTo)?Y.snapTo:Y.snapTo==="labels"?$G(K):Y.snapTo==="labelsDirectional"?KG(K):Y.directional!==!1?function(v,l){return G7(Y.snapTo)(v,H8()-G0<500?0:l.direction)}:_.utils.snap(Y.snapTo),s8=Y.duration||{min:0.1,max:2},s8=KJ(s8)?Y9(s8.min,s8.max):Y9(s8,s8),i8=_.delayedCall(Y.delay||d1/2||0.1,function(){var v=N0(),l=H8()-G0<500,c=F0.tween;if((l||Math.abs(A.getVelocity())<10)&&!c&&!VZ&&u!==v){var s=(v-K0)/E0,g0=K&&!k?K.totalProgress():s,Q0=l?0:(g0-m1)/(H8()-F9)*1000||0,P0=_.utils.clamp(-s,1-s,wJ(Q0/2)*Q0/0.185),J8=s+(Y.inertia===!1?0:P0),C0,R0,X0=Y,o8=X0.onStart,V0=X0.onInterrupt,C8=X0.onComplete;if(C0=J0(J8,A),O9(C0)||(C0=J8),R0=Math.max(0,Math.round(K0+C0*E0)),v<=D0&&v>=K0&&R0!==v){if(c&&!c._initted&&c.data<=wJ(R0-v))return;if(Y.inertia===!1)P0=C0-s;F0(R0,{duration:s8(wJ(Math.max(wJ(J8-g0),wJ(C0-g0))*0.185/Q0/0.05||0)),ease:Y.ease||"power3",data:wJ(R0-v),onInterrupt:function(){return i8.restart(!0)&&V0&&V0(A)},onComplete:function(){if(A.update(),u=N0(),K&&!k)Z0?Z0.resetTo("totalProgress",C0,K._tTime/K._tDur):K.progress(C0);S1=m1=K&&!k?K.totalProgress():A.progress,I&&I(A),C8&&C8(A)}},v,P0*E0,R0-v-P0*E0),o8&&o8(A,F0.tween)}}else if(A.isActive&&u!==v)i8.restart(!0)}).pause()}if(z&&(r$[z]=A),X=A.trigger=X8(X||F!==!0&&F),F1=X&&X._gsap&&X._gsap.stRevert,F1&&(F1=F1(A)),F=F===!0?X:X8(F),T8(G)&&(G={targets:X,className:G}),F){if(M===!1||M===g8||(M=!M&&F.parentNode&&F.parentNode.style&&u8(F.parentNode).display==="flex"?!1:b0),A.pin=F,L0=_.core.getCache(F),!L0.spacer){if(D)D=X8(D),D&&!D.nodeType&&(D=D.current||D.nativeElement),L0.spacerIsNative=!!D,D&&(L0.spacerState=LZ(D));L0.spacer=w0=D||Y0.createElement("div"),w0.classList.add("pin-spacer"),z&&w0.classList.add("pin-spacer-"+z),L0.pinState=f8=LZ(F)}else f8=L0.pinState;J.force3D!==!1&&_.set(F,{force3D:!0}),A.spacer=w0=L0.spacer,qJ=u8(F),dJ=qJ[M+S.os2],q0=_.getProperty(F),e0=_.quickSetter(F,S.a,_0),l$(F,w0,qJ),h8=LZ(F)}if(y){B8=KJ(y)?tK(y,eK):eK,w=zZ("scroller-start",z,P,S,B8,0),t0=zZ("scroller-end",z,P,S,B8,0,w),e8=w["offset"+S.op.d2];var cJ=X8(R1(P,"content")||P);if(c0=this.markerStart=zZ("start",z,cJ,S,B8,e8,0,B),p0=this.markerEnd=zZ("end",z,cJ,S,B8,e8,0,B),B&&(YJ=_.quickSetter([c0,p0],S.a,_0)),!f&&!(r8.length&&R1(P,"fixedMarkers")===!0))ZG(h?z0:P),_.set([w,t0],{force3D:!0}),h9=_.quickSetter(w,S.a,_0),OJ=_.quickSetter(t0,S.a,_0)}if(B){var i=B.vars.onUpdate,p=B.vars.onUpdateParams;B.eventCallback("onUpdate",function(){A.update(0,0,1),i&&i.apply(B,p||[])})}if(A.previous=function(){return r[r.indexOf(A)-1]},A.next=function(){return r[r.indexOf(A)+1]},A.revert=function(v,l){if(!l)return A.kill(!0);var c=v!==!1||!A.enabled,s=G8;if(c!==A.isReverted){if(c)n8=Math.max(N0(),A.scroll.rec||0),$0=A.progress,c1=K&&K.progress();if(c0&&[c0,p0,w,t0].forEach(function(g0){return g0.style.display=c?"none":"block"}),c)G8=A,A.update(c);if(F&&(!R||!A.isActive))if(c)GG(F,w0,f8);else l$(F,w0,u8(F),f0);c||A.update(c),G8=s,A.isReverted=c}},A.refresh=function(v,l,c,s){if((G8||!A.enabled)&&!l)return;if(F&&v&&m8){m0(U,"scrollEnd",RQ);return}if(!q8&&d&&d(A),G8=A,F0.tween&&!c)F0.tween.kill(),F0.tween=0;if(Z0&&Z0.pause(),O&&K)K.revert({kill:!1}).invalidate(),K.getChildren&&K.getChildren(!0,!0,!1).forEach(function(k1){return k1.vars.immediateRender&&k1.render(0,!0,!0)});A.isReverted||A.revert(!0,!0),A._subPinOffset=!1;var g0=t(),Q0=n(),P0=B?B.duration():z1(P,S),J8=E0<=0.01||!E0,C0=0,R0=s||0,X0=KJ(c)?c.end:J.end,o8=J.endTrigger||X,V0=KJ(c)?c.start:J.start||(J.start===0||!X?0:F?"0 0":"0 100%"),C8=A.pinnedContainer=J.pinnedContainer&&X8(J.pinnedContainer,A),J1=X&&Math.max(0,r.indexOf(A))||0,l0=J1,s0,Z8,p1,x9,$8,v0,Z1,pZ,S7,pJ,$1,lJ,b9;if(y&&KJ(c))lJ=_.getProperty(w,S.p),b9=_.getProperty(t0,S.p);while(l0-- >0){if(v0=r[l0],v0.end||v0.refresh(0,1)||(G8=A),Z1=v0.pin,Z1&&(Z1===X||Z1===F||Z1===C8)&&!v0.isReverted)pJ||(pJ=[]),pJ.unshift(v0),v0.revert(!0,!0);if(v0!==r[l0])J1--,l0--}if(U8(V0)&&(V0=V0(A)),V0=nK(V0,"start",A),K0=KQ(V0,X,g0,S,N0(),c0,w,A,Q0,g,f,P0,B,A._startClamp&&"_startClamp")||(F?-0.001:0),U8(X0)&&(X0=X0(A)),T8(X0)&&!X0.indexOf("+="))if(~X0.indexOf(" "))X0=(T8(V0)?V0.split(" ")[0]:"")+X0;else C0=XZ(X0.substr(2),g0),X0=T8(V0)?V0:(B?_.utils.mapRange(0,B.duration(),B.scrollTrigger.start,B.scrollTrigger.end,K0):K0)+C0,o8=X;X0=nK(X0,"end",A),D0=Math.max(K0,KQ(X0||(o8?"100% 0":P0),o8,g0,S,N0()+C0,p0,t0,A,Q0,g,f,P0,B,A._endClamp&&"_endClamp"))||-0.001,C0=0,l0=J1;while(l0--)if(v0=r[l0],Z1=v0.pin,Z1&&v0.start-v0._pinPush<=K0&&!B&&v0.end>0){if(s0=v0.end-(A._startClamp?Math.max(0,v0.start):v0.start),(Z1===X&&v0.start-v0._pinPush=z1(P,S))){if(s0=u8(F),x9=S===x0,p1=N0(),x8=parseFloat(q0(S.a))+R0,!P0&&D0>1){if($1=(h?Y0.scrollingElement||w8:P).style,$1={style:$1,value:$1["overflow"+S.a.toUpperCase()]},h&&u8(z0)["overflow"+S.a.toUpperCase()]!=="scroll")$1.style["overflow"+S.a.toUpperCase()]="scroll"}if(l$(F,w0,s0),h8=LZ(F),Z8=I1(F,!0),pZ=f&&D1(P,x9?W8:x0)(),M){if(f0=[M+S.os2,E0+R0+_0],f0.t=w0,l0=M===b0?RZ(F,S)+E0+R0:0,l0)f0.push(S.d,l0+_0),w0.style.flexBasis!=="auto"&&(w0.style.flexBasis=l0+_0);if(vJ(f0),C8)r.forEach(function(k1){if(k1.pin===C8&&k1.vars.pinSpacing!==!1)k1._subPinOffset=!0});f&&N0(n8)}else l0=RZ(F,S),l0&&w0.style.flexBasis!=="auto"&&(w0.style.flexBasis=l0+_0);if(f)$8={top:Z8.top+(x9?p1-K0:pZ)+_0,left:Z8.left+(x9?pZ:p1-K0)+_0,boxSizing:"border-box",position:"fixed"},$8[WJ]=$8["max"+yJ]=Math.ceil(Z8.width)+_0,$8[GJ]=$8["max"+W7]=Math.ceil(Z8.height)+_0,$8[g8]=$8[g8+R9]=$8[g8+E9]=$8[g8+I9]=$8[g8+D9]="0",$8[b0]=s0[b0],$8[b0+R9]=s0[b0+R9],$8[b0+E9]=s0[b0+E9],$8[b0+I9]=s0[b0+I9],$8[b0+D9]=s0[b0+D9],l8=UG(f8,$8,R),q8&&N0(0);if(K)S7=K._initted,u$(1),K.render(K.duration(),!0,!0),L1=q0(S.a)-x8+E0+R0,N1=Math.abs(E0-L1)>1,f&&N1&&l8.splice(l8.length-2,2),K.render(0,!0,!0),S7||K.invalidate(!0),K.parent||K.totalTime(K.totalTime()),u$(0);else L1=E0;$1&&($1.value?$1.style["overflow"+S.a.toUpperCase()]=$1.value:$1.style.removeProperty("overflow-"+S.a))}else if(X&&N0()&&!B){Z8=X.parentNode;while(Z8&&Z8!==z0){if(Z8._pinOffset)K0-=Z8._pinOffset,D0-=Z8._pinOffset;Z8=Z8.parentNode}}if(pJ&&pJ.forEach(function(k1){return k1.revert(!1,!0)}),A.start=K0,A.end=D0,d0=r0=q8?n8:N0(),!B&&!q8)d00?r.slice(0,l).reverse():r.slice(l+1);return(T8(v)?c.filter(function(s){return s.vars.preventOverlaps===v}):c).filter(function(s){return A.direction>0?s.end<=K0:s.start>=D0})},A.update=function(v,l,c){if(B&&!c&&!v)return;var s=q8===!0?n8:A.scroll(),g0=v?0:(s-K0)/E0,Q0=g0<0?0:g0>1?1:g0||0,P0=A.progress,J8,C0,R0,X0,o8,V0,C8,J1;if(l){if(r0=d0,d0=B?N0():s,Y)m1=S1,S1=K&&!k?K.totalProgress():Q0}if(E&&F&&!G8&&!QZ&&m8){if(!Q0&&K0s+(s-r0)/(H8()-F9)*E)Q0=0.9999}if(Q0!==P0&&A.enabled){if(J8=A.isActive=!!Q0&&Q0<1,C0=!!P0&&P0<1,V0=J8!==C0,o8=V0||!!Q0!==!!P0,A.direction=Q0>P0?1:-1,A.progress=Q0,o8&&!G8){if(R0=Q0&&!P0?0:Q0===1?1:P0===1?2:3,k)X0=!V0&&b[R0+1]!=="none"&&b[R0+1]||b[R0],J1=K&&(X0==="complete"||X0==="reset"||(X0 in K))}if(j&&(V0||J1)&&(J1||H||!K)&&(U8(j)?j(A):A.getTrailing(j).forEach(function(p1){return p1.endAnimation()})),!k){if(Z0&&!G8&&!QZ)if(Z0._dp._time-Z0._start!==Z0._time&&Z0.render(Z0._dp._time-Z0._start),Z0.resetTo)Z0.resetTo("totalProgress",Q0,K._tTime/K._tDur);else Z0.vars.totalProgress=Q0,Z0.invalidate().restart();else if(K)K.totalProgress(Q0,!!(G8&&(G0||v)))}if(F){if(v&&M&&(w0.style[M+S.os2]=dJ),!f)e0(M9(x8+L1*Q0));else if(o8){if(C8=!v&&Q0>P0&&D0+1>s&&s+1>=z1(P,S),R)if(!v&&(J8||C8)){var l0=I1(F,!0),s0=s-K0;QQ(F,z0,l0.top+(S===x0?s0:0)+_0,l0.left+(S===x0?0:s0)+_0)}else QQ(F,w0);vJ(J8||C8?l8:h8),N1&&Q0<1&&J8||e0(x8+(Q0===1&&!C8?L1:0))}}if(Y&&!F0.tween&&!G8&&!QZ&&i8.restart(!0),G&&(V0||q&&Q0&&(Q0<1||!m$))&&j9(G.targets).forEach(function(p1){return p1.classList[J8||q?"add":"remove"](G.className)}),W&&!k&&!v&&W(A),o8&&!G8){if(k){if(J1)if(X0==="complete")K.pause().totalProgress(1);else if(X0==="reset")K.restart(!0).pause();else if(X0==="restart")K.restart(!0);else K[X0]();W&&W(A)}if(V0||!m$){if(L&&V0&&c$(A,L),x[R0]&&c$(A,x[R0]),q&&(Q0===1?A.kill(!1,1):x[R0]=0),!V0)R0=Q0===1?1:3,x[R0]&&c$(A,x[R0])}if(C&&!J8&&Math.abs(A.getVelocity())>(O9(C)?C:2500))N9(A.callbackAnimation),Z0?Z0.progress(1):N9(K,X0==="reverse"?1:!Q0,1)}else if(k&&W&&!G8)W(A)}if(OJ){var Z8=B?s/B.duration()*(B._caScrollDist||0):s;h9(Z8+(w._isFlipped?1:0)),OJ(Z8)}YJ&&YJ(-s/B.duration()*(B._caScrollDist||0))},A.enable=function(v,l){if(!A.enabled){if(A.enabled=!0,m0(P,"resize",q9),h||m0(P,"scroll",fJ),d&&m0(U,"refreshInit",d),v!==!1)A.progress=$0=0,d0=r0=u=N0();l!==!1&&A.refresh()}},A.getTween=function(v){return v&&F0?F0.tween:Z0},A.setPositions=function(v,l,c,s){if(B){var g0=B.scrollTrigger,Q0=B.duration(),P0=g0.end-g0.start;v=g0.start+P0*v/Q0,l=g0.start+P0*l/Q0}A.refresh(!1,!1,{start:oK(v,c&&!!A._startClamp),end:oK(l,c&&!!A._endClamp)},s),A.update()},A.adjustPinSpacing=function(v){if(f0&&v){var l=f0.indexOf(S.d)+1;f0[l]=parseFloat(f0[l])+v+_0,f0[1]=parseFloat(f0[1])+v+_0,vJ(f0)}},A.disable=function(v,l){if(A.enabled){if(v!==!1&&A.revert(!0,!0),A.enabled=A.isActive=!1,l||Z0&&Z0.pause(),n8=0,L0&&(L0.uncache=1),d&&u0(U,"refreshInit",d),i8)i8.pause(),F0.tween&&F0.tween.kill()&&(F0.tween=0);if(!h){var c=r.length;while(c--)if(r[c].scroller===P&&r[c]!==A)return;u0(P,"resize",q9),h||u0(P,"scroll",fJ)}}},A.kill=function(v,l){A.disable(v,l),Z0&&!l&&Z0.kill(),z&&delete r$[z];var c=r.indexOf(A);if(c>=0&&r.splice(c,1),c===O8&&OZ>0&&O8--,c=0,r.forEach(function(s){return s.scroller===A.scroller&&(c=1)}),c||q8||(A.scroll.rec=0),K)K.scrollTrigger=null,v&&K.revert({kill:!1}),l||K.kill();if(c0&&[c0,p0,w,t0].forEach(function(s){return s.parentNode&&s.parentNode.removeChild(s)}),V9===A&&(V9=0),F)L0&&(L0.uncache=1),c=0,r.forEach(function(s){return s.pin===F&&c++}),c||(L0.spacer=0);J.onKill&&J.onKill(A)},r.push(A),A.enable(!1,!1),F1&&F1(A),K&&K.add&&!E0){var H0=A.update;A.update=function(){A.update=H0,a.cache++,K0||D0||A.refresh()},_.delayedCall(0.01,A.update),E0=0.01,K0=D0=0}else A.refresh();F&&WG()},U.register=function(J){if(!hJ)_=J||MQ(),XQ()&&window.document&&U.enable(),hJ=X9;return hJ},U.defaults=function(J){if(J)for(var K in J)UZ[K]=J[K];return UZ},U.disable=function(J,K){X9=0,r.forEach(function(W){return W[K?"kill":"disable"](J)}),u0(e,"wheel",fJ),u0(Y0,"scroll",fJ),clearInterval(KZ),u0(Y0,"touchcancel",U1),u0(z0,"touchstart",U1),GZ(u0,Y0,"pointerdown,touchstart,mousedown",aK),GZ(u0,Y0,"pointerup,touchend,mouseup",rK),EZ.kill(),WZ(u0);for(var Q=0;Q0&&W.left+G0&&W.top+G=0&&P8.splice($,5),P8.push(Z,Z.style.cssText,Z.getBBox&&Z.getAttribute("transform"),_.core.getCache(Z),o$())}}):P8};m.revert=function(U,Z){return H7(!U,Z)};m.create=function(U,Z){return new m(U,Z)};m.refresh=function(U){return U?q9(!0):(hJ||m.register())&&QJ(!0)};m.update=function(U){return++a.cache&&V1(U===!0?2:0)};m.clearScrollMemory=VQ;m.maxScroll=function(U,Z){return z1(U,Z?W8:x0)};m.getScrollFunc=function(U,Z){return D1(X8(U),Z?W8:x0)};m.getById=function(U){return r$[U]};m.getAll=function(){return r.filter(function(U){return U.vars.id!=="ScrollSmoother"})};m.isScrolling=function(){return!!m8};m.snapDirectional=G7;m.addEventListener=function(U,Z){var $=zJ[U]||(zJ[U]=[]);~$.indexOf(Z)||$.push(Z)};m.removeEventListener=function(U,Z){var $=zJ[U],J=$&&$.indexOf(Z);J>=0&&$.splice(J,1)};m.batch=function(U,Z){var $=[],J={},K=Z.interval||0.016,Q=Z.batchMax||1e9,W=function(L,N){var H=[],X=[],F=_.delayedCall(K,function(){N(H,X),H=[],X=[]}).pause();return function(M){H.length||F.restart(!0),H.push(M.trigger),X.push(M),Q<=H.length&&F.progress(1)}},G;for(G in Z)J[G]=G.substr(0,2)==="on"&&U8(Z[G])&&G!=="onRefreshInit"?W(G,Z[G]):Z[G];if(U8(Q))Q=Q(),m0(m,"refresh",function(){return Q=Z.batchMax()});return j9(U).forEach(function(z){var L={};for(G in J)L[G]=J[G];L.trigger=z,$.push(m.create(L))}),$};var GQ=function(Z,$,J,K){return $>K?Z(K):$<0&&Z(0),J>K?(K-$)/(J-$):J<0?$/($-J):1},s$=function U(Z,$){if($===!0)Z.style.removeProperty("touch-action");else Z.style.touchAction=$===!0?"auto":$?"pan-"+$+(A0.isTouch?" pinch-zoom":""):"none";Z===w8&&U(z0,$)},FZ={auto:1,scroll:1},LG=function(Z){var{event:$,target:J,axis:K}=Z,Q=($.changedTouches?$.changedTouches[0]:$).target,W=Q._gsap||_.core.getCache(Q),G=H8(),z;if(!W._isScrollT||G-W._isScrollT>2000){while(Q&&Q!==z0&&(Q.scrollHeight<=Q.clientHeight&&Q.scrollWidth<=Q.clientWidth||!(FZ[(z=u8(Q)).overflowY]||FZ[z.overflowX])))Q=Q.parentNode;W._isScroll=Q&&Q!==J&&!UJ(Q)&&(FZ[(z=u8(Q)).overflowY]||FZ[z.overflowX]),W._isScrollT=G}if(W._isScroll||K==="x")$.stopPropagation(),$._gsapAllow=!0},CQ=function(Z,$,J,K){return A0.create({target:Z,capture:!0,debounce:!1,lockAxis:!0,type:$,onWheel:K=K&&LG,onPress:K,onDrag:K,onScroll:K,onEnable:function(){return J&&m0(Y0,A0.eventTypes[0],UQ,!1,!0)},onDisable:function(){return u0(Y0,A0.eventTypes[0],UQ,!0)}})},NG=/(input|label|select|textarea)/i,HQ,UQ=function(Z){var $=NG.test(Z.target.tagName);if($||HQ)Z._gsapAllow=!0,HQ=$},FG=function(Z){KJ(Z)||(Z={}),Z.preventDefault=Z.isNormalizer=Z.allowClicks=!0,Z.type||(Z.type="wheel,touch"),Z.debounce=!!Z.debounce,Z.id=Z.id||"normalizer";var $=Z,J=$.normalizeScrollX,K=$.momentum,Q=$.allowNestedScroll,W=$.onRelease,G,z,L=X8(Z.target)||w8,N=_.core.globals().ScrollSmoother,H=N&&N.get(),X=_1&&(Z.content&&X8(Z.content)||H&&Z.content!==!1&&!H.smooth()&&H.content()),F=D1(L,x0),M=D1(L,W8),O=1,E=(A0.isTouch&&e.visualViewport?e.visualViewport.scale*e.visualViewport.width:e.outerWidth)/e.innerWidth,V=0,I=U8(K)?function(){return K(G)}:function(){return K||2.8},q,Y,R=CQ(L,Z.type,!0,Q),D=function(){return Y=!1},B=U1,C=U1,j=function(){z=z1(L,x0),C=Y9(_1?1:0,z),J&&(B=Y9(0,z1(L,W8))),q=HJ},S=function(){X._gsap.y=M9(parseFloat(X._gsap.y)+F.offset)+"px",X.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(X._gsap.y)+", 0, 1)",F.offset=F.cacheID=0},k=function(){if(Y){requestAnimationFrame(D);var y=M9(G.deltaY/2),g=C(F.v-y);if(X&&g!==F.v+F.offset){F.offset=g-F.v;var A=M9((parseFloat(X&&X._gsap.y)||0)-F.offset);X.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+A+", 0, 1)",X._gsap.y=A+"px",F.cacheID=a.cache,V1()}return!0}F.offset&&S(),Y=!0},P,T,h,f,x=function(){if(j(),P.isActive()&&P.vars.scrollY>z)F()>z?P.progress(1)&&F(z):P.resetTo("scrollY",z)};return X&&_.set(X,{y:"+=0"}),Z.ignoreCheck=function(b){return _1&&b.type==="touchmove"&&k(b)||O>1.05&&b.type!=="touchstart"||G.isGesturing||b.touches&&b.touches.length>1},Z.onPress=function(){Y=!1;var b=O;O=M9((e.visualViewport&&e.visualViewport.scale||1)/E),P.pause(),b!==O&&s$(L,O>1.01?!0:J?!1:"x"),T=M(),h=F(),j(),q=HJ},Z.onRelease=Z.onGestureStart=function(b,y){if(F.offset&&S(),!y)f.restart(!0);else{a.cache++;var g=I(),A,d;if(J)A=M(),d=A+g*0.05*-b.velocityX/0.227,g*=GQ(M,A,d,z1(L,W8)),P.vars.scrollX=B(d);if(A=F(),d=A+g*0.05*-b.velocityY/0.227,g*=GQ(F,A,d,z1(L,x0)),P.vars.scrollY=C(d),P.invalidate().duration(g).play(0.01),_1&&P.vars.scrollY>=z||A>=z-1)_.to({},{onUpdate:x,duration:g})}W&&W(b)},Z.onWheel=function(){if(P._ts&&P.pause(),H8()-V>1000)q=0,V=H8()},Z.onChange=function(b,y,g,A,d){if(HJ!==q&&j(),y&&J&&M(B(A[2]===y?T+(b.startX-b.x):M()+y-A[1])),g){F.offset&&S();var t=d[2]===g,n=t?h+b.startY-b.y:F()+g-d[1],u=C(n);t&&n!==u&&(h+=u-n),F(u)}(g||y)&&V1()},Z.onEnable=function(){if(s$(L,J?!1:"x"),m.addEventListener("refresh",x),m0(e,"resize",x),F.smooth)F.target.style.scrollBehavior="auto",F.smooth=M.smooth=!1;R.enable()},Z.onDisable=function(){s$(L,!0),u0(e,"resize",x),m.removeEventListener("refresh",x),R.kill()},Z.lockAxis=Z.lockAxis!==!1,G=new A0(Z),G.iOS=_1,_1&&!F()&&F(1),_1&&_.ticker.add(U1),f=G._dc,P=_.to(G,{ease:"power4",paused:!0,inherit:!1,scrollX:J?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:BQ(F,F(),function(){return P.pause()})},onUpdate:V1,onComplete:f.vars.onComplete}),G};m.sort=function(U){if(U8(U))return r.sort(U);var Z=e.pageYOffset||0;return m.getAll().forEach(function($){return $._sortY=$.trigger?Z+$.trigger.getBoundingClientRect().top:$.start+e.innerHeight}),r.sort(U||function($,J){return($.vars.refreshPriority||0)*-1e6+($.vars.containerAnimation?1e6:$._sortY)-((J.vars.containerAnimation?1e6:J._sortY)+(J.vars.refreshPriority||0)*-1e6)})};m.observe=function(U){return new A0(U)};m.normalizeScroll=function(U){if(typeof U>"u")return M8;if(U===!0&&M8)return M8.enable();if(U===!1){M8&&M8.kill(),M8=U;return}var Z=U instanceof A0?U:FG(U);return M8&&M8.target===Z.target&&M8.kill(),UJ(Z.target)&&(M8=Z),Z};m.core={_getVelocityProp:$Z,_inputObserver:CQ,_scrollers:a,_proxies:r8,bridge:{ss:function(){m8||LJ("scrollStart"),m8=H8()},ref:function(){return G8}}};MQ()&&_.registerPlugin(m);/*! * SplitText 3.13.0 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle */var C9,_J,z7,XG=()=>z7||BZ.register(window.gsap),SQ=typeof Intl<"u"?new Intl.Segmenter:0,jZ=(U)=>typeof U==="string"?jZ(document.querySelectorAll(U)):("length"in U)?Array.from(U):[U],kQ=(U)=>jZ(U).filter((Z)=>Z instanceof HTMLElement),L7=[],U7=function(){},MG=/\s+/g,AQ=new RegExp("\\p{RI}\\p{RI}|\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?(\\u{200D}\\p{Emoji}(\\p{EMod}|\\u{FE0F}\\u{20E3}?|[\\u{E0020}-\\u{E007E}]+\\u{E007F})?)*|.","gu"),PQ={left:0,top:0,width:0,height:0},TQ=(U,Z)=>{if(Z){let $=new Set(U.join("").match(Z)||L7),J=U.length,K,Q,W,G;if($.size)while(--J>-1){Q=U[J];for(W of $)if(W.startsWith(Q)&&W.length>Q.length){K=0,G=Q;while(W.startsWith(G+=U[J+ ++K])&&G.lengthwindow.getComputedStyle(U).display==="inline"&&(U.style.display="inline-block"),gJ=(U,Z,$)=>Z.insertBefore(typeof U==="string"?document.createTextNode(U):U,$),N7=(U,Z,$)=>{let J=Z[U+"sClass"]||"",{tag:K="div",aria:Q="auto",propIndex:W=!1}=Z,G=U==="line"?"block":"inline-block",z=J.indexOf("++")>-1,L=(N)=>{let H=document.createElement(K),X=$.length+1;if(J&&(H.className=J+(z?" "+J+X:"")),W&&H.style.setProperty("--"+U,X+""),Q!=="none"&&H.setAttribute("aria-hidden","true"),K!=="span")H.style.position="relative",H.style.display=G;return H.textContent=N,$.push(H),H};return z&&(J=J.replace("++","")),L.collection=$,L},OG=(U,Z,$,J)=>{let K=N7("line",$,J),Q=window.getComputedStyle(U).textAlign||"left";return(W,G)=>{let z=K("");z.style.textAlign=Q,U.insertBefore(z,Z[W]);for(;W{var N;let H=Array.from(U.childNodes),X=0,{wordDelimiter:F,reduceWhiteSpace:M=!0,prepareText:O}=Z,E=U.getBoundingClientRect(),V=E,I=!M&&window.getComputedStyle(U).whiteSpace.substring(0,3)==="pre",q=0,Y=$.collection,R,D,B,C,j,S,k,P,T,h,f,x,b,y,g,A,d,t;if(typeof F==="object")B=F.delimiter||F,D=F.replaceWith||"";else D=F===""?"":F||" ";R=D!==" ";for(;X-1)S=Y[Y.length-1],S.appendChild(document.createTextNode(J?"":A));else S=$(J?"":A),gJ(S,U,C),q&&T===1&&!k&&S.insertBefore(q,S.firstChild);if(J){f=SQ?TQ([...SQ.segment(A)].map((n)=>n.segment),z):A.match(G)||L7;for(t=0;tV.top&&h.left<=V.left){x=U.cloneNode(),b=U.childNodes[0];while(b&&b!==S)y=b,b=b.nextSibling,x.appendChild(y);U.parentNode.insertBefore(x,U),K&&wQ(x)}V=h}if(T=j.length?" ":R&&A.slice(-1)===" "?" "+D:D,U,C)}}U.removeChild(C),q=0}else if(C.nodeType===1){if(W&&W.indexOf(C)>-1)Y.indexOf(C.previousSibling)>-1&&Y[Y.length-1].appendChild(C),q=C;else fQ(C,Z,$,J,K,Q,W,G,z,!0),q=0;K&&wQ(C)}},hQ=class U{constructor(Z,$){this.isSplit=!1,XG(),this.elements=kQ(Z),this.chars=[],this.words=[],this.lines=[],this.masks=[],this.vars=$,this._split=()=>this.isSplit&&this.split(this.vars);let J=[],K,Q=()=>{let W=J.length,G;while(W--){G=J[W];let z=G.element.offsetWidth;if(z!==G.width){G.width=z,this._split();return}}};this._data={orig:J,obs:typeof ResizeObserver<"u"&&new ResizeObserver(()=>{clearTimeout(K),K=setTimeout(Q,200)})},U7(this),this.split($)}split(Z){this.isSplit&&this.revert(),this.vars=Z=Z||this.vars||{};let{type:$="chars,words,lines",aria:J="auto",deepSlice:K=!0,smartWrap:Q,onSplit:W,autoSplit:G=!1,specialChars:z,mask:L}=this.vars,N=$.indexOf("lines")>-1,H=$.indexOf("chars")>-1,X=$.indexOf("words")>-1,F=H&&!X&&!N,M=z&&("push"in z?new RegExp("(?:"+z.join("|")+")","gu"):z),O=M?new RegExp(M.source+"|"+AQ.source,"gu"):AQ,E=!!Z.ignore&&kQ(Z.ignore),{orig:V,animTime:I,obs:q}=this._data,Y;if(H||X||N)this.elements.forEach((R,D)=>{V[D]={element:R,html:R.innerHTML,ariaL:R.getAttribute("aria-label"),ariaH:R.getAttribute("aria-hidden")},J==="auto"?R.setAttribute("aria-label",(R.textContent||"").trim()):J==="hidden"&&R.setAttribute("aria-hidden","true");let B=[],C=[],j=[],S=H?N7("char",Z,B):null,k=N7("word",Z,C),P,T,h,f;if(fQ(R,Z,k,S,F,K&&(N||F),E,O,M,!1),N){let x=jZ(R.childNodes),b=OG(R,x,Z,j),y,g=[],A=0,d=x.map((n)=>n.nodeType===1?n.getBoundingClientRect():PQ),t=PQ;for(P=0;Pt.top&&d[P].left<=t.left)b(A,P),A=P;t=d[P]}A{var u;return(u=n.parentNode)==null?void 0:u.removeChild(n)})}if(!X){for(P=0;P{let D=R.cloneNode();return R.replaceWith(D),D.appendChild(R),R.className&&(D.className=R.className.replace(/(\b\w+\b)/g,"$1-mask")),D.style.overflow="clip",D}));if(this.isSplit=!0,_J&&(G?_J.addEventListener("loadingdone",this._split):_J.status==="loading"&&console.warn("SplitText called before fonts loaded")),(Y=W&&W(this))&&Y.totalTime)this._data.anim=I?Y.totalTime(I):Y;return N&&G&&this.elements.forEach((R,D)=>{V[D].width=R.offsetWidth,q&&q.observe(R)}),this}revert(){var Z,$;let{orig:J,anim:K,obs:Q}=this._data;if(Q&&Q.disconnect(),J.forEach(({element:W,html:G,ariaL:z,ariaH:L})=>{W.innerHTML=G,z?W.setAttribute("aria-label",z):W.removeAttribute("aria-label"),L?W.setAttribute("aria-hidden",L):W.removeAttribute("aria-hidden")}),this.chars.length=this.words.length=this.lines.length=J.length=this.masks.length=0,this.isSplit=!1,_J==null||_J.removeEventListener("loadingdone",this._split),K)this._data.animTime=K.totalTime(),K.revert();return($=(Z=this.vars).onRevert)==null||$.call(Z,this),this}static create(Z,$){return new U(Z,$)}static register(Z){if(C9=C9||Z||window.gsap,C9)jZ=C9.utils.toArray,U7=C9.core.context||U7;if(!z7&&window.innerWidth>0)_J=document.fonts,z7=!0}};hQ.version="3.13.0";var BZ=hQ;/*! * paths 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var qG=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,YG=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,EG=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,DG=/(^[#\.][a-z]|[a-y][a-z])/i,RG=Math.PI/180,IG=180/Math.PI,CZ=Math.sin,SZ=Math.cos,d8=Math.abs,j1=Math.sqrt,VG=Math.atan2,F7=1e8,xQ=function(Z){return typeof Z==="string"},gQ=function(Z){return typeof Z==="number"},jG=function(Z){return typeof Z>"u"},BG={},CG={},kZ=1e5,uQ=function(Z){return Math.round((Z+F7)%1*kZ)/kZ||(Z<0?0:1)},U0=function(Z){return Math.round(Z*kZ)/kZ||0},bQ=function(Z){return Math.round(Z*10000000000)/10000000000||0},vQ=function(Z,$,J,K){var Q=Z[$],W=K===1?6:X7(Q,J,K);if((W||!K)&&W+J+2$){while(--Q&&Z[Q]>$);Q<0&&(Q=0)}else while(Z[++Q]<$&&Q element or an SVG path data string"):xQ(U)?NJ(U):gQ(U[0])?[U]:U}function AG(U){var Z=[],$=0;for(;$-1)if(W=K[Q].nodeName.toLowerCase(),$.indexOf(","+W+",")<0)J.setAttributeNS(null,W,K[Q].nodeValue);return J},wG={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},fG=function(Z,$){var J=$?$.split(","):[],K={},Q=J.length;while(--Q>-1)K[J[Q]]=+Z.getAttribute(J[Q])||0;return K};function dQ(U,Z){var $=U.tagName.toLowerCase(),J=0.552284749831,K,Q,W,G,z,L,N,H,X,F,M,O,E,V,I,q,Y,R,D,B,C,j;if($==="path"||!U.getBBox)return U;if(L=TG(U,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),j=fG(U,wG[$]),$==="rect")if(G=j.rx,z=j.ry||G,Q=j.x,W=j.y,F=j.width-G*2,M=j.height-z*2,G||z)O=Q+G*(1-J),E=Q+G,V=E+F,I=V+G*J,q=V+G,Y=W+z*(1-J),R=W+z,D=R+M,B=D+z*J,C=D+z,K="M"+q+","+R+" V"+D+" C"+[q,B,I,C,V,C,V-(V-E)/3,C,E+(V-E)/3,C,E,C,O,C,Q,B,Q,D,Q,D-(D-R)/3,Q,R+(D-R)/3,Q,R,Q,Y,O,W,E,W,E+(V-E)/3,W,V-(V-E)/3,W,V,W,I,W,q,Y,q,R].join(",")+"z";else K="M"+(Q+F)+","+W+" v"+M+" h"+-F+" v"+-M+" h"+F+"z";else if($==="circle"||$==="ellipse"){if($==="circle")G=z=j.r,H=G*J;else G=j.rx,z=j.ry,H=z*J;Q=j.cx,W=j.cy,N=G*J,K="M"+(Q+G)+","+W+" C"+[Q+G,W+H,Q+N,W+z,Q,W+z,Q-N,W+z,Q-G,W+H,Q-G,W,Q-G,W-H,Q-N,W-z,Q,W-z,Q+N,W-z,Q+G,W-H,Q+G,W].join(",")+"z"}else if($==="line")K="M"+j.x1+","+j.y1+" L"+j.x2+","+j.y2;else if($==="polyline"||$==="polygon"){if(X=(U.getAttribute("points")+"").match(YG)||[],Q=X.shift(),W=X.shift(),K="M"+Q+","+W+" L"+X.join(","),$==="polygon")K+=","+Q+","+W+"z"}if(L.setAttribute("d",k9(L._gsRawPath=NJ(K))),Z&&U.parentNode)U.parentNode.insertBefore(L,U),U.parentNode.removeChild(U);return L}function cQ(U,Z,$){var J=U[Z],K=U[Z+2],Q=U[Z+4],W;return J+=(K-J)*$,K+=(Q-K)*$,J+=(K-J)*$,W=K+(Q+(U[Z+6]-Q)*$-K)*$-J,J=U[Z+1],K=U[Z+3],Q=U[Z+5],J+=(K-J)*$,K+=(Q-K)*$,J+=(K-J)*$,U0(VG(K+(Q+(U[Z+7]-Q)*$-K)*$-J,W)*IG)}function M7(U,Z,$){$=jG($)?1:bQ($)||0,Z=bQ(Z)||0;var J=Math.max(0,~~(d8($-Z)-0.00000001)),K=AG(U);if(Z>$)Z=1-Z,$=1-$,SG(K),K.totalLength=0;if(Z<0||$<0){var Q=Math.abs(~~Math.min(Z,$))+1;Z+=Q,$+=Q}K.totalLength||g1(K);var W=$>1,G=_Q(K,Z,BG,!0),z=_Q(K,$,CG),L=z.segment,N=G.segment,H=z.segIndex,X=G.segIndex,F=z.i,M=G.i,O=X===H,E=F===M&&O,V,I,q,Y,R,D,B,C;if(W||J){if(V=HH)&&K.splice(Y,1)}else L.angle=cQ(L,F+q,0),F+=q,G=L[F],z=L[F+1],L.length=L.totalLength=0,L.totalPoints=K.totalPoints=8,L.push(G,z,G,z,G,z,G,z);return K.totalLength=0,K}function hG(U,Z,$){if(Z=Z||0,!U.samples)U.samples=[],U.lookup=[];var J=~~U.resolution||12,K=1/J,Q=$?Z+$*6+1:U.length,W=U[Z],G=U[Z+1],z=Z?Z/6*J:0,L=U.samples,N=U.lookup,H=(Z?U.minLength:F7)||F7,X=L[z+$*J-1],F=Z?L[z-1]:0,M,O,E,V,I,q,Y,R,D,B,C,j,S,k,P,T,h;L.length=N.length=0;for(O=Z+2;O8)U.splice(O,6),O-=6,Q-=6}else for(M=1;M<=J;M++){if(k=K*M,S=1-k,q=Y-(Y=(k*k*E+3*S*(k*V+S*I))*k),C=j-(j=(k*k*R+3*S*(k*D+S*B))*k),T=j1(C*C+q*q),T=1)return 0;var J=U[Z],K=U[Z+1],Q=U[Z+2],W=U[Z+3],G=U[Z+4],z=U[Z+5],L=U[Z+6],N=U[Z+7],H=J+(Q-J)*$,X=Q+(G-Q)*$,F=K+(W-K)*$,M=W+(z-W)*$,O=H+(X-H)*$,E=F+(M-F)*$,V=G+(L-G)*$,I=z+(N-z)*$;return X+=(V-X)*$,M+=(I-M)*$,U.splice(Z+2,4,U0(H),U0(F),U0(O),U0(E),U0(O+(X-O)*$),U0(E+(M-E)*$),U0(X),U0(M),U0(V),U0(I)),U.samples&&U.samples.splice(Z/6*U.resolution|0,0,0,0,0,0,0,0),6}function _Q(U,Z,$,J){if($=$||{},U.totalLength||g1(U),Z<0||Z>1)Z=uQ(Z);var K=0,Q=U[0],W,G,z,L,N,H,X;if(!Z)X=H=K=0,Q=U[0];else if(Z===1)X=1,K=U.length-1,Q=U[K],H=Q.length-8;else{if(U.length>1){z=U.totalLength*Z,N=H=0;while((N+=U[H++].totalLength)1)Z=uQ(Z);if(K.lookup||g1(U),U.length>1){z=U.totalLength*Z,N=H=0;while((N+=U[H++].totalLength)=1?0.999999999:X?X:0.000000001):K.angle||0;return Q}function u1(U,Z,$,J,K,Q,W){var G=U.length,z,L,N,H,X;while(--G>-1){z=U[G],L=z.length;for(N=0;N1)$=j1(Y)*$,J=j1(Y)*J;var R=$*$,D=J*J,B=(R*D-R*q-D*I)/(R*q+D*I);if(B<0)B=0;var C=(Q===W?-1:1)*j1(B),j=C*($*V/J),S=C*-(J*E/$),k=(U+G)/2,P=(Z+z)/2,T=k+(N*j-H*S),h=P+(H*j+N*S),f=(E-j)/$,x=(V-S)/J,b=(-E-j)/$,y=(-V-S)/J,g=f*f+x*x,A=(x<0?-1:1)*Math.acos(f/j1(g)),d=(f*y-x*b<0?-1:1)*Math.acos((f*b+x*y)/j1(g*(b*b+y*y)));if(isNaN(d)&&(d=X),!W&&d>0)d-=F;else if(W&&d<0)d+=F;A%=F,d%=F;var t=Math.ceil(d8(d)/(F/4)),n=[],u=d/t,G0=1.3333333333333333*CZ(u/2)/(1+SZ(u/2)),$0=N*$,N0=H*$,F0=H*-J,L0=N*J,J0;for(J0=0;J0-0.0001?0:S}).match(qG)||[],$=[],J=0,K=0,Q=0.6666666666666666,W=Z.length,G=0,z="ERROR: malformed path: "+U,L,N,H,X,F,M,O,E,V,I,q,Y,R,D,B,C=function(S,k,P,T){I=(P-S)/3,q=(T-k)/3,O.push(S+I,k+q,P-I,T-q,P,T)};if(!U||!isNaN(Z[0])||isNaN(Z[1]))return console.log(z),$;for(L=0;L0.5||d8(K-X)>0.5){if(C(J,K,H,X),F==="L")L+=2}J=H,K=X}else if(F==="A"){if(D=Z[L+4],B=Z[L+5],I=Z[L+6],q=Z[L+7],N=7,D.length>1){if(D.length<3)q=I,I=B,N--;else q=B,I=D.substr(2),N-=2;B=D.charAt(1),D=D.charAt(0)}if(Y=xG(J,K,+Z[L+1],+Z[L+2],+Z[L+3],+D,+B,(M?J:0)+I*1,(M?K:0)+q*1),L+=N,Y)for(N=0;NL*(C*C+j*j))P=N.length,U(Z,$,X,F,I,q,D,B,L,N,H),U(D,B,Y,R,E,V,G,z,L,N,H+1+(N.length-P));return N},FJ=function(){function U($,J,K){sQ||lQ(),this.id=$,vG&&this.setData(J,K)}var Z=U.prototype;return Z.setData=function(J,K){K=K||{},J=J||"0,0,1,1";var Q=J.match(yG),W=1,G=[],z=[],L=K.precision||1,N=L<=1,H,X,F,M,O,E,V,I,q;if(this.data=J,_G.test(J)||~J.indexOf("M")&&J.indexOf("C")<0)Q=NJ(J)[0];if(H=Q.length,H===4)Q.unshift(0,0),Q.push(1,1),H=8;else if((H-2)%6)throw"Invalid CustomEase";if(+Q[0]!==0||+Q[H-2]!==1)uG(Q,K.height,K.originY);this.segment=Q;for(M=2;MI.x||I.y!==V.y&&I.x===V.x||V===I)&&V.x<=1){if(I.cx=V.x-I.x,I.cy=V.y-I.y,I.n=V,I.nx=V.x,N&&M>1&&Math.abs(I.cy/I.cx-G[M-2].cy/G[M-2].cx)>2)N=0;if(I.cxV||X===E-1)N.push(I,q),H=(O-q)/(M-I);I=M,q=O}N="M"+N.join(",")}return L&&L.setAttribute("d",N),N},U}();FJ.version="3.13.0";FJ.headless=!0;iQ()&&j8.registerPlugin(FJ);o.registerPlugin(m,BZ,FJ);class TZ{constructor(U="[data-split-inview]"){this.isInitialized=!1,this.scrollTriggers=[],this.splitInstances=new WeakMap,this.selector=U,FJ.create("smooth","0.215, 0.61, 0.355, 1")}async init(){if(this.isInitialized)return;await document.fonts.ready,this.initSplitInview(),this.isInitialized=!0}destroy(){this.scrollTriggers.forEach((U)=>U.kill()),this.scrollTriggers=[];for(let[U,Z]of this.splitInstances.entries())Z.revert(),this.splitInstances.delete(U);this.isInitialized=!1}refresh(){m.refresh()}initSplitInview(){let U=document.querySelectorAll(this.selector);if(!U.length)return;let Z=[];if(U.forEach((J)=>{if(J.dataset.splitInviewInitialized==="true")return;Array.from(J.children).forEach((Q)=>{if(Q.classList.contains("u-sr-only"))return;if(Q.tagName.toLowerCase()==="ul")return;if(Q.tagName.toLowerCase()==="p")this.addAccessibleFallback(Q);Z.push(Q)}),J.dataset.splitInviewInitialized="true"}),!Z.length)return;let $=new Map;Z.forEach((J)=>{$.set(J,J.getBoundingClientRect())}),Promise.resolve().then(()=>{Z.forEach((J)=>{let K=J.tagName.toLowerCase(),Q=this.getAnimationParams(K);if(this.splitInstances.has(J))this.splitInstances.get(J).revert();let W=BZ.create(J,{type:"lines",mask:"lines",tag:"span",linesClass:"split-line",aria:"hidden"});this.splitInstances.set(J,W),this.setupViewportAnimations(J,W,Q)})})}getAnimationParams(U){if(U.startsWith("h"))return{y:-120,duration:0.6,stagger:0.072,ease:"smooth"};if(U==="p")return{y:120,duration:0.6,stagger:0.072,ease:"smooth"};return{y:100,duration:0.55,stagger:0.06,ease:"smooth"}}setupViewportAnimations(U,Z,$){let J=o.matchMedia();J.add("(min-width: 992px)",()=>{let K=o.timeline({scrollTrigger:{trigger:U,toggleClass:"is-inview",start:"top 85%",once:!0}});return K.fromTo(Z.lines,{y:$.y},{y:0,duration:$.duration,stagger:$.stagger,ease:$.ease}),this.scrollTriggers.push(K.scrollTrigger),()=>{o.set(Z.lines,{clearProps:"all"})}}),J.add("(max-width: 991px)",()=>{return o.set(Z.lines,{y:0}),()=>o.set(Z.lines,{clearProps:"all"})})}addAccessibleFallback(U){let Z=U.textContent.trim();if(!Z)return;let $=document.createElement("span");$.className="u-sr-only",$.textContent=Z,U.parentNode.insertBefore($,U),U.setAttribute("aria-hidden","true")}}var KH={};K1(KH,{DotsAnimation:()=>bZ});/*! * matrix 3.13.0 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var B1,XJ,D7,hZ,A9,wZ,fZ,P9,t8="transform",E7=t8+"Origin",nQ,oQ=function(Z){var $=Z.ownerDocument||Z;if(!(t8 in Z.style)&&"msTransform"in Z.style)t8="msTransform",E7=t8+"Origin";while($.parentNode&&($=$.parentNode));if(XJ=window,fZ=new T9,$){B1=$,D7=$.documentElement,hZ=$.body,P9=B1.createElementNS("http://www.w3.org/2000/svg","g"),P9.style.transform="none";var J=$.createElement("div"),K=$.createElement("div"),Q=$&&($.body||$.firstElementChild);if(Q&&Q.appendChild)Q.appendChild(J),J.appendChild(K),J.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),nQ=K.offsetParent!==J,Q.removeChild(J)}return $},cG=function(Z){var $,J;while(Z&&Z!==hZ){if(J=Z._gsap,J&&J.uncache&&J.get(Z,"x"),J&&!J.scaleX&&!J.scaleY&&J.renderTransform)J.scaleX=J.scaleY=0.0001,J.renderTransform(1,J),$?$.push(J):$=[J];Z=Z.parentNode}return $},aQ=[],rQ=[],pG=function(){return XJ.pageYOffset||B1.scrollTop||D7.scrollTop||hZ.scrollTop||0},lG=function(){return XJ.pageXOffset||B1.scrollLeft||D7.scrollLeft||hZ.scrollLeft||0},R7=function(Z){return Z.ownerSVGElement||((Z.tagName+"").toLowerCase()==="svg"?Z:null)},sG=function U(Z){if(XJ.getComputedStyle(Z).position==="fixed")return!0;if(Z=Z.parentNode,Z&&Z.nodeType===1)return U(Z)},q7=function U(Z,$){if(Z.parentNode&&(B1||oQ(Z))){var J=R7(Z),K=J?J.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",Q=J?$?"rect":"g":"div",W=$!==2?0:100,G=$===3?100:0,z="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",L=B1.createElementNS?B1.createElementNS(K.replace(/^https/,"http"),Q):B1.createElement(Q);if($)if(!J){if(!A9)A9=U(Z),A9.style.cssText=z;L.style.cssText=z+"width:0.1px;height:0.1px;top:"+G+"px;left:"+W+"px",A9.appendChild(L)}else wZ||(wZ=U(Z)),L.setAttribute("width",0.01),L.setAttribute("height",0.01),L.setAttribute("transform","translate("+W+","+G+")"),wZ.appendChild(L);return L}throw"Need document and parent."},iG=function(Z){var $=new T9,J=0;for(;J1?iG(L):L.getItem(0).matrix,H=L.a*N.x+L.c*N.y,X=L.b*N.x+L.d*N.y;else L=new T9,H=X=0;if($&&Z.tagName.toLowerCase()==="g")H=X=0;(K?J:W).appendChild(z),z.setAttribute("transform","matrix("+L.a+","+L.b+","+L.c+","+L.d+","+(L.e+H)+","+(L.f+X)+")")}else{if(H=X=0,nQ){L=Z.offsetParent,N=Z;while(N&&(N=N.parentNode)&&N!==L&&N.parentNode)if((XJ.getComputedStyle(N)[t8]+"").length>4)H=N.offsetLeft,X=N.offsetTop,N=0}if(F=XJ.getComputedStyle(Z),F.position!=="absolute"&&F.position!=="fixed"){L=Z.offsetParent;while(W&&W!==L)H+=W.scrollLeft||0,X+=W.scrollTop||0,W=W.parentNode}N=z.style,N.top=Z.offsetTop-X+"px",N.left=Z.offsetLeft-H+"px",N[t8]=F[t8],N[E7]=F[E7],N.position=F.position==="fixed"?"fixed":"absolute",G.appendChild(z)}return z},Y7=function(Z,$,J,K,Q,W,G){return Z.a=$,Z.b=J,Z.c=K,Z.d=Q,Z.e=W,Z.f=G,Z},T9=function(){function U($,J,K,Q,W,G){if($===void 0)$=1;if(J===void 0)J=0;if(K===void 0)K=0;if(Q===void 0)Q=1;if(W===void 0)W=0;if(G===void 0)G=0;Y7(this,$,J,K,Q,W,G)}var Z=U.prototype;return Z.inverse=function(){var J=this.a,K=this.b,Q=this.c,W=this.d,G=this.e,z=this.f,L=J*W-K*Q||0.0000000001;return Y7(this,W/L,-K/L,-Q/L,J/L,(Q*z-W*G)/L,-(J*z-K*G)/L)},Z.multiply=function(J){var K=this.a,Q=this.b,W=this.c,G=this.d,z=this.e,L=this.f,N=J.a,H=J.c,X=J.b,F=J.d,M=J.e,O=J.f;return Y7(this,N*K+X*W,N*Q+X*G,H*K+F*W,H*Q+F*G,z+M*K+O*W,L+M*Q+O*G)},Z.clone=function(){return new U(this.a,this.b,this.c,this.d,this.e,this.f)},Z.equals=function(J){var K=this.a,Q=this.b,W=this.c,G=this.d,z=this.e,L=this.f;return K===J.a&&Q===J.b&&W===J.c&&G===J.d&&z===J.e&&L===J.f},Z.apply=function(J,K){if(K===void 0)K={};var{x:Q,y:W}=J,G=this.a,z=this.b,L=this.c,N=this.d,H=this.e,X=this.f;return K.x=Q*G+W*L+H||0,K.y=Q*z+W*N+X||0,K},U}();function MJ(U,Z,$,J){if(!U||!U.parentNode||(B1||oQ(U)).documentElement===U)return new T9;var K=cG(U),Q=R7(U),W=Q?aQ:rQ,G=oG(U,$),z=W[0].getBoundingClientRect(),L=W[1].getBoundingClientRect(),N=W[2].getBoundingClientRect(),H=G.parentNode,X=!J&&sG(U),F=new T9((L.left-z.left)/100,(L.top-z.top)/100,(N.left-z.left)/100,(N.top-z.top)/100,z.left+(X?0:lG()),z.top+(X?0:pG()));if(H.removeChild(G),K){z=K.length;while(z--)L=K[z],L.scaleX=L.scaleY=0,L.renderTransform(1,L)}return Z?F.inverse():F}/*! * MotionPathPlugin 3.13.0 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com */var aG="x,translateX,left,marginLeft,xPercent".split(","),rG="y,translateY,top,marginTop,yPercent".split(","),tG=Math.PI/180,c8,Z6,uJ,V7,I7,tQ,eG=function(){return c8||typeof window<"u"&&(c8=window.gsap)&&c8.registerPlugin&&c8},w9=function(Z,$,J,K){var Q=$.length,W=K===2?0:K,G=0,z;for(;G1)Z=1;else if(Z<0)Z=0;while(K--)O7(J[K],Z,!K&&$.rotate,J[K]);while(Q)Q.set(Q.t,Q.p,Q.path[Q.pp]+Q.u,Q.d,Z),Q=Q._next;$.rotate&&$.rSet($.target,$.rProp,J[0].angle*($.radians?tG:1)+$.rOffset+$.ru,$,Z)}else $.styles.revert()},getLength:function(Z){return g1(S9(Z)).totalLength},sliceRawPath:M7,getRawPath:S9,pointsToSegment:AZ,stringToRawPath:NJ,rawPathToString:k9,transformRawPath:u1,getGlobalMatrix:MJ,getPositionOnPath:O7,cacheRawPathMeasurements:g1,convertToPath:function(Z,$){return V7(Z).map(function(J){return dQ(J,$!==!1)})},convertCoordinates:function(Z,$,J){var K=MJ($,!0,!0).multiply(MJ(Z));return J?K.apply(J):K},getAlignMatrix:j7,getRelativePosition:function(Z,$,J,K){var Q=j7(Z,$,J,K);return{x:Q.e,y:Q.f}},arrayToRawPath:function(Z,$){$=$||{};var J=w9(w9([],Z,$.x||"x",0),Z,$.y||"y",1);return $.relative&&$6(J),[$.type==="cubic"?J:AZ(J,$.curviness)]}};eG()&&c8.registerPlugin(B7);o.registerPlugin(B7);class bZ{constructor(U="[data-dots]"){this.isInitialized=!1,this.dots=new Map,this.prefersReducedMotion=!1,this.selector=U}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initDots(),this.isInitialized=!0}initDots(){document.querySelectorAll(this.selector).forEach((U,Z)=>{if(this.dots.has(U))this.destroyDot(U);let $=new Q6(U,Z,{prefersReducedMotion:this.prefersReducedMotion});this.dots.set(U,$)})}destroyDot(U){let Z=this.dots.get(U);if(Z)Z.destroy(),this.dots.delete(U)}destroy(){this.dots.forEach((U,Z)=>{this.destroyDot(Z)}),this.isInitialized=!1}}class Q6{constructor(U,Z,$={}){this.container=U,this.index=Z,this.options=$,this.timelines=[],this.svgElements=[],this.circles=this.getDefaultCircles(),this.colors=["#7D00FF","#7D00FF"],this.numDots=5,this.init()}init(){if(this.options.prefersReducedMotion)return;let U=this.container.getAttribute("data-dots-count");if(U)this.numDots=parseInt(U,10);let Z=this.container.getAttribute("data-dots-colors");if(Z)this.colors=Z.split(",").map((J)=>J.trim());let $=this.container.getAttribute("data-dots-circles");if($)try{this.circles=JSON.parse($)}catch(J){console.warn("Invalid circles data, using defaults")}this.setupDots()}getDefaultCircles(){return[{cx:690.183,cy:690.183,r:513.183},{cx:689.496,cy:689.496,r:466.496},{cx:690.421,cy:690.421,r:428.421},{cx:690.406,cy:690.406,r:392.406},{cx:689.896,cy:689.896,r:356.896},{cx:689.954,cy:689.954,r:316.954},{cx:690.305,cy:690.305,r:280.305},{cx:690.293,cy:690.293,r:242.293},{cx:689.958,cy:689.958,r:208.958},{cx:690.345,cy:690.345,r:167.345},{cx:689.94,cy:689.94,r:129.94},{cx:690.259,cy:690.259,r:95.2588},{cx:689.758,cy:689.758,r:65.7582},{cx:690.089,cy:690.089,r:40.0886},{cx:690.178,cy:690.178,r:14.178},{cx:689.643,cy:689.643,r:587.643},{cx:690.372,cy:690.372,r:621.372},{cx:689.846,cy:689.846,r:654.846},{cx:689.944,cy:689.944,r:689.944},{cx:689.53,cy:689.53,r:552.53}]}setupDots(){let U=this.container.querySelector("svg");if(!U){console.warn("No SVG element found in container");return}this.revealCircles(U).then(()=>{this.createDotElements(U)})}revealCircles(U){return new Promise((Z)=>{let $=Array.from(U.querySelectorAll("circle"));if($.length===0){Z();return}let J=$.map((Q)=>({element:Q,radius:parseFloat(Q.getAttribute("r"))||0})).sort((Q,W)=>Q.radius-W.radius);J.forEach(({element:Q})=>{let W=parseFloat(Q.getAttribute("cx"))||0,G=parseFloat(Q.getAttribute("cy"))||0;o.set(Q,{transformOrigin:`${W}px ${G}px`,scale:0,opacity:0})});let K=o.timeline({onComplete:Z});J.forEach(({element:Q},W)=>{K.to(Q,{scale:1,opacity:1,duration:1.6,ease:"expo.out"},W*0.04)}),this.timelines.push(K)})}createDotElements(U){let Z=U.querySelector("[data-dots-container]");if(!Z)Z=document.createElementNS("http://www.w3.org/2000/svg","g"),Z.setAttribute("data-dots-container",""),U.appendChild(Z);this.selectRandomCircles(this.numDots).forEach((J,K)=>{this.createDot(Z,J,K)})}selectRandomCircles(U){let Z=this.circles.map((K,Q)=>({...K,originalIndex:Q})).filter((K)=>K.r>300),$=[],J=new Set;while($.length{if(U)U.kill()}),this.timelines=[],this.svgElements.forEach((U)=>{if(U&&U.parentNode)U.parentNode.removeChild(U)}),this.svgElements=[]}}var QH={};K1(QH,{PurposeProgress:()=>vZ});class vZ{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.purposeSVGs=o.utils.toArray(".purpose_card_svg"),this.purposeContents=o.utils.toArray(".purpose_card_content"),this.purposeDot=document.querySelector(".purpose_progress_dot")}init(){if(this.isInitialized)return;o.registerPlugin(m),this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup(),this.timeline=o.timeline().set(this.purposeSVGs,{color:"#DFDFDF"}).set(this.purposeContents,{opacity:0.5}).fromTo(".purpose_progress_line",{height:"0%"},{height:"100%",transformOrigin:"top center",duration:1,ease:"power1.out"}).to(this.purposeSVGs[0],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0).to(this.purposeSVGs[0].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},0).to(this.purposeContents[0],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[1],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.1).to(this.purposeSVGs[1].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[1],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeSVGs[2],{color:"var(--swatch--brand-500)",duration:0.2,ease:"power2.out"},0.4).to(this.purposeSVGs[2].querySelector("path"),{stroke:"#FFFFFF",duration:0.2,ease:"power2.out"},"<").to(this.purposeContents[2],{opacity:1,duration:0.2,ease:"power2.out"},"<").to(this.purposeDot,{scale:0,marginTop:"-1rem",duration:0.2,ease:"power2.out"},">.1");let U=m.create({trigger:".purpose_progress_wrap",start:"top 55%",end:"bottom center",scrub:!0,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{m.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(U,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,U.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var WH={};K1(WH,{LiquidityProgress:()=>yZ});class yZ{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.isMobile=!1,this.animatedLines=document.querySelector(".animated-lines"),this.animatedTags=document.querySelector(".animated-tags"),this.tagGroups=o.utils.toArray(".animated-tags > g"),this.mobileLines=document.querySelector("#liquidityLinesMobile"),this.mobileGroups=o.utils.toArray("#liquidityLinesMobile > g")}init(){if(this.isInitialized)return;o.registerPlugin(m),this.checkViewport(),this.initAnimation(),this.bindResize(),this.isInitialized=!0}checkViewport(){this.isMobile=window.innerWidth<=479}initAnimation(){if(this.cleanup(),this.checkViewport(),this.isMobile)this.initMobileAnimation();else this.initDesktopAnimation()}initDesktopAnimation(){if(!this.animatedLines)return;this.timeline=o.timeline().fromTo(this.animatedLines,{webkitMaskPosition:"0% 100%",maskPosition:"0% 100%"},{webkitMaskPosition:"0% 0%",maskPosition:"0% 0%",duration:1,ease:"power2.inOut"}),this.scrollTrigger=m.create({trigger:"#liquiditySection",start:"top 100%",end:"bottom 40%",scrub:1,animation:this.timeline})}initMobileAnimation(){let U=document.querySelector(".liquidity_mobile_mask");if(!U)return;this.timeline=o.timeline().fromTo(U,{clipPath:"inset(0% 0% 100% 0%)"},{clipPath:"inset(0% 0% 0% 0%)",duration:1,ease:"power2.inOut"}),this.scrollTrigger=m.create({trigger:"#liquiditySection",start:"top 50%",end:"bottom 80%",scrub:1,animation:this.timeline})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let U=this.isMobile;if(this.checkViewport(),U!==this.isMobile)m.refresh(),this.initAnimation()},250),window.addEventListener("resize",this.resizeHandler)}debounceResize(U,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,U.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1}}var GH={};K1(GH,{Counter:()=>_Z});o.registerPlugin(m);class _Z{constructor(){this.isInitialized=!1,this.counters=[]}init(){if(this.isInitialized)return;let U=document.querySelectorAll("[data-counter]");if(U.length===0)return;U.forEach((Z,$)=>{this.setupCounter(Z,$)}),this.isInitialized=!0}setupCounter(U,Z){let $=U.textContent.trim();if(!this.isValidNumber($))return;let J={element:U,finalNumber:$,originalValue:this.parseNumberValue($),currentValue:0,hasDecimal:$.includes("."),decimalPlaces:this.getDecimalPlaces($),scrollTrigger:null};if(J.hasDecimal)J.element.textContent=0 .toFixed(J.decimalPlaces);else{let K=Math.floor(J.originalValue).toString().length;J.element.textContent=this.formatNumberWithLeadingZeros(0,K)}this.counters.push(J),this.setupScrollTrigger(J,Z)}isValidNumber(U){return/^[\d,\.+]+$/.test(U)}getDecimalPlaces(U){let Z=U.split(".");return Z.length>1?Z[1].replace(/,/g,"").length:0}parseNumberValue(U){let Z=U.replace(/[,+]/g,"");return parseFloat(Z)}formatNumberWithLeadingZeros(U,Z){return U.toString().padStart(Z,"0").replace(/\B(?=(\d{3})+(?!\d))/g,",")}setupScrollTrigger(U,Z){U.scrollTrigger=m.create({trigger:U.element,start:"top 80%",markers:!1,onEnter:()=>this.animateCounter(U),once:!0})}animateCounter(U){U.currentValue=0,o.to(U,{currentValue:U.originalValue,duration:2,ease:"power2.out",onUpdate:()=>{if(U.hasDecimal)U.element.textContent=U.currentValue.toFixed(U.decimalPlaces);else{let Z=Math.floor(U.currentValue),$=Math.floor(U.originalValue).toString().length;U.element.textContent=this.formatNumberWithLeadingZeros(Z,$)}}})}destroy(){this.counters.forEach((U)=>{if(U.scrollTrigger)U.scrollTrigger.kill(),U.scrollTrigger=null;U.element.textContent=U.finalNumber}),this.counters=[],this.isInitialized=!1}refresh(){m.refresh()}toggle(U=!0){this.counters.forEach((Z)=>{if(Z.scrollTrigger)if(U)Z.scrollTrigger.enable();else Z.scrollTrigger.disable()})}}var HH={};K1(HH,{CardBorder:()=>gZ});class gZ{constructor(){this.isInitialized=!1,this.cards=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches,this.initCards(),this.isInitialized=!0}initCards(){document.querySelectorAll("[data-card-border]").forEach((U,Z)=>{if(this.cards.has(U))this.destroyCard(U);let $=new W6(U,Z,{prefersReducedMotion:this.prefersReducedMotion});this.cards.set(U,$)})}destroyCard(U){let Z=this.cards.get(U);if(Z)Z.destroy(),this.cards.delete(U)}destroy(){this.cards.forEach((U,Z)=>{this.destroyCard(Z)}),this.isInitialized=!1}}class W6{constructor(U,Z,$={}){this.container=U,this.index=Z,this.options=$,this.boundMouseMove=null,this.boundRecalc=null,this.rect=null,this.init()}init(){if(this.options.prefersReducedMotion)return;this.recalculateRect(),this.setupTracking(),this.setupResizeObserver()}recalculateRect(){this.rect=this.container.getBoundingClientRect()}setupResizeObserver(){this.boundRecalc=()=>this.recalculateRect(),window.addEventListener("resize",this.boundRecalc),window.addEventListener("scroll",this.boundRecalc,{passive:!0})}setupTracking(){this.boundMouseMove=this.handleMouseMove.bind(this),this.container.addEventListener("mousemove",this.boundMouseMove,{passive:!0})}handleMouseMove(U){if(!this.rect)return;let Z=(U.clientX-this.rect.left)/this.rect.width*100,$=(U.clientY-this.rect.top)/this.rect.height*100;this.container.style.setProperty("--_x",Math.round(Z)+"%"),this.container.style.setProperty("--_y",Math.round($)+"%")}destroy(){if(this.boundMouseMove)this.container.removeEventListener("mousemove",this.boundMouseMove),this.boundMouseMove=null;if(this.boundRecalc)window.removeEventListener("resize",this.boundRecalc),window.removeEventListener("scroll",this.boundRecalc),this.boundRecalc=null;this.container.style.removeProperty("--_x"),this.container.style.removeProperty("--_y")}}var UH={};K1(UH,{CoinsGravity:()=>uZ});var C1=X6(G6());class uZ{constructor(){this.isInitialized=!1,this.gravities=new Map,this.prefersReducedMotion=!1}init(){if(this.isInitialized)return;this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let U=window.innerWidth<=768;this.initGravities(U),this.isInitialized=!0}initGravities(U){document.querySelectorAll("[data-gravity]").forEach(($,J)=>{if(this.gravities.has($))this.destroyGravity($);let K=new H6($,J,{prefersReducedMotion:this.prefersReducedMotion,isMobile:U});this.gravities.set($,K)})}triggerJump(U){this.gravities.forEach((Z)=>{Z.jump(U)})}destroyGravity(U){let Z=this.gravities.get(U);if(Z)Z.destroy(),this.gravities.delete(U)}destroy(){this.gravities.forEach((U,Z)=>{this.destroyGravity(Z)}),this.isInitialized=!1}}class H6{constructor(U,Z,$={}){this.container=U,this.index=Z,this.options=$,this.engine=null,this.render=null,this.runner=null,this.world=null,this.mouse=null,this.mouseConstraint=null,this.boundaries=[],this.coinBodies=[],this.oldWidth=0,this.oldHeight=0,this.isVisible=!1,this.hasInitialized=!1,this.handleResize=this.handleResize.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.click=!1,this.config=this.getConfiguration(),this.setupIntersectionObserver()}getConfiguration(){let U=parseFloat(this.container.getAttribute("data-gravity-x"))||0,Z=parseFloat(this.container.getAttribute("data-gravity-y"))||2,$=parseFloat(this.container.getAttribute("data-duplication-factor"))||2.5;return{gravityX:U,gravityY:Z,duplicationFactor:$,baseCoins:this.getBaseCoins()}}getBaseCoins(){let U=this.options.isMobile||!1,Z=U?100:144,$=U?102:146;return[this.createCoin("TBTC",Z,Z,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0f20cc3fcd96decab7f7_tbtc.svg"),this.createCoin("BTC",$,$,"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68dc0dca7fd5ce90b30e8acb_btc.svg")]}createCoin(U,Z,$,J){return{text:U,width:Z,height:$,url:J}}setupIntersectionObserver(){let U={root:null,rootMargin:"0px",threshold:0.4};this.observer=new IntersectionObserver((Z)=>{Z.forEach(($)=>{if($.isIntersecting&&!this.hasInitialized)this.isVisible=!0,this.init(),this.hasInitialized=!0;else if($.isIntersecting&&this.hasInitialized)this.isVisible=!0,this.resume();else this.isVisible=!1,this.pause()})},U),this.observer.observe(this.container)}pause(){if(this.runner&&this.engine)this.runner.enabled=!1}resume(){if(this.runner&&this.engine)this.runner.enabled=!0}init(){if(this.options.prefersReducedMotion)return;let{Engine:U,Render:Z,MouseConstraint:$,Mouse:J,World:K,Bodies:Q,Runner:W}=C1.default;this.engine=U.create(),this.world=this.engine.world,this.engine.gravity.x=this.config.gravityX,this.engine.gravity.y=this.config.gravityY,this.engine.positionIterations=10,this.engine.velocityIterations=8,this.engine.constraintIterations=4;let G=this.container.clientWidth,z=this.container.clientHeight;if(G===0||z===0){console.error("Container has no dimensions!");return}this.oldWidth=G,this.oldHeight=z,this.render=Z.create({element:this.container,engine:this.engine,options:{width:G,height:z,pixelRatio:2,background:"transparent",wireframes:!1}}),this.createBoundaries();let L=this.prepareCoins();this.preloadImages(L).then(()=>{this.createCoinBodies(L),this.runner=W.create(),W.run(this.runner,this.engine),Z.run(this.render)}).catch((N)=>{console.error("Failed to load images:",N)}),this.setupMouseInteraction(),window.addEventListener("resize",this.handleResize),document.addEventListener("mousedown",this.onMouseDown),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}createBoundaries(){let{World:U,Bodies:Z}=C1.default,$=this.container.clientWidth,J=this.container.clientHeight;this.boundaries.forEach((N)=>U.remove(this.world,N)),this.boundaries=[];let K=(N,H,X,F,M={})=>{return Z.rectangle(N,H,X,F,{isStatic:!0,restitution:0.3,friction:0.1,...M})},Q=100,W=K($/2,J+Q/2,$+Q*2,Q,{render:{fillStyle:"transparent"}}),G=K(-Q/2,J/2,Q,J+Q*2,{render:{fillStyle:"transparent"}}),z=K($+Q/2,J/2,Q,J+Q*2,{render:{fillStyle:"transparent"}}),L=K($/2,-Q/2,$+Q*2,Q,{render:{fillStyle:"transparent"}});this.boundaries.push(W,G,z,L),U.add(this.world,this.boundaries)}prepareCoins(){let U=[];for(let Z=0;Z{U.push({...$})});return U}preloadImages(U){return Promise.all(U.map((Z)=>new Promise(($,J)=>{let K=new Image;K.onload=()=>$(K),K.onerror=()=>{console.error(`Failed to load image: ${Z.url}`),J(Error(`Image load error for ${Z.url}`))},K.src=Z.url})))}createCoinBodies(U){let{World:Z,Bodies:$}=C1.default,J=this.container.clientWidth,K=this.container.clientHeight;this.coinBodies=U.map((Q)=>{let W=this.getRandomPosition(J,K/2),G=this.getRandomVelocity(),z=144,L=Q.width/144,N=$.rectangle(W.x,W.y,Q.width,Q.height,{chamfer:{radius:20},render:{sprite:{texture:Q.url,xScale:L,yScale:L}},restitution:0.6,friction:0.05,frictionAir:0.02,density:0.001,slop:0.05});return C1.default.Body.setVelocity(N,G),N}),Z.add(this.world,this.coinBodies)}getRandomPosition(U,Z){return{x:Math.random()*U,y:Math.random()*Z}}getRandomVelocity(){return{x:(Math.random()-0.5)*4,y:(Math.random()-0.5)*4}}setupMouseInteraction(){let{MouseConstraint:U,Mouse:Z,World:$}=C1.default;this.mouse=Z.create(this.render.canvas),this.mouseConstraint=U.create(this.engine,{mouse:this.mouse,constraint:{stiffness:0.2,render:{visible:!1}}}),$.add(this.world,this.mouseConstraint),this.render.mouse=this.mouse,this.removeDefaultMouseEvents()}removeDefaultMouseEvents(){if(this.mouse&&this.mouse.element)this.mouse.element.removeEventListener("mousewheel",this.mouse.mousewheel),this.mouse.element.removeEventListener("DOMMouseScroll",this.mouse.mousewheel)}onMouseDown(){this.click=!0}onMouseMove(){this.click=!1}onMouseUp(){}handleResize(){this.resizeCanvas(),this.scaleBodiesToFit(),this.createBoundaries()}resizeCanvas(){this.oldWidth=this.render.options.width,this.oldHeight=this.render.options.height;let U=this.container.clientWidth,Z=this.container.clientHeight;this.render.canvas.width=U*this.render.options.pixelRatio,this.render.canvas.height=Z*this.render.options.pixelRatio,this.render.canvas.style.width=`${U}px`,this.render.canvas.style.height=`${Z}px`,this.render.options.width=U,this.render.options.height=Z}scaleBodiesToFit(){let{Body:U}=C1.default;if(!this.oldWidth||!this.oldHeight)return;let Z=this.container.clientWidth,$=this.container.clientHeight,J=Z/this.oldWidth,K=$/this.oldHeight;this.coinBodies.forEach((Q)=>{U.scale(Q,J,K);let W=Q.position.x*J,G=Q.position.y*K;U.setPosition(Q,{x:W,y:G})})}jump(U=15){if(!this.engine||!this.coinBodies.length)return;let{Body:Z}=C1.default;this.coinBodies.forEach(($)=>{let J=(Math.random()-0.5)*15;Z.setVelocity($,{x:$.velocity.x+J,y:-U})})}destroy(){let{World:U,Render:Z,Runner:$,Engine:J}=C1.default;if(this.observer)this.observer.disconnect(),this.observer=null;if(window.removeEventListener("resize",this.handleResize),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.removeDefaultMouseEvents(),this.runner)$.stop(this.runner),this.runner=null;if(this.render){if(Z.stop(this.render),this.render.canvas)this.render.canvas.remove();this.render=null}if(this.world)U.clear(this.world,!1),this.world=null;if(this.engine)J.clear(this.engine),this.engine=null;this.coinBodies=[],this.boundaries=[],this.mouse=null,this.mouseConstraint=null}}var zH={};K1(zH,{LogosWheel:()=>mZ});o.registerPlugin(m);class mZ{constructor(){this.isInitialized=!1,this.scrollTrigger=null,this.timeline=null,this.resizeHandler=null,this.wheelCards=o.utils.toArray(".wheel_card_wrap"),this.currentBreakpoint=null}init(){if(this.isInitialized)return;this.initAnimation(),this.bindResize(),this.isInitialized=!0}initAnimation(){this.cleanup();let Z=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint===Z&&this.timeline)return;this.currentBreakpoint=Z;let $=document.querySelector("#wheelPath"),J=document.querySelector("#wheelSection");if(!$||!J){console.warn("wheelPath or wheelSection not found");return}requestAnimationFrame(()=>{let K=$.getBBox(),Q=$.ownerSVGElement,W=Q.getBoundingClientRect(),G=J.getBoundingClientRect(),z=Q.viewBox.baseVal,L=W.width/z.width,N=W.height/z.height,H=K.width/2*L,X=(K.x+K.width/2)*L+(W.left-G.left),F=(K.y+K.height/2)*N+(W.top-G.top),M=this.wheelCards.length,O=-Math.PI/2,E=(V,I)=>{let q=V/M*Math.PI*2+O+I;return{x:Math.cos(q)*H+X,y:Math.sin(q)*H+F}};requestAnimationFrame(()=>{o.set(this.wheelCards,{position:"absolute",left:0,top:0,xPercent:-50,yPercent:-50,rotation:0,force3D:!0}),this.wheelCards.forEach((I,q)=>{let Y=E(q,0);o.set(I,{x:Y.x,y:Y.y,force3D:!0})}),this.timeline=o.timeline({defaults:{ease:"none"}});let V=36;for(let I=1;I<=V;I++){let q=I/V*Math.PI*2;this.timeline.to(this.wheelCards,{duration:1/V,x:(Y)=>E(Y,q).x,y:(Y)=>E(Y,q).y,force3D:!0})}this.scrollTrigger=m.create({trigger:"#wheelSection",start:"top 50%",end:"bottom top",scrub:2,animation:this.timeline,fastScrollEnd:!0})})})}bindResize(){this.resizeHandler=this.debounceResize(()=>{let Z=window.innerWidth<=768?"mobile":"desktop";if(this.currentBreakpoint!==Z)this.initAnimation();else m.refresh()},250),window.addEventListener("resize",this.resizeHandler,{passive:!0})}debounceResize(U,Z){let $=innerWidth,J;return function(...K){clearTimeout(J),J=setTimeout(()=>{if(innerWidth!==$)$=innerWidth,U.apply(this,K)},Z)}}cleanup(){if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null;if(this.timeline)this.timeline.kill(),this.timeline=null;o.set(this.wheelCards,{clearProps:"all"})}destroy(){if(this.cleanup(),this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null;this.isInitialized=!1,this.currentBreakpoint=null}}var LH={};K1(LH,{Accordion:()=>dZ});o.registerPlugin(m);class dZ{constructor(){this.isInitialized=!1,this.accordions=new Map}init(){if(this.isInitialized)return;this.initAccordions(),this.isInitialized=!0}initAccordions(){document.querySelectorAll(".accordion_wrap").forEach((U,Z)=>{if(this.accordions.has(U))this.destroyAccordion(U);let $=new U6(U,Z);this.accordions.set(U,$)})}destroyAccordion(U){let Z=this.accordions.get(U);if(Z)Z.destroy(),this.accordions.delete(U)}destroy(){this.accordions.forEach((U,Z)=>{this.destroyAccordion(Z)}),this.isInitialized=!1}}class U6{constructor(U,Z){this.container=U,this.index=Z,this.timelines=[],this.closeFunctions=[],this.previousIndex=null,this.closePrevious=U.getAttribute("data-close-previous")!=="false",this.closeOnSecondClick=U.getAttribute("data-close-on-second-click")!=="false",this.openOnHover=U.getAttribute("data-open-on-hover")==="true";let $=U.getAttribute("data-open-by-default");this.openByDefault=$!==null&&!isNaN(+$)?+$:!1,this.list=U.querySelector(".accordion_list"),this.init()}init(){this.removeCMSList(),this.setupAccordionItems()}removeCMSList(){if(!this.list)return;let U=Array.from(this.list.children).find((J)=>J.classList.contains("w-dyn-list"));if(!U)return;let Z=U?.firstElementChild?.children;if(!Z)return;let $=[...this.list.children];[...Z].forEach((J)=>{if(J.firstElementChild)this.list.appendChild(J.firstElementChild)}),$.forEach((J)=>J.remove())}setupAccordionItems(){this.container.querySelectorAll(".accordion_component").forEach((U,Z)=>{U.style.setProperty("--_state---false","0");let $=U.querySelector(".accordion_toggle_button"),J=U.querySelector(".accordion_content_wrap");if(!$||!J){console.warn("Missing elements:",U);return}this.setupAccordionItem(U,$,J,Z)})}setupAccordionItem(U,Z,$,J){let K=`accordion_button_${this.index}_${J}`,Q=`accordion_content_${this.index}_${J}`;Z.setAttribute("aria-expanded","false"),Z.setAttribute("id",K),Z.setAttribute("aria-controls",Q),$.setAttribute("id",Q),$.setAttribute("aria-labelledby",K),$.style.display="none";let W=()=>{if(G.invalidate(),typeof m<"u")m.refresh()},G=o.timeline({paused:!0,defaults:{duration:0.3,ease:"power1.inOut"},onComplete:W,onReverseComplete:W});G.set($,{display:"block"}),G.fromTo($,{height:0},{height:"auto"}),this.timelines.push(G);let z=()=>{if(U.classList.contains("is-active"))U.classList.remove("is-active"),G.reverse(),Z.setAttribute("aria-expanded","false"),U.style.setProperty("--_state---false","0")};this.closeFunctions[J]=z;let L=(N=!1)=>{if(this.closePrevious&&this.previousIndex!==null&&this.previousIndex!==J)this.closeFunctions[this.previousIndex]?.();if(this.previousIndex=J,Z.setAttribute("aria-expanded","true"),U.classList.add("is-active"),U.style.setProperty("--_state---false","1"),N)G.progress(1);else G.play()};if(this.openByDefault===J+1)L(!0);if(Z.addEventListener("click",()=>{if(window.dispatchEvent(new CustomEvent("accordion:toggle",{detail:{force:15}})),U.classList.contains("is-active")&&this.closeOnSecondClick)z(),this.previousIndex=null;else L()}),this.openOnHover)Z.addEventListener("mouseenter",()=>L())}destroy(){this.timelines.forEach((U)=>{if(U)U.kill()}),this.timelines=[],this.closeFunctions=[]}}var XH={};K1(XH,{CoinsAnimation:()=>cZ});var NH=(()=>{let U=document.currentScript?.src;if(!U)return window.location.origin;return new URL(U).origin})(),FH=new URL("/public/rive-canvas-lite-loader.js",NH).href;class cZ{constructor(U,Z,$=0.8,J="top 0%",K="bottom top"){this.canvasId=U,this.sectionId=Z,this.rive=null,this.canvas=null,this.speedProperty=null,this.baseSpeed=$,this.currentSpeed=$,this.targetSpeed=$,this.lastScrollTime=Date.now(),this.observer=null,this.isVisible=!1,this.animationFrameId=null,this.startTrigger=J,this.endTrigger=K,this.isDestroyed=!1,this.scrollTrigger=null}init(){if(this.isDestroyed=!1,o.registerPlugin(m),this.canvas=document.getElementById(this.canvasId),!this.canvas)return console.warn(`Canvas #${this.canvasId} not found`),!1;return this.setupHighDPICanvas(),this.setupRive().catch((U)=>{console.warn(`Failed to initialize Rive canvas #${this.canvasId}`,U)}),this.setupIntersectionObserver(),!0}setupHighDPICanvas(){this.canvas.style.width="100%",this.canvas.style.height="100%",this.canvas.style.display="block",this.canvas.style.objectFit="contain"}setupIntersectionObserver(){this.observer=new IntersectionObserver((U)=>{U.forEach((Z)=>{if(this.isVisible=Z.isIntersecting,this.rive)if(Z.isIntersecting)this.rive.play();else this.rive.pause()})},{threshold:0.1}),this.observer.observe(this.canvas)}async setupRive(){let{loadRive:U}=await import(FH),Z=await U();if(this.isDestroyed||!this.canvas)return;this.rive=new Z.Rive({src:"https://cdn.prod.website-files.com/68da6f24db5fedbdab2e7d56/68e1788e590408f8a05d1655_threshold_10.riv",canvas:this.canvas,layoutScaleFactor:1,artboard:"main",stateMachines:"stateMachine",autoplay:!0,autoBind:!0,useOffscreenRenderer:!0,layout:new Z.Layout({fit:Z.Fit.Contain,alignment:"center"}),onLoad:()=>{if(this.isDestroyed||!this.rive)return;this.rive.resizeDrawingSurfaceToCanvas();let $=this.rive.viewModelInstance;this.speedProperty=$.number("speed"),this.speedProperty.value=this.baseSpeed,this.setupScrollTrigger(),this.startSpeedLerp()}})}setupScrollTrigger(){this.scrollTrigger=m.create({trigger:`#${this.sectionId}`,start:this.startTrigger,end:this.endTrigger,scrub:1,onUpdate:(U)=>{let Z=U.getVelocity();if(Math.abs(Z)>10){this.lastScrollTime=Date.now();let $=0.01;this.targetSpeed=this.baseSpeed+Z*$;let J=-3,K=3;this.targetSpeed=Math.max(J,Math.min(K,this.targetSpeed))}}})}startSpeedLerp(){let U=()=>{if(!this.speedProperty||!this.isVisible){this.animationFrameId=requestAnimationFrame(U);return}if(Date.now()-this.lastScrollTime>100)this.targetSpeed=this.baseSpeed;let J=0.1;this.currentSpeed+=(this.targetSpeed-this.currentSpeed)*J,this.speedProperty.value=this.currentSpeed,this.animationFrameId=requestAnimationFrame(U)};U()}destroy(){if(this.isDestroyed=!0,this.animationFrameId)cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null;if(this.observer)this.observer.disconnect(),this.observer=null;if(this.rive)this.rive.cleanup(),this.rive=null;if(this.scrollTrigger)this.scrollTrigger.kill(),this.scrollTrigger=null}}var z6=window;if(!z6.__thresholdHomeNoncriticalLoaded){z6.__thresholdHomeNoncriticalLoaded=!0;let U=window.matchMedia("(prefers-reduced-motion: reduce)").matches;new TZ("#main > section:not(#heroSection) [data-split-inview], #footerSection [data-split-inview]").init(),new bZ("#footerSection [data-dots]").init(),new vZ().init(),new yZ().init(),new _Z().init(),new gZ().init();let G=new uZ;if(G.init(),new mZ().init(),new dZ().init(),!U){let N=document.getElementById("footerSection");if(N){let H=()=>{new cZ("riveFooter","footerSection",-0.8,"top bottom","bottom 20%").init()};if("IntersectionObserver"in window){let X=new IntersectionObserver((F)=>{if(!F.some((M)=>M.isIntersecting))return;H(),X.disconnect()},{rootMargin:"400px"});X.observe(N)}else H()}}window.addEventListener("accordion:toggle",(N)=>{let H=N;G.triggerJump(H.detail.force)})}})(); //# debugId=31C85C38578D5BB964756E2164756E21