vendor: 4,064 bytes, lines 1-9
1/*! 2 * Draggable 3.5.1 3 * https://greensock.com 4 * 5 * @license Copyright 2020, GreenSock. All rights reserved. 6 * Subject to the terms at https://greensock.com/standard-license or for Club GreenSock members, the agreement issued with that membership. 7 * @author: Jack Doyle, [email protected] 8 */ 9!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).window=t.window||{})}(this,function(t){"use strict";function e(t,n){if(t.parentNode&&(z||bt(t))){var i=Tt(t),r=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o=i?n?"rect":"g":"div",s=2!==n?0:100,a=3===n?100:0,u="position:absolute;display:block;pointer-events:none;",l=z.createElementNS?z.createElementNS(r.replace(/^https/,"http"),o):z.createElement(o);return n&&(i?(X=X||e(t),l.setAttribute("width",.01),l.setAttribute("height",.01),l.setAttribute("transform","translate("+s+","+a+")"),X.appendChild(l)):(W||((W=e(t)).style.cssText=u),l.style.cssText=u+"width:0.1px;height:0.1px;top:"+a+"px;left:"+s+"px",W.appendChild(l))),l}throw"Need document and parent."}function n(t,e,n,i,r,o,s){return t.a=e,t.b=n,t.c=i,t.d=r,t.e=o,t.f=s,t}function i(t,e,i,r,o,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===o&&(o=0),void 0===s&&(s=0),n(this,t,e,i,r,o,s)}function r(t,e,n){if(!t||!t.parentNode||(z||bt(t)).documentElement===t)return new At;var i=xt(t.parentNode),r=Tt(t)?Dt:wt,o=St(t,n),s=r[0].getBoundingClientRect(),a=r[1].getBoundingClientRect(),u=r[2].getBoundingClientRect(),l=o.parentNode,c=kt(t),h=new At((a.left-s.left)/100,(a.top-s.top)/100,(u.left-s.left)/100,(u.top-s.top)/100,s.left+(c?0:Ct()),s.top+(c?0:Et()));if(l.removeChild(o),i)for(s=i.length;s--;)(a=i[s]).scaleX=a.scaleY=0,a.renderTransform(1,a);return e?h.inverse():h}function o(){return"undefined"!=typeof window}function s(){return Q||o()&&(Q=window.gsap)&&Q.registerPlugin&&Q}function a(t){return"function"==typeof t}function u(t){return"object"==typeof t}function l(t){return void 0===t}function c(){return!1}function h(t){return Math.round(1e4*t)/1e4}function f(t,e){var n=K.createElementNS?K.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):K.createElement(t);return n.style?n:K.createElement(t)}function d(t,e){var n,i={};for(n in t)i[n]=e?t[n]*e:t[n];return i}function p(){return jt.forEach(function(t){return t()})}function m(){return!jt.length&&Q.ticker.remove(p)}function g(t){for(var e=jt.length;e--;)jt[e]===t&&jt.splice(e,1);Q.to(m,{overwrite:!0,delay:15,duration:0,onComplete:m,data:"_draggable"})}function v(t,e,n,i){if(t.addEventListener){var r=at[e];i=i||(ot?{passive:!1}:null),t.addEventListener(r||e,n,i),r&&e!==r&&t.addEventListener(e,n,i)}}function y(t,e,n){if(t.removeEventListener){var i=at[e];t.removeEventListener(i||e,n),i&&e!==i&&t.removeEventListener(e,n)}}function _(t){t.preventDefault&&t.preventDefault(),t.preventManipulation&&t.preventManipulation()}function b(t){lt=t.touches&&ut<t.touches.length,y(t.target,"touchend",b)}function x(t){lt=t.touches&&ut<t.touches.length,v(t.target,"touchend",b)}function D(t){return G.pageYOffset||t.scrollTop||t.documentElement.scrollTop||t.body.scrollTop||0}function w(t){return G.pageXOffset||t.scrollLeft||t.documentElement.scrollLeft||t.body.scrollLeft||0}function E(t,e){v(t,"scroll",e),Wt(t.parentNode)||E(t.parentNode,e)}function C(t,e){y(t,"scroll",e),Wt(t.parentNode)||C(t.parentNode,e)}function T(t,e){var n="x"===e?"Width":"Height",i="scroll"+n,r="client"+n;return Math.max(0,Wt(t)?Math.max(Z[i],J[i])-(G["inner"+n]||Z[r]||J[r]):t[i]-t[r])}function k(t,e){var n=T(t,"x"),i=T(t,"y");Wt(t)?t=Ht:k(t.parentNode,e),t._gsMaxScrollX=n,t._gsMaxScrollY=i,e||(t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0)}function S(t,e,n){var i=t.style;i&&(l(i[e])&&(e=it(e,t)||e),null==n?i.removeProperty&&i.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):i[e]=n)}function A(t){return G.getComputedStyle(t instanceof Element?t:t.host||(t.parentNode||{}).host||t)}
vendor: 29,933 bytes, lines 9-10
9function F(t){if(t===G)return Xt.left=Xt.top=0,Xt.width=Xt.right=Z.clientWidth||t.innerWidth||J.clientWidth||0,Xt.height=Xt.bottom=(t.innerHeight||0)-20<Z.clientHeight?Z.clientHeight:t.innerHeight||J.clientHeight||0,Xt;var e=t.ownerDocument||K,n=l(t.pageX)?t.nodeType||l(t.left)||l(t.top)?rt(t)[0].getBoundingClientRect():t:{left:t.pageX-w(e),top:t.pageY-D(e),right:t.pageX-w(e)+1,bottom:t.pageY-D(e)+1};return l(n.right)&&!l(n.width)?(n.right=n.left+n.width,n.bottom=n.top+n.height):l(n.width)&&(n={width:n.right-n.left,height:n.bottom-n.top,right:n.right,left:n.left,bottom:n.bottom,top:n.top}),n}function O(t,e,n){var i,r=t.vars,o=r[n],s=t._listeners[e];return a(o)&&(i=o.apply(r.callbackScope||t,r[n+"Params"]||[t.pointerEvent])),s&&!1===t.dispatchEvent(e)&&(i=!1),i}function M(t,e){var n,i,r,o=rt(t)[0];return o.nodeType||o===G?Ut(o,e):l(t.left)?{left:i=t.min||t.minX||t.minRotation||0,top:n=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-i,height:(t.max||t.maxY||0)-n}:(r={x:0,y:0},{left:t.left-r.x,top:t.top-r.y,width:t.width,height:t.height})}function P(t,e,n,i,r,o){var s,l,c,h={};if(e)if(1!==r&&e instanceof Array){if(h.end=s=[],c=e.length,u(e[0]))for(l=0;l<c;l++)s[l]=d(e[l],r);else for(l=0;l<c;l++)s[l]=e[l]*r;n+=1.1,i-=1.1}else a(e)?h.end=function(n){var i,o,s=e.call(t,n);if(1!==r)if(u(s)){for(o in i={},s)i[o]=s[o]*r;s=i}else s*=r;return s}:h.end=e;return!n&&0!==n||(h.max=n),!i&&0!==i||(h.min=i),o&&(h.velocity=0),h}function L(t){var e;return!(!t||!t.getAttribute||t===J)&&(!("true"!==(e=t.getAttribute("data-clickable"))&&("false"===e||!t.onclick&&!zt.test(t.nodeName+"")&&"true"!==t.getAttribute("contentEditable")))||L(t.parentNode))}function N(t,e){for(var n,i=t.length;i--;)(n=t[i]).ondragstart=n.onselectstart=e?null:c,Q.set(n,{lazy:!0,userSelect:e?"text":"none"})}function I(t,e){t=Q.utils.toArray(t)[0],e=e||{};var n,i,r,o,s,a,u=document.createElement("div"),l=u.style,c=t.firstChild,h=0,f=0,d=t.scrollTop,p=t.scrollLeft,m=t.scrollWidth,g=t.scrollHeight,v=0,y=0,_=0;pt&&!1!==e.force3D?(s="translate3d(",a="px,0px)"):Ft&&(s="translate(",a="px)"),this.scrollTop=function(t,e){return arguments.length?void this.top(-t,e):-this.top()},this.scrollLeft=function(t,e){return arguments.length?void this.left(-t,e):-this.left()},this.left=function(n,i){if(!arguments.length)return-(t.scrollLeft+f);var r=t.scrollLeft-p,o=f;return(2<r||r<-2)&&!i?(p=t.scrollLeft,Q.killTweensOf(this,{left:1,scrollLeft:1}),this.left(-p),void(e.onKill&&e.onKill())):((n=-n)<0?(f=n-.5|0,n=0):y<n?(f=n-y|0,n=y):f=0,(f||o)&&(this._skip||(l[Ft]=s+-f+"px,"+-h+a),0<=f+v&&(l.paddingRight=f+v+"px")),t.scrollLeft=0|n,p=t.scrollLeft,void 0)},this.top=function(n,i){if(!arguments.length)return-(t.scrollTop+h);var r=t.scrollTop-d,o=h;return(2<r||r<-2)&&!i?(d=t.scrollTop,Q.killTweensOf(this,{top:1,scrollTop:1}),this.top(-d),void(e.onKill&&e.onKill())):((n=-n)<0?(h=n-.5|0,n=0):_<n?(h=n-_|0,n=_):h=0,(h||o)&&(this._skip||(l[Ft]=s+-f+"px,"+-h+a)),t.scrollTop=0|n,d=t.scrollTop,void 0)},this.maxScrollTop=function(){return _},this.maxScrollLeft=function(){return y},this.disable=function(){for(c=u.firstChild;c;)o=c.nextSibling,t.appendChild(c),c=o;t===u.parentNode&&t.removeChild(u)},this.enable=function(){if((c=t.firstChild)!==u){for(;c;)o=c.nextSibling,u.appendChild(c),c=o;t.appendChild(u),this.calibrate()}},this.calibrate=function(e){var o,s,a,c=t.clientWidth===n;d=t.scrollTop,p=t.scrollLeft,c&&t.clientHeight===i&&u.offsetHeight===r&&m===t.scrollWidth&&g===t.scrollHeight&&!e||((h||f)&&(s=this.left(),a=this.top(),this.left(-t.scrollLeft),this.top(-t.scrollTop)),o=A(t),c&&!e||(l.display="block",l.width="auto",l.paddingRight="0px",(v=Math.max(0,t.scrollWidth-t.clientWidth))&&(v+=parseFloat(o.paddingLeft)+(mt?parseFloat(o.paddingRight):0))),l.display="inline-block",l.position="relative",l.overflow="visible",l.verticalAlign="top",l.boxSizing="content-box",l.width="100%",l.paddingRight=v+"px",mt&&(l.paddingBottom=o.paddingBottom),n=t.clientWidth,i=t.clientHeight,m=t.scrollWidth,g=t.scrollHeight,y=t.scrollWidth-n,_=t.scrollHeight-i,r=u.offsetHeight,l.display="block",(s||a)&&(this.left(s),this.top(a)))},this.content=u,this.element=t,this._skip=!1,this.enable()}function j(t){if(o()&&document.body){var e=window&&window.navigator;G=window,K=document,Z=K.documentElement,J=K.body,tt=f("div"),dt=!!window.PointerEvent,(et=f("div")).style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;cursor:grab",ft="grab"===et.style.cursor?"grab":"move",ct=e&&-1!==e.userAgent.toLowerCase().indexOf("android"),st="ontouchstart"in Z&&"orientation"in G||e&&(0<e.MaxTouchPoints||0<e.msMaxTouchPoints),i=f("div"),r=f("div"),a=r.style,u=J,a.display="inline-block",a.position="relative",i.style.cssText=r.innerHTML="width:90px;height:40px;padding:10px;overflow:auto;visibility:hidden",i.appendChild(r),u.appendChild(i),n=r.offsetHeight+18>i.scrollHeight,u.removeChild(i),mt=n,at=function(t){for(var e=t.split(","),n=(("onpointerdown"in tt?"pointerdown,pointermove,pointerup,pointercancel":"onmspointerdown"in tt?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(",")),i={},r=4;-1<--r;)i[e[r]]=n[r],i[n[r]]=e[r];try{Z.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ot=1}}))}catch(t){}return i}("touchstart,touchmove,touchend,touchcancel"),v(K,"touchcancel",c),v(G,"touchmove",c),J&&J.addEventListener("touchstart",c),v(K,"contextmenu",function(){for(var t in Rt)Rt[t].isPressed&&Rt[t].endDrag()}),Q=nt=s()}var n,i,r,a,u;Q?(ht=Q.plugins.inertia,it=Q.utils.checkPrefix,Ft=it(Ft),Ot=it(Ot),rt=Q.utils.toArray,pt=!!it("perspective")):t&&console.warn("Please gsap.registerPlugin(Draggable)")}function R(t){this._listeners={},this.target=t||this}function B(t,e){function n(e,n){return parseFloat(_e.get(t,e,n))}function i(t){return _(t),t.stopImmediatePropagation&&t.stopImmediatePropagation(),!1}function o(e){if(ue.autoScroll&&ue.isDragging&&(fe||Et)){var n,i,r,s,a,u,l,c,h=t,f=15*ue.autoScroll;for(fe=!1,Ht.scrollTop=null!=G.pageYOffset?G.pageYOffset:null!=xe.documentElement.scrollTop?xe.documentElement.scrollTop:xe.body.scrollTop,Ht.scrollLeft=null!=G.pageXOffset?G.pageXOffset:null!=xe.documentElement.scrollLeft?xe.documentElement.scrollLeft:xe.body.scrollLeft,s=ue.pointerX-Ht.scrollLeft,a=ue.pointerY-Ht.scrollTop;h&&!i;)n=(i=Wt(h.parentNode))?Ht:h.parentNode,r=i?{bottom:Math.max(Z.clientHeight,G.innerHeight||0),right:Math.max(Z.clientWidth,G.innerWidth||0),left:0,top:0}:n.getBoundingClientRect(),u=l=0,se&&((c=n._gsMaxScrollY-n.scrollTop)<0?l=c:a>r.bottom-me&&c?(fe=!0,l=Math.min(c,f*(1-Math.max(0,r.bottom-a)/me)|0)):a<r.top+de&&n.scrollTop&&(fe=!0,l=-Math.min(n.scrollTop,f*(1-Math.max(0,a-r.top)/de)|0)),l&&(n.scrollTop+=l)),oe&&((c=n._gsMaxScrollX-n.scrollLeft)<0?u=c:s>r.right-pe&&c?(fe=!0,u=Math.min(c,f*(1-Math.max(0,r.right-s)/pe)|0)):s<r.left+ge&&n.scrollLeft&&(fe=!0,u=-Math.min(n.scrollLeft,f*(1-Math.max(0,s-r.left)/ge)|0)),u&&(n.scrollLeft+=u)),i&&(u||l)&&(G.scrollTo(n.scrollLeft,n.scrollTop),Ee(ue.pointerX+u,ue.pointerY+l)),h=n}if(Et){var d=ue.x,p=ue.y;ne?(ue.deltaX=d-parseFloat(_e.rotation),ue.rotation=d,_e.rotation=d+"deg",_e.renderTransform(1,_e)):V?(se&&(ue.deltaY=p-V.top(),V.top(p)),oe&&(ue.deltaX=d-V.left(),V.left(d))):ee?(se&&(ue.deltaY=p-parseFloat(_e.y),_e.y=p+"px"),oe&&(ue.deltaX=d-parseFloat(_e.x),_e.x=d+"px"),_e.renderTransform(1,_e)):(se&&(ue.deltaY=p-parseFloat(t.style.top||0),t.style.top=p+"px"),oe&&(ue.deltaY=d-parseFloat(t.style.left||0),t.style.left=d+"px")),!pt||e||Gt||(!(Gt=!0)===O(ue,"drag","onDrag")&&(oe&&(ue.x-=ue.deltaX),se&&(ue.y-=ue.deltaY),o(!0)),Gt=!1)}Et=!1}function s(e,n){var i,r,s=ue.x,a=ue.y;t._gsap||(_e=Q.core.getCache(t)),ee?(ue.x=parseFloat(_e.x),ue.y=parseFloat(_e.y)):ne?ue.x=ue.rotation=parseFloat(_e.rotation):V?(ue.y=V.top(),ue.x=V.left()):(ue.y=parseInt(t.style.top||(r=A(t))&&r.top,10)||0,ue.x=parseInt(t.style.left||(r||{}).left,10)||0),(Tt||kt||St)&&!n&&(ue.isDragging||ue.isThrowing)&&(St&&($t.x=ue.x,$t.y=ue.y,(i=St($t)).x!==ue.x&&(ue.x=i.x,Et=!0),i.y!==ue.y&&(ue.y=i.y,Et=!0)),Tt&&(i=Tt(ue.x))!==ue.x&&(ue.x=i,ne&&(ue.rotation=i),Et=!0),kt&&((i=kt(ue.y))!==ue.y&&(ue.y=i),Et=!0)),Et&&o(!0),e||(ue.deltaX=ue.x-s,ue.deltaY=ue.y-a,O(ue,"throwupdate","onThrowUpdate"))}function c(t,e,n,i){return null==e&&(e=-Lt),null==n&&(n=Lt),a(t)?function(r){var o=ue.isPressed?1-ue.edgeResistance:1;return t.call(ue,n<r?n+(r-n)*o:r<e?e+(r-e)*o:r)*i}:Mt(t)?function(i){for(var r,o,s=t.length,a=0,u=Lt;-1<--s;)(o=(r=t[s])-i)<0&&(o=-o),o<u&&e<=r&&r<=n&&(a=s,u=o);return t[a]}:isNaN(t)?function(t){return t}:function(){return t*i}}function f(){var i,r,o,s;ot=!1,V?(V.calibrate(),ue.minX=yt=-V.maxScrollLeft(),ue.minY=bt=-V.maxScrollTop(),ue.maxX=gt=ue.maxY=_t=0,ot=!0):e.bounds&&(i=M(e.bounds,t.parentNode),ne?(ue.minX=yt=i.left,ue.maxX=gt=i.left+i.width,ue.minY=bt=ue.maxY=_t=0):l(e.bounds.maxX)&&l(e.bounds.maxY)?(r=M(t,t.parentNode),ue.minX=yt=Math.round(n(ie,"px")+i.left-r.left-.5),ue.minY=bt=Math.round(n(re,"px")+i.top-r.top-.5),ue.maxX=gt=Math.round(yt+(i.width-r.width)),ue.maxY=_t=Math.round(bt+(i.height-r.height))):(i=e.bounds,ue.minX=yt=i.minX,ue.minY=bt=i.minY,ue.maxX=gt=i.maxX,ue.maxY=_t=i.maxY),gt<yt&&(ue.minX=gt,ue.maxX=gt=yt,yt=ue.minX),_t<bt&&(ue.minY=_t,ue.maxY=_t=bt,bt=ue.minY),ne&&(ue.minRotation=yt,ue.maxRotation=gt),ot=!0),e.liveSnap&&(o=!0===e.liveSnap?e.snap||{}:e.liveSnap,s=Mt(o)||a(o),ne?(Tt=c(s?o:o.rotation,yt,gt,1),kt=null):o.points?St=function(t,e,n,i,r,o,s){return o=o&&o<Lt?o*o:Lt,a(t)?function(a){var u,l,c,h=ue.isPressed?1-ue.edgeResistance:1,f=a.x,d=a.y;return a.x=f=n<f?n+(f-n)*h:f<e?e+(f-e)*h:f,a.y=d=r<d?r+(d-r)*h:d<i?i+(d-i)*h:d,(u=t.call(ue,a))!==a&&(a.x=u.x,a.y=u.y),1!==s&&(a.x*=s,a.y*=s),o<Lt&&(l=a.x-f,c=a.y-d,o<l*l+c*c&&(a.x=f,a.y=d)),a}:Mt(t)?function(e){for(var n,i,r,s,a=t.length,u=0,l=Lt;-1<--a;)(s=(n=(r=t[a]).x-e.x)*n+(i=r.y-e.y)*i)<l&&(u=a,l=s);return l<=o?t[u]:e}:function(t){return t}}(s?o:o.points,yt,gt,bt,_t,o.radius,V?-1:1):(oe&&(Tt=c(s?o:o.x||o.left||o.scrollLeft,yt,gt,V?-1:1)),se&&(kt=c(s?o:o.y||o.top||o.scrollTop,bt,_t,V?-1:1))))}function m(){ue.isThrowing=!1,O(ue,"throwcomplete","onThrowComplete")}function b(){ue.isThrowing=!1}function T(n,i){var r,o,l,c;n&&ht?(!0===n&&(r=e.snap||e.liveSnap||{},o=Mt(r)||a(r),n={resistance:(e.throwResistance||e.resistance||1e3)/(ne?10:1)},ne?n.rotation=P(ue,o?r:r.rotation,gt,yt,1,i):(oe&&(n[ie]=P(ue,o?r:r.points||r.x||r.left,gt,yt,V?-1:1,i||"x"===ue.lockedAxis)),se&&(n[re]=P(ue,o?r:r.points||r.y||r.top,_t,bt,V?-1:1,i||"y"===ue.lockedAxis)),(r.points||Mt(r)&&u(r[0]))&&(n.linkedProps=ie+","+re,n.radius=r.radius))),ue.isThrowing=!0,c=isNaN(e.overshootTolerance)?1===e.edgeResistance?0:1-ue.edgeResistance+.2:e.overshootTolerance,n.duration||(n.duration={max:Math.max(e.minDuration||0,"maxDuration"in e?e.maxDuration:2),min:isNaN(e.minDuration)?0===c||u(n)&&1e3<n.resistance?0:.5:e.minDuration,overshoot:c}),ue.tween=l=Q.to(V||t,{inertia:n,data:"_draggable",onComplete:m,onInterrupt:b,onUpdate:e.fastMode?O:s,onUpdateParams:e.fastMode?[ue,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:[]}),e.fastMode||(V&&(V._skip=!0),l.render(1e9,!0,!0),s(!0,!0),ue.endX=ue.x,ue.endY=ue.y,ne&&(ue.endRotation=ue.x),l.play(0),s(!0,!0),V&&(V._skip=!1))):ot&&ue.applyBounds()}function R(e){var n,i=Xt;Xt=r(t.parentNode,!0),e&&ue.isPressed&&!Xt.equals(i||new At)&&(n=i.inverse().apply({x:J,y:tt}),Xt.apply(n,n),J=n.x,tt=n.y),Xt.equals(Nt)&&(Xt=null)}function z(){var e,i,a,u=1-ue.edgeResistance,l=be?w(xe):0,c=be?D(xe):0;R(!1),Xt&&(Yt.x=ue.pointerX-l,Yt.y=ue.pointerY-c,Xt.apply(Yt,Yt),J=Yt.x,tt=Yt.y),Et&&(Ee(ue.pointerX,ue.pointerY),o(!0)),V?(f(),it=V.top(),nt=V.left()):(De()?(s(!0,!0),f()):ue.applyBounds(),ne?(e=t.ownerSVGElement?[_e.xOrigin-t.getBBox().x,_e.yOrigin-t.getBBox().y]:(A(t)[Ot]||"0 0").split(" "),wt=ue.rotationOrigin=r(t).apply({x:parseFloat(e[0])||0,y:parseFloat(e[1])||0}),s(!0,!0),i=ue.pointerX-wt.x-l,a=wt.y-ue.pointerY+c,nt=ue.x,it=ue.y=Math.atan2(a,i)*Pt):(it=n(re,"px"),nt=n(ie,"px"))),ot&&u&&(gt<nt?nt=gt+(nt-gt)/u:nt<yt&&(nt=yt-(yt-nt)/u),ne||(_t<it?it=_t+(it-_t)/u:it<bt&&(it=bt-(bt-it)/u))),ue.startX=nt,ue.startY=it}function q(){!et.parentNode||De()||ue.isDragging||et.parentNode.removeChild(et)}function $(n,i){var r;if(!U||ue.isPressed||!n||!("mousedown"!==n.type&&"pointerdown"!==n.type||i)&&It()-ye<30&&at[ue.pointerEvent.type])Jt&&n&&U&&_(n);else{if(Ut=De(),ue.pointerEvent=n,at[n.type]?(zt=~n.type.indexOf("touch")?n.currentTarget||n.target:xe,v(zt,"touchend",Ce),v(zt,"touchmove",we),v(zt,"touchcancel",Ce),v(xe,"touchstart",x)):(zt=null,v(xe,"mousemove",we)),Qt=null,dt&&zt||(v(xe,"mouseup",Ce),n&&n.target&&v(n.target,"mouseup",Ce)),Ft=ve.call(ue,n.target)&&!1===e.dragClickables&&!i)return v(n.target,"change",Ce),O(ue,"pressInit","onPressInit"),O(ue,"press","onPress"),void N(le,!0);if(Vt=!(!zt||oe==se||!1===ue.vars.allowNativeTouchScrolling||ue.vars.allowContextMenu&&n&&(n.ctrlKey||2<n.which))&&(oe?"y":"x"),(Jt=!Vt&&!ue.allowEventDefault)&&(_(n),v(G,"touchforcechange",_)),n.changedTouches?(n=xt=n.changedTouches[0],Dt=n.identifier):n.pointerId?Dt=n.pointerId:xt=Dt=null,ut++,function(t){jt.push(t),1===jt.length&&Q.ticker.add(p)}(o),tt=ue.pointerY=n.pageY,J=ue.pointerX=n.pageX,O(ue,"pressInit","onPressInit"),(Vt||ue.autoScroll)&&k(t.parentNode),!t.parentNode||!ue.autoScroll||V||ne||!t.parentNode._gsMaxScrollX||et.parentNode||t.getBBox||(et.style.width=t.parentNode.scrollWidth+"px",t.parentNode.appendChild(et)),z(),ue.tween&&ue.tween.kill(),ue.isThrowing=!1,Q.killTweensOf(V||t,ce,!0),V&&Q.killTweensOf(t,{scrollTo:1},!0),ue.tween=ue.lockedAxis=null,!e.zIndexBoost&&(ne||V||!1===e.zIndexBoost)||(t.style.zIndex=B.zIndex++),ue.isPressed=!0,pt=!(!e.onDrag&&!ue._listeners.drag),mt=!(!e.onMove&&!ue._listeners.move),!ne&&(!1!==e.cursor||e.activeCursor))for(r=le.length;-1<--r;)Q.set(le[r],{cursor:e.activeCursor||e.cursor||("grab"===ft?"grabbing":ft)});O(ue,"press","onPress")}}function H(e){if(e&&ue.isDragging&&!V){var n=e.target||t.parentNode,i=n.scrollLeft-n._gsScrollX,r=n.scrollTop-n._gsScrollY;(i||r)&&(Xt?(J-=i*Xt.a+r*Xt.c,tt-=r*Xt.d+i*Xt.b):(J-=i,tt-=r),n._gsScrollX+=i,n._gsScrollY+=r,Ee(ue.pointerX,ue.pointerY))}}function W(t){var e=It(),n=e-ye<40,i=e-he<40,r=n&&Kt===ye,o=ue.pointerEvent&&ue.pointerEvent.defaultPrevented,s=n&&Zt===ye,a=t.isTrusted||null==t.isTrusted&&n&&r;return(r||i&&!1!==ue.vars.suppressClickOnDrag)&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),!n||ue.pointerEvent&&ue.pointerEvent.defaultPrevented||r&&(!a||s)?void((ue.isPressed||i||n)&&(a&&t.detail&&n&&!o||_(t))):(a&&r&&(Zt=ye),void(Kt=ye))}function X(t){return Xt?{x:t.x*Xt.a+t.y*Xt.c+Xt.e,y:t.x*Xt.b+t.y*Xt.d+Xt.f}:{x:t.x,y:t.y}}var Y;Y=vt.call(this)||this,Q||j(1),t=rt(t)[0],ht=ht||Q.plugins.inertia,Y.vars=e=d(e||{}),Y.target=t,Y.x=Y.y=Y.rotation=0,Y.dragResistance=parseFloat(e.dragResistance)||0,Y.edgeResistance=isNaN(e.edgeResistance)?1:parseFloat(e.edgeResistance)||0,Y.lockAxis=e.lockAxis,Y.autoScroll=e.autoScroll||0,Y.lockedAxis=null,Y.allowEventDefault=!!e.allowEventDefault,Q.getProperty(t,"x");var U,V,J,tt,nt,it,ot,pt,mt,gt,yt,_t,bt,xt,Dt,wt,Et,Ct,Tt,kt,St,Ft,zt,Xt,Ut,Vt,Qt,Gt,Kt,Zt,Jt,te=(e.type||"x,y").toLowerCase(),ee=~te.indexOf("x")||~te.indexOf("y"),ne=-1!==te.indexOf("rotation"),ie=ne?"rotation":ee?"x":"left",re=ee?"y":"top",oe=!(!~te.indexOf("x")&&!~te.indexOf("left")&&"scroll"!==te),se=!(!~te.indexOf("y")&&!~te.indexOf("top")&&"scroll"!==te),ae=e.minimumMovement||2,ue=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(Y),le=rt(e.trigger||e.handle||t),ce={},he=0,fe=!1,de=e.autoScrollMarginTop||40,pe=e.autoScrollMarginRight||40,me=e.autoScrollMarginBottom||40,ge=e.autoScrollMarginLeft||40,ve=e.clickableTest||L,ye=0,_e=t._gsap||Q.core.getCache(t),be=function t(e){return"fixed"===A(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),xe=t.ownerDocument||K,De=function(){return ue.tween&&ue.tween.isActive()},we=function(t){var e,n,i,r,o,s,u=t;if(U&&!lt&&ue.isPressed&&t){if(e=(ue.pointerEvent=t).changedTouches){if((t=e[0])!==xt&&t.identifier!==Dt){for(r=e.length;-1<--r&&(t=e[r]).identifier!==Dt;);if(r<0)return}}else if(t.pointerId&&Dt&&t.pointerId!==Dt)return;zt&&Vt&&!Qt&&(Yt.x=t.pageX,Yt.y=t.pageY,Xt&&Xt.apply(Yt,Yt),n=Yt.x,i=Yt.y,((o=Math.abs(n-J))!==(s=Math.abs(i-tt))&&(ae<o||ae<s)||ct&&Vt===Qt)&&(Qt=s<o&&oe?"x":"y",Vt&&Qt!==Vt&&v(G,"touchforcechange",_),!1!==ue.vars.lockAxisOnTouchScroll&&oe&&se&&(ue.lockedAxis="x"===Qt?"y":"x",a(ue.vars.onLockAxis)&&ue.vars.onLockAxis.call(ue,u)),ct&&Vt===Qt))?Ce(u):(Jt=ue.allowEventDefault||Vt&&(!Qt||Vt===Qt)||!1===u.cancelable?Jt&&!1:(_(u),!0),ue.autoScroll&&(fe=!0),Ee(t.pageX,t.pageY,mt))}else Jt&&t&&U&&_(t)},Ee=function(t,e,n){var i,r,o,s,u,l,c=1-ue.dragResistance,f=1-ue.edgeResistance,d=ue.pointerX,p=ue.pointerY,m=it,g=ue.x,v=ue.y,y=ue.endX,_=ue.endY,b=ue.endRotation,x=Et;ue.pointerX=t,ue.pointerY=e,be&&(t-=w(xe),e-=D(xe)),ne?(s=Math.atan2(wt.y-e,t-wt.x)*Pt,180<(u=ue.y-s)?(it-=360,ue.y=s):u<-180&&(it+=360,ue.y=s),o=ue.x!==nt||Math.abs(it-s)>ae?(ue.y=s,nt+(it-s)*c):nt):(Xt&&(l=t*Xt.a+e*Xt.c+Xt.e,e=t*Xt.b+e*Xt.d+Xt.f,t=l),(r=e-tt)<ae&&-ae<r&&(r=0),(i=t-J)<ae&&-ae<i&&(i=0),(ue.lockAxis||ue.lockedAxis)&&(i||r)&&((l=ue.lockedAxis)||(ue.lockedAxis=l=oe&&Math.abs(i)>Math.abs(r)?"y":se?"x":null,l&&a(ue.vars.onLockAxis)&&ue.vars.onLockAxis.call(ue,ue.pointerEvent)),"y"===l?r=0:"x"===l&&(i=0)),o=h(nt+i*c),s=h(it+r*c)),(Tt||kt||St)&&(ue.x!==o||ue.y!==s&&!ne)?(St&&($t.x=o,$t.y=s,l=St($t),o=h(l.x),s=h(l.y)),Tt&&(o=h(Tt(o))),kt&&(s=h(kt(s)))):ot&&(gt<o?o=gt+Math.round((o-gt)*f):o<yt&&(o=yt+Math.round((o-yt)*f)),ne||(_t<s?s=Math.round(_t+(s-_t)*f):s<bt&&(s=Math.round(bt+(s-bt)*f)))),ue.x===o&&(ue.y===s||ne)||(ne?(ue.endRotation=ue.x=ue.endX=o,Et=!0):(se&&(ue.y=ue.endY=s,Et=!0),oe&&(ue.x=ue.endX=o,Et=!0)),n&&!1===O(ue,"move","onMove")?(ue.pointerX=d,ue.pointerY=p,it=m,ue.x=g,ue.y=v,ue.endX=y,ue.endY=_,ue.endRotation=b,Et=x):!ue.isDragging&&ue.isPressed&&(ue.isDragging=!0,O(ue,"dragstart","onDragStart")))},Ce=function n(i,r){if(U&&ue.isPressed&&(!i||null==Dt||r||!(i.pointerId&&i.pointerId!==Dt||i.changedTouches&&!function(t,e){for(var n=t.length;n--;)if(t[n].identifier===e)return!0}(i.changedTouches,Dt)))){ue.isPressed=!1;var s,a,u,l,c,h=i,f=ue.isDragging,d=ue.vars.allowContextMenu&&i&&(i.ctrlKey||2<i.which),p=Q.delayedCall(.001,q);if(zt?(y(zt,"touchend",n),y(zt,"touchmove",we),y(zt,"touchcancel",n),y(xe,"touchstart",x)):y(xe,"mousemove",we),y(G,"touchforcechange",_),dt&&zt||(y(xe,"mouseup",n),i&&i.target&&y(i.target,"mouseup",n)),Et=!1,Ft&&!d)return i&&(y(i.target,"change",n),ue.pointerEvent=h),N(le,!1),O(ue,"release","onRelease"),O(ue,"click","onClick"),void(Ft=!1);if(g(o),!ne)for(a=le.length;-1<--a;)S(le[a],"cursor",e.cursor||(!1!==e.cursor?ft:null));if(f&&(he=qt=It(),ue.isDragging=!1),ut--,i){if((s=i.changedTouches)&&(i=s[0])!==xt&&i.identifier!==Dt){for(a=s.length;-1<--a&&(i=s[a]).identifier!==Dt;);if(a<0)return}ue.pointerEvent=h,ue.pointerX=i.pageX,ue.pointerY=i.pageY}return d&&h?(_(h),Jt=!0,O(ue,"release","onRelease")):h&&!f?(Jt=!1,Ut&&(e.snap||e.bounds)&&T(e.inertia||e.throwProps),O(ue,"release","onRelease"),ct&&"touchmove"===h.type||-1!==h.type.indexOf("cancel")||(O(ue,"click","onClick"),It()-ye<300&&O(ue,"doubleclick","onDoubleClick"),l=h.target||t,ye=It(),c=function(){ye===Kt||!ue.enabled()||ue.isPressed||h.defaultPrevented||(l.click?l.click():xe.createEvent&&((u=xe.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,G,1,ue.pointerEvent.screenX,ue.pointerEvent.screenY,ue.pointerX,ue.pointerY,!1,!1,!1,!1,0,null),l.dispatchEvent(u)))},ct||h.defaultPrevented||Q.delayedCall(.05,c))):(T(e.inertia||e.throwProps),ue.allowEventDefault||!h||!1===e.dragClickables&&ve.call(ue,h.target)||!f||Vt&&(!Qt||Vt!==Qt)||!1===h.cancelable?Jt=!1:(Jt=!0,_(h)),O(ue,"release","onRelease")),De()&&p.duration(ue.tween.duration()),f&&O(ue,"dragend","onDragEnd"),!0}Jt&&i&&U&&_(i)};return(Ct=B.get(t))&&Ct.kill(),Y.startDrag=function(e,n){var i,r,o,s;$(e||ue.pointerEvent,!0),n&&!ue.hitTest(e||ue.pointerEvent)&&(i=F(e||ue.pointerEvent),r=F(t),o=X({x:i.left+i.width/2,y:i.top+i.height/2}),s=X({x:r.left+r.width/2,y:r.top+r.height/2}),J-=o.x-s.x,tt-=o.y-s.y),ue.isDragging||(ue.isDragging=!0,O(ue,"dragstart","onDragStart"))},Y.drag=we,Y.endDrag=function(t){return Ce(t||ue.pointerEvent,!0)},Y.timeSinceDrag=function(){return ue.isDragging?0:(It()-he)/1e3},Y.timeSinceClick=function(){return(It()-ye)/1e3},Y.hitTest=function(t,e){return B.hitTest(ue.target,t,e)},Y.getDirection=function(e,n){var i,r,o,s,a,l,c="velocity"===e&&ht?e:u(e)&&!ne?"element":"start";return"element"===c&&(a=F(ue.target),l=F(e)),i="start"===c?ue.x-nt:"velocity"===c?ht.getVelocity(t,ie):a.left+a.width/2-(l.left+l.width/2),ne?i<0?"counter-clockwise":"clockwise":(n=n||2,r="start"===c?ue.y-it:"velocity"===c?ht.getVelocity(t,re):a.top+a.height/2-(l.top+l.height/2),s=(o=Math.abs(i/r))<1/n?"":i<0?"left":"right",o<n&&(""!==s&&(s+="-"),s+=r<0?"up":"down"),s)},Y.applyBounds=function(n,i){var r,a,u,l,c,h;if(n&&e.bounds!==n)return e.bounds=n,ue.update(!0,i);if(s(!0),f(),ot&&!De()){if(r=ue.x,a=ue.y,gt<r?r=gt:r<yt&&(r=yt),_t<a?a=_t:a<bt&&(a=bt),(ue.x!==r||ue.y!==a)&&(u=!0,ue.x=ue.endX=r,ne?ue.endRotation=r:ue.y=ue.endY=a,o(Et=!0),ue.autoScroll&&!ue.isDragging))for(k(t.parentNode),l=t,Ht.scrollTop=null!=G.pageYOffset?G.pageYOffset:null!=xe.documentElement.scrollTop?xe.documentElement.scrollTop:xe.body.scrollTop,Ht.scrollLeft=null!=G.pageXOffset?G.pageXOffset:null!=xe.documentElement.scrollLeft?xe.documentElement.scrollLeft:xe.body.scrollLeft;l&&!h;)c=(h=Wt(l.parentNode))?Ht:l.parentNode,se&&c.scrollTop>c._gsMaxScrollY&&(c.scrollTop=c._gsMaxScrollY),oe&&c.scrollLeft>c._gsMaxScrollX&&(c.scrollLeft=c._gsMaxScrollX),l=c;ue.isThrowing&&(u||ue.endX>gt||ue.endX<yt||ue.endY>_t||ue.endY<bt)&&T(e.inertia||e.throwProps,u)}return ue},Y.update=function(e,n,i){var r=ue.x,a=ue.y;return R(!n),e?ue.applyBounds():(Et&&i&&o(!0),s(!0)),n&&(Ee(ue.pointerX,ue.pointerY),Et&&o(!0)),ue.isPressed&&!n&&(oe&&.01<Math.abs(r-ue.x)||se&&.01<Math.abs(a-ue.y)&&!ne)&&z(),ue.autoScroll&&(k(t.parentNode,ue.isDragging),fe=ue.isDragging,o(!0),C(t,H),E(t,H)),ue},Y.enable=function(n){var r,o,s,a={lazy:!0};if(ne||!1===e.cursor||(a.cursor=e.cursor||ft),Q.utils.checkPrefix("touchCallout")&&(a.touchCallout="none"),a.touchAction=oe==se?"none":e.allowNativeTouchScrolling||e.allowEventDefault?"manipulation":oe?"pan-y":"pan-x","soft"!==n){for(o=le.length;-1<--o;)s=le[o],dt||v(s,"mousedown",$),v(s,"touchstart",$),v(s,"click",W,!0),Q.set(s,a),s.getBBox&&s.ownerSVGElement&&Q.set(s.ownerSVGElement,{touchAction:oe==se?"none":e.allowNativeTouchScrolling||e.allowEventDefault?"manipulation":oe?"pan-y":"pan-x"}),e.allowContextMenu||v(s,"contextmenu",i);N(le,!1)}return E(t,H),U=!0,ht&&"soft"!==n&&ht.track(V||t,ee?"x,y":ne?"rotation":"top,left"),t._gsDragID=r="d"+Bt++,Rt[r]=ue,V&&(V.enable(),V.element._gsDragID=r),(e.bounds||ne)&&z(),e.bounds&&ue.applyBounds(),ue},Y.disable=function(e){var n,r,s=ue.isDragging;if(!ne)for(n=le.length;-1<--n;)S(le[n],"cursor",null);if("soft"!==e){for(n=le.length;-1<--n;)r=le[n],S(r,"touchCallout",null),S(r,"touchAction",null),y(r,"mousedown",$),y(r,"touchstart",$),y(r,"click",W),y(r,"contextmenu",i);N(le,!0),zt&&(y(zt,"touchcancel",Ce),y(zt,"touchend",Ce),y(zt,"touchmove",we)),y(xe,"mouseup",Ce),y(xe,"mousemove",we)}return C(t,H),U=!1,ht&&"soft"!==e&&ht.untrack(V||t,ee?"x,y":ne?"rotation":"top,left"),V&&V.disable(),g(o),ue.isDragging=ue.isPressed=Ft=!1,s&&O(ue,"dragend","onDragEnd"),ue},Y.enabled=function(t,e){return arguments.length?t?ue.enable(e):ue.disable(e):U},Y.kill=function(){return ue.isThrowing=!1,ue.tween&&ue.tween.kill(),ue.disable(),Q.set(le,{clearProps:"userSelect"}),delete Rt[t._gsDragID],ue},~te.indexOf("scroll")&&(V=Y.scrollProxy=new I(t,function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t}({onKill:function(){ue.isPressed&&Ce(null)}},e)),t.style.overflowY=se&&!st?"auto":"hidden",t.style.overflowX=oe&&!st?"auto":"hidden",t=V.content),ne?ce.rotation=1:(oe&&(ce[ie]=1),se&&(ce[re]=1)),_e.force3D=!("force3D"in e)||e.force3D,Y.enable(),Y}var z,q,$,H,W,X,Y,U,V,Q,G,K,Z,J,tt,et,nt,it,rt,ot,st,at,ut,lt,ct,ht,ft,dt,pt,mt,gt,vt,yt="transform",_t=yt+"Origin",bt=function(t){var e=t.ownerDocument||t;!(yt in t.style)&&"msTransform"in t.style&&(_t=(yt="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(q=window,Y=new At,e){$=(z=e).documentElement,H=e.body;var n=e.createElement("div"),i=e.createElement("div");H.appendChild(n),n.appendChild(i),n.style.position="static",n.style[yt]="translate3d(0,0,1px)",U=i.offsetParent!==n,H.removeChild(n)}return e},xt=function(t){for(var e,n;t&&t!==H;)(n=t._gsap)&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e},Dt=[],wt=[],Et=function(){return q.pageYOffset||z.scrollTop||$.scrollTop||H.scrollTop||0},Ct=function(){return q.pageXOffset||z.scrollLeft||$.scrollLeft||H.scrollLeft||0},Tt=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},kt=function t(e){return"fixed"===q.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},St=function(t,n){var i,r,o,s,a,u=Tt(t),l=t===u,c=u?Dt:wt;if(t===q)return t;if(c.length||c.push(e(t,1),e(t,2),e(t,3)),i=u?X:W,u)o=l?{x:0,y:0}:t.getBBox(),a=(r=t.transform?t.transform.baseVal:{}).numberOfItems?(s=(r=1<r.numberOfItems?function(t){for(var e=new At,n=0;n<t.numberOfItems;n++)e.multiply(t.getItem(n).matrix);return e}(r):r.getItem(0).matrix).a*o.x+r.c*o.y,r.b*o.x+r.d*o.y):(r=Y,s=o.x,o.y),n&&"g"===t.tagName.toLowerCase()&&(s=a=0),i.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+s)+","+(r.f+a)+")"),(l?u:t.parentNode).appendChild(i);else{if(s=a=0,U)for(r=t.offsetParent,o=t;(o=o&&o.parentNode)&&o!==r&&o.parentNode;)4<(q.getComputedStyle(o)[yt]+"").length&&(s=o.offsetLeft,a=o.offsetTop,o=0);(o=i.style).top=t.offsetTop-a+"px",o.left=t.offsetLeft-s+"px",r=q.getComputedStyle(t),o[yt]=r[yt],o[_t]=r[_t],o.border=r.border,o.borderLeftStyle=r.borderLeftStyle,o.borderTopStyle=r.borderTopStyle,o.borderLeftWidth=r.borderLeftWidth,o.borderTopWidth=r.borderTopWidth,o.position="fixed"===r.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i},At=((V=i.prototype).inverse=function(){var t=this.a,e=this.b,i=this.c,r=this.d,o=this.e,s=this.f,a=t*r-e*i||1e-10;return n(this,r/a,-e/a,-i/a,t/a,(i*s-r*o)/a,-(t*s-e*o)/a)},V.multiply=function(t){var e=this.a,i=this.b,r=this.c,o=this.d,s=this.e,a=this.f,u=t.a,l=t.c,c=t.b,h=t.d,f=t.e,d=t.f;return n(this,u*e+c*r,u*i+c*o,l*e+h*r,l*i+h*o,s+f*e+d*r,a+f*i+d*o)},V.clone=function(){return new i(this.a,this.b,this.c,this.d,this.e,this.f)},V.equals=function(t){var e=this.a,n=this.b,i=this.c,r=this.d,o=this.e,s=this.f;return e===t.a&&n===t.b&&i===t.c&&r===t.d&&o===t.e&&s===t.f},V.apply=function(t,e){void 0===e&&(e={});var n=t.x,i=t.y,r=this.a,o=this.b,s=this.c,a=this.d,u=this.e,l=this.f;return e.x=n*r+i*s+u||0,e.y=n*o+i*a+l||0,e},i),Ft="transform",Ot="transformOrigin",Mt=Array.isArray,Pt=180/Math.PI,Lt=1e20,Nt=new At,It=Date.now||function(){return(new Date).getTime()},jt=[],Rt={},Bt=0,zt=/^(?:a|input|textarea|button|select)$/i,qt=0,$t={},Ht={},Wt=function(t){return!(t&&t!==Z&&9!==t.nodeType&&t!==K.body&&t!==G&&t.nodeType&&t.parentNode)},Xt={},Yt={},Ut=function(t,e){e=rt(e)[0];var n,i,o,s,a,u,c,h,f,d,p,m,g,v,y=t.getBBox&&t.ownerSVGElement,_=t.ownerDocument||K;if(t===G)o=D(_),i=(n=w(_))+(_.documentElement.clientWidth||t.innerWidth||_.body.clientWidth||0),s=o+((t.innerHeight||0)-20<_.documentElement.clientHeight?_.documentElement.clientHeight:t.innerHeight||_.body.clientHeight||0);else{if(e===G||l(e))return t.getBoundingClientRect();n=o=0,y?(p=(d=t.getBBox()).width,m=d.height):(t.viewBox&&(d=t.viewBox.baseVal)&&(n=d.x||0,o=d.y||0,p=d.width,m=d.height),p||(d="border-box"===(g=A(t)).boxSizing,p=(parseFloat(g.width)||t.clientWidth||0)+(d?0:parseFloat(g.borderLeftWidth)+parseFloat(g.borderRightWidth)),m=(parseFloat(g.height)||t.clientHeight||0)+(d?0:parseFloat(g.borderTopWidth)+parseFloat(g.borderBottomWidth)))),i=p,s=m}return t===e?{left:n,top:o,width:i-n,height:s-o}:(u=(a=r(e,!0).multiply(r(t))).apply({x:n,y:o}),c=a.apply({x:i,y:o}),h=a.apply({x:i,y:s}),f=a.apply({x:n,y:s}),n=Math.min(u.x,c.x,h.x,f.x), 10o=Math.min(u.y,c.y,h.y,f.y),{left:n+((v=e.parentNode||{}).scrollLeft||0),top:o+(v.scrollTop||0),width:Math.max(u.x,c.x,h.x,f.x)-n,height:Math.max(u.y,c.y,h.y,f.y)-o})},Vt=((gt=R.prototype).addEventListener=function(t,e){var n=this._listeners[t]||(this._listeners[t]=[]);~n.indexOf(e)||n.push(e)},gt.removeEventListener=function(t,e){var n=this._listeners[t],i=n&&n.indexOf(e)||-1;-1<i&&n.splice(i,1)},gt.dispatchEvent=function(t){var e,n=this;return(this._listeners[t]||[]).forEach(function(i){return!1===i.call(n,{type:t,target:n.target})&&(e=!1)}),e},R),Qt=(function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(B,vt=Vt),B.register=function(t){Q=t,j()},B.create=function(t,e){return nt||j(!0),rt(t).map(function(t){return new B(t,e)})},B.get=function(t){return Rt[(rt(t)[0]||{})._gsDragID]},B.timeSinceDrag=function(){return(It()-qt)/1e3},B.hitTest=function(t,e,n){if(t===e)return!1;var i,r,o,s=F(t),a=F(e),u=s.top,l=s.left,c=s.right,h=s.bottom,f=s.width,d=s.height,p=a.left>c||a.right<l||a.top>h||a.bottom<u;return p||!n?!p:(o=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(i={left:Math.max(l,a.left),top:Math.max(u,a.top)}).width=Math.min(c,a.right)-i.left,i.height=Math.min(h,a.bottom)-i.top,!(i.width<0||i.height<0)&&(o?f*d*(n*=.01)<=(r=i.width*i.height)||r>=a.width*a.height*n:i.width>n&&i.height>n))},B);!function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Qt.prototype,{pointerX:0,pointerY:0,startX:0,startY:0,deltaX:0,deltaY:0,isDragging:!1,isPressed:!1}),Qt.zIndex=1e3,Qt.version="3.5.1",s()&&Q.registerPlugin(Qt),t.Draggable=Qt,t.default=Qt,"undefined"==typeof window||window!==t?Object.defineProperty(t,"__esModule",{value:!0}):delete t.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.