120 lines
202 KiB
JavaScript
120 lines
202 KiB
JavaScript
|
|
!function(){"use strict";if(window._tpt??={},_tpt.loadingScripts??={},void 0!==_tpt.checkResources)return;function t(t,e){if(0===t.length)return 0;const r=t[t.length-1]-e;return t.length/(r/1e3)}var e,r,n;_tpt.dpr=Math.max(1,Math.min(2,window.devicePixelRatio||1)),_tpt.hop=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),void 0!==window.RVS&&void 0!==window.tpGS&&(_tpt.gsap=window.tpGS.gsap),_tpt.regResource=function(t){_tpt.R[t.id]??={},_tpt.R[t.id].status??=0,void 0!==t.url&&(_tpt.R[t.id].url=t.url),void 0!==t.fonts&&(_tpt.R[t.id].fonts=t.fonts),void 0!==t.css&&(_tpt.R[t.id].css=t.css),void 0!==t.fontfamily&&(_tpt.R[t.id].fontfamily=t.fontfamily),void 0!==t.fonticon&&(_tpt.R[t.id].fonticon=t.fonticon)},_tpt.checkResources=async function(t,e){const r=[];return t.forEach((t=>{const e=_tpt.R[t];void 0!==e&&2!==e.status&&("DOM"===t?(_tpt.R[t].status=1,r.push(_tpt.waitForDOM(t))):void 0!==e.fonticon?(r.push(_tpt.loadCSS(e.url,t)),e.woff2&&r.push(_tpt.loadWoff2(e.woff2,t))):void 0!==e.url?r.push(_tpt.loadScript(e.url,t,e.test,e.listen)):e.fonts||e.css&&r.push(_tpt.loadCSS(e.css,t)))})),e?await Promise.allSettled(r):await Promise.all(r)},_tpt.waitForDOM=async function(){return new Promise((t=>{"interactive"===document.readyState||"complete"===document.readyState?(_tpt.R.DOM.status=2,t()):document.addEventListener("DOMContentLoaded",(()=>{_tpt.R.DOM.status=2,t()}))}))},_tpt.loadScript=function(t,e){return new Promise((async(r,n)=>{_tpt.R[e].status=1,"string"==typeof t&&(t=[t]);for(const i of t)if(_tpt.loadingScripts[i])try{if(await _tpt.loadingScripts[i],2===_tpt.R[e].status)return void r()}catch(t){console.error(t)}else{_tpt.loadingScripts[i]=new Promise(((t,r)=>{const n=document.createElement("script");n.src=i,n.onload=()=>{_tpt.R[e].status=2,t()},n.onerror=()=>{_tpt.R[e].status=3;const t=new Error(`Failed to load script: ${i}`);r(t)},document.head.appendChild(n)}));try{if(await _tpt.loadingScripts[i],2===_tpt.R[e].status)return void r()}catch(t){return console.error(t),void n(t)}}n(new Error("Unable to load scripts."))}))},_tpt.loadWoff2=async function(t,e){return _tpt.R[e].status=1,new Promise(((r,n)=>{const i=document.createElement("style");i.type="text/css",i.classList.add("sr7-inline-css"),i.textContent=`\n\t\t\t\t@font-face {\n\t\t\t\t\tfont-family: ${_tpt.R[e].fontfamily};\n\t\t\t\t\tsrc: url("${t}") format("woff2");\n\t\t\t\t}\n\t\t\t`,i.onload=()=>{_tpt.R[e].status=2,r()},i.onerror=()=>{_tpt.R[e].status=3,n(new Error(`Failed to load font: ${t}`))},document.head.appendChild(i)}))},_tpt.restAPI=async function(t,e){_tpt.restAPILoad(t).then((e=>{"function"==typeof t.callBack&&t.callBack(e)})).catch((r=>{if(!e)throw r;console.log(r),"function"==typeof t.callBack&&t.callBack(r)}))},_tpt.restApiIdCut=function(t){if(null==t)return;const e=(t=t.replace("SR7_","")).lastIndexOf("_");if(-1===e)return t;const r=t.substring(e+1);return Number.isFinite(parseInt(r))?t.substring(0,e):t},_tpt.urlProtocol=function(t,e){return"/"==(""+t)[0]&&"/"==(""+t)[1]?(e?"https:":window.location.protocol)+t:(""+t).includes("://")?(e||t.includes("https")?"https:":window.location.protocol)+"//"+t.split("://").slice(1).join("://"):t},_tpt.restAPILoad=async function(t){var e=_tpt.urlProtocol(t.url||window.SR7.E.resturl),r=t.method||"GET";return e+="get_full_slider_object"==t.action?"sliderrevolution/sliders/":"get_stream_data"==t.action?"sliderrevolution/sliders/stream/":"get_modal_settings"==t.action?"sliderrevolution/sliders/modal/":"",e+=(null==t.id?t.alias??"":_tpt.restApiIdCut(t.id))+(e.includes("?")?"&srengine="+(6==t.version?6:7):"?srengine="+(6==t.version?6:7)),"get_stream_data"==t.action&&SR7.E?.wpml?.lang&&(e+=(e.includes("?")?"&srlang=":"?srlang=")+SR7.E.wpml.lang),"get_full_slider_object"==t.action&&void 0!==t.slideid&&(e+=(e.includes("?")?"&slideid":"?slideid")+"="+t.slideid),t.raw&&(e+=(e.includes("?")?"&raw":"?raw")+"=true"),new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open(r,e,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.onload=
|
||
|
|
/*!
|
||
|
|
* GSAP 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/var r,n,i,s,o,a,u,l,p,c,h,f,d,g,_,m={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},D={duration:.5,overwrite:!1,delay:0},v=1e8,y=1e-8,x=2*Math.PI,b=x/4,w=0,C=Math.sqrt,F=Math.cos,E=Math.sin,T=function(t){return"string"==typeof t},S=function(t){return"function"==typeof t},M=function(t){return"number"==typeof t},A=function(t){return void 0===t},O=function(t){return"object"==typeof t},R=function(t){return!1!==t},P=function(){return"undefined"!=typeof window},k=function(t){return S(t)||T(t)},B="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},L=Array.isArray,N=/(?:-?\.?\d|\.)+/gi,I=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,z=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,X=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,j=/[+-]=-?[.\d]+/,Y=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,G={},V={},H=function(t){return(V=xt(t,G))&&xr},W=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},U=function(t,e){return!e&&console.warn(t)},$=function(t,e){return t&&(G[t]=e)&&V&&(V[t]=e)||G},Q=function(){return 0},Z={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},K={suppressEvents:!0},tt={},et=[],rt={},nt={},it={},st=30,ot=[],at="",ut=function(t){var e,r,n=t[0];if(O(n)||S(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=ot.length;r--&&!ot[r].targetTest(n););e=ot[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new Be(t[r],e)))||t.splice(r,1);return t},lt=function(t){return t._gsap||ut(Jt(t))[0]._gsap},pt=function(t,e,r){return(r=t[e])&&S(r)?t[e]():A(r)&&t.getAttribute&&t.getAttribute(e)||r},ct=function(t,e){return(t=t.split(",")).forEach(e)||t},ht=function(t){return Math.round(1e5*t)/1e5||0},ft=function(t){return Math.round(1e7*t)/1e7||0},dt=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},gt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n<r;);return n<r},_t=function(){var t,e,r=et.length,n=et.slice(0);for(rt={},et.length=0,t=0;t<r;t++)(e=n[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},mt=function(t,e,r,i){et.length&&!n&&_t(),t.render(e,r,i||n&&e<0&&(t._initted||t._startAt)),et.length&&!n&&_t()},Dt=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Y).length<2?e:T(t)?t.trim():t},vt=function(t){return t},yt=function(t,e){for(var r in e)r in t||(t[r]=e[r]);return t},xt=function(t,e){for(var r in e)t[r]=e[r];return t},bt=function t(e,r){for(var n in r)"__proto__"!==n&&"constructor"!==n&&"prototype"!==n&&(e[n]=O(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},Ct=function(t){var e,r=t.parent||s,n=t.keyframes?(e=L(t.keyframes),function(t,r){for(var n in r)n in t||"duration"===n&&e||"ease"===n||(t[n]=r[n])}):yt;if(R(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},Ft=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},Et=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},Tt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},St=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},Mt=function(t,e,r,i){return t._startAt&&(n?t._startAt.revert(J):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},At=function t(e){return!e||e._ts&&t(e.parent)},Ot=function(t){return t._repeat?Rt(t._tTime,t=t.duration()+t._rDelay)*t:0},Rt=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},Pt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},kt=function(t){return t._end=ft(t._start+(t._tDur/Math.abs(t._ts||t._rts||y)||0))},Bt=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=ft(r._t
|
||
|
|
/*!
|
||
|
|
* SplitText: 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/var Wn,Un,$n,Qn,Zn,Jn,Kn=/(?:\r|\n|\t\t)/g,ti=/(?:\s\s+)/g,ei=String.fromCharCode(160),ri=function(t){Wn=document,Un=window,(Qn=Qn||t||Un.gsap||console.warn("Please gsap.registerPlugin(SplitText)"))&&(Jn=Qn.utils.toArray,Zn=Qn.core.context||function(){},$n=1)},ni=function(t){return Un.getComputedStyle(t)},ii=function(t){return"absolute"===t.position||!0===t.absolute},si=function(t,e){for(var r,n=e.length;--n>-1;)if(r=e[n],t.substr(0,r.length)===r)return r.length},oi=function(t,e){void 0===t&&(t="");var r=~t.indexOf("++"),n=1;return r&&(t=t.split("++").join("")),function(){return"<"+e+" style='position:relative;display:inline-block;'"+(t?" class='"+t+(r?n++:"")+"'>":">")}},ai=function t(e,r,n){var i=e.nodeType;if(1===i||9===i||11===i)for(e=e.firstChild;e;e=e.nextSibling)t(e,r,n);else 3!==i&&4!==i||(e.nodeValue=e.nodeValue.split(r).join(n))},ui=function(t,e){for(var r=e.length;--r>-1;)t.push(e[r])},li=function(t,e,r){for(var n;t&&t!==e;){if(n=t._next||t.nextSibling)return n.textContent.charAt(0)===r;t=t.parentNode||t._parent}},pi=function t(e){var r,n,i=Jn(e.childNodes),s=i.length;for(r=0;r<s;r++)(n=i[r])._isSplit?t(n):r&&n.previousSibling&&3===n.previousSibling.nodeType?(n.previousSibling.nodeValue+=3===n.nodeType?n.nodeValue:n.firstChild.nodeValue,e.removeChild(n)):3!==n.nodeType&&(e.insertBefore(n.firstChild,n),e.removeChild(n))},ci=function(t,e){return parseFloat(e[t])||0},hi=function(t,e,r,n,i,s,o){var a,u,l,p,c,h,f,d,g,_,m,D,v=ni(t),y=ci("paddingLeft",v),x=-999,b=ci("borderBottomWidth",v)+ci("borderTopWidth",v),w=ci("borderLeftWidth",v)+ci("borderRightWidth",v),C=ci("paddingTop",v)+ci("paddingBottom",v),F=ci("paddingLeft",v)+ci("paddingRight",v),E=ci("fontSize",v)*(e.lineThreshold||.2),T=v.textAlign,S=[],M=[],A=[],O=e.wordDelimiter||" ",R=e.tag?e.tag:e.span?"span":"div",P=e.type||e.split||"chars,words,lines",k=i&&~P.indexOf("lines")?[]:null,B=~P.indexOf("words"),L=~P.indexOf("chars"),N=ii(e),I=e.linesClass,z=~(I||"").indexOf("++"),X=[],j="flex"===v.display,Y=t.style.display;for(z&&(I=I.split("++").join("")),j&&(t.style.display="block"),l=(u=t.getElementsByTagName("*")).length,c=[],a=0;a<l;a++)c[a]=u[a];if(k||N)for(a=0;a<l;a++)((h=(p=c[a]).parentNode===t)||N||L&&!B)&&(D=p.offsetTop,k&&h&&Math.abs(D-x)>E&&("BR"!==p.nodeName||0===a)&&(f=[],k.push(f),x=D),N&&(p._x=p.offsetLeft,p._y=D,p._w=p.offsetWidth,p._h=p.offsetHeight),k&&((p._isSplit&&h||!L&&h||B&&h||!B&&p.parentNode.parentNode===t&&!p.parentNode._isSplit)&&(f.push(p),p._x-=y,li(p,t,O)&&(p._wordEnd=!0)),"BR"===p.nodeName&&(p.nextSibling&&"BR"===p.nextSibling.nodeName||0===a)&&k.push([])));for(a=0;a<l;a++)if(h=(p=c[a]).parentNode===t,"BR"!==p.nodeName)if(N&&(g=p.style,B||h||(p._x+=p.parentNode._x,p._y+=p.parentNode._y),g.left=p._x+"px",g.top=p._y+"px",g.position="absolute",g.display="block",g.width=p._w+1+"px",g.height=p._h+"px"),!B&&L)if(p._isSplit)for(p._next=u=p.nextSibling,p.parentNode.appendChild(p);u&&3===u.nodeType&&" "===u.textContent;)p._next=u.nextSibling,p.parentNode.appendChild(u),u=u.nextSibling;else p.parentNode._isSplit?(p._parent=p.parentNode,!p.previousSibling&&p.firstChild&&(p.firstChild._isFirst=!0),p.nextSibling&&" "===p.nextSibling.textContent&&!p.nextSibling.nextSibling&&X.push(p.nextSibling),p._next=p.nextSibling&&p.nextSibling._isFirst?null:p.nextSibling,p.parentNode.removeChild(p),c.splice(a--,1),l--):h||(D=!p.nextSibling&&li(p.parentNode,t,O),p.parentNode._parent&&p.parentNode._parent.appendChild(p),D&&p.parentNode.appendChild(Wn.createTextNode(" ")),"span"===R&&(p.style.display="inline"),S.push(p));else p.parentNode._isSplit&&!p._isSplit&&""!==p.innerHTML?M.push(p):L&&!p._isSplit&&("span"===R&&(p.style.display="inline"),S.push(p));else k||N?(p.parentNode&&p.parentNode.removeChild(p),c.splice(a--,1),l--):B||t.appendChild(p);for(a=X.length;--a>-1;)X[a].parentNode.removeChild(X[a]);if(k){for(N&&(_=Wn.createElement(R),t.appendChild(_),m=_.offsetWidth+"px",D=_.offsetParent===t?0:t.offsetLeft,t.removeChild(_)),g=t.style.cssText,t.style.cssText="display:none;";t.firstChild;)t.removeChild(t.firstChild);for(d=" "===O&&(!N||!B&&!L),a=0;a<k.length;
|
||
|
|
/*!
|
||
|
|
* paths 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var _i=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,mi=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Di=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,vi=/(^[#\.][a-z]|[a-y][a-z])/i,yi=Math.PI/180,xi=180/Math.PI,bi=Math.sin,wi=Math.cos,Ci=Math.abs,Fi=Math.sqrt,Ei=Math.atan2,Ti=1e8,Si=function(t){return"string"==typeof t},Mi=function(t){return"number"==typeof t},Ai={},Oi={},Ri=1e5,Pi=function(t){return Math.round((t+Ti)%1*Ri)/Ri||(t<0?0:1)},ki=function(t){return Math.round(t*Ri)/Ri||0},Bi=function(t){return Math.round(1e10*t)/1e10||0},Li=function(t,e,r,n){var i=t[e],s=1===n?6:Wi(i,r,n);if((s||!n)&&s+r+2<i.length)return t.splice(e,0,i.slice(0,r+s+2)),i.splice(0,r+s),1},Ni=function(t,e,r){var n=t.length,i=~~(r*n);if(t[i]>e){for(;--i&&t[i]>e;);i<0&&(i=0)}else for(;t[++i]<e&&i<n;);return i<n?i:n-1},Ii=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e},zi=function(t,e){var r=t.length,n=t[r-1]||[],i=n.length;r&&e[0]===n[i-2]&&e[1]===n[i-1]&&(e=n.concat(e.slice(2)),r--),t[r]=e};function Xi(t){var e,r=(t=Si(t)&&vi.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return r&&(t=t.getAttribute("d"))?(r._gsPath||(r._gsPath={}),(e=r._gsPath[t])&&!e._dirty?e:r._gsPath[t]=Ji(t)):t?Si(t)?Ji(t):Mi(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function ji(t){var e,r=0;for(t.reverse();r<t.length;r+=2)e=t[r],t[r]=t[r+1],t[r+1]=e;t.reversed=!t.reversed}var Yi={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function qi(t,e,r){var n,i=t[e],s=t[e+2],o=t[e+4];return i+=(s-i)*r,i+=((s+=(o-s)*r)-i)*r,n=s+(o+(t[e+6]-o)*r-s)*r-i,i=t[e+1],i+=((s=t[e+3])-i)*r,i+=((s+=((o=t[e+5])-s)*r)-i)*r,ki(Ei(s+(o+(t[e+7]-o)*r-s)*r-i,n)*xi)}function Gi(t,e,r){r=void 0===r?1:Bi(r)||0,e=Bi(e)||0;var n=Math.max(0,~~(Ci(r-e)-1e-8)),i=function(t){for(var e=[],r=0;r<t.length;r++)e[r]=Ii(t[r],t[r].slice(0));return Ii(t,e)}(t);if(e>r&&(e=1-e,r=1-r,function(t,e){var r=t.length;for(t.reverse();r--;)t[r].reversed||ji(t[r])}(i),i.totalLength=0),e<0||r<0){var s=Math.abs(~~Math.min(e,r))+1;e+=s,r+=s}i.totalLength||Hi(i);var o,a,u,l,p,c,h,f,d=r>1,g=Ui(i,e,Ai,!0),_=Ui(i,r,Oi),m=_.segment,D=g.segment,v=_.segIndex,y=g.segIndex,x=_.i,b=g.i,w=y===v,C=x===b&&w;if(d||n){for(o=v<y||w&&x<b||C&&_.t<g.t,Li(i,y,b,g.t)&&(y++,o||(v++,C?(_.t=(_.t-g.t)/(1-g.t),x=0):w&&(x-=b))),Math.abs(1-(r-e))<1e-5?v=y-1:!_.t&&v?v--:Li(i,v,x,_.t)&&o&&y++,1===g.t&&(y=(y+1)%i.length),p=[],h=1+(c=i.length)*n,f=y,h+=(c-y+v)%c,l=0;l<h;l++)zi(p,i[f++%c]);i=p}else if(u=1===_.t?6:Wi(m,x,_.t),e!==r)for(a=Wi(D,b,C?g.t/_.t:g.t),w&&(u+=a),m.splice(x+u+2),(a||b)&&D.splice(0,b+a),l=i.length;l--;)(l<y||l>v)&&i.splice(l,1);else m.angle=qi(m,x+u,0),g=m[x+=u],_=m[x+1],m.length=m.totalLength=0,m.totalPoints=i.totalPoints=8,m.push(g,_,g,_,g,_,g,_);return i.totalLength=0,i}function Vi(t,e,r){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var n,i,s,o,a,u,l,p,c,h,f,d,g,_,m,D,v,y=~~t.resolution||12,x=1/y,b=r?e+6*r+1:t.length,w=t[e],C=t[e+1],F=e?e/6*y:0,E=t.samples,T=t.lookup,S=(e?t.minLength:Ti)||Ti,M=E[F+r*y-1],A=e?E[F-1]:0;for(E.length=T.length=0,i=e+2;i<b;i+=6){if(s=t[i+4]-w,o=t[i+2]-w,a=t[i]-w,p=t[i+5]-C,c=t[i+3]-C,h=t[i+1]-C,u=l=f=d=0,Ci(s)<.01&&Ci(p)<.01&&Ci(a)+Ci(h)<.01)t.length>8&&(t.splice(i,6),i-=6,b-=6);else for(n=1;n<=y;n++)u=l-(l=((_=x*n)*_*s+3*(g=1-_)*(_*o+g*a))*_),f=d-(d=(_*_*p+3*g*(_*c+g*h))*_),(D=Fi(f*f+u*u))<S&&(S=D),A+=D,E[F++]=A;w+=s,C+=p}if(M)for(M-=A;F<E.length;F++)E[F]+=M;if(E.length&&S){if(t.totalLength=v=E[E.length-1]||0,t.minLength=S,v/S<9999)for(D=m=0,n=0;n<v;n+=S)T[D++]=E[m]<n?++m:m}else t.totalLength=E[0]=0;return e?A-E[e/2-1]:A}function Hi(t,e){var r,n,i;for(i=r=n=0;i<t.length;i++)t[i].resolution=~~e||12,n+=t[i].length,r+=Vi(t[i]);return t.totalPoints=n,t.totalLength=r,t}function Wi(t,e,r){if(r<=0||r>=1)return 0;var n=t[e],i=t[e+1],s=t[e+2],o=t[e+3],a=t[e+4],u=t[e+5],l=n+(s-n)*r,p=s+(a-s)*r,c=i+(o-i)*r,h=o+(u-o)*r,f=l+(p-l)*r,d=c+(h-c)*r,g=a+(t[e+6]-a)*r,_=u+(t[e+7]-u)*r;retur
|
||
|
|
/*!
|
||
|
|
* CustomEase 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/var rs,ns,is=function(){return rs||"undefined"!=typeof window&&(rs=window.gsap)&&rs.registerPlugin&&rs},ss=function(){(rs=is())?(rs.registerEase("_CE",ps.create),ns=1):console.warn("Please gsap.registerPlugin(CustomEase)")},os=function(t){return~~(1e3*t+(t<0?-.5:.5))/1e3},as=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/gi,us=/[cLlsSaAhHvVtTqQ]/g,ls=function t(e,r,n,i,s,o,a,u,l,p,c){var h,f=(e+n)/2,d=(r+i)/2,g=(n+s)/2,_=(i+o)/2,m=(s+a)/2,D=(o+u)/2,v=(f+g)/2,y=(d+_)/2,x=(g+m)/2,b=(_+D)/2,w=(v+x)/2,C=(y+b)/2,F=a-e,E=u-r,T=Math.abs((n-a)*E-(i-u)*F),S=Math.abs((s-a)*E-(o-u)*F);return p||(p=[{x:e,y:r},{x:a,y:u}],c=1),p.splice(c||p.length-1,0,{x:w,y:C}),(T+S)*(T+S)>l*(F*F+E*E)&&(h=p.length,t(e,r,f,d,v,y,w,C,l,p,c),t(w,C,x,b,m,D,a,u,l,p,c+1+(p.length-h))),p},ps=function(){function t(t,e,r){ns||ss(),this.id=t,this.setData(e,r)}var e=t.prototype;return e.setData=function(t,e){e=e||{};var r,n,i,s,o,a,u,l,p,c=(t=t||"0,0,1,1").match(as),h=1,f=[],d=[],g=e.precision||1,_=g<=1;if(this.data=t,(us.test(t)||~t.indexOf("M")&&t.indexOf("C")<0)&&(c=Ji(t)[0]),4===(r=c.length))c.unshift(0,0),c.push(1,1),r=8;else if((r-2)%6)throw"Invalid CustomEase";for(0==+c[0]&&1==+c[r-2]||function(t,e,r){r||0===r||(r=Math.max(+t[t.length-1],+t[1]));var n,i=-1*+t[0],s=-r,o=t.length,a=1/(+t[o-2]+i),u=-e||(Math.abs(+t[o-1]-+t[1])<.01*(+t[o-2]-+t[0])?function(t){var e,r=t.length,n=1e20;for(e=1;e<r;e+=6)+t[e]<n&&(n=+t[e]);return n}(t)+s:+t[o-1]+s);for(u=u?1/u:-a,n=0;n<o;n+=2)t[n]=(+t[n]+i)*a,t[n+1]=(+t[n+1]+s)*u}(c,e.height,e.originY),this.segment=c,s=2;s<r;s+=6)n={x:+c[s-2],y:+c[s-1]},i={x:+c[s+4],y:+c[s+5]},f.push(n,i),ls(n.x,n.y,+c[s],+c[s+1],+c[s+2],+c[s+3],i.x,i.y,1/(2e5*g),f,f.length-1);for(r=f.length,s=0;s<r;s++)u=f[s],l=f[s-1]||u,(u.x>l.x||l.y!==u.y&&l.x===u.x||u===l)&&u.x<=1?(l.cx=u.x-l.x,l.cy=u.y-l.y,l.n=u,l.nx=u.x,_&&s>1&&Math.abs(l.cy/l.cx-f[s-2].cy/f[s-2].cx)>2&&(_=0),l.cx<h&&(l.cx?h=l.cx:(l.cx=.001,s===r-1&&(l.x-=.001,h=Math.min(h,.001),_=0)))):(f.splice(s--,1),r--);if(o=1/(r=1/h+1|0),a=0,u=f[0],_){for(s=0;s<r;s++)p=s*o,u.nx<p&&(u=f[++a]),n=u.y+(p-u.x)/u.cx*u.cy,d[s]={x:p,cx:o,y:n,cy:0,nx:9},s&&(d[s-1].cy=n-d[s-1].y);d[r-1].cy=f[f.length-1].y-n}else{for(s=0;s<r;s++)u.nx<s*o&&(u=f[++a]),d[s]=u;a<f.length-1&&(d[s-1]=f[f.length-2])}return this.ease=function(t){var e=d[t*r|0]||d[r-1];return e.nx<t&&(e=e.n),e.y+(t-e.x)/e.cx*e.cy},this.ease.custom=this,this.id&&rs&&rs.registerEase(this.id,this.ease),this},e.getSVGData=function(e){return t.getSVGData(this,e)},t.create=function(e,r,n){return new t(e,r,n).ease},t.register=function(t){rs=t,ss()},t.get=function(t){return rs.parseEase(t)},t.getSVGData=function(e,r){var n,i,s,o,a,u,l,p,c,h,f=(r=r||{}).width||100,d=r.height||100,g=r.x||0,_=(r.y||0)+d,m=rs.utils.toArray(r.path)[0];if(r.invert&&(d=-d,_=0),"string"==typeof e&&(e=rs.parseEase(e)),e.custom&&(e=e.custom),e instanceof t)n=es(Qi([e.segment],f,0,0,-d,g,_));else{for(n=[g,_],o=1/(l=Math.max(5,200*(r.precision||1))),p=5/(l+=2),c=os(g+o*f),i=((h=os(_+e(o)*-d))-_)/(c-g),s=2;s<l;s++)a=os(g+s*o*f),u=os(_+e(s*o)*-d),(Math.abs((u-h)/(a-c)-i)>p||s===l-1)&&(n.push(c,h),i=(u-h)/(a-c)),c=a,h=u;n="M"+n.join(",")}return m&&m.setAttribute("d",n),n},t}();is()&&rs.registerPlugin(ps),ps.version="3.12.5";
|
||
|
|
/*!
|
||
|
|
* DrawSVGPlugin 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var cs,hs,fs,ds,gs,_s,ms,Ds,vs=function(){return"undefined"!=typeof window},ys=function(){return cs||vs()&&(cs=window.gsap)&&cs.registerPlugin&&cs},xs=/[-+=\.]*\d+[\.e\-\+]*\d*[e\-\+]*\d*/gi,bs={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]},ws=function(t){return Math.round(1e4*t)/1e4},Cs=function(t){return parseFloat(t)||0},Fs=function(t,e){var r=Cs(t);return~t.indexOf("%")?r/100*e:r},Es=function(t,e){return Cs(t.getAttribute(e))},Ts=Math.sqrt,Ss=function(t,e,r,n,i,s){return Ts(Math.pow((Cs(r)-Cs(t))*i,2)+Math.pow((Cs(n)-Cs(e))*s,2))},Ms=function(t){return console.warn(t)},As=function(t){return"non-scaling-stroke"===t.getAttribute("vector-effect")},Os=function(t){if(!(t=hs(t)[0]))return 0;var e,r,n,i,s,o,a,u=t.tagName.toLowerCase(),l=t.style,p=1,c=1;As(t)&&(c=t.getScreenCTM(),p=Ts(c.a*c.a+c.b*c.b),c=Ts(c.d*c.d+c.c*c.c));try{r=t.getBBox()}catch(t){Ms("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var h=r||{x:0,y:0,width:0,height:0},f=h.x,d=h.y,g=h.width,_=h.height;if(r&&(g||_)||!bs[u]||(g=Es(t,bs[u][0]),_=Es(t,bs[u][1]),"rect"!==u&&"line"!==u&&(g*=2,_*=2),"line"===u&&(f=Es(t,"x1"),d=Es(t,"y1"),g=Math.abs(g-f),_=Math.abs(_-d))),"path"===u)i=l.strokeDasharray,l.strokeDasharray="none",e=t.getTotalLength()||0,ws(p)!==ws(c)&&!_s&&(_s=1)&&Ms("Warning: <path> length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),e*=(p+c)/2,l.strokeDasharray=i;else if("rect"===u)e=2*g*p+2*_*c;else if("line"===u)e=Ss(f,d,f+g,d+_,p,c);else if("polyline"===u||"polygon"===u)for(n=t.getAttribute("points").match(xs)||[],"polygon"===u&&n.push(n[0],n[1]),e=0,s=2;s<n.length;s+=2)e+=Ss(n[s-2],n[s-1],n[s],n[s+1],p,c)||0;else"circle"!==u&&"ellipse"!==u||(o=g/2*p,a=_/2*c,e=Math.PI*(3*(o+a)-Ts((3*o+a)*(o+3*a))));return e||0},Rs=function(t,e){if(!(t=hs(t)[0]))return[0,0];e||(e=Os(t)+1);var r=fs.getComputedStyle(t),n=r.strokeDasharray||"",i=Cs(r.strokeDashoffset),s=n.indexOf(",");return s<0&&(s=n.indexOf(" ")),(n=s<0?e:Cs(n.substr(0,s)))>e&&(n=e),[-i||0,n-i||0]},Ps=function(){vs()&&(document,fs=window,gs=cs=ys(),hs=cs.utils.toArray,ms=cs.core.getStyleSaver,Ds=cs.core.reverting||function(){},ds=-1!==((fs.navigator||{}).userAgent||"").indexOf("Edge"))},ks={version:"3.12.5",name:"drawSVG",register:function(t){cs=t,Ps()},init:function(t,e,r,n,i){if(!t.getBBox)return!1;gs||Ps();var s,o,a,u=Os(t);return this.styles=ms&&ms(t,"strokeDashoffset,strokeDasharray,strokeMiterlimit"),this.tween=r,this._style=t.style,this._target=t,e+""=="true"?e="0 100%":e?-1===(e+"").indexOf(" ")&&(e="0 "+e):e="0 0",o=function(t,e,r){var n,i,s=t.indexOf(" ");return s<0?(n=void 0!==r?r+"":t,i=t):(n=t.substr(0,s),i=t.substr(s+1)),(n=Fs(n,e))>(i=Fs(i,e))?[i,n]:[n,i]}(e,u,(s=Rs(t,u))[0]),this._length=ws(u),this._dash=ws(s[1]-s[0]),this._offset=ws(-s[0]),this._dashPT=this.add(this,"_dash",this._dash,ws(o[1]-o[0]),0,0,0,0,0,1),this._offsetPT=this.add(this,"_offset",this._offset,ws(-o[0]),0,0,0,0,0,1),ds&&(a=fs.getComputedStyle(t)).strokeLinecap!==a.strokeLinejoin&&(o=Cs(a.strokeMiterlimit),this.add(t.style,"strokeMiterlimit",o,o+.01)),this._live=As(t)||~(e+"").indexOf("live"),this._nowrap=~(e+"").indexOf("nowrap"),this._props.push("drawSVG"),1},render:function(t,e){if(e.tween._time||!Ds()){var r,n,i,s,o=e._pt,a=e._style;if(o){for(e._live&&(r=Os(e._target))!==e._length&&(n=r/e._length,e._length=r,e._offsetPT&&(e._offsetPT.s*=n,e._offsetPT.c*=n),e._dashPT?(e._dashPT.s*=n,e._dashPT.c*=n):e._dash*=n);o;)o.r(t,o.d),o=o._next;i=e._dash||t&&1!==t&&1e-4||0,r=e._length-i+.1,s=e._offset,i&&s&&i+Math.abs(s%e._length)>e._length-.2&&(s+=s<0?.1:-.1)&&(r+=.1),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=r<.2?"none":i?i+"px,"+(e._nowrap?999999:r)+"px":"0px, 999999px"}}else e.styles.revert()},getLength:Os,getPosition:Rs};ys()&&cs.registerPlugin(ks);
|
||
|
|
/*!
|
||
|
|
* CustomBounce 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var Bs,Ls,Ns,Is=function(){return Bs||"undefined"!=typeof window&&(Bs=window.gsap)&&Bs.registerPlugin&&Bs},zs=function(t){Bs=Is(),(Ns=Bs&&Bs.parseEase("_CE"))?(Ls=1,Bs.parseEase("bounce").config=function(t){return"object"==typeof t?js("",t):js("bounce("+t+")",{strength:+t})}):t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomBounce)")},Xs=function(t){var e,r=t.length,n=1/t[r-2];for(e=2;e<r;e+=2)t[e]=~~(t[e]*n*1e3)/1e3;t[r-2]=1},js=function(t,e){Ls||zs(1),e=e||{};var r,n,i,s,o,a,u,l=Math.min(.999,e.strength||.7),p=l,c=(e.squash||0)/100,h=c,f=1/.03,d=.2,g=1,_=.1,m=[0,0,.07,0,.1,1,.1,1],D=[0,0,0,0,.1,0,.1,0];for(o=0;o<200&&(a=_+(d*=p*((p+1)/2)),s=1-(g*=l*l),n=(i=_+.49*d)+.8*(i-(r=_+g/f)),c&&(_+=c,r+=c,i+=c,n+=c,a+=c,u=c/h,D.push(_-c,0,_-c,u,_-c/2,u,_,u,_,0,_,0,_,-.6*u,_+(a-_)/6,0,a,0),m.push(_-c,1,_,1,_,1),c*=l*l),m.push(_,1,r,s,i,s,n,s,a,1,a,1),l*=.95,f=g/(a-n),_=a,!(s>.999));o++);if(e.endAtStart&&"false"!==e.endAtStart){if(i=-.1,m.unshift(i,1,i,1,-.07,0),h)for(i-=c=2.5*h,m.unshift(i,1,i,1,i,1),D.splice(0,6),D.unshift(i,0,i,0,i,1,i+c/2,1,i+c,1,i+c,0,i+c,0,i+c,-.6,i+c+.033,0),o=0;o<D.length;o+=2)D[o]-=i;for(o=0;o<m.length;o+=2)m[o]-=i,m[o+1]=1-m[o+1]}return c&&(Xs(D),D[2]="C"+D[2],Ns(e.squashID||t+"-squash","M"+D.join(","))),Xs(m),m[2]="C"+m[2],Ns(t,"M"+m.join(","))},Ys=function(){function t(t,e){this.ease=js(t,e)}return t.create=function(t,e){return js(t,e)},t.register=function(t){Bs=t,zs()},t}();Is()&&Bs.registerPlugin(Ys),Ys.version="3.12.5";
|
||
|
|
/*!
|
||
|
|
* CustomWiggle 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var qs,Gs,Vs,Hs=function(){return qs||"undefined"!=typeof window&&(qs=window.gsap)&&qs.registerPlugin&&qs},Ws={easeOut:"M0,1,C0.7,1,0.6,0,1,0",easeInOut:"M0,0,C0.1,0,0.24,1,0.444,1,0.644,1,0.6,0,1,0",anticipate:"M0,0,C0,0.222,0.024,0.386,0,0.4,0.18,0.455,0.65,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1",uniform:"M0,0,C0,0.95,0,1,0,1,0,1,1,1,1,1,1,1,1,0,1,0"},Us=function(t){return t},$s=function(t){if(!Gs)if(qs=Hs(),Vs=qs&&qs.parseEase("_CE")){for(var e in Ws)Ws[e]=Vs("",Ws[e]);Gs=1,Zs("wiggle").config=function(t){return"object"==typeof t?Zs("",t):Zs("wiggle("+t+")",{wiggles:+t})}}else t&&console.warn("Please gsap.registerPlugin(CustomEase, CustomWiggle)")},Qs=function(t,e){return"function"!=typeof t&&(t=qs.parseEase(t)||Vs("",t)),t.custom||!e?t:function(e){return 1-t(e)}},Zs=function(t,e){Gs||$s(1);var r,n,i,s,o,a,u,l,p,c=0|((e=e||{}).wiggles||10),h=1/c,f=h/2,d="anticipate"===e.type,g=Ws[e.type]||Ws.easeOut,_=Us;if(d&&(_=g,g=Ws.easeOut),e.timingEase&&(_=Qs(e.timingEase)),e.amplitudeEase&&(g=Qs(e.amplitudeEase,!0)),l=[0,0,(a=_(f))/4,0,a/2,u=d?-g(f):g(f),a,u],"random"===e.type){for(l.length=4,r=_(h),n=2*Math.random()-1,p=2;p<c;p++)f=r,u=n,r=_(h*p),n=2*Math.random()-1,i=Math.atan2(n-l[l.length-3],r-l[l.length-4]),s=Math.cos(i)*h,o=Math.sin(i)*h,l.push(f-s,u-o,f,u,f+s,u+o);l.push(r,0,1,0)}else{for(p=1;p<c;p++)l.push(_(f+h/2),u),f+=h,u=(u>0?-1:1)*g(p*h),a=_(f),l.push(_(f-h/2),u,a,u);l.push(_(f+h/4),u,_(f+h/4),0,1,0)}for(p=l.length;--p>-1;)l[p]=~~(1e3*l[p])/1e3;return l[2]="C"+l[2],Vs(t,"M"+l.join(","))},Js=function(){function t(t,e){this.ease=Zs(t,e)}return t.create=function(t,e){return Zs(t,e)},t.register=function(t){qs=t,$s()},t}();Hs()&&qs.registerPlugin(Js),Js.version="3.12.5";
|
||
|
|
/*!
|
||
|
|
* matrix 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var Ks,to,eo,ro,no,io,so,oo,ao,uo="transform",lo=uo+"Origin",po=function(t){var e=t.ownerDocument||t;!(uo in t.style)&&"msTransform"in t.style&&(lo=(uo="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(to=window,so=new Do,e){Ks=e,eo=e.documentElement,ro=e.body,(oo=Ks.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var r=e.createElement("div"),n=e.createElement("div"),i=e&&(e.body||e.firstElementChild);i&&i.appendChild&&(i.appendChild(r),r.appendChild(n),r.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),ao=n.offsetParent!==r,i.removeChild(r))}return e},co=[],ho=[],fo=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},go=function t(e){return"fixed"===to.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},_o=function t(e,r){if(e.parentNode&&(Ks||po(e))){var n=fo(e),i=n?n.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=n?r?"rect":"g":"div",o=2!==r?0:100,a=3===r?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=Ks.createElementNS?Ks.createElementNS(i.replace(/^https/,"http"),s):Ks.createElement(s);return r&&(n?(io||(io=t(e)),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+o+","+a+")"),io.appendChild(l)):(no||((no=t(e)).style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+o+"px",no.appendChild(l))),l}throw"Need document and parent."},mo=function(t,e,r,n,i,s,o){return t.a=e,t.b=r,t.c=n,t.d=i,t.e=s,t.f=o,t},Do=function(){function t(t,e,r,n,i,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===s&&(s=0),mo(this,t,e,r,n,i,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.e,s=this.f,o=t*n-e*r||1e-10;return mo(this,n/o,-e/o,-r/o,t/o,(r*s-n*i)/o,-(t*s-e*i)/o)},e.multiply=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,s=this.e,o=this.f,a=t.a,u=t.c,l=t.b,p=t.d,c=t.e,h=t.f;return mo(this,a*e+l*n,a*r+l*i,u*e+p*n,u*r+p*i,s+c*e+h*n,o+c*r+h*i)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,s=this.e,o=this.f;return e===t.a&&r===t.b&&n===t.c&&i===t.d&&s===t.e&&o===t.f},e.apply=function(t,e){void 0===e&&(e={});var r=t.x,n=t.y,i=this.a,s=this.b,o=this.c,a=this.d,u=this.e,l=this.f;return e.x=r*i+n*o+u||0,e.y=r*s+n*a+l||0,e},t}();function vo(t,e,r,n){if(!t||!t.parentNode||(Ks||po(t)).documentElement===t)return new Do;var i=function(t){for(var e,r;t&&t!==ro;)(r=t._gsap)&&r.uncache&&r.get(t,"x"),r&&!r.scaleX&&!r.scaleY&&r.renderTransform&&(r.scaleX=r.scaleY=1e-4,r.renderTransform(1,r),e?e.push(r):e=[r]),t=t.parentNode;return e}(t),s=fo(t)?co:ho,o=function(t,e){var r,n,i,s,o,a,u=fo(t),l=t===u,p=u?co:ho,c=t.parentNode;if(t===to)return t;if(p.length||p.push(_o(t,1),_o(t,2),_o(t,3)),r=u?io:no,u)l?(i=function(t){var e,r=t.getCTM();return r||(e=t.style[uo],t.style[uo]="none",t.appendChild(oo),r=oo.getCTM(),t.removeChild(oo),e?t.style[uo]=e:t.style.removeProperty(uo.replace(/([A-Z])/g,"-$1").toLowerCase())),r||so.clone()}(t),s=-i.e/i.a,o=-i.f/i.d,n=so):t.getBBox?(i=t.getBBox(),n=(n=t.transform?t.transform.baseVal:{}).numberOfItems?n.numberOfItems>1?function(t){for(var e=new Do,r=0;r<t.numberOfItems;r++)e.multiply(t.getItem(r).matrix);return e}(n):n.getItem(0).matrix:so,s=n.a*i.x+n.c*i.y,o=n.b*i.x+n.d*i.y):(n=new Do,s=o=0),e&&"g"===t.tagName.toLowerCase()&&(s=o=0),(l?u:c).appendChild(r),r.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+s)+","+(n.f+o)+")");else{if(s=o=0,ao)for(n=t.offsetParent,i=t;i&&(i=i.parentNode)&&i!==n&&i.parentNode;)(to.getComputedStyle(i)[uo]+"").length>4&&(s=i.offsetLeft,o=i.offsetTop,i=0);if("absolute"!==(a=to.getComputedStyle(t)).position&&"fixed"!==a.position)for(n=t.offsetParent;c&&c!==n;)s+=c.scrollLeft||0,o+=c.scrollTop||0,c=c.parentNode;(i=r.style).top=t.offsetTop-o+"px",i.left=t.offsetLeft-s+"px",i[uo]=a[uo],i[lo]=a[lo],i.position="fixed"===a.pos
|
||
|
|
/*!
|
||
|
|
* MotionPathPlugin 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/var yo,xo,bo,wo,Co,Fo,Eo="x,translateX,left,marginLeft,xPercent".split(","),To="y,translateY,top,marginTop,yPercent".split(","),So=Math.PI/180,Mo=function(t,e,r,n){for(var i=e.length,s=2===n?0:n,o=0;o<i;o++)t[s]=parseFloat(e[o][r]),2===n&&(t[s+1]=0),s+=2;return t},Ao=function(t,e,r){return parseFloat(t._gsap.get(t,e,r||"px"))||0},Oo=function(t){var e,r=t[0],n=t[1];for(e=2;e<t.length;e+=2)r=t[e]+=r,n=t[e+1]+=n},Ro=function(t,e,r,n,i,s,o,a,u){return"cubic"===o.type?e=[e]:(!1!==o.fromCurrent&&e.unshift(Ao(r,n,a),i?Ao(r,i,u):0),o.relative&&Oo(e),e=[(i?ts:Ki)(e,o.curviness)]),e=s(No(e,r,o)),Io(t,r,n,e,"x",a),i&&Io(t,r,i,e,"y",u),Hi(e,o.resolution||(0===o.curviness?20:12))},Po=function(t){return t},ko=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,Bo=function(t,e,r){var n,i=vo(t),s=0,o=0;return"svg"===(t.tagName+"").toLowerCase()?(n=t.viewBox.baseVal).width||(n={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):n=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(s=e.push?e[0]*(n?n.width:t.offsetWidth||0):e.x,o=e.push?e[1]*(n?n.height:t.offsetHeight||0):e.y),r.apply(s||o?i.apply({x:s,y:o}):{x:i.e,y:i.f})},Lo=function(t,e,r,n){var i,s=vo(t.parentNode,!0,!0),o=s.clone().multiply(vo(e)),a=Bo(t,r,s),u=Bo(e,n,s),l=u.x,p=u.y;return o.e=o.f=0,"auto"===n&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(i=e.getAttribute("d").match(ko)||[],l+=(i=o.apply({x:+i[0],y:+i[1]})).x,p+=i.y),i&&(l-=(i=o.apply(e.getBBox())).x,p-=i.y),o.e=l-a.x,o.f=p-a.y,o},No=function(t,e,r){var n,i,s,o=r.align,a=r.matrix,u=r.offsetX,l=r.offsetY,p=r.alignOrigin,c=t[0][0],h=t[0][1],f=Ao(e,"x"),d=Ao(e,"y");return t&&t.length?(o&&("self"===o||(n=wo(o)[0]||e)===e?Qi(t,1,0,0,1,f-c,d-h):(p&&!1!==p[2]?yo.set(e,{transformOrigin:100*p[0]+"% "+100*p[1]+"%"}):p=[Ao(e,"xPercent")/-100,Ao(e,"yPercent")/-100],s=(i=Lo(e,n,p,"auto")).apply({x:c,y:h}),Qi(t,i.a,i.b,i.c,i.d,f+i.e-(s.x-i.e),d+i.f-(s.y-i.f)))),a?Qi(t,a.a,a.b,a.c,a.d,a.e,a.f):(u||l)&&Qi(t,1,0,0,1,u||0,l||0),t):Xi("M0,0L0,0")},Io=function(t,e,r,n,i,s){var o=e._gsap,a=o.harness,u=a&&a.aliases&&a.aliases[r],l=u&&u.indexOf(",")<0?u:r,p=t._pt=new xo(t._pt,e,l,0,0,Po,0,o.set(e,l,t));p.u=bo(o.get(e,l,s))||0,p.path=n,p.pp=i,t._props.push(l)},zo={version:"3.12.5",name:"motionPath",register:function(t,e,r){bo=(yo=t).utils.getUnit,wo=yo.utils.toArray,Co=yo.core.getStyleSaver,Fo=yo.core.reverting||function(){},xo=r},init:function(t,e,r){if(!yo)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var n,i,s,o,a=[],u=e,l=u.path,p=u.autoRotate,c=u.unitX,h=u.unitY,f=u.x,d=u.y,g=l[0],_=(s=e.start,o="end"in e?e.end:1,function(t){return s||1!==o?Gi(t,s,o):t});if(this.rawPaths=a,this.target=t,this.tween=r,this.styles=Co&&Co(t,"transform"),(this.rotate=p||0===p)&&(this.rOffset=parseFloat(p)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=bo(t._gsap.get(t,this.rProp))||0),Array.isArray(l)&&!("closed"in l)&&"number"!=typeof g){for(i in g)!f&&~Eo.indexOf(i)?f=i:!d&&~To.indexOf(i)&&(d=i);for(i in f&&d?a.push(Ro(this,Mo(Mo([],l,f,0),l,d,1),t,f,d,_,e,c||bo(l[0][f]),h||bo(l[0][d]))):f=d=0,g)i!==f&&i!==d&&a.push(Ro(this,Mo([],l,i,2),t,i,0,_,e,bo(l[0][i])))}else Hi(n=_(No(Xi(e.path),t,e)),e.resolution),a.push(n),Io(this,t,e.x||"x",n,"x",e.unitX||"px"),Io(this,t,e.y||"y",n,"y",e.unitY||"px")},render:function(t,e){var r=e.rawPaths,n=r.length,i=e._pt;if(e.tween._time||!Fo()){for(t>1?t=1:t<0&&(t=0);n--;)$i(r[n],t,!n&&e.rotate,r[n]);for(;i;)i.set(i.t,i.p,i.path[i.pp]+i.u,i.d,t),i=i._next;e.rotate&&e.rSet(e.target,e.rProp,r[0].angle*(e.radians?So:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function(t){return Hi(Xi(t)).totalLength},sliceRawPath:Gi,getRawPath:Xi,pointsToSegment:ts,stringToRawPath:Ji,rawPathToString:es,transformRawPath:Qi,getGlobalMatrix:vo,getPositionOnPath:$i,cacheRawPathMeasurements:Hi,convertToPath:function(t,e){return wo(t).map((function(t){return function(t,e){var r,n,i,s,o,a,u,l,p,c,h,f,d,g,_,m,D,v,y,x,b,w,C=t.tagName.toLowerCase(),F=.552284749831;return"path"!==C&&t.getBBox?(a=function(t,
|
||
|
|
/*!
|
||
|
|
* Draggable 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var jo,Yo,qo,Go,Vo,Ho,Wo,Uo,$o,Qo,Zo,Jo,Ko,ta,ea,ra,na,ia,sa,oa,aa,ua,la=0,pa=function(){return"undefined"!=typeof window},ca=function(){return jo||pa()&&(jo=window.gsap)&&jo.registerPlugin&&jo},ha=function(t){return"function"==typeof t},fa=function(t){return"object"==typeof t},da=function(t){return void 0===t},ga=function(){return!1},_a="transform",ma="transformOrigin",Da=function(t){return Math.round(1e4*t)/1e4},va=Array.isArray,ya=function(t,e){var r=qo.createElementNS?qo.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):qo.createElement(t);return r.style?r:qo.createElement(t)},xa=180/Math.PI,ba=1e20,wa=new Do,Ca=Date.now||function(){return(new Date).getTime()},Fa=[],Ea={},Ta=0,Sa=/^(?:a|input|textarea|button|select)$/i,Ma=0,Aa={},Oa={},Ra=function(t,e){var r,n={};for(r in t)n[r]=e?t[r]*e:t[r];return n},Pa=function t(e,r){for(var n,i=e.length;i--;)r?e[i].style.touchAction=r:e[i].style.removeProperty("touch-action"),(n=e[i].children)&&n.length&&t(n,r)},ka=function(){return Fa.forEach((function(t){return t()}))},Ba=function(){return!Fa.length&&jo.ticker.remove(ka)},La=function(t){for(var e=Fa.length;e--;)Fa[e]===t&&Fa.splice(e,1);jo.to(Ba,{overwrite:!0,delay:15,duration:0,onComplete:Ba,data:"_draggable"})},Na=function(t,e,r,n){if(t.addEventListener){var i=Ko[e];n=n||(Zo?{passive:!1}:null),t.addEventListener(i||e,r,n),i&&e!==i&&t.addEventListener(e,r,n)}},Ia=function(t,e,r,n){if(t.removeEventListener){var i=Ko[e];t.removeEventListener(i||e,r,n),i&&e!==i&&t.removeEventListener(e,r,n)}},za=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},Xa=function t(e){ta=e.touches&&la<e.touches.length,Ia(e.target,"touchend",t)},ja=function(t){ta=t.touches&&la<t.touches.length,Na(t.target,"touchend",Xa)},Ya=function(t){return Yo.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},qa=function(t){return Yo.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},Ga=function t(e,r){Na(e,"scroll",r),Ha(e.parentNode)||t(e.parentNode,r)},Va=function t(e,r){Ia(e,"scroll",r),Ha(e.parentNode)||t(e.parentNode,r)},Ha=function(t){return!(t&&t!==Go&&9!==t.nodeType&&t!==qo.body&&t!==Yo&&t.nodeType&&t.parentNode)},Wa=function(t,e){var r="x"===e?"Width":"Height",n="scroll"+r,i="client"+r;return Math.max(0,Ha(t)?Math.max(Go[n],Vo[n])-(Yo["inner"+r]||Go[i]||Vo[i]):t[n]-t[i])},Ua=function t(e,r){var n=Wa(e,"x"),i=Wa(e,"y");Ha(e)?e=Oa:t(e.parentNode,r),e._gsMaxScrollX=n,e._gsMaxScrollY=i,r||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)},$a=function(t,e,r){var n=t.style;n&&(da(n[e])&&(e=$o(e,t)||e),null==r?n.removeProperty&&n.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):n[e]=r)},Qa=function(t){return Yo.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Za={},Ja=function(t){if(t===Yo)return Za.left=Za.top=0,Za.width=Za.right=Go.clientWidth||t.innerWidth||Vo.clientWidth||0,Za.height=Za.bottom=(t.innerHeight||0)-20<Go.clientHeight?Go.clientHeight:t.innerHeight||Vo.clientHeight||0,Za;var e=t.ownerDocument||qo,r=da(t.pageX)?t.nodeType||da(t.left)||da(t.top)?Qo(t)[0].getBoundingClientRect():t:{left:t.pageX-qa(e),top:t.pageY-Ya(e),right:t.pageX-qa(e)+1,bottom:t.pageY-Ya(e)+1};return da(r.right)&&!da(r.width)?(r.right=r.left+r.width,r.bottom=r.top+r.height):da(r.width)&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r},Ka=function(t,e,r){var n,i=t.vars,s=i[r],o=t._listeners[e];return ha(s)&&(n=s.apply(i.callbackScope||t,i[r+"Params"]||[t.pointerEvent])),o&&!1===t.dispatchEvent(e)&&(n=!1),n},tu=function(t,e){var r,n,i,s=Qo(t)[0];return s.nodeType||s===Yo?ru(s,e):da(t.left)?{left:n=t.min||t.minX||t.minRotation||0,top:r=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-n,height:(t.max||t.maxY||0)-r}:(i={x:0,y:0},{left:t.left-i.x,top:t.top-i.y,width:t.width,height:t.height})},eu={},ru=function(t,e){e=Qo(e)[0];var r,n,i,s,o,a,u,l,p,c,h,f,d,g=t.getBBox&&t.ownerSVGElement,_=t.ownerDocument||qo;if(t===Yo)i=Ya(_),n=(r=qa(_))+(_.documentElem
|
||
|
|
/*!
|
||
|
|
* VelocityTracker: 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var pu,cu,hu,fu,du,gu,_u,mu,Du=function(){return pu||"undefined"!=typeof window&&(pu=window.gsap)},vu={},yu=function(t){return mu(t).id},xu=function(t){return vu[yu("string"==typeof t?hu(t)[0]:t)]},bu=function(t){var e,r=du;if(t-_u>=.05)for(_u=t;r;)((e=r.g(r.t,r.p))!==r.v1||t-r.t1>.2)&&(r.v2=r.v1,r.v1=e,r.t2=r.t1,r.t1=t),r=r._next},wu={deg:360,rad:2*Math.PI},Cu=function(){(pu=Du())&&(hu=pu.utils.toArray,fu=pu.utils.getUnit,mu=pu.core.getCache,gu=pu.ticker,cu=1)},Fu=function(t,e,r,n){this.t=t,this.p=e,this.g=t._gsap.get,this.rCap=wu[r||fu(this.g(t,e))],this.v1=this.v2=0,this.t1=this.t2=gu.time,n&&(this._next=n,n._prev=this)},Eu=function(){function t(t,e){cu||Cu(),this.target=hu(t)[0],vu[yu(this.target)]=this,this._props={},e&&this.add(e)}t.register=function(t){pu=t,Cu()};var e=t.prototype;return e.get=function(t,e){var r,n,i,s=this._props[t]||console.warn("Not tracking "+t+" velocity.");return r=parseFloat(e?s.v1:s.g(s.t,s.p))-parseFloat(s.v2),(n=s.rCap)&&(r%=n)!=r%(n/2)&&(r=r<0?r+n:r-n),i=r/((e?s.t1:gu.time)-s.t2),Math.round(1e4*i)/1e4},e.getAll=function(){var t,e={},r=this._props;for(t in r)e[t]=this.get(t);return e},e.isTracking=function(t){return t in this._props},e.add=function(t,e){t in this._props||(du||(gu.add(bu),_u=gu.time),du=this._props[t]=new Fu(this.target,t,e,du))},e.remove=function(t){var e,r,n=this._props[t];n&&(e=n._prev,r=n._next,e&&(e._next=r),r?r._prev=e:du===n&&(gu.remove(bu),du=0),delete this._props[t])},e.kill=function(t){for(var e in this._props)this.remove(e);t||delete vu[yu(this.target)]},t.track=function(e,r,n){cu||Cu();for(var i,s,o=[],a=hu(e),u=r.split(","),l=(n||"").split(","),p=a.length;p--;){for(i=xu(a[p])||new t(a[p]),s=u.length;s--;)i.add(u[s],l[s]||l[0]);o.push(i)}return o},t.untrack=function(t,e){var r=(e||"").split(",");hu(t).forEach((function(t){var e=xu(t);e&&(r.length?r.forEach((function(t){return e.remove(t)})):e.kill(1))}))},t.isTracking=function(t,e){var r=xu(t);return r&&r.isTracking(e)},t.getVelocity=function(t,e){var r=xu(t);return r&&r.isTracking(e)?r.get(e):console.warn("Not tracking velocity of "+e)},t}();Eu.getByTarget=xu,Du()&&pu.registerPlugin(Eu);
|
||
|
|
/*!
|
||
|
|
* InertiaPlugin 3.12.5
|
||
|
|
* https://gsap.com
|
||
|
|
*
|
||
|
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
||
|
|
* Subject to the terms at https://gsap.com/standard-license or for
|
||
|
|
* Club GSAP members, the agreement issued with that membership.
|
||
|
|
* @author: Jack Doyle, jack@greensock.com
|
||
|
|
*/
|
||
|
|
var Tu,Su,Mu,Au,Ou,Ru,Pu,ku,Bu,Lu,Nu,Iu,zu,Xu,ju,Yu=Eu.getByTarget,qu=function(){return Tu||"undefined"!=typeof window&&(Tu=window.gsap)&&Tu.registerPlugin&&Tu},Gu=function(t){return"number"==typeof t},Vu=function(t){return"object"==typeof t},Hu=function(t){return"function"==typeof t},Wu=Array.isArray,Uu=function(t){return t},$u=1e10,Qu=function(t,e,r){for(var n in e)n in t||n===r||(t[n]=e[n]);return t},Zu=function t(e){var r,n,i={};for(r in e)i[r]=Vu(n=e[r])&&!Wu(n)?t(n):n;return i},Ju=function(t,e,r,n,i){var s,o,a,u,l=e.length,p=0,c=$u;if(Vu(t)){for(;l--;){for(a in s=e[l],o=0,t)o+=(u=s[a]-t[a])*u;o<c&&(p=l,c=o)}if((i||$u)<$u&&i<Math.sqrt(c))return t}else for(;l--;)(o=(s=e[l])-t)<0&&(o=-o),o<c&&s>=n&&s<=r&&(p=l,c=o);return e[p]},Ku=function(t,e,r,n,i,s,o){if("auto"===t.end)return t;var a,u,l=t.end;if(r=isNaN(r)?$u:r,n=isNaN(n)?-1e10:n,Vu(e)){if(a=e.calculated?e:(Hu(l)?l(e,o):Ju(e,l,r,n,s))||e,!e.calculated){for(u in a)e[u]=a[u];e.calculated=!0}a=a[i]}else a=Hu(l)?l(e,o):Wu(l)?Ju(e,l,r,n,s):parseFloat(l);return a>r?a=r:a<n&&(a=n),{max:a,min:a,unitFactor:t.unitFactor}},tl=function(t,e,r){return isNaN(t[e])?r:+t[e]},el=function(t,e){return.05*e*t/Lu},rl=function(t,e,r){return Math.abs((e-t)*Lu/r/.05)},nl={resistance:1,checkpoint:1,preventOvershoot:1,linkedProps:1,radius:1,duration:1},il=function(t,e,r,n){if(e.linkedProps){var i,s,o,a,u,l,p=e.linkedProps.split(","),c={};for(i=0;i<p.length;i++)(o=e[s=p[i]])&&(a=Gu(o.velocity)?o.velocity:(u=u||Yu(t))&&u.isTracking(s)?u.get(s):0,l=Math.abs(a/tl(o,"resistance",n)),c[s]=parseFloat(r(t,s))+el(a,l));return c}},sl=function(){(Tu=qu())&&(Mu=Tu.parseEase,Au=Tu.utils.toArray,Pu=Tu.utils.getUnit,Bu=Tu.core.getCache,Nu=Tu.utils.clamp,zu=Tu.core.getStyleSaver,Xu=Tu.core.reverting||function(){},Ou=Mu("power3"),Lu=Ou(.05),ku=Tu.core.PropTween,Tu.config({resistance:100,unitFactors:{time:1e3,totalTime:1e3,progress:1e3,totalProgress:1e3}}),Ru=Tu.config(),Tu.registerPlugin(Eu),Su=1)},ol={version:"3.12.5",name:"inertia",register:function(t){Tu=t,sl()},init:function(t,e,r,n,i){Su||sl();var s=Yu(t);if("auto"===e){if(!s)return void console.warn("No inertia tracking on "+t+". InertiaPlugin.track(target) first.");e=s.getAll()}this.styles=zu&&"object"==typeof t.style&&zu(t),this.target=t,this.tween=r,Iu=e;var o,a,u,l,p,c,h,f,d,g=t._gsap,_=g.get,m=e.duration,D=Vu(m),v=e.preventOvershoot||D&&0===m.overshoot,y=tl(e,"resistance",Ru.resistance),x=Gu(m)?m:function(t,e,r,n,i,s){if(void 0===r&&(r=10),void 0===n&&(n=.2),void 0===i&&(i=1),void 0===s&&(s=0),"string"==typeof t&&(t=Au(t)[0]),!t)return 0;var o,a,u,l,p,c,h,f,d,g,_=0,m=$u,D=e.inertia||e,v=Bu(t).get,y=tl(D,"resistance",Ru.resistance);for(o in g=il(t,D,v,y),D)nl[o]||(a=D[o],Vu(a)||((f=f||Yu(t))&&f.isTracking(o)?a=Gu(a)?{velocity:a}:{velocity:f.get(o)}:(l=+a||0,u=Math.abs(l/y))),Vu(a)&&(l=Gu(a.velocity)?a.velocity:(f=f||Yu(t))&&f.isTracking(o)?f.get(o):0,u=Nu(n,r,Math.abs(l/tl(a,"resistance",y))),c=(p=parseFloat(v(t,o))||0)+el(l,u),"end"in a&&(a=Ku(a,g&&o in g?g:c,a.max,a.min,o,D.radius,l),s&&(Iu===e&&(Iu=D=Zu(e)),D[o]=Qu(a,D[o],"end"))),"max"in a&&c>+a.max+1e-10?(d=a.unitFactor||Ru.unitFactors[o]||1,(h=p>a.max&&a.min!==a.max||l*d>-15&&l*d<45?n+.1*(r-n):rl(p,a.max,l))+i<m&&(m=h+i)):"min"in a&&c<+a.min-1e-10&&(d=a.unitFactor||Ru.unitFactors[o]||1,(h=p<a.min&&a.min!==a.max||l*d>-45&&l*d<15?n+.1*(r-n):rl(p,a.min,l))+i<m&&(m=h+i)),h>_&&(_=h)),u>_&&(_=u));return _>m&&(_=m),_>r?r:_<n?n:_}(t,e,D&&m.max||10,D&&m.min||.2,D&&"overshoot"in m?+m.overshoot:v?0:1,!0);for(o in e=Iu,Iu=0,d=il(t,e,_,y),e)nl[o]||(a=e[o],Hu(a)&&(a=a(n,t,i)),Gu(a)?p=a:Vu(a)&&!isNaN(a.velocity)?p=+a.velocity:s&&s.isTracking(o)?p=s.get(o):console.warn("ERROR: No velocity was defined for "+t+" property: "+o),c=el(p,x),f=0,u=_(t,o),l=Pu(u),u=parseFloat(u),Vu(a)&&(h=u+c,"end"in a&&(a=Ku(a,d&&o in d?d:h,a.max,a.min,o,e.radius,p)),"max"in a&&+a.max<h?v||a.preventOvershoot?c=a.max-u:f=a.max-u-c:"min"in a&&+a.min>h&&(v||a.preventOvershoot?c=a.min-u:f=a.min-u-c)),this._props.push(o),this.styles&&this.styles.save(o),this._pt=new ku(this._pt,t,o,u,0,Uu,0,g.set(t,o,this)),this._pt.u=l||0,this._pt.c1=
|
||
|
|
/*!FallBack for old and new Eases*/
|
||
|
|
_tpt.eases=_tpt.gsap.parseEase(),_tpt.eases)_tpt.eases.hasOwnProperty(ul)&&void 0===al[ul]&&(al[ul]=_tpt.eases[ul]
|
||
|
|
/*! FallBack for Essential Grid */);void 0!==ju&&void 0!==ju.TweenLite&&void 0===ju.TweenLite.lagSmoothing&&(ju.TweenLite.lagSmoothing=function(){}),_tpt.CustomEase.create("late","M0,0,C0,0,0.474,0.078,0.724,0.26,0.969,0.438,1,1,1,1"),_tpt.CustomEase.create("late2","M0,0 C0,0 0.738,-0.06 0.868,0.22 1,0.506 1,1 1,1 "),_tpt.CustomEase.create("late3","M0,0,C0,0,0.682,0.157,0.812,0.438,0.944,0.724,1,1,1,1"),_tpt.SFXBounceLite=_tpt.CustomBounce.create("SFXBounceLite",{strength:.3,squash:1,squashID:"SFXBounceLite-squash"}),_tpt.SFXBounceSolid=_tpt.CustomBounce.create("SFXBounceSolid",{strength:.5,squash:2,squashID:"SFXBounceSolid-squash"}),_tpt.SFXBounceStrong=_tpt.CustomBounce.create("SFXBounceStrong",{strength:.7,squash:3,squashID:"SFXBounceStrong-squash"}),_tpt.SFXBounceExtrem=_tpt.CustomBounce.create("SFXBounceExtrem",{strength:.9,squash:4,squashID:"SFXBounceExtrem-squash"}),_tpt.BounceLite=_tpt.CustomBounce.create("BounceLite",{strength:.3}),_tpt.BounceSolid=_tpt.CustomBounce.create("BounceSolid",{strength:.5}),_tpt.BounceStrong=_tpt.CustomBounce.create("BounceStrong",{strength:.7}),_tpt.BounceExtrem=_tpt.CustomBounce.create("BounceExtrem",{strength:.9}),_tpt.R=_tpt.R||{},_tpt.R.tpgsap=_tpt.extend?_tpt.extend(_tpt.R.tpgsap,{status:2,version:"1.0"}):{status:2,version:"1.0"},window.dispatchEvent(new CustomEvent("tpGSAPReady"))})();
|