PageSourceSearch

https://rivella-group.com/wp-content/themes/uswisi/dist/assets/script-eae8e4ba.js

js rivella-group.com collected 2026-10-02 21:38:41 UTC 38,154 bytes, 9 lines download raw bytes

vendor: 4,617 bytes, lines 1-9
1import{g as At}from"./index-7d9a9c74.js";import{b as ni,c as ri,r as li}from"./helpers-9b420e64.js";/*!
2 * matrix 3.12.5
3 * https://gsap.com
4 *
5 * Copyright 2008-2024, GreenSock. All rights reserved.
6 * Subject to the terms at https://gsap.com/standard-license or for
7 * Club GSAP members, the agreement issued with that membership.
8 * @author: Jack Doyle, [email protected]
9*/var St,Wt,Ge,Se,re,ve,Te,fe,gt="transform",Fe=gt+"Origin",wi,mi=function(t){var o=t.ownerDocument||t;for(!(gt in t.style)&&("msTransform"in t.style)&&(gt="msTransform",Fe=gt+"Origin");o.parentNode&&(o=o.parentNode););if(Wt=window,Te=new $t,o){St=o,Ge=o.documentElement,Se=o.body,fe=St.createElementNS("http://www.w3.org/2000/svg","g"),fe.style.transform="none";var i=o.createElement("div"),r=o.createElement("div"),s=o&&(o.body||o.firstElementChild);s&&s.appendChild&&(s.appendChild(i),i.appendChild(r),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),wi=r.offsetParent!==i,s.removeChild(i))}return o},Ni=function(t){for(var o,i;t&&t!==Se;)i=t._gsap,i&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),o?o.push(i):o=[i]),t=t.parentNode;return o},vi=[],_i=[],Xi=function(){return Wt.pageYOffset||St.scrollTop||Ge.scrollTop||Se.scrollTop||0},Yi=function(){return Wt.pageXOffset||St.scrollLeft||Ge.scrollLeft||Se.scrollLeft||0},Qe=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},Oi=function d(t){if(Wt.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return d(t)},Ne=function d(t,o){if(t.parentNode&&(St||mi(t))){var i=Qe(t),r=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=i?o?"rect":"g":"div",c=o!==2?0:100,a=o===3?100:0,p="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=St.createElementNS?St.createElementNS(r.replace(/^https/,"http"),s):St.createElement(s);return o&&(i?(ve||(ve=d(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+c+","+a+")"),ve.appendChild(u)):(re||(re=d(t),re.style.cssText=p),u.style.cssText=p+"width:0.1px;height:0.1px;top:"+a+"px;left:"+c+"px",re.appendChild(u))),u}throw"Need document and parent."},Bi=function(t){for(var o=new $t,i=0;i<t.numberOfItems;i++)o.multiply(t.getItem(i).matrix);return o},Ai=function(t){var o=t.getCTM(),i;return o||(i=t.style[gt],t.style[gt]="none",t.appendChild(fe),o=fe.getCTM(),t.removeChild(fe),i?t.style[gt]=i:t.style.removeProperty(gt.replace(/([A-Z])/g,"-$1").toLowerCase())),o||Te.clone()},Ii=function(t,o){var i=Qe(t),r=t===i,s=i?vi:_i,c=t.parentNode,a,p,u,y,_,T;if(t===Wt)return t;if(s.length||s.push(Ne(t,1),Ne(t,2),Ne(t,3)),a=i?ve:re,i)r?(u=Ai(t),y=-u.e/u.a,_=-u.f/u.d,p=Te):t.getBBox?(u=t.getBBox(),p=t.transform?t.transform.baseVal:{},p=p.numberOfItems?p.numberOfItems>1?Bi(p):p.getItem(0).matrix:Te,y=p.a*u.x+p.c*u.y,_=p.b*u.x+p.d*u.y):(p=new $t,y=_=0),o&&t.tagName.toLowerCase()==="g"&&(y=_=0),(r?i:c).appendChild(a),a.setAttribute("transform","matrix("+p.a+","+p.b+","+p.c+","+p.d+","+(p.e+y)+","+(p.f+_)+")");else{if(y=_=0,wi)for(p=t.offsetParent,u=t;u&&(u=u.parentNode)&&u!==p&&u.parentNode;)(Wt.getComputedStyle(u)[gt]+"").length>4&&(y=u.offsetLeft,_=u.offsetTop,u=0);if(T=Wt.getComputedStyle(t),T.position!=="absolute"&&T.position!=="fixed")for(p=t.offsetParent;c&&c!==p;)y+=c.scrollLeft||0,_+=c.scrollTop||0,c=c.parentNode;u=a.style,u.top=t.offsetTop-_+"px",u.left=t.offsetLeft-y+"px",u[gt]=T[gt],u[Fe]=T[Fe],u.position=T.position==="fixed"?"fixed":"absolute",t.parentNode.appendChild(a)}return a},Xe=function(t,o,i,r,s,c,a){return t.a=o,t.b=i,t.c=r,t.d=s,t.e=c,t.f=a,t},$t=function(){function d(o,i,r,s,c,a){o===void 0&&(o=1),i===void 0&&(i=0),r===void 0&&(r=0),s===void 0&&(s=1),c===void 0&&(c=0),a===void 0&&(a=0),Xe(this,o,i,r,s,c,a)}var t=d.prototype;return t.inverse=function(){var i=this.a,r=this.b,s=this.c,c=this.d,a=this.e,p=this.f,u=i*c-r*s||1e-10;return Xe(this,c/u,-r/u,-s/u,i/u,(s*p-c*a)/u,-(i*p-r*a)/u)},t.multiply=function(i){var r=this.a,s=this.b,c=this.c,a=this.d,p=this.e,u=this.f,y=i.a,_=i.c,T=i.b,e=i.d,b=i.e,L=i.f;return Xe(this,y*r+T*c,y*s+T*a,_*r+e*c,_*s+e*a,p+b*r+L*c,u+b*s+L*a)},t.clone=function(){return new d(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(i){var r=this.a,s=this.b,c=this.c,a=this.d,p=this.e,u=this.f;return r===i.a&&s===i.b&&c===i.c&&a===i.d&&p===i.e&&u===i.f},t.apply=function(i,r){r===void 0&&(r={});var s=i.x,c=i.y,a=this.a,p=this.b,u=this.c,y=this.d,_=this.e,T=this.f;return r.x=s*a+c*u+_||0,r.y=s*p+c*y+T||0,r},d}();
9function Ht(d,t,o,i){if(!d||!d.parentNode||(St||mi(d)).documentElement===d)return new $t;var r=Ni(d),s=Qe(d),c=s?vi:_i,a=Ii(d,o),p=c[0].getBoundingClientRect(),u=c[1].getBoundingClientRect(),y=c[2].getBoundingClientRect(),_=a.parentNode,T=!i&&Oi(d),e=new $t((u.left-p.left)/100,(u.top-p.top)/100,(y.left-p.left)/100,(y.top-p.top)/100,p.left+(T?0:Yi()),p.top+(T?0:Xi()));if(_.removeChild(a),r)for(p=r.length;p--;)u=r[p],u.scaleX=u.scaleY=0,u.renderTransform(1,u);return t?e.inverse():e}function si(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Fi(d,t){d.prototype=Object.create(t.prototype),d.prototype.constructor=d,d.__proto__=t}var M,B,nt,xt,Dt,Ye,Et,He,le,Nt,bi,We,ue,Ke,se,ht,ae,_e,Ti,ze,Ee=0,Ei=function(){return typeof window<"u"},Si=function(){return M||Ei()&&(M=window.gsap)&&M.registerPlugin&&M},Rt=function(t){return typeof t=="function"},ce=function(t){return typeof t=="object"},pt=function(t){return typeof t>"u"},be=function(){return!1},de="transform",$e="transformOrigin",Lt=function(t){return Math.round(t*1e4)/1e4},ne=Array.isArray,we=function(t,o){var i=nt.createElementNS?nt.createElementNS((o||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):nt.createElement(t);return i.style?i:nt.createElement(t)},ai=180/Math.PI,It=1e20,Hi=new $t,kt=Date.now||function(){return new Date().getTime()},zt=[],Kt={},Wi=0,zi=/^(?:a|input|textarea|button|select)$/i,fi=0,Gt={},Tt={},Di=function(t,o){var i={},r;for(r in t)i[r]=o?t[r]*o:t[r];return i},$i=function(t,o){for(var i in o)i in t||(t[i]=o[i]);return t},ci=function d(t,o){for(var i=t.length,r;i--;)o?t[i].style.touchAction=o:t[i].style.removeProperty("touch-action"),r=t[i].children,r&&r.length&&d(r,o)},Mi=function(){return zt.forEach(function(t){return t()})},Vi=function(t){zt.push(t),zt.length===1&&M.ticker.add(Mi)},di=function(){return!zt.length&&M.ticker.remove(Mi)},ui=function(t){for(var o=zt.length;o--;)zt[o]===t&&zt.splice(o,1);M.to(di,{overwrite:!0,delay:15,duration:0,onComplete:di,data:"_draggable"})},Gi=function(t,o){for(var i in o)i in t||(t[i]=o[i]);return t},q=function(t,o,i,r){if(t.addEventListener){var s=ue[o];r=r||(bi?{passive:!1}:null),t.addEventListener(s||o,i,r),s&&o!==s&&t.addEventListener(o,i,r)}},K=function(t,o,i,r){if(t.removeEventListener){var s=ue[o];t.removeEventListener(s||o,i,r),s&&o!==s&&t.removeEventListener(o,i,r)}},at=function(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()},Qi=function(t,o){for(var i=t.length;i--;)if(t[i].identifier===o)return!0},Ki=function d(t){Ke=t.touches&&Ee<t.touches.length,K(t.target,"touchend",d)},hi=function(t){Ke=t.touches&&Ee<t.touches.length,q(t.target,"touchend",Ki)},Ut=function(t){return B.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0},qt=function(t){return B.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0},pi=function d(t,o){q(t,"scroll",o),Zt(t.parentNode)||d(t.parentNode,o)},gi=function d(t,o){K(t,"scroll",o),Zt(t.parentNode)||d(t.parentNode,o)},Zt=function(t){return!t||t===xt||t.nodeType===9||t===nt.body||t===B||!t.nodeType||!t.parentNode},xi=function(t,o){var i=o==="x"?"Width":"Height",r="scroll"+i,s="client"+i;return Math.max(0,Zt(t)?Math.max(xt[r],Dt[r])-(B["inner"+i]||xt[s]||Dt[s]):t[r]-t[s])},Oe=function d(t,o){var i=xi(t,"x"),r=xi(t,"y");Zt(t)?t=Tt:d(t.parentNode,o),t._gsMaxScrollX=i,t._gsMaxScrollY=r,o||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)},Be=function(t,o,i){var r=t.style;r&&(pt(r[o])&&(o=le(o,t)||o),i==null?r.removeProperty&&r.removeProperty(o.replace(/([A-Z])/g,"-$1").toLowerCase()):r[o]=i)},he=function(t){return B.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)},Ft={},Qt=function(t){if(t===B)return Ft.left=Ft.top=0,Ft.width=Ft.right=xt.clientWidth||t.innerWidth||Dt.clientWidth||0,Ft.height=Ft.bottom=(t.innerHeight||0)-20<xt.clientHeight?xt.clientHeight:t.innerHeight||Dt.clientHeight||0,Ft;var o=t.ownerDocument||nt,i=pt(t.pageX)?!t.nodeType&&!pt(t.left)&&!pt(t.top)?t:Nt(t)[0].getBoundingClientRect():{left:t.pageX-qt(o),top:t.pageY-Ut(o),right:t.pageX-qt(o)+1,bottom:t.pageY-Ut(o)+1};return pt(i.right)&&!pt(i.width)?(i.right=i.left+i.width,i.bottom=i.top+i.height):pt(i.width)&&(i={width:i.right-i.left,height:i.bottom-i.top,right:i.right,left:i.left,bottom:i.bottom,top:i.top}),i},$=function(t,o,i){var r=t.vars,s=r[i],c=t._listeners[o],a;return Rt(s)&&(a=s.apply(r.callbackScope||t,r[i+"Params"]||[t.pointerEvent])),c&&t.dispatchEvent(o)===!1&&(a=!1),a},yi=function(t,o){var i=Nt(t)[0],r,s,c;return!i.nodeType&&i!==B?pt(t.left)?(s=t.min||t.minX||t.minRotation||0,r=t.min||t.minY||0,{left:s,top:r,width:(t.max||t.maxX||t.maxRotation||0)-s,height:(t.max||t.maxY||0)-r}):(c={x:0,y:0},{left:t.left-c.x,top:t.top-c.y,width:t.width,height:t.height}):Ui(i,o)},ft={},Ui=function(t,o){o=Nt(o)[0];var i=t.getBBox&&t.ownerSVGElement,r=t.ownerDocument||nt,s,c,a,p,u,y,_,T,e,b,L,w,D;if(t===B)a=Ut(r),s=qt(r),c=s+(r.documentElement.clientWidth||t.innerWidth||r.body.clientWidth||0),p=a+((t.innerHe
9ight||0)-20<r.documentElement.clientHeight?r.documentElement.clientHeight:t.innerHeight||r.body.clientHeight||0);else{if(o===B||pt(o))return t.getBoundingClientRect();s=a=0,i?(b=t.getBBox(),L=b.width,w=b.height):(t.viewBox&&(b=t.viewBox.baseVal)&&(s=b.x||0,a=b.y||0,L=b.width,w=b.height),L||(D=he(t),b=D.boxSizing==="border-box",L=(parseFloat(D.width)||t.clientWidth||0)+(b?0:parseFloat(D.borderLeftWidth)+parseFloat(D.borderRightWidth)),w=(parseFloat(D.height)||t.clientHeight||0)+(b?0:parseFloat(D.borderTopWidth)+parseFloat(D.borderBottomWidth)))),c=L,p=w}return t===o?{left:s,top:a,width:c-s,height:p-a}:(u=Ht(o,!0).multiply(Ht(t)),y=u.apply({x:s,y:a}),_=u.apply({x:c,y:a}),T=u.apply({x:c,y:p}),e=u.apply({x:s,y:p}),s=Math.min(y.x,_.x,T.x,e.x),a=Math.min(y.y,_.y,T.y,e.y),{left:s,top:a,width:Math.max(y.x,_.x,T.x,e.x)-s,height:Math.max(y.y,_.y,T.y,e.y)-a})},Ae=function(t,o,i,r,s,c){var a={},p,u,y;if(o)if(s!==1&&o instanceof Array){if(a.end=p=[],y=o.length,ce(o[0]))for(u=0;u<y;u++)p[u]=Di(o[u],s);else for(u=0;u<y;u++)p[u]=o[u]*s;i+=1.1,r-=1.1}else Rt(o)?a.end=function(_){var T=o.call(t,_),e,b;if(s!==1)if(ce(T)){e={};for(b in T)e[b]=T[b]*s;T=e}else T*=s;return T}:a.end=o;return(i||i===0)&&(a.max=i),(r||r===0)&&(a.min=r),c&&(a.velocity=0),a},qi=function d(t){var o;return!t||!t.getAttribute||t===Dt?!1:(o=t.getAttribute("data-clickable"))==="true"||o!=="false"&&(zi.test(t.nodeName+"")||t.getAttribute("contentEditable")==="true")?!0:d(t.parentNode)},me=function(t,o){for(var i=t.length,r;i--;)r=t[i],r.ondragstart=r.onselectstart=o?null:be,M.set(r,{lazy:!0,userSelect:o?"text":"none"})},Zi=function d(t){if(he(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return d(t)},Ci,Ve,Ji=function(t,o){t=M.utils.toArray(t)[0],o=o||{};var i=document.createElement("div"),r=i.style,s=t.firstChild,c=0,a=0,p=t.scrollTop,u=t.scrollLeft,y=t.scrollWidth,_=t.scrollHeight,T=0,e=0,b=0,L,w,D,k,A,V;Ci&&o.force3D!==!1?(A="translate3d(",V="px,0px)"):de&&(A="translate(",V="px)"),this.scrollTop=function(P,it){if(!arguments.length)return-this.top();this.top(-P,it)},this.scrollLeft=function(P,it){if(!arguments.length)return-this.left();this.left(-P,it)},this.left=function(P,it){if(!arguments.length)return-(t.scrollLeft+a);var H=t.scrollLeft-u,R=a;if((H>2||H<-2)&&!it){u=t.scrollLeft,M.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-u),o.onKill&&o.onKill();return}P=-P,P<0?(a=P-.5|0,P=0):P>e?(a=P-e|0,P=e):a=0,(a||R)&&(this._skip||(r[de]=A+-a+"px,"+-c+V),a+T>=0&&(r.paddingRight=a+T+"px")),t.scrollLeft=P|0,u=t.scrollLeft},this.top=function(P,it){if(!arguments.length)return-(t.scrollTop+c);var H=t.scrollTop-p,R=c;if((H>2||H<-2)&&!it){p=t.scrollTop,M.killTweensOf(this,{top:1,scrollTop:1}),this.top(-p),o.onKill&&o.onKill();return}P=-P,P<0?(c=P-.5|0,P=0):P>b?(c=P-b|0,P=b):c=0,(c||R)&&(this._skip||(r[de]=A+-a+"px,"+-c+V)),t.scrollTop=P|0,p=t.scrollTop},this.maxScrollTop=function(){return b},this.maxScrollLeft=function(){return e},this.disable=function(){for(s=i.firstChild;s;)k=s.nextSibling,t.appendChild(s),s=k;t===i.parentNode&&t.removeChild(i)},this.enable=function(){if(s=t.firstChild,s!==i){for(;s;)k=s.nextSibling,i.appendChild(s),s=k;t.appendChild(i),this.calibrate()}},this.calibrate=function(P){var it=t.clientWidth===L,H,R,wt;p=t.scrollTop,u=t.scrollLeft,!(it&&t.clientHeight===w&&i.offsetHeight===D&&y===t.scrollWidth&&_===t.scrollHeight&&!P)&&((c||a)&&(R=this.left(),wt=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),H=he(t),(!it||P)&&(r.display="block",r.width="auto",r.paddingRight="0px",T=Math.max(0,t.scrollWidth-t.clientWidth),T&&(T+=parseFloat(H.paddingLeft)+(Ve?parseFloat(H.paddingRight):0))),r.display="inline-block",r.position="relative",r.overflow="visible",r.verticalAlign="top",r.boxSizing="content-box",r.width="100%",r.paddingRight=T+"px",Ve&&(r.paddingBottom=H.paddingBottom),L=t.clientWidth,w=t.clientHeight,y=t.scrollWidth,_=t.scrollHeight,e=t.scrollWidth-L,b=t.scrollHeight-w,D=i.offsetHeight,r.display="block",(R||wt)&&(this.left(R),this.top(wt)))},this.content=i,this.element=t,this._skip=!1,this.enable()},Ie=function(t){if(Ei()&&document.body){var o=window&&window.navigator;B=window,nt=document,xt=nt.documentElement,Dt=nt.body,Ye=we("div"),_e=!!window.PointerEvent,Et=we("div"),Et.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",ae=Et.style.cursor==="grab"?"grab":"move",se=o&&o.userAgent.toLowerCase().indexOf("android")!==-1,We="ontouchstart"in xt&&"orientation"in B||o&&(o.MaxTouchPoints>0||o.msMaxTouchPoints>0),Ve=function(){var i=we("div"),r=we("div"),s=r.style,c=Dt,a;return s.display="inline-block",s.position="relative",i.style.cssText="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",i.appendChild(r),c.appendChild(i),a=r.offsetHeight+18>i.scrollHeight,c.removeChild(i),a}(),ue=function(i){for(var r=i.split(","),s=("onpointerdown"in Ye?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in Ye?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":i).split(","),c={},a=4;--a>-1;)c[r[a]]=s[a],c[s[a]]=r[a];try{xt.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){bi=1}}))}catch{}return c}("touchstart,touchmove,touchend,touchcancel"),q(nt,"touchcancel",be),q(B,"touchmove",be),Dt&&Dt.addEventListener("touchstart",be),q(nt,"contextmenu",function(){for(var i in Kt)Kt[i].isPressed&&Kt[i].endDrag(
9)}),M=He=Si()}M?(ht=M.plugins.inertia,Ti=M.core.context||function(){},le=M.utils.checkPrefix,de=le(de),$e=le($e),Nt=M.utils.toArray,ze=M.core.getStyleSaver,Ci=!!le("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")},ji=function(){function d(o){this._listeners={},this.target=o||this}var t=d.prototype;return t.addEventListener=function(i,r){var s=this._listeners[i]||(this._listeners[i]=[]);~s.indexOf(r)||s.push(r)},t.removeEventListener=function(i,r){var s=this._listeners[i],c=s&&s.indexOf(r);c>=0&&s.splice(c,1)},t.dispatchEvent=function(i){var r=this,s;return(this._listeners[i]||[]).forEach(function(c){return c.call(r,{type:i,target:r.target})===!1&&(s=!1)}),s},d}(),Jt=function(d){Fi(t,d);function t(o,i){var r;r=d.call(this)||this,He||Ie(1),o=Nt(o)[0],r.styles=ze&&ze(o,"transform,left,top"),ht||(ht=M.plugins.inertia),r.vars=i=Di(i||{}),r.target=o,r.x=r.y=r.rotation=0,r.dragResistance=parseFloat(i.dragResistance)||0,r.edgeResistance=isNaN(i.edgeResistance)?1:parseFloat(i.edgeResistance)||0,r.lockAxis=i.lockAxis,r.autoScroll=i.autoScroll||0,r.lockedAxis=null,r.allowEventDefault=!!i.allowEventDefault,M.getProperty(o,"x");var s=(i.type||"x,y").toLowerCase(),c=~s.indexOf("x")||~s.indexOf("y"),a=s.indexOf("rotation")!==-1,p=a?"rotation":c?"x":"left",u=c?"y":"top",y=!!(~s.indexOf("x")||~s.indexOf("left")||s==="scroll"),_=!!(~s.indexOf("y")||~s.indexOf("top")||s==="scroll"),T=i.minimumMovement||2,e=si(r),b=Nt(i.trigger||i.handle||o),L={},w=0,D=!1,k=i.autoScrollMarginTop||40,A=i.autoScrollMarginRight||40,V=i.autoScrollMarginBottom||40,P=i.autoScrollMarginLeft||40,it=i.clickableTest||qi,H=0,R=o._gsap||M.core.getCache(o),wt=Zi(o),Vt=function(n,f){return parseFloat(R.get(o,n,f))},N=o.ownerDocument||nt,mt,E,vt,_t,J,G,Xt,Ue,qe,F,I,U,Q,pe,rt,jt,Z,De,Mt,Ct,Yt,te,j,X,Ze,lt,ct,Me,Ce,Je,ot,je,ge,ti=function(n){return at(n),n.stopImmediatePropagation&&n.stopImmediatePropagation(),!1},yt=function v(n){if(e.autoScroll&&e.isDragging&&(D||Z)){var f=o,l=e.autoScroll*15,h,g,x,S,m,Y,C,O;for(D=!1,Tt.scrollTop=B.pageYOffset!=null?B.pageYOffset:N.documentElement.scrollTop!=null?N.documentElement.scrollTop:N.body.scrollTop,Tt.scrollLeft=B.pageXOffset!=null?B.pageXOffset:N.documentElement.scrollLeft!=null?N.documentElement.scrollLeft:N.body.scrollLeft,S=e.pointerX-Tt.scrollLeft,m=e.pointerY-Tt.scrollTop;f&&!g;)g=Zt(f.parentNode),h=g?Tt:f.parentNode,x=g?{bottom:Math.max(xt.clientHeight,B.innerHeight||0),right:Math.max(xt.clientWidth,B.innerWidth||0),left:0,top:0}:h.getBoundingClientRect(),Y=C=0,_&&(O=h._gsMaxScrollY-h.scrollTop,O<0?C=O:m>x.bottom-V&&O?(D=!0,C=Math.min(O,l*(1-Math.max(0,x.bottom-m)/V)|0)):m<x.top+k&&h.scrollTop&&(D=!0,C=-Math.min(h.scrollTop,l*(1-Math.max(0,m-x.top)/k)|0)),C&&(h.scrollTop+=C)),y&&(O=h._gsMaxScrollX-h.scrollLeft,O<0?Y=O:S>x.right-A&&O?(D=!0,Y=Math.min(O,l*(1-Math.max(0,x.right-S)/A)|0)):S<x.left+P&&h.scrollLeft&&(D=!0,Y=-Math.min(h.scrollLeft,l*(1-Math.max(0,S-x.left)/P)|0)),Y&&(h.scrollLeft+=Y)),g&&(Y||C)&&(B.scrollTo(h.scrollLeft,h.scrollTop),oe(e.pointerX+Y,e.pointerY+C)),f=h}if(Z){var W=e.x,et=e.y;a?(e.deltaX=W-parseFloat(R.rotation),e.rotation=W,R.rotation=W+"deg",R.renderTransform(1,R)):E?(_&&(e.deltaY=et-E.top(),E.top(et)),y&&(e.deltaX=W-E.left(),E.left(W))):c?(_&&(e.deltaY=et-parseFloat(R.y),R.y=et+"px"),y&&(e.deltaX=W-parseFloat(R.x),R.x=W+"px"),R.renderTransform(1,R)):(_&&(e.deltaY=et-parseFloat(o.style.top||0),o.style.top=et+"px"),y&&(e.deltaX=W-parseFloat(o.style.left||0),o.style.left=W+"px")),Ue&&!n&&!Me&&(Me=!0,$(e,"drag","onDrag")===!1&&(y&&(e.x-=e.deltaX),_&&(e.y-=e.deltaY),v(!0)),Me=!1)}Z=!1},Ot=function(n,f){var l=e.x,h=e.y,g,x;o._gsap||(R=M.core.getCache(o)),R.uncache&&M.getProperty(o,"x"),c?(e.x=parseFloat(R.x),e.y=parseFloat(R.y)):a?e.x=e.rotation=parseFloat(R.rotation):E?(e.y=E.top(),e.x=E.left()):(e.y=parseFloat(o.style.top||(x=he(o))&&x.top)||0,e.x=parseFloat(o.style.left||(x||{}).left)||0),(Mt||Ct||Yt)&&!f&&(e.isDragging||e.isThrowing)&&(Yt&&(Gt.x=e.x,Gt.y=e.y,g=Yt(Gt),g.x!==e.x&&(e.x=g.x,Z=!0),g.y!==e.y&&(e.y=g.y,Z=!0)),Mt&&(g=Mt(e.x),g!==e.x&&(e.x=g,a&&(e.rotation=g),Z=!0)),Ct&&(g=Ct(e.y),g!==e.y&&(e.y=g),Z=!0)),Z&&yt(!0),n||(e.deltaX=e.x-l,e.deltaY=e.y-h,$(e,"throwupdate","onThrowUpdate"))},Pe=function(n,f,l,h){return f==null&&(f=-It),l==null&&(l=It),Rt(n)?function(g){var x=e.isPressed?1-e.edgeResistance:1;return n.call(e,(g>l?l+(g-l)*x:g<f?f+(g-f)*x:g)*h)*h}:ne(n)?function(g){for(var x=n.length,S=0,m=It,Y,C;--x>-1;)Y=n[x],C=Y-g,C<0&&(C=-C),C<m&&Y>=f&&Y<=l&&(S=x,m=C);return n[S]}:isNaN(n)?function(g){return g}:function(){return n*h}},Pi=function(n,f,l,h,g,x,S){return x=x&&x<It?x*x:It,Rt(n)?function(m){var Y=e.isPressed?1-e.edgeResistance:1,C=m.x,O=m.y,W,et,bt;return m.x=C=C>l?l+(C-l)*Y:C<f?f+(C-f)*Y:C,m.y=O=O>g?g+(O-g)*Y:O<h?h+(O-h)*Y:O,W=n.call(e,m),W!==m&&(m.x=W.x,m.y=W.y),S!==1&&(m.x*=S,m.y*=S),x<It&&(et=m.x-C,bt=m.y-O,et*et+bt*bt>x&&(m.x=C,m.y=O)),m}:ne(n)?function(m){for(var Y=n.length,C=0,O=It,W,et,bt,st;--Y>-1;)bt=n[Y],W=bt.x-m.x,et=bt.y-m.y,st=W*W+et*et,st<O&&(C=Y,O=st);return O<=x?n[C]:m}:function(m){return m}},Le=function(){var n,f,l,h;Xt=!1,E?(E.calibrate(),e.minX=I=-E.maxScrollLeft(),e.minY=Q=-E.maxScrollTop(),e.maxX=F=e.maxY=U=0,Xt=!0):i.bounds&&(n=yi(i.bounds,o.parentNode),a?(e.minX=I=n.left,e.maxX=F=n.left+n.width,e.minY=Q=e.maxY=U=0):!pt(i.bounds.maxX)||!pt(i.bounds.maxY)?(n=i.bounds,e.minX=I=n.minX,e.minY=Q=n.minY,e.maxX=F=n.maxX,e.maxY=U=n.maxY):(f=yi(o,o.parentNode),e.minX=I=Math.round(Vt(p,"px")+n.left-f.left),e.minY=Q=Math.round(Vt(u,"px")+n.top-f.to
9p),e.maxX=F=Math.round(I+(n.width-f.width)),e.maxY=U=Math.round(Q+(n.height-f.height))),I>F&&(e.minX=F,e.maxX=F=I,I=e.minX),Q>U&&(e.minY=U,e.maxY=U=Q,Q=e.minY),a&&(e.minRotation=I,e.maxRotation=F),Xt=!0),i.liveSnap&&(l=i.liveSnap===!0?i.snap||{}:i.liveSnap,h=ne(l)||Rt(l),a?(Mt=Pe(h?l:l.rotation,I,F,1),Ct=null):l.points?Yt=Pi(h?l:l.points,I,F,Q,U,l.radius,E?-1:1):(y&&(Mt=Pe(h?l:l.x||l.left||l.scrollLeft,I,F,E?-1:1)),_&&(Ct=Pe(h?l:l.y||l.top||l.scrollTop,Q,U,E?-1:1))))},Li=function(){e.isThrowing=!1,$(e,"throwcomplete","onThrowComplete")},ki=function(){e.isThrowing=!1},ke=function(n,f){var l,h,g,x;n&&ht?(n===!0&&(l=i.snap||i.liveSnap||{},h=ne(l)||Rt(l),n={resistance:(i.throwResistance||i.resistance||1e3)/(a?10:1)},a?n.rotation=Ae(e,h?l:l.rotation,F,I,1,f):(y&&(n[p]=Ae(e,h?l:l.points||l.x||l.left,F,I,E?-1:1,f||e.lockedAxis==="x")),_&&(n[u]=Ae(e,h?l:l.points||l.y||l.top,U,Q,E?-1:1,f||e.lockedAxis==="y")),(l.points||ne(l)&&ce(l[0]))&&(n.linkedProps=p+","+u,n.radius=l.radius))),e.isThrowing=!0,x=isNaN(i.overshootTolerance)?i.edgeResistance===1?0:1-e.edgeResistance+.2:i.overshootTolerance,n.duration||(n.duration={max:Math.max(i.minDuration||0,"maxDuration"in i?i.maxDuration:2),min:isNaN(i.minDuration)?x===0||ce(n)&&n.resistance>1e3?0:.5:i.minDuration,overshoot:x}),e.tween=g=M.to(E||o,{inertia:n,data:"_draggable",inherit:!1,onComplete:Li,onInterrupt:ki,onUpdate:i.fastMode?$:Ot,onUpdateParams:i.fastMode?[e,"onthrowupdate","onThrowUpdate"]:l&&l.radius?[!1,!0]:[]}),i.fastMode||(E&&(E._skip=!0),g.render(1e9,!0,!0),Ot(!0,!0),e.endX=e.x,e.endY=e.y,a&&(e.endRotation=e.x),g.play(0),Ot(!0,!0),E&&(E._skip=!1))):Xt&&e.applyBounds()},ei=function(n){var f=X,l;X=Ht(o.parentNode,!0),n&&e.isPressed&&!X.equals(f||new $t)&&(l=f.inverse().apply({x:vt,y:_t}),X.apply(l,l),vt=l.x,_t=l.y),X.equals(Hi)&&(X=null)},xe=function(){var n=1-e.edgeResistance,f=wt?qt(N):0,l=wt?Ut(N):0,h,g,x;c&&(R.x=Vt(p,"px")+"px",R.y=Vt(u,"px")+"px",R.renderTransform()),ei(!1),ft.x=e.pointerX-f,ft.y=e.pointerY-l,X&&X.apply(ft,ft),vt=ft.x,_t=ft.y,Z&&(oe(e.pointerX,e.pointerY),yt(!0)),je=Ht(o),E?(Le(),G=E.top(),J=E.left()):(ee()?(Ot(!0,!0),Le()):e.applyBounds(),a?(h=o.ownerSVGElement?[R.xOrigin-o.getBBox().x,R.yOrigin-o.getBBox().y]:(he(o)[$e]||"0 0").split(" "),jt=e.rotationOrigin=Ht(o).apply({x:parseFloat(h[0])||0,y:parseFloat(h[1])||0}),Ot(!0,!0),g=e.pointerX-jt.x-f,x=jt.y-e.pointerY+l,J=e.x,G=e.y=Math.atan2(x,g)*ai):(G=Vt(u,"px"),J=Vt(p,"px"))),Xt&&n&&(J>F?J=F+(J-F)/n:J<I&&(J=I-(I-J)/n),a||(G>U?G=U+(G-U)/n:G<Q&&(G=Q-(Q-G)/n))),e.startX=J=Lt(J),e.startY=G=Lt(G)},ee=function(){return e.tween&&e.tween.isActive()},Ri=function(){Et.parentNode&&!ee()&&!e.isDragging&&Et.parentNode.removeChild(Et)},ie=function(n,f){var l;if(!mt||e.isPressed||!n||(n.type==="mousedown"||n.type==="pointerdown")&&!f&&kt()-H<30&&ue[e.pointerEvent.type]){ot&&n&&mt&&at(n);return}if(Ze=ee(),ge=!1,e.pointerEvent=n,ue[n.type]?(j=~n.type.indexOf("touch")?n.currentTarget||n.target:N,q(j,"touchend",dt),q(j,"touchmove",Bt),q(j,"touchcancel",dt),q(N,"touchstart",hi)):(j=null,q(N,"mousemove",Bt)),ct=null,(!_e||!j)&&(q(N,"mouseup",dt),n&&n.target&&q(n.target,"mouseup",dt)),te=it.call(e,n.target)&&i.dragClickables===!1&&!f,te){q(n.target,"change",dt),$(e,"pressInit","onPressInit"),$(e,"press","onPress"),me(b,!0),ot=!1;return}if(lt=!j||y===_||e.vars.allowNativeTouchScrolling===!1||e.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2)?!1:y?"y":"x",ot=!lt&&!e.allowEventDefault,ot&&(at(n),q(B,"touchforcechange",at)),n.changedTouches?(n=pe=n.changedTouches[0],rt=n.identifier):n.pointerId?rt=n.pointerId:pe=rt=null,Ee++,Vi(yt),_t=e.pointerY=n.pageY,vt=e.pointerX=n.pageX,$(e,"pressInit","onPressInit"),(lt||e.autoScroll)&&Oe(o.parentNode),o.parentNode&&e.autoScroll&&!E&&!a&&o.parentNode._gsMaxScrollX&&!Et.parentNode&&!o.getBBox&&(Et.style.width=o.parentNode.scrollWidth+"px",o.parentNode.appendChild(Et)),xe(),e.tween&&e.tween.kill(),e.isThrowing=!1,M.killTweensOf(E||o,L,!0),E&&M.killTweensOf(o,{scrollTo:1},!0),e.tween=e.lockedAxis=null,(i.zIndexBoost||!a&&!E&&i.zIndexBoost!==!1)&&(o.style.zIndex=t.zIndex++),e.isPressed=!0,Ue=!!(i.onDrag||e._listeners.drag),qe=!!(i.onMove||e._listeners.move),i.cursor!==!1||i.activeCursor)for(l=b.length;--l>-1;)M.set(b[l],{cursor:i.activeCursor||i.cursor||(ae==="grab"?"grabbing":ae)});$(e,"press","onPress")},Bt=function(n){var f=n,l,h,g,x,S,m;if(!mt||Ke||!e.isPressed||!n){ot&&n&&mt&&at(n);return}if(e.pointerEvent=n,l=n.changedTouches,l){if(n=l[0],n!==pe&&n.identifier!==rt){for(x=l.length;--x>-1&&(n=l[x]).identifier!==rt&&n.target!==o;);if(x<0)return}}else if(n.pointerId&&rt&&n.pointerId!==rt)return;if(j&&lt&&!ct&&(ft.x=n.pageX-(wt?qt(N):0),ft.y=n.pageY-(wt?Ut(N):0),X&&X.apply(ft,ft),h=ft.x,g=ft.y,S=Math.abs(h-vt),m=Math.abs(g-_t),(S!==m&&(S>T||m>T)||se&&lt===ct)&&(ct=S>m&&y?"x":"y",lt&&ct!==lt&&q(B,"touchforcechange",at),e.vars.lockAxisOnTouchScroll!==!1&&y&&_&&(e.lockedAxis=ct==="x"?"y":"x",Rt(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,f)),se&&lt===ct))){dt(f);return}!e.allowEventDefault&&(!lt||ct&&lt!==ct)&&f.cancelable!==!1?(at(f),ot=!0):ot&&(ot=!1),e.autoScroll&&(D=!0),oe(n.pageX,n.pageY,qe)},oe=function(n,f,l){var h=1-e.dragResistance,g=1-e.edgeResistance,x=e.pointerX,S=e.pointerY,m=G,Y=e.x,C=e.y,O=e.endX,W=e.endY,et=e.endRotation,bt=Z,st,Pt,tt,z,Re,ut;e.pointerX=n,e.pointerY=f,wt&&(n-=qt(N),f-=Ut(N)),a?(z=Math.atan2(jt.y-f,n-jt.x)*ai,Re=e.y-z,Re>180?(G-=360,e.y=z):Re<-180&&(G+=360,e.y=z),e.x!==J||Math.abs(G-z)>T?(e.y=z,tt=J+(G-z)*h):tt=J):(X&&(ut=n*X.a+f*X.c+X.e,f=n*X.b+f*X.d+X.f,n=ut),Pt=f-_t,st=n-vt,Pt<T&&Pt>-T&&(Pt=0),st<T&&st>-T&&(st=0),(e.lockAxis||e.lockedAxis)&&(st||Pt)&&(ut=e.lockedAxis,ut||(e.lockedAxis=ut=y&&Math.abs(st)>Math.abs(Pt)?"y":_?"x":null,ut&&Rt(e.vars.onLockAxis)&&e.vars.onLockAxis.call(e,e.pointerEvent)),ut==="y"?Pt=0:ut==="x"&&(st=0)),tt=Lt(J+st*h),z=Lt(G+Pt*h)),(Mt||Ct||Yt)&&(e.x!==tt||e.y!==z&&!a)&&
9(Yt&&(Gt.x=tt,Gt.y=z,ut=Yt(Gt),tt=Lt(ut.x),z=Lt(ut.y)),Mt&&(tt=Lt(Mt(tt))),Ct&&(z=Lt(Ct(z)))),Xt&&(tt>F?tt=F+Math.round((tt-F)*g):tt<I&&(tt=I+Math.round((tt-I)*g)),a||(z>U?z=Math.round(U+(z-U)*g):z<Q&&(z=Math.round(Q+(z-Q)*g)))),(e.x!==tt||e.y!==z&&!a)&&(a?(e.endRotation=e.x=e.endX=tt,Z=!0):(_&&(e.y=e.endY=z,Z=!0),y&&(e.x=e.endX=tt,Z=!0)),!l||$(e,"move","onMove")!==!1?!e.isDragging&&e.isPressed&&(e.isDragging=ge=!0,$(e,"dragstart","onDragStart")):(e.pointerX=x,e.pointerY=S,G=m,e.x=Y,e.y=C,e.endX=O,e.endY=W,e.endRotation=et,Z=bt))},dt=function v(n,f){if(!mt||!e.isPressed||n&&rt!=null&&!f&&(n.pointerId&&n.pointerId!==rt&&n.target!==o||n.changedTouches&&!Qi(n.changedTouches,rt))){ot&&n&&mt&&at(n);return}e.isPressed=!1;var l=n,h=e.isDragging,g=e.vars.allowContextMenu&&n&&(n.ctrlKey||n.which>2),x=M.delayedCall(.001,Ri),S,m,Y,C,O;if(j?(K(j,"touchend",v),K(j,"touchmove",Bt),K(j,"touchcancel",v),K(N,"touchstart",hi)):K(N,"mousemove",Bt),K(B,"touchforcechange",at),(!_e||!j)&&(K(N,"mouseup",v),n&&n.target&&K(n.target,"mouseup",v)),Z=!1,h&&(w=fi=kt(),e.isDragging=!1),ui(yt),te&&!g){n&&(K(n.target,"change",v),e.pointerEvent=l),me(b,!1),$(e,"release","onRelease"),$(e,"click","onClick"),te=!1;return}for(m=b.length;--m>-1;)Be(b[m],"cursor",i.cursor||(i.cursor!==!1?ae:null));if(Ee--,n){if(S=n.changedTouches,S&&(n=S[0],n!==pe&&n.identifier!==rt)){for(m=S.length;--m>-1&&(n=S[m]).identifier!==rt&&n.target!==o;);if(m<0&&!f)return}e.pointerEvent=l,e.pointerX=n.pageX,e.pointerY=n.pageY}return g&&l?(at(l),ot=!0,$(e,"release","onRelease")):l&&!h?(ot=!1,Ze&&(i.snap||i.bounds)&&ke(i.inertia||i.throwProps),$(e,"release","onRelease"),(!se||l.type!=="touchmove")&&l.type.indexOf("cancel")===-1&&($(e,"click","onClick"),kt()-H<300&&$(e,"doubleclick","onDoubleClick"),C=l.target||o,H=kt(),O=function(){H!==Ce&&e.enabled()&&!e.isPressed&&!l.defaultPrevented&&(C.click?C.click():N.createEvent&&(Y=N.createEvent("MouseEvents"),Y.initMouseEvent("click",!0,!0,B,1,e.pointerEvent.screenX,e.pointerEvent.screenY,e.pointerX,e.pointerY,!1,!1,!1,!1,0,null),C.dispatchEvent(Y)))},!se&&!l.defaultPrevented&&M.delayedCall(.05,O))):(ke(i.inertia||i.throwProps),!e.allowEventDefault&&l&&(i.dragClickables!==!1||!it.call(e,l.target))&&h&&(!lt||ct&&lt===ct)&&l.cancelable!==!1?(ot=!0,at(l)):ot=!1,$(e,"release","onRelease")),ee()&&x.duration(e.tween.duration()),h&&$(e,"dragend","onDragEnd"),!0},ye=function(n){if(n&&e.isDragging&&!E){var f=n.target||o.parentNode,l=f.scrollLeft-f._gsScrollX,h=f.scrollTop-f._gsScrollY;(l||h)&&(X?(vt-=l*X.a+h*X.c,_t-=h*X.d+l*X.b):(vt-=l,_t-=h),f._gsScrollX+=l,f._gsScrollY+=h,oe(e.pointerX,e.pointerY))}},ii=function(n){var f=kt(),l=f-H<100,h=f-w<50,g=l&&Ce===H,x=e.pointerEvent&&e.pointerEvent.defaultPrevented,S=l&&Je===H,m=n.isTrusted||n.isTrusted==null&&l&&g;if((g||h&&e.vars.suppressClickOnDrag!==!1)&&n.stopImmediatePropagation&&n.stopImmediatePropagation(),l&&!(e.pointerEvent&&e.pointerEvent.defaultPrevented)&&(!g||m&&!S)){m&&g&&(Je=H),Ce=H;return}(e.isPressed||h||l)&&(!m||!n.detail||!l||x)&&at(n),!l&&!h&&!ge&&(n&&n.target&&(e.pointerEvent=n),$(e,"click","onClick"))},oi=function(n){return X?{x:n.x*X.a+n.y*X.c+X.e,y:n.x*X.b+n.y*X.d+X.f}:{x:n.x,y:n.y}};return De=t.get(o),De&&De.kill(),r.startDrag=function(v,n){var f,l,h,g;ie(v||e.pointerEvent,!0),n&&!e.hitTest(v||e.pointerEvent)&&(f=Qt(v||e.pointerEvent),l=Qt(o),h=oi({x:f.left+f.width/2,y:f.top+f.height/2}),g=oi({x:l.left+l.width/2,y:l.top+l.height/2}),vt-=h.x-g.x,_t-=h.y-g.y),e.isDragging||(e.isDragging=ge=!0,$(e,"dragstart","onDragStart"))},r.drag=Bt,r.endDrag=function(v){return dt(v||e.pointerEvent,!0)},r.timeSinceDrag=function(){return e.isDragging?0:(kt()-w)/1e3},r.timeSinceClick=function(){return(kt()-H)/1e3},r.hitTest=function(v,n){return t.hitTest(e.target,v,n)},r.getDirection=function(v,n){var f=v==="velocity"&&ht?v:ce(v)&&!a?"element":"start",l,h,g,x,S,m;return f==="element"&&(S=Qt(e.target),m=Qt(v)),l=f==="start"?e.x-J:f==="velocity"?ht.getVelocity(o,p):S.left+S.width/2-(m.left+m.width/2),a?l<0?"counter-clockwise":"clockwise":(n=n||2,h=f==="start"?e.y-G:f==="velocity"?ht.getVelocity(o,u):S.top+S.height/2-(m.top+m.height/2),g=Math.abs(l/h),x=g<1/n?"":l<0?"left":"right",g<n&&(x!==""&&(x+="-"),x+=h<0?"up":"down"),x)},r.applyBounds=function(v,n){var f,l,h,g,x,S;if(v&&i.bounds!==v)return i.bounds=v,e.update(!0,n);if(Ot(!0),Le(),Xt&&!ee()){if(f=e.x,l=e.y,f>F?f=F:f<I&&(f=I),l>U?l=U:l<Q&&(l=Q),(e.x!==f||e.y!==l)&&(h=!0,e.x=e.endX=f,a?e.endRotation=f:e.y=e.endY=l,Z=!0,yt(!0),e.autoScroll&&!e.isDragging))for(Oe(o.parentNode),g=o,Tt.scrollTop=B.pageYOffset!=null?B.pageYOffset:N.documentElement.scrollTop!=null?N.documentElement.scrollTop:N.body.scrollTop,Tt.scrollLeft=B.pageXOffset!=null?B.pageXOffset:N.documentElement.scrollLeft!=null?N.documentElement.scrollLeft:N.body.scrollLeft;g&&!S;)S=Zt(g.parentNode),x=S?Tt:g.parentNode,_&&x.scrollTop>x._gsMaxScrollY&&(x.scrollTop=x._gsMaxScrollY),y&&x.scrollLeft>
9x._gsMaxScrollX&&(x.scrollLeft=x._gsMaxScrollX),g=x;e.isThrowing&&(h||e.endX>F||e.endX<I||e.endY>U||e.endY<Q)&&ke(i.inertia||i.throwProps,h)}return e},r.update=function(v,n,f){if(n&&e.isPressed){var l=Ht(o),h=je.apply({x:e.x-J,y:e.y-G}),g=Ht(o.parentNode,!0);g.apply({x:l.e-h.x,y:l.f-h.y},h),e.x-=h.x-g.e,e.y-=h.y-g.f,yt(!0),xe()}var x=e.x,S=e.y;return ei(!n),v?e.applyBounds():(Z&&f&&yt(!0),Ot(!0)),n&&(oe(e.pointerX,e.pointerY),Z&&yt(!0)),e.isPressed&&!n&&(y&&Math.abs(x-e.x)>.01||_&&Math.abs(S-e.y)>.01&&!a)&&xe(),e.autoScroll&&(Oe(o.parentNode,e.isDragging),D=e.isDragging,yt(!0),gi(o,ye),pi(o,ye)),e},r.enable=function(v){var n={lazy:!0},f,l,h;if(i.cursor!==!1&&(n.cursor=i.cursor||ae),M.utils.checkPrefix("touchCallout")&&(n.touchCallout="none"),v!=="soft"){for(ci(b,y===_?"none":i.allowNativeTouchScrolling&&o.scrollHeight===o.clientHeight==(o.scrollWidth===o.clientHeight)||i.allowEventDefault?"manipulation":y?"pan-y":"pan-x"),l=b.length;--l>-1;)h=b[l],_e||q(h,"mousedown",ie),q(h,"touchstart",ie),q(h,"click",ii,!0),M.set(h,n),h.getBBox&&h.ownerSVGElement&&y!==_&&M.set(h.ownerSVGElement,{touchAction:i.allowNativeTouchScrolling||i.allowEventDefault?"manipulation":y?"pan-y":"pan-x"}),i.allowContextMenu||q(h,"contextmenu",ti);me(b,!1)}return pi(o,ye),mt=!0,ht&&v!=="soft"&&ht.track(E||o,c?"x,y":a?"rotation":"top,left"),o._gsDragID=f="d"+Wi++,Kt[f]=e,E&&(E.enable(),E.element._gsDragID=f),(i.bounds||a)&&xe(),i.bounds&&e.applyBounds(),e},r.disable=function(v){for(var n=e.isDragging,f=b.length,l;--f>-1;)Be(b[f],"cursor",null);if(v!=="soft"){for(ci(b,null),f=b.length;--f>-1;)l=b[f],Be(l,"touchCallout",null),K(l,"mousedown",ie),K(l,"touchstart",ie),K(l,"click",ii,!0),K(l,"contextmenu",ti);me(b,!0),j&&(K(j,"touchcancel",dt),K(j,"touchend",dt),K(j,"touchmove",Bt)),K(N,"mouseup",dt),K(N,"mousemove",Bt)}return gi(o,ye),mt=!1,ht&&v!=="soft"&&(ht.untrack(E||o,c?"x,y":a?"rotation":"top,left"),e.tween&&e.tween.kill()),E&&E.disable(),ui(yt),e.isDragging=e.isPressed=te=!1,n&&$(e,"dragend","onDragEnd"),e},r.enabled=function(v,n){return arguments.length?v?e.enable(n):e.disable(n):mt},r.kill=function(){return e.isThrowing=!1,e.tween&&e.tween.kill(),e.disable(),M.set(b,{clearProps:"userSelect"}),delete Kt[o._gsDragID],e},r.revert=function(){this.kill(),this.styles&&this.styles.revert()},~s.indexOf("scroll")&&(E=r.scrollProxy=new Ji(o,$i({onKill:function(){e.isPressed&&dt(null)}},i)),o.style.overflowY=_&&!We?"auto":"hidden",o.style.overflowX=y&&!We?"auto":"hidden",o=E.content),a?L.rotation=1:(y&&(L[p]=1),_&&(L[u]=1)),R.force3D="force3D"in i?i.force3D:!0,Ti(si(r)),r.enable(),r}return t.register=function(i){M=i,Ie()},t.create=function(i,r){return He||Ie(!0),Nt(i).map(function(s){return new t(s,r)})},t.get=function(i){return Kt[(Nt(i)[0]||{})._gsDragID]},t.timeSinceDrag=function(){return(kt()-fi)/1e3},t.hitTest=function(i,r,s){if(i===r)return!1;var c=Qt(i),a=Qt(r),p=c.top,u=c.left,y=c.right,_=c.bottom,T=c.width,e=c.height,b=a.left>y||a.right<u||a.top>_||a.bottom<p,L,w,D;return b||!s?!b:(D=(s+"").indexOf("%")!==-1,s=parseFloat(s)||0,L={left:Math.max(u,a.left),top:Math.max(p,a.top)},L.width=Math.min(y,a.right)-L.left,L.height=Math.min(_,a.bottom)-L.top,L.width<0||L.height<0?!1:D?(s*=.01,w=L.width*L.height,w>=T*e*s||w>=a.width*a.height*s):L.width>s&&L.height>s)},t}(ji);Gi(Jt.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1});Jt.zIndex=1e3;Jt.version="3.12.5";Si()&&M.registerPlugin(Jt);function io(d){At.registerPlugin(Jt);const t=ni(d),o=ni(d,!0);t.shuffleButton;const i=o.card.length;let r=100;const s=[];let c,a=!1;const p=()=>{let w=0;o.card.forEach(D=>{D.style.height="auto"}),setTimeout(()=>{t.cards.classList.remove("enabled"),o.card.forEach(D=>{D.style.height="auto";const k=D.getBoundingClientRect();k.height>w&&(w=k.height)}),o.card.forEach(D=>{D.style.height=w+"px"}),t.cards.style.height=w+"px",t.cards.classList.add("enabled")},1),T()},u=w=>{At.to(w,{x:0,y:0,rotate:0,duration:.3,ease:"power2.inOut"})},y=(w,D="right")=>{At.to(w,{x:()=>{const k=D==="right"?1:-1,A=w.getBoundingClientRect();return k*(window.innerWidth-A.left+A.width*.5)},rotate:()=>D==="right"?"32deg":"-22deg",y:()=>{const k=w.getBoundingClientRect();return-(window.innerWidth-k.left+k.width*.5)*.7},duration:.3,ease:"power1.in",onStart:()=>{o.card.forEach((k,A)=>{k.dataset.position-1>=0?k.dataset.position=Math.max(0,k.dataset.position-1):k.dataset.position=i-1}),w.style.transition="none",w.style.zIndex=r,w.style.pointerEvents="none",r--,r<30&&(r=100)},onComplete:()=>{w.parentNode.append(w),w.classList.remove("is-transitioning"),At.set(w,{clearProps:"x,y,rotate,zIndex,pointerEvents,transition"})}})},_=()=>{o.card.forEach((w,D)=>{w.dataset.position=D,Jt.create(w,{zIndexBoost:!1,onDrag:k=>{const V=w.getBoundingClientRect(),P=t.cards.getBoundingClientRect();At.set(w,{rotate:P.left>0?-22*(1-Math.max(0,V.left+V.width*.5)/(P.left+P.width*.5)):-22*(V.left+V.width*.5)/window.innerWidth*.5})},onDragStart:k=>{a=!0,t.cards.classList.add("is-dragging"),c&&clearTimeout(c)},onDragEnd:k=>{const A=w.getBoundingClientRect(),V=t.cards.getBoundingClientRect();Math.abs(A.left+A.width*.5-V.left-V.width*.5)<A.width*.3?u(w):y(w,A.left+A.width*.5-V.left-V.width*.5>0?"right":"left"),c&&clearTimeout(c),c=setTimeout(()=>{a=!1,b()},800)}})})},T=()=>{const w=ri("circles"),D=[{x:-1.5,y:-1.1,scale:.39},{x:-1.15,y:-.5,scale:.73},{x:.96,y:-.98,scale:1},{x:1.15,y:-.18,scale:.67},{x:-1.6,y:.55,scale:.43},{x:1.5,y:.33,scale:.41}];
9s.forEach(k=>{k.parentNode.remove(k)}),D.forEach(k=>{const A=ri("circle");A.style.color=li(),A.style.zIndex=19;const V=k.scale;A.style.transform=`translate3d(0, 0, 0) scale(${V})`,A.dataset.x=k.x*.5*o.card[0].offsetWidth,A.dataset.y=k.y*.5*o.card[0].offsetHeight,s.push(A),w.appendChild(A)}),t.cards.parentNode.appendChild(w)},e=()=>{if(t.cards.classList.add("hover"),c&&clearTimeout(c),a){t.cards.classList.remove("is-dragging"),a=!1;return}s.forEach(w=>{At.fromTo(w,{x:w.dataset.x*.5,y:w.dataset.y*.5,z:10,color:()=>li()},{x:w.dataset.x,y:w.dataset.y,z:-10,duration:.3,ease:"power2.out",force3D:!0})})},b=()=>{a||(t.cards.classList.remove("is-dragging"),t.cards.classList.remove("hover"),s.forEach(w=>{At.to(w,{x:w.dataset.x*.5,y:w.dataset.y*.5,z:10,duration:.4,force3D:!0,onComplete:()=>{}})}))},L=()=>{o.card.forEach((w,D)=>{w.dataset.position==0&&y(w)})};return window.addEventListener("resize",p),p(),_(),t.cardsStack.addEventListener("click",L),t.cardsStack.addEventListener("mouseenter",e),t.cardsStack.addEventListener("mouseleave",b),()=>{window.removeEventListener("resize",p),t.cardsStack.removeEventListener("click",L),t.cardsStack.removeEventListener("mouseenter",e),t.cardsStack.removeEventListener("mouseleave",b)}}export{io as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.