@rtstic.dev/pulse 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/depth.js ADDED
@@ -0,0 +1,39 @@
1
+ "use strict";(()=>{var g="https://cdn.prod.website-files.com/680cbbaefb50442c848aedf7/6926cf888059f91e69c286e7_IMG_0311.jpg",p="https://cdn.prod.website-files.com/680cbbaefb50442c848aedf7/6926cf7fd0f3c3f3276d1575_IMG_0310.png";var t={gl:null,program:null,mousePos:{x:0,y:0},targetPos:{x:0,y:0},textures:{color:null,depth:null},animationId:null,isLoaded:!1,imageAspect:1,canvasAspect:1,uvScale:{x:1,y:1},uvOffset:{x:0,y:0}},E=document.getElementById("viewer-wrapper"),i=document.getElementById("viewer-canvas"),d=document.getElementById("status");i.addEventListener("mousemove",e=>{let r=i.getBoundingClientRect(),n=((e.clientX-r.left)/r.width-.5)*2,o=-((e.clientY-r.top)/r.height-.5)*2;t.targetPos.x=n,t.targetPos.y=o});i.addEventListener("mouseleave",()=>{t.targetPos.x=0,t.targetPos.y=0});function v(){i.width=E.clientWidth,i.height=E.clientHeight,t.gl&&(t.gl.viewport(0,0,i.width,i.height),T())}function T(){t.canvasAspect=i.width/i.height;let e=t.imageAspect||1,r=t.canvasAspect||1,n=1,o=1,u=0,a=0;r>e?(n=r/e,u=(n-1)/2):(o=e/r,a=(o-1)/2),t.uvScale.x=n,t.uvScale.y=o,t.uvOffset.x=u,t.uvOffset.y=a}function L(){v();let e=i.getContext("webgl");if(!e){d.textContent="WebGL not supported in this browser.";return}t.gl=e;let r=`
2
+ attribute vec2 a_position;
3
+ attribute vec2 a_texCoord;
4
+ varying vec2 v_texCoord;
5
+ void main() {
6
+ gl_Position = vec4(a_position, 0.0, 1.0);
7
+ v_texCoord = a_texCoord;
8
+ }
9
+ `,n=`
10
+ precision mediump float;
11
+ uniform sampler2D u_colorTexture;
12
+ uniform sampler2D u_depthTexture;
13
+ uniform vec2 u_mouse;
14
+ uniform float u_scale;
15
+ uniform vec2 u_uvScale;
16
+ uniform vec2 u_uvOffset;
17
+ uniform float u_imageScale;
18
+ varying vec2 v_texCoord;
19
+
20
+ void main() {
21
+ vec2 scaledUV = v_texCoord * u_uvScale + u_uvOffset;
22
+
23
+ vec2 centered = scaledUV - 0.5;
24
+ centered *= u_imageScale;
25
+ scaledUV = centered + 0.5;
26
+
27
+ vec2 depthUV = clamp(scaledUV, 0.0, 1.0);
28
+ float depth = texture2D(u_depthTexture, depthUV).r;
29
+
30
+ vec2 offset = u_mouse * depth * u_scale;
31
+ vec2 uv = scaledUV - offset;
32
+
33
+ if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) {
34
+ gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
35
+ } else {
36
+ gl_FragColor = texture2D(u_colorTexture, uv);
37
+ }
38
+ }
39
+ `;function o(c,A,R){let f=c.createShader(R);return f?(c.shaderSource(f,A),c.compileShader(f),c.getShaderParameter(f,c.COMPILE_STATUS)?f:(console.error(c.getShaderInfoLog(f)),c.deleteShader(f),null)):null}let u=o(e,r,e.VERTEX_SHADER),a=o(e,n,e.FRAGMENT_SHADER);if(!u||!a)return;let s=e.createProgram();if(!s)return;if(e.attachShader(s,u),e.attachShader(s,a),e.linkProgram(s),!e.getProgramParameter(s,e.LINK_STATUS)){console.error(e.getProgramInfoLog(s)),d.textContent="Error linking WebGL program.";return}t.program=s;let m=e.createBuffer();if(!m)return;e.bindBuffer(e.ARRAY_BUFFER,m),e.bufferData(e.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),e.STATIC_DRAW);let l=e.createBuffer();l&&(e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,0,0,1,1,1,0]),e.STATIC_DRAW),t.positionBuffer=m,t.texCoordBuffer=l,b())}function _(e,r,n,o){let u=e.createTexture();if(!u)return null;e.bindTexture(e.TEXTURE_2D,u),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([0,0,0,255]));let a=new Image;return a.crossOrigin="anonymous",a.onload=()=>{o&&o(a),e.bindTexture(e.TEXTURE_2D,u),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),n()},a.onerror=()=>{d.textContent="Error loading image: "+r},a.src=r,u}function b(){let e=t.gl;if(!e)return;let r=0;function n(){r+=1,r===2&&e&&(e.viewport(0,0,i.width,i.height),t.isLoaded=!0,d.textContent="Move your mouse over the image to see the 3D parallax effect.",x())}t.textures.color=_(e,g,n,o=>{t.imageAspect=o.width/o.height,T()}),t.textures.depth=_(e,p,n)}function x(){if(!t.isLoaded)return;let e=t.gl,r=t.program;if(!e||!r)return;t.mousePos.x+=(t.targetPos.x-t.mousePos.x)*.9,t.mousePos.y+=(t.targetPos.y-t.mousePos.y)*.9,e.clearColor(0,0,0,1),e.clear(e.COLOR_BUFFER_BIT),e.useProgram(r);let n=e.getAttribLocation(r,"a_position");e.bindBuffer(e.ARRAY_BUFFER,t.positionBuffer),e.enableVertexAttribArray(n),e.vertexAttribPointer(n,2,e.FLOAT,!1,0,0);let o=e.getAttribLocation(r,"a_texCoord");e.bindBuffer(e.ARRAY_BUFFER,t.texCoordBuffer),e.enableVertexAttribArray(o),e.vertexAttribPointer(o,2,e.FLOAT,!1,0,0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.textures.color),e.uniform1i(e.getUniformLocation(r,"u_colorTexture"),0),e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,t.textures.depth),e.uniform1i(e.getUniformLocation(r,"u_depthTexture"),1),e.uniform2f(e.getUniformLocation(r,"u_mouse"),t.mousePos.x,t.mousePos.y),e.uniform1f(e.getUniformLocation(r,"u_scale"),.01),e.uniform2f(e.getUniformLocation(r,"u_uvScale"),t.uvScale.x,t.uvScale.y),e.uniform2f(e.getUniformLocation(r,"u_uvOffset"),t.uvOffset.x,t.uvOffset.y),e.uniform1f(e.getUniformLocation(r,"u_imageScale"),.9),e.drawArrays(e.TRIANGLES,0,6),t.animationId=requestAnimationFrame(x)}window.addEventListener("load",L);window.addEventListener("resize",()=>{t.gl&&v()});})();
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/home/depth.ts"],
4
+ "sourcesContent": ["// Config variables\nconst COLOR_URL = \"https://cdn.prod.website-files.com/680cbbaefb50442c848aedf7/6926cf888059f91e69c286e7_IMG_0311.jpg\";\nconst DEPTH_URL = \"https://cdn.prod.website-files.com/680cbbaefb50442c848aedf7/6926cf7fd0f3c3f3276d1575_IMG_0310.png\";\n\nconst DEPTH_SCALE = 0.01;\nconst MOUSE_SMOOTH = 0.9;\nconst IMAGE_SCALE = 0.9;\n\ninterface State {\n gl: WebGLRenderingContext | null;\n program: WebGLProgram | null;\n mousePos: { x: number; y: number };\n targetPos: { x: number; y: number };\n textures: { color: WebGLTexture | null; depth: WebGLTexture | null };\n animationId: number | null;\n isLoaded: boolean;\n imageAspect: number;\n canvasAspect: number;\n uvScale: { x: number; y: number };\n uvOffset: { x: number; y: number };\n positionBuffer?: WebGLBuffer;\n texCoordBuffer?: WebGLBuffer;\n}\n\nconst state: State = {\n gl: null,\n program: null,\n mousePos: { x: 0, y: 0 },\n targetPos: { x: 0, y: 0 },\n textures: { color: null, depth: null },\n animationId: null,\n isLoaded: false,\n imageAspect: 1,\n canvasAspect: 1,\n uvScale: { x: 1, y: 1 },\n uvOffset: { x: 0, y: 0 }\n};\n\nconst wrapper = document.getElementById(\"viewer-wrapper\") as HTMLDivElement;\nconst canvas = document.getElementById(\"viewer-canvas\") as HTMLCanvasElement;\nconst statusEl = document.getElementById(\"status\") as HTMLDivElement;\n\ncanvas.addEventListener(\"mousemove\", (e: MouseEvent) => {\n const rect = canvas.getBoundingClientRect();\n const x = ((e.clientX - rect.left) / rect.width - 0.5) * 2;\n const y = -((e.clientY - rect.top) / rect.height - 0.5) * 2;\n\n state.targetPos.x = x;\n state.targetPos.y = y;\n});\n\ncanvas.addEventListener(\"mouseleave\", () => {\n state.targetPos.x = 0;\n state.targetPos.y = 0;\n});\n\nfunction updateCanvasSize(): void {\n canvas.width = wrapper.clientWidth;\n canvas.height = wrapper.clientHeight;\n if (state.gl) {\n state.gl.viewport(0, 0, canvas.width, canvas.height);\n updateUvScale();\n }\n}\n\nfunction updateUvScale(): void {\n state.canvasAspect = canvas.width / canvas.height;\n const ia = state.imageAspect || 1;\n const ca = state.canvasAspect || 1;\n\n let scaleX = 1;\n let scaleY = 1;\n let offsetX = 0;\n let offsetY = 0;\n\n if (ca > ia) {\n scaleX = ca / ia;\n offsetX = (scaleX - 1) / 2;\n } else {\n scaleY = ia / ca;\n offsetY = (scaleY - 1) / 2;\n }\n\n state.uvScale.x = scaleX;\n state.uvScale.y = scaleY;\n state.uvOffset.x = offsetX;\n state.uvOffset.y = offsetY;\n}\n\nfunction initWebGL(): void {\n updateCanvasSize();\n\n const gl = canvas.getContext(\"webgl\") as WebGLRenderingContext | null;\n if (!gl) {\n statusEl.textContent = \"WebGL not supported in this browser.\";\n return;\n }\n\n state.gl = gl;\n\n const vertexShaderSource = `\n attribute vec2 a_position;\n attribute vec2 a_texCoord;\n varying vec2 v_texCoord;\n void main() {\n gl_Position = vec4(a_position, 0.0, 1.0);\n v_texCoord = a_texCoord;\n }\n `;\n\n const fragmentShaderSource = `\n precision mediump float;\n uniform sampler2D u_colorTexture;\n uniform sampler2D u_depthTexture;\n uniform vec2 u_mouse;\n uniform float u_scale;\n uniform vec2 u_uvScale;\n uniform vec2 u_uvOffset;\n uniform float u_imageScale;\n varying vec2 v_texCoord;\n\n void main() {\n vec2 scaledUV = v_texCoord * u_uvScale + u_uvOffset;\n \n vec2 centered = scaledUV - 0.5;\n centered *= u_imageScale;\n scaledUV = centered + 0.5;\n\n vec2 depthUV = clamp(scaledUV, 0.0, 1.0);\n float depth = texture2D(u_depthTexture, depthUV).r;\n\n vec2 offset = u_mouse * depth * u_scale;\n vec2 uv = scaledUV - offset;\n\n if (uv.x < 0.0 || uv.x > 1.0 || uv.y < 0.0 || uv.y > 1.0) {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n } else {\n gl_FragColor = texture2D(u_colorTexture, uv);\n }\n }\n `;\n\n function compileShader(glContext: WebGLRenderingContext, source: string, type: number): WebGLShader | null {\n const shader = glContext.createShader(type);\n if (!shader) return null;\n glContext.shaderSource(shader, source);\n glContext.compileShader(shader);\n if (!glContext.getShaderParameter(shader, glContext.COMPILE_STATUS)) {\n console.error(glContext.getShaderInfoLog(shader));\n glContext.deleteShader(shader);\n return null;\n }\n return shader;\n }\n\n const vertexShader = compileShader(gl, vertexShaderSource, gl.VERTEX_SHADER);\n const fragmentShader = compileShader(gl, fragmentShaderSource, gl.FRAGMENT_SHADER);\n\n if (!vertexShader || !fragmentShader) return;\n\n const program = gl.createProgram();\n if (!program) return;\n\n gl.attachShader(program, vertexShader);\n gl.attachShader(program, fragmentShader);\n gl.linkProgram(program);\n\n if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {\n console.error(gl.getProgramInfoLog(program));\n statusEl.textContent = \"Error linking WebGL program.\";\n return;\n }\n\n state.program = program;\n\n const positionBuffer = gl.createBuffer();\n if (!positionBuffer) return;\n gl.bindBuffer(gl.ARRAY_BUFFER, positionBuffer);\n gl.bufferData(\n gl.ARRAY_BUFFER,\n new Float32Array([\n -1, -1, 1, -1, -1, 1,\n -1, 1, 1, -1, 1, 1\n ]),\n gl.STATIC_DRAW\n );\n\n const texCoordBuffer = gl.createBuffer();\n if (!texCoordBuffer) return;\n gl.bindBuffer(gl.ARRAY_BUFFER, texCoordBuffer);\n gl.bufferData(\n gl.ARRAY_BUFFER,\n new Float32Array([\n 0, 1, 1, 1, 0, 0,\n 0, 0, 1, 1, 1, 0\n ]),\n gl.STATIC_DRAW\n );\n\n state.positionBuffer = positionBuffer;\n state.texCoordBuffer = texCoordBuffer;\n\n loadTextures();\n}\n\nfunction loadTexture(gl: WebGLRenderingContext, url: string, onLoaded: () => void, onImageLoaded?: (image: HTMLImageElement) => void): WebGLTexture | null {\n const texture = gl.createTexture();\n if (!texture) return null;\n\n gl.bindTexture(gl.TEXTURE_2D, texture);\n gl.texImage2D(\n gl.TEXTURE_2D,\n 0,\n gl.RGBA,\n 1,\n 1,\n 0,\n gl.RGBA,\n gl.UNSIGNED_BYTE,\n new Uint8Array([0, 0, 0, 255])\n );\n\n const image = new Image();\n image.crossOrigin = \"anonymous\";\n image.onload = () => {\n if (onImageLoaded) onImageLoaded(image);\n gl.bindTexture(gl.TEXTURE_2D, texture);\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n onLoaded();\n };\n image.onerror = () => {\n statusEl.textContent = \"Error loading image: \" + url;\n };\n image.src = url;\n\n return texture;\n}\n\nfunction loadTextures(): void {\n const gl = state.gl;\n if (!gl) return;\n\n let loadedCount = 0;\n\n function onLoaded(): void {\n loadedCount += 1;\n if (loadedCount === 2 && gl) {\n gl.viewport(0, 0, canvas.width, canvas.height);\n state.isLoaded = true;\n statusEl.textContent = \"Move your mouse over the image to see the 3D parallax effect.\";\n render();\n }\n }\n\n state.textures.color = loadTexture(\n gl,\n COLOR_URL,\n onLoaded,\n (image: HTMLImageElement) => {\n state.imageAspect = image.width / image.height;\n updateUvScale();\n }\n );\n state.textures.depth = loadTexture(gl, DEPTH_URL, onLoaded);\n}\n\nfunction render(): void {\n if (!state.isLoaded) return;\n\n const gl = state.gl;\n const program = state.program;\n\n if (!gl || !program) return;\n\n state.mousePos.x += (state.targetPos.x - state.mousePos.x) * MOUSE_SMOOTH;\n state.mousePos.y += (state.targetPos.y - state.mousePos.y) * MOUSE_SMOOTH;\n\n gl.clearColor(0, 0, 0, 1);\n gl.clear(gl.COLOR_BUFFER_BIT);\n\n gl.useProgram(program);\n\n const positionLocation = gl.getAttribLocation(program, \"a_position\");\n gl.bindBuffer(gl.ARRAY_BUFFER, state.positionBuffer!);\n gl.enableVertexAttribArray(positionLocation);\n gl.vertexAttribPointer(positionLocation, 2, gl.FLOAT, false, 0, 0);\n\n const texCoordLocation = gl.getAttribLocation(program, \"a_texCoord\");\n gl.bindBuffer(gl.ARRAY_BUFFER, state.texCoordBuffer!);\n gl.enableVertexAttribArray(texCoordLocation);\n gl.vertexAttribPointer(texCoordLocation, 2, gl.FLOAT, false, 0, 0);\n\n gl.activeTexture(gl.TEXTURE0);\n gl.bindTexture(gl.TEXTURE_2D, state.textures.color);\n gl.uniform1i(gl.getUniformLocation(program, \"u_colorTexture\"), 0);\n\n gl.activeTexture(gl.TEXTURE1);\n gl.bindTexture(gl.TEXTURE_2D, state.textures.depth);\n gl.uniform1i(gl.getUniformLocation(program, \"u_depthTexture\"), 1);\n\n gl.uniform2f(gl.getUniformLocation(program, \"u_mouse\"), state.mousePos.x, state.mousePos.y);\n gl.uniform1f(gl.getUniformLocation(program, \"u_scale\"), DEPTH_SCALE);\n gl.uniform2f(gl.getUniformLocation(program, \"u_uvScale\"), state.uvScale.x, state.uvScale.y);\n gl.uniform2f(gl.getUniformLocation(program, \"u_uvOffset\"), state.uvOffset.x, state.uvOffset.y);\n gl.uniform1f(gl.getUniformLocation(program, \"u_imageScale\"), IMAGE_SCALE);\n\n gl.drawArrays(gl.TRIANGLES, 0, 6);\n\n state.animationId = requestAnimationFrame(render);\n}\n\nwindow.addEventListener(\"load\", initWebGL);\nwindow.addEventListener(\"resize\", () => {\n if (!state.gl) return;\n updateCanvasSize();\n});"],
5
+ "mappings": ";;;AACA,MAAM,YAAY;AAClB,MAAM,YAAY;AAElB,MAAM,cAAc;AACpB,MAAM,eAAe;AACrB,MAAM,cAAc;AAkBpB,MAAM,QAAe;AAAA,IACjB,IAAI;AAAA,IACJ,SAAS;AAAA,IACT,UAAU,EAAE,GAAG,GAAG,GAAG,EAAE;AAAA,IACvB,WAAW,EAAE,GAAG,GAAG,GAAG,EAAE;AAAA,IACxB,UAAU,EAAE,OAAO,MAAM,OAAO,KAAK;AAAA,IACrC,aAAa;AAAA,IACb,UAAU;AAAA,IACV,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE;AAAA,IACtB,UAAU,EAAE,GAAG,GAAG,GAAG,EAAE;AAAA,EAC3B;AAEA,MAAM,UAAU,SAAS,eAAe,gBAAgB;AACxD,MAAM,SAAS,SAAS,eAAe,eAAe;AACtD,MAAM,WAAW,SAAS,eAAe,QAAQ;AAEjD,SAAO,iBAAiB,aAAa,CAAC,MAAkB;AACpD,UAAM,OAAO,OAAO,sBAAsB;AAC1C,UAAM,MAAM,EAAE,UAAU,KAAK,QAAQ,KAAK,QAAQ,OAAO;AACzD,UAAM,IAAI,GAAG,EAAE,UAAU,KAAK,OAAO,KAAK,SAAS,OAAO;AAE1D,UAAM,UAAU,IAAI;AACpB,UAAM,UAAU,IAAI;AAAA,EACxB,CAAC;AAED,SAAO,iBAAiB,cAAc,MAAM;AACxC,UAAM,UAAU,IAAI;AACpB,UAAM,UAAU,IAAI;AAAA,EACxB,CAAC;AAED,WAAS,mBAAyB;AAC9B,WAAO,QAAQ,QAAQ;AACvB,WAAO,SAAS,QAAQ;AACxB,QAAI,MAAM,IAAI;AACV,YAAM,GAAG,SAAS,GAAG,GAAG,OAAO,OAAO,OAAO,MAAM;AACnD,oBAAc;AAAA,IAClB;AAAA,EACJ;AAEA,WAAS,gBAAsB;AAC3B,UAAM,eAAe,OAAO,QAAQ,OAAO;AAC3C,UAAM,KAAK,MAAM,eAAe;AAChC,UAAM,KAAK,MAAM,gBAAgB;AAEjC,QAAI,SAAS;AACb,QAAI,SAAS;AACb,QAAI,UAAU;AACd,QAAI,UAAU;AAEd,QAAI,KAAK,IAAI;AACT,eAAS,KAAK;AACd,iBAAW,SAAS,KAAK;AAAA,IAC7B,OAAO;AACH,eAAS,KAAK;AACd,iBAAW,SAAS,KAAK;AAAA,IAC7B;AAEA,UAAM,QAAQ,IAAI;AAClB,UAAM,QAAQ,IAAI;AAClB,UAAM,SAAS,IAAI;AACnB,UAAM,SAAS,IAAI;AAAA,EACvB;AAEA,WAAS,YAAkB;AACvB,qBAAiB;AAEjB,UAAM,KAAK,OAAO,WAAW,OAAO;AACpC,QAAI,CAAC,IAAI;AACL,eAAS,cAAc;AACvB;AAAA,IACJ;AAEA,UAAM,KAAK;AAEX,UAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAU3B,UAAM,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgC7B,aAAS,cAAc,WAAkC,QAAgB,MAAkC;AACvG,YAAM,SAAS,UAAU,aAAa,IAAI;AAC1C,UAAI,CAAC,OAAQ,QAAO;AACpB,gBAAU,aAAa,QAAQ,MAAM;AACrC,gBAAU,cAAc,MAAM;AAC9B,UAAI,CAAC,UAAU,mBAAmB,QAAQ,UAAU,cAAc,GAAG;AACjE,gBAAQ,MAAM,UAAU,iBAAiB,MAAM,CAAC;AAChD,kBAAU,aAAa,MAAM;AAC7B,eAAO;AAAA,MACX;AACA,aAAO;AAAA,IACX;AAEA,UAAM,eAAe,cAAc,IAAI,oBAAoB,GAAG,aAAa;AAC3E,UAAM,iBAAiB,cAAc,IAAI,sBAAsB,GAAG,eAAe;AAEjF,QAAI,CAAC,gBAAgB,CAAC,eAAgB;AAEtC,UAAM,UAAU,GAAG,cAAc;AACjC,QAAI,CAAC,QAAS;AAEd,OAAG,aAAa,SAAS,YAAY;AACrC,OAAG,aAAa,SAAS,cAAc;AACvC,OAAG,YAAY,OAAO;AAEtB,QAAI,CAAC,GAAG,oBAAoB,SAAS,GAAG,WAAW,GAAG;AAClD,cAAQ,MAAM,GAAG,kBAAkB,OAAO,CAAC;AAC3C,eAAS,cAAc;AACvB;AAAA,IACJ;AAEA,UAAM,UAAU;AAEhB,UAAM,iBAAiB,GAAG,aAAa;AACvC,QAAI,CAAC,eAAgB;AACrB,OAAG,WAAW,GAAG,cAAc,cAAc;AAC7C,OAAG;AAAA,MACC,GAAG;AAAA,MACH,IAAI,aAAa;AAAA,QACb;AAAA,QAAI;AAAA,QAAI;AAAA,QAAG;AAAA,QAAI;AAAA,QAAI;AAAA,QACnB;AAAA,QAAI;AAAA,QAAG;AAAA,QAAG;AAAA,QAAI;AAAA,QAAG;AAAA,MACrB,CAAC;AAAA,MACD,GAAG;AAAA,IACP;AAEA,UAAM,iBAAiB,GAAG,aAAa;AACvC,QAAI,CAAC,eAAgB;AACrB,OAAG,WAAW,GAAG,cAAc,cAAc;AAC7C,OAAG;AAAA,MACC,GAAG;AAAA,MACH,IAAI,aAAa;AAAA,QACb;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,QACf;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,QAAG;AAAA,MACnB,CAAC;AAAA,MACD,GAAG;AAAA,IACP;AAEA,UAAM,iBAAiB;AACvB,UAAM,iBAAiB;AAEvB,iBAAa;AAAA,EACjB;AAEA,WAAS,YAAY,IAA2B,KAAa,UAAsB,eAAwE;AACvJ,UAAM,UAAU,GAAG,cAAc;AACjC,QAAI,CAAC,QAAS,QAAO;AAErB,OAAG,YAAY,GAAG,YAAY,OAAO;AACrC,OAAG;AAAA,MACC,GAAG;AAAA,MACH;AAAA,MACA,GAAG;AAAA,MACH;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,MACH,GAAG;AAAA,MACH,IAAI,WAAW,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;AAAA,IACjC;AAEA,UAAM,QAAQ,IAAI,MAAM;AACxB,UAAM,cAAc;AACpB,UAAM,SAAS,MAAM;AACjB,UAAI,cAAe,eAAc,KAAK;AACtC,SAAG,YAAY,GAAG,YAAY,OAAO;AACrC,SAAG,WAAW,GAAG,YAAY,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,eAAe,KAAK;AACzE,SAAG,cAAc,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa;AACnE,SAAG,cAAc,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa;AACnE,SAAG,cAAc,GAAG,YAAY,GAAG,oBAAoB,GAAG,MAAM;AAChE,SAAG,cAAc,GAAG,YAAY,GAAG,oBAAoB,GAAG,MAAM;AAChE,eAAS;AAAA,IACb;AACA,UAAM,UAAU,MAAM;AAClB,eAAS,cAAc,0BAA0B;AAAA,IACrD;AACA,UAAM,MAAM;AAEZ,WAAO;AAAA,EACX;AAEA,WAAS,eAAqB;AAC1B,UAAM,KAAK,MAAM;AACjB,QAAI,CAAC,GAAI;AAET,QAAI,cAAc;AAElB,aAAS,WAAiB;AACtB,qBAAe;AACf,UAAI,gBAAgB,KAAK,IAAI;AACzB,WAAG,SAAS,GAAG,GAAG,OAAO,OAAO,OAAO,MAAM;AAC7C,cAAM,WAAW;AACjB,iBAAS,cAAc;AACvB,eAAO;AAAA,MACX;AAAA,IACJ;AAEA,UAAM,SAAS,QAAQ;AAAA,MACnB;AAAA,MACA;AAAA,MACA;AAAA,MACA,CAAC,UAA4B;AACzB,cAAM,cAAc,MAAM,QAAQ,MAAM;AACxC,sBAAc;AAAA,MAClB;AAAA,IACJ;AACA,UAAM,SAAS,QAAQ,YAAY,IAAI,WAAW,QAAQ;AAAA,EAC9D;AAEA,WAAS,SAAe;AACpB,QAAI,CAAC,MAAM,SAAU;AAErB,UAAM,KAAK,MAAM;AACjB,UAAM,UAAU,MAAM;AAEtB,QAAI,CAAC,MAAM,CAAC,QAAS;AAErB,UAAM,SAAS,MAAM,MAAM,UAAU,IAAI,MAAM,SAAS,KAAK;AAC7D,UAAM,SAAS,MAAM,MAAM,UAAU,IAAI,MAAM,SAAS,KAAK;AAE7D,OAAG,WAAW,GAAG,GAAG,GAAG,CAAC;AACxB,OAAG,MAAM,GAAG,gBAAgB;AAE5B,OAAG,WAAW,OAAO;AAErB,UAAM,mBAAmB,GAAG,kBAAkB,SAAS,YAAY;AACnE,OAAG,WAAW,GAAG,cAAc,MAAM,cAAe;AACpD,OAAG,wBAAwB,gBAAgB;AAC3C,OAAG,oBAAoB,kBAAkB,GAAG,GAAG,OAAO,OAAO,GAAG,CAAC;AAEjE,UAAM,mBAAmB,GAAG,kBAAkB,SAAS,YAAY;AACnE,OAAG,WAAW,GAAG,cAAc,MAAM,cAAe;AACpD,OAAG,wBAAwB,gBAAgB;AAC3C,OAAG,oBAAoB,kBAAkB,GAAG,GAAG,OAAO,OAAO,GAAG,CAAC;AAEjE,OAAG,cAAc,GAAG,QAAQ;AAC5B,OAAG,YAAY,GAAG,YAAY,MAAM,SAAS,KAAK;AAClD,OAAG,UAAU,GAAG,mBAAmB,SAAS,gBAAgB,GAAG,CAAC;AAEhE,OAAG,cAAc,GAAG,QAAQ;AAC5B,OAAG,YAAY,GAAG,YAAY,MAAM,SAAS,KAAK;AAClD,OAAG,UAAU,GAAG,mBAAmB,SAAS,gBAAgB,GAAG,CAAC;AAEhE,OAAG,UAAU,GAAG,mBAAmB,SAAS,SAAS,GAAG,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC;AAC1F,OAAG,UAAU,GAAG,mBAAmB,SAAS,SAAS,GAAG,WAAW;AACnE,OAAG,UAAU,GAAG,mBAAmB,SAAS,WAAW,GAAG,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC;AAC1F,OAAG,UAAU,GAAG,mBAAmB,SAAS,YAAY,GAAG,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC;AAC7F,OAAG,UAAU,GAAG,mBAAmB,SAAS,cAAc,GAAG,WAAW;AAExE,OAAG,WAAW,GAAG,WAAW,GAAG,CAAC;AAEhC,UAAM,cAAc,sBAAsB,MAAM;AAAA,EACpD;AAEA,SAAO,iBAAiB,QAAQ,SAAS;AACzC,SAAO,iBAAiB,UAAU,MAAM;AACpC,QAAI,CAAC,MAAM,GAAI;AACf,qBAAiB;AAAA,EACrB,CAAC;",
6
+ "names": []
7
+ }
package/dist/scroll.js ADDED
@@ -0,0 +1,43 @@
1
+ "use strict";(()=>{function rr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function bo(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}var dt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},ni={duration:.5,overwrite:!1,delay:0},ps,Ne,ue,Mt=1e8,se=1/Mt,ns=Math.PI*2,hl=ns/4,_l=0,So=Math.sqrt,dl=Math.cos,pl=Math.sin,Oe=function(e){return typeof e=="string"},ge=function(e){return typeof e=="function"},nr=function(e){return typeof e=="number"},mn=function(e){return typeof e>"u"},Gt=function(e){return typeof e=="object"},_t=function(e){return e!==!1},gs=function(){return typeof window<"u"},ln=function(e){return ge(e)||Oe(e)},Co=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ge=Array.isArray,ss=/(?:-?\.?\d|\.)+/gi,ms=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ir=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,$n=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ys=/[+-]=-?[.\d]+/,Po=/[^,'"\[\]\s]+/gi,gl=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ce,Ut,os,vs,xt={},hn={},ko,Mo=function(e){return(hn=si(e,xt))&&Qe},yn=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},Di=function(e,r){return!r&&console.warn(e)},Oo=function(e,r){return e&&(xt[e]=r)&&hn&&(hn[e]=r)||xt},Ai=function(){return 0},ml={suppressEvents:!0,isStart:!0,kill:!1},un={suppressEvents:!0,kill:!1},yl={suppressEvents:!0},xs={},vr=[],as={},Eo,ct={},Jn={},go=30,fn=[],ws="",Ts=function(e){var r=e[0],t,i;if(Gt(r)||ge(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=fn.length;i--&&!fn[i].targetTest(r););t=fn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ps(e[i],t)))||e.splice(i,1);return e},xr=function(e){return e._gsap||Ts(Ot(e))[0]._gsap},bs=function(e,r,t){return(t=e[r])&&ge(t)?e[r]():mn(t)&&e.getAttribute&&e.getAttribute(r)||t},tt=function(e,r){return(e=e.split(",")).forEach(r)||e},me=function(e){return Math.round(e*1e5)/1e5||0},Ce=function(e){return Math.round(e*1e7)/1e7||0},Br=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},vl=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++i<t;);return i<t},_n=function(){var e=vr.length,r=vr.slice(0),t,i;for(as={},vr.length=0,t=0;t<e;t++)i=r[t],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Ss=function(e){return!!(e._initted||e._startAt||e.add)},Ro=function(e,r,t,i){vr.length&&!Ne&&_n(),e.render(r,t,i||!!(Ne&&r<0&&Ss(e))),vr.length&&!Ne&&_n()},Do=function(e){var r=parseFloat(e);return(r||r===0)&&(e+"").match(Po).length<2?r:Oe(e)?e.trim():e},Ao=function(e){return e},wt=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},xl=function(e){return function(r,t){for(var i in t)i in r||i==="duration"&&e||i==="ease"||(r[i]=t[i])}},si=function(e,r){for(var t in r)e[t]=r[t];return e},mo=function a(e,r){for(var t in r)t!=="__proto__"&&t!=="constructor"&&t!=="prototype"&&(e[t]=Gt(r[t])?a(e[t]||(e[t]={}),r[t]):r[t]);return e},dn=function(e,r){var t={},i;for(i in e)i in r||(t[i]=e[i]);return t},Oi=function(e){var r=e.parent||ce,t=e.keyframes?xl(Ge(e.keyframes)):wt;if(_t(e.inherit))for(;r;)t(e,r.vars.defaults),r=r.parent||r._dp;return e},wl=function(e,r){for(var t=e.length,i=t===r.length;i&&t--&&e[t]===r[t];);return t<0},Lo=function(e,r,t,i,n){t===void 0&&(t="_first"),i===void 0&&(i="_last");var s=e[i],o;if(n)for(o=r[n];s&&s[n]>o;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},vn=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},wr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Lr=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Tl=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},ls=function(e,r,t,i){return e._startAt&&(Ne?e._startAt.revert(un):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},bl=function a(e){return!e||e._ts&&a(e.parent)},yo=function(e){return e._repeat?oi(e._tTime,e=e.duration()+e._rDelay)*e:0},oi=function(e,r){var t=Math.floor(e=Ce(e/r));return e&&t===e?t-1:t},pn=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},xn=function(e){return e._end=Ce(e._start+(e._tDur/Math.abs(e._ts||e._rts||se)||0))},wn=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Ce(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),xn(e),t._dirty||Lr(t,e)),e},Fo=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._start<e._time&&(r._dur||!r.add))&&(t=pn(e.rawTime(),r),(!r._dur||zi(0,r.totalDuration(),t)-r._tTime>se)&&r.render(t,!0)),Lr(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(t=e;t._dp;)t.rawTime()>=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-se}},Wt=function(e,r,t,i){return r.parent&&wr(r),r._start=Ce((nr(t)?t:t||e!==ce?kt(e,t,r):e._time)+r._delay),r._end=Ce(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),Lo(e,r,"_first","_last",e._sort?"_start":0),us(r)||(e._recent=r),i||Fo(e,r),e._ts<0&&wn(e,e._tTime),e},zo=function(e,r){return(xt.ScrollTrigger||yn("scrollTrigger",r))&&xt.ScrollTrigger.create(r,e)},Io=function(e,r,t,i,n){if(Os(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!Ne&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Eo!==ht.frame)return vr.push(e),e._lazy=[n,i],1},Sl=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},us=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Cl=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Sl(e)&&!(!e._initted&&us(e))||(e._ts<0||e._dp._ts<0)&&!us(e))?0:1,o=e._rDelay,l=0,u,f,_;if(o&&e._repeat&&(l=zi(0,e._tDur,r),f=oi(l,o),e._yoyo&&f&1&&(s=1-s),f!==oi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||Ne||i||e._zTime===se||!r&&e._zTime){if(!e._initted&&Io(e,r,i,t,l))return;for(_=e._zTime,e._zTime=r||(t?se:0),t||(t=r&&!_),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;r<0&&ls(e,r,t,!0),e._onUpdate&&!t&&vt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&vt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&wr(e,1),!t&&!Ne&&(vt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},Pl=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},ai=function(e,r,t,i){var n=e._repeat,s=Ce(r)||0,o=e._tTime/e._tDur;return o&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=n?n<0?1e10:Ce(s*(n+1)+e._rDelay*n):s,o>0&&!i&&wn(e,e._tTime=e._tDur*o),e.parent&&xn(e),t||Lr(e.parent,e),e},vo=function(e){return e instanceof Be?Lr(e):ai(e,e._dur)},kl={_start:0,endTime:Ai,totalDuration:Ai},kt=function a(e,r,t){var i=e.labels,n=e._recent||kl,s=e.duration()>=Mt?n.endTime(!1):e._dur,o,l,u;return Oe(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",o=r.indexOf("="),l==="<"||l===">"?(o>=0&&(r=r.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(l=parseFloat(r.charAt(o-1)+r.substr(o+1)),u&&t&&(l=l/100*(Ge(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+l:s+l)):r==null?s:+r},Ei=function(e,r,t){var i=nr(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,l;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,l=t;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=_t(l.vars.inherit)&&l.parent;s.immediateRender=_t(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new Te(r[0],s,r[n+1])},Tr=function(e,r){return e||e===0?r(e):r},zi=function(e,r,t){return t<e?e:t>r?r:t},Ye=function(e,r){return!Oe(e)||!(r=gl.exec(e))?"":r[1]},Ml=function(e,r,t){return Tr(t,function(i){return zi(e,r,i)})},fs=[].slice,Bo=function(e,r){return e&&Gt(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&Gt(e[0]))&&!e.nodeType&&e!==Ut},Ol=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return Oe(i)&&!r||Bo(i,1)?(n=t).push.apply(n,Ot(i)):t.push(i)})||t},Ot=function(e,r,t){return ue&&!r&&ue.selector?ue.selector(e):Oe(e)&&!t&&(os||!li())?fs.call((r||vs).querySelectorAll(e),0):Ge(e)?Ol(e,t):Bo(e)?fs.call(e,0):e?[e]:[]},cs=function(e){return e=Ot(e)[0]||Di("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return Ot(r,t.querySelectorAll?t:t===e?Di("Invalid scope")||vs.createElement("div"):e)}},No=function(e){return e.sort(function(){return .5-Math.random()})},Yo=function(e){if(ge(e))return e;var r=Gt(e)?e:{each:e},t=Fr(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=r.axis,f=i,_=i;return Oe(i)?f=_={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],_=i[1]),function(d,c,p){var h=(p||r).length,m=s[h],T,w,S,v,b,P,x,M,C;if(!m){if(C=r.grid==="auto"?0:(r.grid||[1,Mt])[1],!C){for(x=-Mt;x<(x=p[C++].getBoundingClientRect().left)&&C<h;);C<h&&C--}for(m=s[h]=[],T=l?Math.min(C,h)*f-.5:i%C,w=C===Mt?0:l?h*_/C-.5:i/C|0,x=0,M=Mt,P=0;P<h;P++)S=P%C-T,v=w-(P/C|0),m[P]=b=u?Math.abs(u==="y"?v:S):So(S*S+v*v),b>x&&(x=b),b<M&&(M=b);i==="random"&&No(m),m.max=x-M,m.min=M,m.v=h=(parseFloat(r.amount)||parseFloat(r.each)*(C>h?h-1:u?u==="y"?h/C:C:Math.max(C,h/C))||0)*(i==="edges"?-1:1),m.b=h<0?n-h:n,m.u=Ye(r.amount||r.each)||0,t=t&&h<0?Ko(t):t}return h=(m[d]-m.min)/m.max||0,Ce(m.b+(t?t(h):h)*m.v)+m.u}},hs=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=Ce(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(nr(t)?0:Ye(t))}},Ho=function(e,r){var t=Ge(e),i,n;return!t&&Gt(e)&&(i=t=e.radius||Mt,e.values?(e=Ot(e.values),(n=!nr(e[0]))&&(i*=i)):e=hs(e.increment)),Tr(r,t?ge(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Mt,f=0,_=e.length,d,c;_--;)n?(d=e[_].x-o,c=e[_].y-l,d=d*d+c*c):d=Math.abs(e[_]-o),d<u&&(u=d,f=_);return f=!i||u<=i?e[f]:s,n||f===s||nr(s)?f:f+Ye(s)}:hs(e))},qo=function(e,r,t,i){return Tr(Ge(e)?!r:t===!0?!!(t=0):!i,function(){return Ge(e)?e[~~(Math.random()*e.length)]:(t=t||1e-5)&&(i=t<1?Math.pow(10,(t+"").length-2):1)&&Math.floor(Math.round((e-t/2+Math.random()*(r-e+t*.99))/t)*t*i)/i})},El=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(i){return r.reduce(function(n,s){return s(n)},i)}},Rl=function(e,r){return function(t){return e(parseFloat(t))+(r||Ye(t))}},Dl=function(e,r,t){return Vo(e,r,0,1,t)},Xo=function(e,r,t){return Tr(t,function(i){return e[~~r(i)]})},Al=function a(e,r,t){var i=r-e;return Ge(e)?Xo(e,a(0,e.length),r):Tr(t,function(n){return(i+(n-e)%i)%i+e})},Ll=function a(e,r,t){var i=r-e,n=i*2;return Ge(e)?Xo(e,a(0,e.length-1),r):Tr(t,function(s){return s=(n+(s-e)%n)%n||0,e+(s>i?n-s:s)})},ui=function(e){for(var r=0,t="",i,n,s,o;~(i=e.indexOf("random(",r));)s=e.indexOf(")",i),o=e.charAt(i+7)==="[",n=e.substr(i+7,s-i-7).match(o?Po:ss),t+=e.substr(r,i-r)+qo(o?n:+n[0],o?0:+n[1],+n[2]||1e-5),r=s+1;return t+e.substr(r,e.length-r)},Vo=function(e,r,t,i,n){var s=r-e,o=i-t;return Tr(n,function(l){return t+((l-e)/s*o||0)})},Fl=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=Oe(e),o={},l,u,f,_,d;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(Ge(e)&&!Ge(r)){for(f=[],_=e.length,d=_-2,u=1;u<_;u++)f.push(a(e[u-1],e[u]));_--,n=function(p){p*=_;var h=Math.min(d,~~p);return f[h](p-h)},t=r}else i||(e=si(Ge(e)?[]:{},e));if(!f){for(l in r)ks.call(o,e,l,"get",r[l]);n=function(p){return Ds(p,o)||(s?e.p:e)}}}return Tr(t,n)},xo=function(e,r,t){var i=e.labels,n=Mt,s,o,l;for(s in i)o=i[s]-r,o<0==!!t&&o&&n>(o=Math.abs(o))&&(l=s,n=o);return l},vt=function(e,r,t){var i=e.vars,n=i[r],s=ue,o=e._ctx,l,u,f;if(n)return l=i[r+"Params"],u=i.callbackScope||e,t&&vr.length&&_n(),o&&(ue=o),f=l?n.apply(u,l):n.call(u),ue=s,f},ki=function(e){return wr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ne),e.progress()<1&&vt(e,"onInterrupt"),e},ii,Uo=[],Wo=function(e){if(e)if(e=!e.name&&e.default||e,gs()||e.headless){var r=e.name,t=ge(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:Ai,render:Ds,add:ks,kill:$l,modifier:Zl,rawVars:0},s={targetTest:0,get:0,getSetter:Tn,aliases:{},register:0};if(li(),e!==i){if(ct[r])return;wt(i,wt(dn(e,n),s)),si(i.prototype,si(n,dn(e,s))),ct[i.prop=r]=i,e.targetTest&&(fn.push(i),xs[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}Oo(r,i),e.register&&e.register(Qe,i,rt)}else Uo.push(e)},ne=255,Mi={aqua:[0,ne,ne],lime:[0,ne,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ne],navy:[0,0,128],white:[ne,ne,ne],olive:[128,128,0],yellow:[ne,ne,0],orange:[ne,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ne,0,0],pink:[ne,192,203],cyan:[0,ne,ne],transparent:[ne,ne,ne,0]},jn=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*ne+.5|0},Go=function(e,r,t){var i=e?nr(e)?[e>>16,e>>8&ne,e&ne]:0:Mi.black,n,s,o,l,u,f,_,d,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Mi[e])i=Mi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ne,i&ne,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ne,e&ne]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(ss),!r)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=jn(l+1/3,n,s),i[1]=jn(l,n,s),i[2]=jn(l-1/3,n,s);else if(~e.indexOf("="))return i=e.match(ms),t&&i.length<4&&(i[3]=1),i}else i=e.match(ss)||Mi.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/ne,s=i[1]/ne,o=i[2]/ne,_=Math.max(n,s,o),d=Math.min(n,s,o),f=(_+d)/2,_===d?l=u=0:(c=_-d,u=f>.5?c/(2-_-d):c/(_+d),l=_===n?(s-o)/c+(s<o?6:0):_===s?(o-n)/c+2:(n-s)/c+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(f*100+.5)),t&&i.length<4&&(i[3]=1),i},Qo=function(e){var r=[],t=[],i=-1;return e.split(ir).forEach(function(n){var s=n.match(Ir)||[];r.push.apply(r,s),t.push(i+=s.length+1)}),r.c=t,r},wo=function(e,r,t){var i="",n=(e+i).match(ir),s=r?"hsla(":"rgba(",o=0,l,u,f,_;if(!n)return e;if(n=n.map(function(d){return(d=Go(d,r,1))&&s+(r?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),t&&(f=Qo(e),l=t.c,l.join(i)!==f.c.join(i)))for(u=e.replace(ir,"1").split(Ir),_=u.length-1;o<_;o++)i+=u[o]+(~l.indexOf(o)?n.shift()||s+"0,0,0,0)":(f.length?f:n.length?n:t).shift());if(!u)for(u=e.split(ir),_=u.length-1;o<_;o++)i+=u[o]+n[o];return i+u[_]},ir=function(){var a="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Mi)a+="|"+e+"\\b";return new RegExp(a+")","gi")}(),zl=/hsl[a]?\(/,Cs=function(e){var r=e.join(" "),t;if(ir.lastIndex=0,ir.test(r))return t=zl.test(r),e[1]=wo(e[1],t),e[0]=wo(e[0],t,Qo(e[1])),!0},Li,ht=function(){var a=Date.now,e=500,r=33,t=a(),i=t,n=1e3/240,s=n,o=[],l,u,f,_,d,c,p=function h(m){var T=a()-i,w=m===!0,S,v,b,P;if((T>e||T<0)&&(t+=T-r),i+=T,b=i-t,S=b-s,(S>0||w)&&(P=++_.frame,d=b-_.time*1e3,_.time=b=b/1e3,s+=S+(S>=n?4:n-S),v=1),w||(l=u(h)),v)for(c=0;c<o.length;c++)o[c](b,d,P,m)};return _={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(m){return d/(1e3/(m||60))},wake:function(){ko&&(!os&&gs()&&(Ut=os=window,vs=Ut.document||{},xt.gsap=Qe,(Ut.gsapVersions||(Ut.gsapVersions=[])).push(Qe.version),Mo(hn||Ut.GreenSockGlobals||!Ut.gsap&&Ut||{}),Uo.forEach(Wo)),f=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&_.sleep(),u=f||function(m){return setTimeout(m,s-_.time*1e3+1|0)},Li=1,p(2))},sleep:function(){(f?cancelAnimationFrame:clearTimeout)(l),Li=0,u=Ai},lagSmoothing:function(m,T){e=m||1/0,r=Math.min(T||33,e)},fps:function(m){n=1e3/(m||240),s=_.time*1e3+n},add:function(m,T,w){var S=T?function(v,b,P,x){m(v,b,P,x),_.remove(S)}:m;return _.remove(m),o[w?"unshift":"push"](S),li(),S},remove:function(m,T){~(T=o.indexOf(m))&&o.splice(T,1)&&c>=T&&c--},_listeners:o},_}(),li=function(){return!Li&&ht.wake()},Z={},Il=/^[\d.\-M][\d.\-,\s]/,Bl=/["']/g,Nl=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,l,u;n<s;n++)l=t[n],o=n!==s-1?l.lastIndexOf(","):l.length,u=l.substr(0,o),r[i]=isNaN(u)?u.replace(Bl,"").trim():+u,i=l.substr(o+1).trim();return r},Yl=function(e){var r=e.indexOf("(")+1,t=e.indexOf(")"),i=e.indexOf("(",r);return e.substring(r,~i&&i<t?e.indexOf(")",t+1):t)},Hl=function(e){var r=(e+"").split("("),t=Z[r[0]];return t&&r.length>1&&t.config?t.config.apply(null,~e.indexOf("{")?[Nl(r[1])]:Yl(e).split(",").map(Do)):Z._CE&&Il.test(e)?Z._CE("",e):t},Ko=function(e){return function(r){return 1-e(1-r)}},Zo=function a(e,r){for(var t=e._first,i;t;)t instanceof Be?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},Fr=function(e,r){return e&&(ge(e)?e:Z[e]||Hl(e))||r},Nr=function(e,r,t,i){t===void 0&&(t=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return tt(e,function(o){Z[o]=xt[o]=n,Z[s=o.toLowerCase()]=t;for(var l in n)Z[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Z[o+"."+l]=n[l]}),n},$o=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},es=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/ns*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*pl((f-s)*n)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:$o(o);return n=ns/n,l.config=function(u,f){return a(e,u,f)},l},ts=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:$o(t);return i.config=function(n){return a(e,n)},i};tt("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;Nr(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});Z.Linear.easeNone=Z.none=Z.Linear.easeIn;Nr("Elastic",es("in"),es("out"),es());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o<r?a*o*o:o<t?a*Math.pow(o-1.5/e,2)+.75:o<i?a*(o-=2.25/e)*o+.9375:a*Math.pow(o-2.625/e,2)+.984375};Nr("Bounce",function(s){return 1-n(1-s)},n)})(7.5625,2.75);Nr("Expo",function(a){return Math.pow(2,10*(a-1))*a+a*a*a*a*a*a*(1-a)});Nr("Circ",function(a){return-(So(1-a*a)-1)});Nr("Sine",function(a){return a===1?1:-dl(a*hl)+1});Nr("Back",ts("in"),ts("out"),ts());Z.SteppedEase=Z.steps=xt.SteppedEase={config:function(e,r){e===void 0&&(e=1);var t=1/e,i=e+(r?0:1),n=r?1:0,s=1-se;return function(o){return((i*zi(0,s,o)|0)+n)*t}}};ni.ease=Z["quad.out"];tt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(a){return ws+=a+","+a+"Params,"});var Ps=function(e,r){this.id=_l++,e._gsap=this,this.target=e,this.harness=r,this.get=r?r.get:bs,this.set=r?r.getSetter:Tn},Fi=function(){function a(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,ai(this,+r.duration,1,1),this.data=r.data,ue&&(this._ctx=ue,ue.data.push(this)),Li||ht.wake()}var e=a.prototype;return e.delay=function(t){return t||t===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ai(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(li(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(wn(this,t),!n._dp||n.parent||Fo(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Wt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===se||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ro(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+yo(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+yo(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?oi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-se?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?pn(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-se?0:this._rts,this.totalTime(zi(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),xn(this),Tl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(li(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==se&&(this._tTime-=se)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Wt(i,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(_t(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?pn(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=yl);var i=Ne;return Ne=t,Ss(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),Ne=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,vo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,vo(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(kt(this,t),_t(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,_t(i)),this._dur||(this._zTime=-se),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-se:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-se,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n<this.endTime(!0)-se)},e.eventCallback=function(t,i,n){var s=this.vars;return arguments.length>1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this;return new Promise(function(n){var s=ge(t)?t:Ao,o=function(){var u=i.then;i.then=null,ge(s)&&(s=s(i))&&(s.then||s===i)&&(i.then=u),n(s),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?o():i._prom=o})},e.kill=function(){ki(this)},a}();wt(Fi.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:-se,_prom:0,_ps:!1,_rts:1});var Be=function(a){bo(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=_t(t.sortChildren),ce&&Wt(t.parent||ce,rr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&zo(rr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Ei(0,arguments,this),this},r.from=function(i,n,s){return Ei(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Ei(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,Oi(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new Te(i,n,kt(this,s),1),this},r.call=function(i,n,s){return Wt(this,Te.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new Te(i,s,kt(this,l)),this},r.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,Oi(s).immediateRender=_t(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},r.staggerFromTo=function(i,n,s,o,l,u,f,_){return o.startAt=s,Oi(o).immediateRender=_t(o.immediateRender),this.staggerTo(i,n,o,l,u,f,_)},r.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Ce(i),_=this._zTime<0!=i<0&&(this._initted||!u),d,c,p,h,m,T,w,S,v,b,P,x;if(this!==ce&&f>l&&i>=0&&(f=l),f!==this._tTime||s||_){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),d=f,v=this._start,S=this._ts,T=!S,_&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(P=this._yoyo,m=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(m*100+i,n,s);if(d=Ce(f%m),f===l?(h=this._repeat,d=u):(b=Ce(f/m),h=~~b,h&&h===b&&(d=u,h--),d>u&&(d=u)),b=oi(this._tTime,m),!o&&this._tTime&&b!==h&&this._tTime-b*m-this._dur<=0&&(b=h),P&&h&1&&(d=u-d,x=1),h!==b&&!this._lock){var M=P&&b&1,C=M===(P&&h&1);if(h<b&&(M=!M),o=M?0:f%u?u:f,this._lock=1,this.render(o||(x?0:Ce(h*m)),n,!u)._lock=0,this._tTime=f,!n&&this.parent&&vt(this,"onRepeat"),this.vars.repeatRefresh&&!x&&(this.invalidate()._lock=1),o&&o!==this._time||T!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,C&&(this._lock=2,o=M?u:-1e-4,this.render(o,!0),this.vars.repeatRefresh&&!x&&this.invalidate()),this._lock=0,!this._ts&&!T)return this;Zo(this,x)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(w=Pl(this,Ce(o),Ce(d)),w&&(f-=d-(d=w._start))),this._tTime=f,this._time=d,this._act=!S,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,o=0),!o&&f&&!n&&!b&&(vt(this,"onStart"),this._tTime!==f))return this;if(d>=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||d>=c._start)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(d-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(d-c._start)*c._ts,n,s),d!==this._time||!this._ts&&!T){w=0,p&&(f+=this._zTime=-se);break}}c=p}else{c=this._last;for(var k=i<0?i:d;c;){if(p=c._prev,(c._act||k<=c._end)&&c._ts&&w!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(k-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(k-c._start)*c._ts,n,s||Ne&&Ss(c)),d!==this._time||!this._ts&&!T){w=0,p&&(f+=this._zTime=k?-se:se);break}}c=p}}if(w&&!n&&(this.pause(),w.render(d>=o?0:-se)._zTime=d>=o?1:-1,this._ts))return this._start=v,xn(this),this.render(i,n,s);this._onUpdate&&!n&&vt(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(v===this._start||Math.abs(S)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&wr(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(vt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(nr(n)||(n=kt(this,n,i)),!(i instanceof Fi)){if(Ge(i))return i.forEach(function(o){return s.add(o,n)}),this;if(Oe(i))return this.addLabel(i,n);if(ge(i))i=Te.delayedCall(0,i);else return this}return this!==i?Wt(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Mt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof Te?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return Oe(i)?this.removeLabel(i):ge(i)?this.killTweensOf(i):(i.parent===this&&vn(this,i),i===this._recent&&(this._recent=this._last),Lr(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ce(ht.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=kt(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=Te.delayedCall(0,n||Ai,s);return o.data="isPause",this._hasPause=1,Wt(this,o,kt(this,i))},r.removePause=function(i){var n=this._first;for(i=kt(this,i);n;)n._start===i&&n.data==="isPause"&&wr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)yr!==o[l]&&o[l].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=Ot(i),l=this._first,u=nr(n),f;l;)l instanceof Te?vl(l._targets,o)&&(u?(!yr||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=kt(s,i),l=n,u=l.startAt,f=l.onStart,_=l.onStartParams,d=l.immediateRender,c,p=Te.to(s,wt({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||se,onStart:function(){if(s.pause(),!c){var m=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());p._dur!==m&&ai(p,m,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,_||[])}},n));return d?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,wt({startAt:{time:kt(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),xo(this,kt(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),xo(this,kt(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+se)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);for(var o=this._first,l=this.labels,u;o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return Lr(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Lr(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,l=Mt,u,f,_;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(_=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,Wt(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!_&&!s._dp||_&&_.smoothChildTiming)&&(s._start+=f/s._ts,s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;ai(s,s===ce&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(ce._ts&&(Ro(ce,pn(i,ce)),Eo=ht.frame),ht.frame>=go){go+=dt.autoSleep||120;var n=ce._first;if((!n||!n._ts)&&dt.autoSleep&&ht._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||ht.sleep()}}},e}(Fi);wt(Be.prototype,{_lock:0,_hasPause:0,_forcing:0});var ql=function(e,r,t,i,n,s,o){var l=new rt(this._pt,e,r,0,1,Rs,null,n),u=0,f=0,_,d,c,p,h,m,T,w;for(l.b=t,l.e=i,t+="",i+="",(T=~i.indexOf("random("))&&(i=ui(i)),s&&(w=[t,i],s(w,e,r),t=w[0],i=w[1]),d=t.match($n)||[];_=$n.exec(i);)p=_[0],h=i.substring(u,_.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),p!==d[f++]&&(m=parseFloat(d[f-1])||0,l._pt={_next:l._pt,p:h||f===1?h:",",s:m,c:p.charAt(1)==="="?Br(m,p)-m:parseFloat(p)-m,m:c&&c<4?Math.round:0},u=$n.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=o,(ys.test(i)||T)&&(l.e=0),this._pt=l,l},ks=function(e,r,t,i,n,s,o,l,u,f){ge(i)&&(i=i(n||0,e,s));var _=e[r],d=t!=="get"?t:ge(_)?u?e[r.indexOf("set")||!ge(e["get"+r.substr(3)])?r:"get"+r.substr(3)](u):e[r]():_,c=ge(_)?u?Gl:ea:Es,p;if(Oe(i)&&(~i.indexOf("random(")&&(i=ui(i)),i.charAt(1)==="="&&(p=Br(d,i)+(Ye(d)||0),(p||p===0)&&(i=p))),!f||d!==i||_s)return!isNaN(d*i)&&i!==""?(p=new rt(this._pt,e,r,+d||0,i-(d||0),typeof _=="boolean"?Kl:ta,0,c),u&&(p.fp=u),o&&p.modifier(o,this,e),this._pt=p):(!_&&!(r in e)&&yn(r,i),ql.call(this,e,r,d,i,c,l||dt.stringFilter,u))},Xl=function(e,r,t,i,n){if(ge(e)&&(e=Ri(e,n,r,t,i)),!Gt(e)||e.style&&e.nodeType||Ge(e)||Co(e))return Oe(e)?Ri(e,n,r,t,i):e;var s={},o;for(o in e)s[o]=Ri(e[o],n,r,t,i);return s},Ms=function(e,r,t,i,n,s){var o,l,u,f;if(ct[e]&&(o=new ct[e]).init(n,o.rawVars?r[e]:Xl(r[e],i,n,s,t),t,i,s)!==!1&&(t._pt=l=new rt(t._pt,n,e,0,1,o.render,o,0,o.priority),t!==ii))for(u=t._ptLookup[t._targets.indexOf(n)],f=o._props.length;f--;)u[o._props[f]]=l;return o},yr,_s,Os=function a(e,r,t){var i=e.vars,n=i.ease,s=i.startAt,o=i.immediateRender,l=i.lazy,u=i.onUpdate,f=i.runBackwards,_=i.yoyoEase,d=i.keyframes,c=i.autoRevert,p=e._dur,h=e._startAt,m=e._targets,T=e.parent,w=T&&T.data==="nested"?T.vars.targets:m,S=e._overwrite==="auto"&&!ps,v=e.timeline,b,P,x,M,C,k,F,O,G,N,U,H,A;if(v&&(!d||!n)&&(n="none"),e._ease=Fr(n,ni.ease),e._yEase=_?Ko(Fr(_===!0?n:_,ni.ease)):0,_&&e._yoyo&&!e._repeat&&(_=e._yEase,e._yEase=e._ease,e._ease=_),e._from=!v&&!!i.runBackwards,!v||d&&!i.stagger){if(O=m[0]?xr(m[0]).harness:0,H=O&&i[O.prop],b=dn(i,xs),h&&(h._zTime<0&&h.progress(1),r<0&&f&&o&&!c?h.render(-1,!0):h.revert(f&&p?un:ml),h._lazy=0),s){if(wr(e._startAt=Te.set(m,wt({data:"isStart",overwrite:!1,parent:T,immediateRender:!0,lazy:!h&&_t(l),startAt:null,delay:0,onUpdate:u&&function(){return vt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ne||!o&&!c)&&e._startAt.revert(un),o&&p&&r<=0&&t<=0){r&&(e._zTime=r);return}}else if(f&&p&&!h){if(r&&(o=!1),x=wt({overwrite:!1,data:"isFromStart",lazy:o&&!h&&_t(l),immediateRender:o,stagger:0,parent:T},b),H&&(x[O.prop]=H),wr(e._startAt=Te.set(m,x)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(Ne?e._startAt.revert(un):e._startAt.render(-1,!0)),e._zTime=r,!o)a(e._startAt,se,se);else if(!r)return}for(e._pt=e._ptCache=0,l=p&&_t(l)||l&&!p,P=0;P<m.length;P++){if(C=m[P],F=C._gsap||Ts(m)[P]._gsap,e._ptLookup[P]=N={},as[F.id]&&vr.length&&_n(),U=w===m?P:w.indexOf(C),O&&(G=new O).init(C,H||b,e,U,w)!==!1&&(e._pt=M=new rt(e._pt,C,G.name,0,1,G.render,G,0,G.priority),G._props.forEach(function($){N[$]=M}),G.priority&&(k=1)),!O||H)for(x in b)ct[x]&&(G=Ms(x,b,e,U,C,w))?G.priority&&(k=1):N[x]=M=ks.call(e,C,x,"get",b[x],U,w,0,i.stringFilter);e._op&&e._op[P]&&e.kill(C,e._op[P]),S&&e._pt&&(yr=e,ce.killTweensOf(C,N,e.globalTime(r)),A=!e.parent,yr=0),e._pt&&l&&(as[F.id]=1)}k&&As(e),e._onInit&&e._onInit(e)}e._onUpdate=u,e._initted=(!e._op||e._pt)&&!A,d&&r<=0&&v.render(Mt,!0,!0)},Vl=function(e,r,t,i,n,s,o,l){var u=(e._pt&&e._ptCache||(e._ptCache={}))[r],f,_,d,c;if(!u)for(u=e._ptCache[r]=[],d=e._ptLookup,c=e._targets.length;c--;){if(f=d[c][r],f&&f.d&&f.d._pt)for(f=f.d._pt;f&&f.p!==r&&f.fp!==r;)f=f._next;if(!f)return _s=1,e.vars[r]="+=0",Os(e,o),_s=0,l?Di(r+" not eligible for reset"):1;u.push(f)}for(c=u.length;c--;)_=u[c],f=_._pt||_,f.s=(i||i===0)&&!n?i:f.s+(i||0)+s*f.c,f.c=t-f.s,_.e&&(_.e=me(t)+Ye(_.e)),_.b&&(_.b=f.s+Ye(_.b))},Ul=function(e,r){var t=e[0]?xr(e[0]).harness:0,i=t&&t.aliases,n,s,o,l;if(!i)return r;n=si({},r);for(s in i)if(s in n)for(l=i[s].split(","),o=l.length;o--;)n[l[o]]=n[s];return n},Wl=function(e,r,t,i){var n=r.ease||i||"power1.inOut",s,o;if(Ge(r))o=t[e]||(t[e]=[]),r.forEach(function(l,u){return o.push({t:u/(r.length-1)*100,v:l,e:n})});else for(s in r)o=t[s]||(t[s]=[]),s==="ease"||o.push({t:parseFloat(e),v:r[s],e:n})},Ri=function(e,r,t,i,n){return ge(e)?e.call(r,t,i,n):Oe(e)&&~e.indexOf("random(")?ui(e):e},Jo=ws+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",jo={};tt(Jo+",id,stagger,delay,duration,paused,scrollTrigger",function(a){return jo[a]=1});var Te=function(a){bo(e,a);function e(t,i,n,s){var o;typeof i=="number"&&(n.duration=i,i=n,n=null),o=a.call(this,s?i:Oi(i))||this;var l=o.vars,u=l.duration,f=l.delay,_=l.immediateRender,d=l.stagger,c=l.overwrite,p=l.keyframes,h=l.defaults,m=l.scrollTrigger,T=l.yoyoEase,w=i.parent||ce,S=(Ge(t)||Co(t)?nr(t[0]):"length"in i)?[t]:Ot(t),v,b,P,x,M,C,k,F;if(o._targets=S.length?Ts(S):Di("GSAP target "+t+" not found. https://gsap.com",!dt.nullTargetWarn)||[],o._ptLookup=[],o._overwrite=c,p||d||ln(u)||ln(f)){if(i=o.vars,v=o.timeline=new Be({data:"nested",defaults:h||{},targets:w&&w.data==="nested"?w.vars.targets:S}),v.kill(),v.parent=v._dp=rr(o),v._start=0,d||ln(u)||ln(f)){if(x=S.length,k=d&&Yo(d),Gt(d))for(M in d)~Jo.indexOf(M)&&(F||(F={}),F[M]=d[M]);for(b=0;b<x;b++)P=dn(i,jo),P.stagger=0,T&&(P.yoyoEase=T),F&&si(P,F),C=S[b],P.duration=+Ri(u,rr(o),b,C,S),P.delay=(+Ri(f,rr(o),b,C,S)||0)-o._delay,!d&&x===1&&P.delay&&(o._delay=f=P.delay,o._start+=f,P.delay=0),v.to(C,P,k?k(b,C,S):0),v._ease=Z.none;v.duration()?u=f=0:o.timeline=0}else if(p){Oi(wt(v.vars.defaults,{ease:"none"})),v._ease=Fr(p.ease||i.ease||"none");var O=0,G,N,U;if(Ge(p))p.forEach(function(H){return v.to(S,H,">")}),v.duration();else{P={};for(M in p)M==="ease"||M==="easeEach"||Wl(M,p[M],P,p.easeEach);for(M in P)for(G=P[M].sort(function(H,A){return H.t-A.t}),O=0,b=0;b<G.length;b++)N=G[b],U={ease:N.e,duration:(N.t-(b?G[b-1].t:0))/100*u},U[M]=N.v,v.to(S,U,O),O+=U.duration;v.duration()<u&&v.to({},{duration:u-v.duration()})}}u||o.duration(u=v.duration())}else o.timeline=0;return c===!0&&!ps&&(yr=rr(o),ce.killTweensOf(S),yr=0),Wt(w,rr(o),n),i.reversed&&o.reverse(),i.paused&&o.paused(!0),(_||!u&&!p&&o._start===Ce(w._time)&&_t(_)&&bl(rr(o))&&w.data!=="nested")&&(o._tTime=-se,o.render(Math.max(0,-f)||0)),m&&zo(rr(o),m),o}var r=e.prototype;return r.render=function(i,n,s){var o=this._time,l=this._tDur,u=this._dur,f=i<0,_=i>l-se&&!f?l:i<se?0:i,d,c,p,h,m,T,w,S,v;if(!u)Cl(this,i,n,s);else if(_!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==f||this._lazy){if(d=_,S=this.timeline,this._repeat){if(h=u+this._rDelay,this._repeat<-1&&f)return this.totalTime(h*100+i,n,s);if(d=Ce(_%h),_===l?(p=this._repeat,d=u):(m=Ce(_/h),p=~~m,p&&p===m?(d=u,p--):d>u&&(d=u)),T=this._yoyo&&p&1,T&&(v=this._yEase,d=u-d),m=oi(this._tTime,h),d===o&&!s&&this._initted&&p===m)return this._tTime=_,this;p!==m&&(S&&this._yEase&&Zo(S,T),this.vars.repeatRefresh&&!T&&!this._lock&&d!==h&&this._initted&&(this._lock=s=1,this.render(Ce(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(Io(this,f?i:d,s,n,_))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==m))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=_,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=w=(v||this._ease)(d/u),this._from&&(this.ratio=w=1-w),!o&&_&&!n&&!m&&(vt(this,"onStart"),this._tTime!==_))return this;for(c=this._pt;c;)c.r(w,c.d),c=c._next;S&&S.render(i<0?i:S._dur*S._ease(d/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&ls(this,i,n,s),vt(this,"onUpdate")),this._repeat&&p!==m&&this.vars.onRepeat&&!n&&this.parent&&vt(this,"onRepeat"),(_===this._tDur||!_)&&this._tTime===_&&(f&&!this._onUpdate&&ls(this,i,!0,!0),(i||!u)&&(_===this._tDur&&this._ts>0||!_&&this._ts<0)&&wr(this,1),!n&&!(f&&!o)&&(_||o||T)&&(vt(this,_===l?"onComplete":"onReverseComplete",!0),this._prom&&!(_<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,l){Li||ht.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||Os(this,u),f=this._ease(u/this._dur),Vl(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(wn(this,0),this.parent||Lo(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?ki(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ne),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,yr&&yr.vars.overwrite!==!0)._first||ki(this),this.parent&&s!==this.timeline.totalDuration()&&ai(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?Ot(i):o,u=this._ptLookup,f=this._pt,_,d,c,p,h,m,T;if((!n||n==="all")&&wl(o,l))return n==="all"&&(this._pt=0),ki(this);for(_=this._op=this._op||[],n!=="all"&&(Oe(n)&&(h={},tt(n,function(w){return h[w]=1}),n=h),n=Ul(o,n)),T=o.length;T--;)if(~l.indexOf(o[T])){d=u[T],n==="all"?(_[T]=n,p=d,c={}):(c=_[T]=_[T]||{},p=n);for(h in p)m=d&&d[h],m&&((!("kill"in m.d)||m.d.kill(h)===!0)&&vn(this,m,"_pt"),delete d[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&ki(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Ei(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Ei(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return ce.killTweensOf(i,n,s)},e}(Fi);wt(Te.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});tt("staggerTo,staggerFrom,staggerFromTo",function(a){Te[a]=function(){var e=new Be,r=fs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var Es=function(e,r,t){return e[r]=t},ea=function(e,r,t){return e[r](t)},Gl=function(e,r,t,i){return e[r](i.fp,t)},Ql=function(e,r,t){return e.setAttribute(r,t)},Tn=function(e,r){return ge(e[r])?ea:mn(e[r])&&e.setAttribute?Ql:Es},ta=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},Kl=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Rs=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},Ds=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},Zl=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},$l=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?vn(this,r,"_pt"):r.dep||(t=1),r=i;return!t},Jl=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},As=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},rt=function(){function a(r,t,i,n,s,o,l,u,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||ta,this.d=l||this,this.set=u||Es,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=Jl,this.m=t,this.mt=n,this.tween=i},a}();tt(ws+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(a){return xs[a]=1});xt.TweenMax=xt.TweenLite=Te;xt.TimelineLite=xt.TimelineMax=Be;ce=new Be({sortChildren:!1,defaults:ni,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});dt.stringFilter=Cs;var zr=[],cn={},jl=[],To=0,eu=0,rs=function(e){return(cn[e]||jl).map(function(r){return r()})},ds=function(){var e=Date.now(),r=[];e-To>2&&(rs("matchMediaInit"),zr.forEach(function(t){var i=t.queries,n=t.conditions,s,o,l,u;for(o in i)s=Ut.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(t.revert(),l&&r.push(t))}),rs("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),To=e,rs("matchMedia"))},ra=function(){function a(r,t){this.selector=t&&cs(t),this.data=[],this._r=[],this.isReverted=!1,this.id=eu++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){ge(t)&&(n=i,i=t,t=ge);var s=this,o=function(){var u=ue,f=s.selector,_;return u&&u!==s&&u.data.push(s),n&&(s.selector=cs(n)),ue=s,_=i.apply(s,arguments),ge(_)&&s._r.push(_),ue=u,s.selector=f,s.isReverted=!1,_};return s.last=o,t===ge?o(s,function(l){return s.add(null,l)}):t?s[t]=o:o},e.ignore=function(t){var i=ue;ue=null,t(this),ue=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof Te&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,_){return _.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof Be?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Te)&&u.revert&&u.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=zr.length;s--;)zr[s].id===this.id&&zr.splice(s,1)},e.revert=function(t){this.kill(t||{})},a}(),tu=function(){function a(r){this.contexts=[],this.scope=r,ue&&ue.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){Gt(t)||(t={matches:t});var s=new ra(0,n||this.scope),o=s.conditions={},l,u,f;ue&&!s.selector&&(s.selector=ue.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(u in t)u==="all"?f=1:(l=Ut.matchMedia(t[u]),l&&(zr.indexOf(s)<0&&zr.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(ds):l.addEventListener("change",ds)));return f&&i(s,function(_){return s.add(null,_)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),gn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r.forEach(function(i){return Wo(i)})},timeline:function(e){return new Be(e)},getTweensOf:function(e,r){return ce.getTweensOf(e,r)},getProperty:function(e,r,t,i){Oe(e)&&(e=Ot(e)[0]);var n=xr(e||{}).get,s=t?Ao:Do;return t==="native"&&(t=""),e&&(r?s((ct[r]&&ct[r].get||n)(e,r,t,i)):function(o,l,u){return s((ct[o]&&ct[o].get||n)(e,o,l,u))})},quickSetter:function(e,r,t){if(e=Ot(e),e.length>1){var i=e.map(function(f){return Qe.quickSetter(f,r,t)}),n=i.length;return function(f){for(var _=n;_--;)i[_](f)}}e=e[0]||{};var s=ct[r],o=xr(e),l=o.harness&&(o.harness.aliases||{})[r]||r,u=s?function(f){var _=new s;ii._pt=0,_.init(e,t?f+t:f,ii,0,[e]),_.render(1,_),ii._pt&&Ds(1,ii)}:o.set(e,l);return s?u:function(f){return u(e,l,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=Qe.to(e,wt((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(l,u,f){return n.resetTo(r,l,u,f)};return s.tween=n,s},isTweening:function(e){return ce.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Fr(e.ease,ni.ease)),mo(ni,e||{})},config:function(e){return mo(dt,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!ct[o]&&!xt[o]&&Di(r+" effect requires "+o+" plugin.")}),Jn[r]=function(o,l,u){return t(Ot(o),wt(l||{},n),u)},s&&(Be.prototype[r]=function(o,l,u){return this.add(Jn[r](o,Gt(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,r){Z[e]=Fr(r)},parseEase:function(e,r){return arguments.length?Fr(e,r):Z},getById:function(e){return ce.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new Be(e),i,n;for(t.smoothChildTiming=_t(e.smoothChildTiming),ce.remove(t),t._dp=0,t._time=t._tTime=ce._time,i=ce._first;i;)n=i._next,(r||!(!i._dur&&i instanceof Te&&i.vars.onComplete===i._targets[0]))&&Wt(t,i,i._start-i._delay),i=n;return Wt(ce,t,0),t},context:function(e,r){return e?new ra(e,r):ue},matchMedia:function(e){return new tu(e)},matchMediaRefresh:function(){return zr.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||ds()},addEventListener:function(e,r){var t=cn[e]||(cn[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=cn[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:Al,wrapYoyo:Ll,distribute:Yo,random:qo,snap:Ho,normalize:Dl,getUnit:Ye,clamp:Ml,splitColor:Go,toArray:Ot,selector:cs,mapRange:Vo,pipe:El,unitize:Rl,interpolate:Fl,shuffle:No},install:Mo,effects:Jn,ticker:ht,updateRoot:Be.updateRoot,plugins:ct,globalTimeline:ce,core:{PropTween:rt,globals:Oo,Tween:Te,Timeline:Be,Animation:Fi,getCache:xr,_removeLinkedListItem:vn,reverting:function(){return Ne},context:function(e){return e&&ue&&(ue.data.push(e),e._ctx=ue),ue},suppressOverwrites:function(e){return ps=e}}};tt("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return gn[a]=Te[a]});ht.add(Be.updateRoot);ii=gn.to({},{duration:0});var ru=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},iu=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=ru(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},is=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if(Oe(n)&&(l={},tt(n,function(f){return l[f]=1}),n=l),r){l={};for(u in n)l[u]=r(n[u]);n=l}iu(o,n)}}}},Qe=gn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,l;this.tween=t;for(s in r)l=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(l||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)Ne?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},is("roundProps",hs),is("modifiers"),is("snap",Ho))||gn;Te.version=Be.version=Qe.version="3.13.0";ko=1;gs()&&li();var nu=Z.Power0,su=Z.Power1,ou=Z.Power2,au=Z.Power3,lu=Z.Power4,uu=Z.Linear,fu=Z.Quad,cu=Z.Cubic,hu=Z.Quart,_u=Z.Quint,du=Z.Strong,pu=Z.Elastic,gu=Z.Back,mu=Z.SteppedEase,yu=Z.Bounce,vu=Z.Sine,xu=Z.Expo,wu=Z.Circ;var ia,br,ci,Ns,Xr,Tu,na,Ys,bu=function(){return typeof window<"u"},or={},qr=180/Math.PI,hi=Math.PI/180,fi=Math.atan2,sa=1e8,Hs=/([A-Z])/g,Su=/(left|right|width|margin|padding|x)/i,Cu=/[\s,\(]\S/,Qt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Fs=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Pu=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},ku=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Mu=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},_a=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},da=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Ou=function(e,r,t){return e.style[r]=t},Eu=function(e,r,t){return e.style.setProperty(r,t)},Ru=function(e,r,t){return e._gsap[r]=t},Du=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Au=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Lu=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},he="transform",pt=he+"Origin",Fu=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in or&&n){if(this.tfm=this.tfm||{},e!=="transform")e=Qt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=sr(i,o)}):this.tfm[e]=s.x?s[e]:sr(i,e),e===pt&&(this.tfm.zOrigin=s.zOrigin);else return Qt.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(he)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(pt,r,"")),e=he}(n||r)&&this.props.push(e,r,n[e])},pa=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},zu=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n<e.length;n+=3)e[n+1]?e[n+1]===2?r[e[n]](e[n+2]):r[e[n]]=e[n+2]:e[n+2]?t[e[n]]=e[n+2]:t.removeProperty(e[n].substr(0,2)==="--"?e[n]:e[n].replace(Hs,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),n=Ys(),(!n||!n.isStart)&&!t[he]&&(pa(t),i.zOrigin&&t[pt]&&(t[pt]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},ga=function(e,r){var t={target:e,props:[],revert:zu,save:Fu};return e._gsap||Qe.core.getCache(e),r&&e.style&&e.nodeType&&r.split(",").forEach(function(i){return t.save(i)}),t},ma,zs=function(e,r){var t=br.createElementNS?br.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):br.createElement(e);return t&&t.style?t:br.createElement(e)},Et=function a(e,r,t){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(Hs,"-$1").toLowerCase())||i.getPropertyValue(r)||!t&&a(e,_i(r)||r,1)||""},oa="O,Moz,ms,Ms,Webkit".split(","),_i=function(e,r,t){var i=r||Xr,n=i.style,s=5;if(e in n&&!t)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(oa[s]+e in n););return s<0?null:(s===3?"ms":s>=0?oa[s]:"")+e},Is=function(){bu()&&window.document&&(ia=window,br=ia.document,ci=br.documentElement,Xr=zs("div")||{style:{}},Tu=zs("div"),he=_i(he),pt=he+"Origin",Xr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ma=!!_i("perspective"),Ys=Qe.core.reverting,Ns=1)},aa=function(e){var r=e.ownerSVGElement,t=zs("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),ci.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),ci.removeChild(t),n},la=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},ya=function(e){var r,t;try{r=e.getBBox()}catch{r=aa(e),t=1}return r&&(r.width||r.height)||t||(r=aa(e)),r&&!r.width&&!r.x&&!r.y?{x:+la(e,["x","cx","x1"])||0,y:+la(e,["y","cy","y1"])||0,width:0,height:0}:r},va=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&ya(e))},Vr=function(e,r){if(r){var t=e.style,i;r in or&&r!==pt&&(r=he),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(Hs,"-$1").toLowerCase())):t.removeAttribute(r)}},Sr=function(e,r,t,i,n,s){var o=new rt(e._pt,r,t,0,1,s?da:_a);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},ua={deg:1,rad:1,turn:1},Iu={grid:1,flex:1},Cr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=Xr.style,l=Su.test(r),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),_=100,d=i==="px",c=i==="%",p,h,m,T;if(i===s||!n||ua[i]||ua[s])return n;if(s!=="px"&&!d&&(n=a(e,r,t,"px")),T=e.getCTM&&va(e),(c||s==="%")&&(or[r]||~r.indexOf("adius")))return p=T?e.getBBox()[l?"width":"height"]:e[f],me(c?n/p*_:n/100*p);if(o[l?"width":"height"]=_+(d?s:i),h=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,T&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===br||!h.appendChild)&&(h=br.body),m=h._gsap,m&&c&&m.width&&l&&m.time===ht.time&&!m.uncache)return me(n/m.width*_);if(c&&(r==="height"||r==="width")){var w=e.style[r];e.style[r]=_+i,p=e[f],w?e.style[r]=w:Vr(e,r)}else(c||s==="%")&&!Iu[Et(h,"display")]&&(o.position=Et(e,"position")),h===e&&(o.position="static"),h.appendChild(Xr),p=Xr[f],h.removeChild(Xr),o.position="absolute";return l&&c&&(m=xr(h),m.time=ht.time,m.width=h[f]),me(d?p*n/_:p&&n?_/p*n:0)},sr=function(e,r,t,i){var n;return Ns||Is(),r in Qt&&r!=="transform"&&(r=Qt[r],~r.indexOf(",")&&(r=r.split(",")[0])),or[r]&&r!=="transform"?(n=Ni(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Sn(Et(e,pt))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=bn[r]&&bn[r](e,r,t)||Et(e,r)||bs(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Cr(e,r,n,t)+t:n},Bu=function(e,r,t,i){if(!t||t==="none"){var n=_i(r,e,1),s=n&&Et(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=Et(e,"borderTopColor"))}var o=new rt(this._pt,e.style,r,0,1,Rs),l=0,u=0,f,_,d,c,p,h,m,T,w,S,v,b;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=Et(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[r],e.style[r]=i,i=Et(e,r)||i,h?e.style[r]=h:Vr(e,r)),f=[t,i],Cs(f),t=f[0],i=f[1],d=t.match(Ir)||[],b=i.match(Ir)||[],b.length){for(;_=Ir.exec(i);)m=_[0],w=i.substring(l,_.index),p?p=(p+1)%5:(w.substr(-5)==="rgba("||w.substr(-5)==="hsla(")&&(p=1),m!==(h=d[u++]||"")&&(c=parseFloat(h)||0,v=h.substr((c+"").length),m.charAt(1)==="="&&(m=Br(c,m)+v),T=parseFloat(m),S=m.substr((T+"").length),l=Ir.lastIndex-S.length,S||(S=S||dt.units[r]||v,l===i.length&&(i+=S,o.e+=S)),v!==S&&(c=Cr(e,r,h,S)||0),o._pt={_next:o._pt,p:w||u===1?w:",",s:c,c:T-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=l<i.length?i.substring(l,i.length):""}else o.r=r==="display"&&i==="none"?da:_a;return ys.test(i)&&(o.e=0),this._pt=o,o},fa={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Nu=function(e){var r=e.split(" "),t=r[0],i=r[1]||"50%";return(t==="top"||t==="bottom"||i==="left"||i==="right")&&(e=t,t=i,i=e),r[0]=fa[t]||t,r[1]=fa[i]||i,r.join(" ")},Yu=function(e,r){if(r.tween&&r.tween._time===r.tween._dur){var t=r.t,i=t.style,n=r.u,s=t._gsap,o,l,u;if(n==="all"||n===!0)i.cssText="",l=1;else for(n=n.split(","),u=n.length;--u>-1;)o=n[u],or[o]&&(l=1,o=o==="transformOrigin"?pt:he),Vr(t,o);l&&(Vr(t,he),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ni(t,1),s.uncache=1,pa(i)))}},bn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new rt(e._pt,r,t,0,0,Yu);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},Bi=[1,0,0,1,0,0],xa={},wa=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},ca=function(e){var r=Et(e,he);return wa(r)?Bi:r.substr(7).match(ms).map(me)},qs=function(e,r){var t=e._gsap||xr(e),i=e.style,n=ca(e),s,o,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?Bi:n):(n===Bi&&!e.offsetParent&&e!==ci&&!t.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,ci.appendChild(e)),n=ca(e),l?i.display=l:Vr(e,"display"),u&&(o?s.insertBefore(e,o):s?s.appendChild(e):ci.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},Bs=function(e,r,t,i,n,s){var o=e._gsap,l=n||qs(e,!0),u=o.xOrigin||0,f=o.yOrigin||0,_=o.xOffset||0,d=o.yOffset||0,c=l[0],p=l[1],h=l[2],m=l[3],T=l[4],w=l[5],S=r.split(" "),v=parseFloat(S[0])||0,b=parseFloat(S[1])||0,P,x,M,C;t?l!==Bi&&(x=c*m-p*h)&&(M=v*(m/x)+b*(-h/x)+(h*w-m*T)/x,C=v*(-p/x)+b*(c/x)-(c*w-p*T)/x,v=M,b=C):(P=ya(e),v=P.x+(~S[0].indexOf("%")?v/100*P.width:v),b=P.y+(~(S[1]||S[0]).indexOf("%")?b/100*P.height:b)),i||i!==!1&&o.smooth?(T=v-u,w=b-f,o.xOffset=_+(T*c+w*h)-T,o.yOffset=d+(T*p+w*m)-w):o.xOffset=o.yOffset=0,o.xOrigin=v,o.yOrigin=b,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[pt]="0px 0px",s&&(Sr(s,o,"xOrigin",u,v),Sr(s,o,"yOrigin",f,b),Sr(s,o,"xOffset",_,o.xOffset),Sr(s,o,"yOffset",d,o.yOffset)),e.setAttribute("data-svg-origin",v+" "+b)},Ni=function(e,r){var t=e._gsap||new Ps(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",l=getComputedStyle(e),u=Et(e,pt)||"0",f,_,d,c,p,h,m,T,w,S,v,b,P,x,M,C,k,F,O,G,N,U,H,A,$,te,g,re,z,Lt,_e,Fe;return f=_=d=h=m=T=w=S=v=0,c=p=1,t.svg=!!(e.getCTM&&va(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[he]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[he]!=="none"?l[he]:"")),i.scale=i.rotate=i.translate="none"),x=qs(e,t.svg),t.svg&&(t.uncache?($=e.getBBox(),u=t.xOrigin-$.x+"px "+(t.yOrigin-$.y)+"px",A=""):A=!r&&e.getAttribute("data-svg-origin"),Bs(e,A||u,!!A||t.originIsAbsolute,t.smooth!==!1,x)),b=t.xOrigin||0,P=t.yOrigin||0,x!==Bi&&(F=x[0],O=x[1],G=x[2],N=x[3],f=U=x[4],_=H=x[5],x.length===6?(c=Math.sqrt(F*F+O*O),p=Math.sqrt(N*N+G*G),h=F||O?fi(O,F)*qr:0,w=G||N?fi(G,N)*qr+h:0,w&&(p*=Math.abs(Math.cos(w*hi))),t.svg&&(f-=b-(b*F+P*G),_-=P-(b*O+P*N))):(Fe=x[6],Lt=x[7],g=x[8],re=x[9],z=x[10],_e=x[11],f=x[12],_=x[13],d=x[14],M=fi(Fe,z),m=M*qr,M&&(C=Math.cos(-M),k=Math.sin(-M),A=U*C+g*k,$=H*C+re*k,te=Fe*C+z*k,g=U*-k+g*C,re=H*-k+re*C,z=Fe*-k+z*C,_e=Lt*-k+_e*C,U=A,H=$,Fe=te),M=fi(-G,z),T=M*qr,M&&(C=Math.cos(-M),k=Math.sin(-M),A=F*C-g*k,$=O*C-re*k,te=G*C-z*k,_e=N*k+_e*C,F=A,O=$,G=te),M=fi(O,F),h=M*qr,M&&(C=Math.cos(M),k=Math.sin(M),A=F*C+O*k,$=U*C+H*k,O=O*C-F*k,H=H*C-U*k,F=A,U=$),m&&Math.abs(m)+Math.abs(h)>359.9&&(m=h=0,T=180-T),c=me(Math.sqrt(F*F+O*O+G*G)),p=me(Math.sqrt(H*H+Fe*Fe)),M=fi(U,H),w=Math.abs(M)>2e-4?M*qr:0,v=_e?1/(_e<0?-_e:_e):0),t.svg&&(A=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!wa(Et(e,he)),A&&e.setAttribute("transform",A))),Math.abs(w)>90&&Math.abs(w)<270&&(n?(c*=-1,w+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,w+=w<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=_-((t.yPercent=_&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-_)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=d+s,t.scaleX=me(c),t.scaleY=me(p),t.rotation=me(h)+o,t.rotationX=me(m)+o,t.rotationY=me(T)+o,t.skewX=w+o,t.skewY=S+o,t.transformPerspective=v+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!r&&t.zOrigin||0)&&(i[pt]=Sn(u)),t.xOffset=t.yOffset=0,t.force3D=dt.force3D,t.renderTransform=t.svg?qu:ma?Ta:Hu,t.uncache=0,t},Sn=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ls=function(e,r,t){var i=Ye(r);return me(parseFloat(r)+parseFloat(Cr(e,"x",t+"px",i)))+i},Hu=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,Ta(e,r)},Yr="0deg",Ii="0px",Hr=") ",Ta=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.z,u=t.rotation,f=t.rotationY,_=t.rotationX,d=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,m=t.transformPerspective,T=t.force3D,w=t.target,S=t.zOrigin,v="",b=T==="auto"&&e&&e!==1||T===!0;if(S&&(_!==Yr||f!==Yr)){var P=parseFloat(f)*hi,x=Math.sin(P),M=Math.cos(P),C;P=parseFloat(_)*hi,C=Math.cos(P),s=Ls(w,s,x*C*-S),o=Ls(w,o,-Math.sin(P)*-S),l=Ls(w,l,M*C*-S+S)}m!==Ii&&(v+="perspective("+m+Hr),(i||n)&&(v+="translate("+i+"%, "+n+"%) "),(b||s!==Ii||o!==Ii||l!==Ii)&&(v+=l!==Ii||b?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+Hr),u!==Yr&&(v+="rotate("+u+Hr),f!==Yr&&(v+="rotateY("+f+Hr),_!==Yr&&(v+="rotateX("+_+Hr),(d!==Yr||c!==Yr)&&(v+="skew("+d+", "+c+Hr),(p!==1||h!==1)&&(v+="scale("+p+", "+h+Hr),w.style[he]=v||"translate(0, 0)"},qu=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.rotation,u=t.skewX,f=t.skewY,_=t.scaleX,d=t.scaleY,c=t.target,p=t.xOrigin,h=t.yOrigin,m=t.xOffset,T=t.yOffset,w=t.forceCSS,S=parseFloat(s),v=parseFloat(o),b,P,x,M,C;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=hi,u*=hi,b=Math.cos(l)*_,P=Math.sin(l)*_,x=Math.sin(l-u)*-d,M=Math.cos(l-u)*d,u&&(f*=hi,C=Math.tan(u-f),C=Math.sqrt(1+C*C),x*=C,M*=C,f&&(C=Math.tan(f),C=Math.sqrt(1+C*C),b*=C,P*=C)),b=me(b),P=me(P),x=me(x),M=me(M)):(b=_,M=d,P=x=0),(S&&!~(s+"").indexOf("px")||v&&!~(o+"").indexOf("px"))&&(S=Cr(c,"x",s,"px"),v=Cr(c,"y",o,"px")),(p||h||m||T)&&(S=me(S+p-(p*b+h*x)+m),v=me(v+h-(p*P+h*M)+T)),(i||n)&&(C=c.getBBox(),S=me(S+i/100*C.width),v=me(v+n/100*C.height)),C="matrix("+b+","+P+","+x+","+M+","+S+","+v+")",c.setAttribute("transform",C),w&&(c.style[he]=C)},Xu=function(e,r,t,i,n){var s=360,o=Oe(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?qr:1),u=l-i,f=i+u+"deg",_,d;return o&&(_=n.split("_")[1],_==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),_==="cw"&&u<0?u=(u+s*sa)%s-~~(u/s)*s:_==="ccw"&&u>0&&(u=(u-s*sa)%s-~~(u/s)*s)),e._pt=d=new rt(e._pt,r,t,i,u,Pu),d.e=f,d.u="deg",e._props.push(t),d},ha=function(e,r){for(var t in r)e[t]=r[t];return e},Vu=function(e,r,t){var i=ha({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,l,u,f,_,d,c,p;i.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[he]=r,o=Ni(t,1),Vr(t,he),t.setAttribute("transform",u)):(u=getComputedStyle(t)[he],s[he]=r,o=Ni(t,1),s[he]=u);for(l in or)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(c=Ye(u),p=Ye(f),_=c!==p?Cr(t,l,u,p):parseFloat(u),d=parseFloat(f),e._pt=new rt(e._pt,o,l,_,d-_,Fs),e._pt.u=p||0,e._props.push(l));ha(o,i)};tt("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});bn[e>1?"border"+a:a]=function(o,l,u,f,_){var d,c;if(arguments.length<4)return d=s.map(function(p){return sr(o,p,u)}),c=d.join(" "),c.split(d[0]).length===5?d[0]:c;d=(f+"").split(" "),c={},s.forEach(function(p,h){return c[p]=d[h]=d[h]||d[(h-1)/2|0]}),o.init(l,c,_)}});var Xs={name:"css",register:Is,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,l=t.vars.startAt,u,f,_,d,c,p,h,m,T,w,S,v,b,P,x,M;Ns||Is(),this.styles=this.styles||ga(e),M=this.styles.props,this.tween=t;for(h in r)if(h!=="autoRound"&&(f=r[h],!(ct[h]&&Ms(h,r,t,i,e,n)))){if(c=typeof f,p=bn[h],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=ui(f)),p)p(this,e,h,f,t)&&(x=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",ir.lastIndex=0,ir.test(u)||(m=Ye(u),T=Ye(f)),T?m!==T&&(u=Cr(e,h,u,T)+T):m&&(f+=m),this.add(o,"setProperty",u,f,i,n,0,0,h),s.push(h),M.push(h,0,o[h]);else if(c!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(t,i,e,n):l[h],Oe(u)&&~u.indexOf("random(")&&(u=ui(u)),Ye(u+"")||u==="auto"||(u+=dt.units[h]||Ye(sr(e,h))||""),(u+"").charAt(1)==="="&&(u=sr(e,h))):u=sr(e,h),d=parseFloat(u),w=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),w&&(f=f.substr(2)),_=parseFloat(f),h in Qt&&(h==="autoAlpha"&&(d===1&&sr(e,"visibility")==="hidden"&&_&&(d=0),M.push("visibility",0,o.visibility),Sr(this,o,"visibility",d?"inherit":"hidden",_?"inherit":"hidden",!_)),h!=="scale"&&h!=="transform"&&(h=Qt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),S=h in or,S){if(this.styles.save(h),c==="string"&&f.substring(0,6)==="var(--"&&(f=Et(e,f.substring(4,f.indexOf(")"))),_=parseFloat(f)),v||(b=e._gsap,b.renderTransform&&!r.parseTransform||Ni(e,r.parseTransform),P=r.smoothOrigin!==!1&&b.smooth,v=this._pt=new rt(this._pt,o,he,0,1,b.renderTransform,b,0,-1),v.dep=1),h==="scale")this._pt=new rt(this._pt,b,"scaleY",b.scaleY,(w?Br(b.scaleY,w+_):_)-b.scaleY||0,Fs),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){M.push(pt,0,o[pt]),f=Nu(f),b.svg?Bs(e,f,0,P,0,this):(T=parseFloat(f.split(" ")[2])||0,T!==b.zOrigin&&Sr(this,b,"zOrigin",b.zOrigin,T),Sr(this,o,h,Sn(u),Sn(f)));continue}else if(h==="svgOrigin"){Bs(e,f,1,P,0,this);continue}else if(h in xa){Xu(this,b,h,d,w?Br(d,w+f):f);continue}else if(h==="smoothOrigin"){Sr(this,b,"smooth",b.smooth,f);continue}else if(h==="force3D"){b[h]=f;continue}else if(h==="transform"){Vu(this,f,e);continue}}else h in o||(h=_i(h)||h);if(S||(_||_===0)&&(d||d===0)&&!Cu.test(f)&&h in o)m=(u+"").substr((d+"").length),_||(_=0),T=Ye(f)||(h in dt.units?dt.units[h]:m),m!==T&&(d=Cr(e,h,u,T)),this._pt=new rt(this._pt,S?b:o,h,d,(w?Br(d,w+_):_)-d,!S&&(T==="px"||h==="zIndex")&&r.autoRound!==!1?Mu:Fs),this._pt.u=T||0,m!==T&&T!=="%"&&(this._pt.b=u,this._pt.r=ku);else if(h in o)Bu.call(this,e,h,u,w?w+f:f);else if(h in e)this.add(e,h,u||e[h],w?w+f:f,i,n);else if(h!=="parseTransform"){yn(h,f);continue}S||(h in o?M.push(h,0,o[h]):typeof e[h]=="function"?M.push(h,2,e[h]()):M.push(h,1,u||e[h])),s.push(h)}}x&&As(this)},render:function(e,r){if(r.tween._time||!Ys())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:sr,aliases:Qt,getSetter:function(e,r,t){var i=Qt[r];return i&&i.indexOf(",")<0&&(r=i),r in or&&r!==pt&&(e._gsap.x||sr(e,"x"))?t&&na===t?r==="scale"?Du:Ru:(na=t||{})&&(r==="scale"?Au:Lu):e.style&&!mn(e.style[r])?Ou:~r.indexOf("-")?Eu:Tn(e,r)},core:{_removeProperty:Vr,_getMatrix:qs}};Qe.utils.checkPrefix=_i;Qe.core.getStyleSaver=ga;(function(a,e,r,t){var i=tt(a+","+e+","+r,function(n){or[n]=1});tt(e,function(n){dt.units[n]="deg",xa[n]=1}),Qt[i[13]]=a+","+e,tt(t,function(n){var s=n.split(":");Qt[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");tt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){dt.units[a]="px"});Qe.registerPlugin(Xs);var ae=Qe.registerPlugin(Xs)||Qe,vf=ae.core.Tween;function ba(a,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function Uu(a,e,r){return e&&ba(a.prototype,e),r&&ba(a,r),a}var He,kn,Wu,Tt,Pr,kr,pi,Ca,Ur,Hi,Pa,ar,Yt,ka,Ma=function(){return He||typeof window<"u"&&(He=window.gsap)&&He.registerPlugin&&He},Oa=1,di=[],q=[],Ht=[],qi=Date.now,Vs=function(e,r){return r},Gu=function(){var e=Hi.core,r=e.bridge||{},t=e._scrollers,i=e._proxies;t.push.apply(t,q),i.push.apply(i,Ht),q=t,Ht=i,Vs=function(s,o){return r[s](o)}},ur=function(e,r){return~Ht.indexOf(e)&&Ht[Ht.indexOf(e)+1][r]},Xi=function(e){return!!~Pa.indexOf(e)},nt=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:i!==!1,capture:!!n})},it=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},Cn="scrollLeft",Pn="scrollTop",Us=function(){return ar&&ar.isPressed||q.cache++},Mn=function(e,r){var t=function i(n){if(n||n===0){Oa&&(Tt.history.scrollRestoration="manual");var s=ar&&ar.isPressed;n=i.v=Math.round(n)||(ar&&ar.iOS?1:0),e(n),i.cacheID=q.cache,s&&Vs("ss",n)}else(r||q.cache!==i.cacheID||Vs("ref"))&&(i.cacheID=q.cache,i.v=e());return i.v+i.offset};return t.offset=0,e&&t},Ke={s:Cn,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Mn(function(a){return arguments.length?Tt.scrollTo(a,Pe.sc()):Tt.pageXOffset||Pr[Cn]||kr[Cn]||pi[Cn]||0})},Pe={s:Pn,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ke,sc:Mn(function(a){return arguments.length?Tt.scrollTo(Ke.sc(),a):Tt.pageYOffset||Pr[Pn]||kr[Pn]||pi[Pn]||0})},st=function(e,r){return(r&&r._ctx&&r._ctx.selector||He.utils.toArray)(e)[0]||(typeof e=="string"&&He.config().nullTargetWarn!==!1?console.warn("Element not found:",e):null)},Qu=function(e,r){for(var t=r.length;t--;)if(r[t]===e||r[t].contains(e))return!0;return!1},lr=function(e,r){var t=r.s,i=r.sc;Xi(e)&&(e=Pr.scrollingElement||kr);var n=q.indexOf(e),s=i===Pe.sc?1:2;!~n&&(n=q.push(e)-1),q[n+s]||nt(e,"scroll",Us);var o=q[n+s],l=o||(q[n+s]=Mn(ur(e,t),!0)||(Xi(e)?i:Mn(function(u){return arguments.length?e[t]=u:e[t]})));return l.target=e,o||(l.smooth=He.getProperty(e,"scrollBehavior")==="smooth"),l},On=function(e,r,t){var i=e,n=e,s=qi(),o=s,l=r||50,u=Math.max(500,l*3),f=function(p,h){var m=qi();h||m-s>l?(n=i,i=p,o=s,s=m):t?i+=p:i=n+(p-n)/(m-o)*(s-o)},_=function(){n=i=t?0:i,o=s=0},d=function(p){var h=o,m=n,T=qi();return(p||p===0)&&p!==i&&f(p),s===o||T-o>u?0:(i+(t?m:-m))/((t?T:s)-h)*1e3};return{update:f,reset:_,getVelocity:d}},Yi=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Sa=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},Ea=function(){Hi=He.core.globals().ScrollTrigger,Hi&&Hi.core&&Gu()},Ra=function(e){return He=e||Ma(),!kn&&He&&typeof document<"u"&&document.body&&(Tt=window,Pr=document,kr=Pr.documentElement,pi=Pr.body,Pa=[Tt,Pr,kr,pi],Wu=He.utils.clamp,ka=He.core.context||function(){},Ur="onpointerenter"in pi?"pointer":"mouse",Ca=ye.isTouch=Tt.matchMedia&&Tt.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Tt||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Yt=ye.eventTypes=("ontouchstart"in kr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in kr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return Oa=0},500),Ea(),kn=1),kn};Ke.op=Pe;q.cache=0;var ye=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){kn||Ra(He)||console.warn("Please gsap.registerPlugin(Observer)"),Hi||Ea();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,l=t.lineHeight,u=t.debounce,f=t.preventDefault,_=t.onStop,d=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,h=t.event,m=t.onDragStart,T=t.onDragEnd,w=t.onDrag,S=t.onPress,v=t.onRelease,b=t.onRight,P=t.onLeft,x=t.onUp,M=t.onDown,C=t.onChangeX,k=t.onChangeY,F=t.onChange,O=t.onToggleX,G=t.onToggleY,N=t.onHover,U=t.onHoverEnd,H=t.onMove,A=t.ignoreCheck,$=t.isNormalizer,te=t.onGestureStart,g=t.onGestureEnd,re=t.onWheel,z=t.onEnable,Lt=t.onDisable,_e=t.onClick,Fe=t.scrollSpeed,qe=t.capture,be=t.allowClicks,je=t.lockAxis,Xe=t.onLockAxis;this.target=o=st(o)||kr,this.vars=t,c&&(c=He.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,Fe=Fe||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat(Tt.getComputedStyle(pi).lineHeight)||22);var hr,et,ut,J,ve,ft,gt,y=this,mt=0,$t=0,_r=t.passive||!f&&t.passive!==!1,de=lr(o,Ke),Jt=lr(o,Pe),dr=de(),Or=Jt(),Re=~s.indexOf("touch")&&!~s.indexOf("pointer")&&Yt[0]==="pointerdown",pr=Xi(o),xe=o.ownerDocument||Pr,Ft=[0,0,0],Pt=[0,0,0],jt=0,bi=function(){return jt=qi()},Se=function(L,j){return(y.event=L)&&c&&Qu(L.target,c)||j&&Re&&L.pointerType!=="touch"||A&&A(L,j)},sn=function(){y._vx.reset(),y._vy.reset(),et.pause(),_&&_(y)},er=function(){var L=y.deltaX=Sa(Ft),j=y.deltaY=Sa(Pt),E=Math.abs(L)>=i,I=Math.abs(j)>=i;F&&(E||I)&&F(y,L,j,Ft,Pt),E&&(b&&y.deltaX>0&&b(y),P&&y.deltaX<0&&P(y),C&&C(y),O&&y.deltaX<0!=mt<0&&O(y),mt=y.deltaX,Ft[0]=Ft[1]=Ft[2]=0),I&&(M&&y.deltaY>0&&M(y),x&&y.deltaY<0&&x(y),k&&k(y),G&&y.deltaY<0!=$t<0&&G(y),$t=y.deltaY,Pt[0]=Pt[1]=Pt[2]=0),(J||ut)&&(H&&H(y),ut&&(m&&ut===1&&m(y),w&&w(y),ut=0),J=!1),ft&&!(ft=!1)&&Xe&&Xe(y),ve&&(re(y),ve=!1),hr=0},ei=function(L,j,E){Ft[E]+=L,Pt[E]+=j,y._vx.update(L),y._vy.update(j),u?hr||(hr=requestAnimationFrame(er)):er()},ti=function(L,j){je&&!gt&&(y.axis=gt=Math.abs(L)>Math.abs(j)?"x":"y",ft=!0),gt!=="y"&&(Ft[2]+=L,y._vx.update(L,!0)),gt!=="x"&&(Pt[2]+=j,y._vy.update(j,!0)),u?hr||(hr=requestAnimationFrame(er)):er()},gr=function(L){if(!Se(L,1)){L=Yi(L,f);var j=L.clientX,E=L.clientY,I=j-y.x,D=E-y.y,B=y.isDragging;y.x=j,y.y=E,(B||(I||D)&&(Math.abs(y.startX-j)>=n||Math.abs(y.startY-E)>=n))&&(ut=B?2:1,B||(y.isDragging=!0),ti(I,D))}},Er=y.onPress=function(Y){Se(Y,1)||Y&&Y.button||(y.axis=gt=null,et.pause(),y.isPressed=!0,Y=Yi(Y),mt=$t=0,y.startX=y.x=Y.clientX,y.startY=y.y=Y.clientY,y._vx.reset(),y._vy.reset(),nt($?o:xe,Yt[1],gr,_r,!0),y.deltaX=y.deltaY=0,S&&S(y))},Q=y.onRelease=function(Y){if(!Se(Y,1)){it($?o:xe,Yt[1],gr,!0);var L=!isNaN(y.y-y.startY),j=y.isDragging,E=j&&(Math.abs(y.x-y.startX)>3||Math.abs(y.y-y.startY)>3),I=Yi(Y);!E&&L&&(y._vx.reset(),y._vy.reset(),f&&be&&He.delayedCall(.08,function(){if(qi()-jt>300&&!Y.defaultPrevented){if(Y.target.click)Y.target.click();else if(xe.createEvent){var D=xe.createEvent("MouseEvents");D.initMouseEvent("click",!0,!0,Tt,1,I.screenX,I.screenY,I.clientX,I.clientY,!1,!1,!1,!1,0,null),Y.target.dispatchEvent(D)}}})),y.isDragging=y.isGesturing=y.isPressed=!1,_&&j&&!$&&et.restart(!0),ut&&er(),T&&j&&T(y),v&&v(y,E)}},Rr=function(L){return L.touches&&L.touches.length>1&&(y.isGesturing=!0)&&te(L,y.isDragging)},zt=function(){return(y.isGesturing=!1)||g(y)},It=function(L){if(!Se(L)){var j=de(),E=Jt();ei((j-dr)*Fe,(E-Or)*Fe,1),dr=j,Or=E,_&&et.restart(!0)}},Bt=function(L){if(!Se(L)){L=Yi(L,f),re&&(ve=!0);var j=(L.deltaMode===1?l:L.deltaMode===2?Tt.innerHeight:1)*p;ei(L.deltaX*j,L.deltaY*j,0),_&&!$&&et.restart(!0)}},Dr=function(L){if(!Se(L)){var j=L.clientX,E=L.clientY,I=j-y.x,D=E-y.y;y.x=j,y.y=E,J=!0,_&&et.restart(!0),(I||D)&&ti(I,D)}},ri=function(L){y.event=L,N(y)},tr=function(L){y.event=L,U(y)},Si=function(L){return Se(L)||Yi(L,f)&&_e(y)};et=y._dc=He.delayedCall(d||.25,sn).pause(),y.deltaX=y.deltaY=0,y._vx=On(0,50,!0),y._vy=On(0,50,!0),y.scrollX=de,y.scrollY=Jt,y.isDragging=y.isGesturing=y.isPressed=!1,ka(this),y.enable=function(Y){return y.isEnabled||(nt(pr?xe:o,"scroll",Us),s.indexOf("scroll")>=0&&nt(pr?xe:o,"scroll",It,_r,qe),s.indexOf("wheel")>=0&&nt(o,"wheel",Bt,_r,qe),(s.indexOf("touch")>=0&&Ca||s.indexOf("pointer")>=0)&&(nt(o,Yt[0],Er,_r,qe),nt(xe,Yt[2],Q),nt(xe,Yt[3],Q),be&&nt(o,"click",bi,!0,!0),_e&&nt(o,"click",Si),te&&nt(xe,"gesturestart",Rr),g&&nt(xe,"gestureend",zt),N&&nt(o,Ur+"enter",ri),U&&nt(o,Ur+"leave",tr),H&&nt(o,Ur+"move",Dr)),y.isEnabled=!0,y.isDragging=y.isGesturing=y.isPressed=J=ut=!1,y._vx.reset(),y._vy.reset(),dr=de(),Or=Jt(),Y&&Y.type&&Er(Y),z&&z(y)),y},y.disable=function(){y.isEnabled&&(di.filter(function(Y){return Y!==y&&Xi(Y.target)}).length||it(pr?xe:o,"scroll",Us),y.isPressed&&(y._vx.reset(),y._vy.reset(),it($?o:xe,Yt[1],gr,!0)),it(pr?xe:o,"scroll",It,qe),it(o,"wheel",Bt,qe),it(o,Yt[0],Er,qe),it(xe,Yt[2],Q),it(xe,Yt[3],Q),it(o,"click",bi,!0),it(o,"click",Si),it(xe,"gesturestart",Rr),it(xe,"gestureend",zt),it(o,Ur+"enter",ri),it(o,Ur+"leave",tr),it(o,Ur+"move",Dr),y.isEnabled=y.isPressed=y.isDragging=!1,Lt&&Lt(y))},y.kill=y.revert=function(){y.disable();var Y=di.indexOf(y);Y>=0&&di.splice(Y,1),ar===y&&(ar=0)},di.push(y),$&&Xi(o)&&(ar=y),y.enable(h)},Uu(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();ye.version="3.13.0";ye.create=function(a){return new ye(a)};ye.register=Ra;ye.getAll=function(){return di.slice()};ye.getById=function(a){return di.filter(function(e){return e.vars.id===a})[0]};Ma()&&He.registerPlugin(ye);var R,yi,W,oe,Ct,ee,oo,Un,rn,Zi,Ui,En,Ze,Kn,js,at,Da,Aa,vi,Ka,Ws,Za,ot,eo,$a,Ja,Mr,to,ao,xi,lo,Wn,ro,Gs,Rn=1,$e=Date.now,Qs=$e(),At=0,Wi=0,La=function(e,r,t){var i=St(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Fa=function(e,r){return r&&(!St(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},Ku=function a(){return Wi&&requestAnimationFrame(a)},za=function(){return Kn=1},Ia=function(){return Kn=0},Kt=function(e){return e},Gi=function(e){return Math.round(e*1e5)/1e5||0},ja=function(){return typeof window<"u"},el=function(){return R||ja()&&(R=window.gsap)&&R.registerPlugin&&R},$r=function(e){return!!~oo.indexOf(e)},tl=function(e){return(e==="Height"?lo:W["inner"+e])||Ct["client"+e]||ee["client"+e]},rl=function(e){return ur(e,"getBoundingClientRect")||($r(e)?function(){return Vn.width=W.innerWidth,Vn.height=lo,Vn}:function(){return fr(e)})},Zu=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=ur(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?tl(n):e["client"+n])||0}},$u=function(e,r){return!r||~Ht.indexOf(e)?rl(e):function(){return Vn}},Zt=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=ur(e,t))?s()-rl(e)()[n]:$r(e)?(Ct[t]||ee[t])-tl(i):e[t]-e["offset"+i])},Dn=function(e,r){for(var t=0;t<vi.length;t+=3)(!r||~r.indexOf(vi[t+1]))&&e(vi[t],vi[t+1],vi[t+2])},St=function(e){return typeof e=="string"},Je=function(e){return typeof e=="function"},Qi=function(e){return typeof e=="number"},Wr=function(e){return typeof e=="object"},Vi=function(e,r,t){return e&&e.progress(r?0:1)&&t&&e.pause()},Ks=function(e,r){if(e.enabled){var t=e._ctx?e._ctx.add(function(){return r(e)}):r(e);t&&t.totalTime&&(e.callbackAnimation=t)}},gi=Math.abs,il="left",nl="top",uo="right",fo="bottom",Qr="width",Kr="height",$i="Right",Ji="Left",ji="Top",en="Bottom",ke="padding",Rt="margin",Ti="Width",co="Height",Ee="px",Dt=function(e){return W.getComputedStyle(e)},Ju=function(e){var r=Dt(e).position;e.style.position=r==="absolute"||r==="fixed"?r:"relative"},Ba=function(e,r){for(var t in r)t in e||(e[t]=r[t]);return e},fr=function(e,r){var t=r&&Dt(e)[js]!=="matrix(1, 0, 0, 1, 0, 0)"&&R.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),i=e.getBoundingClientRect();return t&&t.progress(0).kill(),i},Gn=function(e,r){var t=r.d2;return e["offset"+t]||e["client"+t]||0},sl=function(e){var r=[],t=e.labels,i=e.duration(),n;for(n in t)r.push(t[n]/i);return r},ju=function(e){return function(r){return R.utils.snap(sl(e),r)}},ho=function(e){var r=R.utils.snap(e),t=Array.isArray(e)&&e.slice(0).sort(function(i,n){return i-n});return t?function(i,n,s){s===void 0&&(s=.001);var o;if(!n)return r(i);if(n>0){for(i-=s,o=0;o<t.length;o++)if(t[o]>=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)<s||o-i<0==n<0?o:r(n<0?i-e:i+e)}},ef=function(e){return function(r,t){return ho(sl(e))(r,t.direction)}},An=function(e,r,t,i){return t.split(",").forEach(function(n){return e(r,n,i)})},Le=function(e,r,t,i,n){return e.addEventListener(r,t,{passive:!i,capture:!!n})},Ae=function(e,r,t,i){return e.removeEventListener(r,t,!!i)},Ln=function(e,r,t){t=t&&t.wheelHandler,t&&(e(r,"wheel",t),e(r,"touchmove",t))},Na={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Fn={toggleActions:"play",anticipatePin:0},Qn={top:0,left:0,center:.5,bottom:1,right:1},Yn=function(e,r){if(St(e)){var t=e.indexOf("="),i=~t?+(e.charAt(t-1)+1)*parseFloat(e.substr(t+1)):0;~t&&(e.indexOf("%")>t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Qn?Qn[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},zn=function(e,r,t,i,n,s,o,l){var u=n.startColor,f=n.endColor,_=n.fontSize,d=n.indent,c=n.fontWeight,p=oe.createElement("div"),h=$r(t)||ur(t,"pinType")==="fixed",m=e.indexOf("scroller")!==-1,T=h?ee:t,w=e.indexOf("start")!==-1,S=w?u:f,v="border-color:"+S+";font-size:"+_+";color:"+S+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return v+="position:"+((m||l)&&h?"fixed;":"absolute;"),(m||l||!h)&&(v+=(i===Pe?uo:fo)+":"+(s+parseFloat(d))+"px;"),o&&(v+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=w,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=v,p.innerText=r||r===0?e+"-"+r:e,T.children[0]?T.insertBefore(p,T.children[0]):T.appendChild(p),p._offset=p["offset"+i.op.d2],Hn(p,0,i,w),p},Hn=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+Ti]=1,n["border"+o+Ti]=0,n[t.p]=r+"px",R.set(e,n)},X=[],io={},nn,Ya=function(){return $e()-At>34&&(nn||(nn=requestAnimationFrame(cr)))},mi=function(){(!ot||!ot.isPressed||ot.startX>ee.clientWidth)&&(q.cache++,ot?nn||(nn=requestAnimationFrame(cr)):cr(),At||jr("scrollStart"),At=$e())},Zs=function(){Ja=W.innerWidth,$a=W.innerHeight},Ki=function(e){q.cache++,(e===!0||!Ze&&!Za&&!oe.fullscreenElement&&!oe.webkitFullscreenElement&&(!eo||Ja!==W.innerWidth||Math.abs(W.innerHeight-$a)>W.innerHeight*.25))&&Un.restart(!0)},Jr={},tf=[],ol=function a(){return Ae(V,"scrollEnd",a)||Gr(!0)},jr=function(e){return Jr[e]&&Jr[e].map(function(r){return r()})||tf},bt=[],al=function(e){for(var r=0;r<bt.length;r+=5)(!e||bt[r+4]&&bt[r+4].query===e)&&(bt[r].style.cssText=bt[r+1],bt[r].getBBox&&bt[r].setAttribute("transform",bt[r+2]||""),bt[r+3].uncache=1)},_o=function(e,r){var t;for(at=0;at<X.length;at++)t=X[at],t&&(!r||t._ctx===r)&&(e?t.kill(1):t.revert(!0,!0));Wn=!0,r&&al(r),r||jr("revert")},ll=function(e,r){q.cache++,(r||!lt)&&q.forEach(function(t){return Je(t)&&t.cacheID++&&(t.rec=0)}),St(e)&&(W.history.scrollRestoration=ao=e)},lt,Zr=0,Ha,rf=function(){if(Ha!==Zr){var e=Ha=Zr;requestAnimationFrame(function(){return e===Zr&&Gr(!0)})}},ul=function(){ee.appendChild(xi),lo=!ot&&xi.offsetHeight||W.innerHeight,ee.removeChild(xi)},qa=function(e){return rn(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach(function(r){return r.style.display=e?"none":"block"})},Gr=function(e,r){if(Ct=oe.documentElement,ee=oe.body,oo=[W,oe,Ct,ee],At&&!e&&!Wn){Le(V,"scrollEnd",ol);return}ul(),lt=V.isRefreshing=!0,q.forEach(function(i){return Je(i)&&++i.cacheID&&(i.rec=i())});var t=jr("refreshInit");Ka&&V.sort(),r||_o(),q.forEach(function(i){Je(i)&&(i.smooth&&(i.target.style.scrollBehavior="auto"),i(0))}),X.slice(0).forEach(function(i){return i.refresh()}),Wn=!1,X.forEach(function(i){if(i._subPinOffset&&i.pin){var n=i.vars.horizontal?"offsetWidth":"offsetHeight",s=i.pin[n];i.revert(!0,1),i.adjustPinSpacing(i.pin[n]-s),i.refresh()}}),ro=1,qa(!0),X.forEach(function(i){var n=Zt(i.scroller,i._dir),s=i.vars.end==="max"||i._endClamp&&i.end>n,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),qa(!1),ro=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),q.forEach(function(i){Je(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),ll(ao,1),Un.pause(),Zr++,lt=2,cr(2),X.forEach(function(i){return Je(i.vars.onRefresh)&&i.vars.onRefresh(i)}),lt=V.isRefreshing=!1,jr("refresh")},no=0,qn=1,tn,cr=function(e){if(e===2||!lt&&!Wn){V.isUpdating=!0,tn&&tn.update(0);var r=X.length,t=$e(),i=t-Qs>=50,n=r&&X[0].scroll();if(qn=no>n?-1:1,lt||(no=n),i&&(At&&!Kn&&t-At>200&&(At=0,jr("scrollEnd")),Ui=Qs,Qs=t),qn<0){for(at=r;at-- >0;)X[at]&&X[at].update(0,i);qn=1}else for(at=0;at<r;at++)X[at]&&X[at].update(0,i);V.isUpdating=!1}nn=0},so=[il,nl,fo,uo,Rt+en,Rt+$i,Rt+ji,Rt+Ji,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],Xn=so.concat([Qr,Kr,"boxSizing","max"+Ti,"max"+co,"position",Rt,ke,ke+ji,ke+$i,ke+en,ke+Ji]),nf=function(e,r,t){wi(t);var i=e._gsap;if(i.spacerIsNative)wi(i.spacerState);else if(e._gsap.swappedIn){var n=r.parentNode;n&&(n.insertBefore(e,r),n.removeChild(r))}e._gsap.swappedIn=!1},$s=function(e,r,t,i){if(!e._gsap.swappedIn){for(var n=so.length,s=r.style,o=e.style,l;n--;)l=so[n],s[l]=t[l];s.position=t.position==="absolute"?"absolute":"relative",t.display==="inline"&&(s.display="inline-block"),o[fo]=o[uo]="auto",s.flexBasis=t.flexBasis||"auto",s.overflow="visible",s.boxSizing="border-box",s[Qr]=Gn(e,Ke)+Ee,s[Kr]=Gn(e,Pe)+Ee,s[ke]=o[Rt]=o[nl]=o[il]="0",wi(i),o[Qr]=o["max"+Ti]=t[Qr],o[Kr]=o["max"+co]=t[Kr],o[ke]=t[ke],e.parentNode!==r&&(e.parentNode.insertBefore(r,e),r.appendChild(e)),e._gsap.swappedIn=!0}},sf=/([A-Z])/g,wi=function(e){if(e){var r=e.t.style,t=e.length,i=0,n,s;for((e.t._gsap||R.core.getCache(e.t)).uncache=1;i<t;i+=2)s=e[i+1],n=e[i],s?r[n]=s:r[n]&&r.removeProperty(n.replace(sf,"-$1").toLowerCase())}},In=function(e){for(var r=Xn.length,t=e.style,i=[],n=0;n<r;n++)i.push(Xn[n],t[Xn[n]]);return i.t=e,i},of=function(e,r,t){for(var i=[],n=e.length,s=t?8:0,o;s<n;s+=2)o=e[s],i.push(o,o in r?r[o]:e[s+1]);return i.t=e.t,i},Vn={left:0,top:0},Xa=function(e,r,t,i,n,s,o,l,u,f,_,d,c,p){Je(e)&&(e=e(l)),St(e)&&e.substr(0,3)==="max"&&(e=d+(e.charAt(4)==="="?Yn("0"+e.substr(3),t):0));var h=c?c.time():0,m,T,w;if(c&&c.seek(0),isNaN(e)||(e=+e),Qi(e))c&&(e=R.utils.mapRange(c.scrollTrigger.start,c.scrollTrigger.end,0,d,e)),o&&Hn(o,t,i,!0);else{Je(r)&&(r=r(l));var S=(e||"0").split(" "),v,b,P,x;w=st(r,l)||ee,v=fr(w)||{},(!v||!v.left&&!v.top)&&Dt(w).display==="none"&&(x=w.style.display,w.style.display="block",v=fr(w),x?w.style.display=x:w.style.removeProperty("display")),b=Yn(S[0],v[i.d]),P=Yn(S[1]||"0",t),e=v[i.p]-u[i.p]-f+b+n-P,o&&Hn(o,P,i,t-P<20||o._isStart&&P>20),t-=t-P}if(p&&(l[p]=e||-.001,e<0&&(e=0)),s){var M=e+t,C=s._isStart;m="scroll"+i.d2,Hn(s,M,i,C&&M>20||!C&&(_?Math.max(ee[m],Ct[m]):s.parentNode[m])<=M+1),_&&(u=fr(o),_&&(s.style[i.op.p]=u[i.op.p]-i.op.m-s._offset+Ee))}return c&&w&&(m=fr(w),c.seek(d),T=fr(w),c._caScrollDist=m[i.p]-T[i.p],e=e/c._caScrollDist*d),c&&c.seek(h),c?e:Math.round(e)},af=/(webkit|moz|length|cssText|inset)/i,Va=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===ee){e._stOrig=n.cssText,o=Dt(e);for(s in o)!+s&&!af.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;R.core.getCache(e).uncache=1,r.appendChild(e)}},fl=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},Bn=function(e,r,t){var i={};i[r.p]="+="+t,R.set(e,i)},Ua=function(e,r){var t=lr(e,r),i="_scroll"+r.p2,n=function s(o,l,u,f,_){var d=s.tween,c=l.onComplete,p={};u=u||t();var h=fl(t,u,function(){d.kill(),s.tween=0});return _=f&&_||0,f=f||o-u,d&&d.kill(),l[i]=o,l.inherit=!1,l.modifiers=p,p[i]=function(){return h(u+f*d.ratio+_*d.ratio*d.ratio)},l.onUpdate=function(){q.cache++,s.tween&&cr()},l.onComplete=function(){s.tween=0,c&&c.call(d)},d=s.tween=R.to(e,l),d};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Le(e,"wheel",t.wheelHandler),V.isTouch&&Le(e,"touchmove",t.wheelHandler),n},V=function(){function a(r,t){yi||a.register(R)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),to(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Wi){this.update=this.refresh=this.kill=Kt;return}t=Ba(St(t)||Qi(t)||t.nodeType?{trigger:t}:t,Fn);var n=t,s=n.onUpdate,o=n.toggleClass,l=n.id,u=n.onToggle,f=n.onRefresh,_=n.scrub,d=n.trigger,c=n.pin,p=n.pinSpacing,h=n.invalidateOnRefresh,m=n.anticipatePin,T=n.onScrubComplete,w=n.onSnapComplete,S=n.once,v=n.snap,b=n.pinReparent,P=n.pinSpacer,x=n.containerAnimation,M=n.fastScrollEnd,C=n.preventOverlaps,k=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ke:Pe,F=!_&&_!==0,O=st(t.scroller||W),G=R.core.getCache(O),N=$r(O),U=("pinType"in t?t.pinType:ur(O,"pinType")||N&&"fixed")==="fixed",H=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],A=F&&t.toggleActions.split(" "),$="markers"in t?t.markers:Fn.markers,te=N?0:parseFloat(Dt(O)["border"+k.p2+Ti])||0,g=this,re=t.onRefreshInit&&function(){return t.onRefreshInit(g)},z=Zu(O,N,k),Lt=$u(O,N),_e=0,Fe=0,qe=0,be=lr(O,k),je,Xe,hr,et,ut,J,ve,ft,gt,y,mt,$t,_r,de,Jt,dr,Or,Re,pr,xe,Ft,Pt,jt,bi,Se,sn,er,ei,ti,gr,Er,Q,Rr,zt,It,Bt,Dr,ri,tr;if(g._startClamp=g._endClamp=!1,g._dir=k,m*=45,g.scroller=O,g.scroll=x?x.time.bind(x):be,et=be(),g.vars=t,i=i||t.animation,"refreshPriority"in t&&(Ka=1,t.refreshPriority===-9999&&(tn=g)),G.tweenScroll=G.tweenScroll||{top:Ua(O,Pe),left:Ua(O,Ke)},g.tweenTo=je=G.tweenScroll[k.p],g.scrubDuration=function(E){Rr=Qi(E)&&E,Rr?Q?Q.duration(E):Q=R.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Rr,paused:!0,onComplete:function(){return T&&T(g)}}):(Q&&Q.progress(1).kill(),Q=0)},i&&(i.vars.lazy=!1,i._initted&&!g.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),g.animation=i.pause(),i.scrollTrigger=g,g.scrubDuration(_),gr=0,l||(l=i.vars.id)),v&&((!Wr(v)||v.push)&&(v={snapTo:v}),"scrollBehavior"in ee.style&&R.set(N?[ee,Ct]:O,{scrollBehavior:"auto"}),q.forEach(function(E){return Je(E)&&E.target===(N?oe.scrollingElement||Ct:O)&&(E.smooth=!1)}),hr=Je(v.snapTo)?v.snapTo:v.snapTo==="labels"?ju(i):v.snapTo==="labelsDirectional"?ef(i):v.directional!==!1?function(E,I){return ho(v.snapTo)(E,$e()-Fe<500?0:I.direction)}:R.utils.snap(v.snapTo),zt=v.duration||{min:.1,max:2},zt=Wr(zt)?Zi(zt.min,zt.max):Zi(zt,zt),It=R.delayedCall(v.delay||Rr/2||.1,function(){var E=be(),I=$e()-Fe<500,D=je.tween;if((I||Math.abs(g.getVelocity())<10)&&!D&&!Kn&&_e!==E){var B=(E-J)/de,De=i&&!F?i.totalProgress():B,K=I?0:(De-Er)/($e()-Ui)*1e3||0,we=R.utils.clamp(-B,1-B,gi(K/2)*K/.185),Ve=B+(v.inertia===!1?0:we),pe,le,ie=v,Nt=ie.onStart,fe=ie.onInterrupt,yt=ie.onComplete;if(pe=hr(Ve,g),Qi(pe)||(pe=Ve),le=Math.max(0,Math.round(J+pe*de)),E<=ve&&E>=J&&le!==E){if(D&&!D._initted&&D.data<=gi(le-E))return;v.inertia===!1&&(we=pe-B),je(le,{duration:zt(gi(Math.max(gi(Ve-De),gi(pe-De))*.185/K/.05||0)),ease:v.ease||"power3",data:gi(le-E),onInterrupt:function(){return It.restart(!0)&&fe&&fe(g)},onComplete:function(){g.update(),_e=be(),i&&!F&&(Q?Q.resetTo("totalProgress",pe,i._tTime/i._tDur):i.progress(pe)),gr=Er=i&&!F?i.totalProgress():g.progress,w&&w(g),yt&&yt(g)}},E,we*de,le-E-we*de),Nt&&Nt(g,je.tween)}}else g.isActive&&_e!==E&&It.restart(!0)}).pause()),l&&(io[l]=g),d=g.trigger=st(d||c!==!0&&c),tr=d&&d._gsap&&d._gsap.stRevert,tr&&(tr=tr(g)),c=c===!0?d:st(c),St(o)&&(o={targets:d,className:o}),c&&(p===!1||p===Rt||(p=!p&&c.parentNode&&c.parentNode.style&&Dt(c.parentNode).display==="flex"?!1:ke),g.pin=c,Xe=R.core.getCache(c),Xe.spacer?Jt=Xe.pinState:(P&&(P=st(P),P&&!P.nodeType&&(P=P.current||P.nativeElement),Xe.spacerIsNative=!!P,P&&(Xe.spacerState=In(P))),Xe.spacer=Re=P||oe.createElement("div"),Re.classList.add("pin-spacer"),l&&Re.classList.add("pin-spacer-"+l),Xe.pinState=Jt=In(c)),t.force3D!==!1&&R.set(c,{force3D:!0}),g.spacer=Re=Xe.spacer,ti=Dt(c),bi=ti[p+k.os2],xe=R.getProperty(c),Ft=R.quickSetter(c,k.a,Ee),$s(c,Re,ti),Or=In(c)),$){$t=Wr($)?Ba($,Na):Na,y=zn("scroller-start",l,O,k,$t,0),mt=zn("scroller-end",l,O,k,$t,0,y),pr=y["offset"+k.op.d2];var Si=st(ur(O,"content")||O);ft=this.markerStart=zn("start",l,Si,k,$t,pr,0,x),gt=this.markerEnd=zn("end",l,Si,k,$t,pr,0,x),x&&(ri=R.quickSetter([ft,gt],k.a,Ee)),!U&&!(Ht.length&&ur(O,"fixedMarkers")===!0)&&(Ju(N?ee:O),R.set([y,mt],{force3D:!0}),sn=R.quickSetter(y,k.a,Ee),ei=R.quickSetter(mt,k.a,Ee))}if(x){var Y=x.vars.onUpdate,L=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){g.update(0,0,1),Y&&Y.apply(x,L||[])})}if(g.previous=function(){return X[X.indexOf(g)-1]},g.next=function(){return X[X.indexOf(g)+1]},g.revert=function(E,I){if(!I)return g.kill(!0);var D=E!==!1||!g.enabled,B=Ze;D!==g.isReverted&&(D&&(Bt=Math.max(be(),g.scroll.rec||0),qe=g.progress,Dr=i&&i.progress()),ft&&[ft,gt,y,mt].forEach(function(De){return De.style.display=D?"none":"block"}),D&&(Ze=g,g.update(D)),c&&(!b||!g.isActive)&&(D?nf(c,Re,Jt):$s(c,Re,Dt(c),Se)),D||g.update(D),Ze=B,g.isReverted=D)},g.refresh=function(E,I,D,B){if(!((Ze||!g.enabled)&&!I)){if(c&&E&&At){Le(a,"scrollEnd",ol);return}!lt&&re&&re(g),Ze=g,je.tween&&!D&&(je.tween.kill(),je.tween=0),Q&&Q.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren&&i.getChildren(!0,!0,!1).forEach(function(mr){return mr.vars.immediateRender&&mr.render(0,!0,!0)})),g.isReverted||g.revert(!0,!0),g._subPinOffset=!1;var De=z(),K=Lt(),we=x?x.duration():Zt(O,k),Ve=de<=.01||!de,pe=0,le=B||0,ie=Wr(D)?D.end:t.end,Nt=t.endTrigger||d,fe=Wr(D)?D.start:t.start||(t.start===0||!d?0:c?"0 0":"0 100%"),yt=g.pinnedContainer=t.pinnedContainer&&st(t.pinnedContainer,g),qt=d&&Math.max(0,X.indexOf(g))||0,ze=qt,Ie,Ue,Ar,on,We,Me,Xt,Zn,po,Ci,Vt,Pi,an;for($&&Wr(D)&&(Pi=R.getProperty(y,k.p),an=R.getProperty(mt,k.p));ze-- >0;)Me=X[ze],Me.end||Me.refresh(0,1)||(Ze=g),Xt=Me.pin,Xt&&(Xt===d||Xt===c||Xt===yt)&&!Me.isReverted&&(Ci||(Ci=[]),Ci.unshift(Me),Me.revert(!0,!0)),Me!==X[ze]&&(qt--,ze--);for(Je(fe)&&(fe=fe(g)),fe=La(fe,"start",g),J=Xa(fe,d,De,k,be(),ft,y,g,K,te,U,we,x,g._startClamp&&"_startClamp")||(c?-.001:0),Je(ie)&&(ie=ie(g)),St(ie)&&!ie.indexOf("+=")&&(~ie.indexOf(" ")?ie=(St(fe)?fe.split(" ")[0]:"")+ie:(pe=Yn(ie.substr(2),De),ie=St(fe)?fe:(x?R.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,J):J)+pe,Nt=d)),ie=La(ie,"end",g),ve=Math.max(J,Xa(ie||(Nt?"100% 0":we),Nt,De,k,be()+pe,gt,mt,g,K,te,U,we,x,g._endClamp&&"_endClamp"))||-.001,pe=0,ze=qt;ze--;)Me=X[ze],Xt=Me.pin,Xt&&Me.start-Me._pinPush<=J&&!x&&Me.end>0&&(Ie=Me.end-(g._startClamp?Math.max(0,Me.start):Me.start),(Xt===d&&Me.start-Me._pinPush<J||Xt===yt)&&isNaN(fe)&&(pe+=Ie*(1-Me.progress)),Xt===c&&(le+=Ie));if(J+=pe,ve+=pe,g._startClamp&&(g._startClamp+=pe),g._endClamp&&!lt&&(g._endClamp=ve||-.001,ve=Math.min(ve,Zt(O,k))),de=ve-J||(J-=.01)&&.001,Ve&&(qe=R.utils.clamp(0,1,R.utils.normalize(J,ve,Bt))),g._pinPush=le,ft&&pe&&(Ie={},Ie[k.a]="+="+pe,yt&&(Ie[k.p]="-="+be()),R.set([ft,gt],Ie)),c&&!(ro&&g.end>=Zt(O,k)))Ie=Dt(c),on=k===Pe,Ar=be(),Pt=parseFloat(xe(k.a))+le,!we&&ve>1&&(Vt=(N?oe.scrollingElement||Ct:O).style,Vt={style:Vt,value:Vt["overflow"+k.a.toUpperCase()]},N&&Dt(ee)["overflow"+k.a.toUpperCase()]!=="scroll"&&(Vt.style["overflow"+k.a.toUpperCase()]="scroll")),$s(c,Re,Ie),Or=In(c),Ue=fr(c,!0),Zn=U&&lr(O,on?Ke:Pe)(),p?(Se=[p+k.os2,de+le+Ee],Se.t=Re,ze=p===ke?Gn(c,k)+de+le:0,ze&&(Se.push(k.d,ze+Ee),Re.style.flexBasis!=="auto"&&(Re.style.flexBasis=ze+Ee)),wi(Se),yt&&X.forEach(function(mr){mr.pin===yt&&mr.vars.pinSpacing!==!1&&(mr._subPinOffset=!0)}),U&&be(Bt)):(ze=Gn(c,k),ze&&Re.style.flexBasis!=="auto"&&(Re.style.flexBasis=ze+Ee)),U&&(We={top:Ue.top+(on?Ar-J:Zn)+Ee,left:Ue.left+(on?Zn:Ar-J)+Ee,boxSizing:"border-box",position:"fixed"},We[Qr]=We["max"+Ti]=Math.ceil(Ue.width)+Ee,We[Kr]=We["max"+co]=Math.ceil(Ue.height)+Ee,We[Rt]=We[Rt+ji]=We[Rt+$i]=We[Rt+en]=We[Rt+Ji]="0",We[ke]=Ie[ke],We[ke+ji]=Ie[ke+ji],We[ke+$i]=Ie[ke+$i],We[ke+en]=Ie[ke+en],We[ke+Ji]=Ie[ke+Ji],dr=of(Jt,We,b),lt&&be(0)),i?(po=i._initted,Ws(1),i.render(i.duration(),!0,!0),jt=xe(k.a)-Pt+de+le,er=Math.abs(de-jt)>1,U&&er&&dr.splice(dr.length-2,2),i.render(0,!0,!0),po||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Ws(0)):jt=de,Vt&&(Vt.value?Vt.style["overflow"+k.a.toUpperCase()]=Vt.value:Vt.style.removeProperty("overflow-"+k.a));else if(d&&be()&&!x)for(Ue=d.parentNode;Ue&&Ue!==ee;)Ue._pinOffset&&(J-=Ue._pinOffset,ve-=Ue._pinOffset),Ue=Ue.parentNode;Ci&&Ci.forEach(function(mr){return mr.revert(!1,!0)}),g.start=J,g.end=ve,et=ut=lt?Bt:be(),!x&&!lt&&(et<Bt&&be(Bt),g.scroll.rec=0),g.revert(!1,!0),Fe=$e(),It&&(_e=-1,It.restart(!0)),Ze=0,i&&F&&(i._initted||Dr)&&i.progress()!==Dr&&i.progress(Dr||0,!0).render(i.time(),!0,!0),(Ve||qe!==g.progress||x||h||i&&!i._initted)&&(i&&!F&&(i._initted||qe||i.vars.immediateRender!==!1)&&i.totalProgress(x&&J<-.001&&!qe?R.utils.normalize(J,ve,0):qe,!0),g.progress=Ve||(et-J)/de===qe?0:qe),c&&p&&(Re._pinOffset=Math.round(g.progress*jt)),Q&&Q.invalidate(),isNaN(Pi)||(Pi-=R.getProperty(y,k.p),an-=R.getProperty(mt,k.p),Bn(y,k,Pi),Bn(ft,k,Pi-(B||0)),Bn(mt,k,an),Bn(gt,k,an-(B||0))),Ve&&!lt&&g.update(),f&&!lt&&!_r&&(_r=!0,f(g),_r=!1)}},g.getVelocity=function(){return(be()-ut)/($e()-Ui)*1e3||0},g.endAnimation=function(){Vi(g.callbackAnimation),i&&(Q?Q.progress(1):i.paused()?F||Vi(i,g.direction<0,1):Vi(i,i.reversed()))},g.labelToScroll=function(E){return i&&i.labels&&(J||g.refresh()||J)+i.labels[E]/i.duration()*de||0},g.getTrailing=function(E){var I=X.indexOf(g),D=g.direction>0?X.slice(0,I).reverse():X.slice(I+1);return(St(E)?D.filter(function(B){return B.vars.preventOverlaps===E}):D).filter(function(B){return g.direction>0?B.end<=J:B.start>=ve})},g.update=function(E,I,D){if(!(x&&!D&&!E)){var B=lt===!0?Bt:g.scroll(),De=E?0:(B-J)/de,K=De<0?0:De>1?1:De||0,we=g.progress,Ve,pe,le,ie,Nt,fe,yt,qt;if(I&&(ut=et,et=x?be():B,v&&(Er=gr,gr=i&&!F?i.totalProgress():K)),m&&c&&!Ze&&!Rn&&At&&(!K&&J<B+(B-ut)/($e()-Ui)*m?K=1e-4:K===1&&ve>B+(B-ut)/($e()-Ui)*m&&(K=.9999)),K!==we&&g.enabled){if(Ve=g.isActive=!!K&&K<1,pe=!!we&&we<1,fe=Ve!==pe,Nt=fe||!!K!=!!we,g.direction=K>we?1:-1,g.progress=K,Nt&&!Ze&&(le=K&&!we?0:K===1?1:we===1?2:3,F&&(ie=!fe&&A[le+1]!=="none"&&A[le+1]||A[le],qt=i&&(ie==="complete"||ie==="reset"||ie in i))),C&&(fe||qt)&&(qt||_||!i)&&(Je(C)?C(g):g.getTrailing(C).forEach(function(Ar){return Ar.endAnimation()})),F||(Q&&!Ze&&!Rn?(Q._dp._time-Q._start!==Q._time&&Q.render(Q._dp._time-Q._start),Q.resetTo?Q.resetTo("totalProgress",K,i._tTime/i._tDur):(Q.vars.totalProgress=K,Q.invalidate().restart())):i&&i.totalProgress(K,!!(Ze&&(Fe||E)))),c){if(E&&p&&(Re.style[p+k.os2]=bi),!U)Ft(Gi(Pt+jt*K));else if(Nt){if(yt=!E&&K>we&&ve+1>B&&B+1>=Zt(O,k),b)if(!E&&(Ve||yt)){var ze=fr(c,!0),Ie=B-J;Va(c,ee,ze.top+(k===Pe?Ie:0)+Ee,ze.left+(k===Pe?0:Ie)+Ee)}else Va(c,Re);wi(Ve||yt?dr:Or),er&&K<1&&Ve||Ft(Pt+(K===1&&!yt?jt:0))}}v&&!je.tween&&!Ze&&!Rn&&It.restart(!0),o&&(fe||S&&K&&(K<1||!Gs))&&rn(o.targets).forEach(function(Ar){return Ar.classList[Ve||S?"add":"remove"](o.className)}),s&&!F&&!E&&s(g),Nt&&!Ze?(F&&(qt&&(ie==="complete"?i.pause().totalProgress(1):ie==="reset"?i.restart(!0).pause():ie==="restart"?i.restart(!0):i[ie]()),s&&s(g)),(fe||!Gs)&&(u&&fe&&Ks(g,u),H[le]&&Ks(g,H[le]),S&&(K===1?g.kill(!1,1):H[le]=0),fe||(le=K===1?1:3,H[le]&&Ks(g,H[le]))),M&&!Ve&&Math.abs(g.getVelocity())>(Qi(M)?M:2500)&&(Vi(g.callbackAnimation),Q?Q.progress(1):Vi(i,ie==="reverse"?1:!K,1))):F&&s&&!Ze&&s(g)}if(ei){var Ue=x?B/x.duration()*(x._caScrollDist||0):B;sn(Ue+(y._isFlipped?1:0)),ei(Ue)}ri&&ri(-B/x.duration()*(x._caScrollDist||0))}},g.enable=function(E,I){g.enabled||(g.enabled=!0,Le(O,"resize",Ki),N||Le(O,"scroll",mi),re&&Le(a,"refreshInit",re),E!==!1&&(g.progress=qe=0,et=ut=_e=be()),I!==!1&&g.refresh())},g.getTween=function(E){return E&&je?je.tween:Q},g.setPositions=function(E,I,D,B){if(x){var De=x.scrollTrigger,K=x.duration(),we=De.end-De.start;E=De.start+we*E/K,I=De.start+we*I/K}g.refresh(!1,!1,{start:Fa(E,D&&!!g._startClamp),end:Fa(I,D&&!!g._endClamp)},B),g.update()},g.adjustPinSpacing=function(E){if(Se&&E){var I=Se.indexOf(k.d)+1;Se[I]=parseFloat(Se[I])+E+Ee,Se[1]=parseFloat(Se[1])+E+Ee,wi(Se)}},g.disable=function(E,I){if(g.enabled&&(E!==!1&&g.revert(!0,!0),g.enabled=g.isActive=!1,I||Q&&Q.pause(),Bt=0,Xe&&(Xe.uncache=1),re&&Ae(a,"refreshInit",re),It&&(It.pause(),je.tween&&je.tween.kill()&&(je.tween=0)),!N)){for(var D=X.length;D--;)if(X[D].scroller===O&&X[D]!==g)return;Ae(O,"resize",Ki),N||Ae(O,"scroll",mi)}},g.kill=function(E,I){g.disable(E,I),Q&&!I&&Q.kill(),l&&delete io[l];var D=X.indexOf(g);D>=0&&X.splice(D,1),D===at&&qn>0&&at--,D=0,X.forEach(function(B){return B.scroller===g.scroller&&(D=1)}),D||lt||(g.scroll.rec=0),i&&(i.scrollTrigger=null,E&&i.revert({kill:!1}),I||i.kill()),ft&&[ft,gt,y,mt].forEach(function(B){return B.parentNode&&B.parentNode.removeChild(B)}),tn===g&&(tn=0),c&&(Xe&&(Xe.uncache=1),D=0,X.forEach(function(B){return B.pin===c&&D++}),D||(Xe.spacer=0)),t.onKill&&t.onKill(g)},X.push(g),g.enable(!1,!1),tr&&tr(g),i&&i.add&&!de){var j=g.update;g.update=function(){g.update=j,q.cache++,J||ve||g.refresh()},R.delayedCall(.01,g.update),de=.01,J=ve=0}else g.refresh();c&&rf()},a.register=function(t){return yi||(R=t||el(),ja()&&window.document&&a.enable(),yi=Wi),yi},a.defaults=function(t){if(t)for(var i in t)Fn[i]=t[i];return Fn},a.disable=function(t,i){Wi=0,X.forEach(function(s){return s[i?"kill":"disable"](t)}),Ae(W,"wheel",mi),Ae(oe,"scroll",mi),clearInterval(En),Ae(oe,"touchcancel",Kt),Ae(ee,"touchstart",Kt),An(Ae,oe,"pointerdown,touchstart,mousedown",za),An(Ae,oe,"pointerup,touchend,mouseup",Ia),Un.kill(),Dn(Ae);for(var n=0;n<q.length;n+=3)Ln(Ae,q[n],q[n+1]),Ln(Ae,q[n],q[n+2])},a.enable=function(){if(W=window,oe=document,Ct=oe.documentElement,ee=oe.body,R&&(rn=R.utils.toArray,Zi=R.utils.clamp,to=R.core.context||Kt,Ws=R.core.suppressOverwrites||Kt,ao=W.history.scrollRestoration||"auto",no=W.pageYOffset||0,R.core.globals("ScrollTrigger",a),ee)){Wi=1,xi=document.createElement("div"),xi.style.height="100vh",xi.style.position="absolute",ul(),Ku(),ye.register(R),a.isTouch=ye.isTouch,Mr=ye.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),eo=ye.isTouch===1,Le(W,"wheel",mi),oo=[W,oe,Ct,ee],R.matchMedia?(a.matchMedia=function(u){var f=R.matchMedia(),_;for(_ in u)f.add(_,u[_]);return f},R.addEventListener("matchMediaInit",function(){return _o()}),R.addEventListener("matchMediaRevert",function(){return al()}),R.addEventListener("matchMedia",function(){Gr(0,1),jr("matchMedia")}),R.matchMedia().add("(orientation: portrait)",function(){return Zs(),Zs})):console.warn("Requires GSAP 3.11.0 or later"),Zs(),Le(oe,"scroll",mi);var t=ee.hasAttribute("style"),i=ee.style,n=i.borderTopStyle,s=R.core.Animation.prototype,o,l;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",o=fr(ee),Pe.m=Math.round(o.top+Pe.sc())||0,Ke.m=Math.round(o.left+Ke.sc())||0,n?i.borderTopStyle=n:i.removeProperty("border-top-style"),t||(ee.setAttribute("style",""),ee.removeAttribute("style")),En=setInterval(Ya,250),R.delayedCall(.5,function(){return Rn=0}),Le(oe,"touchcancel",Kt),Le(ee,"touchstart",Kt),An(Le,oe,"pointerdown,touchstart,mousedown",za),An(Le,oe,"pointerup,touchend,mouseup",Ia),js=R.utils.checkPrefix("transform"),Xn.push(js),yi=$e(),Un=R.delayedCall(.2,Gr).pause(),vi=[oe,"visibilitychange",function(){var u=W.innerWidth,f=W.innerHeight;oe.hidden?(Da=u,Aa=f):(Da!==u||Aa!==f)&&Ki()},oe,"DOMContentLoaded",Gr,W,"load",Gr,W,"resize",Ki],Dn(Le),X.forEach(function(u){return u.enable(0,1)}),l=0;l<q.length;l+=3)Ln(Ae,q[l],q[l+1]),Ln(Ae,q[l],q[l+2])}},a.config=function(t){"limitCallbacks"in t&&(Gs=!!t.limitCallbacks);var i=t.syncInterval;i&&clearInterval(En)||(En=i)&&setInterval(Ya,i),"ignoreMobileResize"in t&&(eo=a.isTouch===1&&t.ignoreMobileResize),"autoRefreshEvents"in t&&(Dn(Ae)||Dn(Le,t.autoRefreshEvents||"none"),Za=(t.autoRefreshEvents+"").indexOf("resize")===-1)},a.scrollerProxy=function(t,i){var n=st(t),s=q.indexOf(n),o=$r(n);~s&&q.splice(s,o?6:2),i&&(o?Ht.unshift(W,i,ee,i,Ct,i):Ht.unshift(n,i))},a.clearMatchMedia=function(t){X.forEach(function(i){return i._ctx&&i._ctx.query===t&&i._ctx.kill(!0,!0)})},a.isInViewport=function(t,i,n){var s=(St(t)?st(t):t).getBoundingClientRect(),o=s[n?Qr:Kr]*i||0;return n?s.right-o>0&&s.left+o<W.innerWidth:s.bottom-o>0&&s.top+o<W.innerHeight},a.positionInViewport=function(t,i,n){St(t)&&(t=st(t));var s=t.getBoundingClientRect(),o=s[n?Qr:Kr],l=i==null?o/2:i in Qn?Qn[i]*o:~i.indexOf("%")?parseFloat(i)*o/100:parseFloat(i)||0;return n?(s.left+l)/W.innerWidth:(s.top+l)/W.innerHeight},a.killAll=function(t){if(X.slice(0).forEach(function(n){return n.vars.id!=="ScrollSmoother"&&n.kill()}),t!==!0){var i=Jr.killAll||[];Jr={},i.forEach(function(n){return n()})}},a}();V.version="3.13.0";V.saveStyles=function(a){return a?rn(a).forEach(function(e){if(e&&e.style){var r=bt.indexOf(e);r>=0&&bt.splice(r,5),bt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),R.core.getCache(e),to())}}):bt};V.revert=function(a,e){return _o(!a,e)};V.create=function(a,e){return new V(a,e)};V.refresh=function(a){return a?Ki(!0):(yi||V.register())&&Gr(!0)};V.update=function(a){return++q.cache&&cr(a===!0?2:0)};V.clearScrollMemory=ll;V.maxScroll=function(a,e){return Zt(a,e?Ke:Pe)};V.getScrollFunc=function(a,e){return lr(st(a),e?Ke:Pe)};V.getById=function(a){return io[a]};V.getAll=function(){return X.filter(function(a){return a.vars.id!=="ScrollSmoother"})};V.isScrolling=function(){return!!At};V.snapDirectional=ho;V.addEventListener=function(a,e){var r=Jr[a]||(Jr[a]=[]);~r.indexOf(e)||r.push(e)};V.removeEventListener=function(a,e){var r=Jr[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};V.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(u,f){var _=[],d=[],c=R.delayedCall(i,function(){f(_,d),_=[],d=[]}).pause();return function(p){_.length||c.restart(!0),_.push(p.trigger),d.push(p),n<=_.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&Je(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return Je(n)&&(n=n(),Le(V,"refresh",function(){return n=e.batchMax()})),rn(a).forEach(function(l){var u={};for(o in t)u[o]=t[o];u.trigger=l,r.push(V.create(u))}),r};var Wa=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},Js=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(ye.isTouch?" pinch-zoom":""):"none",e===Ct&&a(ee,r)},Nn={auto:1,scroll:1},lf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||R.core.getCache(n),o=$e(),l;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==ee&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Nn[(l=Dt(n)).overflowY]||Nn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!$r(n)&&(Nn[(l=Dt(n)).overflowY]||Nn[l.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},cl=function(e,r,t,i){return ye.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&lf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&Le(oe,ye.eventTypes[0],Qa,!1,!0)},onDisable:function(){return Ae(oe,ye.eventTypes[0],Qa,!0)}})},uf=/(input|label|select|textarea)/i,Ga,Qa=function(e){var r=uf.test(e.target.tagName);(r||Ga)&&(e._gsapAllow=!0,Ga=r)},ff=function(e){Wr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,l,u=st(e.target)||Ct,f=R.core.globals().ScrollSmoother,_=f&&f.get(),d=Mr&&(e.content&&st(e.content)||_&&e.content!==!1&&!_.smooth()&&_.content()),c=lr(u,Pe),p=lr(u,Ke),h=1,m=(ye.isTouch&&W.visualViewport?W.visualViewport.scale*W.visualViewport.width:W.outerWidth)/W.innerWidth,T=0,w=Je(i)?function(){return i(o)}:function(){return i||2.8},S,v,b=cl(u,e.type,!0,n),P=function(){return v=!1},x=Kt,M=Kt,C=function(){l=Zt(u,Pe),M=Zi(Mr?1:0,l),t&&(x=Zi(0,Zt(u,Ke))),S=Zr},k=function(){d._gsap.y=Gi(parseFloat(d._gsap.y)+c.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},F=function(){if(v){requestAnimationFrame(P);var $=Gi(o.deltaY/2),te=M(c.v-$);if(d&&te!==c.v+c.offset){c.offset=te-c.v;var g=Gi((parseFloat(d&&d._gsap.y)||0)-c.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+g+", 0, 1)",d._gsap.y=g+"px",c.cacheID=q.cache,cr()}return!0}c.offset&&k(),v=!0},O,G,N,U,H=function(){C(),O.isActive()&&O.vars.scrollY>l&&(c()>l?O.progress(1)&&c(l):O.resetTo("scrollY",l))};return d&&R.set(d,{y:"+=0"}),e.ignoreCheck=function(A){return Mr&&A.type==="touchmove"&&F(A)||h>1.05&&A.type!=="touchstart"||o.isGesturing||A.touches&&A.touches.length>1},e.onPress=function(){v=!1;var A=h;h=Gi((W.visualViewport&&W.visualViewport.scale||1)/m),O.pause(),A!==h&&Js(u,h>1.01?!0:t?!1:"x"),G=p(),N=c(),C(),S=Zr},e.onRelease=e.onGestureStart=function(A,$){if(c.offset&&k(),!$)U.restart(!0);else{q.cache++;var te=w(),g,re;t&&(g=p(),re=g+te*.05*-A.velocityX/.227,te*=Wa(p,g,re,Zt(u,Ke)),O.vars.scrollX=x(re)),g=c(),re=g+te*.05*-A.velocityY/.227,te*=Wa(c,g,re,Zt(u,Pe)),O.vars.scrollY=M(re),O.invalidate().duration(te).play(.01),(Mr&&O.vars.scrollY>=l||g>=l-1)&&R.to({},{onUpdate:H,duration:te})}s&&s(A)},e.onWheel=function(){O._ts&&O.pause(),$e()-T>1e3&&(S=0,T=$e())},e.onChange=function(A,$,te,g,re){if(Zr!==S&&C(),$&&t&&p(x(g[2]===$?G+(A.startX-A.x):p()+$-g[1])),te){c.offset&&k();var z=re[2]===te,Lt=z?N+A.startY-A.y:c()+te-re[1],_e=M(Lt);z&&Lt!==_e&&(N+=_e-Lt),c(_e)}(te||$)&&cr()},e.onEnable=function(){Js(u,t?!1:"x"),V.addEventListener("refresh",H),Le(W,"resize",H),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),b.enable()},e.onDisable=function(){Js(u,!0),Ae(W,"resize",H),V.removeEventListener("refresh",H),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new ye(e),o.iOS=Mr,Mr&&!c()&&c(1),Mr&&R.ticker.add(Kt),U=o._dc,O=R.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:fl(c,c(),function(){return O.pause()})},onUpdate:cr,onComplete:U.vars.onComplete}),o};V.sort=function(a){if(Je(a))return X.sort(a);var e=W.pageYOffset||0;return V.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+W.innerHeight}),X.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};V.observe=function(a){return new ye(a)};V.normalizeScroll=function(a){if(typeof a>"u")return ot;if(a===!0&&ot)return ot.enable();if(a===!1){ot&&ot.kill(),ot=a;return}var e=a instanceof ye?a:ff(a);return ot&&ot.target===e.target&&ot.kill(),$r(e.target)&&(ot=e),e};V.core={_getVelocityProp:On,_inputObserver:cl,_scrollers:q,_proxies:Ht,bridge:{ss:function(){At||jr("scrollStart"),At=$e()},ref:function(){return Ze}}};el()&&R.registerPlugin(V);ae.registerPlugin(V);function cf(){let a=document.getElementById("home-scroll");if(!a)return;let e=a.querySelector("[pulse-animation-element='hero-title']"),r=a.querySelector("[pulse-animation-element='hero-description']"),t=a.querySelector("[pulse-animation-element='hero-button']"),i=a.querySelector("[pulse-animation-element='hero-blur']"),n=a.querySelector("[pulse-animation-element='hero-blur-overlay']"),s=a.querySelector("#canvas3d"),o=document.querySelector('[pulse-animation-element="col-1-row-1-item-1"]'),l=document.querySelector('[pulse-animation-element="col-1-row-1-item-2"]'),u=document.querySelector('[pulse-animation-element="col-1-row-2-item-1"]'),f=document.querySelector('[pulse-animation-element="col-1-row-2-item-2"]'),_=document.querySelector('[pulse-animation-element="col-1-row-3-item-1"]'),d=document.querySelector('[pulse-animation-element="col-2-row-1-item-1"]'),c=document.querySelector('[pulse-animation-element="col-2-row-1-item-2"]'),p=document.querySelector('[pulse-animation-element="col-2-row-2-item-1"]'),h=document.querySelector('[pulse-animation-element="col-2-row-3-item-1"]'),m=document.querySelector('[pulse-animation-element="col-3-row-1-item-1"]'),T=document.querySelector('[pulse-animation-element="col-3-row-2-col-1-item-1"]'),w=document.querySelector('[pulse-animation-element="col-3-row-2-col-1-item-2"]'),S=document.querySelector('[pulse-animation-element="col-3-row-2-col-2-item-1"]'),v=document.querySelector('[pulse-animation-element="col-3-row-2-col-2-item-2"]'),b=document.querySelector('[pulse-animation-element="col-3-row-3-item-1"]'),P=document.querySelector('[pulse-animation-element="canvas"]'),x=document.querySelector('[pulse-animation-element="radial-gradient-wrapper"]'),M=[o,l,u,f,_,d,c,h,m,T,w,S,v,b].filter(Boolean),C=p,k=document.querySelector('[pulse-animation-element="player-inner-elements"]'),F=document.querySelector('[pulse-animation-element="player-radius-rect"]'),O=document.querySelector('[pulse-animation-element="line-art"]');if(!F){console.warn("Player radius rect not found");return}let G=F.getTotalLength(),N=document.querySelector('[pulse-animation-element="player-handle"]'),U=document.querySelector('[pulse-animation-element="player-handle-tail"]'),H=document.querySelector('[pulse-animation-element="handle-wrapper"]'),A=document.querySelectorAll('[pulse-animation-element="vignette"]'),$=document.querySelector('[pulse-animation-element="torch-wrapper"]'),te=document.querySelector('[pulse-animation-element="torch"]'),g=document.querySelector('[pulse-animation-element="launch-button"]'),re=document.querySelector('[pulse-animation-element="launch-title"]');console.log("playerHandle:",N),console.log("Player position element:",C);let z=ae.timeline({defaults:{ease:"power2.out",duration:1},scrollTrigger:{trigger:a,start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}});ae.set(i,{yPercent:32,opacity:1}),ae.set([n],{y:0}),ae.set(n,{opacity:1}),ae.set(x,{opacity:0}),z.addLabel("start",0),z.fromTo(e,{y:1100},{y:-400,ease:"power2.out",duration:1.2,immediateRender:!1},"start+=0.1"),z.fromTo(r,{y:680},{y:-400,ease:"power2.out",duration:1.2,immediateRender:!1},"start+=0.2"),z.fromTo(t,{y:440},{y:-500,ease:"power2.out",duration:1.2,immediateRender:!1},"start+=0.3"),z.to(i,{yPercent:-100,opacity:0,ease:"power2.out",duration:1.2,delay:.2,immediateRender:!1},"start+=0.2"),z.to(n,{y:-1200,ease:"power2.out",duration:1,delay:.2,immediateRender:!1},"start+=0.2"),z.to([e,r,t],{scale:.95,duration:.8,ease:"power2.out",immediateRender:!1},"start+=0.4"),z.to([e,r,t],{opacity:0,duration:.2,delay:.2,ease:"power2.out",immediateRender:!1},"start+=0.35"),ae.set(M,{opacity:0,scale:()=>ae.utils.random(.5,.95),y:()=>ae.utils.random(40,60)}),ae.set(C,{opacity:1,scale:.5}),ae.set(k,{scale:.8}),ae.set(F,{opacity:0}),ae.set(O,{opacity:0,scale:.5}),ae.set(s,{height:"auto"}),ae.set(N,{rotation:-10}),ae.set(U,{rotation:-10}),ae.set([H],{scale:.8,opacity:0}),ae.set(re,{y:50,opacity:0,scale:.95}),ae.set(g,{y:0,opacity:0,scale:.95}),ae.set(A,{opacity:0}),ae.set(te,{opacity:0}),z.addLabel("grid-in","start+=0.5"),z.to(M,{scale:1,y:0,ease:"power2.out",duration:()=>ae.utils.random(.4,.8),stagger:{amount:.1,from:"random"},immediateRender:!1},"grid-in"),z.to(M,{opacity:1,ease:"power2.out",duration:()=>ae.utils.random(.2,.4),stagger:{amount:.1,from:"random"},immediateRender:!1},"grid-in"),z.to(s,{height:"100%",ease:"power2.out",duration:.5,immediateRender:!1},"grid-in"),z.to(C,{opacity:1,scale:1,ease:"power2.out",duration:.3,immediateRender:!1},"grid-in"),z.to(k,{scale:1,ease:"power2.out",duration:.3,immediateRender:!1},"grid-in"),z.to(k,{opacity:1,ease:"power2.out",duration:.1,immediateRender:!1},"grid-in+=0.1"),z.fromTo(O,{opacity:0},{opacity:1,ease:"power2.out",duration:.2,immediateRender:!1},"grid-in+=0.1"),z.fromTo(O,{scale:.5},{scale:1,ease:"power2.out",duration:.5,immediateRender:!1},"grid-in+=0.2"),z.to(F,{opacity:1,ease:"power2.out",duration:.3,immediateRender:!1},"grid-in+=0.3"),N&&U&&H&&(z.to([H],{opacity:1,scale:1,duration:.1,ease:"power2.out",immediateRender:!1},"grid-in+=0.4"),z.to(N,{rotation:30,duration:.5,ease:"power2.out",immediateRender:!1},"grid-in+=0.4"),z.to(U,{rotation:30,duration:.5,ease:"power2.out",immediateRender:!1},"grid-in+=0.4")),re&&z.to([re],{y:0,opacity:1,scale:1,duration:.2,ease:"power2.out",immediateRender:!1},"grid-in+=0.35"),g&&z.to([g],{y:0,opacity:1,scale:1,duration:.2,ease:"power2.out",immediateRender:!1},"grid-in+=0.45"),x&&z.to(x,{opacity:1,duration:.1,ease:"power2.out",immediateRender:!1},"grid-in+=0.4"),A&&z.to(A,{opacity:1,duration:.2,ease:"power2.out",immediateRender:!1},"grid-in+=0.4"),te&&z.to(te,{opacity:1,duration:.2,ease:"power2.out",immediateRender:!1},"grid-in+=0.4"),z.to(M,{opacity:.8,ease:"power2.out",duration:.2,stagger:{amount:.1,from:"random"},immediateRender:!1},"grid-in+=0.30")}typeof window<"u"&&(window.addEventListener("DOMContentLoaded",()=>{cf()}),window.addEventListener("load",()=>{V.refresh()}));})();
2
+ /*! Bundled license information:
3
+
4
+ gsap/gsap-core.js:
5
+ (*!
6
+ * GSAP 3.13.0
7
+ * https://gsap.com
8
+ *
9
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
10
+ * Subject to the terms at https://gsap.com/standard-license
11
+ * @author: Jack Doyle, jack@greensock.com
12
+ *)
13
+
14
+ gsap/CSSPlugin.js:
15
+ (*!
16
+ * CSSPlugin 3.13.0
17
+ * https://gsap.com
18
+ *
19
+ * Copyright 2008-2025, GreenSock. All rights reserved.
20
+ * Subject to the terms at https://gsap.com/standard-license
21
+ * @author: Jack Doyle, jack@greensock.com
22
+ *)
23
+
24
+ gsap/Observer.js:
25
+ (*!
26
+ * Observer 3.13.0
27
+ * https://gsap.com
28
+ *
29
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
30
+ * Subject to the terms at https://gsap.com/standard-license
31
+ * @author: Jack Doyle, jack@greensock.com
32
+ *)
33
+
34
+ gsap/ScrollTrigger.js:
35
+ (*!
36
+ * ScrollTrigger 3.13.0
37
+ * https://gsap.com
38
+ *
39
+ * @license Copyright 2008-2025, GreenSock. All rights reserved.
40
+ * Subject to the terms at https://gsap.com/standard-license
41
+ * @author: Jack Doyle, jack@greensock.com
42
+ *)
43
+ */