gsap-trial
Version:
*** IMPORTANT *** This package is deprecated in favor of the standard 'gsap' package which now includes all bonus plugins. *** DO NOT DEPLOY THESE FILES *** They only work locally or on domains like codepen.io, codesandbox.io, stackblitz.com and jsfiddle.
13 lines (12 loc) • 66.7 kB
JavaScript
/*!
* GSDevTools 3.13.0
* https://gsap.com
*
* @license Copyright 2025, GreenSock. All rights reserved.
* *** DO NOT DEPLOY THIS FILE ***
* This is a trial version that only works locally and on domains like codepen.io and codesandbox.io.
* Loading it on an unauthorized domain violates the license and will cause a redirect.
* Get the unrestricted file by joining Club GSAP at https://gsap.com/pricing
* @author: Jack Doyle, jack@greensock.com
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){if(e.parentNode&&(g||k(e))){var o=P(e),n=o?o.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i=o?t?"rect":"g":"div",r=2!==t?0:100,a=3===t?100:0,s="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",l=g.createElementNS?g.createElementNS(n.replace(/^https/,"http"),i):g.createElement(i);return t&&(o?(m=m||w(e),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+r+","+a+")"),m.appendChild(l)):(h||((h=w(e)).style.cssText=s),l.style.cssText=s+"width:0.1px;height:0.1px;top:"+a+"px;left:"+r+"px",h.appendChild(l))),l}throw"Need document and parent."}function A(e,t,o,n,i,r,a){return e.a=t,e.b=o,e.c=n,e.d=i,e.e=r,e.f=a,e}var g,f,r,a,h,m,v,x,b,t,y="transform",T=y+"Origin",k=function _setDoc(e){var t=e.ownerDocument||e;!(y in e.style)&&"msTransform"in e.style&&(T=(y="msTransform")+"Origin");for(;t.parentNode&&(t=t.parentNode););if(f=window,v=new he,t){r=(g=t).documentElement,a=t.body,(x=g.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var o=t.createElement("div"),n=t.createElement("div"),i=t&&(t.body||t.firstElementChild);i&&i.appendChild&&(i.appendChild(o),o.appendChild(n),o.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),b=n.offsetParent!==o,i.removeChild(o))}return t},M=function _forceNonZeroScale(e){for(var t,o;e&&e!==a;)(o=e._gsap)&&o.uncache&&o.get(e,"x"),o&&!o.scaleX&&!o.scaleY&&o.renderTransform&&(o.scaleX=o.scaleY=1e-4,o.renderTransform(1,o),t?t.push(o):t=[o]),e=e.parentNode;return t},D=[],C=[],S=function _getDocScrollTop(){return f.pageYOffset||g.scrollTop||r.scrollTop||a.scrollTop||0},E=function _getDocScrollLeft(){return f.pageXOffset||g.scrollLeft||r.scrollLeft||a.scrollLeft||0},P=function _svgOwner(e){return e.ownerSVGElement||("svg"===(e.tagName+"").toLowerCase()?e:null)},L=function _isFixed(e){return"fixed"===f.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)},B=function _placeSiblings(e,t){var o,n,i,r,a,s,l=P(e),c=e===l,d=l?D:C,p=e.parentNode,u=p&&!l&&p.shadowRoot&&p.shadowRoot.appendChild?p.shadowRoot:p;if(e===f)return e;if(d.length||d.push(w(e,1),w(e,2),w(e,3)),o=l?m:h,l)c?(r=-(i=function _getCTM(e){var t,o=e.getCTM();return o||(t=e.style[y],e.style[y]="none",e.appendChild(x),o=x.getCTM(),e.removeChild(x),t?e.style[y]=t:e.style.removeProperty(y.replace(/([A-Z])/g,"-$1").toLowerCase())),o||v.clone()}(e)).e/i.a,a=-i.f/i.d,n=v):e.getBBox?(i=e.getBBox(),r=(n=(n=e.transform?e.transform.baseVal:{}).numberOfItems?1<n.numberOfItems?function _consolidate(e){for(var t=new he,o=0;o<e.numberOfItems;o++)t.multiply(e.getItem(o).matrix);return t}(n):n.getItem(0).matrix:v).a*i.x+n.c*i.y,a=n.b*i.x+n.d*i.y):(n=new he,r=a=0),t&&"g"===e.tagName.toLowerCase()&&(r=a=0),(c?l:p).appendChild(o),o.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+r)+","+(n.f+a)+")");else{if(r=a=0,b)for(n=e.offsetParent,i=e;(i=i&&i.parentNode)&&i!==n&&i.parentNode;)4<(f.getComputedStyle(i)[y]+"").length&&(r=i.offsetLeft,a=i.offsetTop,i=0);if("absolute"!==(s=f.getComputedStyle(e)).position&&"fixed"!==s.position)for(n=e.offsetParent;p&&p!==n;)r+=p.scrollLeft||0,a+=p.scrollTop||0,p=p.parentNode;(i=o.style).top=e.offsetTop-a+"px",i.left=e.offsetLeft-r+"px",i[y]=s[y],i[T]=s[T],i.position="fixed"===s.position?"fixed":"absolute",u.appendChild(o)}return o},he=((t=Matrix2D.prototype).inverse=function inverse(){var e=this.a,t=this.b,o=this.c,n=this.d,i=this.e,r=this.f,a=e*n-t*o||1e-10;return A(this,n/a,-t/a,-o/a,e/a,(o*r-n*i)/a,-(e*r-t*i)/a)},t.multiply=function multiply(e){var t=this.a,o=this.b,n=this.c,i=this.d,r=this.e,a=this.f,s=e.a,l=e.c,c=e.b,d=e.d,p=e.e,u=e.f;return A(this,s*t+c*n,s*o+c*i,l*t+d*n,l*o+d*i,r+p*t+u*n,a+p*o+u*i)},t.clone=function clone(){return new Matrix2D(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function equals(e){var t=this.a,o=this.b,n=this.c,i=this.d,r=this.e,a=this.f;return t===e.a&&o===e.b&&n===e.c&&i===e.d&&r===e.e&&a===e.f},t.apply=function apply(e,t){void 0===t&&(t={});var o=e.x,n=e.y,i=this.a,r=this.b,a=this.c,s=this.d,l=this.e,c=this.f;return t.x=o*i+n*a+l||0,t.y=o*r+n*s+c||0,t},Matrix2D);function Matrix2D(e,t,o,n,i,r){void 0===e&&(e=1),void 0===t&&(t=0),void 0===o&&(o=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===r&&(r=0),A(this,e,t,o,n,i,r)}function getGlobalMatrix(e,t,o,n){if(!e||!e.parentNode||(g||k(e)).documentElement===e)return new he;var i=M(e),r=P(e)?D:C,a=B(e,o),s=r[0].getBoundingClientRect(),l=r[1].getBoundingClientRect(),c=r[2].getBoundingClientRect(),d=a.parentNode,p=!n&&L(e),u=new he((l.left-s.left)/100,(l.top-s.top)/100,(c.left-s.left)/100,(c.top-s.top)/100,s.left+(p?0:E()),s.top+(p?0:S()));if(d.removeChild(a),i)for(s=i.length;s--;)(l=i[s]).scaleX=l.scaleY=0,l.renderTransform(1,l);return t?u.inverse():u}function X(){return"undefined"!=typeof window}function Y(){return me||X()&&(me=window.gsap)&&me.registerPlugin&&me}function Z(e){return"function"==typeof e}function $(e){return"object"==typeof e}function _(e){return void 0===e}function aa(){return!1}function da(e){return Math.round(1e4*e)/1e4}function fa(e,t){var o=xe.createElementNS?xe.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):xe.createElement(e);return o.style?o:xe.createElement(e)}function ra(e,t){var o,n={};for(o in e)n[o]=t?e[o]*t:e[o];return n}function ta(e,t){for(var o,n=e.length;n--;)t?e[n].style.touchAction=t:e[n].style.removeProperty("touch-action"),(o=e[n].children)&&o.length&&ta(o,t)}function ua(){return Ie.forEach(function(e){return e()})}function wa(){return!Ie.length&&me.ticker.remove(ua)}function xa(e){for(var t=Ie.length;t--;)Ie[t]===e&&Ie.splice(t,1);me.to(wa,{overwrite:!0,delay:15,duration:0,onComplete:wa,data:"_draggable"})}function za(e,t,o,n){if(e.addEventListener){var i=ke[t];n=n||(d?{passive:!1}:null),e.addEventListener(i||t,o,n),i&&t!==i&&e.addEventListener(t,o,n)}}function Aa(e,t,o,n){if(e.removeEventListener){var i=ke[t];e.removeEventListener(i||t,o,n),i&&t!==i&&e.removeEventListener(t,o,n)}}function Ba(e){e.preventDefault&&e.preventDefault(),e.preventManipulation&&e.preventManipulation()}function Da(e){Me=e.touches&&Le<e.touches.length,Aa(e.target,"touchend",Da)}function Ea(e){Me=e.touches&&Le<e.touches.length,za(e.target,"touchend",Da)}function Fa(e){return ve.pageYOffset||e.scrollTop||e.documentElement.scrollTop||e.body.scrollTop||0}function Ga(e){return ve.pageXOffset||e.scrollLeft||e.documentElement.scrollLeft||e.body.scrollLeft||0}function Ha(e,t){za(e,"scroll",t),Ge(e.parentNode)||Ha(e.parentNode,t)}function Ia(e,t){Aa(e,"scroll",t),Ge(e.parentNode)||Ia(e.parentNode,t)}function Ka(e,t){var o="x"===t?"Width":"Height",n="scroll"+o,i="client"+o;return Math.max(0,Ge(e)?Math.max(be[n],s[n])-(ve["inner"+o]||be[i]||s[i]):e[n]-e[i])}function La(e,t){var o=Ka(e,"x"),n=Ka(e,"y");Ge(e)?e=We:La(e.parentNode,t),e._gsMaxScrollX=o,e._gsMaxScrollY=n,t||(e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0)}function Ma(e,t,o){var n=e.style;n&&(_(n[t])&&(t=c(t,e)||t),null==o?n.removeProperty&&n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n[t]=o)}function Na(e){return ve.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e)}function Pa(e){if(e===ve)return p.left=p.top=0,p.width=p.right=be.clientWidth||e.innerWidth||s.clientWidth||0,p.height=p.bottom=(e.innerHeight||0)-20<be.clientHeight?be.clientHeight:e.innerHeight||s.clientHeight||0,p;var t=e.ownerDocument||xe,o=_(e.pageX)?e.nodeType||_(e.left)||_(e.top)?_e(e)[0].getBoundingClientRect():e:{left:e.pageX-Ga(t),top:e.pageY-Fa(t),right:e.pageX-Ga(t)+1,bottom:e.pageY-Fa(t)+1};return _(o.right)&&!_(o.width)?(o.right=o.left+o.width,o.bottom=o.top+o.height):_(o.width)&&(o={width:o.right-o.left,height:o.bottom-o.top,right:o.right,left:o.left,bottom:o.bottom,top:o.top}),o}function Qa(e,t,o){var n,i=e.vars,r=i[o],a=e._listeners[t];return Z(r)&&(n=r.apply(i.callbackScope||e,i[o+"Params"]||[e.pointerEvent])),a&&!1===e.dispatchEvent(t)&&(n=!1),n}function Ra(e,t){var o,n,i,r=_e(e)[0];return r.nodeType||r===ve?u(r,t):_(e.left)?{left:n=e.min||e.minX||e.minRotation||0,top:o=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-o}:(i={x:0,y:0},{left:e.left-i.x,top:e.top-i.y,width:e.width,height:e.height})}function Ua(i,r,e,t,a,o){var n,s,l,c={};if(r)if(1!==a&&r instanceof Array){if(c.end=n=[],l=r.length,$(r[0]))for(s=0;s<l;s++)n[s]=ra(r[s],a);else for(s=0;s<l;s++)n[s]=r[s]*a;e+=1.1,t-=1.1}else Z(r)?c.end=function(e){var t,o,n=r.call(i,e);if(1!==a)if($(n)){for(o in t={},n)t[o]=n[o]*a;n=t}else n*=a;return n}:c.end=r;return!e&&0!==e||(c.max=e),!t&&0!==t||(c.min=t),o&&(c.velocity=0),c}function Va(e){var t;return!(!e||!e.getAttribute||e===s)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!n.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||Va(e.parentNode))}function Wa(e,t){for(var o,n=e.length;n--;)(o=e[n]).ondragstart=o.onselectstart=t?null:aa,me.set(o,{lazy:!0,userSelect:t?"text":"none"})}function $a(r,i){r=me.utils.toArray(r)[0],i=i||{};var a,s,l,e,c,d,p=document.createElement("div"),u=p.style,t=r.firstChild,g=0,f=0,h=r.scrollTop,m=r.scrollLeft,v=r.scrollWidth,x=r.scrollHeight,b=0,y=0,w=0;N&&!1!==i.force3D?(c="translate3d(",d="px,0px)"):I&&(c="translate(",d="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(r.scrollLeft+f);var o=r.scrollLeft-m,n=f;if((2<o||o<-2)&&!t)return m=r.scrollLeft,me.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-m),void(i.onKill&&i.onKill());(e=-e)<0?(f=e-.5|0,e=0):y<e?(f=e-y|0,e=y):f=0,(f||n)&&(this._skip||(u[I]=c+-f+"px,"+-g+d),0<=f+b&&(u.paddingRight=f+b+"px")),r.scrollLeft=0|e,m=r.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(r.scrollTop+g);var o=r.scrollTop-h,n=g;if((2<o||o<-2)&&!t)return h=r.scrollTop,me.killTweensOf(this,{top:1,scrollTop:1}),this.top(-h),void(i.onKill&&i.onKill());(e=-e)<0?(g=e-.5|0,e=0):w<e?(g=e-w|0,e=w):g=0,(g||n)&&(this._skip||(u[I]=c+-f+"px,"+-g+d)),r.scrollTop=0|e,h=r.scrollTop},this.maxScrollTop=function(){return w},this.maxScrollLeft=function(){return y},this.disable=function(){for(t=p.firstChild;t;)e=t.nextSibling,r.appendChild(t),t=e;r===p.parentNode&&r.removeChild(p)},this.enable=function(){if((t=r.firstChild)!==p){for(;t;)e=t.nextSibling,p.appendChild(t),t=e;r.appendChild(p),this.calibrate()}},this.calibrate=function(e){var t,o,n,i=r.clientWidth===a;h=r.scrollTop,m=r.scrollLeft,i&&r.clientHeight===s&&p.offsetHeight===l&&v===r.scrollWidth&&x===r.scrollHeight&&!e||((g||f)&&(o=this.left(),n=this.top(),this.left(-r.scrollLeft),this.top(-r.scrollTop)),t=Na(r),i&&!e||(u.display="block",u.width="auto",u.paddingRight="0px",(b=Math.max(0,r.scrollWidth-r.clientWidth))&&(b+=parseFloat(t.paddingLeft)+(R?parseFloat(t.paddingRight):0))),u.display="inline-block",u.position="relative",u.overflow="visible",u.verticalAlign="top",u.boxSizing="content-box",u.width="100%",u.paddingRight=b+"px",R&&(u.paddingBottom=t.paddingBottom),a=r.clientWidth,s=r.clientHeight,v=r.scrollWidth,x=r.scrollHeight,y=r.scrollWidth-a,w=r.scrollHeight-s,l=p.offsetHeight,u.display="block",(o||n)&&(this.left(o),this.top(n)))},this.content=p,this.element=r,this._skip=!1,this.enable()}function _a(e){if(X()&&document.body){var t=window&&window.navigator;ve=window,xe=document,be=xe.documentElement,s=xe.body,l=fa("div"),Ae=!!window.PointerEvent,(ye=fa("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",Se="grab"===ye.style.cursor?"grab":"move",De=t&&-1!==t.userAgent.toLowerCase().indexOf("android"),Te="ontouchstart"in be&&"orientation"in ve||t&&(0<t.MaxTouchPoints||0<t.msMaxTouchPoints),n=fa("div"),i=fa("div"),r=i.style,a=s,r.display="inline-block",r.position="relative",n.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",n.appendChild(i),a.appendChild(n),o=i.offsetHeight+18>n.scrollHeight,a.removeChild(n),R=o,ke=function(e){for(var t=e.split(","),o=(("onpointerdown"in l?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in l?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(",")),n={},i=4;-1<--i;)n[t[i]]=o[i],n[o[i]]=t[i];try{be.addEventListener("test",null,Object.defineProperty({},"passive",{get:function get(){d=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),za(xe,"touchcancel",aa),za(ve,"touchmove",aa),s&&s.addEventListener("touchstart",aa),za(xe,"contextmenu",function(){for(var e in He)He[e].isPressed&&He[e].endDrag()}),me=we=Y()}var o,n,i,r,a;me?(Ce=me.plugins.inertia,Ee=me.core.context||function(){},c=me.utils.checkPrefix,I=c(I),Be=c(Be),_e=me.utils.toArray,Pe=me.core.getStyleSaver,N=!!c("perspective")):e&&console.warn("Please gsap.registerPlugin(Draggable)")}var me,ve,xe,be,s,l,ye,we,c,_e,d,Te,ke,Me,De,Ce,Se,Ae,Ee,Pe,N,R,o,Le=0,I="transform",Be="transformOrigin",Xe=Array.isArray,Ne=180/Math.PI,Re=1e20,i=new he,Ye=Date.now||function(){return(new Date).getTime()},Ie=[],He={},Oe=0,n=/^(?:a|input|textarea|button|select)$/i,Fe=0,ze={},We={},Ge=function _isRoot(e){return!(e&&e!==be&&9!==e.nodeType&&e!==xe.body&&e!==ve&&e.nodeType&&e.parentNode)},p={},Ve={},u=function _getElementBounds(e,t){t=_e(t)[0];var o,n,i,r,a,s,l,c,d,p,u,g,f,h=e.getBBox&&e.ownerSVGElement,m=e.ownerDocument||xe;if(e===ve)i=Fa(m),n=(o=Ga(m))+(m.documentElement.clientWidth||e.innerWidth||m.body.clientWidth||0),r=i+((e.innerHeight||0)-20<m.documentElement.clientHeight?m.documentElement.clientHeight:e.innerHeight||m.body.clientHeight||0);else{if(t===ve||_(t))return e.getBoundingClientRect();o=i=0,h?(u=(p=e.getBBox()).width,g=p.height):(e.viewBox&&(p=e.viewBox.baseVal)&&(o=p.x||0,i=p.y||0,u=p.width,g=p.height),u||(p="border-box"===(f=Na(e)).boxSizing,u=(parseFloat(f.width)||e.clientWidth||0)+(p?0:parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)),g=(parseFloat(f.height)||e.clientHeight||0)+(p?0:parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)))),n=u,r=g}return e===t?{left:o,top:i,width:n-o,height:r-i}:(s=(a=getGlobalMatrix(t,!0).multiply(getGlobalMatrix(e))).apply({x:o,y:i}),l=a.apply({x:n,y:i}),c=a.apply({x:n,y:r}),d=a.apply({x:o,y:r}),{left:o=Math.min(s.x,l.x,c.x,d.x),top:i=Math.min(s.y,l.y,c.y,d.y),width:Math.max(s.x,l.x,c.x,d.x)-o,height:Math.max(s.y,l.y,c.y,d.y)-i})},H=((o=EventDispatcher.prototype).addEventListener=function addEventListener(e,t){var o=this._listeners[e]||(this._listeners[e]=[]);~o.indexOf(t)||o.push(t)},o.removeEventListener=function removeEventListener(e,t){var o=this._listeners[e],n=o&&o.indexOf(t);0<=n&&o.splice(n,1)},o.dispatchEvent=function dispatchEvent(t){var o,n=this;return(this._listeners[t]||[]).forEach(function(e){return!1===e.call(n,{type:t,target:n.target})&&(o=!1)}),o},EventDispatcher);function EventDispatcher(e){this._listeners={},this.target=e||this}var Qe,V=(function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(Draggable,Qe=H),Draggable.register=function register(e){me=e,_a()},Draggable.create=function create(e,t){return we||_a(!0),_e(e).map(function(e){return new Draggable(e,t)})},Draggable.get=function get(e){return He[(_e(e)[0]||{})._gsDragID]},Draggable.timeSinceDrag=function timeSinceDrag(){return(Ye()-Fe)/1e3},Draggable.hitTest=function hitTest(e,t,o){if(e===t)return!1;var n,i,r,a=Pa(e),s=Pa(t),l=a.top,c=a.left,d=a.right,p=a.bottom,u=a.width,g=a.height,f=s.left>d||s.right<c||s.top>p||s.bottom<l;return f||!o?!f:(r=-1!==(o+"").indexOf("%"),o=parseFloat(o)||0,(n={left:Math.max(c,s.left),top:Math.max(l,s.top)}).width=Math.min(d,s.right)-n.left,n.height=Math.min(p,s.bottom)-n.top,!(n.width<0||n.height<0)&&(r?u*g*(o*=.01)<=(i=n.width*n.height)||i>=s.width*s.height*o:n.width>o&&n.height>o))},Draggable);function Draggable(g,p){var e;e=Qe.call(this)||this,we||_a(1),g=_e(g)[0],e.styles=Pe&&Pe(g,"transform,left,top"),Ce=Ce||me.plugins.inertia,e.vars=p=ra(p||{}),e.target=g,e.x=e.y=e.rotation=0,e.dragResistance=parseFloat(p.dragResistance)||0,e.edgeResistance=isNaN(p.edgeResistance)?1:parseFloat(p.edgeResistance)||0,e.lockAxis=p.lockAxis,e.autoScroll=p.autoScroll||0,e.lockedAxis=null,e.allowEventDefault=!!p.allowEventDefault,me.getProperty(g,"x");function Th(e,t){return parseFloat(le.get(g,e,t))}function Ai(e){return Ba(e),e.stopImmediatePropagation&&e.stopImmediatePropagation(),!1}function Bi(e){if(q.autoScroll&&q.isDragging&&(te||P)){var t,o,n,i,r,a,s,l,c=g,d=15*q.autoScroll;for(te=!1,We.scrollTop=null!=ve.pageYOffset?ve.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=ve.pageXOffset?ve.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft,i=q.pointerX-We.scrollLeft,r=q.pointerY-We.scrollTop;c&&!o;)t=(o=Ge(c.parentNode))?We:c.parentNode,n=o?{bottom:Math.max(be.clientHeight,ve.innerHeight||0),right:Math.max(be.clientWidth,ve.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=s=0,K&&((l=t._gsMaxScrollY-t.scrollTop)<0?s=l:r>n.bottom-ie&&l?(te=!0,s=Math.min(l,d*(1-Math.max(0,n.bottom-r)/ie)|0)):r<n.top+oe&&t.scrollTop&&(te=!0,s=-Math.min(t.scrollTop,d*(1-Math.max(0,r-n.top)/oe)|0)),s&&(t.scrollTop+=s)),U&&((l=t._gsMaxScrollX-t.scrollLeft)<0?a=l:i>n.right-ne&&l?(te=!0,a=Math.min(l,d*(1-Math.max(0,n.right-i)/ne)|0)):i<n.left+re&&t.scrollLeft&&(te=!0,a=-Math.min(t.scrollLeft,d*(1-Math.max(0,i-n.left)/re)|0)),a&&(t.scrollLeft+=a)),o&&(a||s)&&(ve.scrollTo(t.scrollLeft,t.scrollTop),ge(q.pointerX+a,q.pointerY+s)),c=t}if(P){var p=q.x,u=q.y;G?(q.deltaX=p-parseFloat(le.rotation),q.rotation=p,le.rotation=p+"deg",le.renderTransform(1,le)):f?(K&&(q.deltaY=u-f.top(),f.top(u)),U&&(q.deltaX=p-f.left(),f.left(p))):W?(K&&(q.deltaY=u-parseFloat(le.y),le.y=u+"px"),U&&(q.deltaX=p-parseFloat(le.x),le.x=p+"px"),le.renderTransform(1,le)):(K&&(q.deltaY=u-parseFloat(g.style.top||0),g.style.top=u+"px"),U&&(q.deltaX=p-parseFloat(g.style.left||0),g.style.left=p+"px")),!h||e||H||(!(H=!0)===Qa(q,"drag","onDrag")&&(U&&(q.x-=q.deltaX),K&&(q.y-=q.deltaY),Bi(!0)),H=!1)}P=!1}function Ci(e,t){var o,n,i=q.x,r=q.y;g._gsap||(le=me.core.getCache(g)),le.uncache&&me.getProperty(g,"x"),W?(q.x=parseFloat(le.x),q.y=parseFloat(le.y)):G?q.x=q.rotation=parseFloat(le.rotation):f?(q.y=f.top(),q.x=f.left()):(q.y=parseFloat(g.style.top||(n=Na(g))&&n.top)||0,q.x=parseFloat(g.style.left||(n||{}).left)||0),(L||B||X)&&!t&&(q.isDragging||q.isThrowing)&&(X&&(ze.x=q.x,ze.y=q.y,(o=X(ze)).x!==q.x&&(q.x=o.x,P=!0),o.y!==q.y&&(q.y=o.y,P=!0)),L&&(o=L(q.x))!==q.x&&(q.x=o,G&&(q.rotation=o),P=!0),B&&((o=B(q.y))!==q.y&&(q.y=o),P=!0)),P&&Bi(!0),e||(q.deltaX=q.x-i,q.deltaY=q.y-r,Qa(q,"throwupdate","onThrowUpdate"))}function Di(a,s,l,o){return null==s&&(s=-Re),null==l&&(l=Re),Z(a)?function(e){var t=q.isPressed?1-q.edgeResistance:1;return a.call(q,(l<e?l+(e-l)*t:e<s?s+(e-s)*t:e)*o)*o}:Xe(a)?function(e){for(var t,o,n=a.length,i=0,r=Re;-1<--n;)(o=(t=a[n])-e)<0&&(o=-o),o<r&&s<=t&&t<=l&&(i=n,r=o);return a[i]}:isNaN(a)?function(e){return e}:function(){return a*o}}function Fi(){var e,t,o,n;M=!1,f?(f.calibrate(),q.minX=C=-f.maxScrollLeft(),q.minY=A=-f.maxScrollTop(),q.maxX=D=q.maxY=S=0,M=!0):p.bounds&&(e=Ra(p.bounds,g.parentNode),G?(q.minX=C=e.left,q.maxX=D=e.left+e.width,q.minY=A=q.maxY=S=0):_(p.bounds.maxX)&&_(p.bounds.maxY)?(t=Ra(g,g.parentNode),q.minX=C=Math.round(Th(V,"px")+e.left-t.left),q.minY=A=Math.round(Th(Q,"px")+e.top-t.top),q.maxX=D=Math.round(C+(e.width-t.width)),q.maxY=S=Math.round(A+(e.height-t.height))):(e=p.bounds,q.minX=C=e.minX,q.minY=A=e.minY,q.maxX=D=e.maxX,q.maxY=S=e.maxY),D<C&&(q.minX=D,q.maxX=D=C,C=q.minX),S<A&&(q.minY=S,q.maxY=S=A,A=q.minY),G&&(q.minRotation=C,q.maxRotation=D),M=!0),p.liveSnap&&(o=!0===p.liveSnap?p.snap||{}:p.liveSnap,n=Xe(o)||Z(o),G?(L=Di(n?o:o.rotation,C,D,1),B=null):o.points?X=function buildPointSnapFunc(l,s,c,d,p,u,g){return u=u&&u<Re?u*u:Re,Z(l)?function(e){var t,o,n,i=q.isPressed?1-q.edgeResistance:1,r=e.x,a=e.y;return e.x=r=c<r?c+(r-c)*i:r<s?s+(r-s)*i:r,e.y=a=p<a?p+(a-p)*i:a<d?d+(a-d)*i:a,(t=l.call(q,e))!==e&&(e.x=t.x,e.y=t.y),1!==g&&(e.x*=g,e.y*=g),u<Re&&(o=e.x-r,n=e.y-a,u<o*o+n*n&&(e.x=r,e.y=a)),e}:Xe(l)?function(e){for(var t,o,n,i,r=l.length,a=0,s=Re;-1<--r;)(i=(t=(n=l[r]).x-e.x)*t+(o=n.y-e.y)*o)<s&&(a=r,s=i);return s<=u?l[a]:e}:function(e){return e}}(n?o:o.points,C,D,A,S,o.radius,f?-1:1):(U&&(L=Di(n?o:o.x||o.left||o.scrollLeft,C,D,f?-1:1)),K&&(B=Di(n?o:o.y||o.top||o.scrollTop,A,S,f?-1:1))))}function Gi(){q.isThrowing=!1,Qa(q,"throwcomplete","onThrowComplete")}function Hi(){q.isThrowing=!1}function Ii(e,t){var o,n,i,r;e&&Ce?(!0===e&&(o=p.snap||p.liveSnap||{},n=Xe(o)||Z(o),e={resistance:(p.throwResistance||p.resistance||1e3)/(G?10:1)},G?e.rotation=Ua(q,n?o:o.rotation,D,C,1,t):(U&&(e[V]=Ua(q,n?o:o.points||o.x||o.left,D,C,f?-1:1,t||"x"===q.lockedAxis)),K&&(e[Q]=Ua(q,n?o:o.points||o.y||o.top,S,A,f?-1:1,t||"y"===q.lockedAxis)),(o.points||Xe(o)&&$(o[0]))&&(e.linkedProps=V+","+Q,e.radius=o.radius))),q.isThrowing=!0,r=isNaN(p.overshootTolerance)?1===p.edgeResistance?0:1-q.edgeResistance+.2:p.overshootTolerance,e.duration||(e.duration={max:Math.max(p.minDuration||0,"maxDuration"in p?p.maxDuration:2),min:isNaN(p.minDuration)?0===r||$(e)&&1e3<e.resistance?0:.5:p.minDuration,overshoot:r}),q.tween=i=me.to(f||g,{inertia:e,data:"_draggable",inherit:!1,onComplete:Gi,onInterrupt:Hi,onUpdate:p.fastMode?Qa:Ci,onUpdateParams:p.fastMode?[q,"onthrowupdate","onThrowUpdate"]:o&&o.radius?[!1,!0]:[]}),p.fastMode||(f&&(f._skip=!0),i.render(1e9,!0,!0),Ci(!0,!0),q.endX=q.x,q.endY=q.y,G&&(q.endRotation=q.x),i.play(0),Ci(!0,!0),f&&(f._skip=!1))):M&&q.applyBounds()}function Ji(e){var t,o=N;N=getGlobalMatrix(g.parentNode,!0),e&&q.isPressed&&!N.equals(o||new he)&&(t=o.inverse().apply({x:y,y:w}),N.apply(t,t),y=t.x,w=t.y),N.equals(i)&&(N=null)}function Ki(){var e,t,o,n=1-q.edgeResistance,i=ce?Ga(de):0,r=ce?Fa(de):0;W&&(le.x=Th(V,"px")+"px",le.y=Th(Q,"px")+"px",le.renderTransform()),Ji(!1),Ve.x=q.pointerX-i,Ve.y=q.pointerY-r,N&&N.apply(Ve,Ve),y=Ve.x,w=Ve.y,P&&(ge(q.pointerX,q.pointerY),Bi(!0)),d=getGlobalMatrix(g),f?(Fi(),k=f.top(),T=f.left()):(pe()?(Ci(!0,!0),Fi()):q.applyBounds(),G?(e=g.ownerSVGElement?[le.xOrigin-g.getBBox().x,le.yOrigin-g.getBBox().y]:(Na(g)[Be]||"0 0").split(" "),E=q.rotationOrigin=getGlobalMatrix(g).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),Ci(!0,!0),t=q.pointerX-E.x-i,o=E.y-q.pointerY+r,T=q.x,k=q.y=Math.atan2(o,t)*Ne):(k=Th(Q,"px"),T=Th(V,"px"))),M&&n&&(D<T?T=D+(T-D)/n:T<C&&(T=C-(C-T)/n),G||(S<k?k=S+(k-S)/n:k<A&&(k=A-(A-k)/n))),q.startX=T=da(T),q.startY=k=da(k)}function Mi(){!ye.parentNode||pe()||q.isDragging||ye.parentNode.removeChild(ye)}function Ni(e,t){var o;if(!u||q.isPressed||!e||!("mousedown"!==e.type&&"pointerdown"!==e.type||t)&&Ye()-se<30&&ke[q.pointerEvent.type])F&&e&&u&&Ba(e);else{if(R=pe(),z=!1,q.pointerEvent=e,ke[e.type]?(b=~e.type.indexOf("touch")?e.currentTarget||e.target:de,za(b,"touchend",fe),za(b,"touchmove",ue),za(b,"touchcancel",fe),za(de,"touchstart",Ea)):(b=null,za(de,"mousemove",ue)),I=null,Ae&&b||(za(de,"mouseup",fe),e&&e.target&&za(e.target,"mouseup",fe)),x=ae.call(q,e.target)&&!1===p.dragClickables&&!t)return za(e.target,"change",fe),Qa(q,"pressInit","onPressInit"),Qa(q,"press","onPress"),Wa(J,!0),void(F=!1);if(Y=!(!b||U==K||!1===q.vars.allowNativeTouchScrolling||q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(U?"y":"x"),(F=!Y&&!q.allowEventDefault)&&(Ba(e),za(ve,"touchforcechange",Ba)),e.changedTouches?(e=m=e.changedTouches[0],v=e.identifier):e.pointerId?v=e.pointerId:m=v=null,Le++,function _addToRenderQueue(e){Ie.push(e),1===Ie.length&&me.ticker.add(ua)}(Bi),w=q.pointerY=e.pageY,y=q.pointerX=e.pageX,Qa(q,"pressInit","onPressInit"),(Y||q.autoScroll)&&La(g.parentNode),!g.parentNode||!q.autoScroll||f||G||!g.parentNode._gsMaxScrollX||ye.parentNode||g.getBBox||(ye.style.width=g.parentNode.scrollWidth+"px",g.parentNode.appendChild(ye)),Ki(),q.tween&&q.tween.kill(),q.isThrowing=!1,me.killTweensOf(f||g,n,!0),f&&me.killTweensOf(g,{scrollTo:1},!0),q.tween=q.lockedAxis=null,!p.zIndexBoost&&(G||f||!1===p.zIndexBoost)||(g.style.zIndex=Draggable.zIndex++),q.isPressed=!0,h=!(!p.onDrag&&!q._listeners.drag),l=!(!p.onMove&&!q._listeners.move),!1!==p.cursor||p.activeCursor)for(o=J.length;-1<--o;)me.set(J[o],{cursor:p.activeCursor||p.cursor||("grab"===Se?"grabbing":Se)});Qa(q,"press","onPress")}}function Ri(e){if(e&&q.isDragging&&!f){var t=e.target||g.parentNode,o=t.scrollLeft-t._gsScrollX,n=t.scrollTop-t._gsScrollY;(o||n)&&(N?(y-=o*N.a+n*N.c,w-=n*N.d+o*N.b):(y-=o,w-=n),t._gsScrollX+=o,t._gsScrollY+=n,ge(q.pointerX,q.pointerY))}}function Si(e){var t=Ye(),o=t-se<100,n=t-ee<50,i=o&&O===se,r=q.pointerEvent&&q.pointerEvent.defaultPrevented,a=o&&c===se,s=e.isTrusted||null==e.isTrusted&&o&&i;if((i||n&&!1!==q.vars.suppressClickOnDrag)&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),o&&(!q.pointerEvent||!q.pointerEvent.defaultPrevented)&&(!i||s&&!a))return s&&i&&(c=se),void(O=se);(q.isPressed||n||o)&&(s&&e.detail&&o&&!r||Ba(e)),o||n||z||(e&&e.target&&(q.pointerEvent=e),Qa(q,"click","onClick"))}function Ti(e){return N?{x:e.x*N.a+e.y*N.c+N.e,y:e.x*N.b+e.y*N.d+N.f}:{x:e.x,y:e.y}}var u,f,y,w,T,k,M,h,l,D,C,S,A,m,v,E,P,t,L,B,X,x,b,N,R,Y,I,H,O,c,F,d,z,o=(p.type||"x,y").toLowerCase(),W=~o.indexOf("x")||~o.indexOf("y"),G=-1!==o.indexOf("rotation"),V=G?"rotation":W?"x":"left",Q=W?"y":"top",U=!(!~o.indexOf("x")&&!~o.indexOf("left")&&"scroll"!==o),K=!(!~o.indexOf("y")&&!~o.indexOf("top")&&"scroll"!==o),j=p.minimumMovement||2,q=_assertThisInitialized(e),J=_e(p.trigger||p.handle||g),n={},ee=0,te=!1,oe=p.autoScrollMarginTop||40,ne=p.autoScrollMarginRight||40,ie=p.autoScrollMarginBottom||40,re=p.autoScrollMarginLeft||40,ae=p.clickableTest||Va,se=0,le=g._gsap||me.core.getCache(g),ce=function _isFixed(e){return"fixed"===Na(e).position||((e=e.parentNode)&&1===e.nodeType?_isFixed(e):void 0)}(g),de=g.ownerDocument||xe,pe=function isTweening(){return q.tween&&q.tween.isActive()},ue=function onMove(e){var t,o,n,i,r,a,s=e;if(u&&!Me&&q.isPressed&&e){if(t=(q.pointerEvent=e).changedTouches){if((e=t[0])!==m&&e.identifier!==v){for(i=t.length;-1<--i&&(e=t[i]).identifier!==v&&e.target!==g;);if(i<0)return}}else if(e.pointerId&&v&&e.pointerId!==v)return;b&&Y&&!I&&(Ve.x=e.pageX-(ce?Ga(de):0),Ve.y=e.pageY-(ce?Fa(de):0),N&&N.apply(Ve,Ve),o=Ve.x,n=Ve.y,((r=Math.abs(o-y))!==(a=Math.abs(n-w))&&(j<r||j<a)||De&&Y===I)&&(I=a<r&&U?"x":"y",Y&&I!==Y&&za(ve,"touchforcechange",Ba),!1!==q.vars.lockAxisOnTouchScroll&&U&&K&&(q.lockedAxis="x"===I?"y":"x",Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,s)),De&&Y===I))?fe(s):(F=q.allowEventDefault||Y&&(!I||Y===I)||!1===s.cancelable?F&&!1:(Ba(s),!0),q.autoScroll&&(te=!0),ge(e.pageX,e.pageY,l))}else F&&e&&u&&Ba(e)},ge=function setPointerPosition(e,t,o){var n,i,r,a,s,l,c=1-q.dragResistance,d=1-q.edgeResistance,p=q.pointerX,u=q.pointerY,g=k,f=q.x,h=q.y,m=q.endX,v=q.endY,x=q.endRotation,b=P;q.pointerX=e,q.pointerY=t,ce&&(e-=Ga(de),t-=Fa(de)),G?(a=Math.atan2(E.y-t,e-E.x)*Ne,180<(s=q.y-a)?(k-=360,q.y=a):s<-180&&(k+=360,q.y=a),r=q.x!==T||Math.max(Math.abs(y-e),Math.abs(w-t))>j?(q.y=a,T+(k-a)*c):T):(N&&(l=e*N.a+t*N.c+N.e,t=e*N.b+t*N.d+N.f,e=l),(i=t-w)<j&&-j<i&&(i=0),(n=e-y)<j&&-j<n&&(n=0),(q.lockAxis||q.lockedAxis)&&(n||i)&&((l=q.lockedAxis)||(q.lockedAxis=l=U&&Math.abs(n)>Math.abs(i)?"y":K?"x":null,l&&Z(q.vars.onLockAxis)&&q.vars.onLockAxis.call(q,q.pointerEvent)),"y"===l?i=0:"x"===l&&(n=0)),r=da(T+n*c),a=da(k+i*c)),(L||B||X)&&(q.x!==r||q.y!==a&&!G)&&(X&&(ze.x=r,ze.y=a,l=X(ze),r=da(l.x),a=da(l.y)),L&&(r=da(L(r))),B&&(a=da(B(a)))),M&&(D<r?r=D+Math.round((r-D)*d):r<C&&(r=C+Math.round((r-C)*d)),G||(S<a?a=Math.round(S+(a-S)*d):a<A&&(a=Math.round(A+(a-A)*d)))),q.x===r&&(q.y===a||G)||(G?(q.endRotation=q.x=q.endX=r,P=!0):(K&&(q.y=q.endY=a,P=!0),U&&(q.x=q.endX=r,P=!0)),o&&!1===Qa(q,"move","onMove")?(q.pointerX=p,q.pointerY=u,k=g,q.x=f,q.y=h,q.endX=m,q.endY=v,q.endRotation=x,P=b):!q.isDragging&&q.isPressed&&(q.isDragging=z=!0,Qa(q,"dragstart","onDragStart")))},fe=function onRelease(e,t){if(u&&q.isPressed&&(!e||null==v||t||!(e.pointerId&&e.pointerId!==v&&e.target!==g||e.changedTouches&&!function _hasTouchID(e,t){for(var o=e.length;o--;)if(e[o].identifier===t)return!0}(e.changedTouches,v)))){q.isPressed=!1;var o,n,i,r,a,s=e,l=q.isDragging,c=q.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),d=me.delayedCall(.001,Mi);if(b?(Aa(b,"touchend",onRelease),Aa(b,"touchmove",ue),Aa(b,"touchcancel",onRelease),Aa(de,"touchstart",Ea)):Aa(de,"mousemove",ue),Aa(ve,"touchforcechange",Ba),Ae&&b||(Aa(de,"mouseup",onRelease),e&&e.target&&Aa(e.target,"mouseup",onRelease)),P=!1,l&&(ee=Fe=Ye(),q.isDragging=!1),xa(Bi),x&&!c)return e&&(Aa(e.target,"change",onRelease),q.pointerEvent=s),Wa(J,!1),Qa(q,"release","onRelease"),Qa(q,"click","onClick"),void(x=!1);for(n=J.length;-1<--n;)Ma(J[n],"cursor",p.cursor||(!1!==p.cursor?Se:null));if(Le--,e){if((o=e.changedTouches)&&(e=o[0])!==m&&e.identifier!==v){for(n=o.length;-1<--n&&(e=o[n]).identifier!==v&&e.target!==g;);if(n<0&&!t)return}q.pointerEvent=s,q.pointerX=e.pageX,q.pointerY=e.pageY}return c&&s?(Ba(s),F=!0,Qa(q,"release","onRelease")):s&&!l?(F=!1,R&&(p.snap||p.bounds)&&Ii(p.inertia||p.throwProps),Qa(q,"release","onRelease"),De&&"touchmove"===s.type||-1!==s.type.indexOf("cancel")||(Qa(q,"click","onClick"),Ye()-se<300&&Qa(q,"doubleclick","onDoubleClick"),r=s.target||g,se=Ye(),a=function syntheticClick(){se===O||!q.enabled()||q.isPressed||s.defaultPrevented||(r.click?r.click():de.createEvent&&((i=de.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,ve,1,q.pointerEvent.screenX,q.pointerEvent.screenY,q.pointerX,q.pointerY,!1,!1,!1,!1,0,null),r.dispatchEvent(i)))},De||s.defaultPrevented||me.delayedCall(.05,a))):(Ii(p.inertia||p.throwProps),q.allowEventDefault||!s||!1===p.dragClickables&&ae.call(q,s.target)||!l||Y&&(!I||Y!==I)||!1===s.cancelable?F=!1:(F=!0,Ba(s)),Qa(q,"release","onRelease")),pe()&&d.duration(q.tween.duration()),l&&Qa(q,"dragend","onDragEnd"),!0}F&&e&&u&&Ba(e)};return(t=Draggable.get(g))&&t.kill(),e.startDrag=function(e,t){var o,n,i,r;Ni(e||q.pointerEvent,!0),t&&!q.hitTest(e||q.pointerEvent)&&(o=Pa(e||q.pointerEvent),n=Pa(g),i=Ti({x:o.left+o.width/2,y:o.top+o.height/2}),r=Ti({x:n.left+n.width/2,y:n.top+n.height/2}),y-=i.x-r.x,w-=i.y-r.y),q.isDragging||(q.isDragging=z=!0,Qa(q,"dragstart","onDragStart"))},e.drag=ue,e.endDrag=function(e){return fe(e||q.pointerEvent,!0)},e.timeSinceDrag=function(){return q.isDragging?0:(Ye()-ee)/1e3},e.timeSinceClick=function(){return(Ye()-se)/1e3},e.hitTest=function(e,t){return Draggable.hitTest(q.target,e,t)},e.getDirection=function(e,t){var o,n,i,r,a,s,l="velocity"===e&&Ce?e:$(e)&&!G?"element":"start";return"element"===l&&(a=Pa(q.target),s=Pa(e)),o="start"===l?q.x-T:"velocity"===l?Ce.getVelocity(g,V):a.left+a.width/2-(s.left+s.width/2),G?o<0?"counter-clockwise":"clockwise":(t=t||2,n="start"===l?q.y-k:"velocity"===l?Ce.getVelocity(g,Q):a.top+a.height/2-(s.top+s.height/2),r=(i=Math.abs(o/n))<1/t?"":o<0?"left":"right",i<t&&(""!==r&&(r+="-"),r+=n<0?"up":"down"),r)},e.applyBounds=function(e,t){var o,n,i,r,a,s;if(e&&p.bounds!==e)return p.bounds=e,q.update(!0,t);if(Ci(!0),Fi(),M&&!pe()){if(o=q.x,n=q.y,D<o?o=D:o<C&&(o=C),S<n?n=S:n<A&&(n=A),(q.x!==o||q.y!==n)&&(i=!0,q.x=q.endX=o,G?q.endRotation=o:q.y=q.endY=n,Bi(P=!0),q.autoScroll&&!q.isDragging))for(La(g.parentNode),r=g,We.scrollTop=null!=ve.pageYOffset?ve.pageYOffset:null!=de.documentElement.scrollTop?de.documentElement.scrollTop:de.body.scrollTop,We.scrollLeft=null!=ve.pageXOffset?ve.pageXOffset:null!=de.documentElement.scrollLeft?de.documentElement.scrollLeft:de.body.scrollLeft;r&&!s;)a=(s=Ge(r.parentNode))?We:r.parentNode,K&&a.scrollTop>a._gsMaxScrollY&&(a.scrollTop=a._gsMaxScrollY),U&&a.scrollLeft>a._gsMaxScrollX&&(a.scrollLeft=a._gsMaxScrollX),r=a;q.isThrowing&&(i||q.endX>D||q.endX<C||q.endY>S||q.endY<A)&&Ii(p.inertia||p.throwProps,i)}return q},e.update=function(e,t,o){if(t&&q.isPressed){var n=getGlobalMatrix(g),i=d.apply({x:q.x-T,y:q.y-k}),r=getGlobalMatrix(g.parentNode,!0);r.apply({x:n.e-i.x,y:n.f-i.y},i),q.x-=i.x-r.e,q.y-=i.y-r.f,Bi(!0),Ki()}var a=q.x,s=q.y;return Ji(!t),e?q.applyBounds():(P&&o&&Bi(!0),Ci(!0)),t&&(ge(q.pointerX,q.pointerY),P&&Bi(!0)),q.isPressed&&!t&&(U&&.01<Math.abs(a-q.x)||K&&.01<Math.abs(s-q.y)&&!G)&&Ki(),q.autoScroll&&(La(g.parentNode,q.isDragging),te=q.isDragging,Bi(!0),Ia(g,Ri),Ha(g,Ri)),q},e.enable=function(e){var t,o,n,i={lazy:!0};if(!1!==p.cursor&&(i.cursor=p.cursor||Se),me.utils.checkPrefix("touchCallout")&&(i.touchCallout="none"),"soft"!==e){for(ta(J,U==K?"none":p.allowNativeTouchScrolling&&g.scrollHeight===g.clientHeight==(g.scrollWidth===g.clientHeight)||p.allowEventDefault?"manipulation":U?"pan-y":"pan-x"),o=J.length;-1<--o;)n=J[o],Ae||za(n,"mousedown",Ni),za(n,"touchstart",Ni),za(n,"click",Si,!0),me.set(n,i),n.getBBox&&n.ownerSVGElement&&U!=K&&me.set(n.ownerSVGElement,{touchAction:p.allowNativeTouchScrolling||p.allowEventDefault?"manipulation":U?"pan-y":"pan-x"}),p.allowContextMenu||za(n,"contextmenu",Ai);Wa(J,!1)}return Ha(g,Ri),u=!0,Ce&&"soft"!==e&&Ce.track(f||g,W?"x,y":G?"rotation":"top,left"),g._gsDragID=t=g._gsDragID||"d"+Oe++,He[t]=q,f&&(f.enable(),f.element._gsDragID=t),(p.bounds||G)&&Ki(),p.bounds&&q.applyBounds(),q},e.disable=function(e){for(var t,o=q.isDragging,n=J.length;-1<--n;)Ma(J[n],"cursor",null);if("soft"!==e){for(ta(J,null),n=J.length;-1<--n;)t=J[n],Ma(t,"touchCallout",null),Aa(t,"mousedown",Ni),Aa(t,"touchstart",Ni),Aa(t,"click",Si,!0),Aa(t,"contextmenu",Ai);Wa(J,!0),b&&(Aa(b,"touchcancel",fe),Aa(b,"touchend",fe),Aa(b,"touchmove",ue)),Aa(de,"mouseup",fe),Aa(de,"mousemove",ue)}return Ia(g,Ri),u=!1,Ce&&"soft"!==e&&(Ce.untrack(f||g,W?"x,y":G?"rotation":"top,left"),q.tween&&q.tween.kill()),f&&f.disable(),xa(Bi),q.isDragging=q.isPressed=x=!1,o&&Qa(q,"dragend","onDragEnd"),q},e.enabled=function(e,t){return arguments.length?e?q.enable(t):q.disable(t):u},e.kill=function(){return q.isThrowing=!1,q.tween&&q.tween.kill(),q.disable(),me.set(J,{clearProps:"userSelect"}),delete He[g._gsDragID],q},e.revert=function(){this.kill(),this.styles&&this.styles.revert()},~o.indexOf("scroll")&&(f=e.scrollProxy=new $a(g,function _extend(e,t){for(var o in t)o in e||(e[o]=t[o]);return e}({onKill:function onKill(){q.isPressed&&fe(null)}},p)),g.style.overflowY=K&&!Te?"auto":"hidden",g.style.overflowX=U&&!Te?"auto":"hidden",g=f.content),G?n.rotation=1:(U&&(n[V]=1),K&&(n[Q]=1)),le.force3D=!("force3D"in p)||p.force3D,Ee(_assertThisInitialized(e)),e.enable(),e}!function _setDefaults(e,t){for(var o in t)o in e||(e[o]=t[o])}(V.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),V.zIndex=1e3,V.version="3.13.0",Y()&&me.registerPlugin(V);function sb(){return"undefined"!=typeof window}function tb(){return Q||sb()&&(Q=window.gsap)&&Q.registerPlugin&&Q}function ub(e){return"string"==typeof e}function vb(e){return"function"==typeof e}function xb(e){return void 0===e}function Ab(){return String.fromCharCode.apply(null,arguments)}function Lb(e,t,o){var n=K.createElementNS?K.createElementNS("svg"===e?de:pe,e):K.createElement(e);return t&&(ub(t)&&(t=K.querySelector(t)),t.appendChild(n)),"svg"===e&&(n.setAttribute("xmlns",de),n.setAttribute("xmlns:xlink",pe)),o&&(n.style.cssText=o),n}function Mb(){K.selection?K.selection.empty():O.getSelection&&O.getSelection().removeAllRanges()}function Ob(e,t){var o=0,n=Math.max(0,e._repeat),i=e._first;for(i||(o=e.duration());i;)o=Math.max(o,999<i.totalDuration()?i.endTime(!1):i._start+i._tDur/i._ts),i=i._next;return!t&&n?o*(n+1)+e._rDelay*n:o}function Qb(e,t,o,n){var i,r,a;return ub(e)&&("="===e.charAt(1)?((i=parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)))<0&&0===n&&(n=100),e=n/100*t.duration()+i):isNaN(e)&&t.labels&&-1!==t.labels[e]?e=t.labels[e]:t===q&&(0<(r=e.indexOf("="))?(i=parseInt(e.charAt(r-1)+"1",10)*parseFloat(e.substr(r+1)),e=e.substr(0,r-1)):i=0,(a=Q.getById(e))&&(e=function _globalizeTime(e,t){for(var o=e,n=1<arguments.length?+t:o.rawTime();o;)n=o._start+n/(o._ts||1),o=o.parent;return n}(a,o/100*a.duration())+i))),e=isNaN(e)?o:parseFloat(e),Math.min(100,Math.max(0,e/t.duration()*100))}function Ub(t,e,o,n){var i,r;if("mousedown"!==e&&"mouseup"!==e||(t.style.cursor="pointer"),"mousedown"===e&&(r=xb(t.onpointerdown)?xb(t.ontouchstart)?null:"touchstart":"pointerdown"))return i=function handler(e){"select"!==e.target.nodeName.toLowerCase()&&e.type===r?(e.stopPropagation(),Ue&&(e.preventDefault(),o.call(t,e))):e.type!==r&&o.call(t,e),Ue=!0},t.addEventListener(r,i,n),void("pointerdown"!==r&&t.addEventListener(e,i,n));t.addEventListener(e,o,n)}function Vb(e,t,o){e.removeEventListener(t,o),(t="mousedown"!==t?null:xb(e.onpointerdown)?xb(e.ontouchstart)?null:"touchstart":"pointerdown")&&e.removeEventListener(t,o)}function Wb(e,t,o,n){var i,r=e.options,a=r.length;for(t+="";-1<--a;)if(r[a].innerHTML===t||r[a].value===t)return e.selectedIndex=a,o.innerHTML=r[a].innerHTML,r[a];n&&((i=Lb("option",e)).setAttribute("value",t),i.innerHTML=o.innerHTML=ub(n)?n:t,e.selectedIndex=r.length-1)}function Xb(e,t,o){var n=e.options,i=Math.min(n.length-1,Math.max(0,e.selectedIndex+t));return e.selectedIndex=i,o&&(o.innerHTML=n[i].innerHTML),n[i].value}function Yb(){var e,t,o,n=F._first;if(te){for(e=q._dur;n;)t=n._next,o=n._targets&&n._targets[0],vb(o)&&o===n.vars.onComplete&&!n._dur||o&&o._gsIgnore||q.add(n,n._start-n._delay),n=t;return e!==q.duration()}}function _b(e){return Q.getById(e)||ne.getById(e)||e===q.vars.id&&q}function ac(e){Q=e||tb(),U||Q&&sb()&&(K=document,j=K.documentElement,O=window,re=Q.core.context||function(){},Q.registerPlugin(V),(F=Q.globalTimeline)._sort=!0,F.autoRemoveChildren=!1,J=Q.core.Animation,(ne=Q.timeline({data:"indy",autoRemoveChildren:!0,smoothChildTiming:!0})).kill(),ne._dp=0,ne.to({},{duration:1e12}),q=Q.timeline({data:"root",id:"Global Timeline",autoRemoveChildren:!1,smoothChildTiming:!0,parent:ne},0),ee=Q.to(q,{duration:1,time:1,ease:"none",data:"root",id:"_rootTween",paused:!0,immediateRender:!1,parent:ne},0),F.killTweensOf=function(e,t,o){q.killTweensOf(e,t,o),q.killTweensOf.call(F,e,t,o)},ne._start=Q.ticker.time,Q.ticker.add(function(e){return ne.render(e-ne._start)}),F._start+=F._time,q._start=F._time=F._tTime=0,(ie=function _delayedCall(e,t,o,n){return Q.to(t,{delay:e,duration:0,onComplete:t,onReverseComplete:t,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:n,parent:ne},ne._time)})(.01,function(){return te?te.update():Yb()}),ie(2,function(){var e,t,o;if(!te)for(Yb(),e=q._first,o=q._start;e;)t=e._next,e._tDur!==e._tTime||!e._dur&&1!==e.progress()?F.add(e,e._start-e._delay+o):e.kill(),e=t;2<Ze.globalRecordingTime?ie(Ze.globalRecordingTime-2,function(){te&&te.update(),F.autoRemoveChildren=!0}):F.autoRemoveChildren=!0,se=!1}),U=1)}function bc(e,t){t.globalSync||e.parent===F||F.add(e,F.time())}var Q,U,K,j,O,q,J,ee,te,oe,F,ne,ie,re,ae,se=!0,le=0,z="GSDevTools",W=Ab(103,114,101,101,110,115,111,99,107,46,99,111,109),G=Ab(103,115,97,112,46,99,111,109),ce=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}:?\d*$/,de=(function(e){var t="undefined"!=typeof window,o=0===(t?window.location.href:"").indexOf(Ab(102,105,108,101,58,47,47))||-1!==e.indexOf(Ab(108,111,99,97,108,104,111,115,116))||ce.test(e)||(t?window.location.hostname:"").split(".").pop()===Ab(108,111,99,97,108),n=[W,G,Ab(99,111,100,101,112,101,110,46,105,111),Ab(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),Ab(99,111,100,101,112,101,110,46,100,101,118),Ab(99,111,100,101,112,101,110,46,97,112,112),Ab(99,111,100,101,112,101,110,46,119,101,98,115,105,116,101),Ab(112,101,110,115,46,99,108,111,117,100),Ab(99,115,115,45,116,114,105,99,107,115,46,99,111,109),Ab(99,100,112,110,46,105,111),Ab(112,101,110,115,46,105,111),Ab(103,97,110,110,111,110,46,116,118),Ab(99,111,100,101,99,97,110,121,111,110,46,110,101,116),Ab(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),Ab(99,101,114,101,98,114,97,120,46,99,111,46,117,107),Ab(116,121,109,112,97,110,117,115,46,110,101,116),Ab(116,119,101,101,110,109,97,120,46,99,111,109),Ab(112,108,110,107,114,46,99,111),Ab(104,111,116,106,97,114,46,99,111,109),Ab(119,101,98,112,97,99,107,98,105,110,46,99,111,109),Ab(97,114,99,104,105,118,101,46,111,114,103),Ab(99,111,100,101,115,97,110,100,98,111,120,46,105,111),Ab(99,115,98,46,97,112,112),Ab(115,116,97,99,107,98,108,105,116,122,46,99,111,109),Ab(115,116,97,99,107,98,108,105,116,122,46,105,111),Ab(99,111,100,105,101,114,46,105,111),Ab(109,111,116,105,111,110,116,114,105,99,107,115,46,99,111,109),Ab(115,116,97,99,107,111,118,101,114,102,108,111,119,46,99,111,109),Ab(115,116,97,99,107,101,120,99,104,97,110,103,101,46,99,111,109),Ab(115,116,117,100,105,111,102,114,101,105,103,104,116,46,99,111,109),Ab(119,101,98,99,111,110,116,97,105,110,101,114,46,105,111),Ab(106,115,102,105,100,100,108,101,46,110,101,116)],i=n.length;for(setTimeout(function checkWarn(){if(t)if("loading"===document.readyState||"interactive"===document.readyState)document.addEventListener("readystatechange",checkWarn);else{document.removeEventListener("readystatechange",checkWarn);var e="object"==typeof Q?Q:t&&window.gsap;t&&window.console&&!window._gsapWarned&&"object"==typeof e&&!1!==e.config().trialWarn&&(console.log(Ab(37,99,87,97,114,110,105,110,103),Ab(102,111,110,116,45,115,105,122,101,58,51,48,112,120,59,99,111,108,111,114,58,114,101,100,59)),console.log(Ab(65,32,116,114,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+z+Ab(32,105,115,32,108,111,97,100,101,100,32,116,104,97,116,32,111,110,108,121,32,119,111,114,107,115,32,108,111,99,97,108,108,121,32,97,110,100,32,111,110,32,100,111,109,97,105,110,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,32,97,110,100,32,99,111,100,101,115,97,110,100,98,111,120,46,105,111,46,32,42,42,42,32,68,79,32,78,79,84,32,68,69,80,76,79,89,32,84,72,73,83,32,70,73,76,69,32,42,42,42,32,76,111,97,100,105,110,103,32,105,116,32,111,110,32,97,110,32,117,110,97,117,116,104,111,114,105,122,101,100,32,115,105,116,101,32,118,105,111,108,97,116,101,115,32,116,104,101,32,108,105,99,101,110,115,101,32,97,110,100,32,119,105,108,108,32,99,97,117,115,101,32,97,32,114,101,100,105,114,101,99,116,46,32,80,108,101,97,115,101,32,106,111,105,110,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,32,116,111,32,103,101,116,32,102,117,108,108,32,97,99,99,101,115,115,32,116,111,32,116,104,101,32,98,111,110,117,115,32,112,108,117,103,105,110,115,32,116,104,97,116,32,98,111,111,115,116,32,121,111,117,114,32,97,110,105,109,97,116,105,111,110,32,115,117,112,101,114,112,111,119,101,114,115,46,32,68,105,115,97,98,108,101,32,116,104,105,115,32,119,97,114,110,105,110,103,32,119,105,116,104,32,103,115,97,112,46,99,111,110,102,105,103,40,123,116,114,105,97,108,87,97,114,110,58,32,102,97,108,115,101,125,41,59)),console.log(Ab(37,99,71,101,116,32,117,110,114,101,115,116,114,105,99,116,101,100,32,102,105,108,101,115,32,97,116,32,104,116,116,112,115,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98),Ab(102,111,110,116,45,115,105,122,101,58,49,54,112,120,59,99,111,108,111,114,58,35,52,101,57,56,49,53)),window._gsapWarned=1)}},50);-1<--i;)if(-1!==e.indexOf(n[i]))return;o||setTimeout(function(){t&&(window.location.href=Ab(104,116,116,112,115,58,47,47)+W+Ab(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47)+"?plugin="+z+"&source=trial")},4e3)}("undefined"!=typeof window?window.location.host:""),"http://www.w3.org/2000/svg"),pe="http://www.w3.org/1999/xhtml",ue=0,ge={},fe=function(){try{return sessionStorage.setItem("gsTest","1"),sessionStorage.removeItem("gsTest"),!0}catch(e){return!1}}(),Ue=!0,Ze=function GSDevTools(r){U||(ac(),Q||console.warn("Please gsap.registerPlugin(GSDevTools)")),this.vars=r=r||{},r.animation&&(GSDevTools.getByAnimation(r.animation)||{kill:function kill(){return 0}}).kill(),r.id=r.id||(ub(r.animation)?r.animation:ue++),ge[r.id+""]=this,"globalSync"in r||(r.globalSync=!r.animation);function mo(e){return n.querySelector(e)}function no(e,t){return!1!==r.persist&&fe&&sessionStorage.setItem("gs-dev-"+e+r.id,t),t}function oo(e){var t;if(!1!==r.persist&&fe)return t=sessionStorage.getItem("gs-dev-"+e+r.id),"animation"===e?t:"loop"===e?"true"===t:parseFloat(t)}function Vo(c,d,p){return function(e){var t,o=b.getBoundingClientRect(),n=c.getBoundingClientRect(),i=n.width*d,r=Q.getProperty(c,"x"),a=o.left-n.left-i+r,s=o.right-n.right+(n.width-i)+r,l=a;p&&(c!==k&&(t=k.getBoundingClientRect()).left&&(a+=t.left+t.width-o.left),c!==M&&(t=M.getBoundingClientRect()).left&&(s-=o.left+o.width-t.left)),m=E,this.applyBounds({minX:a,maxX:s}),u=v.duration()/o.width,g=-l*u,h?v.pause():v.pause(g+u*this.x),this.target===x&&(this.activated&&(this.allowEventDefault=!1),this.activated=!0),f=!0}}function Xo(){D=0,C=100,k.style.left="0%",M.style.left="100%",no("in",D),no("out",C),I(!0)}function _o(e){if(!N.isPressed){var t=e.target.getBoundingClientRect(),o=((e.changedTouches?e.changedTouches[0]:e).clientX-t.left)/t.width*100;if(o<D)return D=o=Math.max(0,o),k.style.left=D+"%",void R.startDrag(e);if(C<o)return C=o=Math.min(100,o),M.style.left=C+"%",void Y.startDrag(e);v.progress(o/100).pause(),I(!0),N.startDrag(e)}}function dp(){if(!N.isPressed){bc(v,r);var e=v._targets&&v._targets[0];e===i&&e.seek(s+(l-s)*D/100),v.progress(D/100,!0),E||v.resume()}}function ep(e){if(no("loop",d=e),d){if(L.play(),v.progress()>=C/100){var t=v._targets&&v._targets[0];t===i&&t.seek(s+(l-s)*D/100),i._repeat&&!D&&100===C?v.totalProgress(0,!0):v.progress(D/100,!0),H()}}else L.reverse()}function fp(){return ep(!d)}function gp(){var e,t,o=function _getChildrenOf(e,t){for(var o=[],n=0,i=Q.core.Tween,r=e._first;r;)r instanceof i?r.vars.id&&(o[n++]=r):(t&&r.vars.id&&(o[n++]=r),n=(o=o.concat(_getChildrenOf(r,t))).length),r=r._next;return o}(a&&!r.globalSync?a:q,!0),n=S.children,i=0;for(a&&!r.globalSync?o.unshift(a):r.hideGlobalTimeline||o.unshift(q),t=0;t<o.length;t++)(e=n[t]||Lb("option",S)).animation=o[t],i=t&&o[t].vars.id===o[t-1].vars.id?i+1:0,e.setAttribute("value",e.innerHTML=o[t].vars.id+(i?" ["+i+"]":o[t+1]&&o[t+1].vars.id===o[t].vars.id?" [0]":""));for(;t<n.length;t++)S.removeChild(n[t])}function hp(e){var t,o,n=parseFloat(B.options[B.selectedIndex].value)||1;if(!arguments.length)return i;if(ub(e)&&(e=_b(e)),e instanceof J||console.warn("GSDevTools error: invalid animation."),e.scrollTrigger&&console.warn("GSDevTools can't work with ScrollTrigger-based animations; either the scrollbar -OR- the GSDevTools scrubber can control the animation."),e!==i){if(i&&(i._inProgress=D,i._outProgress=C),i=e,v&&(n=v.timeScale(),v._targets&&v._targets[0]===a&&(a.resume(),v.kill())),D=i._inProgress||0,C=i._outProgress||100,k.style.left=D+"%",M.style.left=C+"%",c&&(no("animation",i.vars.id),no("in",D),no("out",C)),s=0,o=r.maxDuration||Math.min(1e3,Ob(i)),i===q||r.globalSync){if(Yb(),v=ee,te&&te!==p&&console.warn("Error: GSDevTools can only have one instance that's globally synchronized."),te=p,i!==q)for(99999999<(l=(t=i).totalDuration())&&(l=t.duration());t.parent;)s=s/t._ts+t._start,l=l/t._ts+t._start,t=t.parent;else l=q.duration();o<l-s&&(l=s+o),q.pause(s),ee.vars.time=l,ee.invalidate(),ee.duration(l-s).timeScale(n),E?ee.progress(1,!0).pause(0,!0):ie(.01,function(){ee.resume().progress(D/100),E&&H()})}else{if(te===p&&(te=null),s=Math.min(D*i.duration(),i.time()),i!==a&&a){for(99999999<(l=(t=i).totalDuration())&&(l=t.duration());t.parent.parent&&t!==a;)s=s/(t._ts||t._pauseTS)+t._start,l=l/(t._ts||t._pauseTS)+t._start,t=t.parent;o<l-s&&(l=s+o),a.pause(s),v=Q.to(a,{duration:l-s,time:l,ease:"none",data:"root",parent:ne},ne._time)}else v=i,!d&&v._repeat&&ep(!0);v.timeScale(n),ee.pause(),q.resume(),v.seek(0)}_.innerHTML=v.duration().toFixed(2),Wb(S,i.vars.id,A)}}function jp(e){hp(S.options[S.selectedIndex].animation),e.target&&e.target.blur&&e.target.blur(),E&&H()}function kp(){var e,t=parseFloat(B.options[B.selectedIndex].value)||1;v.timeScale(t),no("timeScale",t),E||(v.progress()>=C/100?((e=v._targets&&v._targets[0])===i&&e.seek(s+(l-s)*D/100),v.progress(D/100,!0).pause()):v.pause(),ie(.01,function(){return v.resume()})),X.innerHTML=t+"x",B.blur&&B.blur()}function np(e){V.hitTest(e,n)||N.isDragging||R.isDragging||Y.isDragging||G.restart(!0)}function op(){W||(z.play(),G.pause(),W=!0)}function pp(){G.pause(),W&&(z.reverse(),W=!1)}function sp(e){se&&!le&&(le=q._start),c=!e,(a=function _parseAnimation(e){return e instanceof J?e:e?Q.getById(e):null}(r.animation))&&!a.vars.id&&(a.vars.id="[no id]"),Yb(),gp();var t=_b(oo("animation"));t&&(t._inProgress=oo("in")||0,t._outProgress=oo("out")||100),r.paused&&O(),i=null,hp(a||t||q);var o=r.timeScale||oo("timeScale"),n=t===i;o&&(Wb(B,o,X,o+"x"),v.timeScale(o)),100===(D=("inTime"in r?Qb(r.inTime,i,0,0):n?t._inProgress:0)||0)&&!r.animation&&t&&(hp(q),D=Qb(r.inTime,i,0,0)||0),D&&(k.style.left=D+"%",k.style.display=M.style.display="block"),(C=("outTime"in r?Qb(r.outTime,i,100,D):n?t._outProgress:0)||100)<D&&(C=100),100!==C&&(M.style.left=C+"%",k.style.display=M.style.display="block"),(d="loop"in r?r.loop:oo("loop"))&&ep(!0),r.paused&&v.progress(D/100,!0).pause(),se&&i===q&&le&&r.globalSync&&!E&&v.time(-le,!0),I(!0)}var u,g,f,h,m,i,v,a,s,l,c,e,d,p=this,n=fu