| @@ -1,2 +1,18 @@ | ||
| 1 | -/*! For license information please see view.js.LICENSE.txt */ | |
| 2 | -(()=>{"use strict";var t={5795:t=>{t.exports=window.ReactDOM},8744:(t,e,r)=>{var n=r(5795);e.H=n.createRoot,n.hydrateRoot}},e={};const r=window.React;var n=function r(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={exports:{}};return t[n](s,s.exports,r),s.exports}(8744);const i="@media only screen and (max-width: 1024px)",s="@media only screen and (max-width: 640px)",a=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=(t,e,r=!1)=>a(e)?`${t}: ${e}${r?" !important":""};`:"",u=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},l=t=>{const{position:e="center center",xPosition:r=0,yPosition:n=0,attachment:i="",repeat:s="no-repeat",size:o="cover",customSize:u="0px"}=t||{},l=t=>"initial"!==t||a(t);return`\n\t\t${l(e)?`background-position: ${"custom"===e?`${r} ${n}`:e};`:""}\n\t\t${i&&l(i)?`background-attachment: ${i};`:""}\n\t\t${l(s)?`background-repeat: ${s};`:""}\n\t\t${l(o)?`background-size: ${"custom"===o?`${u} auto`:o};`:""}\n\t`},c=(t={})=>t?{desktop:a(t.url)?`background-image: url(${t.url}); ${l(t?.desktop)}`:"",tablet:a(t.url)?l(t?.tablet):"",mobile:a(t.url)?l(t?.mobile):""}:"",f=(t,e,r=!1)=>{const{type:n="color",color:u,gradient:l,img:f,video:h}=t||{},p="color"===n?o("background",u):"gradient"===n?(t=>{const{type:e="linear",radialType:r="ellipse",colors:n=[],centerPositions:i={x:0,y:0},angel:s=0}=t||{};if(a(t)){const t=n?.map((({color:t,position:e})=>`${t} ${e}%`)),a=`linear-gradient(${s}deg, ${t})`;return o("background","radial"===e?`radial-gradient(${r} at ${i?.x}% ${i?.y}%,${t})`:a)}return""})(l):"image"===n?c(f).desktop:"",d="image"===n?c(f).tablet:"",g="image"===n?c(f).mobile:"",m=r?`${e}:hover`:e;return`\n\t\t${"video"===n?((t,e)=>{const{url:r,loop:n}=t||{},i=document.querySelector(e),s=i?.querySelector(".bPlVideo"),a=document.createElement("video");return a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),s||i&&r&&(a.innerHTML=`<source src=${r}></source>`,i.appendChild(a)),a.loop=n,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(h,e):""}\n\n\t\t${p?`${m}{\n\t\t\t${p}\n\t\t}`:""}\n\n\t\t${d?`${i} {\n\t\t\t${m}{\n\t\t\t\t${d}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${s} {\n\t\t\t${m}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},h=(t,e,r=!1)=>{const{isEnabled:n,colors:i,opacity:s=1,blend:u,filter:l="",blur:c=0,brightness:h=100,contrast:p=100,saturation:d=100,hue:g=0,position:m={top:0,right:0,bottom:0,left:0},zIndex:_=-1}=t||{},v=`${100!==h?`brightness(${h}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==d?`saturate(${d}%)`:""} ${0!==c?`blur(${c}px)`:""} ${0!==g?`hue-rotate(${g}deg)`:""}`,y=`${l}: ${l?v:""}; -webkit-${l}: ${l?v:""};`,b=r?`${e}:hover::after`:`${e}::after`;return n?`\n\t\t${e}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${e}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${a(m.top)?m.top:0};\n\t\t\tright:${a(m.right)?m.right:0};\n\t\t\tbottom:${a(m.bottom)?m.bottom:0};\n\t\t\tleft:${a(m.left)?m.left:0};\n\t\t\tz-index:${_};\n\t\t}\n\t\t${f(i,b,!1)}\n\t\t${b}{\n\t\t\t${o("opacity",s)}\n\t\t\t${o("mix-blend-mode",u)}\n\t\t\t${y}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},p=(t,e,r=!1)=>{const n=(t,e="desktop")=>{if(!a(t))return"";const{skew:r,scale:n,rotate:i,offset:s,flipX:u,flipY:l}=t,{threeDRotate:c}=i||{},{isProportion:f}=n||{},h=[];return a(r)&&(a(r?.[e]?.x)&&h.push(`skewX(${r[e].x}deg)`),a(r?.[e]?.y)&&h.push(`skewY(${r[e].y}deg)`)),f?a(n?.[e]?.scale)&&h.push(`scale(${n[e].scale})`):(a(n?.[e]?.x)&&h.push(`scaleX(${n[e].x})`),a(n?.[e]?.y)&&h.push(`scaleY(${n[e].y})`)),a(i)&&(a(i?.[e]?.z)&&h.push(`rotateZ(${i[e].z}deg)`),c&&(a(i?.[e]?.x)&&h.push(`rotateX(${i[e].x}deg)`),a(i?.[e]?.y)&&h.push(`rotateY(${i[e].y}deg)`))),a(s)&&(a(s?.[e]?.x)&&h.push(`translateX(${s[e].x})`),a(s?.[e]?.y)&&h.push(`translateY(${s[e].y})`)),a(u)&&h.push(u?"scaleX(-1)":""),a(l)&&h.push(l?"scaleY(-1)":""),0===h.length?"":o("transform",h.join(" "))},u=r?`${e}:hover`:e;return`\n\t\t${u} {\n\t\t\t${n(t,"desktop")}\n\t\t}\n\t\t${i}{\n\t\t\t${u} {\n\t\t\t\t${n(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${s}{\n\t\t\t${u} {\n\t\t\t\t${n(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},d=t=>{const{padding:e,margin:r,height:n,width:i}=t||{},s=(t,e)=>o(t,e),a=(t,e,r)=>s(t,e?.[t]?.[r])+s(`min-${t}`,e?.min?.[r])+s(`max-${t}`,e?.max?.[r]),l=t=>o("padding",u(t)),c=t=>o("margin",u(t));return{desktop:l(e?.desktop)+c(r?.desktop)+a("height",n,"desktop")+a("width",i,"desktop"),tablet:l(e?.tablet)+c(r?.tablet)+a("height",n,"tablet")+a("width",i,"tablet"),mobile:l(e?.mobile)+c(r?.mobile)+a("height",n,"mobile")+a("width",i,"mobile")}},g=t=>{const{normal:e,hover:r}=t||{},n=t=>{const{border:e,radius:r,shadow:n}=t||{},i=o("border-radius",u(r)),s=o("box-shadow",((t,e="box")=>{let r="";return t?.map(((n,i)=>{const{hOffset:s="0px",vOffset:a="0px",blur:o="0px",spreed:u="0px",color:l="#e7f0fe",isInset:c=!1}=n||{},f=c?"inset":"",h=`${s} ${a} ${o}`,p=i+1>=t.length?"":", ";r+="text"===e?`${h} ${l}${p}`:`${h} ${u} ${l} ${f}${p}`})),r||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:r="solid",width:n="0px"}=t;return`${n} ${r} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((r=>t[r]?`border-${r}: ${e(t[r])};`:"")).join(" ").trim():o("border",e(t))})(e)+i+s};return{normal:n(e),hover:n(r)}},m=t=>{const{zIndex:e,overflow:r}=t||{},n=r?`overflow: ${r};`:"",i=t=>`${o("z-index",e?.[t])} ${o("position",a(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+n,tablet:i("tablet"),mobile:i("mobile")}},_=(t,e)=>{const{desktop:r=!1,tablet:n=!1,mobile:i=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",a=t=>t?s:"";return{desktop:a(r),tablet:a(n),mobile:a(i)}},v=(t,e,r=!1,n=!0)=>{const{dimension:u,transform:l,background:c,borderShadow:v,mask:y,animation:b,visibility:x,responsive:M,css:w=""}=e||{},T=r?`#${t}>div>div${n?":first-child":""}`:`#${t}>div`;((t,e,r)=>{const n=r?`#${e} > div`:`#${e}`,i=document.querySelector(n);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),r)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(b,t,r);const k=d(u).desktop+m(x).desktop+((t,e,r)=>{const{transition:n=.4}=t||{},{transition:i=.4}=e||{},{transition:s=200}=r||{};return`transition: background ${n}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${s}ms ease-in-out;`})(c,v,l)+(t=>{const{isMask:e=!1,shape:r={type:"circle"},size:n={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: url(${"custom"===r.type?r.url:(a=r.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===a))).svg});\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${o("-webkit-mask-position-x",i.x)}\n\t\t\t${o("-webkit-mask-position-y",i.y)}`:`${o("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${s};`:""}`:"";var a})(y),D=d(u).tablet+m(x).tablet+_(M,r).tablet,O=d(u).mobile+m(x).mobile+_(M,r).mobile,S=g(v).normal,C=g(v).hover,z=_(M,r).desktop;return`\n\t\t${k||S?`${T} {\n\t\t\t${k}\n\t\t\t${S}\n\t\t}`:""}\n\t\t${C?`${T}:hover {\n\t\t\t${C}\n\t\t}`:""}\n\n\t\t${z?`@media only screen and (min-width: 1025px) {\n\t\t\t${T}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${D?`${i} {\n\t\t\t${T}{\n\t\t\t\t${D}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${O?`${s} {\n\t\t\t${T}{\n\t\t\t\t${O}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${f(c?.normal,T)}\n\t\t${f(c?.hover,T,!0)}\n\t\t${h(c?.overlay,T)}\n\t\t${h(c?.hoverOverlay,T,!0)}\n\t\t${a(l?.normal)?p(l?.normal,T):""}\n\t\t${a(l?.hover)?p(l?.hover,T,!0):""}\n\n\t\t${w}\n\t`.replace(/\s+/g," ")},y=({attributes:t,id:e,isBackend:n=!1})=>{const{styles:a,options:u,advanced:l}=t,{responsive:c}=u,f=`#${e} .b-blocks-stackedCardsMainWrapper .bBlocksStackedSingleCard`,h=`${f} .bBlocksContainer .bBlocksContainerContent`;return(0,r.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${f}{\n\t\t\t${n?"":o("top",a.stickyTop+"px")}\n\t\t\t${n?"":o("position",c.desktop?"unset":"sticky",!0)}\n\t\t\t${c.desktop?"transform: scale(1) !important;":""}\n\n\t\t}\n\t\t${f}:last-child{\n\t\t\t${o("margin-bottom","0px",!0)}\n\t\t}\n\t\t${h}{\n\t\t\t${n?"":o("height",a.desktop.height)}\n\t\t}\n\t\t${i}{\n\t\t\t${f}{\n\t\t\t\t${n?"":o("position",c.tablet?"unset":"sticky",!0)}\n\t\t\t\t${c.tablet?"transform: scale(1) !important;":""}\n\t\t\t}\n\t\t\t${h}{\n\t\t\t\t${n?"":o("height",a.tablet.height)}\n\t\t\t}\n\t\t}\n\n\t\t${s}{\n\t\t\t${f}{\n\t\t\t\t${n?"":o("position",c.mobile?"unset":"sticky",!0)}\n\t\t\t\t${c.desktop?"transform: scale(1) !important;":""}\n\t\t\t}\n\t\t\t${h}{\n\t\t\t\t${n?"":o("height",a.mobile.height)}\n\t\t\t}\n\t\t}\n\n\t\t${v(e,l,n)}\n\t`}})};function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var M,w,T,k,D,O,S,C,z,E,L,N,A,P,j,$,I,R={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Y={duration:.5,overwrite:!1,delay:0},U=1e8,F=1e-8,B=2*Math.PI,Q=B/4,H=0,X=Math.sqrt,W=Math.cos,q=Math.sin,Z=function(t){return"string"==typeof t},V=function(t){return"function"==typeof t},G=function(t){return"number"==typeof t},J=function(t){return void 0===t},K=function(t){return"object"==typeof t},tt=function(t){return!1!==t},et=function(){return"undefined"!=typeof window},rt=function(t){return V(t)||Z(t)},nt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},it=Array.isArray,st=/(?:-?\.?\d|\.)+/gi,at=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ot=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ut=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,lt=/[+-]=-?[.\d]+/,ct=/[^,'"\[\]\s]+/gi,ft=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ht={},pt={},dt=function(t){return(pt=Bt(t,ht))&&Br},gt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},mt=function(t,e){return!e&&console.warn(t)},_t=function(t,e){return t&&(ht[t]=e)&&pt&&(pt[t]=e)||ht},vt=function(){return 0},yt={suppressEvents:!0,isStart:!0,kill:!1},bt={suppressEvents:!0,kill:!1},xt={suppressEvents:!0},Mt={},wt=[],Tt={},kt={},Dt={},Ot=30,St=[],Ct="",zt=function(t){var e,r,n=t[0];if(K(n)||V(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=St.length;r--&&!St[r].targetTest(n););e=St[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new nr(t[r],e)))||t.splice(r,1);return t},Et=function(t){return t._gsap||zt(be(t))[0]._gsap},Lt=function(t,e,r){return(r=t[e])&&V(r)?t[e]():J(r)&&t.getAttribute&&t.getAttribute(e)||r},Nt=function(t,e){return(t=t.split(",")).forEach(e)||t},At=function(t){return Math.round(1e5*t)/1e5||0},Pt=function(t){return Math.round(1e7*t)/1e7||0},jt=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},$t=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},It=function(){var t,e,r=wt.length,n=wt.slice(0);for(Tt={},wt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Rt=function(t,e,r,n){wt.length&&!w&&It(),t.render(e,r,n||w&&e<0&&(t._initted||t._startAt)),wt.length&&!w&&It()},Yt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ct).length<2?e:Z(t)?t.trim():t},Ut=function(t){return t},Ft=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Bt=function(t,e){for(var r in e)t[r]=e[r];return t},Qt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=K(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Ht=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},Xt=function(t){var e,r=t.parent||k,n=t.keyframes?(e=it(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Ft;if(tt(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Wt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,a=t[n];if(i)for(s=e[i];a&&a[i]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t,e},qt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Zt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Vt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Gt=function(t,e,r,n){return t._startAt&&(w?t._startAt.revert(bt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},Jt=function t(e){return!e||e._ts&&t(e.parent)},Kt=function(t){return t._repeat?te(t._tTime,t=t.duration()+t._rDelay)*t:0},te=function(t,e){var r=Math.floor(t=Pt(t/e));return t&&r===t?r-1:r},ee=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},re=function(t){return t._end=Pt(t._start+(t._tDur/Math.abs(t._ts||t._rts||F)||0))},ne=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Pt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),re(t),r._dirty||Vt(r,t)),t},ie=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=ee(t.rawTime(),e),(!e._dur||me(0,e.totalDuration(),r)-e._tTime>F)&&e.render(r,!0)),Vt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},se=function(t,e,r,n){return e.parent&&Zt(e),e._start=Pt((G(r)?r:r||t!==k?pe(t,r,e):t._time)+e._delay),e._end=Pt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Wt(t,e,"_first","_last",t._sort?"_start":0),le(e)||(t._recent=e),n||ie(t,e),t._ts<0&&ne(t,t._tTime),t},ae=function(t,e){return(ht.ScrollTrigger||gt("scrollTrigger",e))&&ht.ScrollTrigger.create(e,t)},oe=function(t,e,r,n,i){return fr(t,e,i),t._initted?!r&&t._pt&&!w&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&z!==Qe.frame?(wt.push(t),t._lazy=[i,n],1):void 0:1},ue=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},le=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ce=function(t,e,r,n){var i=t._repeat,s=Pt(e)||0,a=t._tTime/t._tDur;return a&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:Pt(s*(i+1)+t._rDelay*i):s,a>0&&!n&&ne(t,t._tTime=t._tDur*a),t.parent&&re(t),r||Vt(t.parent,t),t},fe=function(t){return t instanceof sr?Vt(t):ce(t,t._dur)},he={_start:0,endTime:vt,totalDuration:vt},pe=function t(e,r,n){var i,s,a,o=e.labels,u=e._recent||he,l=e.duration()>=U?u.endTime(!1):e._dur;return Z(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(i<0?u:n).totalDuration()/100:1)):i<0?(r in o||(o[r]=l),o[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),a&&n&&(s=s/100*(it(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:l+s)):null==r?l:+r},de=function(t,e,r){var n,i,s=G(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(n=o,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=tt(i.vars.inherit)&&i.parent;o.immediateRender=tt(n.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new mr(e[0],o,e[a+1])},ge=function(t,e){return t||0===t?e(t):e},me=function(t,e,r){return r<t?t:r>e?e:r},_e=function(t,e){return Z(t)&&(e=ft.exec(t))?e[1]:""},ve=[].slice,ye=function(t,e){return t&&K(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&K(t[0]))&&!t.nodeType&&t!==D},be=function(t,e,r){return T&&!e&&T.selector?T.selector(t):!Z(t)||r||!O&&He()?it(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return Z(t)&&!e||ye(t,1)?(n=r).push.apply(n,be(t)):r.push(t)}))||r}(t,r):ye(t)?ve.call(t,0):t?[t]:[]:ve.call((e||S).querySelectorAll(t),0)},xe=function(t){return t=be(t)[0]||mt("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return be(e,r.querySelectorAll?r:r===t?mt("Invalid scope")||S.createElement("div"):t)}},Me=function(t){return t.sort((function(){return.5-Math.random()}))},we=function(t){if(V(t))return t;var e=K(t)?t:{each:t},r=Je(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},a=n>0&&n<1,o=isNaN(n)||a,u=e.axis,l=n,c=n;return Z(n)?l=c={center:.5,edges:.5,end:1}[n]||0:!a&&o&&(l=n[0],c=n[1]),function(t,a,f){var h,p,d,g,m,_,v,y,b,x=(f||e).length,M=s[x];if(!M){if(!(b="auto"===e.grid?0:(e.grid||[1,U])[1])){for(v=-U;v<(v=f[b++].getBoundingClientRect().left)&&b<x;);b<x&&b--}for(M=s[x]=[],h=o?Math.min(b,x)*l-.5:n%b,p=b===U?0:o?x*c/b-.5:n/b|0,v=0,y=U,_=0;_<x;_++)d=_%b-h,g=p-(_/b|0),M[_]=m=u?Math.abs("y"===u?g:d):X(d*d+g*g),m>v&&(v=m),m<y&&(y=m);"random"===n&&Me(M),M.max=v-y,M.min=y,M.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(b>x?x-1:u?"y"===u?x/b:b:Math.max(b,x/b))||0)*("edges"===n?-1:1),M.b=x<0?i-x:i,M.u=_e(e.amount||e.each)||0,r=r&&x<0?Ve(r):r}return x=(M[t]-M.min)/M.max||0,Pt(M.b+(r?r(x):x)*M.v)+M.u}},Te=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Pt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(G(r)?0:_e(r))}},ke=function(t,e){var r,n,i=it(t);return!i&&K(t)&&(r=i=t.radius||U,t.values?(t=be(t.values),(n=!G(t[0]))&&(r*=r)):t=Te(t.increment)),ge(e,i?V(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,s,a=parseFloat(n?e.x:e),o=parseFloat(n?e.y:0),u=U,l=0,c=t.length;c--;)(i=n?(i=t[c].x-a)*i+(s=t[c].y-o)*s:Math.abs(t[c]-a))<u&&(u=i,l=c);return l=!r||u<=r?t[l]:e,n||l===e||G(e)?l:l+_e(e)}:Te(t))},De=function(t,e,r,n){return ge(it(t)?!e:!0===r?!!(r=0):!n,(function(){return it(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},Oe=function(t,e,r){return ge(r,(function(r){return t[~~e(r)]}))},Se=function(t){for(var e,r,n,i,s=0,a="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?ct:st),a+=t.substr(s,e-s)+De(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return a+t.substr(s,t.length-s)},Ce=function(t,e,r,n,i){var s=e-t,a=n-r;return ge(i,(function(e){return r+((e-t)/s*a||0)}))},ze=function(t,e,r){var n,i,s,a=t.labels,o=U;for(n in a)(i=a[n]-e)<0==!!r&&i&&o>(i=Math.abs(i))&&(s=n,o=i);return s},Ee=function(t,e,r){var n,i,s,a=t.vars,o=a[e],u=T,l=t._ctx;if(o)return n=a[e+"Params"],i=a.callbackScope||t,r&&wt.length&&It(),l&&(T=l),s=n?o.apply(i,n):o.call(i),T=u,s},Le=function(t){return Zt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!w),t.progress()<1&&Ee(t,"onInterrupt"),t},Ne=[],Ae=function(t){if(t)if(t=!t.name&&t.default||t,et()||t.headless){var e=t.name,r=V(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:vt,render:kr,add:lr,kill:Or,modifier:Dr,rawVars:0},s={targetTest:0,get:0,getSetter:xr,aliases:{},register:0};if(He(),t!==n){if(kt[e])return;Ft(n,Ft(Ht(t,i),s)),Bt(n.prototype,Bt(i,Ht(t,s))),kt[n.prop=e]=n,t.targetTest&&(St.push(n),Mt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}_t(e,n),t.register&&t.register(Br,n,zr)}else Ne.push(t)},Pe=255,je={aqua:[0,Pe,Pe],lime:[0,Pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Pe],navy:[0,0,128],white:[Pe,Pe,Pe],olive:[128,128,0],yellow:[Pe,Pe,0],orange:[Pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Pe,0,0],pink:[Pe,192,203],cyan:[0,Pe,Pe],transparent:[Pe,Pe,Pe,0]},$e=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Pe+.5|0},Ie=function(t,e,r){var n,i,s,a,o,u,l,c,f,h,p=t?G(t)?[t>>16,t>>8&Pe,t&Pe]:0:je.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),je[t])p=je[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Pe,p&Pe,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Pe,t&Pe]}else if("hsl"===t.substr(0,3))if(p=h=t.match(st),e){if(~t.indexOf("="))return p=t.match(at),r&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,n=2*(u=+p[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),p.length>3&&(p[3]*=1),p[0]=$e(a+1/3,n,i),p[1]=$e(a,n,i),p[2]=$e(a-1/3,n,i);else p=t.match(st)||je.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/Pe,i=p[1]/Pe,s=p[2]/Pe,u=((l=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,l===c?a=o=0:(f=l-c,o=u>.5?f/(2-l-c):f/(l+c),a=l===n?(i-s)/f+(i<s?6:0):l===i?(s-n)/f+2:(n-i)/f+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*u+.5)),r&&p.length<4&&(p[3]=1),p},Re=function(t){var e=[],r=[],n=-1;return t.split(Ue).forEach((function(t){var i=t.match(ot)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},Ye=function(t,e,r){var n,i,s,a,o="",u=(t+o).match(Ue),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Ie(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(s=Re(t),(n=r.c).join(o)!==s.c.join(o)))for(a=(i=t.replace(Ue,"1").split(ot)).length-1;c<a;c++)o+=i[c]+(~n.indexOf(c)?u.shift()||l+"0,0,0,0)":(s.length?s:u.length?u:r).shift());if(!i)for(a=(i=t.split(Ue)).length-1;c<a;c++)o+=i[c]+u[c];return o+i[a]},Ue=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in je)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Fe=/hsl[a]?\(/,Be=function(t){var e,r=t.join(" ");if(Ue.lastIndex=0,Ue.test(r))return e=Fe.test(r),t[1]=Ye(t[1],e),t[0]=Ye(t[0],e,Re(t[1])),!0},Qe=function(){var t,e,r,n,i,s,a=Date.now,o=500,u=33,l=a(),c=l,f=1e3/240,h=f,p=[],d=function r(d){var g,m,_,v,y=a()-c,b=!0===d;if((y>o||y<0)&&(l+=y-u),((g=(_=(c+=y)-l)-h)>0||b)&&(v=++n.frame,i=_-1e3*n.time,n.time=_/=1e3,h+=g+(g>=f?4:f-g),m=1),b||(t=e(r)),m)for(s=0;s<p.length;s++)p[s](_,i,v,d)};return n={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){C&&(!O&&et()&&(D=O=window,S=D.document||{},ht.gsap=Br,(D.gsapVersions||(D.gsapVersions=[])).push(Br.version),dt(pt||D.GreenSockGlobals||!D.gsap&&D||{}),Ne.forEach(Ae)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},L=1,d(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),L=0,e=vt},lagSmoothing:function(t,e){o=t||1/0,u=Math.min(e||33,o)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},add:function(t,e,r){var i=e?function(e,r,s,a){t(e,r,s,a),n.remove(i)}:t;return n.remove(t),p[r?"unshift":"push"](i),He(),i},remove:function(t,e){~(e=p.indexOf(t))&&p.splice(e,1)&&s>=e&&s--},_listeners:p}}(),He=function(){return!L&&Qe.wake()},Xe={},We=/^[\d.\-M][\d.\-,\s]/,qe=/["']/g,Ze=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o<u;o++)r=s[o],e=o!==u-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[a]=isNaN(n)?n.replace(qe,"").trim():+n,a=r.substr(e+1).trim();return i},Ve=function(t){return function(e){return 1-t(1-e)}},Ge=function t(e,r){for(var n,i=e._first;i;)i instanceof sr?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},Je=function(t,e){return t&&(V(t)?t:Xe[t]||function(t){var e,r,n,i,s=(t+"").split("("),a=Xe[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ze(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Yt)):Xe._CE&&We.test(t)?Xe._CE("",t):a}(t))||e},Ke=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return Nt(t,(function(t){for(var e in Xe[t]=ht[t]=s,Xe[i=t.toLowerCase()]=r,s)Xe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Xe[t+"."+e]=s[e]})),s},tr=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},er=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),a=s/B*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*q((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:tr(o);return s=B/s,u.config=function(r,n){return t(e,r,n)},u},rr=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:tr(n);return i.config=function(r){return t(e,r)},i};Nt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Ke(t+",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(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),Xe.Linear.easeNone=Xe.none=Xe.Linear.easeIn,Ke("Elastic",er("in"),er("out"),er()),N=7.5625,j=2*(P=1/(A=2.75)),$=2.5*P,Ke("Bounce",(function(t){return 1-I(1-t)}),I=function(t){return t<P?N*t*t:t<j?N*Math.pow(t-1.5/A,2)+.75:t<$?N*(t-=2.25/A)*t+.9375:N*Math.pow(t-2.625/A,2)+.984375}),Ke("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),Ke("Circ",(function(t){return-(X(1-t*t)-1)})),Ke("Sine",(function(t){return 1===t?1:1-W(t*Q)})),Ke("Back",rr("in"),rr("out"),rr()),Xe.SteppedEase=Xe.steps=ht.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*me(0,.99999999,t)|0)+i)*r}}},Y.ease=Xe["quad.out"],Nt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Ct+=t+","+t+"Params,"}));var nr=function(t,e){this.id=H++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Lt,this.set=e?e.getSetter:xr},ir=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ce(this,+t.duration,1,1),this.data=t.data,T&&(this._ctx=T,T.data.push(this)),L||Qe.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(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,ce(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(He(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(ne(this,t),!r._dp||r.parent||ie(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&se(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===F||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Rt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Kt(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Kt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?te(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?ee(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(me(-Math.abs(this._delay),this._tDur,r),!1!==e),re(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):(He(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==F&&(this._tTime-=F)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&se(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(tt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ee(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=xt);var e=w;return w=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),w=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,fe(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,fe(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(pe(this,t),tt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,tt(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),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?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-F))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=V(t)?t:Ut,i=function(){var t=e.then;e.then=null,V(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Le(this)},t}();Ft(ir.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:-1e-8,_prom:0,_ps:!1,_rts:1});var sr=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=tt(e.sortChildren),k&&se(e.parent||k,b(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&ae(b(n),e.scrollTrigger),n}x(e,t);var r=e.prototype;return r.to=function(t,e,r){return de(0,arguments,this),this},r.from=function(t,e,r){return de(1,arguments,this),this},r.fromTo=function(t,e,r,n){return de(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Xt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new mr(t,e,pe(this,r),1),this},r.call=function(t,e,r){return se(this,mr.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new mr(t,r,pe(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,a){return r.runBackwards=1,Xt(r).immediateRender=tt(r.immediateRender),this.staggerTo(t,e,r,n,i,s,a)},r.staggerFromTo=function(t,e,r,n,i,s,a,o){return n.startAt=r,Xt(n).immediateRender=tt(n.immediateRender),this.staggerTo(t,e,n,i,s,a,o)},r.render=function(t,e,r){var n,i,s,a,o,u,l,c,f,h,p,d,g=this._time,m=this._dirty?this.totalDuration():this._tDur,_=this._dur,v=t<=0?0:Pt(t),y=this._zTime<0!=t<0&&(this._initted||!_);if(this!==k&&v>m&&t>=0&&(v=m),v!==this._tTime||r||y){if(g!==this._time&&_&&(v+=this._time-g,t+=this._time-g),n=v,f=this._start,u=!(c=this._ts),y&&(_||(g=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,o=_+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,r);if(n=Pt(v%o),v===m?(a=this._repeat,n=_):((a=~~(h=Pt(v/o)))&&a===h&&(n=_,a--),n>_&&(n=_)),h=te(this._tTime,o),!g&&this._tTime&&h!==a&&this._tTime-h*o-this._dur<=0&&(h=a),p&&1&a&&(n=_-n,d=1),a!==h&&!this._lock){var b=p&&1&h,x=b===(p&&1&a);if(a<h&&(b=!b),g=b?0:v%_?_:v,this._lock=1,this.render(g||(d?0:Pt(a*o)),e,!_)._lock=0,this._tTime=v,!e&&this.parent&&Ee(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1),g&&g!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(_=this._dur,m=this._tDur,x&&(this._lock=2,g=b?_:-1e-4,this.render(g,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Ge(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,Pt(g),Pt(n)),l&&(v-=n-(n=l._start))),this._tTime=v,this._time=n,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,g=0),!g&&n&&!e&&!a&&(Ee(this,"onStart"),this._tTime!==v))return this;if(n>=g&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!u){l=0,s&&(v+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var M=t<0?t:n;i;){if(s=i._prev,(i._act||M<=i._end)&&i._ts&&l!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(M-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(M-i._start)*i._ts,e,r||w&&(i._initted||i._startAt)),n!==this._time||!this._ts&&!u){l=0,s&&(v+=this._zTime=M?-1e-8:F);break}}i=s}}if(l&&!e&&(this.pause(),l.render(n>=g?0:-1e-8)._zTime=n>=g?1:-1,this._ts))return this._start=f,re(this),this.render(t,e,r);this._onUpdate&&!e&&Ee(this,"onUpdate",!0),(v===m&&this._tTime>=this.totalDuration()||!v&&g)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!_)&&(v===m&&this._ts>0||!v&&this._ts<0)&&Zt(this,1),e||t<0&&!g||!v&&!g&&m||(Ee(this,v===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<m&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(G(e)||(e=pe(this,e,t)),!(t instanceof ir)){if(it(t))return t.forEach((function(t){return r.add(t,e)})),this;if(Z(t))return this.addLabel(t,e);if(!V(t))return this;t=mr.delayedCall(0,t)}return this!==t?se(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-U);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof mr?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return Z(t)?this.removeLabel(t):V(t)?this.killTweensOf(t):(t.parent===this&&qt(this,t),t===this._recent&&(this._recent=this._last),Vt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Pt(Qe.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=pe(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=mr.delayedCall(0,e||vt,r);return n.data="isPause",this._hasPause=1,se(this,n,pe(this,t))},r.removePause=function(t){var e=this._first;for(t=pe(this,t);e;)e._start===t&&"isPause"===e.data&&Zt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)ar!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=be(t),s=this._first,a=G(e);s;)s instanceof mr?$t(s._targets,i)&&(a?(!ar||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=pe(n,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,l=s.immediateRender,c=mr.to(n,Ft({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale())||F,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(a&&"time"in a?a.time:n._time))/n.timeScale());c._dur!==t&&ce(c,t,0,1).render(c._time,!0,!0),r=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Ft({startAt:{time:pe(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),ze(this,pe(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),ze(this,pe(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+F)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Vt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Vt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,a=s._last,o=U;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,se(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),o=0),a._end>i&&a._ts&&(i=a._end),a=e;ce(s,s===k&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(k._ts&&(Rt(k,ee(t,k)),z=Qe.frame),Qe.frame>=Ot){Ot+=R.autoSleep||120;var e=k._first;if((!e||!e._ts)&&R.autoSleep&&Qe._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Qe.sleep()}}},e}(ir);Ft(sr.prototype,{_lock:0,_hasPause:0,_forcing:0});var ar,or,ur=function(t,e,r,n,i,s,a){var o,u,l,c,f,h,p,d,g=new zr(this._pt,t,e,0,1,Tr,null,i),m=0,_=0;for(g.b=r,g.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=Se(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),u=r.match(ut)||[];o=ut.exec(n);)c=o[0],f=n.substring(m,o.index),l?l=(l+1)%5:"rgba("===f.substr(-5)&&(l=1),c!==u[_++]&&(h=parseFloat(u[_-1])||0,g._pt={_next:g._pt,p:f||1===_?f:",",s:h,c:"="===c.charAt(1)?jt(h,c)-h:parseFloat(c)-h,m:l&&l<4?Math.round:0},m=ut.lastIndex);return g.c=m<n.length?n.substring(m,n.length):"",g.fp=a,(lt.test(n)||p)&&(g.e=0),this._pt=g,g},lr=function(t,e,r,n,i,s,a,o,u,l){V(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:V(f)?u?t[e.indexOf("set")||!V(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():f,p=V(f)?u?yr:vr:_r;if(Z(n)&&(~n.indexOf("random(")&&(n=Se(n)),"="===n.charAt(1)&&((c=jt(h,n)+(_e(h)||0))||0===c)&&(n=c)),!l||h!==n||or)return isNaN(h*n)||""===n?(!f&&!(e in t)&>(e,n),ur.call(this,t,e,h,n,p,o||R.stringFilter,u)):(c=new zr(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?wr:Mr,0,p),u&&(c.fp=u),a&&c.modifier(a,this,t),this._pt=c)},cr=function(t,e,r,n,i,s){var a,o,u,l;if(kt[t]&&!1!==(a=new kt[t]).init(i,a.rawVars?e[t]:function(t,e,r,n,i){if(V(t)&&(t=pr(t,i,e,r,n)),!K(t)||t.style&&t.nodeType||it(t)||nt(t))return Z(t)?pr(t,i,e,r,n):t;var s,a={};for(s in t)a[s]=pr(t[s],i,e,r,n);return a}(e[t],n,i,s,r),r,n,s)&&(r._pt=o=new zr(r._pt,i,t,0,1,a.render,a,0,a.priority),r!==E))for(u=r._ptLookup[r._targets.indexOf(i)],l=a._props.length;l--;)u[a._props[l]]=o;return a},fr=function t(e,r,n){var i,s,a,o,u,l,c,f,h,p,d,g,m,_=e.vars,v=_.ease,y=_.startAt,b=_.immediateRender,x=_.lazy,T=_.onUpdate,D=_.runBackwards,O=_.yoyoEase,S=_.keyframes,C=_.autoRevert,z=e._dur,E=e._startAt,L=e._targets,N=e.parent,A=N&&"nested"===N.data?N.vars.targets:L,P="auto"===e._overwrite&&!M,j=e.timeline;if(j&&(!S||!v)&&(v="none"),e._ease=Je(v,Y.ease),e._yEase=O?Ve(Je(!0===O?v:O,Y.ease)):0,O&&e._yoyo&&!e._repeat&&(O=e._yEase,e._yEase=e._ease,e._ease=O),e._from=!j&&!!_.runBackwards,!j||S&&!_.stagger){if(g=(f=L[0]?Et(L[0]).harness:0)&&_[f.prop],i=Ht(_,Mt),E&&(E._zTime<0&&E.progress(1),r<0&&D&&b&&!C?E.render(-1,!0):E.revert(D&&z?bt:yt),E._lazy=0),y){if(Zt(e._startAt=mr.set(L,Ft({data:"isStart",overwrite:!1,parent:N,immediateRender:!0,lazy:!E&&tt(x),startAt:null,delay:0,onUpdate:T&&function(){return Ee(e,"onUpdate")},stagger:0},y))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(w||!b&&!C)&&e._startAt.revert(bt),b&&z&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(D&&z&&!E)if(r&&(b=!1),a=Ft({overwrite:!1,data:"isFromStart",lazy:b&&!E&&tt(x),immediateRender:b,stagger:0,parent:N},i),g&&(a[f.prop]=g),Zt(e._startAt=mr.set(L,a)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(w?e._startAt.revert(bt):e._startAt.render(-1,!0)),e._zTime=r,b){if(!r)return}else t(e._startAt,F,F);for(e._pt=e._ptCache=0,x=z&&tt(x)||x&&!z,s=0;s<L.length;s++){if(c=(u=L[s])._gsap||zt(L)[s]._gsap,e._ptLookup[s]=p={},Tt[c.id]&&wt.length&&It(),d=A===L?s:A.indexOf(u),f&&!1!==(h=new f).init(u,g||i,e,d,A)&&(e._pt=o=new zr(e._pt,u,h.name,0,1,h.render,h,0,h.priority),h._props.forEach((function(t){p[t]=o})),h.priority&&(l=1)),!f||g)for(a in i)kt[a]&&(h=cr(a,i,e,d,u,A))?h.priority&&(l=1):p[a]=o=lr.call(e,u,a,"get",i[a],d,A,0,_.stringFilter);e._op&&e._op[s]&&e.kill(u,e._op[s]),P&&e._pt&&(ar=e,k.killTweensOf(u,p,e.globalTime(r)),m=!e.parent,ar=0),e._pt&&x&&(Tt[c.id]=1)}l&&Cr(e),e._onInit&&e._onInit(e)}e._onUpdate=T,e._initted=(!e._op||e._pt)&&!m,S&&r<=0&&j.render(U,!0,!0)},hr=function(t,e,r,n){var i,s,a=e.ease||n||"power1.inOut";if(it(e))s=r[t]||(r[t]=[]),e.forEach((function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:a})}));else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:a})},pr=function(t,e,r,n,i){return V(t)?t.call(e,r,n,i):Z(t)&&~t.indexOf("random(")?Se(t):t},dr=Ct+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",gr={};Nt(dr+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return gr[t]=1}));var mr=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var a,o,u,l,c,f,h,p,d=(s=t.call(this,i?r:Xt(r))||this).vars,g=d.duration,m=d.delay,_=d.immediateRender,v=d.stagger,y=d.overwrite,x=d.keyframes,w=d.defaults,T=d.scrollTrigger,D=d.yoyoEase,O=r.parent||k,S=(it(e)||nt(e)?G(e[0]):"length"in r)?[e]:be(e);if(s._targets=S.length?zt(S):mt("GSAP target "+e+" not found. https://gsap.com",!R.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=y,x||v||rt(g)||rt(m)){if(r=s.vars,(a=s.timeline=new sr({data:"nested",defaults:w||{},targets:O&&"nested"===O.data?O.vars.targets:S})).kill(),a.parent=a._dp=b(s),a._start=0,v||rt(g)||rt(m)){if(l=S.length,h=v&&we(v),K(v))for(c in v)~dr.indexOf(c)&&(p||(p={}),p[c]=v[c]);for(o=0;o<l;o++)(u=Ht(r,gr)).stagger=0,D&&(u.yoyoEase=D),p&&Bt(u,p),f=S[o],u.duration=+pr(g,b(s),o,f,S),u.delay=(+pr(m,b(s),o,f,S)||0)-s._delay,!v&&1===l&&u.delay&&(s._delay=m=u.delay,s._start+=m,u.delay=0),a.to(f,u,h?h(o,f,S):0),a._ease=Xe.none;a.duration()?g=m=0:s.timeline=0}else if(x){Xt(Ft(a.vars.defaults,{ease:"none"})),a._ease=Je(x.ease||r.ease||"none");var C,z,E,L=0;if(it(x))x.forEach((function(t){return a.to(S,t,">")})),a.duration();else{for(c in u={},x)"ease"===c||"easeEach"===c||hr(c,x[c],u,x.easeEach);for(c in u)for(C=u[c].sort((function(t,e){return t.t-e.t})),L=0,o=0;o<C.length;o++)(E={ease:(z=C[o]).e,duration:(z.t-(o?C[o-1].t:0))/100*g})[c]=z.v,a.to(S,E,L),L+=E.duration;a.duration()<g&&a.to({},{duration:g-a.duration()})}}g||s.duration(g=a.duration())}else s.timeline=0;return!0!==y||M||(ar=b(s),k.killTweensOf(S),ar=0),se(O,b(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(_||!g&&!x&&s._start===Pt(O._time)&&tt(_)&&Jt(b(s))&&"nested"!==O.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-m)||0)),T&&ae(b(s),T),s}x(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,a,o,u,l,c,f,h=this._time,p=this._tDur,d=this._dur,g=t<0,m=t>p-F&&!g?p:t<F?0:t;if(d){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if(n=m,c=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&g)return this.totalTime(100*a+t,e,r);if(n=Pt(m%a),m===p?(s=this._repeat,n=d):(s=~~(o=Pt(m/a)))&&s===o?(n=d,s--):n>d&&(n=d),(u=this._yoyo&&1&s)&&(f=this._yEase,n=d-n),o=te(this._tTime,a),n===h&&!r&&this._initted&&s===o)return this._tTime=m,this;s!==o&&(c&&this._yEase&&Ge(c,u),this.vars.repeatRefresh&&!u&&!this._lock&&n!==a&&this._initted&&(this._lock=r=1,this.render(Pt(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(oe(this,g?t:n,r,e,m))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=l=(f||this._ease)(n/d),this._from&&(this.ratio=l=1-l),n&&!h&&!e&&!s&&(Ee(this,"onStart"),this._tTime!==m))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(g&&Gt(this,t,0,r),Ee(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&Ee(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(g&&!this._onUpdate&&Gt(this,t,0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Zt(this,1),e||g&&!h||!(m||h||u)||(Ee(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,a,o=t.ratio,u=e<0||!e&&(!t._start&&ue(t)&&(t._initted||!le(t))||(t._ts<0||t._dp._ts<0)&&!le(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=me(0,t._tDur,e),s=te(c,l),t._yoyo&&1&s&&(u=1-u),s!==te(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||w||n||t._zTime===F||!e&&t._zTime){if(!t._initted&&oe(t,e,n,r,c))return;for(a=t._zTime,t._zTime=e||(r?F:0),r||(r=e&&!a),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Gt(t,e,0,!0),t._onUpdate&&!r&&Ee(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Ee(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Zt(t,1),r||w||(Ee(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){L||Qe.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||fr(this,s),function(t,e,r,n,i,s,a,o){var u,l,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((u=c[f][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return or=1,t.vars[e]="+=0",fr(t,a),or=0,o?mt(e+" not eligible for reset"):1;h.push(u)}for(f=h.length;f--;)(u=(l=h[f])._pt||l).s=!n&&0!==n||i?u.s+(n||0)+s*u.c:n,u.c=r-u.s,l.e&&(l.e=At(r)+_e(l.e)),l.b&&(l.b=u.s+_e(l.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(ne(this,0),this.parent||Wt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Le(this):this.scrollTrigger&&this.scrollTrigger.kill(!!w),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ar&&!0!==ar.vars.overwrite)._first||Le(this),this.parent&&r!==this.timeline.totalDuration()&&ce(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,a,o,u,l,c=this._targets,f=t?be(t):c,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(c,f))return"all"===e&&(this._pt=0),Le(this);for(n=this._op=this._op||[],"all"!==e&&(Z(e)&&(o={},Nt(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var r,n,i,s,a=t[0]?Et(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(n in r=Bt({},e),o)if(n in r)for(i=(s=o[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(c,e)),l=c.length;l--;)if(~f.indexOf(c[l]))for(o in i=h[l],"all"===e?(n[l]=e,a=i,s={}):(s=n[l]=n[l]||{},a=e),a)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||qt(this,u,"_pt"),delete i[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&Le(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return de(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return de(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return k.killTweensOf(t,e,r)},e}(ir);Ft(mr.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Nt("staggerTo,staggerFrom,staggerFromTo",(function(t){mr[t]=function(){var e=new sr,r=ve.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var _r=function(t,e,r){return t[e]=r},vr=function(t,e,r){return t[e](r)},yr=function(t,e,r,n){return t[e](n.fp,r)},br=function(t,e,r){return t.setAttribute(e,r)},xr=function(t,e){return V(t[e])?vr:J(t[e])&&t.setAttribute?br:_r},Mr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},wr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Tr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},kr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Dr=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},Or=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?qt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Sr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},Cr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},zr=function(){function t(t,e,r,n,i,s,a,o,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||Mr,this.d=a||this,this.set=o||_r,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Sr,this.m=t,this.mt=r,this.tween=e},t}();Nt(Ct+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Mt[t]=1})),ht.TweenMax=ht.TweenLite=mr,ht.TimelineLite=ht.TimelineMax=sr,k=new sr({sortChildren:!1,defaults:Y,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),R.stringFilter=Be;var Er=[],Lr={},Nr=[],Ar=0,Pr=0,jr=function(t){return(Lr[t]||Nr).map((function(t){return t()}))},$r=function(){var t=Date.now(),e=[];t-Ar>2&&(jr("matchMediaInit"),Er.forEach((function(t){var r,n,i,s,a=t.queries,o=t.conditions;for(n in a)(r=D.matchMedia(a[n]).matches)&&(i=1),r!==o[n]&&(o[n]=r,s=1);s&&(t.revert(),i&&e.push(t))})),jr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),Ar=t,jr("matchMedia"))},Ir=function(){function t(t,e){this.selector=e&&xe(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Pr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){V(t)&&(r=e,e=t,t=V);var n=this,i=function(){var t,i=T,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=xe(r)),T=n,t=e.apply(n,arguments),V(t)&&n._r.push(t),T=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===V?i(n,(function(t){return n.add(null,t)})):t?n[t]=i:i},e.ignore=function(t){var e=T;T=null,t(this),T=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof mr&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=r.data.length;i--;)(e=r.data[i])instanceof sr?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof mr)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=Er.length;n--;)Er[n].id===this.id&&Er.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Rr=function(){function t(t){this.contexts=[],this.scope=t,T&&T.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){K(t)||(t={matches:t});var n,i,s,a=new Ir(0,r||this.scope),o=a.conditions={};for(i in T&&!a.selector&&(a.selector=T.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===i?s=1:(n=D.matchMedia(t[i]))&&(Er.indexOf(a)<0&&Er.push(a),(o[i]=n.matches)&&(s=1),n.addListener?n.addListener($r):n.addEventListener("change",$r));return s&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Yr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return Ae(t)}))},timeline:function(t){return new sr(t)},getTweensOf:function(t,e){return k.getTweensOf(t,e)},getProperty:function(t,e,r,n){Z(t)&&(t=be(t)[0]);var i=Et(t||{}).get,s=r?Ut:Yt;return"native"===r&&(r=""),t?e?s((kt[e]&&kt[e].get||i)(t,e,r,n)):function(e,r,n){return s((kt[e]&&kt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=be(t)).length>1){var n=t.map((function(t){return Br.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=kt[e],a=Et(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var n=new s;E._pt=0,n.init(t,r?e+r:e,E,0,[t]),n.render(1,n),E._pt&&kr(1,E)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var n,i=Br.to(t,Ft(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return k.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Je(t.ease,Y.ease)),Qt(Y,t||{})},config:function(t){return Qt(R,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!kt[t]&&!ht[t]&&mt(e+" effect requires "+t+" plugin.")})),Dt[e]=function(t,e,n){return r(be(t),Ft(e||{},i),n)},s&&(sr.prototype[e]=function(t,r,n){return this.add(Dt[e](t,K(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Xe[t]=Je(e)},parseEase:function(t,e){return arguments.length?Je(t,e):Xe},getById:function(t){return k.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new sr(t);for(i.smoothChildTiming=tt(t.smoothChildTiming),k.remove(i),i._dp=0,i._time=i._tTime=k._time,r=k._first;r;)n=r._next,!e&&!r._dur&&r instanceof mr&&r.vars.onComplete===r._targets[0]||se(i,r,r._start-r._delay),r=n;return se(k,i,0),i},context:function(t,e){return t?new Ir(t,e):T},matchMedia:function(t){return new Rr(t)},matchMediaRefresh:function(){return Er.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||$r()},addEventListener:function(t,e){var r=Lr[t]||(Lr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Lr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return it(e)?Oe(e,t(0,e.length),r):ge(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,s=2*i;return it(e)?Oe(e,t(0,e.length-1),r):ge(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:we,random:De,snap:ke,normalize:function(t,e,r){return Ce(t,e,0,1,r)},getUnit:_e,clamp:function(t,e,r){return ge(r,(function(r){return me(t,e,r)}))},splitColor:Ie,toArray:be,selector:xe,mapRange:Ce,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||_e(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var a,o,u,l,c,f=Z(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(it(e)&&!it(r)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,s=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},n=r}else i||(e=Bt(it(e)?[]:{},e));if(!u){for(a in r)lr.call(h,e,a,"get",r[a]);s=function(t){return kr(t,h)||(f?e.p:e)}}}return ge(n,s)},shuffle:Me},install:dt,effects:Dt,ticker:Qe,updateRoot:sr.updateRoot,plugins:kt,globalTimeline:k,core:{PropTween:zr,globals:_t,Tween:mr,Timeline:sr,Animation:ir,getCache:Et,_removeLinkedListItem:qt,reverting:function(){return w},context:function(t){return t&&T&&(T.data.push(t),t._ctx=T),T},suppressOverwrites:function(t){return M=t}}};Nt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Yr[t]=mr[t]})),Qe.add(sr.updateRoot),E=Yr.to({},{duration:0});var Ur=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Fr=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(Z(r)&&(n={},Nt(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Ur(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Br=Yr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,a,o;for(s in this.tween=r,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],n,i,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)w?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Fr("roundProps",Te),Fr("modifiers"),Fr("snap",ke))||Yr;mr.version=sr.version=Br.version="3.12.7",C=1,et()&&He(),Xe.Power0,Xe.Power1,Xe.Power2,Xe.Power3,Xe.Power4,Xe.Linear,Xe.Quad,Xe.Cubic,Xe.Quart,Xe.Quint,Xe.Strong,Xe.Elastic,Xe.Back,Xe.SteppedEase,Xe.Bounce,Xe.Sine,Xe.Expo,Xe.Circ;var Qr,Hr,Xr,Wr,qr,Zr,Vr,Gr,Jr={},Kr=180/Math.PI,tn=Math.PI/180,en=Math.atan2,rn=/([A-Z])/g,nn=/(left|right|width|margin|padding|x)/i,sn=/[\s,\(]\S/,an={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},on=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},un=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ln=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},cn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},fn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},hn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},pn=function(t,e,r){return t.style[e]=r},dn=function(t,e,r){return t.style.setProperty(e,r)},gn=function(t,e,r){return t._gsap[e]=r},mn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},_n=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},vn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},yn="transform",bn=yn+"Origin",xn=function t(e,r){var n=this,i=this.target,s=i.style,a=i._gsap;if(e in Jr&&s){if(this.tfm=this.tfm||{},"transform"===e)return an.transform.split(",").forEach((function(e){return t.call(n,e,r)}));if(~(e=an[e]||e).indexOf(",")?e.split(",").forEach((function(t){return n.tfm[t]=Rn(i,t)})):this.tfm[e]=a.x?a[e]:Rn(i,e),e===bn&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(yn)>=0)return;a.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(bn,r,"")),e=yn}(s||r)&&this.props.push(e,r,s[e])},Mn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},wn=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(rn,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Vr())&&t.isStart||i[yn]||(Mn(i),s.zOrigin&&i[bn]&&(i[bn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Tn=function(t,e){var r={target:t,props:[],revert:wn,save:xn};return t._gsap||Br.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return r.save(t)})),r},kn=function(t,e){var r=Hr.createElementNS?Hr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Hr.createElement(t);return r&&r.style?r:Hr.createElement(t)},Dn=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(rn,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,Sn(r)||r,1)||""},On="O,Moz,ms,Ms,Webkit".split(","),Sn=function(t,e,r){var n=(e||qr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(On[i]+t in n););return i<0?null:(3===i?"ms":i>=0?On[i]:"")+t},Cn=function(){"undefined"!=typeof window&&window.document&&(Qr=window,Hr=Qr.document,Xr=Hr.documentElement,qr=kn("div")||{style:{}},kn("div"),yn=Sn(yn),bn=yn+"Origin",qr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Gr=!!Sn("perspective"),Vr=Br.core.reverting,Wr=1)},zn=function(t){var e,r=t.ownerSVGElement,n=kn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),Xr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),Xr.removeChild(n),e},En=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ln=function(t){var e,r;try{e=t.getBBox()}catch(n){e=zn(t),r=1}return e&&(e.width||e.height)||r||(e=zn(t)),!e||e.width||e.x||e.y?e:{x:+En(t,["x","cx","x1"])||0,y:+En(t,["y","cy","y1"])||0,width:0,height:0}},Nn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Ln(t))},An=function(t,e){if(e){var r,n=t.style;e in Jr&&e!==bn&&(e=yn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(rn,"-$1").toLowerCase())):n.removeAttribute(e)}},Pn=function(t,e,r,n,i,s){var a=new zr(t._pt,e,r,0,1,s?hn:fn);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},jn={deg:1,rad:1,turn:1},$n={grid:1,flex:1},In=function t(e,r,n,i){var s,a,o,u,l=parseFloat(n)||0,c=(n+"").trim().substr((l+"").length)||"px",f=qr.style,h=nn.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),g=100,m="px"===i,_="%"===i;if(i===c||!l||jn[i]||jn[c])return l;if("px"!==c&&!m&&(l=t(e,r,n,"px")),u=e.getCTM&&Nn(e),(_||"%"===c)&&(Jr[r]||~r.indexOf("adius")))return s=u?e.getBBox()[h?"width":"height"]:e[d],At(_?l/s*g:l/100*s);if(f[h?"width":"height"]=g+(m?c:i),a="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,u&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==Hr&&a.appendChild||(a=Hr.body),(o=a._gsap)&&_&&o.width&&h&&o.time===Qe.time&&!o.uncache)return At(l/o.width*g);if(!_||"height"!==r&&"width"!==r)(_||"%"===c)&&!$n[Dn(a,"display")]&&(f.position=Dn(e,"position")),a===e&&(f.position="static"),a.appendChild(qr),s=qr[d],a.removeChild(qr),f.position="absolute";else{var v=e.style[r];e.style[r]=g+i,s=e[d],v?e.style[r]=v:An(e,r)}return h&&_&&((o=Et(a)).time=Qe.time,o.width=a[d]),At(m?s*l/g:s&&l?g/s*l:0)},Rn=function(t,e,r,n){var i;return Wr||Cn(),e in an&&"transform"!==e&&~(e=an[e]).indexOf(",")&&(e=e.split(",")[0]),Jr[e]&&"transform"!==e?(i=Vn(t,n),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Gn(Dn(t,bn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Bn[e]&&Bn[e](t,e,r)||Dn(t,e)||Lt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?In(t,e,i,r)+r:i},Yn=function(t,e,r,n){if(!r||"none"===r){var i=Sn(e,t,1),s=i&&Dn(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=Dn(t,"borderTopColor"))}var a,o,u,l,c,f,h,p,d,g,m,_=new zr(this._pt,t.style,e,0,1,Tr),v=0,y=0;if(_.b=r,_.e=n,r+="","auto"==(n+="")&&(f=t.style[e],t.style[e]=n,n=Dn(t,e)||n,f?t.style[e]=f:An(t,e)),Be(a=[r,n]),n=a[1],u=(r=a[0]).match(ot)||[],(n.match(ot)||[]).length){for(;o=ot.exec(n);)h=o[0],d=n.substring(v,o.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=u[y++]||"")&&(l=parseFloat(f)||0,m=f.substr((l+"").length),"="===h.charAt(1)&&(h=jt(l,h)+m),p=parseFloat(h),g=h.substr((p+"").length),v=ot.lastIndex-g.length,g||(g=g||R.units[e]||m,v===n.length&&(n+=g,_.e+=g)),m!==g&&(l=In(t,e,f,g)||0),_._pt={_next:_._pt,p:d||1===y?d:",",s:l,c:p-l,m:c&&c<4||"zIndex"===e?Math.round:0});_.c=v<n.length?n.substring(v,n.length):""}else _.r="display"===e&&"none"===n?hn:fn;return lt.test(n)&&(_.e=0),this._pt=_,_},Un={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Fn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,a=s.style,o=e.u,u=s._gsap;if("all"===o||!0===o)a.cssText="",n=1;else for(i=(o=o.split(",")).length;--i>-1;)r=o[i],Jr[r]&&(n=1,r="transformOrigin"===r?bn:yn),An(s,r);n&&(An(s,yn),u&&(u.svg&&s.removeAttribute("transform"),a.scale=a.rotate=a.translate="none",Vn(s,1),u.uncache=1,Mn(a)))}},Bn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new zr(t._pt,e,r,0,0,Fn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Qn=[1,0,0,1,0,0],Hn={},Xn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Wn=function(t){var e=Dn(t,yn);return Xn(e)?Qn:e.substr(7).match(at).map(At)},qn=function(t,e){var r,n,i,s,a=t._gsap||Et(t),o=t.style,u=Wn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Qn:u:(u!==Qn||t.offsetParent||t===Xr||a.svg||(i=o.display,o.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,Xr.appendChild(t)),u=Wn(t),i?o.display=i:An(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):Xr.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Zn=function(t,e,r,n,i,s){var a,o,u,l=t._gsap,c=i||qn(t,!0),f=l.xOrigin||0,h=l.yOrigin||0,p=l.xOffset||0,d=l.yOffset||0,g=c[0],m=c[1],_=c[2],v=c[3],y=c[4],b=c[5],x=e.split(" "),M=parseFloat(x[0])||0,w=parseFloat(x[1])||0;r?c!==Qn&&(o=g*v-m*_)&&(u=M*(-m/o)+w*(g/o)-(g*b-m*y)/o,M=M*(v/o)+w*(-_/o)+(_*b-v*y)/o,w=u):(M=(a=Ln(t)).x+(~x[0].indexOf("%")?M/100*a.width:M),w=a.y+(~(x[1]||x[0]).indexOf("%")?w/100*a.height:w)),n||!1!==n&&l.smooth?(y=M-f,b=w-h,l.xOffset=p+(y*g+b*_)-y,l.yOffset=d+(y*m+b*v)-b):l.xOffset=l.yOffset=0,l.xOrigin=M,l.yOrigin=w,l.smooth=!!n,l.origin=e,l.originIsAbsolute=!!r,t.style[bn]="0px 0px",s&&(Pn(s,l,"xOrigin",f,M),Pn(s,l,"yOrigin",h,w),Pn(s,l,"xOffset",p,l.xOffset),Pn(s,l,"yOffset",d,l.yOffset)),t.setAttribute("data-svg-origin",M+" "+w)},Vn=function(t,e){var r=t._gsap||new nr(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,a,o,u,l,c,f,h,p,d,g,m,_,v,y,b,x,M,w,T,k,D,O,S,C,z,E,L,N,A,P=t.style,j=r.scaleX<0,$="px",I="deg",Y=getComputedStyle(t),U=Dn(t,bn)||"0";return n=i=s=u=l=c=f=h=p=0,a=o=1,r.svg=!(!t.getCTM||!Nn(t)),Y.translate&&("none"===Y.translate&&"none"===Y.scale&&"none"===Y.rotate||(P[yn]=("none"!==Y.translate?"translate3d("+(Y.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==Y.rotate?"rotate("+Y.rotate+") ":"")+("none"!==Y.scale?"scale("+Y.scale.split(" ").join(",")+") ":"")+("none"!==Y[yn]?Y[yn]:"")),P.scale=P.rotate=P.translate="none"),m=qn(t,r.svg),r.svg&&(r.uncache?(O=t.getBBox(),U=r.xOrigin-O.x+"px "+(r.yOrigin-O.y)+"px",D=""):D=!e&&t.getAttribute("data-svg-origin"),Zn(t,D||U,!!D||r.originIsAbsolute,!1!==r.smooth,m)),d=r.xOrigin||0,g=r.yOrigin||0,m!==Qn&&(b=m[0],x=m[1],M=m[2],w=m[3],n=T=m[4],i=k=m[5],6===m.length?(a=Math.sqrt(b*b+x*x),o=Math.sqrt(w*w+M*M),u=b||x?en(x,b)*Kr:0,(f=M||w?en(M,w)*Kr+u:0)&&(o*=Math.abs(Math.cos(f*tn))),r.svg&&(n-=d-(d*b+g*M),i-=g-(d*x+g*w))):(A=m[6],L=m[7],C=m[8],z=m[9],E=m[10],N=m[11],n=m[12],i=m[13],s=m[14],l=(_=en(A,E))*Kr,_&&(D=T*(v=Math.cos(-_))+C*(y=Math.sin(-_)),O=k*v+z*y,S=A*v+E*y,C=T*-y+C*v,z=k*-y+z*v,E=A*-y+E*v,N=L*-y+N*v,T=D,k=O,A=S),c=(_=en(-M,E))*Kr,_&&(v=Math.cos(-_),N=w*(y=Math.sin(-_))+N*v,b=D=b*v-C*y,x=O=x*v-z*y,M=S=M*v-E*y),u=(_=en(x,b))*Kr,_&&(D=b*(v=Math.cos(_))+x*(y=Math.sin(_)),O=T*v+k*y,x=x*v-b*y,k=k*v-T*y,b=D,T=O),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),a=At(Math.sqrt(b*b+x*x+M*M)),o=At(Math.sqrt(k*k+A*A)),_=en(T,k),f=Math.abs(_)>2e-4?_*Kr:0,p=N?1/(N<0?-N:N):0),r.svg&&(D=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Xn(Dn(t,yn)),D&&t.setAttribute("transform",D))),Math.abs(f)>90&&Math.abs(f)<270&&(j?(a*=-1,f+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+$,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+$,r.z=s+$,r.scaleX=At(a),r.scaleY=At(o),r.rotation=At(u)+I,r.rotationX=At(l)+I,r.rotationY=At(c)+I,r.skewX=f+I,r.skewY=h+I,r.transformPerspective=p+$,(r.zOrigin=parseFloat(U.split(" ")[2])||!e&&r.zOrigin||0)&&(P[bn]=Gn(U)),r.xOffset=r.yOffset=0,r.force3D=R.force3D,r.renderTransform=r.svg?ii:Gr?ni:Kn,r.uncache=0,r},Gn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Jn=function(t,e,r){var n=_e(e);return At(parseFloat(e)+parseFloat(In(t,"x",r+"px",n)))+n},Kn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ni(t,e)},ti="0deg",ei="0px",ri=") ",ni=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,a=r.y,o=r.z,u=r.rotation,l=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,g=r.transformPerspective,m=r.force3D,_=r.target,v=r.zOrigin,y="",b="auto"===m&&t&&1!==t||!0===m;if(v&&(c!==ti||l!==ti)){var x,M=parseFloat(l)*tn,w=Math.sin(M),T=Math.cos(M);M=parseFloat(c)*tn,x=Math.cos(M),s=Jn(_,s,w*x*-v),a=Jn(_,a,-Math.sin(M)*-v),o=Jn(_,o,T*x*-v+v)}g!==ei&&(y+="perspective("+g+ri),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==ei||a!==ei||o!==ei)&&(y+=o!==ei||b?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+ri),u!==ti&&(y+="rotate("+u+ri),l!==ti&&(y+="rotateY("+l+ri),c!==ti&&(y+="rotateX("+c+ri),f===ti&&h===ti||(y+="skew("+f+", "+h+ri),1===p&&1===d||(y+="scale("+p+", "+d+ri),_.style[yn]=y||"translate(0, 0)"},ii=function(t,e){var r,n,i,s,a,o=e||this,u=o.xPercent,l=o.yPercent,c=o.x,f=o.y,h=o.rotation,p=o.skewX,d=o.skewY,g=o.scaleX,m=o.scaleY,_=o.target,v=o.xOrigin,y=o.yOrigin,b=o.xOffset,x=o.yOffset,M=o.forceCSS,w=parseFloat(c),T=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=tn,p*=tn,r=Math.cos(h)*g,n=Math.sin(h)*g,i=Math.sin(h-p)*-m,s=Math.cos(h-p)*m,p&&(d*=tn,a=Math.tan(p-d),i*=a=Math.sqrt(1+a*a),s*=a,d&&(a=Math.tan(d),r*=a=Math.sqrt(1+a*a),n*=a)),r=At(r),n=At(n),i=At(i),s=At(s)):(r=g,s=m,n=i=0),(w&&!~(c+"").indexOf("px")||T&&!~(f+"").indexOf("px"))&&(w=In(_,"x",c,"px"),T=In(_,"y",f,"px")),(v||y||b||x)&&(w=At(w+v-(v*r+y*i)+b),T=At(T+y-(v*n+y*s)+x)),(u||l)&&(a=_.getBBox(),w=At(w+u/100*a.width),T=At(T+l/100*a.height)),a="matrix("+r+","+n+","+i+","+s+","+w+","+T+")",_.setAttribute("transform",a),M&&(_.style[yn]=a)},si=function(t,e,r,n,i){var s,a,o=360,u=Z(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Kr:1)-n,c=n+l+"deg";return u&&("short"===(s=i.split("_")[1])&&(l%=o)!=l%180&&(l+=l<0?o:-360),"cw"===s&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===s&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=a=new zr(t._pt,e,r,n,l,un),a.e=c,a.u="deg",t._props.push(r),a},ai=function(t,e){for(var r in e)t[r]=e[r];return t},oi=function(t,e,r){var n,i,s,a,o,u,l,c=ai({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[yn]=e,n=Vn(r,1),An(r,yn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[yn],f[yn]=e,n=Vn(r,1),f[yn]=s),Jr)(s=c[i])!==(a=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=_e(s)!==(l=_e(a))?In(r,i,s,l):parseFloat(s),u=parseFloat(a),t._pt=new zr(t._pt,n,i,o,u-o,on),t._pt.u=l||0,t._props.push(i));ai(n,c)};Nt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",s="Left",a=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map((function(r){return e<2?t+r:"border"+r+t}));Bn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,o;if(arguments.length<4)return s=a.map((function(e){return Rn(t,e,r)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(n+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,i)}}));var ui,li,ci={name:"css",register:Cn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,a,o,u,l,c,f,h,p,d,g,m,_,v,y,b,x,M,w,T,k=this._props,D=t.style,O=r.vars.startAt;for(f in Wr||Cn(),this.styles=this.styles||Tn(t),b=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(a=e[f],!kt[f]||!cr(f,e,r,n,t,i)))if(l=typeof a,c=Bn[f],"function"===l&&(l=typeof(a=a.call(r,n,t,i))),"string"===l&&~a.indexOf("random(")&&(a=Se(a)),c)c(this,t,f,a,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),a+="",Ue.lastIndex=0,Ue.test(s)||(h=_e(s),p=_e(a)),p?h!==p&&(s=In(t,f,s,p)+p):h&&(a+=h),this.add(D,"setProperty",s,a,n,i,0,0,f),k.push(f),b.push(f,0,D[f]);else if("undefined"!==l){if(O&&f in O?(s="function"==typeof O[f]?O[f].call(r,n,t,i):O[f],Z(s)&&~s.indexOf("random(")&&(s=Se(s)),_e(s+"")||"auto"===s||(s+=R.units[f]||_e(Rn(t,f))||""),"="===(s+"").charAt(1)&&(s=Rn(t,f))):s=Rn(t,f),u=parseFloat(s),(d="string"===l&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),f in an&&("autoAlpha"===f&&(1===u&&"hidden"===Rn(t,"visibility")&&o&&(u=0),b.push("visibility",0,D.visibility),Pn(this,D,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==f&&"transform"!==f&&~(f=an[f]).indexOf(",")&&(f=f.split(",")[0])),g=f in Jr)if(this.styles.save(f),m||((_=t._gsap).renderTransform&&!e.parseTransform||Vn(t,e.parseTransform),v=!1!==e.smoothOrigin&&_.smooth,(m=this._pt=new zr(this._pt,D,yn,0,1,_.renderTransform,_,0,-1)).dep=1),"scale"===f)this._pt=new zr(this._pt,_,"scaleY",_.scaleY,(d?jt(_.scaleY,d+o):o)-_.scaleY||0,on),this._pt.u=0,k.push("scaleY",f),f+="X";else{if("transformOrigin"===f){b.push(bn,0,D[bn]),M=void 0,w=void 0,T=void 0,w=(M=(x=a).split(" "))[0],T=M[1]||"50%","top"!==w&&"bottom"!==w&&"left"!==T&&"right"!==T||(x=w,w=T,T=x),M[0]=Un[w]||w,M[1]=Un[T]||T,a=M.join(" "),_.svg?Zn(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==_.zOrigin&&Pn(this,_,"zOrigin",_.zOrigin,p),Pn(this,D,f,Gn(s),Gn(a)));continue}if("svgOrigin"===f){Zn(t,a,1,v,0,this);continue}if(f in Hn){si(this,_,f,u,d?jt(u,d+a):a);continue}if("smoothOrigin"===f){Pn(this,_,"smooth",_.smooth,a);continue}if("force3D"===f){_[f]=a;continue}if("transform"===f){oi(this,a,t);continue}}else f in D||(f=Sn(f)||f);if(g||(o||0===o)&&(u||0===u)&&!sn.test(a)&&f in D)o||(o=0),(h=(s+"").substr((u+"").length))!==(p=_e(a)||(f in R.units?R.units[f]:h))&&(u=In(t,f,s,p)),this._pt=new zr(this._pt,g?_:D,f,u,(d?jt(u,d+o):o)-u,g||"px"!==p&&"zIndex"!==f||!1===e.autoRound?on:cn),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=ln);else if(f in D)Yn.call(this,t,f,s,d?d+a:a);else if(f in t)this.add(t,f,s||t[f],d?d+a:a,n,i);else if("parseTransform"!==f){gt(f,a);continue}g||(f in D?b.push(f,0,D[f]):"function"==typeof t[f]?b.push(f,2,t[f]()):b.push(f,1,s||t[f])),k.push(f)}y&&Cr(this)},render:function(t,e){if(e.tween._time||!Vr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Rn,aliases:an,getSetter:function(t,e,r){var n=an[e];return n&&n.indexOf(",")<0&&(e=n),e in Jr&&e!==bn&&(t._gsap.x||Rn(t,"x"))?r&&Zr===r?"scale"===e?mn:gn:(Zr=r||{})&&("scale"===e?_n:vn):t.style&&!J(t.style[e])?pn:~e.indexOf("-")?dn:xr(t,e)},core:{_removeProperty:An,_getMatrix:qn}};Br.utils.checkPrefix=Sn,Br.core.getStyleSaver=Tn,li=Nt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(ui="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Jr[t]=1})),Nt(ui,(function(t){R.units[t]="deg",Hn[t]=1})),an[li[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+ui,Nt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");an[e[1]]=li[e[0]]})),Nt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){R.units[t]="px"})),Br.registerPlugin(ci);var fi=Br.registerPlugin(ci)||Br;function hi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}fi.core.Tween;var pi,di,gi,mi,_i,vi,yi,bi,xi,Mi,wi,Ti,ki,Di=function(){return pi||"undefined"!=typeof window&&(pi=window.gsap)&&pi.registerPlugin&&pi},Oi=1,Si=[],Ci=[],zi=[],Ei=Date.now,Li=function(t,e){return e},Ni=function(t,e){return~zi.indexOf(t)&&zi[zi.indexOf(t)+1][e]},Ai=function(t){return!!~Mi.indexOf(t)},Pi=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},ji=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},$i="scrollLeft",Ii="scrollTop",Ri=function(){return wi&&wi.isPressed||Ci.cache++},Yi=function(t,e){var r=function r(n){if(n||0===n){Oi&&(gi.history.scrollRestoration="manual");var i=wi&&wi.isPressed;n=r.v=Math.round(n)||(wi&&wi.iOS?1:0),t(n),r.cacheID=Ci.cache,i&&Li("ss",n)}else(e||Ci.cache!==r.cacheID||Li("ref"))&&(r.cacheID=Ci.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Ui={s:$i,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Yi((function(t){return arguments.length?gi.scrollTo(t,Fi.sc()):gi.pageXOffset||mi[$i]||_i[$i]||vi[$i]||0}))},Fi={s:Ii,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Ui,sc:Yi((function(t){return arguments.length?gi.scrollTo(Ui.sc(),t):gi.pageYOffset||mi[Ii]||_i[Ii]||vi[Ii]||0}))},Bi=function(t,e){return(e&&e._ctx&&e._ctx.selector||pi.utils.toArray)(t)[0]||("string"==typeof t&&!1!==pi.config().nullTargetWarn?console.warn("Element not found:",t):null)},Qi=function(t,e){var r=e.s,n=e.sc;Ai(t)&&(t=mi.scrollingElement||_i);var i=Ci.indexOf(t),s=n===Fi.sc?1:2;!~i&&(i=Ci.push(t)-1),Ci[i+s]||Pi(t,"scroll",Ri);var a=Ci[i+s],o=a||(Ci[i+s]=Yi(Ni(t,r),!0)||(Ai(t)?n:Yi((function(e){return arguments.length?t[r]=e:t[r]}))));return o.target=t,a||(o.smooth="smooth"===pi.getProperty(t,"scrollBehavior")),o},Hi=function(t,e,r){var n=t,i=t,s=Ei(),a=s,o=e||50,u=Math.max(500,3*o),l=function(t,e){var u=Ei();e||u-s>o?(i=n,n=t,a=s,s=u):r?n+=t:n=i+(t-i)/(u-a)*(s-a)};return{update:l,reset:function(){i=n=r?0:n,a=s=0},getVelocity:function(t){var e=a,o=i,c=Ei();return(t||0===t)&&t!==n&&l(t),s===a||c-a>u?0:(n+(r?o:-o))/((r?c:s)-e)*1e3}}},Xi=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Wi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},qi=function(){var t,e,r,n;(xi=pi.core.globals().ScrollTrigger)&&xi.core&&(t=xi.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Ci),n.push.apply(n,zi),Ci=r,zi=n,Li=function(t,r){return e[t](r)})},Zi=function(t){return pi=t||Di(),!di&&pi&&"undefined"!=typeof document&&document.body&&(gi=window,mi=document,_i=mi.documentElement,vi=mi.body,Mi=[gi,mi,_i,vi],pi.utils.clamp,ki=pi.core.context||function(){},bi="onpointerenter"in vi?"pointer":"mouse",yi=Vi.isTouch=gi.matchMedia&&gi.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in gi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Ti=Vi.eventTypes=("ontouchstart"in _i?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in _i?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Oi=0}),500),qi(),di=1),di};Ui.op=Fi,Ci.cache=0;var Vi=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){di||Zi(pi)||console.warn("Please gsap.registerPlugin(Observer)"),xi||qi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,u=t.onStop,l=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,p=t.onDragStart,d=t.onDragEnd,g=t.onDrag,m=t.onPress,_=t.onRelease,v=t.onRight,y=t.onLeft,b=t.onUp,x=t.onDown,M=t.onChangeX,w=t.onChangeY,T=t.onChange,k=t.onToggleX,D=t.onToggleY,O=t.onHover,S=t.onHoverEnd,C=t.onMove,z=t.ignoreCheck,E=t.isNormalizer,L=t.onGestureStart,N=t.onGestureEnd,A=t.onWheel,P=t.onEnable,j=t.onDisable,$=t.onClick,I=t.scrollSpeed,R=t.capture,Y=t.allowClicks,U=t.lockAxis,F=t.onLockAxis;this.target=i=Bi(i)||_i,this.vars=t,c&&(c=pi.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,I=I||1,n=n||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(gi.getComputedStyle(vi).lineHeight)||22);var B,Q,H,X,W,q,Z,V=this,G=0,J=0,K=t.passive||!o&&!1!==t.passive,tt=Qi(i,Ui),et=Qi(i,Fi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===Ti[0],st=Ai(i),at=i.ownerDocument||mi,ot=[0,0,0],ut=[0,0,0],lt=0,ct=function(){return lt=Ei()},ft=function(t,e){return(V.event=t)&&c&&~c.indexOf(t.target)||e&&it&&"touch"!==t.pointerType||z&&z(t,e)},ht=function(){var t=V.deltaX=Wi(ot),r=V.deltaY=Wi(ut),n=Math.abs(t)>=e,i=Math.abs(r)>=e;T&&(n||i)&&T(V,t,r,ot,ut),n&&(v&&V.deltaX>0&&v(V),y&&V.deltaX<0&&y(V),M&&M(V),k&&V.deltaX<0!=G<0&&k(V),G=V.deltaX,ot[0]=ot[1]=ot[2]=0),i&&(x&&V.deltaY>0&&x(V),b&&V.deltaY<0&&b(V),w&&w(V),D&&V.deltaY<0!=J<0&&D(V),J=V.deltaY,ut[0]=ut[1]=ut[2]=0),(X||H)&&(C&&C(V),H&&(p&&1===H&&p(V),g&&g(V),H=0),X=!1),q&&!(q=!1)&&F&&F(V),W&&(A(V),W=!1),B=0},pt=function(t,e,r){ot[r]+=t,ut[r]+=e,V._vx.update(t),V._vy.update(e),a?B||(B=requestAnimationFrame(ht)):ht()},dt=function(t,e){U&&!Z&&(V.axis=Z=Math.abs(t)>Math.abs(e)?"x":"y",q=!0),"y"!==Z&&(ot[2]+=t,V._vx.update(t,!0)),"x"!==Z&&(ut[2]+=e,V._vy.update(e,!0)),a?B||(B=requestAnimationFrame(ht)):ht()},gt=function(t){if(!ft(t,1)){var e=(t=Xi(t,o)).clientX,n=t.clientY,i=e-V.x,s=n-V.y,a=V.isDragging;V.x=e,V.y=n,(a||(i||s)&&(Math.abs(V.startX-e)>=r||Math.abs(V.startY-n)>=r))&&(H=a?2:1,a||(V.isDragging=!0),dt(i,s))}},mt=V.onPress=function(t){ft(t,1)||t&&t.button||(V.axis=Z=null,Q.pause(),V.isPressed=!0,t=Xi(t),G=J=0,V.startX=V.x=t.clientX,V.startY=V.y=t.clientY,V._vx.reset(),V._vy.reset(),Pi(E?i:at,Ti[1],gt,K,!0),V.deltaX=V.deltaY=0,m&&m(V))},_t=V.onRelease=function(t){if(!ft(t,1)){ji(E?i:at,Ti[1],gt,!0);var e=!isNaN(V.y-V.startY),r=V.isDragging,n=r&&(Math.abs(V.x-V.startX)>3||Math.abs(V.y-V.startY)>3),s=Xi(t);!n&&e&&(V._vx.reset(),V._vy.reset(),o&&Y&&pi.delayedCall(.08,(function(){if(Ei()-lt>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,gi,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),V.isDragging=V.isGesturing=V.isPressed=!1,u&&r&&!E&&Q.restart(!0),H&&ht(),d&&r&&d(V),_&&_(V,n)}},vt=function(t){return t.touches&&t.touches.length>1&&(V.isGesturing=!0)&&L(t,V.isDragging)},yt=function(){return(V.isGesturing=!1)||N(V)},bt=function(t){if(!ft(t)){var e=tt(),r=et();pt((e-rt)*I,(r-nt)*I,1),rt=e,nt=r,u&&Q.restart(!0)}},xt=function(t){if(!ft(t)){t=Xi(t,o),A&&(W=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?gi.innerHeight:1)*f;pt(t.deltaX*e,t.deltaY*e,0),u&&!E&&Q.restart(!0)}},Mt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-V.x,i=r-V.y;V.x=e,V.y=r,X=!0,u&&Q.restart(!0),(n||i)&&dt(n,i)}},wt=function(t){V.event=t,O(V)},Tt=function(t){V.event=t,S(V)},kt=function(t){return ft(t)||Xi(t,o)&&$(V)};Q=V._dc=pi.delayedCall(l||.25,(function(){V._vx.reset(),V._vy.reset(),Q.pause(),u&&u(V)})).pause(),V.deltaX=V.deltaY=0,V._vx=Hi(0,50,!0),V._vy=Hi(0,50,!0),V.scrollX=tt,V.scrollY=et,V.isDragging=V.isGesturing=V.isPressed=!1,ki(this),V.enable=function(t){return V.isEnabled||(Pi(st?at:i,"scroll",Ri),n.indexOf("scroll")>=0&&Pi(st?at:i,"scroll",bt,K,R),n.indexOf("wheel")>=0&&Pi(i,"wheel",xt,K,R),(n.indexOf("touch")>=0&&yi||n.indexOf("pointer")>=0)&&(Pi(i,Ti[0],mt,K,R),Pi(at,Ti[2],_t),Pi(at,Ti[3],_t),Y&&Pi(i,"click",ct,!0,!0),$&&Pi(i,"click",kt),L&&Pi(at,"gesturestart",vt),N&&Pi(at,"gestureend",yt),O&&Pi(i,bi+"enter",wt),S&&Pi(i,bi+"leave",Tt),C&&Pi(i,bi+"move",Mt)),V.isEnabled=!0,V.isDragging=V.isGesturing=V.isPressed=X=H=!1,V._vx.reset(),V._vy.reset(),rt=tt(),nt=et(),t&&t.type&&mt(t),P&&P(V)),V},V.disable=function(){V.isEnabled&&(Si.filter((function(t){return t!==V&&Ai(t.target)})).length||ji(st?at:i,"scroll",Ri),V.isPressed&&(V._vx.reset(),V._vy.reset(),ji(E?i:at,Ti[1],gt,!0)),ji(st?at:i,"scroll",bt,R),ji(i,"wheel",xt,R),ji(i,Ti[0],mt,R),ji(at,Ti[2],_t),ji(at,Ti[3],_t),ji(i,"click",ct,!0),ji(i,"click",kt),ji(at,"gesturestart",vt),ji(at,"gestureend",yt),ji(i,bi+"enter",wt),ji(i,bi+"leave",Tt),ji(i,bi+"move",Mt),V.isEnabled=V.isPressed=V.isDragging=!1,j&&j(V))},V.kill=V.revert=function(){V.disable();var t=Si.indexOf(V);t>=0&&Si.splice(t,1),wi===V&&(wi=0)},Si.push(V),E&&Ai(i)&&(wi=V),V.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&hi(e.prototype,r),t}();Vi.version="3.12.7",Vi.create=function(t){return new Vi(t)},Vi.register=Zi,Vi.getAll=function(){return Si.slice()},Vi.getById=function(t){return Si.filter((function(e){return e.vars.id===t}))[0]},Di()&&pi.registerPlugin(Vi);var Gi,Ji,Ki,ts,es,rs,ns,is,ss,as,os,us,ls,cs,fs,hs,ps,ds,gs,ms,_s,vs,ys,bs,xs,Ms,ws,Ts,ks,Ds,Os,Ss,Cs,zs,Es,Ls,Ns,As,Ps=1,js=Date.now,$s=js(),Is=0,Rs=0,Ys=function(t,e,r){var n=ta(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Us=function(t,e){return!e||ta(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Fs=function t(){return Rs&&requestAnimationFrame(t)},Bs=function(){return cs=1},Qs=function(){return cs=0},Hs=function(t){return t},Xs=function(t){return Math.round(1e5*t)/1e5||0},Ws=function(){return"undefined"!=typeof window},qs=function(){return Gi||Ws()&&(Gi=window.gsap)&&Gi.registerPlugin&&Gi},Zs=function(t){return!!~ns.indexOf(t)},Vs=function(t){return("Height"===t?Os:Ki["inner"+t])||es["client"+t]||rs["client"+t]},Gs=function(t){return Ni(t,"getBoundingClientRect")||(Zs(t)?function(){return co.width=Ki.innerWidth,co.height=Os,co}:function(){return wa(t)})},Js=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=Ni(t,r))?s()-Gs(t)()[i]:Zs(t)?(es[r]||rs[r])-Vs(n):t[r]-t["offset"+n])},Ks=function(t,e){for(var r=0;r<gs.length;r+=3)(!e||~e.indexOf(gs[r+1]))&&t(gs[r],gs[r+1],gs[r+2])},ta=function(t){return"string"==typeof t},ea=function(t){return"function"==typeof t},ra=function(t){return"number"==typeof t},na=function(t){return"object"==typeof t},ia=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},sa=function(t,e){if(t.enabled){var r=t._ctx?t._ctx.add((function(){return e(t)})):e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},aa=Math.abs,oa="left",ua="right",la="bottom",ca="width",fa="height",ha="Right",pa="Left",da="Top",ga="Bottom",ma="padding",_a="margin",va="Width",ya="Height",ba="px",xa=function(t){return Ki.getComputedStyle(t)},Ma=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},wa=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==xa(t)[fs]&&Gi.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return r&&r.progress(0).kill(),n},Ta=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},ka=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Da=function(t){var e=Gi.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},Oa=function(t,e,r,n){return r.split(",").forEach((function(r){return t(e,r,n)}))},Sa=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Ca=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},za=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Ea={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},La={toggleActions:"play",anticipatePin:0},Na={top:0,left:0,center:.5,bottom:1,right:1},Aa=function(t,e){if(ta(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Na?Na[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Pa=function(t,e,r,n,i,s,a,o){var u=i.startColor,l=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=ts.createElement("div"),d=Zs(r)||"fixed"===Ni(r,"pinType"),g=-1!==t.indexOf("scroller"),m=d?rs:r,_=-1!==t.indexOf("start"),v=_?u:l,y="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((g||o)&&d?"fixed;":"absolute;"),(g||o||!d)&&(y+=(n===Fi?ua:la)+":"+(s+parseFloat(f))+"px;"),a&&(y+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=_,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,m.children[0]?m.insertBefore(p,m.children[0]):m.appendChild(p),p._offset=p["offset"+n.op.d2],ja(p,0,n,_),p},ja=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],a=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+va]=1,i["border"+a+va]=0,i[r.p]=e+"px",Gi.set(t,i)},$a=[],Ia={},Ra=function(){return js()-Is>34&&(Es||(Es=requestAnimationFrame(no)))},Ya=function(){(!ys||!ys.isPressed||ys.startX>rs.clientWidth)&&(Ci.cache++,ys?Es||(Es=requestAnimationFrame(no)):no(),Is||Xa("scrollStart"),Is=js())},Ua=function(){Ms=Ki.innerWidth,xs=Ki.innerHeight},Fa=function(t){Ci.cache++,(!0===t||!ls&&!vs&&!ts.fullscreenElement&&!ts.webkitFullscreenElement&&(!bs||Ms!==Ki.innerWidth||Math.abs(Ki.innerHeight-xs)>.25*Ki.innerHeight))&&is.restart(!0)},Ba={},Qa=[],Ha=function t(){return Ca(vo,"scrollEnd",t)||to(!0)},Xa=function(t){return Ba[t]&&Ba[t].map((function(t){return t()}))||Qa},Wa=[],qa=function(t){for(var e=0;e<Wa.length;e+=5)(!t||Wa[e+4]&&Wa[e+4].query===t)&&(Wa[e].style.cssText=Wa[e+1],Wa[e].getBBox&&Wa[e].setAttribute("transform",Wa[e+2]||""),Wa[e+3].uncache=1)},Za=function(t,e){var r;for(hs=0;hs<$a.length;hs++)!(r=$a[hs])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));Ss=!0,e&&qa(e),e||Xa("revert")},Va=function(t,e){Ci.cache++,(e||!Ls)&&Ci.forEach((function(t){return ea(t)&&t.cacheID++&&(t.rec=0)})),ta(t)&&(Ki.history.scrollRestoration=ks=t)},Ga=0,Ja=function(){rs.appendChild(Ds),Os=!ys&&Ds.offsetHeight||Ki.innerHeight,rs.removeChild(Ds)},Ka=function(t){return ss(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))},to=function(t,e){if(es=ts.documentElement,rs=ts.body,ns=[Ki,ts,es,rs],!Is||t||Ss){Ja(),Ls=vo.isRefreshing=!0,Ci.forEach((function(t){return ea(t)&&++t.cacheID&&(t.rec=t())}));var r=Xa("refreshInit");ms&&vo.sort(),e||Za(),Ci.forEach((function(t){ea(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),$a.slice(0).forEach((function(t){return t.refresh()})),Ss=!1,$a.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}})),Cs=1,Ka(!0),$a.forEach((function(t){var e=Js(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)})),Ka(!1),Cs=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),Ci.forEach((function(t){ea(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),Va(ks,1),is.pause(),Ga++,Ls=2,no(2),$a.forEach((function(t){return ea(t.vars.onRefresh)&&t.vars.onRefresh(t)})),Ls=vo.isRefreshing=!1,Xa("refresh")}else Sa(vo,"scrollEnd",Ha)},eo=0,ro=1,no=function(t){if(2===t||!Ls&&!Ss){vo.isUpdating=!0,As&&As.update(0);var e=$a.length,r=js(),n=r-$s>=50,i=e&&$a[0].scroll();if(ro=eo>i?-1:1,Ls||(eo=i),n&&(Is&&!cs&&r-Is>200&&(Is=0,Xa("scrollEnd")),os=$s,$s=r),ro<0){for(hs=e;hs-- >0;)$a[hs]&&$a[hs].update(0,n);ro=1}else for(hs=0;hs<e;hs++)$a[hs]&&$a[hs].update(0,n);vo.isUpdating=!1}Es=0},io=[oa,"top",la,ua,_a+ga,_a+ha,_a+da,_a+pa,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],so=io.concat([ca,fa,"boxSizing","max"+va,"max"+ya,"position",_a,ma,ma+da,ma+ha,ma+ga,ma+pa]),ao=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=io.length,a=e.style,o=t.style;s--;)a[i=io[s]]=r[i];a.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(a.display="inline-block"),o[la]=o[ua]="auto",a.flexBasis=r.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[ca]=Ta(t,Ui)+ba,a[fa]=Ta(t,Fi)+ba,a[ma]=o[_a]=o.top=o[oa]="0",uo(n),o[ca]=o["max"+va]=r[ca],o[fa]=o["max"+ya]=r[fa],o[ma]=r[ma],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},oo=/([A-Z])/g,uo=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||Gi.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(oo,"-$1").toLowerCase())}},lo=function(t){for(var e=so.length,r=t.style,n=[],i=0;i<e;i++)n.push(so[i],r[so[i]]);return n.t=t,n},co={left:0,top:0},fo=function(t,e,r,n,i,s,a,o,u,l,c,f,h,p){ea(t)&&(t=t(o)),ta(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Aa("0"+t.substr(3),r):0));var d,g,m,_=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),ra(t))h&&(t=Gi.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),a&&ja(a,r,n,!0);else{ea(e)&&(e=e(o));var v,y,b,x,M=(t||"0").split(" ");m=Bi(e,o)||rs,(v=wa(m)||{})&&(v.left||v.top)||"none"!==xa(m).display||(x=m.style.display,m.style.display="block",v=wa(m),x?m.style.display=x:m.style.removeProperty("display")),y=Aa(M[0],v[n.d]),b=Aa(M[1]||"0",r),t=v[n.p]-u[n.p]-l+y+i-b,a&&ja(a,b,n,r-b<20||a._isStart&&b>20),r-=r-b}if(p&&(o[p]=t||-.001,t<0&&(t=0)),s){var w=t+r,T=s._isStart;d="scroll"+n.d2,ja(s,w,n,T&&w>20||!T&&(c?Math.max(rs[d],es[d]):s.parentNode[d])<=w+1),c&&(u=wa(a),c&&(s.style[n.op.p]=u[n.op.p]-n.op.m-s._offset+ba))}return h&&m&&(d=wa(m),h.seek(f),g=wa(m),h._caScrollDist=d[n.p]-g[n.p],t=t/h._caScrollDist*f),h&&h.seek(_),h?t:Math.round(t)},ho=/(webkit|moz|length|cssText|inset)/i,po=function(t,e,r,n){if(t.parentNode!==e){var i,s,a=t.style;if(e===rs){for(i in t._stOrig=a.cssText,s=xa(t))+i||ho.test(i)||!s[i]||"string"!=typeof a[i]||"0"===i||(a[i]=s[i]);a.top=r,a.left=n}else a.cssText=t._stOrig;Gi.core.getCache(t).uncache=1,e.appendChild(t)}},go=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},mo=function(t,e,r){var n={};n[e.p]="+="+r,Gi.set(t,n)},_o=function(t,e){var r=Qi(t,e),n="_scroll"+e.p2,i=function e(i,s,a,o,u){var l=e.tween,c=s.onComplete,f={};a=a||r();var h=go(r,a,(function(){l.kill(),e.tween=0}));return u=o&&u||0,o=o||i-a,l&&l.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(a+o*l.ratio+u*l.ratio*l.ratio)},s.onUpdate=function(){Ci.cache++,e.tween&&no()},s.onComplete=function(){e.tween=0,c&&c.call(l)},l=e.tween=Gi.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Sa(t,"wheel",r.wheelHandler),vo.isTouch&&Sa(t,"touchmove",r.wheelHandler),i},vo=function(){function t(e,r){Ji||t.register(Gi)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ts(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Rs){var n,i,s,a,o,u,l,c,f,h,p,d,g,m,_,v,y,b,x,M,w,T,k,D,O,S,C,z,E,L,N,A,P,j,$,I,R,Y,U,F,B,Q,H=e=Ma(ta(e)||ra(e)||e.nodeType?{trigger:e}:e,La),X=H.onUpdate,W=H.toggleClass,q=H.id,Z=H.onToggle,V=H.onRefresh,G=H.scrub,J=H.trigger,K=H.pin,tt=H.pinSpacing,et=H.invalidateOnRefresh,rt=H.anticipatePin,nt=H.onScrubComplete,it=H.onSnapComplete,st=H.once,at=H.snap,ot=H.pinReparent,ut=H.pinSpacer,lt=H.containerAnimation,ct=H.fastScrollEnd,ft=H.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Ui:Fi,pt=!G&&0!==G,dt=Bi(e.scroller||Ki),gt=Gi.core.getCache(dt),mt=Zs(dt),_t="fixed"===("pinType"in e?e.pinType:Ni(dt,"pinType")||mt&&"fixed"),vt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=pt&&e.toggleActions.split(" "),bt="markers"in e?e.markers:La.markers,xt=mt?0:parseFloat(xa(dt)["border"+ht.p2+va])||0,Mt=this,wt=e.onRefreshInit&&function(){return e.onRefreshInit(Mt)},Tt=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=Ni(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Vs(i):t["client"+i])||0}}(dt,mt,ht),kt=function(t,e){return!e||~zi.indexOf(t)?Gs(t):function(){return co}}(dt,mt),Dt=0,Ot=0,St=0,Ct=Qi(dt,ht);if(Mt._startClamp=Mt._endClamp=!1,Mt._dir=ht,rt*=45,Mt.scroller=dt,Mt.scroll=lt?lt.time.bind(lt):Ct,a=Ct(),Mt.vars=e,r=r||e.animation,"refreshPriority"in e&&(ms=1,-9999===e.refreshPriority&&(As=Mt)),gt.tweenScroll=gt.tweenScroll||{top:_o(dt,Fi),left:_o(dt,Ui)},Mt.tweenTo=n=gt.tweenScroll[ht.p],Mt.scrubDuration=function(t){(P=ra(t)&&t)?A?A.duration(t):A=Gi.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:P,paused:!0,onComplete:function(){return nt&&nt(Mt)}}):(A&&A.progress(1).kill(),A=0)},r&&(r.vars.lazy=!1,r._initted&&!Mt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),Mt.animation=r.pause(),r.scrollTrigger=Mt,Mt.scrubDuration(G),L=0,q||(q=r.vars.id)),at&&(na(at)&&!at.push||(at={snapTo:at}),"scrollBehavior"in rs.style&&Gi.set(mt?[rs,es]:dt,{scrollBehavior:"auto"}),Ci.forEach((function(t){return ea(t)&&t.target===(mt?ts.scrollingElement||es:dt)&&(t.smooth=!1)})),s=ea(at.snapTo)?at.snapTo:"labels"===at.snapTo?function(t){return function(e){return Gi.utils.snap(ka(t),e)}}(r):"labelsDirectional"===at.snapTo?(F=r,function(t,e){return Da(ka(F))(t,e.direction)}):!1!==at.directional?function(t,e){return Da(at.snapTo)(t,js()-Ot<500?0:e.direction)}:Gi.utils.snap(at.snapTo),j=at.duration||{min:.1,max:2},j=na(j)?as(j.min,j.max):as(j,j),$=Gi.delayedCall(at.delay||P/2||.1,(function(){var t=Ct(),e=js()-Ot<500,i=n.tween;if(!(e||Math.abs(Mt.getVelocity())<10)||i||cs||Dt===t)Mt.isActive&&Dt!==t&&$.restart(!0);else{var a,o,c=(t-u)/m,f=r&&!pt?r.totalProgress():c,h=e?0:(f-N)/(js()-os)*1e3||0,p=Gi.utils.clamp(-c,1-c,aa(h/2)*h/.185),d=c+(!1===at.inertia?0:p),g=at,_=g.onStart,v=g.onInterrupt,y=g.onComplete;if(a=s(d,Mt),ra(a)||(a=d),o=Math.max(0,Math.round(u+a*m)),t<=l&&t>=u&&o!==t){if(i&&!i._initted&&i.data<=aa(o-t))return;!1===at.inertia&&(p=a-c),n(o,{duration:j(aa(.185*Math.max(aa(d-f),aa(a-f))/h/.05||0)),ease:at.ease||"power3",data:aa(o-t),onInterrupt:function(){return $.restart(!0)&&v&&v(Mt)},onComplete:function(){Mt.update(),Dt=Ct(),r&&!pt&&(A?A.resetTo("totalProgress",a,r._tTime/r._tDur):r.progress(a)),L=N=r&&!pt?r.totalProgress():Mt.progress,it&&it(Mt),y&&y(Mt)}},t,p*m,o-t-p*m),_&&_(Mt,n.tween)}}})).pause()),q&&(Ia[q]=Mt),(U=(J=Mt.trigger=Bi(J||!0!==K&&K))&&J._gsap&&J._gsap.stRevert)&&(U=U(Mt)),K=!0===K?J:Bi(K),ta(W)&&(W={targets:J,className:W}),K&&(!1===tt||tt===_a||(tt=!(!tt&&K.parentNode&&K.parentNode.style&&"flex"===xa(K.parentNode).display)&&ma),Mt.pin=K,(i=Gi.core.getCache(K)).spacer?_=i.pinState:(ut&&((ut=Bi(ut))&&!ut.nodeType&&(ut=ut.current||ut.nativeElement),i.spacerIsNative=!!ut,ut&&(i.spacerState=lo(ut))),i.spacer=b=ut||ts.createElement("div"),b.classList.add("pin-spacer"),q&&b.classList.add("pin-spacer-"+q),i.pinState=_=lo(K)),!1!==e.force3D&&Gi.set(K,{force3D:!0}),Mt.spacer=b=i.spacer,E=xa(K),D=E[tt+ht.os2],M=Gi.getProperty(K),w=Gi.quickSetter(K,ht.a,ba),ao(K,b,E),y=lo(K)),bt){d=na(bt)?Ma(bt,Ea):Ea,h=Pa("scroller-start",q,dt,ht,d,0),p=Pa("scroller-end",q,dt,ht,d,0,h),x=h["offset"+ht.op.d2];var zt=Bi(Ni(dt,"content")||dt);c=this.markerStart=Pa("start",q,zt,ht,d,x,0,lt),f=this.markerEnd=Pa("end",q,zt,ht,d,x,0,lt),lt&&(Y=Gi.quickSetter([c,f],ht.a,ba)),_t||zi.length&&!0===Ni(dt,"fixedMarkers")||(Q=xa(B=mt?rs:dt).position,B.style.position="absolute"===Q||"fixed"===Q?Q:"relative",Gi.set([h,p],{force3D:!0}),S=Gi.quickSetter(h,ht.a,ba),z=Gi.quickSetter(p,ht.a,ba))}if(lt){var Et=lt.vars.onUpdate,Lt=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",(function(){Mt.update(0,0,1),Et&&Et.apply(lt,Lt||[])}))}if(Mt.previous=function(){return $a[$a.indexOf(Mt)-1]},Mt.next=function(){return $a[$a.indexOf(Mt)+1]},Mt.revert=function(t,e){if(!e)return Mt.kill(!0);var n=!1!==t||!Mt.enabled,i=ls;n!==Mt.isReverted&&(n&&(I=Math.max(Ct(),Mt.scroll.rec||0),St=Mt.progress,R=r&&r.progress()),c&&[c,f,h,p].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(ls=Mt,Mt.update(n)),!K||ot&&Mt.isActive||(n?function(t,e,r){uo(r);var n=t._gsap;if(n.spacerIsNative)uo(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(K,b,_):ao(K,b,xa(K),O)),n||Mt.update(n),ls=i,Mt.isReverted=n)},Mt.refresh=function(i,s,d,x){if(!ls&&Mt.enabled||s)if(K&&i&&Is)Sa(t,"scrollEnd",Ha);else{!Ls&&wt&&wt(Mt),ls=Mt,n.tween&&!d&&(n.tween.kill(),n.tween=0),A&&A.pause(),et&&r&&r.revert({kill:!1}).invalidate(),Mt.isReverted||Mt.revert(!0,!0),Mt._subPinOffset=!1;var w,D,S,z,E,L,N,P,j,Y,U,F,B,Q=Tt(),H=kt(),X=lt?lt.duration():Js(dt,ht),W=m<=.01,q=0,Z=x||0,G=na(d)?d.end:e.end,rt=e.endTrigger||J,nt=na(d)?d.start:e.start||(0!==e.start&&J?K?"0 0":"0 100%":0),it=Mt.pinnedContainer=e.pinnedContainer&&Bi(e.pinnedContainer,Mt),st=J&&Math.max(0,$a.indexOf(Mt))||0,at=st;for(bt&&na(d)&&(F=Gi.getProperty(h,ht.p),B=Gi.getProperty(p,ht.p));at-- >0;)(L=$a[at]).end||L.refresh(0,1)||(ls=Mt),!(N=L.pin)||N!==J&&N!==K&&N!==it||L.isReverted||(Y||(Y=[]),Y.unshift(L),L.revert(!0,!0)),L!==$a[at]&&(st--,at--);for(ea(nt)&&(nt=nt(Mt)),nt=Ys(nt,"start",Mt),u=fo(nt,J,Q,ht,Ct(),c,h,Mt,H,xt,_t,X,lt,Mt._startClamp&&"_startClamp")||(K?-.001:0),ea(G)&&(G=G(Mt)),ta(G)&&!G.indexOf("+=")&&(~G.indexOf(" ")?G=(ta(nt)?nt.split(" ")[0]:"")+G:(q=Aa(G.substr(2),Q),G=ta(nt)?nt:(lt?Gi.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,u):u)+q,rt=J)),G=Ys(G,"end",Mt),l=Math.max(u,fo(G||(rt?"100% 0":X),rt,Q,ht,Ct()+q,f,p,Mt,H,xt,_t,X,lt,Mt._endClamp&&"_endClamp"))||-.001,q=0,at=st;at--;)(N=(L=$a[at]).pin)&&L.start-L._pinPush<=u&&!lt&&L.end>0&&(w=L.end-(Mt._startClamp?Math.max(0,L.start):L.start),(N===J&&L.start-L._pinPush<u||N===it)&&isNaN(nt)&&(q+=w*(1-L.progress)),N===K&&(Z+=w));if(u+=q,l+=q,Mt._startClamp&&(Mt._startClamp+=q),Mt._endClamp&&!Ls&&(Mt._endClamp=l||-.001,l=Math.min(l,Js(dt,ht))),m=l-u||(u-=.01)&&.001,W&&(St=Gi.utils.clamp(0,1,Gi.utils.normalize(u,l,I))),Mt._pinPush=Z,c&&q&&((w={})[ht.a]="+="+q,it&&(w[ht.p]="-="+Ct()),Gi.set([c,f],w)),!K||Cs&&Mt.end>=Js(dt,ht)){if(J&&Ct()&&!lt)for(D=J.parentNode;D&&D!==rs;)D._pinOffset&&(u-=D._pinOffset,l-=D._pinOffset),D=D.parentNode}else w=xa(K),z=ht===Fi,S=Ct(),T=parseFloat(M(ht.a))+Z,!X&&l>1&&(U={style:U=(mt?ts.scrollingElement||es:dt).style,value:U["overflow"+ht.a.toUpperCase()]},mt&&"scroll"!==xa(rs)["overflow"+ht.a.toUpperCase()]&&(U.style["overflow"+ht.a.toUpperCase()]="scroll")),ao(K,b,w),y=lo(K),D=wa(K,!0),P=_t&&Qi(dt,z?Ui:Fi)(),tt?((O=[tt+ht.os2,m+Z+ba]).t=b,(at=tt===ma?Ta(K,ht)+m+Z:0)&&(O.push(ht.d,at+ba),"auto"!==b.style.flexBasis&&(b.style.flexBasis=at+ba)),uo(O),it&&$a.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),_t&&Ct(I)):(at=Ta(K,ht))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=at+ba),_t&&((E={top:D.top+(z?S-u:P)+ba,left:D.left+(z?P:S-u)+ba,boxSizing:"border-box",position:"fixed"})[ca]=E["max"+va]=Math.ceil(D.width)+ba,E[fa]=E["max"+ya]=Math.ceil(D.height)+ba,E[_a]=E[_a+da]=E[_a+ha]=E[_a+ga]=E[_a+pa]="0",E[ma]=w[ma],E[ma+da]=w[ma+da],E[ma+ha]=w[ma+ha],E[ma+ga]=w[ma+ga],E[ma+pa]=w[ma+pa],v=function(t,e,r){for(var n,i=[],s=t.length,a=r?8:0;a<s;a+=2)n=t[a],i.push(n,n in e?e[n]:t[a+1]);return i.t=t.t,i}(_,E,ot),Ls&&Ct(0)),r?(j=r._initted,_s(1),r.render(r.duration(),!0,!0),k=M(ht.a)-T+m+Z,C=Math.abs(m-k)>1,_t&&C&&v.splice(v.length-2,2),r.render(0,!0,!0),j||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),_s(0)):k=m,U&&(U.value?U.style["overflow"+ht.a.toUpperCase()]=U.value:U.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach((function(t){return t.revert(!1,!0)})),Mt.start=u,Mt.end=l,a=o=Ls?I:Ct(),lt||Ls||(a<I&&Ct(I),Mt.scroll.rec=0),Mt.revert(!1,!0),Ot=js(),$&&(Dt=-1,$.restart(!0)),ls=0,r&&pt&&(r._initted||R)&&r.progress()!==R&&r.progress(R||0,!0).render(r.time(),!0,!0),(W||St!==Mt.progress||lt||et||r&&!r._initted)&&(r&&!pt&&r.totalProgress(lt&&u<-.001&&!St?Gi.utils.normalize(u,l,0):St,!0),Mt.progress=W||(a-u)/m===St?0:St),K&&tt&&(b._pinOffset=Math.round(Mt.progress*k)),A&&A.invalidate(),isNaN(F)||(F-=Gi.getProperty(h,ht.p),B-=Gi.getProperty(p,ht.p),mo(h,ht,F),mo(c,ht,F-(x||0)),mo(p,ht,B),mo(f,ht,B-(x||0))),W&&!Ls&&Mt.update(),!V||Ls||g||(g=!0,V(Mt),g=!1)}},Mt.getVelocity=function(){return(Ct()-o)/(js()-os)*1e3||0},Mt.endAnimation=function(){ia(Mt.callbackAnimation),r&&(A?A.progress(1):r.paused()?pt||ia(r,Mt.direction<0,1):ia(r,r.reversed()))},Mt.labelToScroll=function(t){return r&&r.labels&&(u||Mt.refresh()||u)+r.labels[t]/r.duration()*m||0},Mt.getTrailing=function(t){var e=$a.indexOf(Mt),r=Mt.direction>0?$a.slice(0,e).reverse():$a.slice(e+1);return(ta(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return Mt.direction>0?t.end<=u:t.start>=l}))},Mt.update=function(t,e,i){if(!lt||i||t){var s,c,f,p,d,g,_,x=!0===Ls?I:Mt.scroll(),M=t?0:(x-u)/m,O=M<0?0:M>1?1:M||0,E=Mt.progress;if(e&&(o=a,a=lt?Ct():x,at&&(N=L,L=r&&!pt?r.totalProgress():O)),rt&&K&&!ls&&!Ps&&Is&&(!O&&u<x+(x-o)/(js()-os)*rt?O=1e-4:1===O&&l>x+(x-o)/(js()-os)*rt&&(O=.9999)),O!==E&&Mt.enabled){if(p=(d=(s=Mt.isActive=!!O&&O<1)!=(!!E&&E<1))||!!O!=!!E,Mt.direction=O>E?1:-1,Mt.progress=O,p&&!ls&&(c=O&&!E?0:1===O?1:1===E?2:3,pt&&(f=!d&&"none"!==yt[c+1]&&yt[c+1]||yt[c],_=r&&("complete"===f||"reset"===f||f in r))),ft&&(d||_)&&(_||G||!r)&&(ea(ft)?ft(Mt):Mt.getTrailing(ft).forEach((function(t){return t.endAnimation()}))),pt||(!A||ls||Ps?r&&r.totalProgress(O,!(!ls||!Ot&&!t)):(A._dp._time-A._start!==A._time&&A.render(A._dp._time-A._start),A.resetTo?A.resetTo("totalProgress",O,r._tTime/r._tDur):(A.vars.totalProgress=O,A.invalidate().restart()))),K)if(t&&tt&&(b.style[tt+ht.os2]=D),_t){if(p){if(g=!t&&O>E&&l+1>x&&x+1>=Js(dt,ht),ot)if(t||!s&&!g)po(K,b);else{var P=wa(K,!0),j=x-u;po(K,rs,P.top+(ht===Fi?j:0)+ba,P.left+(ht===Fi?0:j)+ba)}uo(s||g?v:y),C&&O<1&&s||w(T+(1!==O||g?0:k))}}else w(Xs(T+k*O));at&&!n.tween&&!ls&&!Ps&&$.restart(!0),W&&(d||st&&O&&(O<1||!zs))&&ss(W.targets).forEach((function(t){return t.classList[s||st?"add":"remove"](W.className)})),X&&!pt&&!t&&X(Mt),p&&!ls?(pt&&(_&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),X&&X(Mt)),!d&&zs||(Z&&d&&sa(Mt,Z),vt[c]&&sa(Mt,vt[c]),st&&(1===O?Mt.kill(!1,1):vt[c]=0),d||vt[c=1===O?1:3]&&sa(Mt,vt[c])),ct&&!s&&Math.abs(Mt.getVelocity())>(ra(ct)?ct:2500)&&(ia(Mt.callbackAnimation),A?A.progress(1):ia(r,"reverse"===f?1:!O,1))):pt&&X&&!ls&&X(Mt)}if(z){var R=lt?x/lt.duration()*(lt._caScrollDist||0):x;S(R+(h._isFlipped?1:0)),z(R)}Y&&Y(-x/lt.duration()*(lt._caScrollDist||0))}},Mt.enable=function(e,r){Mt.enabled||(Mt.enabled=!0,Sa(dt,"resize",Fa),mt||Sa(dt,"scroll",Ya),wt&&Sa(t,"refreshInit",wt),!1!==e&&(Mt.progress=St=0,a=o=Dt=Ct()),!1!==r&&Mt.refresh())},Mt.getTween=function(t){return t&&n?n.tween:A},Mt.setPositions=function(t,e,r,n){if(lt){var i=lt.scrollTrigger,s=lt.duration(),a=i.end-i.start;t=i.start+a*t/s,e=i.start+a*e/s}Mt.refresh(!1,!1,{start:Us(t,r&&!!Mt._startClamp),end:Us(e,r&&!!Mt._endClamp)},n),Mt.update()},Mt.adjustPinSpacing=function(t){if(O&&t){var e=O.indexOf(ht.d)+1;O[e]=parseFloat(O[e])+t+ba,O[1]=parseFloat(O[1])+t+ba,uo(O)}},Mt.disable=function(e,r){if(Mt.enabled&&(!1!==e&&Mt.revert(!0,!0),Mt.enabled=Mt.isActive=!1,r||A&&A.pause(),I=0,i&&(i.uncache=1),wt&&Ca(t,"refreshInit",wt),$&&($.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!mt)){for(var s=$a.length;s--;)if($a[s].scroller===dt&&$a[s]!==Mt)return;Ca(dt,"resize",Fa),mt||Ca(dt,"scroll",Ya)}},Mt.kill=function(t,n){Mt.disable(t,n),A&&!n&&A.kill(),q&&delete Ia[q];var s=$a.indexOf(Mt);s>=0&&$a.splice(s,1),s===hs&&ro>0&&hs--,s=0,$a.forEach((function(t){return t.scroller===Mt.scroller&&(s=1)})),s||Ls||(Mt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),As===Mt&&(As=0),K&&(i&&(i.uncache=1),s=0,$a.forEach((function(t){return t.pin===K&&s++})),s||(i.spacer=0)),e.onKill&&e.onKill(Mt)},$a.push(Mt),Mt.enable(!1,!1),U&&U(Mt),r&&r.add&&!m){var Nt=Mt.update;Mt.update=function(){Mt.update=Nt,Ci.cache++,u||l||Mt.refresh()},Gi.delayedCall(.01,Mt.update),m=.01,u=l=0}else Mt.refresh();K&&function(){if(Ns!==Ga){var t=Ns=Ga;requestAnimationFrame((function(){return t===Ga&&to(!0)}))}}()}else this.update=this.refresh=this.kill=Hs},t.register=function(e){return Ji||(Gi=e||qs(),Ws()&&window.document&&t.enable(),Ji=Rs),Ji},t.defaults=function(t){if(t)for(var e in t)La[e]=t[e];return La},t.disable=function(t,e){Rs=0,$a.forEach((function(r){return r[e?"kill":"disable"](t)})),Ca(Ki,"wheel",Ya),Ca(ts,"scroll",Ya),clearInterval(us),Ca(ts,"touchcancel",Hs),Ca(rs,"touchstart",Hs),Oa(Ca,ts,"pointerdown,touchstart,mousedown",Bs),Oa(Ca,ts,"pointerup,touchend,mouseup",Qs),is.kill(),Ks(Ca);for(var r=0;r<Ci.length;r+=3)za(Ca,Ci[r],Ci[r+1]),za(Ca,Ci[r],Ci[r+2])},t.enable=function(){if(Ki=window,ts=document,es=ts.documentElement,rs=ts.body,Gi&&(ss=Gi.utils.toArray,as=Gi.utils.clamp,Ts=Gi.core.context||Hs,_s=Gi.core.suppressOverwrites||Hs,ks=Ki.history.scrollRestoration||"auto",eo=Ki.pageYOffset||0,Gi.core.globals("ScrollTrigger",t),rs)){Rs=1,(Ds=document.createElement("div")).style.height="100vh",Ds.style.position="absolute",Ja(),Fs(),Vi.register(Gi),t.isTouch=Vi.isTouch,ws=Vi.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),bs=1===Vi.isTouch,Sa(Ki,"wheel",Ya),ns=[Ki,ts,es,rs],Gi.matchMedia?(t.matchMedia=function(t){var e,r=Gi.matchMedia();for(e in t)r.add(e,t[e]);return r},Gi.addEventListener("matchMediaInit",(function(){return Za()})),Gi.addEventListener("matchMediaRevert",(function(){return qa()})),Gi.addEventListener("matchMedia",(function(){to(0,1),Xa("matchMedia")})),Gi.matchMedia().add("(orientation: portrait)",(function(){return Ua(),Ua}))):console.warn("Requires GSAP 3.11.0 or later"),Ua(),Sa(ts,"scroll",Ya);var e,r,n=rs.hasAttribute("style"),i=rs.style,s=i.borderTopStyle,a=Gi.core.Animation.prototype;for(a.revert||Object.defineProperty(a,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=wa(rs),Fi.m=Math.round(e.top+Fi.sc())||0,Ui.m=Math.round(e.left+Ui.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(rs.setAttribute("style",""),rs.removeAttribute("style")),us=setInterval(Ra,250),Gi.delayedCall(.5,(function(){return Ps=0})),Sa(ts,"touchcancel",Hs),Sa(rs,"touchstart",Hs),Oa(Sa,ts,"pointerdown,touchstart,mousedown",Bs),Oa(Sa,ts,"pointerup,touchend,mouseup",Qs),fs=Gi.utils.checkPrefix("transform"),so.push(fs),Ji=js(),is=Gi.delayedCall(.2,to).pause(),gs=[ts,"visibilitychange",function(){var t=Ki.innerWidth,e=Ki.innerHeight;ts.hidden?(ps=t,ds=e):ps===t&&ds===e||Fa()},ts,"DOMContentLoaded",to,Ki,"load",to,Ki,"resize",Fa],Ks(Sa),$a.forEach((function(t){return t.enable(0,1)})),r=0;r<Ci.length;r+=3)za(Ca,Ci[r],Ci[r+1]),za(Ca,Ci[r],Ci[r+2])}},t.config=function(e){"limitCallbacks"in e&&(zs=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(us)||(us=r)&&setInterval(Ra,r),"ignoreMobileResize"in e&&(bs=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(Ks(Ca)||Ks(Sa,e.autoRefreshEvents||"none"),vs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Bi(t),n=Ci.indexOf(r),i=Zs(r);~n&&Ci.splice(n,i?6:2),e&&(i?zi.unshift(Ki,e,rs,e,es,e):zi.unshift(r,e))},t.clearMatchMedia=function(t){$a.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,r){var n=(ta(t)?Bi(t):t).getBoundingClientRect(),i=n[r?ca:fa]*e||0;return r?n.right-i>0&&n.left+i<Ki.innerWidth:n.bottom-i>0&&n.top+i<Ki.innerHeight},t.positionInViewport=function(t,e,r){ta(t)&&(t=Bi(t));var n=t.getBoundingClientRect(),i=n[r?ca:fa],s=null==e?i/2:e in Na?Na[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/Ki.innerWidth:(n.top+s)/Ki.innerHeight},t.killAll=function(t){if($a.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Ba.killAll||[];Ba={},e.forEach((function(t){return t()}))}},t}();vo.version="3.12.7",vo.saveStyles=function(t){return t?ss(t).forEach((function(t){if(t&&t.style){var e=Wa.indexOf(t);e>=0&&Wa.splice(e,5),Wa.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),Gi.core.getCache(t),Ts())}})):Wa},vo.revert=function(t,e){return Za(!t,e)},vo.create=function(t,e){return new vo(t,e)},vo.refresh=function(t){return t?Fa(!0):(Ji||vo.register())&&to(!0)},vo.update=function(t){return++Ci.cache&&no(!0===t?2:0)},vo.clearScrollMemory=Va,vo.maxScroll=function(t,e){return Js(t,e?Ui:Fi)},vo.getScrollFunc=function(t,e){return Qi(Bi(t),e?Ui:Fi)},vo.getById=function(t){return Ia[t]},vo.getAll=function(){return $a.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},vo.isScrolling=function(){return!!Is},vo.snapDirectional=Da,vo.addEventListener=function(t,e){var r=Ba[t]||(Ba[t]=[]);~r.indexOf(e)||r.push(e)},vo.removeEventListener=function(t,e){var r=Ba[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},vo.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var r=[],n=[],i=Gi.delayedCall(s,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),a<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&ea(e[r])&&"onRefreshInit"!==r?o(0,e[r]):e[r];return ea(a)&&(a=a(),Sa(vo,"refresh",(function(){return a=e.batchMax()}))),ss(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(vo.create(e))})),n};var yo,bo=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},xo=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Vi.isTouch?" pinch-zoom":""):"none",e===es&&t(rs,r)},Mo={auto:1,scroll:1},wo=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,a=s._gsap||Gi.core.getCache(s),o=js();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==rs&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Mo[(e=xa(s)).overflowY]&&!Mo[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==n&&!Zs(s)&&(Mo[(e=xa(s)).overflowY]||Mo[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},To=function(t,e,r,n){return Vi.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&wo,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Sa(ts,Vi.eventTypes[0],Do,!1,!0)},onDisable:function(){return Ca(ts,Vi.eventTypes[0],Do,!0)}})},ko=/(input|label|select|textarea)/i,Do=function(t){var e=ko.test(t.target.tagName);(e||yo)&&(t._gsapAllow=!0,yo=e)};vo.sort=function(t){if(ea(t))return $a.sort(t);var e=Ki.pageYOffset||0;return vo.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+Ki.innerHeight})),$a.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},vo.observe=function(t){return new Vi(t)},vo.normalizeScroll=function(t){if(void 0===t)return ys;if(!0===t&&ys)return ys.enable();if(!1===t)return ys&&ys.kill(),void(ys=t);var e=t instanceof Vi?t:function(t){na(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,a,o,u,l=t,c=l.normalizeScrollX,f=l.momentum,h=l.allowNestedScroll,p=l.onRelease,d=Bi(t.target)||es,g=Gi.core.globals().ScrollSmoother,m=g&&g.get(),_=ws&&(t.content&&Bi(t.content)||m&&!1!==t.content&&!m.smooth()&&m.content()),v=Qi(d,Fi),y=Qi(d,Ui),b=1,x=(Vi.isTouch&&Ki.visualViewport?Ki.visualViewport.scale*Ki.visualViewport.width:Ki.outerWidth)/Ki.innerWidth,M=0,w=ea(f)?function(){return f(e)}:function(){return f||2.8},T=To(d,t.type,!0,h),k=function(){return i=!1},D=Hs,O=Hs,S=function(){r=Js(d,Fi),O=as(ws?1:0,r),c&&(D=as(0,Js(d,Ui))),n=Ga},C=function(){_._gsap.y=Xs(parseFloat(_._gsap.y)+v.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},z=function(){S(),s.isActive()&&s.vars.scrollY>r&&(v()>r?s.progress(1)&&v(r):s.resetTo("scrollY",r))};return _&&Gi.set(_,{y:"+=0"}),t.ignoreCheck=function(t){return ws&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(k);var t=Xs(e.deltaY/2),r=O(v.v-t);if(_&&r!==v.v+v.offset){v.offset=r-v.v;var n=Xs((parseFloat(_&&_._gsap.y)||0)-v.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",_._gsap.y=n+"px",v.cacheID=Ci.cache,no()}return!0}v.offset&&C(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=Xs((Ki.visualViewport&&Ki.visualViewport.scale||1)/x),s.pause(),t!==b&&xo(d,b>1.01||!c&&"x"),a=y(),o=v(),S(),n=Ga},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&C(),e){Ci.cache++;var n,i,a=w();c&&(i=(n=y())+.05*a*-t.velocityX/.227,a*=bo(y,n,i,Js(d,Ui)),s.vars.scrollX=D(i)),i=(n=v())+.05*a*-t.velocityY/.227,a*=bo(v,n,i,Js(d,Fi)),s.vars.scrollY=O(i),s.invalidate().duration(a).play(.01),(ws&&s.vars.scrollY>=r||n>=r-1)&&Gi.to({},{onUpdate:z,duration:a})}else u.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),js()-M>1e3&&(n=0,M=js())},t.onChange=function(t,e,r,i,s){if(Ga!==n&&S(),e&&c&&y(D(i[2]===e?a+(t.startX-t.x):y()+e-i[1])),r){v.offset&&C();var u=s[2]===r,l=u?o+t.startY-t.y:v()+r-s[1],f=O(l);u&&l!==f&&(o+=f-l),v(f)}(r||e)&&no()},t.onEnable=function(){xo(d,!c&&"x"),vo.addEventListener("refresh",z),Sa(Ki,"resize",z),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=y.smooth=!1),T.enable()},t.onDisable=function(){xo(d,!0),Ca(Ki,"resize",z),vo.removeEventListener("refresh",z),T.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Vi(t)).iOS=ws,ws&&!v()&&v(1),ws&&Gi.ticker.add(Hs),u=e._dc,s=Gi.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:go(v,v(),(function(){return s.pause()}))},onUpdate:no,onComplete:u.vars.onComplete}),e}(t);return ys&&ys.target===e.target&&ys.kill(),Zs(e.target)&&(ys=e),e},vo.core={_getVelocityProp:Hi,_inputObserver:To,_scrollers:Ci,_proxies:zi,bridge:{ss:function(){Is||Xa("scrollStart"),Is=js()},ref:function(){return ls}}},qs()&&Gi.registerPlugin(vo),fi.registerPlugin(vo);const Oo=({attributes:t,slidesHost:e})=>{const{styles:n}=t,{stickyTop:i,cardGaps:s}=n,a=(0,r.useRef)(null),o=(0,r.useRef)(null),[u,l]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{if(!o.current||!e)return;if("1"===e.dataset.moved)return void l(!0);const t=Array.from(e.children);o.current.append(...t),e.dataset.moved="1",l(!0)}),[e]),(0,r.useLayoutEffect)((()=>{if(!u)return;const t=fi.context((()=>{const t=o.current,e=Array.from(t.querySelectorAll(".bBlocksStackedSingleCard"));if(!e.length)return;const r=Number(null!=i?i:0);fi.set(t,{overflow:"visible",paddingBottom:30*(e.length-1)}),e.forEach(((t,r)=>{fi.set(t,{y:30*r,zIndex:1e3+r,transformOrigin:"50% 0%",willChange:"transform",transform:`translateY(${e.length-1===r?30*r-30:30*r}px)`,scale:1})}));const n=(t,e,r)=>{const n=e-t;if(n<=0)return 1;const i=1-n/r*.28;return t===r-1?1:fi.utils.clamp(.72,1,i)};e.forEach(((t,i)=>{vo.create({trigger:t,start:()=>`top top+=${r}`,end:()=>"+=500",scrub:!0,invalidateOnRefresh:!0,onUpdate:r=>{const s=e.length-1;if(i===s)return void fi.set(t,{scale:1});const a=i+r.progress;e.forEach(((t,r)=>{fi.set(t,{scale:n(r,a,e.length)})}))}})})),vo.refresh()}),a);return()=>t.revert()}),[u,i,s]),(0,r.createElement)("div",{ref:a,className:"b-blocks-stackedCardsMainWrapper"},(0,r.createElement)("div",{className:"b-blocksStackedCardsWrapper",ref:o}))};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-stacked-cards").forEach((t=>{let e={};try{const r=t.dataset.attributes;r&&"undefined"!==r&&""!==r&&(e=JSON.parse(r))}catch(t){console.warn("Carousel: Invalid attributes JSON",t)}const i=t.querySelector(".b-blocks-stacked-cards-innerBlocks");i&&((0,n.H)(t).render((0,r.createElement)(r.Fragment,null,(0,r.createElement)(y,{attributes:e,id:t.id}),(0,r.createElement)(Oo,{attributes:e,slidesHost:i}))),t?.removeAttribute("data-attributes"))}))}))})(); | |
| 1 | +(()=>{"use strict";const t=window.ReactDOM,e="@media only screen and (min-width: 1025px)",r="@media only screen and (max-width: 1024px)",n="@media only screen and (max-width: 640px)",i=window.React,s=t=>!(null==t||""===t||Array.isArray(t)&&0===t.length||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&""===t.trim()||"number"==typeof t&&0===t),o=t=>{try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?e.toString():null}catch(e){return"string"==typeof t&&t.startsWith("/")&&!t.startsWith("//")?t:null}};new class{constructor(t={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...t},this.allowedTagSet=new Set(this.options.allowedTags.map((t=>t.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((t=>t.toLowerCase())))}sanitize(t){if("string"!=typeof t||""===t.trim())return"";const e=(new DOMParser).parseFromString(t,"image/svg+xml"),r=e.documentElement;return!r||"svg"!==r.localName.toLowerCase()||e.getElementsByTagName("parsererror").length?"":(this.removeScripts(e),this.sanitizeElements(e),(new XMLSerializer).serializeToString(e.documentElement))}async sanitizeFile(t){const e=await fetch(t),r=await e.text();return this.sanitize(`${r}`)}removeScripts(t){this.options.removeScripts&&Array.from(t.querySelectorAll("*")).forEach((t=>{t.localName.toLowerCase().includes("script")&&t.remove()}))}sanitizeElements(t){Array.from(t.querySelectorAll("*")).forEach((t=>{const e=t.localName.toLowerCase();this.allowedTagSet.has(e)?("style"===e&&this.options.sanitizeStyle&&(t.textContent=this.sanitizeCss(t.textContent)),this.sanitizeAttributes(t)):t.remove()}))}sanitizeAttributes(t){Array.from(t.attributes).forEach((e=>{const r=e.name,n=r.toLowerCase(),i=e.value;if(this.options.removeEvents&&n.startsWith("on"))return void t.removeAttribute(r);if(this.options.removeExternalResources&&("href"===n||n.endsWith(":href"))&&!this.isAllowedUrl(i))return void t.removeAttribute(r);const s=n.replace("xlink:","");this.allowedAttributeSet.has(n)||this.allowedAttributeSet.has(s)?this.options.removeExternalResources&&this.hasExternalUrl(i)?t.removeAttribute(r):"style"===n&&this.options.sanitizeStyle&&t.setAttribute(r,this.sanitizeCss(i)):t.removeAttribute(r)}))}hasExternalUrl(t){return!("string"!=typeof t||!/url\s*\(/i.test(t))&&Array.from(t.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,t])=>!t.trim().startsWith("#")))}isAllowedUrl(t){const e=String(t||"").trim();if(e.startsWith("#"))return!0;if(/^data:/i.test(e))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(e);try{return this.options.allowedProtocols.includes(new URL(e).protocol.replace(":",""))}catch{return!1}}sanitizeCss(t){return String(t||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const a=t=>{const e=o(t);return e?`url('${e.replace(/['"()]/g,"")}')`:"none"},l=(t,e)=>s(e)?`${t}: ${e};`:"",u=t=>{if(!t)return"";if("string"==typeof t)return t;if("object"==typeof t&&!Array.isArray(t)){const e=["top","right","bottom","left"];return e.map((e=>t[e]||"")).every((t=>!t))?"":e.map((e=>t[e]||"0")).join(" ")}return""},c=t=>{const{position:e="center center",xPosition:r=0,yPosition:n=0,attachment:i="",repeat:o="no-repeat",size:a="cover",customSize:l="0px"}=t||{},u=t=>"initial"!==t||s(t);return`\n\t\t${u(e)?`background-position: ${"custom"===e?`${r} ${n}`:e};`:""}\n\t\t${i&&u(i)?`background-attachment: ${i};`:""}\n\t\t${u(o)?`background-repeat: ${o};`:""}\n\t\t${u(a)?`background-size: ${"custom"===a?`${l} auto`:a};`:""}\n\t`},f=(t={})=>t?{desktop:s(t.url)?`background-image: ${a(t.url)}; ${c(t?.desktop)}`:"",tablet:s(t.url)?c(t?.tablet):"",mobile:s(t.url)?c(t?.mobile):""}:"",h=(t,e,i=!1)=>{const{type:a="color",color:u,gradient:c,img:h,video:p}=t||{},d="color"===a?l("background",u):"gradient"===a?(t=>{const{type:e="linear",radialType:r="ellipse",colors:n=[],centerPositions:i={x:0,y:0},angel:o=0}=t||{};if(s(t)){const t=n?.map((({color:t,position:e})=>`${t} ${e}%`)),s=`linear-gradient(${o}deg, ${t})`;return l("background","radial"===e?`radial-gradient(${r} at ${i?.x}% ${i?.y}%,${t})`:s)}return""})(c):"image"===a?f(h).desktop:"",m="image"===a?f(h).tablet:"",g="image"===a?f(h).mobile:"",v=i?`${e}:hover`:e;return`\n\t\t${"video"===a?((t,e)=>{const{url:r,loop:n}=t||{},i=document.querySelector(e),s=i?.querySelector(".bPlVideo"),a=document.createElement("video");if(a.muted=!0,a.autoplay=!0,a.classList.add("bPlVideo"),!s&&i&&r){const t=o(r);if(t){const e=document.createElement("source");e.src=t,a.appendChild(e),i.appendChild(a)}}return a.loop=n,a.play(),`${e} .bPlVideo{\n\t\tleft: 0;\n\t\tmin-height: 100%;\n\t\tmin-width: 100%;\n\t\tposition: absolute;\n\t\twidth: -webkit-fill-available;\n\t\ttop: 0;\n\t\tz-index: 0;\n\t}`})(p,e):""}\n\n\t\t${d?`${v}{\n\t\t\t${d}\n\t\t}`:""}\n\n\t\t${m?`${r} {\n\t\t\t${v}{\n\t\t\t\t${m}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${g?`${n} {\n\t\t\t${v}{\n\t\t\t\t${g}\n\t\t\t}\n\t\t}`:""}\n\t`.replace(/\s+/g," ").trim()},p=(t,e,r=!1)=>{const{isEnabled:n,colors:i,opacity:o=1,blend:a,filter:u="",blur:c=0,brightness:f=100,contrast:p=100,saturation:d=100,hue:m=0,position:g={top:0,right:0,bottom:0,left:0},zIndex:v=-1}=t||{},_=`${100!==f?`brightness(${f}%)`:""} ${100!==p?`contrast(${p}%)`:""} ${100!==d?`saturate(${d}%)`:""} ${0!==c?`blur(${c}px)`:""} ${0!==m?`hue-rotate(${m}deg)`:""}`,y=`${u}: ${u?_:""}; -webkit-${u}: ${u?_:""};`,b=r?`${e}:hover::after`:`${e}::after`;return n?`\n\t\t${e}{\n\t\t\tposition:relative;\n\t\t\tz-index:1;\n\t\t}\n\t\t${e}::after{\n\t\t\tcontent: '';\n\t\t\tposition: absolute;\n\t\t\ttop:${s(g.top)?g.top:0};\n\t\t\tright:${s(g.right)?g.right:0};\n\t\t\tbottom:${s(g.bottom)?g.bottom:0};\n\t\t\tleft:${s(g.left)?g.left:0};\n\t\t\tz-index:${v};\n\t\t}\n\t\t${h(i,b,!1)}\n\t\t${b}{\n\t\t\t${l("opacity",o)}\n\t\t\t${l("mix-blend-mode",a)}\n\t\t\t${y}\n\t\t}\n\t`.replace(/\s+/g," ").trim():""},d=(t,e,i=!1)=>{const o=(t,e="desktop")=>{if(!s(t))return"";const{skew:r,scale:n,rotate:i,offset:o,flipX:a,flipY:u}=t,{threeDRotate:c}=i||{},{isProportion:f}=n||{},h=[];return s(r)&&(s(r?.[e]?.x)&&h.push(`skewX(${r[e].x}deg)`),s(r?.[e]?.y)&&h.push(`skewY(${r[e].y}deg)`)),f?s(n?.[e]?.scale)&&h.push(`scale(${n[e].scale})`):(s(n?.[e]?.x)&&h.push(`scaleX(${n[e].x})`),s(n?.[e]?.y)&&h.push(`scaleY(${n[e].y})`)),s(i)&&(s(i?.[e]?.z)&&h.push(`rotateZ(${i[e].z}deg)`),c&&(s(i?.[e]?.x)&&h.push(`rotateX(${i[e].x}deg)`),s(i?.[e]?.y)&&h.push(`rotateY(${i[e].y}deg)`))),s(o)&&(s(o?.[e]?.x)&&h.push(`translateX(${o[e].x})`),s(o?.[e]?.y)&&h.push(`translateY(${o[e].y})`)),s(a)&&h.push(a?"scaleX(-1)":""),s(u)&&h.push(u?"scaleY(-1)":""), | |
| 2 | +0===h.length?"":l("transform",h.join(" "))},a=i?`${e}:hover`:e;return`\n\t\t${a} {\n\t\t\t${o(t,"desktop")}\n\t\t}\n\t\t${r}{\n\t\t\t${a} {\n\t\t\t\t${o(t,"tablet")}\n\t\t\t}\n\t\t}\n\t\t${n}{\n\t\t\t${a} {\n\t\t\t\t${o(t,"mobile")}\n\t\t\t}\n\t\t}\n\t`},m=t=>{const{padding:e,margin:r,height:n,width:i}=t||{},s=(t,e)=>l(t,e),o=(t,e,r)=>s(t,e?.[t]?.[r])+s(`min-${t}`,e?.min?.[r])+s(`max-${t}`,e?.max?.[r]),a=t=>l("padding",u(t)),c=t=>l("margin",u(t));return{desktop:a(e?.desktop)+c(r?.desktop)+o("height",n,"desktop")+o("width",i,"desktop"),tablet:a(e?.tablet)+c(r?.tablet)+o("height",n,"tablet")+o("width",i,"tablet"),mobile:a(e?.mobile)+c(r?.mobile)+o("height",n,"mobile")+o("width",i,"mobile")}},g=t=>{const{normal:e,hover:r}=t||{},n=t=>{const{border:e,radius:r,shadow:n}=t||{},i=l("border-radius",u(r)),s=l("box-shadow",((t,e="box")=>{let r="";return t?.map(((n,i)=>{const{hOffset:s="0px",vOffset:o="0px",blur:a="0px",spreed:l="0px",color:u="#e7f0fe",isInset:c=!1}=n||{},f=c?"inset":"",h=`${s} ${o} ${a}`,p=i+1>=t.length?"":", ";r+="text"===e?`${h} ${u}${p}`:`${h} ${l} ${u} ${f}${p}`})),r||""})(n,"box"));return(t=>{if(!t)return"";const e=t=>{const{color:e="#000000",style:r="solid",width:n="0px"}=t;return`${n} ${r} ${e}`};return"object"!=typeof t||Array.isArray(t)?"":t.hasOwnProperty("top")||t.hasOwnProperty("right")||t.hasOwnProperty("bottom")||t.hasOwnProperty("left")?["top","right","bottom","left"].map((r=>t[r]?`border-${r}: ${e(t[r])};`:"")).join(" ").trim():l("border",e(t))})(e)+i+s};return{normal:n(e),hover:n(r)}},v=t=>{const{zIndex:e,overflow:r}=t||{},n=r?`overflow: ${r};`:"",i=t=>`${l("z-index",e?.[t])} ${l("position",s(e?.[t])?"relative":"")}`;return{desktop:i("desktop")+n,tablet:i("tablet"),mobile:i("mobile")}},_=(t,e)=>{const{desktop:r=!1,tablet:n=!1,mobile:i=!1}=t||{},s=e?"opacity: 0.5;":"display: none;",o=t=>t?s:"";return{desktop:o(r),tablet:o(n),mobile:o(i)}},y=(t,i,o=!1,u=!0)=>{const{dimension:c,transform:f,background:y,borderShadow:b,mask:x,animation:w,visibility:M,responsive:T,position:k={},floating:$={},motion:D={},css:S=""}=i||{},O=o?`#${t}>div>div${u?":first-child":""}`:`#${t}>div`;((t,e,r)=>{const n=r?`#${e} > div`:`#${e}`,i=document.querySelector(n);i&&t&&t.type&&(i.setAttribute("data-aos",t.type),i.setAttribute("data-aos-duration",1e3*t.duration||.4),i.setAttribute("data-aos-delay",1e3*t.delay||0),i.classList.contains("aos-init")||(i.classList.add("aos-init"),window?.AOS?.init()),r)&&new IntersectionObserver((t=>{t.forEach((t=>{t.intersectionRatio>.5?i.classList.add("aos-animate"):i.classList.remove("aos-animate")}))}),{threshold:[.5]}).observe(i)})(w,t,o);const C=m(c).desktop+v(M).desktop+((t,e,r)=>{const{transition:n=.4}=t||{},{transition:i=.4}=e||{},{transition:s=200}=r||{};return`transition: background ${n}s, border ${i}s, border-radius ${i}s, box-shadow ${i}s, transform ${s}ms ease-in-out;`})(y,b,f)+(t=>{const{isMask:e=!1,shape:r={type:"circle"},size:n={type:"contain",scale:"100%"},position:i={type:"center center",x:50,y:50},repeat:s="no-repeat"}=t||{};return e?`-webkit-mask-image: ${"custom"===r.type?a(r.url):`url(${(o=r.type,[{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48Y2lyY2xlIGN4PSI0NC41IiBjeT0iNDQuNSIgcj0iNDQuNSIvPjwvc3ZnPg==",type:"circle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4OSIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDg5IDg5Ij48cGF0aCBkPSJNNzYuMTMzMiw0NC40NzUybDYuMzI4OS02LjMyODVBMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDUwLjg1LDYuNTQ3NEw0NC41MzIsMTIuODY1MSwzOC4xNiw2LjU0NzRhMjIuMzUyNCwyMi4zNTI0LDAsMSwwLTMxLjYxMiwzMS42MWw2LjMxODEsNi4zMTc3TDYuNTQ3OCw1MC44NDdhMjIuMzUyNCwyMi4zNTI0LDAsMCwwLDMxLjYxMiwzMS42MWw2LjMxODEtNi4zMTc3TDUwLjg1LDgyLjM5MjJhMjIuMzQ4NiwyMi4zNDg2LDAsMCwwLDMxLjYxMi0zMS41OTkzWiIvPjwvc3ZnPg==",type:"flower"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5MS4xMTQzIiBoZWlnaHQ9Ijg4Ljk5OTkiIHZpZXdCb3g9IjAgMCA5MS4xMTQzIDg4Ljk5OTkiPjxwYXRoIGQ9Ik04Mi4xNzQ5LDM3LjUyNjZsMS42MTE5LTEuNjExOWMuOTQ4Ni0uOTQ4Ny02LjM3LTUuOTMwOS03LjA0OTItNi4zNzgyYTQ1LjE1MTYsNDUuMTUxNiwwLDAsMC01Ljc3NjYtMy4zMjQxYy0uMjQ2OC0uMTE1Ny0uNjAxNi0uMzAwOC0uOTg3Mi0uNDc4MnExLjc4MTYtMS44OTcyLDMuNTg2My0zLjc3MTNjLjk0ODYtLjk4LTYuMzYyOC01LjkyMzItNy4wNDkyLTYuMzcwNUE0NC4xNTc5LDQ0LjE1NzksMCwwLDAsNjAuNzUsMTIuMjYwNmwtLjI5My0uMTQ2NSwxLjM5NTktMS41NDI1Yy45NDA5LTEuMDQ4OS02LjMzMTktNS45LTcuMDQ5Mi02LjM3QTQ0LjIxMiw0NC4yMTIsMCwwLDAsNDkuMDQyMi44NjE2Yy0uNTQtLjI0NjctMi4zMTM3LTEuMjY0OC0yLjg0NTgtLjY4NjRRMzIuNzM4MSwxNS4xNjgyLDE4LjExNTQsMjkuMDY2Yy03Ljg0MzYsNy40NS0xNi41NjYzLDE1LjU3OTEtMTguMTA4OCwyNi44Ny0uMTE1Ny44MjUzLDEuMzI2NSwxLjk3NDQsMS43NDMsMi4zMTM4YTQwLjc5OSw0MC43OTksMCwwLDAsNS4zMTM5LDQuMDU2Nyw0NC4yMTc0LDQ0LjIxNzQsMCwwLDAsNS43NjExLDMuMzRjLjY0LjI5MzEsMi4xNzUsMS4yMDMxLDIuODQ1OS42ODY0bDIuMDc0Ny0xLjU1NzljMS40NSwxLjg1ODcsNS45Njk0LDQuNzIsNi42NzEyLDUuMTc1bDEuNDg4NS45NTY0QzI0LjQwMSw3Mi43NjQ3LDIyLjkyLDc0LjYzMTEsMjEuNDcsNzYuNTI4M2MtLjkxLDEuMTg3OCw2LjI2MjUsNS44NjE1LDcuMDQ5Miw2LjM3YTQ0LjE2MzMsNDQuMTYzMywwLDAsMCw1Ljc2MTEsMy4zMzE4Yy42MDE2LjI3NzYsMi4yMjg5LDEuMjM0LDIuODQ1OS42OTQxbDkuMjU1LTguMDk4Yy44MjUyLDIuNTY4MiwxNC41Njg3LDExLjYzLDE1LjY3MTYsOS45NzIxTDkxLjA2LDQ1LjM2MjRDOTEuNjkyLDQ0LjQxMzgsODYuNzI1Miw0MC4zMjYyLDgyLjE3NDksMzcuNTI2NloiLz48L3N2Zz4=",type:"sketch"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwb2x5Z29uIHBvaW50cz0iNzcuMjU1IDQ0LjUwNSA1MS41IDAgMjUuNzU1IDQ0LjUwNSAwIDg5IDUxLjUgODkgMTAzIDg5IDc3LjI1NSA0NC41MDUiLz48L3N2Zz4=",type:"triangle"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjEuMDAwMiIgaGVpZ2h0PSI4OSIgdmlld0JveD0iMCAwIDEyMS4wMDAyIDg5Ij48cGF0aCBkPSJNMTAwLjAxNiw3LjM5NzJDOTAuMjQ1MiwxLjIyLDczLjMwODQtMy42NjYzLDY0LjQyNTUsMy43MTI2LDU2Ljk4MzYsOS44OSw2Mi4wNDY5LDE4LjkxNzQsNTUuMDEsMjUuMzAzMmMtMTAuNiw5LjYxMzQtMjguMTU4OS01LjQ0MjMtNDEuODU4NCwyLjYzMThDLjY3NTcsMzUuMjU0My00LjI3OTEsNTkuMTQ4OSw0LjI3ODEsNzMuNzk3NWMxMy4xMzY5LDIyLjUyNCw1My4xMywxMy44NTQxLDYxLjE5MzYsMTIuMTA2MSw0LjUwMDctLjk5MzEsNTMuNDk1My0xMi4yNjUsNTUuNDY5My00Mi43MDQzQzEyMS44OTgsMjguMjUyOCwxMTEuMSwxNC40MTg1LDEwMC4wMTYsNy4zOTcyWiIvPjwvc3ZnPg==",type:"blob"},{svg:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDMiIGhlaWdodD0iODkiIHZpZXdCb3g9IjAgMCAxMDMgODkiPjxwYXRoIGQ9Ik03Ny4yMTE0LDBIMjUuNzUyM0wwLDQ0LjUwNDUsMjUuNzUyMyw4OUg3Ny4yMTE0TDEwMyw0NC41MDQ1Wk02MS43NjkxLDYyLjI2MUg0MS4yMjE4TDMwLjkzOTEsNDQuNTA0NSw0MS4yMjE4LDI2LjczOUg2MS43NjkxTDcyLjA1MTksNDQuNTA0NVoiLz48L3N2Zz4=",type:"hexagon"}].find((t=>t.type===o))).svg})`};\n\t\t-webkit-mask-size: ${"custom"===n.type?n.scale:n.type};\n\t\t${"custom"===i.type?`${l("-webkit-mask-position-x",i.x)}\n\t\t\t${l("-webkit-mask-position-y",i.y)}`:`${l("-webkit-mask-position",i.type)}`}\n\t\t${"cover"!==n.type?`-webkit-mask-repeat: ${s};`:""}`:"";var o})(x),z=m(c).tablet+v(M).tablet+_(T,o).tablet,A=m(c).mobile+v(M).mobile+_(T,o).mobile,E=g(b).normal,N=g(b).hover,L=_(T,o).desktop;return`\n\t\t${C||E?`${O} {\n\t\t\t${C}\n\t\t\t${E}\n\t\t}`:""}\n\t\t${N?`${O}:hover {\n\t\t\t${N}\n\t\t}`:""}\n\n\t\t${L?`${e} {\n\t\t\t${O}{\n\t\t\t\t${L}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${z?`${r} {\n\t\t\t${O}{\n\t\t\t\t${z}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${A?`${n} {\n\t\t\t${O}{\n\t\t\t\t${A}\n\t\t\t}\n\t\t}`:""}\n\n\t\t${h(y?.normal,O)}\n\t\t${h(y?.hover,O,!0)}\n\t\t${p(y?.overlay,O)}\n\t\t${p(y?.hoverOverlay,O,!0)}\n\t\t${s(f?.normal)?d(f?.normal,O):""}\n\t\t${s(f?.hover)?d(f?.hover,O,!0):""}\n\t\t${((t,e)=>{const{desktop:i={},tablet:s={},mobile:o={}}=t,a=(t={})=>`\n\t\t${e}{\n\t\t\t${l("position",t?.type)}\n\t\t\t${l("left",t?.horizontal?.left)}\n\t\t\t${l("right",t?.horizontal?.right)}\n\t\t\t${l("top",t?.vertical?.top)}\n\t\t\t${l("bottom",t?.vertical?.bottom)}\n\t\t}\n\t`;return`\n\t\t\n\t\t${i?.type?a(i):""}\n\t\t\n\t\t${r}{\n\t\t\t${s?.type?a(s):""}\n\t\t}\n\n\t\t${n}{\n\t\t\t${o?.type?a(o):""}\n\t\t}\n\t`})(k,O)}\n\t\t${((t,e,r="")=>{ | |
| 3 | +const{translate:n={},rotate:i={},scale:o={},isEnabled:a=!1}=t||{};if(!a)return"";const l=[],u=[];return[{name:"Translate",property:"translate",values:n,value:t=>["x","y"].some((e=>s(n?.[e]?.[t])))?`${n?.x?.[t]||0}px ${n?.y?.[t]||0}px`:""},{name:"Rotate",property:"transform",values:i,value:t=>["x","y","z"].filter((e=>s(i?.[e]?.[t]))).map((e=>`rotate${e.toUpperCase()}(${i[e][t]}deg)`)).join(" ")},{name:"Scale",property:"scale",values:o,value:t=>{const e=o?.y?.[t],r=o?.z?.[t];return s(e)||s(r)?s(r)?`1 ${s(e)?e:1} ${r}`:`1 ${e}`:""}}].forEach((({name:t,property:e,values:n,value:i})=>{const s=i("from"),o=i("to");if(!s||!o)return;const a=Number(n?.duration)>0?Number(n.duration):1e3,c=Number(n?.delay)>0?Number(n.delay):0,f=`advFloat${t}${r?`-${r}`:""}`;l.push(`@keyframes ${f}{ from{ ${e}: ${s}; } to{ ${e}: ${o}; } }`),u.push(`${f} ${a}ms ease-in-out ${c}ms infinite alternate`)})),u.length?`\n\t\t${l.join(" ")}\n\t\t${e}{\n\t\t\tanimation: ${u.join(", ")};\n\t\t}\n\t`:""})($,O,t)}\n\t\t${((t,i,o)=>{const{isEnable:a=!1,vertical:l={},horizontal:u={},transparency:c={},blur:f={},rotate:h={},scale:p={},effectsRelativeTo:d="viewport",effectOn:m=["desktop","tablet-portrait","mobile-portrait"],isMouseEffect:g=!1,mouseTrack:v={},tilt:_={},sticky:y={}}=t||{},b=(t,e)=>s(t)&&!isNaN(t)?Number(t):e,x="viewport"===d,w=x?"view()":"scroll(nearest block)",M=[],T=[],k=[],$=[],D=String(o??"").replace(/[^a-zA-Z0-9]/g,""),S=(t,e,r)=>{M.push(`@keyframes advMe${t}${D}{ ${e} }`),T.push(`advMe${t}${D}`),k.push(w),$.push((t=>{const e=b(t?.top,0),r=b(t?.bottom,100),n=Math.min(e,r),i=Math.max(e,r);return x?`cover ${n}% ${i>=90?"contain 100%":`cover ${i}%`}`:`min(${3*n}vh, ${n}%) min(${3*i}vh, ${i}%)`})(r))};if(a){const t=l?.direction,e=u?.direction,r=t?100*b(l?.speed,4):0,n=e?100*b(u?.speed,4):0;if(r||n){const i="up"===t?-r:r,s="to-left"===e?-n:n,o=[r&&l,n&&u].filter(Boolean);S("Translate",`from{ translate: 0px 0px; } to{ translate: ${s}px ${i}px; }`,{top:Math.min(...o.map((t=>b(t?.top,0)))),bottom:Math.max(...o.map((t=>b(t?.bottom,100))))})}const i=c?.direction;if(i){const t=Math.max(0,1-b(c?.level,5)/10),e={"fade-in":`from{ opacity: ${t}; } to{ opacity: 1; }`,"fade-out":`from{ opacity: 1; } to{ opacity: ${t}; }`,"fade-out-in":`0%{ opacity: 1; } 50%{ opacity: ${t}; } 100%{ opacity: 1; }`,"fade-in-out":`0%{ opacity: ${t}; } 50%{ opacity: 1; } 100%{ opacity: ${t}; }`}[i];e&&S("Opacity",e,c)}const s=f?.direction;if(s){const t=3*b(f?.level,4),e={"fade-in":`from{ filter: blur(${t}px); } to{ filter: blur(0px); }`,"fade-out":`from{ filter: blur(0px); } to{ filter: blur(${t}px); }`,"fade-out-in":`0%{ filter: blur(0px); } 50%{ filter: blur(${t}px); } 100%{ filter: blur(0px); }`,"fade-in-out":`0%{ filter: blur(${t}px); } 50%{ filter: blur(0px); } 100%{ filter: blur(${t}px); }`}[s];e&&S("Blur",e,f)}const o=h?.direction;if(o){const t=20*b(h?.level,4);S("Rotate",`from{ rotate: 0deg; } to{ rotate: ${"to-left"===o?-t:t}deg; }`,h)}if(p?.direction){const t=.15*b(p?.level,4),e=Math.max(0,1-t),r=1+t,n={"scale-up":`from{ scale: 1; } to{ scale: ${r}; }`,"scale-down":`from{ scale: 1; } to{ scale: ${e}; }`,"scale-down-up":`0%{ scale: 1; } 50%{ scale: ${e}; } 100%{ scale: 1; }`,"scale-up-down":`0%{ scale: 1; } 50%{ scale: ${r}; } 100%{ scale: 1; }`}[p.direction];n&&S("Scale",n,p)}}const O=[];if(g){if(v?.direction){const t="direct"===v?.direction?100:-100;O.push(((e,r)=>`translate(${(e*t).toFixed(2)}px, ${(r*t).toFixed(2)}px)`))}if(_?.direction){const t=12*("direct"===_?.direction?1:-1);O.push(((e,r)=>`perspective(1000px) rotateX(${(r*-t).toFixed(2)}deg) rotateY(${(e*t).toFixed(2)}deg)`))}}const C=(t,e,r)=>{if(!t||!t.defaultView)return;const n=t.defaultView,s=t.bPlMouse||(t.bPlMouse={x:0,y:0,items:new Map,frame:0,last:0}),o=s.items.get(i)||{x:0,y:0};if(o.rate=e,o.build=r,s.items.set(i,o),s.bound)return;s.bound=!0;const a=e=>{const r=s.last?Math.min(e-s.last,100):16.7;s.last=e;let i=!1;s.items.forEach(((e,n)=>{const o=e.el&&e.el.isConnected?e.el:t.querySelector(n);if(!o)return;e.el=o;const a=e.rate*r/1e3,l=s.x-e.x,u=s.y-e.y,c=Math.sqrt(l*l+u*u);c<=a?(e.x=s.x,e.y=s.y):(e.x+=l/c*a,e.y+=u/c*a,i=!0),o.style.transform=e.build(e.x,e.y)})),s.frame=i?n.requestAnimationFrame(a):0,s.last=i?e:0};t.addEventListener("pointermove",(t=>{s.x=2*(t.clientX/n.innerWidth-.5),s.y=2*(t.clientY/n.innerHeight-.5),s.frame||(s.frame=n.requestAnimationFrame(a))}))};if(O.length&&"undefined"!=typeof document){const t=Math.max(.25,1.5*b(v?.speed,b(_?.speed,4))),e=(t,e)=>O.map((r=>r(t,e))).join(" ");C(document,t,e),C(document.querySelector('iframe[name="editor-canvas"]')?.contentDocument,t,e)}const z=t=>y?.[t]||("desktop"===t?y?.undefined:""),A=i.split(">")[0],E=t=>{const e=z(t);return e?`position: sticky; ${e}: 0; z-index: 9;`:(t=>"tablet"===t?z("desktop"):"mobile"===t?z("tablet")||z("desktop"):"")(t)?"position: static;":""},N=Array.isArray(m)?m:s(m)?[m]:[],L=t=>!N.length||N.includes(t)?"":`${i}{ animation-name: none; }`;return`\n\t\t${T.length?`\n\t\t${M.join(" ")}\n\t\t@supports (animation-timeline: scroll()){\n\t\t\t${i}{\n\t\t\t\tanimation-name: ${T.join(", ")};\n\t\t\t\tanimation-duration: ${T.map((()=>"auto")).join(", ")};\n\t\t\t\tanimation-timing-function: ${T.map((()=>"linear")).join(", ")};\n\t\t\t\tanimation-fill-mode: ${T.map((()=>"both")).join(", ")};\n\t\t\t\tanimation-direction: ${T.map((()=>x?"normal":"reverse")).join(", ")};\n\t\t\t\tanimation-timeline: ${k.join(", ")};\n\t\t\t\tanimation-range: ${$.join(", ")};\n\t\t\t}\n\t\t\t${L("desktop")?`${e}{ ${L("desktop")} }`:""}\n\t\t\t${L("tablet-portrait")?`@media only screen and (min-width: 641px) and (max-width: 1024px){ ${L("tablet-portrait")} }`:""}\n\t\t\t${L("mobile-portrait")?`${n}{ ${L("mobile-portrait")} }`:""}\n\t\t}\n\t`:""}\n\t\t${O.length?`${i}{ transition-property: background, border, border-radius, box-shadow; }`:""}\n\t\t${E("desktop")?`${A}{ ${E("desktop")} }`:""}\n\t\t${E("tablet")?`${r}{ ${A}{ ${E("tablet")} } }`:""}\n\t\t${E("mobile")?`${n}{ ${A}{ ${E("mobile")} } }`:""}\n\t`})(D,O,t)}\n\t\t${S}\n\t`.replace(/\s+/g," ")},b=window.ReactJSXRuntime,x=({attributes:t,id:e,isBackend:i=!1})=>{const{styles:s,options:o,advanced:a}=t,{responsive:u}=o,c=`#${e} .b-blocks-stackedCardsMainWrapper .bBlocksStackedSingleCard`,f=`${c} .bBlocksContainer .bBlocksContainerContent`;return(0,b.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${c}{\n\t\t\t${i?"":l("top",s.stickyTop+"px")}\n\t\t\t${i?"":l("position",u.desktop?"unset":"sticky")}\n\t\t\t${u.desktop?"transform: scale(1) !important;":""}\n\n\t\t}\n\t\t${c}:last-child{\n\t\t\t${l("margin-bottom","0px")}\n\t\t}\n\t\t${f}{\n\t\t\t${i?"":l("height",s.desktop.height)}\n\t\t}\n\t\t${r}{\n\t\t\t${c}{\n\t\t\t\t${i?"":l("position",u.tablet?"unset":"sticky")}\n\t\t\t\t${u.tablet?"transform: scale(1) !important;":""}\n\t\t\t}\n\t\t\t${f}{\n\t\t\t\t${i?"":l("height",s.tablet.height)}\n\t\t\t}\n\t\t}\n\n\t\t${n}{\n\t\t\t${c}{\n\t\t\t\t${i?"":l("position",u.mobile?"unset":"sticky")}\n\t\t\t\t${u.desktop?"transform: scale(1) !important;":""}\n\t\t\t}\n\t\t\t${f}{\n\t\t\t\t${i?"":l("height",s.mobile.height)}\n\t\t\t}\n\t\t}\n\n\t\t${y(e,a,i)}\n\t`}})};function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function M(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var T,k,$,D,S,O,C,z,A,E,N,L,j,P,I,R,Y,U={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},F={duration:.5,overwrite:!1,delay:0},B=1e8,X=1e-8,Q=2*Math.PI,H=Q/4,W=0,q=Math.sqrt,V=Math.cos,Z=Math.sin,G=function(t){return"string"==typeof t},J=function(t){return"function"==typeof t},K=function(t){return"number"==typeof t},tt=function(t){return void 0===t},et=function(t){return"object"==typeof t},rt=function(t){return!1!==t},nt=function(){return"undefined"!=typeof window},it=function(t){return J(t)||G(t) | |
| 4 | +},st="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},ot=Array.isArray,at=/(?:-?\.?\d|\.)+/gi,lt=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ut=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ct=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ft=/[+-]=-?[.\d]+/,ht=/[^,'"\[\]\s]+/gi,pt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,dt={},mt={},gt=function(t){return(mt=Qt(t,dt))&&Qr},vt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},_t=function(t,e){return!e&&console.warn(t)},yt=function(t,e){return t&&(dt[t]=e)&&mt&&(mt[t]=e)||dt},bt=function(){return 0},xt={suppressEvents:!0,isStart:!0,kill:!1},wt={suppressEvents:!0,kill:!1},Mt={suppressEvents:!0},Tt={},kt=[],$t={},Dt={},St={},Ot=30,Ct=[],zt="",At=function(t){var e,r,n=t[0];if(et(n)||J(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=Ct.length;r--&&!Ct[r].targetTest(n););e=Ct[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new sr(t[r],e)))||t.splice(r,1);return t},Et=function(t){return t._gsap||At(we(t))[0]._gsap},Nt=function(t,e,r){return(r=t[e])&&J(r)?t[e]():tt(r)&&t.getAttribute&&t.getAttribute(e)||r},Lt=function(t,e){return(t=t.split(",")).forEach(e)||t},jt=function(t){return Math.round(1e5*t)/1e5||0},Pt=function(t){return Math.round(1e7*t)/1e7||0},It=function(t,e){var r=e.charAt(0),n=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+n:"-"===r?t-n:"*"===r?t*n:t/n},Rt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},Yt=function(){var t,e,r=kt.length,n=kt.slice(0);for($t={},kt.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ut=function(t,e,r,n){kt.length&&!k&&Yt(),t.render(e,r,n||k&&e<0&&(t._initted||t._startAt)),kt.length&&!k&&Yt()},Ft=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(ht).length<2?e:G(t)?t.trim():t},Bt=function(t){return t},Xt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Qt=function(t,e){for(var r in e)t[r]=e[r];return t},Ht=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=et(r[n])?t(e[n]||(e[n]={}),r[n]):r[n]);return e},Wt=function(t,e){var r,n={};for(r in t)r in e||(n[r]=t[r]);return n},qt=function(t){var e,r=t.parent||D,n=t.keyframes?(e=ot(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):Xt;if(rt(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Vt=function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var s,o=t[n];if(i)for(s=e[i];o&&o[i]>s;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=o,e.parent=e._dp=t,e},Zt=function(t,e,r,n){void 0===r&&(r="_first"),void 0===n&&(n="_last");var i=e._prev,s=e._next;i?i._next=s:t[r]===e&&(t[r]=s),s?s._prev=i:t[n]===e&&(t[n]=i),e._next=e._prev=e.parent=null},Gt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Jt=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Kt=function(t,e,r,n){return t._startAt&&(k?t._startAt.revert(wt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,n))},te=function t(e){return!e||e._ts&&t(e.parent)},ee=function(t){return t._repeat?re(t._tTime,t=t.duration()+t._rDelay)*t:0},re=function(t,e){var r=Math.floor(t=Pt(t/e));return t&&r===t?r-1:r},ne=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ie=function(t){return t._end=Pt(t._start+(t._tDur/Math.abs(t._ts||t._rts||X)||0))},se=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Pt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ie(t),r._dirty||Jt(r,t)),t},oe=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(r=ne(t.rawTime(),e),(!e._dur||_e(0,e.totalDuration(),r)-e._tTime>X)&&e.render(r,!0)),Jt(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(r=t;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},ae=function(t,e,r,n){return e.parent&&Gt(e),e._start=Pt((K(r)?r:r||t!==D?me(t,r,e):t._time)+e._delay),e._end=Pt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Vt(t,e,"_first","_last",t._sort?"_start":0),fe(e)||(t._recent=e),n||oe(t,e),t._ts<0&&se(t,t._tTime),t},le=function(t,e){return(dt.ScrollTrigger||vt("scrollTrigger",e))&&dt.ScrollTrigger.create(e,t)},ue=function(t,e,r,n,i){return pr(t,e,i),t._initted?!r&&t._pt&&!k&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&A!==He.frame?(kt.push(t),t._lazy=[i,n],1):void 0:1},ce=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},fe=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},he=function(t,e,r,n){var i=t._repeat,s=Pt(e)||0,o=t._tTime/t._tDur;return o&&!n&&(t._time*=s/t._dur),t._dur=s,t._tDur=i?i<0?1e10:Pt(s*(i+1)+t._rDelay*i):s,o>0&&!n&&se(t,t._tTime=t._tDur*o),t.parent&&ie(t),r||Jt(t.parent,t),t},pe=function(t){return t instanceof ar?Jt(t):he(t,t._dur)},de={_start:0,endTime:bt,totalDuration:bt},me=function t(e,r,n){var i,s,o,a=e.labels,l=e._recent||de,u=e.duration()>=B?l.endTime(!1):e._dur;return G(r)&&(isNaN(r)||r in a)?(s=r.charAt(0),o="%"===r.substr(-1),i=r.indexOf("="),"<"===s||">"===s?(i>=0&&(r=r.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(r.substr(1))||0)*(o?(i<0?l:n).totalDuration()/100:1)):i<0?(r in a||(a[r]=u),a[r]):(s=parseFloat(r.charAt(i-1)+r.substr(i+1)),o&&n&&(s=s/100*(ot(n)?n[0]:n).totalDuration()),i>1?t(e,r.substr(0,i-1),n)+s:u+s)):null==r?u:+r},ge=function(t,e,r){var n,i,s=K(e[1]),o=(s?2:1)+(t<2?0:1),a=e[o];if(s&&(a.duration=e[1]),a.parent=r,t){for(n=a,i=r;i&&!("immediateRender"in n);)n=i.vars.defaults||{},i=rt(i.vars.inherit)&&i.parent;a.immediateRender=rt(n.immediateRender),t<2?a.runBackwards=1:a.startAt=e[o-1]}return new _r(e[0],a,e[o+1])},ve=function(t,e){return t||0===t?e(t):e},_e=function(t,e,r){return r<t?t:r>e?e:r},ye=function(t,e){return G(t)&&(e=pt.exec(t))?e[1]:""},be=[].slice,xe=function(t,e){return t&&et(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&et(t[0]))&&!t.nodeType&&t!==S},we=function(t,e,r){return $&&!e&&$.selector?$.selector(t):!G(t)||r||!O&&We()?ot(t)?function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return G(t)&&!e||xe(t,1)?(n=r).push.apply(n,we(t)):r.push(t)}))||r}(t,r):xe(t)?be.call(t,0):t?[t]:[]:be.call((e||C).querySelectorAll(t),0)},Me=function(t){return t=we(t)[0]||_t("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return we(e,r.querySelectorAll?r:r===t?_t("Invalid scope")||C.createElement("div"):t)}},Te=function(t){return t.sort((function(){return.5-Math.random()}))},ke=function(t){if(J(t))return t;var e=et(t)?t:{each:t},r=tr(e.ease),n=e.from||0,i=parseFloat(e.base)||0,s={},o=n>0&&n<1,a=isNaN(n)||o,l=e.axis,u=n,c=n;return G(n)?u=c={center:.5,edges:.5,end:1}[n]||0:!o&&a&&(u=n[0],c=n[1]),function(t,o,f){var h,p,d,m,g,v,_,y,b,x=(f||e).length,w=s[x];if(!w){if(!(b="auto"===e.grid?0:(e.grid||[1,B])[1])){for(_=-B;_<(_=f[b++].getBoundingClientRect().left)&&b<x;);b<x&&b--}for(w=s[x]=[],h=a?Math.min(b,x)*u-.5:n%b,p=b===B?0:a?x*c/b-.5:n/b|0,_=0,y=B,v=0;v<x;v++)d=v%b-h,m=p-(v/b|0),w[v]=g=l?Math.abs("y"===l?m:d):q(d*d+m*m),g>_&&(_=g),g<y&&(y=g);"random"===n&&Te(w),w.max=_-y,w.min=y,w.v=x=(parseFloat(e.amount)||parseFloat(e.each)*(b>x?x-1:l?"y"===l?x/b:b:Math.max(b,x/b))||0)*("edges"===n?-1:1),w.b=x<0?i-x:i,w.u=ye(e.amount||e.each)||0,r=r&&x<0?Je(r):r}return x=(w[t]-w.min)/w.max||0,Pt(w.b+(r?r(x):x)*w.v)+w.u}},$e=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var n=Pt(Math.round(parseFloat(r)/t)*t*e);return(n-n%1)/e+(K(r)?0:ye(r))}},De=function(t,e){var r,n,i=ot(t);return!i&&et(t)&&(r=i=t.radius||B,t.values?(t=we(t.values),(n=!K(t[0]))&&(r*=r)):t=$e(t.increment)),ve(e,i?J(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){ | |
| 5 | +for(var i,s,o=parseFloat(n?e.x:e),a=parseFloat(n?e.y:0),l=B,u=0,c=t.length;c--;)(i=n?(i=t[c].x-o)*i+(s=t[c].y-a)*s:Math.abs(t[c]-o))<l&&(l=i,u=c);return u=!r||l<=r?t[u]:e,n||u===e||K(e)?u:u+ye(e)}:$e(t))},Se=function(t,e,r,n){return ve(ot(t)?!e:!0===r?!!(r=0):!n,(function(){return ot(t)?t[~~(Math.random()*t.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((t-r/2+Math.random()*(e-t+.99*r))/r)*r*n)/n}))},Oe=function(t,e,r){return ve(r,(function(r){return t[~~e(r)]}))},Ce=function(t){for(var e,r,n,i,s=0,o="";~(e=t.indexOf("random(",s));)n=t.indexOf(")",e),i="["===t.charAt(e+7),r=t.substr(e+7,n-e-7).match(i?ht:at),o+=t.substr(s,e-s)+Se(i?r:+r[0],i?0:+r[1],+r[2]||1e-5),s=n+1;return o+t.substr(s,t.length-s)},ze=function(t,e,r,n,i){var s=e-t,o=n-r;return ve(i,(function(e){return r+((e-t)/s*o||0)}))},Ae=function(t,e,r){var n,i,s,o=t.labels,a=B;for(n in o)(i=o[n]-e)<0==!!r&&i&&a>(i=Math.abs(i))&&(s=n,a=i);return s},Ee=function(t,e,r){var n,i,s,o=t.vars,a=o[e],l=$,u=t._ctx;if(a)return n=o[e+"Params"],i=o.callbackScope||t,r&&kt.length&&Yt(),u&&($=u),s=n?a.apply(i,n):a.call(i),$=l,s},Ne=function(t){return Gt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!k),t.progress()<1&&Ee(t,"onInterrupt"),t},Le=[],je=function(t){if(t)if(t=!t.name&&t.default||t,nt()||t.headless){var e=t.name,r=J(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:bt,render:Dr,add:fr,kill:Or,modifier:Sr,rawVars:0},s={targetTest:0,get:0,getSetter:Mr,aliases:{},register:0};if(We(),t!==n){if(Dt[e])return;Xt(n,Xt(Wt(t,i),s)),Qt(n.prototype,Qt(i,Wt(t,s))),Dt[n.prop=e]=n,t.targetTest&&(Ct.push(n),Tt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}yt(e,n),t.register&&t.register(Qr,n,Ar)}else Le.push(t)},Pe=255,Ie={aqua:[0,Pe,Pe],lime:[0,Pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Pe],navy:[0,0,128],white:[Pe,Pe,Pe],olive:[128,128,0],yellow:[Pe,Pe,0],orange:[Pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Pe,0,0],pink:[Pe,192,203],cyan:[0,Pe,Pe],transparent:[Pe,Pe,Pe,0]},Re=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*Pe+.5|0},Ye=function(t,e,r){var n,i,s,o,a,l,u,c,f,h,p=t?K(t)?[t>>16,t>>8&Pe,t&Pe]:0:Ie.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ie[t])p=Ie[t];else if("#"===t.charAt(0)){if(t.length<6&&(n=t.charAt(1),i=t.charAt(2),s=t.charAt(3),t="#"+n+n+i+i+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&Pe,p&Pe,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&Pe,t&Pe]}else if("hsl"===t.substr(0,3))if(p=h=t.match(at),e){if(~t.indexOf("="))return p=t.match(lt),r&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,a=+p[1]/100,n=2*(l=+p[2]/100)-(i=l<=.5?l*(a+1):l+a-l*a),p.length>3&&(p[3]*=1),p[0]=Re(o+1/3,n,i),p[1]=Re(o,n,i),p[2]=Re(o-1/3,n,i);else p=t.match(at)||Ie.transparent;p=p.map(Number)}return e&&!h&&(n=p[0]/Pe,i=p[1]/Pe,s=p[2]/Pe,l=((u=Math.max(n,i,s))+(c=Math.min(n,i,s)))/2,u===c?o=a=0:(f=u-c,a=l>.5?f/(2-u-c):f/(u+c),o=u===n?(i-s)/f+(i<s?6:0):u===i?(s-n)/f+2:(n-i)/f+4,o*=60),p[0]=~~(o+.5),p[1]=~~(100*a+.5),p[2]=~~(100*l+.5)),r&&p.length<4&&(p[3]=1),p},Ue=function(t){var e=[],r=[],n=-1;return t.split(Be).forEach((function(t){var i=t.match(ut)||[];e.push.apply(e,i),r.push(n+=i.length+1)})),e.c=r,e},Fe=function(t,e,r){var n,i,s,o,a="",l=(t+a).match(Be),u=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=Ye(t,e,1))&&u+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),r&&(s=Ue(t),(n=r.c).join(a)!==s.c.join(a)))for(o=(i=t.replace(Be,"1").split(ut)).length-1;c<o;c++)a+=i[c]+(~n.indexOf(c)?l.shift()||u+"0,0,0,0)":(s.length?s:l.length?l:r).shift());if(!i)for(o=(i=t.split(Be)).length-1;c<o;c++)a+=i[c]+l[c];return a+i[o]},Be=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ie)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Xe=/hsl[a]?\(/,Qe=function(t){var e,r=t.join(" ");if(Be.lastIndex=0,Be.test(r))return e=Xe.test(r),t[1]=Fe(t[1],e),t[0]=Fe(t[0],e,Ue(t[1])),!0},He=function(){var t,e,r,n,i,s,o=Date.now,a=500,l=33,u=o(),c=u,f=1e3/240,h=f,p=[],d=function r(d){var m,g,v,_,y=o()-c,b=!0===d;if((y>a||y<0)&&(u+=y-l),((m=(v=(c+=y)-u)-h)>0||b)&&(_=++n.frame,i=v-1e3*n.time,n.time=v/=1e3,h+=m+(m>=f?4:f-m),g=1),b||(t=e(r)),g)for(s=0;s<p.length;s++)p[s](v,i,_,d)};return n={time:0,frame:0,tick:function(){d(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){z&&(!O&&nt()&&(S=O=window,C=S.document||{},dt.gsap=Qr,(S.gsapVersions||(S.gsapVersions=[])).push(Qr.version),gt(mt||S.GreenSockGlobals||!S.gsap&&S||{}),Le.forEach(je)),r="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&n.sleep(),e=r||function(t){return setTimeout(t,h-1e3*n.time+1|0)},N=1,d(2))},sleep:function(){(r?cancelAnimationFrame:clearTimeout)(t),N=0,e=bt},lagSmoothing:function(t,e){a=t||1/0,l=Math.min(e||33,a)},fps:function(t){f=1e3/(t||240),h=1e3*n.time+f},add:function(t,e,r){var i=e?function(e,r,s,o){t(e,r,s,o),n.remove(i)}:t;return n.remove(t),p[r?"unshift":"push"](i),We(),i},remove:function(t,e){~(e=p.indexOf(t))&&p.splice(e,1)&&s>=e&&s--},_listeners:p}}(),We=function(){return!N&&He.wake()},qe={},Ve=/^[\d.\-M][\d.\-,\s]/,Ze=/["']/g,Ge=function(t){for(var e,r,n,i={},s=t.substr(1,t.length-3).split(":"),o=s[0],a=1,l=s.length;a<l;a++)r=s[a],e=a!==l-1?r.lastIndexOf(","):r.length,n=r.substr(0,e),i[o]=isNaN(n)?n.replace(Ze,"").trim():+n,o=r.substr(e+1).trim();return i},Je=function(t){return function(e){return 1-t(1-e)}},Ke=function t(e,r){for(var n,i=e._first;i;)i instanceof ar?t(i,r):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===r||(i.timeline?t(i.timeline,r):(n=i._ease,i._ease=i._yEase,i._yEase=n,i._yoyo=r)),i=i._next},tr=function(t,e){return t&&(J(t)?t:qe[t]||function(t){var e,r,n,i,s=(t+"").split("("),o=qe[s[0]];return o&&s.length>1&&o.config?o.config.apply(null,~t.indexOf("{")?[Ge(s[1])]:(e=t,r=e.indexOf("(")+1,n=e.indexOf(")"),i=e.indexOf("(",r),e.substring(r,~i&&i<n?e.indexOf(")",n+1):n)).split(",").map(Ft)):qe._CE&&Ve.test(t)?qe._CE("",t):o}(t))||e},er=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,s={easeIn:e,easeOut:r,easeInOut:n};return Lt(t,(function(t){for(var e in qe[t]=dt[t]=s,qe[i=t.toLowerCase()]=r,s)qe[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=qe[t+"."+e]=s[e]})),s},rr=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},nr=function t(e,r,n){var i=r>=1?r:1,s=(n||(e?.3:.45))/(r<1?r:1),o=s/Q*(Math.asin(1/i)||0),a=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Z((t-o)*s)+1},l="out"===e?a:"in"===e?function(t){return 1-a(1-t)}:rr(a);return s=Q/s,l.config=function(r,n){return t(e,r,n)},l},ir=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:rr(n);return i.config=function(r){return t(e,r)},i};Lt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;er(t+",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(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),qe.Linear.easeNone=qe.none=qe.Linear.easeIn,er("Elastic",nr("in"),nr("out"),nr()),L=7.5625,I=2*(P=1/(j=2.75)),R=2.5*P,er("Bounce",(function(t){return 1-Y(1-t)}),Y=function(t){return t<P?L*t*t:t<I?L*Math.pow(t-1.5/j,2)+.75:t<R?L*(t-=2.25/j)*t+.9375:L*Math.pow(t-2.625/j,2)+.984375}),er("Expo",(function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)})),er("Circ",(function(t){return-(q(1-t*t)-1)})),er("Sine",(function(t){return 1===t?1:1-V(t*H)})),er("Back",ir("in"),ir("out"),ir()),qe.SteppedEase=qe.steps=dt.SteppedEase={config:function(t,e){void 0===t&&(t=1);var r=1/t,n=t+(e?0:1),i=e?1:0;return function(t){return((n*_e(0,.99999999,t)|0)+i)*r}}},F.ease=qe["quad.out"], | |
| 6 | +Lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return zt+=t+","+t+"Params,"}));var sr=function(t,e){this.id=W++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Nt,this.set=e?e.getSetter:Mr},or=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,he(this,+t.duration,1,1),this.data=t.data,$&&(this._ctx=$,$.data.push(this)),N||He.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(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,he(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(We(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(se(this,t),!r._dp||r.parent||oe(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ae(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===X||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ut(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+ee(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+ee(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?re(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?ne(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(_e(-Math.abs(this._delay),this._tDur,r),!1!==e),ie(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):(We(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==X&&(this._tTime-=X)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ae(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(rt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ne(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Mt);var e=k;return k=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),k=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,pe(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,pe(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(me(this,t),rt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,rt(e)),this._dur||(this._zTime=-1e-8),this},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),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?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t<this.endTime(!0)-X))},e.eventCallback=function(t,e,r){var n=this.vars;return arguments.length>1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=J(t)?t:Bt,i=function(){var t=e.then;e.then=null,J(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ne(this)},t}();Xt(or.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:-1e-8,_prom:0,_ps:!1,_rts:1});var ar=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=rt(e.sortChildren),D&&ae(e.parent||D,w(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&le(w(n),e.scrollTrigger),n}M(e,t);var r=e.prototype;return r.to=function(t,e,r){return ge(0,arguments,this),this},r.from=function(t,e,r){return ge(1,arguments,this),this},r.fromTo=function(t,e,r,n){return ge(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,qt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new _r(t,e,me(this,r),1),this},r.call=function(t,e,r){return ae(this,_r.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,n,i,s,o){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=s,r.onCompleteParams=o,r.parent=this,new _r(t,r,me(this,i)),this},r.staggerFrom=function(t,e,r,n,i,s,o){return r.runBackwards=1,qt(r).immediateRender=rt(r.immediateRender),this.staggerTo(t,e,r,n,i,s,o)},r.staggerFromTo=function(t,e,r,n,i,s,o,a){return n.startAt=r,qt(n).immediateRender=rt(n.immediateRender),this.staggerTo(t,e,n,i,s,o,a)},r.render=function(t,e,r){var n,i,s,o,a,l,u,c,f,h,p,d,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,_=t<=0?0:Pt(t),y=this._zTime<0!=t<0&&(this._initted||!v);if(this!==D&&_>g&&t>=0&&(_=g),_!==this._tTime||r||y){if(m!==this._time&&v&&(_+=this._time-m,t+=this._time-m),n=_,f=this._start,l=!(c=this._ts),y&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,a=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*a+t,e,r);if(n=Pt(_%a),_===g?(o=this._repeat,n=v):((o=~~(h=Pt(_/a)))&&o===h&&(n=v,o--),n>v&&(n=v)),h=re(this._tTime,a),!m&&this._tTime&&h!==o&&this._tTime-h*a-this._dur<=0&&(h=o),p&&1&o&&(n=v-n,d=1),o!==h&&!this._lock){var b=p&&1&h,x=b===(p&&1&o);if(o<h&&(b=!b),m=b?0:_%v?v:_,this._lock=1,this.render(m||(d?0:Pt(o*a)),e,!v)._lock=0,this._tTime=_,!e&&this.parent&&Ee(this,"onRepeat"),this.vars.repeatRefresh&&!d&&(this.invalidate()._lock=1), | |
| 7 | +m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,x&&(this._lock=2,m=b?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!d&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Ke(this,d)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(u=function(t,e,r){var n;if(r>e)for(n=t._first;n&&n._start<=r;){if("isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if("isPause"===n.data&&n._start<e)return n;n=n._prev}}(this,Pt(m),Pt(n)),u&&(_-=n-(n=u._start))),this._tTime=_,this._time=n,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&n&&!e&&!o&&(Ee(this,"onStart"),this._tTime!==_))return this;if(n>=m&&t>=0)for(i=this._first;i;){if(s=i._next,(i._act||n>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!l){u=0,s&&(_+=this._zTime=-1e-8);break}}i=s}else{i=this._last;for(var w=t<0?t:n;i;){if(s=i._prev,(i._act||w<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(w-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(w-i._start)*i._ts,e,r||k&&(i._initted||i._startAt)),n!==this._time||!this._ts&&!l){u=0,s&&(_+=this._zTime=w?-1e-8:X);break}}i=s}}if(u&&!e&&(this.pause(),u.render(n>=m?0:-1e-8)._zTime=n>=m?1:-1,this._ts))return this._start=f,ie(this),this.render(t,e,r);this._onUpdate&&!e&&Ee(this,"onUpdate",!0),(_===g&&this._tTime>=this.totalDuration()||!_&&m)&&(f!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!v)&&(_===g&&this._ts>0||!_&&this._ts<0)&&Gt(this,1),e||t<0&&!m||!_&&!m&&g||(Ee(this,_===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(_<g&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(K(e)||(e=me(this,e,t)),!(t instanceof or)){if(ot(t))return t.forEach((function(t){return r.add(t,e)})),this;if(G(t))return this.addLabel(t,e);if(!J(t))return this;t=_r.delayedCall(0,t)}return this!==t?ae(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-B);for(var i=[],s=this._first;s;)s._start>=n&&(s instanceof _r?e&&i.push(s):(r&&i.push(s),t&&i.push.apply(i,s.getChildren(!0,e,r)))),s=s._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return G(t)?this.removeLabel(t):J(t)?this.killTweensOf(t):(t.parent===this&&Zt(this,t),t===this._recent&&(this._recent=this._last),Jt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Pt(He.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=me(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=_r.delayedCall(0,e||bt,r);return n.data="isPause",this._hasPause=1,ae(this,n,me(this,t))},r.removePause=function(t){var e=this._first;for(t=me(this,t);e;)e._start===t&&"isPause"===e.data&&Gt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)lr!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=we(t),s=this._first,o=K(e);s;)s instanceof _r?Rt(s._targets,i)&&(o?(!lr||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&n.push(s):(r=s.getTweensOf(i,e)).length&&n.push.apply(n,r),s=s._next;return n},r.tweenTo=function(t,e){e=e||{};var r,n=this,i=me(n,t),s=e,o=s.startAt,a=s.onStart,l=s.onStartParams,u=s.immediateRender,c=_r.to(n,Xt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale())||X,onStart:function(){if(n.pause(),!r){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:n._time))/n.timeScale());c._dur!==t&&he(c,t,0,1).render(c._time,!0,!0),r=1}a&&a.apply(c,l||[])}},e));return u?c.render(0):c},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Xt({startAt:{time:me(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),Ae(this,me(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),Ae(this,me(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+X)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,s=this.labels;i;)i._start>=r&&(i._start+=t,i._end+=t),i=i._next;if(e)for(n in s)s[n]>=r&&(s[n]+=t);return Jt(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Jt(this)},r.totalDuration=function(t){var e,r,n,i=0,s=this,o=s._last,a=B;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(n=s.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(r=o._start)>a&&s._sort&&o._ts&&!s._lock?(s._lock=1,ae(s,o,r-o._delay,1)._lock=0):a=r,r<0&&o._ts&&(i-=r,(!n&&!s._dp||n&&n.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),a=0),o._end>i&&o._ts&&(i=o._end),o=e;he(s,s===D&&s._time>i?s._time:i,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(D._ts&&(Ut(D,ne(t,D)),A=He.frame),He.frame>=Ot){Ot+=U.autoSleep||120;var e=D._first;if((!e||!e._ts)&&U.autoSleep&&He._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||He.sleep()}}},e}(or);Xt(ar.prototype,{_lock:0,_hasPause:0,_forcing:0});var lr,ur,cr=function(t,e,r,n,i,s,o){var a,l,u,c,f,h,p,d,m=new Ar(this._pt,t,e,0,1,$r,null,i),g=0,v=0;for(m.b=r,m.e=n,r+="",(p=~(n+="").indexOf("random("))&&(n=Ce(n)),s&&(s(d=[r,n],t,e),r=d[0],n=d[1]),l=r.match(ct)||[];a=ct.exec(n);)c=a[0],f=n.substring(g,a.index),u?u=(u+1)%5:"rgba("===f.substr(-5)&&(u=1),c!==l[v++]&&(h=parseFloat(l[v-1])||0,m._pt={_next:m._pt,p:f||1===v?f:",",s:h,c:"="===c.charAt(1)?It(h,c)-h:parseFloat(c)-h,m:u&&u<4?Math.round:0},g=ct.lastIndex);return m.c=g<n.length?n.substring(g,n.length):"",m.fp=o,(ft.test(n)||p)&&(m.e=0),this._pt=m,m},fr=function(t,e,r,n,i,s,o,a,l,u){J(n)&&(n=n(i||0,t,s));var c,f=t[e],h="get"!==r?r:J(f)?l?t[e.indexOf("set")||!J(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():f,p=J(f)?l?xr:br:yr;if(G(n)&&(~n.indexOf("random(")&&(n=Ce(n)),"="===n.charAt(1)&&((c=It(h,n)+(ye(h)||0))||0===c)&&(n=c)),!u||h!==n||ur)return isNaN(h*n)||""===n?(!f&&!(e in t)&&vt(e,n),cr.call(this,t,e,h,n,p,a||U.stringFilter,l)):(c=new Ar(this._pt,t,e,+h||0,n-(h||0),"boolean"==typeof f?kr:Tr,0,p),l&&(c.fp=l),o&&c.modifier(o,this,t),this._pt=c)},hr=function(t,e,r,n,i,s){var o,a,l,u;if(Dt[t]&&!1!==(o=new Dt[t]).init(i,o.rawVars?e[t]:function(t,e,r,n,i){if(J(t)&&(t=mr(t,i,e,r,n)),!et(t)||t.style&&t.nodeType||ot(t)||st(t))return G(t)?mr(t,i,e,r,n):t;var s,o={};for(s in t)o[s]=mr(t[s],i,e,r,n);return o}(e[t],n,i,s,r),r,n,s)&&(r._pt=a=new Ar(r._pt,i,t,0,1,o.render,o,0,o.priority),r!==E))for(l=r._ptLookup[r._targets.indexOf(i)],u=o._props.length;u--;)l[o._props[u]]=a;return o},pr=function t(e,r,n){var i,s,o,a,l,u,c,f,h,p,d,m,g,v=e.vars,_=v.ease,y=v.startAt,b=v.immediateRender,x=v.lazy,w=v.onUpdate,M=v.runBackwards,$=v.yoyoEase,S=v.keyframes,O=v.autoRevert,C=e._dur,z=e._startAt,A=e._targets,E=e.parent,N=E&&"nested"===E.data?E.vars.targets:A,L="auto"===e._overwrite&&!T,j=e.timeline;if(j&&(!S||!_)&&(_="none"),e._ease=tr(_,F.ease),e._yEase=$?Je(tr(!0===$?_:$,F.ease)):0,$&&e._yoyo&&!e._repeat&&($=e._yEase,e._yEase=e._ease,e._ease=$),e._from=!j&&!!v.runBackwards,!j||S&&!v.stagger){if(m=(f=A[0]?Et(A[0]).harness:0)&&v[f.prop],i=Wt(v,Tt), | |
| 8 | +z&&(z._zTime<0&&z.progress(1),r<0&&M&&b&&!O?z.render(-1,!0):z.revert(M&&C?wt:xt),z._lazy=0),y){if(Gt(e._startAt=_r.set(A,Xt({data:"isStart",overwrite:!1,parent:E,immediateRender:!0,lazy:!z&&rt(x),startAt:null,delay:0,onUpdate:w&&function(){return Ee(e,"onUpdate")},stagger:0},y))),e._startAt._dp=0,e._startAt._sat=e,r<0&&(k||!b&&!O)&&e._startAt.revert(wt),b&&C&&r<=0&&n<=0)return void(r&&(e._zTime=r))}else if(M&&C&&!z)if(r&&(b=!1),o=Xt({overwrite:!1,data:"isFromStart",lazy:b&&!z&&rt(x),immediateRender:b,stagger:0,parent:E},i),m&&(o[f.prop]=m),Gt(e._startAt=_r.set(A,o)),e._startAt._dp=0,e._startAt._sat=e,r<0&&(k?e._startAt.revert(wt):e._startAt.render(-1,!0)),e._zTime=r,b){if(!r)return}else t(e._startAt,X,X);for(e._pt=e._ptCache=0,x=C&&rt(x)||x&&!C,s=0;s<A.length;s++){if(c=(l=A[s])._gsap||At(A)[s]._gsap,e._ptLookup[s]=p={},$t[c.id]&&kt.length&&Yt(),d=N===A?s:N.indexOf(l),f&&!1!==(h=new f).init(l,m||i,e,d,N)&&(e._pt=a=new Ar(e._pt,l,h.name,0,1,h.render,h,0,h.priority),h._props.forEach((function(t){p[t]=a})),h.priority&&(u=1)),!f||m)for(o in i)Dt[o]&&(h=hr(o,i,e,d,l,N))?h.priority&&(u=1):p[o]=a=fr.call(e,l,o,"get",i[o],d,N,0,v.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),L&&e._pt&&(lr=e,D.killTweensOf(l,p,e.globalTime(r)),g=!e.parent,lr=0),e._pt&&x&&($t[c.id]=1)}u&&zr(e),e._onInit&&e._onInit(e)}e._onUpdate=w,e._initted=(!e._op||e._pt)&&!g,S&&r<=0&&j.render(B,!0,!0)},dr=function(t,e,r,n){var i,s,o=e.ease||n||"power1.inOut";if(ot(e))s=r[t]||(r[t]=[]),e.forEach((function(t,r){return s.push({t:r/(e.length-1)*100,v:t,e:o})}));else for(i in e)s=r[i]||(r[i]=[]),"ease"===i||s.push({t:parseFloat(t),v:e[i],e:o})},mr=function(t,e,r,n,i){return J(t)?t.call(e,r,n,i):G(t)&&~t.indexOf("random(")?Ce(t):t},gr=zt+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",vr={};Lt(gr+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return vr[t]=1}));var _r=function(t){function e(e,r,n,i){var s;"number"==typeof r&&(n.duration=r,r=n,n=null);var o,a,l,u,c,f,h,p,d=(s=t.call(this,i?r:qt(r))||this).vars,m=d.duration,g=d.delay,v=d.immediateRender,_=d.stagger,y=d.overwrite,b=d.keyframes,x=d.defaults,M=d.scrollTrigger,k=d.yoyoEase,$=r.parent||D,S=(ot(e)||st(e)?K(e[0]):"length"in r)?[e]:we(e);if(s._targets=S.length?At(S):_t("GSAP target "+e+" not found. https://gsap.com",!U.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=y,b||_||it(m)||it(g)){if(r=s.vars,(o=s.timeline=new ar({data:"nested",defaults:x||{},targets:$&&"nested"===$.data?$.vars.targets:S})).kill(),o.parent=o._dp=w(s),o._start=0,_||it(m)||it(g)){if(u=S.length,h=_&&ke(_),et(_))for(c in _)~gr.indexOf(c)&&(p||(p={}),p[c]=_[c]);for(a=0;a<u;a++)(l=Wt(r,vr)).stagger=0,k&&(l.yoyoEase=k),p&&Qt(l,p),f=S[a],l.duration=+mr(m,w(s),a,f,S),l.delay=(+mr(g,w(s),a,f,S)||0)-s._delay,!_&&1===u&&l.delay&&(s._delay=g=l.delay,s._start+=g,l.delay=0),o.to(f,l,h?h(a,f,S):0),o._ease=qe.none;o.duration()?m=g=0:s.timeline=0}else if(b){qt(Xt(o.vars.defaults,{ease:"none"})),o._ease=tr(b.ease||r.ease||"none");var O,C,z,A=0;if(ot(b))b.forEach((function(t){return o.to(S,t,">")})),o.duration();else{for(c in l={},b)"ease"===c||"easeEach"===c||dr(c,b[c],l,b.easeEach);for(c in l)for(O=l[c].sort((function(t,e){return t.t-e.t})),A=0,a=0;a<O.length;a++)(z={ease:(C=O[a]).e,duration:(C.t-(a?O[a-1].t:0))/100*m})[c]=C.v,o.to(S,z,A),A+=z.duration;o.duration()<m&&o.to({},{duration:m-o.duration()})}}m||s.duration(m=o.duration())}else s.timeline=0;return!0!==y||T||(lr=w(s),D.killTweensOf(S),lr=0),ae($,w(s),n),r.reversed&&s.reverse(),r.paused&&s.paused(!0),(v||!m&&!b&&s._start===Pt($._time)&&rt(v)&&te(w(s))&&"nested"!==$.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-g)||0)),M&&le(w(s),M),s}M(e,t);var r=e.prototype;return r.render=function(t,e,r){var n,i,s,o,a,l,u,c,f,h=this._time,p=this._tDur,d=this._dur,m=t<0,g=t>p-X&&!m?p:t<X?0:t;if(d){if(g!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m||this._lazy){if(n=g,c=this.timeline,this._repeat){if(o=d+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*o+t,e,r);if(n=Pt(g%o),g===p?(s=this._repeat,n=d):(s=~~(a=Pt(g/o)))&&s===a?(n=d,s--):n>d&&(n=d),(l=this._yoyo&&1&s)&&(f=this._yEase,n=d-n),a=re(this._tTime,o),n===h&&!r&&this._initted&&s===a)return this._tTime=g,this;s!==a&&(c&&this._yEase&&Ke(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&n!==o&&this._initted&&(this._lock=r=1,this.render(Pt(o*s),!0).invalidate()._lock=0))}if(!this._initted){if(ue(this,m?t:n,r,e,g))return this._tTime=0,this;if(!(h===this._time||r&&this.vars.repeatRefresh&&s!==a))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=g,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=u=(f||this._ease)(n/d),this._from&&(this.ratio=u=1-u),n&&!h&&!e&&!s&&(Ee(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(u,i.d),i=i._next;c&&c.render(t<0?t:c._dur*c._ease(n/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Kt(this,t,0,r),Ee(this,"onUpdate")),this._repeat&&s!==a&&this.vars.onRepeat&&!e&&this.parent&&Ee(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Kt(this,t,0,!0),(t||!d)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Gt(this,1),e||m&&!h||!(g||h||l)||(Ee(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,r,n){var i,s,o,a=t.ratio,l=e<0||!e&&(!t._start&&ce(t)&&(t._initted||!fe(t))||(t._ts<0||t._dp._ts<0)&&!fe(t))?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=_e(0,t._tDur,e),s=re(c,u),t._yoyo&&1&s&&(l=1-l),s!==re(t._tTime,u)&&(a=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==a||k||n||t._zTime===X||!e&&t._zTime){if(!t._initted&&ue(t,e,n,r,c))return;for(o=t._zTime,t._zTime=e||(r?X:0),r||(r=e&&!o),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,i=t._pt;i;)i.r(l,i.d),i=i._next;e<0&&Kt(t,e,0,!0),t._onUpdate&&!r&&Ee(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&Ee(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Gt(t,1),r||k||(Ee(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,n,i){N||He.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||pr(this,s),function(t,e,r,n,i,s,o,a){var l,u,c,f,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,f=t._targets.length;f--;){if((l=c[f][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return ur=1,t.vars[e]="+=0",pr(t,o),ur=0,a?_t(e+" not eligible for reset"):1;h.push(l)}for(f=h.length;f--;)(l=(u=h[f])._pt||u).s=!n&&0!==n||i?l.s+(n||0)+s*l.c:n,l.c=r-l.s,u.e&&(u.e=jt(r)+ye(u.e)),u.b&&(u.b=l.s+ye(u.b))}(this,t,e,r,n,this._ease(s/this._dur),s,i)?this.resetTo(t,e,r,n,1):(se(this,0),this.parent||Vt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ne(this):this.scrollTrigger&&this.scrollTrigger.kill(!!k),this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,lr&&!0!==lr.vars.overwrite)._first||Ne(this),this.parent&&r!==this.timeline.totalDuration()&&he(this,this._dur*this.timeline._tDur/r,0,1),this}var n,i,s,o,a,l,u,c=this._targets,f=t?we(t):c,h=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(c,f))return"all"===e&&(this._pt=0),Ne(this);for(n=this._op=this._op||[],"all"!==e&&(G(e)&&(a={},Lt(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var r,n,i,s,o=t[0]?Et(t[0]).harness:0,a=o&&o.aliases;if(!a)return e;for(n in r=Qt({},e), | |
| 9 | +a)if(n in r)for(i=(s=a[n].split(",")).length;i--;)r[s[i]]=r[n];return r}(c,e)),u=c.length;u--;)if(~f.indexOf(c[u]))for(a in i=h[u],"all"===e?(n[u]=e,o=i,s={}):(s=n[u]=n[u]||{},o=e),o)(l=i&&i[a])&&("kill"in l.d&&!0!==l.d.kill(a)||Zt(this,l,"_pt"),delete i[a]),"all"!==s&&(s[a]=1);return this._initted&&!this._pt&&p&&Ne(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return ge(1,arguments)},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,e,r){return ge(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return D.killTweensOf(t,e,r)},e}(or);Xt(_r.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Lt("staggerTo,staggerFrom,staggerFromTo",(function(t){_r[t]=function(){var e=new ar,r=be.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var yr=function(t,e,r){return t[e]=r},br=function(t,e,r){return t[e](r)},xr=function(t,e,r,n){return t[e](n.fp,r)},wr=function(t,e,r){return t.setAttribute(e,r)},Mr=function(t,e){return J(t[e])?br:tt(t[e])&&t.setAttribute?wr:yr},Tr=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},kr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},$r=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},Dr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},Sr=function(t,e,r,n){for(var i,s=this._pt;s;)i=s._next,s.p===n&&s.modifier(t,e,r),s=i},Or=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Zt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},Cr=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},zr=function(t){for(var e,r,n,i,s=t._pt;s;){for(e=s._next,r=n;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:i)?s._prev._next=s:n=s,(s._next=r)?r._prev=s:i=s,s=e}t._pt=n},Ar=function(){function t(t,e,r,n,i,s,o,a,l){this.t=e,this.s=n,this.c=i,this.p=r,this.r=s||Tr,this.d=o||this,this.set=a||yr,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=Cr,this.m=t,this.mt=r,this.tween=e},t}();Lt(zt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Tt[t]=1})),dt.TweenMax=dt.TweenLite=_r,dt.TimelineLite=dt.TimelineMax=ar,D=new ar({sortChildren:!1,defaults:F,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),U.stringFilter=Qe;var Er=[],Nr={},Lr=[],jr=0,Pr=0,Ir=function(t){return(Nr[t]||Lr).map((function(t){return t()}))},Rr=function(){var t=Date.now(),e=[];t-jr>2&&(Ir("matchMediaInit"),Er.forEach((function(t){var r,n,i,s,o=t.queries,a=t.conditions;for(n in o)(r=S.matchMedia(o[n]).matches)&&(i=1),r!==a[n]&&(a[n]=r,s=1);s&&(t.revert(),i&&e.push(t))})),Ir("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),jr=t,Ir("matchMedia"))},Yr=function(){function t(t,e){this.selector=e&&Me(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Pr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){J(t)&&(r=e,e=t,t=J);var n=this,i=function(){var t,i=$,s=n.selector;return i&&i!==n&&i.data.push(n),r&&(n.selector=Me(r)),$=n,t=e.apply(n,arguments),J(t)&&n._r.push(t),$=i,n.selector=s,n.isReverted=!1,t};return n.last=i,t===J?i(n,(function(t){return n.add(null,t)})):t?n[t]=i:i},e.ignore=function(t){var e=$;$=null,t(this),$=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof _r&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,n=r.getTweens(),i=r.data.length;i--;)"isFlip"===(e=r.data[i]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return n.splice(n.indexOf(t),1)})));for(n.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),i=r.data.length;i--;)(e=r.data[i])instanceof ar?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof _r)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var n=Er.length;n--;)Er[n].id===this.id&&Er.splice(n,1)},e.revert=function(t){this.kill(t||{})},t}(),Ur=function(){function t(t){this.contexts=[],this.scope=t,$&&$.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){et(t)||(t={matches:t});var n,i,s,o=new Yr(0,r||this.scope),a=o.conditions={};for(i in $&&!o.selector&&(o.selector=$.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?s=1:(n=S.matchMedia(t[i]))&&(Er.indexOf(o)<0&&Er.push(o),(a[i]=n.matches)&&(s=1),n.addListener?n.addListener(Rr):n.addEventListener("change",Rr));return s&&e(o,(function(t){return o.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Fr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach((function(t){return je(t)}))},timeline:function(t){return new ar(t)},getTweensOf:function(t,e){return D.getTweensOf(t,e)},getProperty:function(t,e,r,n){G(t)&&(t=we(t)[0]);var i=Et(t||{}).get,s=r?Bt:Ft;return"native"===r&&(r=""),t?e?s((Dt[e]&&Dt[e].get||i)(t,e,r,n)):function(e,r,n){return s((Dt[e]&&Dt[e].get||i)(t,e,r,n))}:t},quickSetter:function(t,e,r){if((t=we(t)).length>1){var n=t.map((function(t){return Qr.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var s=Dt[e],o=Et(t),a=o.harness&&(o.harness.aliases||{})[e]||e,l=s?function(e){var n=new s;E._pt=0,n.init(t,r?e+r:e,E,0,[t]),n.render(1,n),E._pt&&Dr(1,E)}:o.set(t,a);return s?l:function(e){return l(t,a,r?e+r:e,o,1)}},quickTo:function(t,e,r){var n,i=Qr.to(t,Xt(((n={})[e]="+=0.1",n.paused=!0,n.stagger=0,n),r||{})),s=function(t,r,n){return i.resetTo(e,t,r,n)};return s.tween=i,s},isTweening:function(t){return D.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=tr(t.ease,F.ease)),Ht(F,t||{})},config:function(t){return Ht(U,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,s=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!Dt[t]&&!dt[t]&&_t(e+" effect requires "+t+" plugin.")})),St[e]=function(t,e,n){return r(we(t),Xt(e||{},i),n)},s&&(ar.prototype[e]=function(t,r,n){return this.add(St[e](t,et(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){qe[t]=tr(e)},parseEase:function(t,e){return arguments.length?tr(t,e):qe},getById:function(t){return D.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new ar(t);for(i.smoothChildTiming=rt(t.smoothChildTiming),D.remove(i),i._dp=0,i._time=i._tTime=D._time,r=D._first;r;)n=r._next,!e&&!r._dur&&r instanceof _r&&r.vars.onComplete===r._targets[0]||ae(i,r,r._start-r._delay),r=n;return ae(D,i,0),i},context:function(t,e){return t?new Yr(t,e):$},matchMedia:function(t){return new Ur(t)},matchMediaRefresh:function(){return Er.forEach((function(t){var e,r,n=t.conditions;for(r in n)n[r]&&(n[r]=!1,e=1);e&&t.revert()}))||Rr()},addEventListener:function(t,e){var r=Nr[t]||(Nr[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=Nr[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},utils:{wrap:function t(e,r,n){var i=r-e;return ot(e)?Oe(e,t(0,e.length),r):ve(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){ | |
| 10 | +var i=r-e,s=2*i;return ot(e)?Oe(e,t(0,e.length-1),r):ve(n,(function(t){return e+((t=(s+(t-e)%s)%s||0)>i?s-t:t)}))},distribute:ke,random:Se,snap:De,normalize:function(t,e,r){return ze(t,e,0,1,r)},getUnit:ye,clamp:function(t,e,r){return ve(r,(function(r){return _e(t,e,r)}))},splitColor:Ye,toArray:we,selector:Me,mapRange:ze,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(r){return t(parseFloat(r))+(e||ye(r))}},interpolate:function t(e,r,n,i){var s=isNaN(e+r)?0:function(t){return(1-t)*e+t*r};if(!s){var o,a,l,u,c,f=G(e),h={};if(!0===n&&(i=1)&&(n=null),f)e={p:e},r={p:r};else if(ot(e)&&!ot(r)){for(l=[],u=e.length,c=u-2,a=1;a<u;a++)l.push(t(e[a-1],e[a]));u--,s=function(t){t*=u;var e=Math.min(c,~~t);return l[e](t-e)},n=r}else i||(e=Qt(ot(e)?[]:{},e));if(!l){for(o in r)fr.call(h,e,o,"get",r[o]);s=function(t){return Dr(t,h)||(f?e.p:e)}}}return ve(n,s)},shuffle:Te},install:gt,effects:St,ticker:He,updateRoot:ar.updateRoot,plugins:Dt,globalTimeline:D,core:{PropTween:Ar,globals:yt,Tween:_r,Timeline:ar,Animation:or,getCache:Et,_removeLinkedListItem:Zt,reverting:function(){return k},context:function(t){return t&&$&&($.data.push(t),t._ctx=$),$},suppressOverwrites:function(t){return T=t}}};Lt("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Fr[t]=_r[t]})),He.add(ar.updateRoot),E=Fr.to({},{duration:0});var Br=function(t,e){for(var r=t._pt;r&&r.p!==e&&r.op!==e&&r.fp!==e;)r=r._next;return r},Xr=function(t,e){return{name:t,rawVars:1,init:function(t,r,n){n._onInit=function(t){var n,i;if(G(r)&&(n={},Lt(r,(function(t){return n[t]=1})),r=n),e){for(i in n={},r)n[i]=e(r[i]);r=n}!function(t,e){var r,n,i,s=t._targets;for(r in e)for(n=s.length;n--;)(i=t._ptLookup[n][r])&&(i=i.d)&&(i._pt&&(i=Br(i,r)),i&&i.modifier&&i.modifier(e[r],t,s[n],r))}(t,r)}}}},Qr=Fr.registerPlugin({name:"attr",init:function(t,e,r,n,i){var s,o,a;for(s in this.tween=r,e)a=t.getAttribute(s)||"",(o=this.add(t,"setAttribute",(a||0)+"",e[s],n,i,0,0,s)).op=s,o.b=a,this._props.push(s)},render:function(t,e){for(var r=e._pt;r;)k?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",init:function(t,e){for(var r=e.length;r--;)this.add(t,r,t[r]||0,e[r],0,0,0,0,0,1)}},Xr("roundProps",$e),Xr("modifiers"),Xr("snap",De))||Fr;_r.version=ar.version=Qr.version="3.12.7",z=1,nt()&&We(),qe.Power0,qe.Power1,qe.Power2,qe.Power3,qe.Power4,qe.Linear,qe.Quad,qe.Cubic,qe.Quart,qe.Quint,qe.Strong,qe.Elastic,qe.Back,qe.SteppedEase,qe.Bounce,qe.Sine,qe.Expo,qe.Circ;var Hr,Wr,qr,Vr,Zr,Gr,Jr,Kr,tn={},en=180/Math.PI,rn=Math.PI/180,nn=Math.atan2,sn=/([A-Z])/g,on=/(left|right|width|margin|padding|x)/i,an=/[\s,\(]\S/,ln={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},un=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},cn=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},fn=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},hn=function(t,e){var r=e.s+e.c*t;e.set(e.t,e.p,~~(r+(r<0?-.5:.5))+e.u,e)},pn=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},dn=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},mn=function(t,e,r){return t.style[e]=r},gn=function(t,e,r){return t.style.setProperty(e,r)},vn=function(t,e,r){return t._gsap[e]=r},yn=function(t,e,r){return t._gsap.scaleX=t._gsap.scaleY=r},bn=function(t,e,r,n,i){var s=t._gsap;s.scaleX=s.scaleY=r,s.renderTransform(i,s)},xn=function(t,e,r,n,i){var s=t._gsap;s[e]=r,s.renderTransform(i,s)},wn="transform",Mn=wn+"Origin",Tn=function t(e,r){var n=this,i=this.target,s=i.style,o=i._gsap;if(e in tn&&s){if(this.tfm=this.tfm||{},"transform"===e)return ln.transform.split(",").forEach((function(e){return t.call(n,e,r)}));if(~(e=ln[e]||e).indexOf(",")?e.split(",").forEach((function(t){return n.tfm[t]=Fn(i,t)})):this.tfm[e]=o.x?o[e]:Fn(i,e),e===Mn&&(this.tfm.zOrigin=o.zOrigin),this.props.indexOf(wn)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Mn,r,"")),e=wn}(s||r)&&this.props.push(e,r,s[e])},kn=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},$n=function(){var t,e,r=this.props,n=this.target,i=n.style,s=n._gsap;for(t=0;t<r.length;t+=3)r[t+1]?2===r[t+1]?n[r[t]](r[t+2]):n[r[t]]=r[t+2]:r[t+2]?i[r[t]]=r[t+2]:i.removeProperty("--"===r[t].substr(0,2)?r[t]:r[t].replace(sn,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),(t=Jr())&&t.isStart||i[wn]||(kn(i),s.zOrigin&&i[Mn]&&(i[Mn]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Dn=function(t,e){var r={target:t,props:[],revert:$n,save:Tn};return t._gsap||Qr.core.getCache(t),e&&t.style&&t.nodeType&&e.split(",").forEach((function(t){return r.save(t)})),r},Sn=function(t,e){var r=Wr.createElementNS?Wr.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Wr.createElement(t);return r&&r.style?r:Wr.createElement(t)},On=function t(e,r,n){var i=getComputedStyle(e);return i[r]||i.getPropertyValue(r.replace(sn,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&t(e,zn(r)||r,1)||""},Cn="O,Moz,ms,Ms,Webkit".split(","),zn=function(t,e,r){var n=(e||Zr).style,i=5;if(t in n&&!r)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Cn[i]+t in n););return i<0?null:(3===i?"ms":i>=0?Cn[i]:"")+t},An=function(){"undefined"!=typeof window&&window.document&&(Hr=window,Wr=Hr.document,qr=Wr.documentElement,Zr=Sn("div")||{style:{}},Sn("div"),wn=zn(wn),Mn=wn+"Origin",Zr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Kr=!!zn("perspective"),Jr=Qr.core.reverting,Vr=1)},En=function(t){var e,r=t.ownerSVGElement,n=Sn("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0);i.style.display="block",n.appendChild(i),qr.appendChild(n);try{e=i.getBBox()}catch(t){}return n.removeChild(i),qr.removeChild(n),e},Nn=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},Ln=function(t){var e,r;try{e=t.getBBox()}catch(n){e=En(t),r=1}return e&&(e.width||e.height)||r||(e=En(t)),!e||e.width||e.x||e.y?e:{x:+Nn(t,["x","cx","x1"])||0,y:+Nn(t,["y","cy","y1"])||0,width:0,height:0}},jn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Ln(t))},Pn=function(t,e){if(e){var r,n=t.style;e in tn&&e!==Mn&&(e=wn),n.removeProperty?("ms"!==(r=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty("--"===r?e:e.replace(sn,"-$1").toLowerCase())):n.removeAttribute(e)}},In=function(t,e,r,n,i,s){var o=new Ar(t._pt,e,r,0,1,s?dn:pn);return t._pt=o,o.b=n,o.e=i,t._props.push(r),o},Rn={deg:1,rad:1,turn:1},Yn={grid:1,flex:1},Un=function t(e,r,n,i){var s,o,a,l,u=parseFloat(n)||0,c=(n+"").trim().substr((u+"").length)||"px",f=Zr.style,h=on.test(r),p="svg"===e.tagName.toLowerCase(),d=(p?"client":"offset")+(h?"Width":"Height"),m=100,g="px"===i,v="%"===i;if(i===c||!u||Rn[i]||Rn[c])return u;if("px"!==c&&!g&&(u=t(e,r,n,"px")),l=e.getCTM&&jn(e),(v||"%"===c)&&(tn[r]||~r.indexOf("adius")))return s=l?e.getBBox()[h?"width":"height"]:e[d],jt(v?u/s*m:u/100*s);if(f[h?"width":"height"]=m+(g?c:i),o="rem"!==i&&~r.indexOf("adius")||"em"===i&&e.appendChild&&!p?e:e.parentNode,l&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Wr&&o.appendChild||(o=Wr.body),(a=o._gsap)&&v&&a.width&&h&&a.time===He.time&&!a.uncache)return jt(u/a.width*m);if(!v||"height"!==r&&"width"!==r)(v||"%"===c)&&!Yn[On(o,"display")]&&(f.position=On(e,"position")),o===e&&(f.position="static"),o.appendChild(Zr),s=Zr[d],o.removeChild(Zr),f.position="absolute";else{var _=e.style[r];e.style[r]=m+i,s=e[d],_?e.style[r]=_:Pn(e,r)}return h&&v&&((a=Et(o)).time=He.time,a.width=o[d]),jt(g?s*u/m:s&&u?m/s*u:0)},Fn=function(t,e,r,n){var i;return Vr||An(),e in ln&&"transform"!==e&&~(e=ln[e]).indexOf(",")&&(e=e.split(",")[0]),tn[e]&&"transform"!==e?(i=Kn(t,n), | |
| 11 | +i="transformOrigin"!==e?i[e]:i.svg?i.origin:ti(On(t,Mn))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=Hn[e]&&Hn[e](t,e,r)||On(t,e)||Nt(t,e)||("opacity"===e?1:0)),r&&!~(i+"").trim().indexOf(" ")?Un(t,e,i,r)+r:i},Bn=function(t,e,r,n){if(!r||"none"===r){var i=zn(e,t,1),s=i&&On(t,i,1);s&&s!==r?(e=i,r=s):"borderColor"===e&&(r=On(t,"borderTopColor"))}var o,a,l,u,c,f,h,p,d,m,g,v=new Ar(this._pt,t.style,e,0,1,$r),_=0,y=0;if(v.b=r,v.e=n,r+="","auto"==(n+="")&&(f=t.style[e],t.style[e]=n,n=On(t,e)||n,f?t.style[e]=f:Pn(t,e)),Qe(o=[r,n]),n=o[1],l=(r=o[0]).match(ut)||[],(n.match(ut)||[]).length){for(;a=ut.exec(n);)h=a[0],d=n.substring(_,a.index),c?c=(c+1)%5:"rgba("!==d.substr(-5)&&"hsla("!==d.substr(-5)||(c=1),h!==(f=l[y++]||"")&&(u=parseFloat(f)||0,g=f.substr((u+"").length),"="===h.charAt(1)&&(h=It(u,h)+g),p=parseFloat(h),m=h.substr((p+"").length),_=ut.lastIndex-m.length,m||(m=m||U.units[e]||g,_===n.length&&(n+=m,v.e+=m)),g!==m&&(u=Un(t,e,f,m)||0),v._pt={_next:v._pt,p:d||1===y?d:",",s:u,c:p-u,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=_<n.length?n.substring(_,n.length):""}else v.r="display"===e&&"none"===n?dn:pn;return ft.test(n)&&(v.e=0),this._pt=v,v},Xn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Qn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var r,n,i,s=e.t,o=s.style,a=e.u,l=s._gsap;if("all"===a||!0===a)o.cssText="",n=1;else for(i=(a=a.split(",")).length;--i>-1;)r=a[i],tn[r]&&(n=1,r="transformOrigin"===r?Mn:wn),Pn(s,r);n&&(Pn(s,wn),l&&(l.svg&&s.removeAttribute("transform"),o.scale=o.rotate=o.translate="none",Kn(s,1),l.uncache=1,kn(o)))}},Hn={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var s=t._pt=new Ar(t._pt,e,r,0,0,Qn);return s.u=n,s.pr=-10,s.tween=i,t._props.push(r),1}}},Wn=[1,0,0,1,0,0],qn={},Vn=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Zn=function(t){var e=On(t,wn);return Vn(e)?Wn:e.substr(7).match(lt).map(jt)},Gn=function(t,e){var r,n,i,s,o=t._gsap||Et(t),a=t.style,l=Zn(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Wn:l:(l!==Wn||t.offsetParent||t===qr||o.svg||(i=a.display,a.display="block",(r=t.parentNode)&&(t.offsetParent||t.getBoundingClientRect().width)||(s=1,n=t.nextElementSibling,qr.appendChild(t)),l=Zn(t),i?a.display=i:Pn(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):qr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},Jn=function(t,e,r,n,i,s){var o,a,l,u=t._gsap,c=i||Gn(t,!0),f=u.xOrigin||0,h=u.yOrigin||0,p=u.xOffset||0,d=u.yOffset||0,m=c[0],g=c[1],v=c[2],_=c[3],y=c[4],b=c[5],x=e.split(" "),w=parseFloat(x[0])||0,M=parseFloat(x[1])||0;r?c!==Wn&&(a=m*_-g*v)&&(l=w*(-g/a)+M*(m/a)-(m*b-g*y)/a,w=w*(_/a)+M*(-v/a)+(v*b-_*y)/a,M=l):(w=(o=Ln(t)).x+(~x[0].indexOf("%")?w/100*o.width:w),M=o.y+(~(x[1]||x[0]).indexOf("%")?M/100*o.height:M)),n||!1!==n&&u.smooth?(y=w-f,b=M-h,u.xOffset=p+(y*m+b*v)-y,u.yOffset=d+(y*g+b*_)-b):u.xOffset=u.yOffset=0,u.xOrigin=w,u.yOrigin=M,u.smooth=!!n,u.origin=e,u.originIsAbsolute=!!r,t.style[Mn]="0px 0px",s&&(In(s,u,"xOrigin",f,w),In(s,u,"yOrigin",h,M),In(s,u,"xOffset",p,u.xOffset),In(s,u,"yOffset",d,u.yOffset)),t.setAttribute("data-svg-origin",w+" "+M)},Kn=function(t,e){var r=t._gsap||new sr(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,s,o,a,l,u,c,f,h,p,d,m,g,v,_,y,b,x,w,M,T,k,$,D,S,O,C,z,A,E,N,L=t.style,j=r.scaleX<0,P="px",I="deg",R=getComputedStyle(t),Y=On(t,Mn)||"0";return n=i=s=l=u=c=f=h=p=0,o=a=1,r.svg=!(!t.getCTM||!jn(t)),R.translate&&("none"===R.translate&&"none"===R.scale&&"none"===R.rotate||(L[wn]=("none"!==R.translate?"translate3d("+(R.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==R.rotate?"rotate("+R.rotate+") ":"")+("none"!==R.scale?"scale("+R.scale.split(" ").join(",")+") ":"")+("none"!==R[wn]?R[wn]:"")),L.scale=L.rotate=L.translate="none"),g=Gn(t,r.svg),r.svg&&(r.uncache?(D=t.getBBox(),Y=r.xOrigin-D.x+"px "+(r.yOrigin-D.y)+"px",$=""):$=!e&&t.getAttribute("data-svg-origin"),Jn(t,$||Y,!!$||r.originIsAbsolute,!1!==r.smooth,g)),d=r.xOrigin||0,m=r.yOrigin||0,g!==Wn&&(b=g[0],x=g[1],w=g[2],M=g[3],n=T=g[4],i=k=g[5],6===g.length?(o=Math.sqrt(b*b+x*x),a=Math.sqrt(M*M+w*w),l=b||x?nn(x,b)*en:0,(f=w||M?nn(w,M)*en+l:0)&&(a*=Math.abs(Math.cos(f*rn))),r.svg&&(n-=d-(d*b+m*w),i-=m-(d*x+m*M))):(N=g[6],A=g[7],O=g[8],C=g[9],z=g[10],E=g[11],n=g[12],i=g[13],s=g[14],u=(v=nn(N,z))*en,v&&($=T*(_=Math.cos(-v))+O*(y=Math.sin(-v)),D=k*_+C*y,S=N*_+z*y,O=T*-y+O*_,C=k*-y+C*_,z=N*-y+z*_,E=A*-y+E*_,T=$,k=D,N=S),c=(v=nn(-w,z))*en,v&&(_=Math.cos(-v),E=M*(y=Math.sin(-v))+E*_,b=$=b*_-O*y,x=D=x*_-C*y,w=S=w*_-z*y),l=(v=nn(x,b))*en,v&&($=b*(_=Math.cos(v))+x*(y=Math.sin(v)),D=T*_+k*y,x=x*_-b*y,k=k*_-T*y,b=$,T=D),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,c=180-c),o=jt(Math.sqrt(b*b+x*x+w*w)),a=jt(Math.sqrt(k*k+N*N)),v=nn(T,k),f=Math.abs(v)>2e-4?v*en:0,p=E?1/(E<0?-E:E):0),r.svg&&($=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Vn(On(t,wn)),$&&t.setAttribute("transform",$))),Math.abs(f)>90&&Math.abs(f)<270&&(j?(o*=-1,f+=l<=0?180:-180,l+=l<=0?180:-180):(a*=-1,f+=f<=0?180:-180)),e=e||r.uncache,r.x=n-((r.xPercent=n&&(!e&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+P,r.y=i-((r.yPercent=i&&(!e&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+P,r.z=s+P,r.scaleX=jt(o),r.scaleY=jt(a),r.rotation=jt(l)+I,r.rotationX=jt(u)+I,r.rotationY=jt(c)+I,r.skewX=f+I,r.skewY=h+I,r.transformPerspective=p+P,(r.zOrigin=parseFloat(Y.split(" ")[2])||!e&&r.zOrigin||0)&&(L[Mn]=ti(Y)),r.xOffset=r.yOffset=0,r.force3D=U.force3D,r.renderTransform=r.svg?ai:Kr?oi:ri,r.uncache=0,r},ti=function(t){return(t=t.split(" "))[0]+" "+t[1]},ei=function(t,e,r){var n=ye(e);return jt(parseFloat(e)+parseFloat(Un(t,"x",r+"px",n)))+n},ri=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,oi(t,e)},ni="0deg",ii="0px",si=") ",oi=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,s=r.x,o=r.y,a=r.z,l=r.rotation,u=r.rotationY,c=r.rotationX,f=r.skewX,h=r.skewY,p=r.scaleX,d=r.scaleY,m=r.transformPerspective,g=r.force3D,v=r.target,_=r.zOrigin,y="",b="auto"===g&&t&&1!==t||!0===g;if(_&&(c!==ni||u!==ni)){var x,w=parseFloat(u)*rn,M=Math.sin(w),T=Math.cos(w);w=parseFloat(c)*rn,x=Math.cos(w),s=ei(v,s,M*x*-_),o=ei(v,o,-Math.sin(w)*-_),a=ei(v,a,T*x*-_+_)}m!==ii&&(y+="perspective("+m+si),(n||i)&&(y+="translate("+n+"%, "+i+"%) "),(b||s!==ii||o!==ii||a!==ii)&&(y+=a!==ii||b?"translate3d("+s+", "+o+", "+a+") ":"translate("+s+", "+o+si),l!==ni&&(y+="rotate("+l+si),u!==ni&&(y+="rotateY("+u+si),c!==ni&&(y+="rotateX("+c+si),f===ni&&h===ni||(y+="skew("+f+", "+h+si),1===p&&1===d||(y+="scale("+p+", "+d+si),v.style[wn]=y||"translate(0, 0)"},ai=function(t,e){var r,n,i,s,o,a=e||this,l=a.xPercent,u=a.yPercent,c=a.x,f=a.y,h=a.rotation,p=a.skewX,d=a.skewY,m=a.scaleX,g=a.scaleY,v=a.target,_=a.xOrigin,y=a.yOrigin,b=a.xOffset,x=a.yOffset,w=a.forceCSS,M=parseFloat(c),T=parseFloat(f);h=parseFloat(h),p=parseFloat(p),(d=parseFloat(d))&&(p+=d=parseFloat(d),h+=d),h||p?(h*=rn,p*=rn,r=Math.cos(h)*m,n=Math.sin(h)*m,i=Math.sin(h-p)*-g,s=Math.cos(h-p)*g,p&&(d*=rn,o=Math.tan(p-d),i*=o=Math.sqrt(1+o*o),s*=o,d&&(o=Math.tan(d),r*=o=Math.sqrt(1+o*o),n*=o)),r=jt(r),n=jt(n),i=jt(i),s=jt(s)):(r=m,s=g,n=i=0),(M&&!~(c+"").indexOf("px")||T&&!~(f+"").indexOf("px"))&&(M=Un(v,"x",c,"px"),T=Un(v,"y",f,"px")),(_||y||b||x)&&(M=jt(M+_-(_*r+y*i)+b),T=jt(T+y-(_*n+y*s)+x)),(l||u)&&(o=v.getBBox(),M=jt(M+l/100*o.width),T=jt(T+u/100*o.height)),o="matrix("+r+","+n+","+i+","+s+","+M+","+T+")",v.setAttribute("transform",o),w&&(v.style[wn]=o)},li=function(t,e,r,n,i){var s,o,a=360,l=G(i),u=parseFloat(i)*(l&&~i.indexOf("rad")?en:1)-n,c=n+u+"deg";return l&&("short"===(s=i.split("_")[1])&&(u%=a)!=u%180&&(u+=u<0?a:-360),"cw"===s&&u<0?u=(u+36e9)%a-~~(u/a)*a:"ccw"===s&&u>0&&(u=(u-36e9)%a-~~(u/a)*a)),t._pt=o=new Ar(t._pt,e,r,n,u,cn),o.e=c,o.u="deg",t._props.push(r),o},ui=function(t,e){ | |
| 12 | +for(var r in e)t[r]=e[r];return t},ci=function(t,e,r){var n,i,s,o,a,l,u,c=ui({},r._gsap),f=r.style;for(i in c.svg?(s=r.getAttribute("transform"),r.setAttribute("transform",""),f[wn]=e,n=Kn(r,1),Pn(r,wn),r.setAttribute("transform",s)):(s=getComputedStyle(r)[wn],f[wn]=e,n=Kn(r,1),f[wn]=s),tn)(s=c[i])!==(o=n[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(a=ye(s)!==(u=ye(o))?Un(r,i,s,u):parseFloat(s),l=parseFloat(o),t._pt=new Ar(t._pt,n,i,a,l-a,un),t._pt.u=u||0,t._props.push(i));ui(n,c)};Lt("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",s="Left",o=(e<3?[r,n,i,s]:[r+s,r+n,i+n,i+s]).map((function(r){return e<2?t+r:"border"+r+t}));Hn[e>1?"border"+t:t]=function(t,e,r,n,i){var s,a;if(arguments.length<4)return s=o.map((function(e){return Fn(t,e,r)})),5===(a=s.join(" ")).split(s[0]).length?s[0]:a;s=(n+"").split(" "),a={},o.forEach((function(t,e){return a[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,a,i)}}));var fi,hi,pi={name:"css",register:An,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var s,o,a,l,u,c,f,h,p,d,m,g,v,_,y,b,x,w,M,T,k=this._props,$=t.style,D=r.vars.startAt;for(f in Vr||An(),this.styles=this.styles||Dn(t),b=this.styles.props,this.tween=r,e)if("autoRound"!==f&&(o=e[f],!Dt[f]||!hr(f,e,r,n,t,i)))if(u=typeof o,c=Hn[f],"function"===u&&(u=typeof(o=o.call(r,n,t,i))),"string"===u&&~o.indexOf("random(")&&(o=Ce(o)),c)c(this,t,f,o,r)&&(y=1);else if("--"===f.substr(0,2))s=(getComputedStyle(t).getPropertyValue(f)+"").trim(),o+="",Be.lastIndex=0,Be.test(s)||(h=ye(s),p=ye(o)),p?h!==p&&(s=Un(t,f,s,p)+p):h&&(o+=h),this.add($,"setProperty",s,o,n,i,0,0,f),k.push(f),b.push(f,0,$[f]);else if("undefined"!==u){if(D&&f in D?(s="function"==typeof D[f]?D[f].call(r,n,t,i):D[f],G(s)&&~s.indexOf("random(")&&(s=Ce(s)),ye(s+"")||"auto"===s||(s+=U.units[f]||ye(Fn(t,f))||""),"="===(s+"").charAt(1)&&(s=Fn(t,f))):s=Fn(t,f),l=parseFloat(s),(d="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),a=parseFloat(o),f in ln&&("autoAlpha"===f&&(1===l&&"hidden"===Fn(t,"visibility")&&a&&(l=0),b.push("visibility",0,$.visibility),In(this,$,"visibility",l?"inherit":"hidden",a?"inherit":"hidden",!a)),"scale"!==f&&"transform"!==f&&~(f=ln[f]).indexOf(",")&&(f=f.split(",")[0])),m=f in tn)if(this.styles.save(f),g||((v=t._gsap).renderTransform&&!e.parseTransform||Kn(t,e.parseTransform),_=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Ar(this._pt,$,wn,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===f)this._pt=new Ar(this._pt,v,"scaleY",v.scaleY,(d?It(v.scaleY,d+a):a)-v.scaleY||0,un),this._pt.u=0,k.push("scaleY",f),f+="X";else{if("transformOrigin"===f){b.push(Mn,0,$[Mn]),w=void 0,M=void 0,T=void 0,M=(w=(x=o).split(" "))[0],T=w[1]||"50%","top"!==M&&"bottom"!==M&&"left"!==T&&"right"!==T||(x=M,M=T,T=x),w[0]=Xn[M]||M,w[1]=Xn[T]||T,o=w.join(" "),v.svg?Jn(t,o,0,_,0,this):((p=parseFloat(o.split(" ")[2])||0)!==v.zOrigin&&In(this,v,"zOrigin",v.zOrigin,p),In(this,$,f,ti(s),ti(o)));continue}if("svgOrigin"===f){Jn(t,o,1,_,0,this);continue}if(f in qn){li(this,v,f,l,d?It(l,d+o):o);continue}if("smoothOrigin"===f){In(this,v,"smooth",v.smooth,o);continue}if("force3D"===f){v[f]=o;continue}if("transform"===f){ci(this,o,t);continue}}else f in $||(f=zn(f)||f);if(m||(a||0===a)&&(l||0===l)&&!an.test(o)&&f in $)a||(a=0),(h=(s+"").substr((l+"").length))!==(p=ye(o)||(f in U.units?U.units[f]:h))&&(l=Un(t,f,s,p)),this._pt=new Ar(this._pt,m?v:$,f,l,(d?It(l,d+a):a)-l,m||"px"!==p&&"zIndex"!==f||!1===e.autoRound?un:hn),this._pt.u=p||0,h!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=fn);else if(f in $)Bn.call(this,t,f,s,d?d+o:o);else if(f in t)this.add(t,f,s||t[f],d?d+o:o,n,i);else if("parseTransform"!==f){vt(f,o);continue}m||(f in $?b.push(f,0,$[f]):"function"==typeof t[f]?b.push(f,2,t[f]()):b.push(f,1,s||t[f])),k.push(f)}y&&zr(this)},render:function(t,e){if(e.tween._time||!Jr())for(var r=e._pt;r;)r.r(t,r.d),r=r._next;else e.styles.revert()},get:Fn,aliases:ln,getSetter:function(t,e,r){var n=ln[e];return n&&n.indexOf(",")<0&&(e=n),e in tn&&e!==Mn&&(t._gsap.x||Fn(t,"x"))?r&&Gr===r?"scale"===e?yn:vn:(Gr=r||{})&&("scale"===e?bn:xn):t.style&&!tt(t.style[e])?mn:~e.indexOf("-")?gn:Mr(t,e)},core:{_removeProperty:Pn,_getMatrix:Gn}};Qr.utils.checkPrefix=zn,Qr.core.getStyleSaver=Dn,hi=Lt("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(fi="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){tn[t]=1})),Lt(fi,(function(t){U.units[t]="deg",qn[t]=1})),ln[hi[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+fi,Lt("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");ln[e[1]]=hi[e[0]]})),Lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){U.units[t]="px"})),Qr.registerPlugin(pi);var di=Qr.registerPlugin(pi)||Qr;function mi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}di.core.Tween;var gi,vi,_i,yi,bi,xi,wi,Mi,Ti,ki,$i,Di,Si,Oi=function(){return gi||"undefined"!=typeof window&&(gi=window.gsap)&&gi.registerPlugin&&gi},Ci=1,zi=[],Ai=[],Ei=[],Ni=Date.now,Li=function(t,e){return e},ji=function(t,e){return~Ei.indexOf(t)&&Ei[Ei.indexOf(t)+1][e]},Pi=function(t){return!!~ki.indexOf(t)},Ii=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!1!==n,capture:!!i})},Ri=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},Yi="scrollLeft",Ui="scrollTop",Fi=function(){return $i&&$i.isPressed||Ai.cache++},Bi=function(t,e){var r=function r(n){if(n||0===n){Ci&&(_i.history.scrollRestoration="manual");var i=$i&&$i.isPressed;n=r.v=Math.round(n)||($i&&$i.iOS?1:0),t(n),r.cacheID=Ai.cache,i&&Li("ss",n)}else(e||Ai.cache!==r.cacheID||Li("ref"))&&(r.cacheID=Ai.cache,r.v=t());return r.v+r.offset};return r.offset=0,t&&r},Xi={s:Yi,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Bi((function(t){return arguments.length?_i.scrollTo(t,Qi.sc()):_i.pageXOffset||yi[Yi]||bi[Yi]||xi[Yi]||0}))},Qi={s:Ui,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:Xi,sc:Bi((function(t){return arguments.length?_i.scrollTo(Xi.sc(),t):_i.pageYOffset||yi[Ui]||bi[Ui]||xi[Ui]||0}))},Hi=function(t,e){return(e&&e._ctx&&e._ctx.selector||gi.utils.toArray)(t)[0]||("string"==typeof t&&!1!==gi.config().nullTargetWarn?console.warn("Element not found:",t):null)},Wi=function(t,e){var r=e.s,n=e.sc;Pi(t)&&(t=yi.scrollingElement||bi);var i=Ai.indexOf(t),s=n===Qi.sc?1:2;!~i&&(i=Ai.push(t)-1),Ai[i+s]||Ii(t,"scroll",Fi);var o=Ai[i+s],a=o||(Ai[i+s]=Bi(ji(t,r),!0)||(Pi(t)?n:Bi((function(e){return arguments.length?t[r]=e:t[r]}))));return a.target=t,o||(a.smooth="smooth"===gi.getProperty(t,"scrollBehavior")),a},qi=function(t,e,r){var n=t,i=t,s=Ni(),o=s,a=e||50,l=Math.max(500,3*a),u=function(t,e){var l=Ni();e||l-s>a?(i=n,n=t,o=s,s=l):r?n+=t:n=i+(t-i)/(l-o)*(s-o)};return{update:u,reset:function(){i=n=r?0:n,o=s=0},getVelocity:function(t){var e=o,a=i,c=Ni();return(t||0===t)&&t!==n&&u(t),s===o||c-o>l?0:(n+(r?a:-a))/((r?c:s)-e)*1e3}}},Vi=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Zi=function(t){var e=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(r)?e:r},Gi=function(){var t,e,r,n;(Ti=gi.core.globals().ScrollTrigger)&&Ti.core&&(t=Ti.core,e=t.bridge||{},r=t._scrollers,n=t._proxies,r.push.apply(r,Ai),n.push.apply(n,Ei),Ai=r,Ei=n,Li=function(t,r){return e[t](r)})},Ji=function(t){return gi=t||Oi(),!vi&&gi&&"undefined"!=typeof document&&document.body&&(_i=window,yi=document,bi=yi.documentElement,xi=yi.body,ki=[_i,yi,bi,xi],gi.utils.clamp,Si=gi.core.context||function(){},Mi="onpointerenter"in xi?"pointer":"mouse",wi=Ki.isTouch=_i.matchMedia&&_i.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in _i||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0, | |
| 13 | +Di=Ki.eventTypes=("ontouchstart"in bi?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in bi?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Ci=0}),500),Gi(),vi=1),vi};Xi.op=Qi,Ai.cache=0;var Ki=function(){function t(t){this.init(t)}var e,r;return t.prototype.init=function(t){vi||Ji(gi)||console.warn("Please gsap.registerPlugin(Observer)"),Ti||Gi();var e=t.tolerance,r=t.dragMinimum,n=t.type,i=t.target,s=t.lineHeight,o=t.debounce,a=t.preventDefault,l=t.onStop,u=t.onStopDelay,c=t.ignore,f=t.wheelSpeed,h=t.event,p=t.onDragStart,d=t.onDragEnd,m=t.onDrag,g=t.onPress,v=t.onRelease,_=t.onRight,y=t.onLeft,b=t.onUp,x=t.onDown,w=t.onChangeX,M=t.onChangeY,T=t.onChange,k=t.onToggleX,$=t.onToggleY,D=t.onHover,S=t.onHoverEnd,O=t.onMove,C=t.ignoreCheck,z=t.isNormalizer,A=t.onGestureStart,E=t.onGestureEnd,N=t.onWheel,L=t.onEnable,j=t.onDisable,P=t.onClick,I=t.scrollSpeed,R=t.capture,Y=t.allowClicks,U=t.lockAxis,F=t.onLockAxis;this.target=i=Hi(i)||bi,this.vars=t,c&&(c=gi.utils.toArray(c)),e=e||1e-9,r=r||0,f=f||1,I=I||1,n=n||"wheel,touch,pointer",o=!1!==o,s||(s=parseFloat(_i.getComputedStyle(xi).lineHeight)||22);var B,X,Q,H,W,q,V,Z=this,G=0,J=0,K=t.passive||!a&&!1!==t.passive,tt=Wi(i,Xi),et=Wi(i,Qi),rt=tt(),nt=et(),it=~n.indexOf("touch")&&!~n.indexOf("pointer")&&"pointerdown"===Di[0],st=Pi(i),ot=i.ownerDocument||yi,at=[0,0,0],lt=[0,0,0],ut=0,ct=function(){return ut=Ni()},ft=function(t,e){return(Z.event=t)&&c&&~c.indexOf(t.target)||e&&it&&"touch"!==t.pointerType||C&&C(t,e)},ht=function(){var t=Z.deltaX=Zi(at),r=Z.deltaY=Zi(lt),n=Math.abs(t)>=e,i=Math.abs(r)>=e;T&&(n||i)&&T(Z,t,r,at,lt),n&&(_&&Z.deltaX>0&&_(Z),y&&Z.deltaX<0&&y(Z),w&&w(Z),k&&Z.deltaX<0!=G<0&&k(Z),G=Z.deltaX,at[0]=at[1]=at[2]=0),i&&(x&&Z.deltaY>0&&x(Z),b&&Z.deltaY<0&&b(Z),M&&M(Z),$&&Z.deltaY<0!=J<0&&$(Z),J=Z.deltaY,lt[0]=lt[1]=lt[2]=0),(H||Q)&&(O&&O(Z),Q&&(p&&1===Q&&p(Z),m&&m(Z),Q=0),H=!1),q&&!(q=!1)&&F&&F(Z),W&&(N(Z),W=!1),B=0},pt=function(t,e,r){at[r]+=t,lt[r]+=e,Z._vx.update(t),Z._vy.update(e),o?B||(B=requestAnimationFrame(ht)):ht()},dt=function(t,e){U&&!V&&(Z.axis=V=Math.abs(t)>Math.abs(e)?"x":"y",q=!0),"y"!==V&&(at[2]+=t,Z._vx.update(t,!0)),"x"!==V&&(lt[2]+=e,Z._vy.update(e,!0)),o?B||(B=requestAnimationFrame(ht)):ht()},mt=function(t){if(!ft(t,1)){var e=(t=Vi(t,a)).clientX,n=t.clientY,i=e-Z.x,s=n-Z.y,o=Z.isDragging;Z.x=e,Z.y=n,(o||(i||s)&&(Math.abs(Z.startX-e)>=r||Math.abs(Z.startY-n)>=r))&&(Q=o?2:1,o||(Z.isDragging=!0),dt(i,s))}},gt=Z.onPress=function(t){ft(t,1)||t&&t.button||(Z.axis=V=null,X.pause(),Z.isPressed=!0,t=Vi(t),G=J=0,Z.startX=Z.x=t.clientX,Z.startY=Z.y=t.clientY,Z._vx.reset(),Z._vy.reset(),Ii(z?i:ot,Di[1],mt,K,!0),Z.deltaX=Z.deltaY=0,g&&g(Z))},vt=Z.onRelease=function(t){if(!ft(t,1)){Ri(z?i:ot,Di[1],mt,!0);var e=!isNaN(Z.y-Z.startY),r=Z.isDragging,n=r&&(Math.abs(Z.x-Z.startX)>3||Math.abs(Z.y-Z.startY)>3),s=Vi(t);!n&&e&&(Z._vx.reset(),Z._vy.reset(),a&&Y&&gi.delayedCall(.08,(function(){if(Ni()-ut>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(ot.createEvent){var e=ot.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,_i,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),Z.isDragging=Z.isGesturing=Z.isPressed=!1,l&&r&&!z&&X.restart(!0),Q&&ht(),d&&r&&d(Z),v&&v(Z,n)}},_t=function(t){return t.touches&&t.touches.length>1&&(Z.isGesturing=!0)&&A(t,Z.isDragging)},yt=function(){return(Z.isGesturing=!1)||E(Z)},bt=function(t){if(!ft(t)){var e=tt(),r=et();pt((e-rt)*I,(r-nt)*I,1),rt=e,nt=r,l&&X.restart(!0)}},xt=function(t){if(!ft(t)){t=Vi(t,a),N&&(W=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?_i.innerHeight:1)*f;pt(t.deltaX*e,t.deltaY*e,0),l&&!z&&X.restart(!0)}},wt=function(t){if(!ft(t)){var e=t.clientX,r=t.clientY,n=e-Z.x,i=r-Z.y;Z.x=e,Z.y=r,H=!0,l&&X.restart(!0),(n||i)&&dt(n,i)}},Mt=function(t){Z.event=t,D(Z)},Tt=function(t){Z.event=t,S(Z)},kt=function(t){return ft(t)||Vi(t,a)&&P(Z)};X=Z._dc=gi.delayedCall(u||.25,(function(){Z._vx.reset(),Z._vy.reset(),X.pause(),l&&l(Z)})).pause(),Z.deltaX=Z.deltaY=0,Z._vx=qi(0,50,!0),Z._vy=qi(0,50,!0),Z.scrollX=tt,Z.scrollY=et,Z.isDragging=Z.isGesturing=Z.isPressed=!1,Si(this),Z.enable=function(t){return Z.isEnabled||(Ii(st?ot:i,"scroll",Fi),n.indexOf("scroll")>=0&&Ii(st?ot:i,"scroll",bt,K,R),n.indexOf("wheel")>=0&&Ii(i,"wheel",xt,K,R),(n.indexOf("touch")>=0&&wi||n.indexOf("pointer")>=0)&&(Ii(i,Di[0],gt,K,R),Ii(ot,Di[2],vt),Ii(ot,Di[3],vt),Y&&Ii(i,"click",ct,!0,!0),P&&Ii(i,"click",kt),A&&Ii(ot,"gesturestart",_t),E&&Ii(ot,"gestureend",yt),D&&Ii(i,Mi+"enter",Mt),S&&Ii(i,Mi+"leave",Tt),O&&Ii(i,Mi+"move",wt)),Z.isEnabled=!0,Z.isDragging=Z.isGesturing=Z.isPressed=H=Q=!1,Z._vx.reset(),Z._vy.reset(),rt=tt(),nt=et(),t&&t.type&>(t),L&&L(Z)),Z},Z.disable=function(){Z.isEnabled&&(zi.filter((function(t){return t!==Z&&Pi(t.target)})).length||Ri(st?ot:i,"scroll",Fi),Z.isPressed&&(Z._vx.reset(),Z._vy.reset(),Ri(z?i:ot,Di[1],mt,!0)),Ri(st?ot:i,"scroll",bt,R),Ri(i,"wheel",xt,R),Ri(i,Di[0],gt,R),Ri(ot,Di[2],vt),Ri(ot,Di[3],vt),Ri(i,"click",ct,!0),Ri(i,"click",kt),Ri(ot,"gesturestart",_t),Ri(ot,"gestureend",yt),Ri(i,Mi+"enter",Mt),Ri(i,Mi+"leave",Tt),Ri(i,Mi+"move",wt),Z.isEnabled=Z.isPressed=Z.isDragging=!1,j&&j(Z))},Z.kill=Z.revert=function(){Z.disable();var t=zi.indexOf(Z);t>=0&&zi.splice(t,1),$i===Z&&($i=0)},zi.push(Z),z&&Pi(i)&&($i=Z),Z.enable(h)},e=t,(r=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&mi(e.prototype,r),t}();Ki.version="3.12.7",Ki.create=function(t){return new Ki(t)},Ki.register=Ji,Ki.getAll=function(){return zi.slice()},Ki.getById=function(t){return zi.filter((function(e){return e.vars.id===t}))[0]},Oi()&&gi.registerPlugin(Ki);var ts,es,rs,ns,is,ss,os,as,ls,us,cs,fs,hs,ps,ds,ms,gs,vs,_s,ys,bs,xs,ws,Ms,Ts,ks,$s,Ds,Ss,Os,Cs,zs,As,Es,Ns,Ls,js,Ps,Is=1,Rs=Date.now,Ys=Rs(),Us=0,Fs=0,Bs=function(t,e,r){var n=no(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return r["_"+e+"Clamp"]=n,n?t.substr(6,t.length-7):t},Xs=function(t,e){return!e||no(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},Qs=function t(){return Fs&&requestAnimationFrame(t)},Hs=function(){return ps=1},Ws=function(){return ps=0},qs=function(t){return t},Vs=function(t){return Math.round(1e5*t)/1e5||0},Zs=function(){return"undefined"!=typeof window},Gs=function(){return ts||Zs()&&(ts=window.gsap)&&ts.registerPlugin&&ts},Js=function(t){return!!~os.indexOf(t)},Ks=function(t){return("Height"===t?Cs:rs["inner"+t])||is["client"+t]||ss["client"+t]},to=function(t){return ji(t,"getBoundingClientRect")||(Js(t)?function(){return da.width=rs.innerWidth,da.height=Cs,da}:function(){return Do(t)})},eo=function(t,e){var r=e.s,n=e.d2,i=e.d,s=e.a;return Math.max(0,(r="scroll"+n)&&(s=ji(t,r))?s()-to(t)()[i]:Js(t)?(is[r]||ss[r])-Ks(n):t[r]-t["offset"+n])},ro=function(t,e){for(var r=0;r<_s.length;r+=3)(!e||~e.indexOf(_s[r+1]))&&t(_s[r],_s[r+1],_s[r+2])},no=function(t){return"string"==typeof t},io=function(t){return"function"==typeof t},so=function(t){return"number"==typeof t},oo=function(t){return"object"==typeof t},ao=function(t,e,r){return t&&t.progress(e?0:1)&&r&&t.pause()},lo=function(t,e){if(t.enabled){var r=t._ctx?t._ctx.add((function(){return e(t)})):e(t);r&&r.totalTime&&(t.callbackAnimation=r)}},uo=Math.abs,co="left",fo="right",ho="bottom",po="width",mo="height",go="Right",vo="Left",_o="Top",yo="Bottom",bo="padding",xo="margin",wo="Width",Mo="Height",To="px",ko=function(t){return rs.getComputedStyle(t)},$o=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},Do=function(t,e){var r=e&&"matrix(1, 0, 0, 1, 0, 0)"!==ko(t)[ds]&&ts.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),n=t.getBoundingClientRect();return r&&r.progress(0).kill(),n},So=function(t,e){var r=e.d2;return t["offset"+r]||t["client"+r]||0},Oo=function(t){var e,r=[],n=t.labels,i=t.duration();for(e in n)r.push(n[e]/i);return r},Co=function(t){ | |
| 14 | +var e=ts.utils.snap(t),r=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return r?function(t,n,i){var s;if(void 0===i&&(i=.001),!n)return e(t);if(n>0){for(t-=i,s=0;s<r.length;s++)if(r[s]>=t)return r[s];return r[s-1]}for(s=r.length,t+=i;s--;)if(r[s]<=t)return r[s];return r[0]}:function(r,n,i){void 0===i&&(i=.001);var s=e(r);return!n||Math.abs(s-r)<i||s-r<0==n<0?s:e(n<0?r-t:r+t)}},zo=function(t,e,r,n){return r.split(",").forEach((function(r){return t(e,r,n)}))},Ao=function(t,e,r,n,i){return t.addEventListener(e,r,{passive:!n,capture:!!i})},Eo=function(t,e,r,n){return t.removeEventListener(e,r,!!n)},No=function(t,e,r){(r=r&&r.wheelHandler)&&(t(e,"wheel",r),t(e,"touchmove",r))},Lo={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},jo={toggleActions:"play",anticipatePin:0},Po={top:0,left:0,center:.5,bottom:1,right:1},Io=function(t,e){if(no(t)){var r=t.indexOf("="),n=~r?+(t.charAt(r-1)+1)*parseFloat(t.substr(r+1)):0;~r&&(t.indexOf("%")>r&&(n*=e/100),t=t.substr(0,r-1)),t=n+(t in Po?Po[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ro=function(t,e,r,n,i,s,o,a){var l=i.startColor,u=i.endColor,c=i.fontSize,f=i.indent,h=i.fontWeight,p=ns.createElement("div"),d=Js(r)||"fixed"===ji(r,"pinType"),m=-1!==t.indexOf("scroller"),g=d?ss:r,v=-1!==t.indexOf("start"),_=v?l:u,y="border-color:"+_+";font-size:"+c+";color:"+_+";font-weight:"+h+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return y+="position:"+((m||a)&&d?"fixed;":"absolute;"),(m||a||!d)&&(y+=(n===Qi?fo:ho)+":"+(s+parseFloat(f))+"px;"),o&&(y+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=v,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=y,p.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+n.op.d2],Yo(p,0,n,v),p},Yo=function(t,e,r,n){var i={display:"block"},s=r[n?"os2":"p2"],o=r[n?"p2":"os2"];t._isFlipped=n,i[r.a+"Percent"]=n?-100:0,i[r.a]=n?"1px":0,i["border"+s+wo]=1,i["border"+o+wo]=0,i[r.p]=e+"px",ts.set(t,i)},Uo=[],Fo={},Bo=function(){return Rs()-Us>34&&(Ns||(Ns=requestAnimationFrame(aa)))},Xo=function(){(!ws||!ws.isPressed||ws.startX>ss.clientWidth)&&(Ai.cache++,ws?Ns||(Ns=requestAnimationFrame(aa)):aa(),Us||Zo("scrollStart"),Us=Rs())},Qo=function(){ks=rs.innerWidth,Ts=rs.innerHeight},Ho=function(t){Ai.cache++,(!0===t||!hs&&!xs&&!ns.fullscreenElement&&!ns.webkitFullscreenElement&&(!Ms||ks!==rs.innerWidth||Math.abs(rs.innerHeight-Ts)>.25*rs.innerHeight))&&as.restart(!0)},Wo={},qo=[],Vo=function t(){return Eo(xa,"scrollEnd",t)||ia(!0)},Zo=function(t){return Wo[t]&&Wo[t].map((function(t){return t()}))||qo},Go=[],Jo=function(t){for(var e=0;e<Go.length;e+=5)(!t||Go[e+4]&&Go[e+4].query===t)&&(Go[e].style.cssText=Go[e+1],Go[e].getBBox&&Go[e].setAttribute("transform",Go[e+2]||""),Go[e+3].uncache=1)},Ko=function(t,e){var r;for(ms=0;ms<Uo.length;ms++)!(r=Uo[ms])||e&&r._ctx!==e||(t?r.kill(1):r.revert(!0,!0));zs=!0,e&&Jo(e),e||Zo("revert")},ta=function(t,e){Ai.cache++,(e||!Ls)&&Ai.forEach((function(t){return io(t)&&t.cacheID++&&(t.rec=0)})),no(t)&&(rs.history.scrollRestoration=Ss=t)},ea=0,ra=function(){ss.appendChild(Os),Cs=!ws&&Os.offsetHeight||rs.innerHeight,ss.removeChild(Os)},na=function(t){return ls(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))},ia=function(t,e){if(is=ns.documentElement,ss=ns.body,os=[rs,ns,is,ss],!Us||t||zs){ra(),Ls=xa.isRefreshing=!0,Ai.forEach((function(t){return io(t)&&++t.cacheID&&(t.rec=t())}));var r=Zo("refreshInit");ys&&xa.sort(),e||Ko(),Ai.forEach((function(t){io(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),Uo.slice(0).forEach((function(t){return t.refresh()})),zs=!1,Uo.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",r=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-r),t.refresh()}})),As=1,na(!0),Uo.forEach((function(t){var e=eo(t.scroller,t._dir),r="max"===t.vars.end||t._endClamp&&t.end>e,n=t._startClamp&&t.start>=e;(r||n)&&t.setPositions(n?e-1:t.start,r?Math.max(n?e:t.start+1,e):t.end,!0)})),na(!1),As=0,r.forEach((function(t){return t&&t.render&&t.render(-1)})),Ai.forEach((function(t){io(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),ta(Ss,1),as.pause(),ea++,Ls=2,aa(2),Uo.forEach((function(t){return io(t.vars.onRefresh)&&t.vars.onRefresh(t)})),Ls=xa.isRefreshing=!1,Zo("refresh")}else Ao(xa,"scrollEnd",Vo)},sa=0,oa=1,aa=function(t){if(2===t||!Ls&&!zs){xa.isUpdating=!0,Ps&&Ps.update(0);var e=Uo.length,r=Rs(),n=r-Ys>=50,i=e&&Uo[0].scroll();if(oa=sa>i?-1:1,Ls||(sa=i),n&&(Us&&!ps&&r-Us>200&&(Us=0,Zo("scrollEnd")),cs=Ys,Ys=r),oa<0){for(ms=e;ms-- >0;)Uo[ms]&&Uo[ms].update(0,n);oa=1}else for(ms=0;ms<e;ms++)Uo[ms]&&Uo[ms].update(0,n);xa.isUpdating=!1}Ns=0},la=[co,"top",ho,fo,xo+yo,xo+go,xo+_o,xo+vo,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],ua=la.concat([po,mo,"boxSizing","max"+wo,"max"+Mo,"position",xo,bo,bo+_o,bo+go,bo+yo,bo+vo]),ca=function(t,e,r,n){if(!t._gsap.swappedIn){for(var i,s=la.length,o=e.style,a=t.style;s--;)o[i=la[s]]=r[i];o.position="absolute"===r.position?"absolute":"relative","inline"===r.display&&(o.display="inline-block"),a[ho]=a[fo]="auto",o.flexBasis=r.flexBasis||"auto",o.overflow="visible",o.boxSizing="border-box",o[po]=So(t,Xi)+To,o[mo]=So(t,Qi)+To,o[bo]=a[xo]=a.top=a[co]="0",ha(n),a[po]=a["max"+wo]=r[po],a[mo]=a["max"+Mo]=r[mo],a[bo]=r[bo],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},fa=/([A-Z])/g,ha=function(t){if(t){var e,r,n=t.t.style,i=t.length,s=0;for((t.t._gsap||ts.core.getCache(t.t)).uncache=1;s<i;s+=2)r=t[s+1],e=t[s],r?n[e]=r:n[e]&&n.removeProperty(e.replace(fa,"-$1").toLowerCase())}},pa=function(t){for(var e=ua.length,r=t.style,n=[],i=0;i<e;i++)n.push(ua[i],r[ua[i]]);return n.t=t,n},da={left:0,top:0},ma=function(t,e,r,n,i,s,o,a,l,u,c,f,h,p){io(t)&&(t=t(a)),no(t)&&"max"===t.substr(0,3)&&(t=f+("="===t.charAt(4)?Io("0"+t.substr(3),r):0));var d,m,g,v=h?h.time():0;if(h&&h.seek(0),isNaN(t)||(t=+t),so(t))h&&(t=ts.utils.mapRange(h.scrollTrigger.start,h.scrollTrigger.end,0,f,t)),o&&Yo(o,r,n,!0);else{io(e)&&(e=e(a));var _,y,b,x,w=(t||"0").split(" ");g=Hi(e,a)||ss,(_=Do(g)||{})&&(_.left||_.top)||"none"!==ko(g).display||(x=g.style.display,g.style.display="block",_=Do(g),x?g.style.display=x:g.style.removeProperty("display")),y=Io(w[0],_[n.d]),b=Io(w[1]||"0",r),t=_[n.p]-l[n.p]-u+y+i-b,o&&Yo(o,b,n,r-b<20||o._isStart&&b>20),r-=r-b}if(p&&(a[p]=t||-.001,t<0&&(t=0)),s){var M=t+r,T=s._isStart;d="scroll"+n.d2,Yo(s,M,n,T&&M>20||!T&&(c?Math.max(ss[d],is[d]):s.parentNode[d])<=M+1),c&&(l=Do(o),c&&(s.style[n.op.p]=l[n.op.p]-n.op.m-s._offset+To))}return h&&g&&(d=Do(g),h.seek(f),m=Do(g),h._caScrollDist=d[n.p]-m[n.p],t=t/h._caScrollDist*f),h&&h.seek(v),h?t:Math.round(t)},ga=/(webkit|moz|length|cssText|inset)/i,va=function(t,e,r,n){if(t.parentNode!==e){var i,s,o=t.style;if(e===ss){for(i in t._stOrig=o.cssText,s=ko(t))+i||ga.test(i)||!s[i]||"string"!=typeof o[i]||"0"===i||(o[i]=s[i]);o.top=r,o.left=n}else o.cssText=t._stOrig;ts.core.getCache(t).uncache=1,e.appendChild(t)}},_a=function(t,e,r){var n=e,i=n;return function(e){var s=Math.round(t());return s!==n&&s!==i&&Math.abs(s-n)>3&&Math.abs(s-i)>3&&(e=s,r&&r()),i=n,n=Math.round(e)}},ya=function(t,e,r){var n={};n[e.p]="+="+r,ts.set(t,n)},ba=function(t,e){var r=Wi(t,e),n="_scroll"+e.p2,i=function e(i,s,o,a,l){var u=e.tween,c=s.onComplete,f={};o=o||r();var h=_a(r,o,(function(){u.kill(),e.tween=0}));return l=a&&l||0,a=a||i-o,u&&u.kill(),s[n]=i,s.inherit=!1,s.modifiers=f,f[n]=function(){return h(o+a*u.ratio+l*u.ratio*u.ratio)},s.onUpdate=function(){ | |
| 15 | +Ai.cache++,e.tween&&aa()},s.onComplete=function(){e.tween=0,c&&c.call(u)},u=e.tween=ts.to(t,s)};return t[n]=r,r.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},Ao(t,"wheel",r.wheelHandler),xa.isTouch&&Ao(t,"touchmove",r.wheelHandler),i},xa=function(){function t(e,r){es||t.register(ts)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Ds(this),this.init(e,r)}return t.prototype.init=function(e,r){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Fs){var n,i,s,o,a,l,u,c,f,h,p,d,m,g,v,_,y,b,x,w,M,T,k,$,D,S,O,C,z,A,E,N,L,j,P,I,R,Y,U,F,B,X,Q=e=$o(no(e)||so(e)||e.nodeType?{trigger:e}:e,jo),H=Q.onUpdate,W=Q.toggleClass,q=Q.id,V=Q.onToggle,Z=Q.onRefresh,G=Q.scrub,J=Q.trigger,K=Q.pin,tt=Q.pinSpacing,et=Q.invalidateOnRefresh,rt=Q.anticipatePin,nt=Q.onScrubComplete,it=Q.onSnapComplete,st=Q.once,ot=Q.snap,at=Q.pinReparent,lt=Q.pinSpacer,ut=Q.containerAnimation,ct=Q.fastScrollEnd,ft=Q.preventOverlaps,ht=e.horizontal||e.containerAnimation&&!1!==e.horizontal?Xi:Qi,pt=!G&&0!==G,dt=Hi(e.scroller||rs),mt=ts.core.getCache(dt),gt=Js(dt),vt="fixed"===("pinType"in e?e.pinType:ji(dt,"pinType")||gt&&"fixed"),_t=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],yt=pt&&e.toggleActions.split(" "),bt="markers"in e?e.markers:jo.markers,xt=gt?0:parseFloat(ko(dt)["border"+ht.p2+wo])||0,wt=this,Mt=e.onRefreshInit&&function(){return e.onRefreshInit(wt)},Tt=function(t,e,r){var n=r.d,i=r.d2,s=r.a;return(s=ji(t,"getBoundingClientRect"))?function(){return s()[n]}:function(){return(e?Ks(i):t["client"+i])||0}}(dt,gt,ht),kt=function(t,e){return!e||~Ei.indexOf(t)?to(t):function(){return da}}(dt,gt),$t=0,Dt=0,St=0,Ot=Wi(dt,ht);if(wt._startClamp=wt._endClamp=!1,wt._dir=ht,rt*=45,wt.scroller=dt,wt.scroll=ut?ut.time.bind(ut):Ot,o=Ot(),wt.vars=e,r=r||e.animation,"refreshPriority"in e&&(ys=1,-9999===e.refreshPriority&&(Ps=wt)),mt.tweenScroll=mt.tweenScroll||{top:ba(dt,Qi),left:ba(dt,Xi)},wt.tweenTo=n=mt.tweenScroll[ht.p],wt.scrubDuration=function(t){(L=so(t)&&t)?N?N.duration(t):N=ts.to(r,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:L,paused:!0,onComplete:function(){return nt&&nt(wt)}}):(N&&N.progress(1).kill(),N=0)},r&&(r.vars.lazy=!1,r._initted&&!wt.isReverted||!1!==r.vars.immediateRender&&!1!==e.immediateRender&&r.duration()&&r.render(0,!0,!0),wt.animation=r.pause(),r.scrollTrigger=wt,wt.scrubDuration(G),A=0,q||(q=r.vars.id)),ot&&(oo(ot)&&!ot.push||(ot={snapTo:ot}),"scrollBehavior"in ss.style&&ts.set(gt?[ss,is]:dt,{scrollBehavior:"auto"}),Ai.forEach((function(t){return io(t)&&t.target===(gt?ns.scrollingElement||is:dt)&&(t.smooth=!1)})),s=io(ot.snapTo)?ot.snapTo:"labels"===ot.snapTo?function(t){return function(e){return ts.utils.snap(Oo(t),e)}}(r):"labelsDirectional"===ot.snapTo?(F=r,function(t,e){return Co(Oo(F))(t,e.direction)}):!1!==ot.directional?function(t,e){return Co(ot.snapTo)(t,Rs()-Dt<500?0:e.direction)}:ts.utils.snap(ot.snapTo),j=ot.duration||{min:.1,max:2},j=oo(j)?us(j.min,j.max):us(j,j),P=ts.delayedCall(ot.delay||L/2||.1,(function(){var t=Ot(),e=Rs()-Dt<500,i=n.tween;if(!(e||Math.abs(wt.getVelocity())<10)||i||ps||$t===t)wt.isActive&&$t!==t&&P.restart(!0);else{var o,a,c=(t-l)/g,f=r&&!pt?r.totalProgress():c,h=e?0:(f-E)/(Rs()-cs)*1e3||0,p=ts.utils.clamp(-c,1-c,uo(h/2)*h/.185),d=c+(!1===ot.inertia?0:p),m=ot,v=m.onStart,_=m.onInterrupt,y=m.onComplete;if(o=s(d,wt),so(o)||(o=d),a=Math.max(0,Math.round(l+o*g)),t<=u&&t>=l&&a!==t){if(i&&!i._initted&&i.data<=uo(a-t))return;!1===ot.inertia&&(p=o-c),n(a,{duration:j(uo(.185*Math.max(uo(d-f),uo(o-f))/h/.05||0)),ease:ot.ease||"power3",data:uo(a-t),onInterrupt:function(){return P.restart(!0)&&_&&_(wt)},onComplete:function(){wt.update(),$t=Ot(),r&&!pt&&(N?N.resetTo("totalProgress",o,r._tTime/r._tDur):r.progress(o)),A=E=r&&!pt?r.totalProgress():wt.progress,it&&it(wt),y&&y(wt)}},t,p*g,a-t-p*g),v&&v(wt,n.tween)}}})).pause()),q&&(Fo[q]=wt),(U=(J=wt.trigger=Hi(J||!0!==K&&K))&&J._gsap&&J._gsap.stRevert)&&(U=U(wt)),K=!0===K?J:Hi(K),no(W)&&(W={targets:J,className:W}),K&&(!1===tt||tt===xo||(tt=!(!tt&&K.parentNode&&K.parentNode.style&&"flex"===ko(K.parentNode).display)&&bo),wt.pin=K,(i=ts.core.getCache(K)).spacer?v=i.pinState:(lt&&((lt=Hi(lt))&&!lt.nodeType&&(lt=lt.current||lt.nativeElement),i.spacerIsNative=!!lt,lt&&(i.spacerState=pa(lt))),i.spacer=b=lt||ns.createElement("div"),b.classList.add("pin-spacer"),q&&b.classList.add("pin-spacer-"+q),i.pinState=v=pa(K)),!1!==e.force3D&&ts.set(K,{force3D:!0}),wt.spacer=b=i.spacer,z=ko(K),$=z[tt+ht.os2],w=ts.getProperty(K),M=ts.quickSetter(K,ht.a,To),ca(K,b,z),y=pa(K)),bt){d=oo(bt)?$o(bt,Lo):Lo,h=Ro("scroller-start",q,dt,ht,d,0),p=Ro("scroller-end",q,dt,ht,d,0,h),x=h["offset"+ht.op.d2];var Ct=Hi(ji(dt,"content")||dt);c=this.markerStart=Ro("start",q,Ct,ht,d,x,0,ut),f=this.markerEnd=Ro("end",q,Ct,ht,d,x,0,ut),ut&&(Y=ts.quickSetter([c,f],ht.a,To)),vt||Ei.length&&!0===ji(dt,"fixedMarkers")||(X=ko(B=gt?ss:dt).position,B.style.position="absolute"===X||"fixed"===X?X:"relative",ts.set([h,p],{force3D:!0}),S=ts.quickSetter(h,ht.a,To),C=ts.quickSetter(p,ht.a,To))}if(ut){var zt=ut.vars.onUpdate,At=ut.vars.onUpdateParams;ut.eventCallback("onUpdate",(function(){wt.update(0,0,1),zt&&zt.apply(ut,At||[])}))}if(wt.previous=function(){return Uo[Uo.indexOf(wt)-1]},wt.next=function(){return Uo[Uo.indexOf(wt)+1]},wt.revert=function(t,e){if(!e)return wt.kill(!0);var n=!1!==t||!wt.enabled,i=hs;n!==wt.isReverted&&(n&&(I=Math.max(Ot(),wt.scroll.rec||0),St=wt.progress,R=r&&r.progress()),c&&[c,f,h,p].forEach((function(t){return t.style.display=n?"none":"block"})),n&&(hs=wt,wt.update(n)),!K||at&&wt.isActive||(n?function(t,e,r){ha(r);var n=t._gsap;if(n.spacerIsNative)ha(n.spacerState);else if(t._gsap.swappedIn){var i=e.parentNode;i&&(i.insertBefore(t,e),i.removeChild(e))}t._gsap.swappedIn=!1}(K,b,v):ca(K,b,ko(K),D)),n||wt.update(n),hs=i,wt.isReverted=n)},wt.refresh=function(i,s,d,x){if(!hs&&wt.enabled||s)if(K&&i&&Us)Ao(t,"scrollEnd",Vo);else{!Ls&&Mt&&Mt(wt),hs=wt,n.tween&&!d&&(n.tween.kill(),n.tween=0),N&&N.pause(),et&&r&&r.revert({kill:!1}).invalidate(),wt.isReverted||wt.revert(!0,!0),wt._subPinOffset=!1;var M,$,S,C,z,A,E,L,j,Y,U,F,B,X=Tt(),Q=kt(),H=ut?ut.duration():eo(dt,ht),W=g<=.01,q=0,V=x||0,G=oo(d)?d.end:e.end,rt=e.endTrigger||J,nt=oo(d)?d.start:e.start||(0!==e.start&&J?K?"0 0":"0 100%":0),it=wt.pinnedContainer=e.pinnedContainer&&Hi(e.pinnedContainer,wt),st=J&&Math.max(0,Uo.indexOf(wt))||0,ot=st;for(bt&&oo(d)&&(F=ts.getProperty(h,ht.p),B=ts.getProperty(p,ht.p));ot-- >0;)(A=Uo[ot]).end||A.refresh(0,1)||(hs=wt),!(E=A.pin)||E!==J&&E!==K&&E!==it||A.isReverted||(Y||(Y=[]),Y.unshift(A),A.revert(!0,!0)),A!==Uo[ot]&&(st--,ot--);for(io(nt)&&(nt=nt(wt)),nt=Bs(nt,"start",wt),l=ma(nt,J,X,ht,Ot(),c,h,wt,Q,xt,vt,H,ut,wt._startClamp&&"_startClamp")||(K?-.001:0),io(G)&&(G=G(wt)),no(G)&&!G.indexOf("+=")&&(~G.indexOf(" ")?G=(no(nt)?nt.split(" ")[0]:"")+G:(q=Io(G.substr(2),X),G=no(nt)?nt:(ut?ts.utils.mapRange(0,ut.duration(),ut.scrollTrigger.start,ut.scrollTrigger.end,l):l)+q,rt=J)),G=Bs(G,"end",wt),u=Math.max(l,ma(G||(rt?"100% 0":H),rt,X,ht,Ot()+q,f,p,wt,Q,xt,vt,H,ut,wt._endClamp&&"_endClamp"))||-.001,q=0,ot=st;ot--;)(E=(A=Uo[ot]).pin)&&A.start-A._pinPush<=l&&!ut&&A.end>0&&(M=A.end-(wt._startClamp?Math.max(0,A.start):A.start),(E===J&&A.start-A._pinPush<l||E===it)&&isNaN(nt)&&(q+=M*(1-A.progress)),E===K&&(V+=M));if(l+=q,u+=q,wt._startClamp&&(wt._startClamp+=q),wt._endClamp&&!Ls&&(wt._endClamp=u||-.001,u=Math.min(u,eo(dt,ht))),g=u-l||(l-=.01)&&.001,W&&(St=ts.utils.clamp(0,1,ts.utils.normalize(l,u,I))),wt._pinPush=V,c&&q&&((M={})[ht.a]="+="+q,it&&(M[ht.p]="-="+Ot()),ts.set([c,f],M)),!K||As&&wt.end>=eo(dt,ht)){if(J&&Ot()&&!ut)for($=J.parentNode;$&&$!==ss;)$._pinOffset&&(l-=$._pinOffset,u-=$._pinOffset),$=$.parentNode}else M=ko(K),C=ht===Qi,S=Ot(),T=parseFloat(w(ht.a))+V,!H&&u>1&&(U={style:U=(gt?ns.scrollingElement||is:dt).style,value:U["overflow"+ht.a.toUpperCase()]},gt&&"scroll"!==ko(ss)["overflow"+ht.a.toUpperCase()]&&(U.style["overflow"+ht.a.toUpperCase()]="scroll")),ca(K,b,M),y=pa(K),$=Do(K,!0), | |
| 16 | +L=vt&&Wi(dt,C?Xi:Qi)(),tt?((D=[tt+ht.os2,g+V+To]).t=b,(ot=tt===bo?So(K,ht)+g+V:0)&&(D.push(ht.d,ot+To),"auto"!==b.style.flexBasis&&(b.style.flexBasis=ot+To)),ha(D),it&&Uo.forEach((function(t){t.pin===it&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),vt&&Ot(I)):(ot=So(K,ht))&&"auto"!==b.style.flexBasis&&(b.style.flexBasis=ot+To),vt&&((z={top:$.top+(C?S-l:L)+To,left:$.left+(C?L:S-l)+To,boxSizing:"border-box",position:"fixed"})[po]=z["max"+wo]=Math.ceil($.width)+To,z[mo]=z["max"+Mo]=Math.ceil($.height)+To,z[xo]=z[xo+_o]=z[xo+go]=z[xo+yo]=z[xo+vo]="0",z[bo]=M[bo],z[bo+_o]=M[bo+_o],z[bo+go]=M[bo+go],z[bo+yo]=M[bo+yo],z[bo+vo]=M[bo+vo],_=function(t,e,r){for(var n,i=[],s=t.length,o=r?8:0;o<s;o+=2)n=t[o],i.push(n,n in e?e[n]:t[o+1]);return i.t=t.t,i}(v,z,at),Ls&&Ot(0)),r?(j=r._initted,bs(1),r.render(r.duration(),!0,!0),k=w(ht.a)-T+g+V,O=Math.abs(g-k)>1,vt&&O&&_.splice(_.length-2,2),r.render(0,!0,!0),j||r.invalidate(!0),r.parent||r.totalTime(r.totalTime()),bs(0)):k=g,U&&(U.value?U.style["overflow"+ht.a.toUpperCase()]=U.value:U.style.removeProperty("overflow-"+ht.a));Y&&Y.forEach((function(t){return t.revert(!1,!0)})),wt.start=l,wt.end=u,o=a=Ls?I:Ot(),ut||Ls||(o<I&&Ot(I),wt.scroll.rec=0),wt.revert(!1,!0),Dt=Rs(),P&&($t=-1,P.restart(!0)),hs=0,r&&pt&&(r._initted||R)&&r.progress()!==R&&r.progress(R||0,!0).render(r.time(),!0,!0),(W||St!==wt.progress||ut||et||r&&!r._initted)&&(r&&!pt&&r.totalProgress(ut&&l<-.001&&!St?ts.utils.normalize(l,u,0):St,!0),wt.progress=W||(o-l)/g===St?0:St),K&&tt&&(b._pinOffset=Math.round(wt.progress*k)),N&&N.invalidate(),isNaN(F)||(F-=ts.getProperty(h,ht.p),B-=ts.getProperty(p,ht.p),ya(h,ht,F),ya(c,ht,F-(x||0)),ya(p,ht,B),ya(f,ht,B-(x||0))),W&&!Ls&&wt.update(),!Z||Ls||m||(m=!0,Z(wt),m=!1)}},wt.getVelocity=function(){return(Ot()-a)/(Rs()-cs)*1e3||0},wt.endAnimation=function(){ao(wt.callbackAnimation),r&&(N?N.progress(1):r.paused()?pt||ao(r,wt.direction<0,1):ao(r,r.reversed()))},wt.labelToScroll=function(t){return r&&r.labels&&(l||wt.refresh()||l)+r.labels[t]/r.duration()*g||0},wt.getTrailing=function(t){var e=Uo.indexOf(wt),r=wt.direction>0?Uo.slice(0,e).reverse():Uo.slice(e+1);return(no(t)?r.filter((function(e){return e.vars.preventOverlaps===t})):r).filter((function(t){return wt.direction>0?t.end<=l:t.start>=u}))},wt.update=function(t,e,i){if(!ut||i||t){var s,c,f,p,d,m,v,x=!0===Ls?I:wt.scroll(),w=t?0:(x-l)/g,D=w<0?0:w>1?1:w||0,z=wt.progress;if(e&&(a=o,o=ut?Ot():x,ot&&(E=A,A=r&&!pt?r.totalProgress():D)),rt&&K&&!hs&&!Is&&Us&&(!D&&l<x+(x-a)/(Rs()-cs)*rt?D=1e-4:1===D&&u>x+(x-a)/(Rs()-cs)*rt&&(D=.9999)),D!==z&&wt.enabled){if(p=(d=(s=wt.isActive=!!D&&D<1)!=(!!z&&z<1))||!!D!=!!z,wt.direction=D>z?1:-1,wt.progress=D,p&&!hs&&(c=D&&!z?0:1===D?1:1===z?2:3,pt&&(f=!d&&"none"!==yt[c+1]&&yt[c+1]||yt[c],v=r&&("complete"===f||"reset"===f||f in r))),ft&&(d||v)&&(v||G||!r)&&(io(ft)?ft(wt):wt.getTrailing(ft).forEach((function(t){return t.endAnimation()}))),pt||(!N||hs||Is?r&&r.totalProgress(D,!(!hs||!Dt&&!t)):(N._dp._time-N._start!==N._time&&N.render(N._dp._time-N._start),N.resetTo?N.resetTo("totalProgress",D,r._tTime/r._tDur):(N.vars.totalProgress=D,N.invalidate().restart()))),K)if(t&&tt&&(b.style[tt+ht.os2]=$),vt){if(p){if(m=!t&&D>z&&u+1>x&&x+1>=eo(dt,ht),at)if(t||!s&&!m)va(K,b);else{var L=Do(K,!0),j=x-l;va(K,ss,L.top+(ht===Qi?j:0)+To,L.left+(ht===Qi?0:j)+To)}ha(s||m?_:y),O&&D<1&&s||M(T+(1!==D||m?0:k))}}else M(Vs(T+k*D));ot&&!n.tween&&!hs&&!Is&&P.restart(!0),W&&(d||st&&D&&(D<1||!Es))&&ls(W.targets).forEach((function(t){return t.classList[s||st?"add":"remove"](W.className)})),H&&!pt&&!t&&H(wt),p&&!hs?(pt&&(v&&("complete"===f?r.pause().totalProgress(1):"reset"===f?r.restart(!0).pause():"restart"===f?r.restart(!0):r[f]()),H&&H(wt)),!d&&Es||(V&&d&&lo(wt,V),_t[c]&&lo(wt,_t[c]),st&&(1===D?wt.kill(!1,1):_t[c]=0),d||_t[c=1===D?1:3]&&lo(wt,_t[c])),ct&&!s&&Math.abs(wt.getVelocity())>(so(ct)?ct:2500)&&(ao(wt.callbackAnimation),N?N.progress(1):ao(r,"reverse"===f?1:!D,1))):pt&&H&&!hs&&H(wt)}if(C){var R=ut?x/ut.duration()*(ut._caScrollDist||0):x;S(R+(h._isFlipped?1:0)),C(R)}Y&&Y(-x/ut.duration()*(ut._caScrollDist||0))}},wt.enable=function(e,r){wt.enabled||(wt.enabled=!0,Ao(dt,"resize",Ho),gt||Ao(dt,"scroll",Xo),Mt&&Ao(t,"refreshInit",Mt),!1!==e&&(wt.progress=St=0,o=a=$t=Ot()),!1!==r&&wt.refresh())},wt.getTween=function(t){return t&&n?n.tween:N},wt.setPositions=function(t,e,r,n){if(ut){var i=ut.scrollTrigger,s=ut.duration(),o=i.end-i.start;t=i.start+o*t/s,e=i.start+o*e/s}wt.refresh(!1,!1,{start:Xs(t,r&&!!wt._startClamp),end:Xs(e,r&&!!wt._endClamp)},n),wt.update()},wt.adjustPinSpacing=function(t){if(D&&t){var e=D.indexOf(ht.d)+1;D[e]=parseFloat(D[e])+t+To,D[1]=parseFloat(D[1])+t+To,ha(D)}},wt.disable=function(e,r){if(wt.enabled&&(!1!==e&&wt.revert(!0,!0),wt.enabled=wt.isActive=!1,r||N&&N.pause(),I=0,i&&(i.uncache=1),Mt&&Eo(t,"refreshInit",Mt),P&&(P.pause(),n.tween&&n.tween.kill()&&(n.tween=0)),!gt)){for(var s=Uo.length;s--;)if(Uo[s].scroller===dt&&Uo[s]!==wt)return;Eo(dt,"resize",Ho),gt||Eo(dt,"scroll",Xo)}},wt.kill=function(t,n){wt.disable(t,n),N&&!n&&N.kill(),q&&delete Fo[q];var s=Uo.indexOf(wt);s>=0&&Uo.splice(s,1),s===ms&&oa>0&&ms--,s=0,Uo.forEach((function(t){return t.scroller===wt.scroller&&(s=1)})),s||Ls||(wt.scroll.rec=0),r&&(r.scrollTrigger=null,t&&r.revert({kill:!1}),n||r.kill()),c&&[c,f,h,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Ps===wt&&(Ps=0),K&&(i&&(i.uncache=1),s=0,Uo.forEach((function(t){return t.pin===K&&s++})),s||(i.spacer=0)),e.onKill&&e.onKill(wt)},Uo.push(wt),wt.enable(!1,!1),U&&U(wt),r&&r.add&&!g){var Et=wt.update;wt.update=function(){wt.update=Et,Ai.cache++,l||u||wt.refresh()},ts.delayedCall(.01,wt.update),g=.01,l=u=0}else wt.refresh();K&&function(){if(js!==ea){var t=js=ea;requestAnimationFrame((function(){return t===ea&&ia(!0)}))}}()}else this.update=this.refresh=this.kill=qs},t.register=function(e){return es||(ts=e||Gs(),Zs()&&window.document&&t.enable(),es=Fs),es},t.defaults=function(t){if(t)for(var e in t)jo[e]=t[e];return jo},t.disable=function(t,e){Fs=0,Uo.forEach((function(r){return r[e?"kill":"disable"](t)})),Eo(rs,"wheel",Xo),Eo(ns,"scroll",Xo),clearInterval(fs),Eo(ns,"touchcancel",qs),Eo(ss,"touchstart",qs),zo(Eo,ns,"pointerdown,touchstart,mousedown",Hs),zo(Eo,ns,"pointerup,touchend,mouseup",Ws),as.kill(),ro(Eo);for(var r=0;r<Ai.length;r+=3)No(Eo,Ai[r],Ai[r+1]),No(Eo,Ai[r],Ai[r+2])},t.enable=function(){if(rs=window,ns=document,is=ns.documentElement,ss=ns.body,ts&&(ls=ts.utils.toArray,us=ts.utils.clamp,Ds=ts.core.context||qs,bs=ts.core.suppressOverwrites||qs,Ss=rs.history.scrollRestoration||"auto",sa=rs.pageYOffset||0,ts.core.globals("ScrollTrigger",t),ss)){Fs=1,(Os=document.createElement("div")).style.height="100vh",Os.style.position="absolute",ra(),Qs(),Ki.register(ts),t.isTouch=Ki.isTouch,$s=Ki.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Ms=1===Ki.isTouch,Ao(rs,"wheel",Xo),os=[rs,ns,is,ss],ts.matchMedia?(t.matchMedia=function(t){var e,r=ts.matchMedia();for(e in t)r.add(e,t[e]);return r},ts.addEventListener("matchMediaInit",(function(){return Ko()})),ts.addEventListener("matchMediaRevert",(function(){return Jo()})),ts.addEventListener("matchMedia",(function(){ia(0,1),Zo("matchMedia")})),ts.matchMedia().add("(orientation: portrait)",(function(){return Qo(),Qo}))):console.warn("Requires GSAP 3.11.0 or later"),Qo(),Ao(ns,"scroll",Xo);var e,r,n=ss.hasAttribute("style"),i=ss.style,s=i.borderTopStyle,o=ts.core.Animation.prototype;for(o.revert||Object.defineProperty(o,"revert",{value:function(){return this.time(-.01,!0)}}),i.borderTopStyle="solid",e=Do(ss),Qi.m=Math.round(e.top+Qi.sc())||0,Xi.m=Math.round(e.left+Xi.sc())||0,s?i.borderTopStyle=s:i.removeProperty("border-top-style"),n||(ss.setAttribute("style",""),ss.removeAttribute("style")),fs=setInterval(Bo,250),ts.delayedCall(.5,(function(){return Is=0})),Ao(ns,"touchcancel",qs),Ao(ss,"touchstart",qs),zo(Ao,ns,"pointerdown,touchstart,mousedown",Hs),zo(Ao,ns,"pointerup,touchend,mouseup",Ws),ds=ts.utils.checkPrefix("transform"),ua.push(ds), | |
| 17 | +es=Rs(),as=ts.delayedCall(.2,ia).pause(),_s=[ns,"visibilitychange",function(){var t=rs.innerWidth,e=rs.innerHeight;ns.hidden?(gs=t,vs=e):gs===t&&vs===e||Ho()},ns,"DOMContentLoaded",ia,rs,"load",ia,rs,"resize",Ho],ro(Ao),Uo.forEach((function(t){return t.enable(0,1)})),r=0;r<Ai.length;r+=3)No(Eo,Ai[r],Ai[r+1]),No(Eo,Ai[r],Ai[r+2])}},t.config=function(e){"limitCallbacks"in e&&(Es=!!e.limitCallbacks);var r=e.syncInterval;r&&clearInterval(fs)||(fs=r)&&setInterval(Bo,r),"ignoreMobileResize"in e&&(Ms=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(ro(Eo)||ro(Ao,e.autoRefreshEvents||"none"),xs=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var r=Hi(t),n=Ai.indexOf(r),i=Js(r);~n&&Ai.splice(n,i?6:2),e&&(i?Ei.unshift(rs,e,ss,e,is,e):Ei.unshift(r,e))},t.clearMatchMedia=function(t){Uo.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,r){var n=(no(t)?Hi(t):t).getBoundingClientRect(),i=n[r?po:mo]*e||0;return r?n.right-i>0&&n.left+i<rs.innerWidth:n.bottom-i>0&&n.top+i<rs.innerHeight},t.positionInViewport=function(t,e,r){no(t)&&(t=Hi(t));var n=t.getBoundingClientRect(),i=n[r?po:mo],s=null==e?i/2:e in Po?Po[e]*i:~e.indexOf("%")?parseFloat(e)*i/100:parseFloat(e)||0;return r?(n.left+s)/rs.innerWidth:(n.top+s)/rs.innerHeight},t.killAll=function(t){if(Uo.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Wo.killAll||[];Wo={},e.forEach((function(t){return t()}))}},t}();xa.version="3.12.7",xa.saveStyles=function(t){return t?ls(t).forEach((function(t){if(t&&t.style){var e=Go.indexOf(t);e>=0&&Go.splice(e,5),Go.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ts.core.getCache(t),Ds())}})):Go},xa.revert=function(t,e){return Ko(!t,e)},xa.create=function(t,e){return new xa(t,e)},xa.refresh=function(t){return t?Ho(!0):(es||xa.register())&&ia(!0)},xa.update=function(t){return++Ai.cache&&aa(!0===t?2:0)},xa.clearScrollMemory=ta,xa.maxScroll=function(t,e){return eo(t,e?Xi:Qi)},xa.getScrollFunc=function(t,e){return Wi(Hi(t),e?Xi:Qi)},xa.getById=function(t){return Fo[t]},xa.getAll=function(){return Uo.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},xa.isScrolling=function(){return!!Us},xa.snapDirectional=Co,xa.addEventListener=function(t,e){var r=Wo[t]||(Wo[t]=[]);~r.indexOf(e)||r.push(e)},xa.removeEventListener=function(t,e){var r=Wo[t],n=r&&r.indexOf(e);n>=0&&r.splice(n,1)},xa.batch=function(t,e){var r,n=[],i={},s=e.interval||.016,o=e.batchMax||1e9,a=function(t,e){var r=[],n=[],i=ts.delayedCall(s,(function(){e(r,n),r=[],n=[]})).pause();return function(t){r.length||i.restart(!0),r.push(t.trigger),n.push(t),o<=r.length&&i.progress(1)}};for(r in e)i[r]="on"===r.substr(0,2)&&io(e[r])&&"onRefreshInit"!==r?a(0,e[r]):e[r];return io(o)&&(o=o(),Ao(xa,"refresh",(function(){return o=e.batchMax()}))),ls(t).forEach((function(t){var e={};for(r in i)e[r]=i[r];e.trigger=t,n.push(xa.create(e))})),n};var wa,Ma=function(t,e,r,n){return e>n?t(n):e<0&&t(0),r>n?(n-e)/(r-e):r<0?e/(e-r):1},Ta=function t(e,r){!0===r?e.style.removeProperty("touch-action"):e.style.touchAction=!0===r?"auto":r?"pan-"+r+(Ki.isTouch?" pinch-zoom":""):"none",e===is&&t(ss,r)},ka={auto:1,scroll:1},$a=function(t){var e,r=t.event,n=t.target,i=t.axis,s=(r.changedTouches?r.changedTouches[0]:r).target,o=s._gsap||ts.core.getCache(s),a=Rs();if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==ss&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!ka[(e=ko(s)).overflowY]&&!ka[e.overflowX]);)s=s.parentNode;o._isScroll=s&&s!==n&&!Js(s)&&(ka[(e=ko(s)).overflowY]||ka[e.overflowX]),o._isScrollT=a}(o._isScroll||"x"===i)&&(r.stopPropagation(),r._gsapAllow=!0)},Da=function(t,e,r,n){return Ki.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:n=n&&$a,onPress:n,onDrag:n,onScroll:n,onEnable:function(){return r&&Ao(ns,Ki.eventTypes[0],Oa,!1,!0)},onDisable:function(){return Eo(ns,Ki.eventTypes[0],Oa,!0)}})},Sa=/(input|label|select|textarea)/i,Oa=function(t){var e=Sa.test(t.target.tagName);(e||wa)&&(t._gsapAllow=!0,wa=e)};xa.sort=function(t){if(io(t))return Uo.sort(t);var e=rs.pageYOffset||0;return xa.getAll().forEach((function(t){return t._sortY=t.trigger?e+t.trigger.getBoundingClientRect().top:t.start+rs.innerHeight})),Uo.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+(t.vars.containerAnimation?1e6:t._sortY)-((e.vars.containerAnimation?1e6:e._sortY)+-1e6*(e.vars.refreshPriority||0))})},xa.observe=function(t){return new Ki(t)},xa.normalizeScroll=function(t){if(void 0===t)return ws;if(!0===t&&ws)return ws.enable();if(!1===t)return ws&&ws.kill(),void(ws=t);var e=t instanceof Ki?t:function(t){oo(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,r,n,i,s,o,a,l,u=t,c=u.normalizeScrollX,f=u.momentum,h=u.allowNestedScroll,p=u.onRelease,d=Hi(t.target)||is,m=ts.core.globals().ScrollSmoother,g=m&&m.get(),v=$s&&(t.content&&Hi(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),_=Wi(d,Qi),y=Wi(d,Xi),b=1,x=(Ki.isTouch&&rs.visualViewport?rs.visualViewport.scale*rs.visualViewport.width:rs.outerWidth)/rs.innerWidth,w=0,M=io(f)?function(){return f(e)}:function(){return f||2.8},T=Da(d,t.type,!0,h),k=function(){return i=!1},$=qs,D=qs,S=function(){r=eo(d,Qi),D=us($s?1:0,r),c&&($=us(0,eo(d,Xi))),n=ea},O=function(){v._gsap.y=Vs(parseFloat(v._gsap.y)+_.offset)+"px",v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(v._gsap.y)+", 0, 1)",_.offset=_.cacheID=0},C=function(){S(),s.isActive()&&s.vars.scrollY>r&&(_()>r?s.progress(1)&&_(r):s.resetTo("scrollY",r))};return v&&ts.set(v,{y:"+=0"}),t.ignoreCheck=function(t){return $s&&"touchmove"===t.type&&function(){if(i){requestAnimationFrame(k);var t=Vs(e.deltaY/2),r=D(_.v-t);if(v&&r!==_.v+_.offset){_.offset=r-_.v;var n=Vs((parseFloat(v&&v._gsap.y)||0)-_.offset);v.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+n+", 0, 1)",v._gsap.y=n+"px",_.cacheID=Ai.cache,aa()}return!0}_.offset&&O(),i=!0}()||b>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){i=!1;var t=b;b=Vs((rs.visualViewport&&rs.visualViewport.scale||1)/x),s.pause(),t!==b&&Ta(d,b>1.01||!c&&"x"),o=y(),a=_(),S(),n=ea},t.onRelease=t.onGestureStart=function(t,e){if(_.offset&&O(),e){Ai.cache++;var n,i,o=M();c&&(i=(n=y())+.05*o*-t.velocityX/.227,o*=Ma(y,n,i,eo(d,Xi)),s.vars.scrollX=$(i)),i=(n=_())+.05*o*-t.velocityY/.227,o*=Ma(_,n,i,eo(d,Qi)),s.vars.scrollY=D(i),s.invalidate().duration(o).play(.01),($s&&s.vars.scrollY>=r||n>=r-1)&&ts.to({},{onUpdate:C,duration:o})}else l.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Rs()-w>1e3&&(n=0,w=Rs())},t.onChange=function(t,e,r,i,s){if(ea!==n&&S(),e&&c&&y($(i[2]===e?o+(t.startX-t.x):y()+e-i[1])),r){_.offset&&O();var l=s[2]===r,u=l?a+t.startY-t.y:_()+r-s[1],f=D(u);l&&u!==f&&(a+=f-u),_(f)}(r||e)&&aa()},t.onEnable=function(){Ta(d,!c&&"x"),xa.addEventListener("refresh",C),Ao(rs,"resize",C),_.smooth&&(_.target.style.scrollBehavior="auto",_.smooth=y.smooth=!1),T.enable()},t.onDisable=function(){Ta(d,!0),Eo(rs,"resize",C),xa.removeEventListener("refresh",C),T.kill()},t.lockAxis=!1!==t.lockAxis,(e=new Ki(t)).iOS=$s,$s&&!_()&&_(1),$s&&ts.ticker.add(qs),l=e._dc,s=ts.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:_a(_,_(),(function(){return s.pause()}))},onUpdate:aa,onComplete:l.vars.onComplete}),e}(t);return ws&&ws.target===e.target&&ws.kill(),Js(e.target)&&(ws=e),e},xa.core={_getVelocityProp:qi,_inputObserver:Da,_scrollers:Ai,_proxies:Ei,bridge:{ss:function(){Us||Zo("scrollStart"),Us=Rs()},ref:function(){return hs}}},Gs()&&ts.registerPlugin(xa),di.registerPlugin(xa);const Ca=({attributes:t,slidesHost:e})=>{const{styles:r}=t,{stickyTop:n,cardGaps:s}=r,o=(0,i.useRef)(null),a=(0,i.useRef)(null),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)((()=>{if(!a.current||!e)return | |
| 18 | +;if("1"===e.dataset.moved)return void u(!0);const t=Array.from(e.children);a.current.append(...t),e.dataset.moved="1",u(!0)}),[e]),(0,i.useLayoutEffect)((()=>{if(!l)return;const t=di.context((()=>{const t=a.current,e=Array.from(t.querySelectorAll(".bBlocksStackedSingleCard"));if(!e.length)return;const r=Number(n??0);di.set(t,{overflow:"visible",paddingBottom:30*(e.length-1)}),e.forEach(((t,r)=>{di.set(t,{y:30*r,zIndex:1e3+r,transformOrigin:"50% 0%",willChange:"transform",transform:`translateY(${e.length-1===r?30*r-30:30*r}px)`,scale:1})}));const i=(t,e,r)=>{const n=e-t;if(n<=0)return 1;const i=1-n/r*.28;return t===r-1?1:di.utils.clamp(.72,1,i)};e.forEach(((t,n)=>{xa.create({trigger:t,start:()=>`top top+=${r}`,end:()=>"+=500",scrub:!0,invalidateOnRefresh:!0,onUpdate:r=>{const s=e.length-1;if(n===s)return void di.set(t,{scale:1});const o=n+r.progress;e.forEach(((t,r)=>{di.set(t,{scale:i(r,o,e.length)})}))}})})),xa.refresh()}),o);return()=>t.revert()}),[l,n,s]),(0,b.jsx)("div",{ref:o,className:"b-blocks-stackedCardsMainWrapper",children:(0,b.jsx)("div",{className:"b-blocksStackedCardsWrapper",ref:a})})};document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-stacked-cards").forEach((e=>{let r={};try{const t=e.dataset.attributes;t&&"undefined"!==t&&""!==t&&(r=JSON.parse(t))}catch(t){console.warn("Carousel: Invalid attributes JSON",t)}const n=e.querySelector(".b-blocks-stacked-cards-innerBlocks");n&&((0,t.createRoot)(e).render((0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(x,{attributes:r,id:e.id}),(0,b.jsx)(Ca,{attributes:r,slidesHost:n})]})),e?.removeAttribute("data-attributes"))}))}))})(); | |