28 lines
78 KiB
JavaScript
28 lines
78 KiB
JavaScript
/*!
|
|
* VERSION: 0.1.9
|
|
* DATE: 2019-02-07
|
|
* UPDATES AND DOCS AT: http://greensock.com
|
|
*
|
|
* @license Copyright (c) 2008-2019, GreenSock. All rights reserved.
|
|
* GSDevTools is a Club GreenSock membership benefit; You must have a valid membership to use
|
|
* this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
|
|
* This work is subject to the software agreement that was issued with your membership.
|
|
*
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
**/
|
|
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("GSDevTools",["TweenLite","core.Animation","core.SimpleTimeline","TimelineLite","utils.Draggable","plugins.CSSPlugin"],function(a,b,c,d,e){var f,g,h,i,j,k=document,l=k.documentElement,m="http://www.w3.org/2000/svg",n="http://www.w3.org/1999/xhtml",o=0,p={},q=function(a,b,c){var d=k.createElementNS?k.createElementNS("svg"===a?m:n,a):k.createElement(a);return b&&("string"==typeof b&&(b=k.querySelector(b)),b.appendChild(d)),"svg"===a&&(d.setAttribute("xmlns",m),d.setAttribute("xmlns:xlink",n)),c&&(d.style.cssText=c),d},r=function(){k.selection?k.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()},s=b._rootTimeline,t=function(b,c){for(var d=[],e=0,f=b._first;f;)f instanceof a?f.vars.id&&(d[e++]=f):(c&&f.vars.id&&(d[e++]=f),d=d.concat(t(f,c)),e=d.length),f=f._next;return d},u=function(a,b){var c=0,d=Math.max(0,a._repeat),e=a._first;for(e||(c=a.duration());e;)c=Math.max(c,e.totalDuration()>999?e.endTime(!1):e._startTime+e._totalDuration/e._timeScale),e=e._next;return!b&&d?c*(d+1)+a._repeatDelay*d:c},v=function(a){if(!a)return null;if(a instanceof b)return a;for(var c=t(s,!0),d=c.length;--d>-1;)if(c[d].vars.id===a)return c[d]},w=function(a,b,c,d){var e,f,g;return"string"==typeof a&&("="===a.charAt(1)?(e=parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)),0>e&&0===d&&(d=100),a=d/100*b.duration()+e):isNaN(a)&&b.getLabelTime&&-1!==b.getLabelTime(a)?a=b.getLabelTime(a):b===D&&(f=a.indexOf("="),f>0?(e=parseInt(a.charAt(f-1)+"1",10)*parseFloat(a.substr(f+1)),a=a.substr(0,f-1)):e=0,g=v(a),g&&(a=x(g,c/100*g.duration())+e))),a=isNaN(a)?c:parseFloat(a),Math.min(100,Math.max(0,a/b.duration()*100))},x=function(a,b){var c=a;if(b=b||0,c.timeline)for(;c.timeline.timeline;)b=b/c._timeScale+c._startTime,c=c.timeline;return b},y=function(b,c,d){f||(q("style",l).innerHTML=".gs-dev-tools{height:51px;bottom:0;left:0;right:0;display:block;position:fixed;overflow:visible;padding:0}.gs-dev-tools *{box-sizing:content-box;visibility:visible}.gs-dev-tools .gs-top{position:relative;z-index:499}.gs-dev-tools .gs-bottom{display:flex;align-items:center;justify-content:space-between;background-color:rgba(0,0,0,.6);height:42px;border-top:1px solid #999;position:relative}.gs-dev-tools .timeline{position:relative;height:8px;margin-left:15px;margin-right:15px;overflow:visible}.gs-dev-tools .progress-bar,.gs-dev-tools .timeline-track{height:8px;width:100%;position:absolute;top:0;left:0}.gs-dev-tools .timeline-track{background-color:#999;opacity:.6}.gs-dev-tools .progress-bar{background-color:#91e600;height:8px;top:0;width:0;pointer-events:none}.gs-dev-tools .seek-bar{width:100%;position:absolute;height:24px;top:-12px;left:0;background-color:transparent}.gs-dev-tools .in-point,.gs-dev-tools .out-point{width:15px;height:26px;position:absolute;top:-18px}.gs-dev-tools .in-point-shape{fill:#6d9900;stroke:rgba(0,0,0,.5);stroke-width:1}.gs-dev-tools .out-point-shape{fill:#994242;stroke:rgba(0,0,0,.5);stroke-width:1}.gs-dev-tools .in-point{transform:translateX(-100%)}.gs-dev-tools .out-point{left:100%}.gs-dev-tools .grab{stroke:rgba(255,255,255,.3);stroke-width:1}.gs-dev-tools .playhead{position:absolute;top:-5px;transform:translate(-50%,0);left:0;border-radius:50%;width:16px;height:16px;border:1px solid #6d9900;background-color:#91e600}.gs-dev-tools .gs-btn-white{fill:#fff}.gs-dev-tools .pause{opacity:0}.gs-dev-tools .select-animation{vertical-align:middle;position:relative;padding:6px 10px}.gs-dev-tools .select-animation-container{flex-grow:4;width:40%}.gs-dev-tools .select-arrow{display:inline-block;width:12px;height:7px;margin:0 7px;transform:translate(0,-2px)}.gs-dev-tools .select-arrow-shape{stroke:rgba(255,255,255,.6);stroke-width:2px;fill:none}.gs-dev-tools .rewind{height:16px;width:19px;padding:10px 4px;min-width:24px}.gs-dev-tools .rewind-path{opacity:.6}.gs-dev-tools .play-pause{width:24px;height:24px;padding:6px 10px;min-width:24px}.gs-dev-tools .ease{width:30px;height:30px;padding:10px;min-width:30px;display:none}.gs-dev-tools .ease-path{fill:none;stroke:rgba(255,255,255,.6);stroke-width:2px}.gs-dev-tools .ease-border{fill:rgba(255,255,255,.25)}.gs-dev-tools .time-scale{font-family:monospace;font-size:18px;text-align:center;color:rgba(255,255,255,.6);padding:4px 4px 4px 0;min-width:30px;margin-left:7px}.gs-dev-tools .loop{width:20px;padding:5px;min-width:20px}.gs-dev-tools .loop-path{fill:rgba(255,255,255,.6)}.gs-dev-tools label span{color:#fff;font-family:monospace;text-decoration:none;font-size:16px;line-height:18px}.gs-dev-tools .time-scale span{color:rgba(255,255,255,.6)}.gs-dev-tools button:focus,.gs-dev-tools select:focus{outline:0}.gs-dev-tools label{position:relative;cursor:pointer}.gs-dev-tools label.locked{text-decoration:none;cursor:auto}.gs-dev-tools label input,.gs-dev-tools label select{position:absolute;left:0;top:0;z-index:1;font:inherit;font-size:inherit;line-height:inherit;height:100%;width:100%;color:#000!important;opacity:0;background:0 0;border:none;padding:0;margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.gs-dev-tools label input+.display{position:relative;z-index:2}.gs-dev-tools .gs-bottom-right{vertical-align:middle;display:flex;align-items:center;flex-grow:4;width:40%;justify-content:flex-end}.gs-dev-tools .time-container{font-size:18px;font-family:monospace;color:rgba(255,255,255,.6);margin:0 5px}.gs-dev-tools .logo{width:32px;height:32px;position:relative;top:2px;margin:0 12px}.gs-dev-tools .gs-hit-area{background-color:transparent;width:100%;height:100%;top:0;position:absolute}.gs-dev-tools.minimal{height:auto;display:flex;align-items:stretch}.gs-dev-tools.minimal .gs-top{order:2;flex-grow:4;background-color:rgba(0,0,0,1)}.gs-dev-tools.minimal .gs-bottom{background-color:rgba(0,0,0,1);border-top:none}.gs-dev-tools.minimal .timeline{top:50%;transform:translate(0,-50%)}.gs-dev-tools.minimal .in-point,.gs-dev-tools.minimal .out-point{display:none}.gs-dev-tools.minimal .select-animation-container{display:none}.gs-dev-tools.minimal .rewind{display:none}.gs-dev-tools.minimal .play-pause{width:20px;height:20px;padding:4px 6px;margin-left:14px}.gs-dev-tools.minimal .time-scale{min-width:26px}.gs-dev-tools.minimal .loop{width:18px;min-width:18px;display:none}.gs-dev-tools.minimal .gs-bottom-right{display:none}@media only screen and (max-width:600px){.gs-dev-tools{height:auto;display:flex;align-items:stretch}.gs-dev-tools .gs-top{order:2;flex-grow:4;background-color:rgba(0,0,0,1);height:42px}.gs-dev-tools .gs-bottom{background-color:rgba(0,0,0,1);border-top:none}.gs-dev-tools .timeline{top:50%;transform:translate(0,-50%)}.gs-dev-tools .in-point,.gs-dev-tools .out-point{display:none}.gs-dev-tools .select-animation-container{display:none}.gs-dev-tools .rewind{display:none}.gs-dev-tools .play-pause{width:20px;height:20px;padding:4px 6px;margin-left:14px}.gs-dev-tools .time-scale{min-width:26px}.gs-dev-tools .loop{width:18px;min-width:18px;display:none}.gs-dev-tools .gs-bottom-right{display:none}}",f=!0),"string"==typeof b&&(b=document.querySelector(b));var e=q("div",b||l.getElementsByTagName("body")[0]||l);return e.setAttribute("class","gs-dev-tools"+(c?" minimal":"")),e.innerHTML='<div class=gs-hit-area></div><div class=gs-top><div class=timeline><div class=timeline-track></div><div class=progress-bar></div><div class=seek-bar></div><svg class=in-point viewBox="0 0 15 26"xmlns=http://www.w3.org/2000/svg><polygon class=in-point-shape points=".5 .5 14.5 .5 14.5 25.5 .5 17.5"/><polyline class=grab points="5.5 4 5.5 15"/><polyline class=grab points="9.5 4 9.5 17"/></svg> <svg class=out-point viewBox="0 0 15 26"xmlns=http://www.w3.org/2000/svg><polygon class=out-point-shape points=".5 .5 14.5 .5 14.5 17.5 .5 25.5"/><polyline class=grab points="5.5 4 5.5 17"/><polyline class=grab points="9.5 4 9.5 15"/></svg><div class=playhead></div></div></div><div class=gs-bottom><div class=select-animation-container><label class=select-animation><select class=animation-list><option>Global Timeline<option>myTimeline</select><nobr><span class="display animation-label">Global Timeline</span> <svg class=select-arrow viewBox="0 0 12.05 6.73"xmlns=http://www.w3.org/2000/svg><polyline class=select-arrow-shape points="0.35 0.35 6.03 6.03 11.7 0.35"/></svg></nobr></label></div><svg class=rewind viewBox="0 0 12 15.38"xmlns=http://www.w3.org/2000/svg><path d=M0,.38H2v15H0Zm2,7,10,7.36V0Z class="gs-btn-white rewind-path"/></svg> <svg class=play-pause viewBox="0 0 20.97 25.67"xmlns=http://www.w3.org/2000/svg><g class=play><path d="M8,4.88 C8,10.18 8,15.48 8,20.79 5.33,22.41 2.66,24.04 0,25.67 0,17.11 0,8.55 0,0 2.66,1.62 5.33,3.25 8,4.88"class="gs-btn-white play-1"style=stroke:#fff;stroke-width:.6px /><path d="M14.485,8.855 C16.64,10.18 18.8,11.5 20.97,12.83 16.64,15.48 12.32,18.13 8,20.79 8,15.48 8,10.18 8,4.88 10.16,6.2 12.32,7.53 14.48,8.85"class="gs-btn-white play-2"style=stroke:#fff;stroke-width:.6px /></g></svg> <svg class=loop viewBox="0 0 29 25.38"xmlns=http://www.w3.org/2000/svg><path d=M27.44,5.44,20.19,0V3.06H9.06A9.31,9.31,0,0,0,0,12.41,9.74,9.74,0,0,0,.69,16l3.06-2.23a6,6,0,0,1-.12-1.22,5.49,5.49,0,0,1,5.43-5.5H20.19v3.81Z class=loop-path /><path d=M25.25,11.54a5.18,5.18,0,0,1,.12,1.12,5.41,5.41,0,0,1-5.43,5.41H9.19V14.5L1.94,19.94l7.25,5.44V22.06H19.94A9.2,9.2,0,0,0,29,12.84a9.42,9.42,0,0,0-.68-3.53Z class=loop-path /></svg> <svg class=ease viewBox="0 0 25.67 25.67"xmlns=http://www.w3.org/2000/svg><path d=M.48,25.12c1.74-3.57,4.28-12.6,8.8-10.7s4.75,1.43,6.5-1.11S19.89,1.19,25.2.55 class=ease-path /><path d=M24.67,1V24.67H1V1H24.67m1-1H0V25.67H25.67V0Z class=ease-border /></svg><label class=time-scale><select><option value=10>10x<option value=5>5x<option value=2>2x<option value=1 selected>1x<option value=0.5>0.5x<option value=0.25>0.25x<option value=0.1>0.1x</select><span class="display time-scale-label">1x</span></label><div class=gs-bottom-right><div class=time-container><span class=time>0.00</span> / <span class=duration>0.00</span></div><a href="https://greensock.com/docs/Utilities/GSDevTools?source=GSDevTools"target=_blank title=Docs><svg class=logo viewBox="0 0 100 100"xmlns=http://www.w3.org/2000/svg><path d="M60 15.4c-.3-.4-.5-.6-.5-.7.1-.6.2-1 .2-1.7v-.4c.6.6 1.3 1.3 1.8 1.7.2.2.5.3.8.3.2 0 .3 0 .5.1h1.6c.8 0 1.6.1 2 0 .1 0 .2 0 .3-.1.6-.3 1.4-1 2.1-1.6 0 .6.1 1.2.1 1.7v1.5c0 .3 0 .5.1.7-.1.1-.2.1-.4.2-.7.4-1.7 1-2.3.9-.5-.1-1.5-.3-2.6-.7-1.2-.3-2.4-.8-3.2-1.2 0 0-.1 0-.1-.1s-.2-.4-.4-.6zm24.6 21.9c-.5-1.7-1.9-2-4.2-.7.9-1.5 2.1-1.5 2.3-2.1.9-2.5-.6-4.6-1.2-5.3.7-1.8 1.4-4.5-1-6.8-1-1-2.4-1.2-3.6-1.1 1.8 1.7 3.4 4.4 2.5 7.2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6-.4-3-1.4-9.3-1.2-13.6l-3.1 10.2s1.8 5.6 1.6 6.4c-.1.8-3.3 4.8-3.3 4.8zm5 18.8c-1.1 0-2.5-.4-3.5-.8l-1 .3.2 4s5.2.7 4.6-.4c-.6-1.2-.3-3.1-.3-3.1zm12 .6c-1 0-.3.2.4 1.2.8 1 .1 2-.8 2.3l3.2.5 1.9-1.7c.1 0-3.7-2.3-4.7-2.3zM73 76c-1.6.5-4.2.8-5.9.8-1.7.1-3.7-.1-5-.5v1.4s1.2.5 5.4.5c3.5.1 5.7-.8 5.7-.8l.9-.8c-.1.1.5-1.1-1.1-.6zm-.2 3.1c-1.6.6-3.9.6-5.6.7-1.7.1-3.7-.1-5-.5l.1 1.4s.7.3 4.9.4c3.5.1 5.7-.7 5.7-.7l.3-.5c-.1-.1.3-1-.4-.8zm5.9-42.7c-.9-.8-1.4-2.4-1.5-3.3l-1.9 2.5.7 1.2s2.5.1 2.8.1c.4 0 .3-.1-.1-.5zM69 14.7c.6-.7.2-2.7.2-2.7L66 14.6l-4.4-.8-.5-1.3-1.3-.1c.8 1.8 1.8 2.5 3.3 3.1.9.4 4.5.9 5.9-.8z"style=opacity:.4;fill-rule:evenodd;clip-rule:evenodd /></svg></a></div></div>',b&&(e.style.position="absolute",e.style.top=c?"calc(100% - 42px)":"calc(100% - 51px)"),d&&("string"==typeof d?e.style.cssText=d:"object"==typeof d&&(d.data="root",a.set(e,d).kill()),e.style.top&&(e.style.bottom="auto"),e.style.width&&a.set(e,{xPercent:-50,left:"50%",right:"auto",data:"root"}).kill()),!c&&e.offsetWidth<600&&(e.setAttribute("class","gs-dev-tools minimal"),b&&(e.style.top="calc(100% - 42px)")),e},z=function(a,b,c,d){var e,f;return("mousedown"===b||"mouseup"===b)&&(a.style.cursor="pointer"),"mousedown"===b&&(f=void 0!==a.onpointerdown?"pointerdown":void 0!==a.ontouchstart?"touchstart":null)?(e=function(b){"select"!==b.target.nodeName.toLowerCase()&&b.type===f?(b.stopPropagation(),g&&(b.preventDefault(),c.call(a,b))):b.type!==f&&c.call(a,b),g=!0},a.addEventListener(f,e,d),void a.addEventListener(b,e,d)):void a.addEventListener(b,c,d)},A=function(a,b,c){a.removeEventListener(b,c),b="mousedown"!==b?null:void 0!==a.onpointerdown?"pointerdown":void 0!==a.ontouchstart?"touchstart":null,b&&a.removeEventListener(b,c)},B=function(a,b,c,d){var e,f=a.options,g=f.length;for(b+="";--g>-1;)if(f[g].innerHTML===b||f[g].value===b)return a.selectedIndex=g,c.innerHTML=f[g].innerHTML,f[g];d&&(e=q("option",a),e.setAttribute("value",b),e.innerHTML=c.innerHTML="string"==typeof d?d:b,a.selectedIndex=f.length-1)},C=function(a,b,c){var d=a.options,e=Math.min(d.length-1,Math.max(0,a.selectedIndex+b));return a.selectedIndex=e,c&&(c.innerHTML=d[e].innerHTML),d[e].value},D=new d({data:"root",id:"Global Timeline",autoRemoveChildren:!1,smoothChildTiming:!0}),E=new d({data:"root",id:"Global Temp",autoRemoveChildren:!1,smoothChildTiming:!0}),F=a.to(D,1,{time:1,ease:Linear.easeNone,data:"root",id:"_rootTween",paused:!0,immediateRender:!1}),G=function(){var a,b,d=E._first;if(d){if(h&&h.animation()===D){for(a=D._duration;d;)b=d._next,"function"==typeof d.target&&d.target===d.vars.onComplete&&!d._duration||d.target&&d.target._gsIgnore?c.prototype.add.call(s,d,d._startTime-d._delay):D.add(d,d._startTime-d._delay),d=b;return a!==D.duration()}for(;d;)b=d._next,d._gc||d._totalTime===d._totalDuration?d.kill():c.prototype.add.call(s,d,d._startTime-d._delay),d=b}},H=function(){h&&(h.update(),i=!1),a.ticker.removeEventListener("tick",H)},I=function(a){var b=new d({data:"root",onComplete:function(){b.kill()}});return b.to(a.querySelector(".play-1"),.5,{attr:{d:"M5.75,3.13 C5.75,9.79 5.75,16.46 5.75,23.13 4.08,23.13 2.41,23.13 0.75,23.13 0.75,16.46 0.75,9.79 0.75,3.12 2.41,3.12 4.08,3.12 5.75,3.12"},ease:Power3.easeInOut,rotation:360,transformOrigin:"50% 50%"}).to(a.querySelector(".play-2"),.5,{attr:{d:"M16.38,3.13 C16.38,9.79 16.38,16.46 16.38,23.13 14.71,23.13 13.04,23.13 11.38,23.13 11.38,16.46 11.38,9.79 11.38,3.12 13.04,3.12 14.71,3.12 16.38,3.12"},ease:Power3.easeInOut,rotation:360,transformOrigin:"50% 50%"},.05),b},J=function(a){var b=new d({data:"root",paused:!0,onComplete:function(){b.kill()}});return b.to(a,.5,{rotation:360,ease:Power3.easeInOut,transformOrigin:"50% 50%"}).to(a.querySelectorAll(".loop-path"),.5,{fill:"#91e600",ease:Linear.easeNone},0),b},K=function(c){this.vars=c=c||{},c.id=c.id||("string"==typeof c.animation?c.animation:o++),p[c.id+""]=this,c.animation&&!L&&c.globalSync!==!0&&(c.globalSync=!1);var d,f,g,i,k,m,n,s,x,E,H,K,N,P=this,Q=y(c.container,c.minimal,c.css),R=function(a){return Q.querySelector(a)},S=function(a,b){return c.persist!==!1&&"undefined"!=typeof sessionStorage&&sessionStorage.setItem("gs-dev-"+a+c.id,b),b},T=function(a){var b;return c.persist!==!1&&"undefined"!=typeof sessionStorage?(b=sessionStorage.getItem("gs-dev-"+a+c.id),"animation"===a?b:"loop"===a?"true"===b:parseFloat(b)):void 0},U=R(".playhead"),V=R(".timeline-track"),W=R(".progress-bar"),X=R(".time"),Y=R(".duration"),Z=0,$=function(a,b,c){return function(e){var h,j=V.getBoundingClientRect(),l=a.getBoundingClientRect(),m=l.width*b,n=a._gsTransform.x,o=j.left-l.left-m+n,p=j.right-l.right+(l.width-m)+n,q=o;c&&(a!==aa&&(h=aa.getBoundingClientRect(),h.left&&(o+=h.left+h.width-j.left)),a!==ba&&(h=ba.getBoundingClientRect(),h.left&&(p-=j.left+j.width-h.left))),k=la,this.applyBounds({minX:o,maxX:p}),d=s.duration()/j.width,f=-q*d,i?s.pause():s.pause(f+d*this.x),this.target===U&&(this.activated&&(this.allowEventDefault=!1),this.activated=!0),g=!0}},_=e.create(U,{type:"x",cursor:"ew-resize",allowNativeTouchScrolling:!1,allowEventDefault:!0,onPress:$(U,.5,!0),onDrag:function(){var a=f+d*this.x;0>a?a=0:a>s._duration&&(a=s._duration),i||s.time(a),W.style.width=Math.min(ea-da,Math.max(0,a/s._duration*100-da))+"%",X.innerHTML=a.toFixed(2)},onRelease:function(a){la||s.resume()}})[0],aa=R(".in-point"),ba=R(".out-point"),ca=function(){da=0,ea=100,aa.style.left="0%",ba.style.left="100%",S("in",da),S("out",ea),ha(!0)},da=0,ea=100,fa=e.create(aa,{type:"x",cursor:"ew-resize",zIndexBoost:!1,allowNativeTouchScrolling:!1,allowEventDefault:!0,onPress:$(aa,1,!0),onDoubleClick:ca,onDrag:function(){da=(f+d*this.x)/s.duration()*100,s.progress(da/100),ha(!0)},onRelease:function(){0>da&&(da=0),r(),aa.style.left=da+"%",S("in",da),a.set(aa,{x:0,data:"root",display:"block"}),la||s.resume()}})[0],ga=e.create(ba,{type:"x",cursor:"ew-resize",allowNativeTouchScrolling:!1,allowEventDefault:!0,zIndexBoost:!1,onPress:$(ba,0,!0),onDoubleClick:ca,onDrag:function(){ea=(f+d*this.x)/s.duration()*100,s.progress(ea/100),ha(!0)},onRelease:function(){ea>100&&(ea=100),r(),ba.style.left=ea+"%",S("out",ea),a.set(ba,{x:0,data:"root",display:"block"}),k||(ma(),s.resume())}})[0],ha=function(a){if(!_.isPressed||a){var b=m||-1!==n._repeat?100*s.progress()||0:n.totalTime()/n.duration()*100,c=n._repeat&&n._repeatDelay&&n.totalTime()%(n.duration()+n._repeatDelay)>n.duration();b>100&&(b=100),b>=ea?!m||s.paused()||_.isDragging?((b!==ea||-1===n._repeat)&&(b=ea,s.progress(b/100)),la||1!==n.totalProgress()&&-1!==n._repeat||na()):c||(b=da,s.target===n&&s.target.seek(E+(H-E)*da/100),n._repeat>0&&!da&&100===ea?1===n.totalProgress()&&s.totalProgress(0,!0).resume():s.progress(b/100,!0).resume()):da>b&&(b=da,s.progress(b/100,!0)),b!==Z||a?(W.style.left=da+"%",W.style.width=Math.max(0,b-da)+"%",U.style.left=b+"%",X.innerHTML=s._time.toFixed(2),Y.innerHTML=s._duration.toFixed(2),g&&(U.style.transform="translate(-50%,0)",U._gsTransform.x=0,U._gsTransform.xPercent=-50,g=!1),Z=b):s._paused!==la&&oa()}},ia=function(a){if(!_.isPressed){var b=a.target.getBoundingClientRect(),c=(a.changedTouches?a.changedTouches[0]:a).clientX,d=(c-b.left)/b.width*100;if(da>d)return da=d=Math.max(0,d),aa.style.left=da+"%",void fa.startDrag(a);if(d>ea)return ea=d=Math.min(100,d),ba.style.left=ea+"%",void ga.startDrag(a);s.progress(d/100).pause(),ha(!0),_.startDrag(a)}},ja=R(".play-pause"),ka=I(ja),la=!1,ma=function(){s.progress()>=ea/100&&(s.target===n&&s.target.seek(E+(H-E)*da/100),s._repeat&&!da?s.totalProgress(0,!0):s.progress(da/100,!0)),ka.play(),s.resume(),la&&P.update(),la=!1},na=function(){ka.reverse(),s&&s.pause(),la=!0},oa=function(){la?ma():na()},pa=function(a){_.isPressed||(s.target===n&&s.target.seek(E+(H-E)*da/100),s.progress(da/100,!0),la||s.resume())},qa=R(".loop"),ra=J(qa),sa=function(a){
|
|
m=a,S("loop",m),m?(ra.play(),s.progress()>=ea/100&&(s.target===n&&s.target.seek(E+(H-E)*da/100),n._repeat&&!da&&100===ea?s.totalProgress(0,!0):s.progress(da/100,!0),ma())):ra.reverse()},ta=function(){sa(!m)},ua=R(".animation-list"),va=R(".animation-label"),wa=function(){var a,b,d=t(x&&c.globalSync===!1?x:D,!0),e=ua.children,f=0;for(x&&c.globalSync===!1?d.unshift(x):c.hideGlobalTimeline||d.unshift(D),b=0;b<d.length;b++)a=e[b]||q("option",ua),a.animation=d[b],f=b&&d[b].vars.id===d[b-1].vars.id?f+1:0,a.setAttribute("value",a.innerHTML=d[b].vars.id+(f?" ["+f+"]":d[b+1]&&d[b+1].vars.id===d[b].vars.id?" [0]":""));for(;b<e.length;b++)ua.removeChild(e[b])},xa=function(d){var e,f,g=parseFloat(Aa.options[Aa.selectedIndex].value)||1;if(!arguments.length)return n;if("string"==typeof d&&(d=v(d)),d instanceof b||console.log("GSDevTools error: invalid animation."),d!==n){if(n&&(n._inProgress=da,n._outProgress=ea),n=d,s&&(g=s.timeScale(),s.target===x&&(x.resume(),s.kill())),da=n._inProgress||0,ea=n._outProgress||100,aa.style.left=da+"%",ba.style.left=ea+"%",K&&(S("animation",n.vars.id),S("in",da),S("out",ea)),E=0,f=Math.min(1e3,c.maxDuration||1e3,u(n)),n===D||c.globalSync!==!1){if(G(),s=F,h&&h!==P&&console.log("Error: GSDevTools can only have one instance that's globally synchronized."),h=P,n!==D)for(e=n,H=e.totalDuration(),H>99999999&&(H=e.duration());e.timeline.timeline;)E=E/e._timeScale+e._startTime,H=H/e._timeScale+e._startTime,e=e.timeline;else H=D.duration();H-E>f&&(H=E+f),D.pause(E),F.vars.time=H,F.invalidate(),F.duration(H-E).timeScale(g),la?F.progress(1).pause(0):a.delayedCall(.01,function(){F.resume().progress(da/100),la&&ma()})}else{if(h===P&&(h=null),n!==x&&x){for(e=n,H=e.totalDuration(),H>99999999&&(H=e.duration());e.timeline.timeline&&e!==x;)E=E/e._timeScale+e._startTime,H=H/e._timeScale+e._startTime,e=e.timeline;H-E>f&&(H=E+f),x.pause(E),s=a.to(x,H-E,{time:H,ease:Linear.easeNone,data:"root"})}else s=n,!m&&s._repeat&&sa(!0);s.timeScale(g),F.pause(),D.resume(),s.seek(0)}Y.innerHTML=s.duration().toFixed(2),B(ua,n.vars.id,va)}},ya=function(){var a,b,c;n===D&&(a=D._time,D.progress(1,!0).time(a,!0),a=(F._timeline._time-F._startTime)*F._timeScale,c=Math.min(1e3,D.duration()),1e3===c&&(c=Math.min(1e3,u(D))),b=F.duration()/c,1!==b&&c&&(da*=b,100>ea&&(ea*=b),F.seek(0),F.vars.time=c,F.invalidate(),F.duration(c),F.time(a),Y.innerHTML=c.toFixed(2),ha(!0)))},za=function(a){xa(ua.options[ua.selectedIndex].animation),a.target&&a.target.blur&&a.target.blur(),la&&ma()},Aa=R(".time-scale select"),Ba=R(".time-scale-label"),Ca=function(b){var c=parseFloat(Aa.options[Aa.selectedIndex].value)||1;s.timeScale(c),S("timeScale",c),la||(s.progress()>=ea/100?(s.target===n&&s.target.seek(E+(H-E)*da/100),s.progress(da/100,!0).pause()):s.pause(),a.delayedCall(.01,function(){s.resume()})),Ba.innerHTML=c+"x",Aa.blur&&Aa.blur()},Da=a.to([R(".gs-bottom"),R(".gs-top")],.3,{autoAlpha:0,y:50,ease:Power2.easeIn,data:"root",paused:!0}),Ea=!1,Fa=function(a){e.hitTest(a,Q)||_.isDragging||fa.isDragging||ga.isDragging||Ja.restart(!0)},Ga=function(){Ea||(Da.play(),Ja.pause(),Ea=!0)},Ha=function(){Ja.pause(),Ea&&(Da.reverse(),Ea=!1)},Ia=function(){Ea?Ha():Ga()},Ja=a.delayedCall(1.3,Ga).pause(),Ka=function(a){M&&!O&&(O=D._startTime),K=!a,x=v(c.animation),x&&!x.vars.id&&(x.vars.id="[no id]"),wa();var b=v(T("animation"));b&&(b._inProgress=T("in")||0,b._outProgress=T("out")||100),c.paused&&na(),n=null,xa(x||b||D);var d=c.timeScale||T("timeScale"),e=b===n;d&&(B(Aa,d,Ba,d+"x"),s.timeScale(d)),da=("inTime"in c?w(c.inTime,n,0,0):e?b._inProgress:0)||0,100===da&&!c.animation&&b&&(xa(D),da=w(c.inTime,n,0,0)||0),da&&(aa.style.left=da+"%",aa.style.display=ba.style.display="block"),ea=("outTime"in c?w(c.outTime,n,100,da):e?b._outProgress:0)||100,da>ea&&(ea=100),100!==ea&&(ba.style.left=ea+"%",aa.style.display=ba.style.display="block"),m="loop"in c?c.loop:T("loop"),m&&sa(!0),c.paused&&s.progress(da/100,!0).pause(),M&&n===D&&O&&c.globalSync!==!1&&!la&&s.time(-O,!0),ha(!0)};z(ua,"change",za),z(ua,"mousedown",wa),z(ja,"mousedown",oa),z(R(".seek-bar"),"mousedown",ia),z(R(".rewind"),"mousedown",pa),z(qa,"mousedown",ta),z(Aa,"change",Ca),"auto"===c.visibility?(z(Q,"mouseout",Fa),z(Q,"mouseover",Ha)):"hidden"===c.visibility&&(Ea=!0,Da.progress(1)),c.keyboard!==!1&&(j&&c.keyboard?console.log("[GSDevTools warning] only one instance can be affected by keyboard shortcuts. There is already one active."):(j=P,N=function(a){var b,c=a.keyCode?a.keyCode:a.which;32===c?oa():38===c?(b=parseFloat(C(Aa,-1,Ba)),s.timeScale(b),S("timeScale",b)):40===c?(b=parseFloat(C(Aa,1,Ba)),s.timeScale(b),S("timeScale",b)):37===c?pa(a):39===c?s.progress(ea/100):76===c?ta():72===c?Ia():73===c?(da=100*s.progress(),S("in",da),aa.style.left=da+"%",ha(!0)):79===c&&(ea=100*s.progress(),S("out",ea),ba.style.left=ea+"%",ha(!0))},z(l,"keydown",N))),a.set(U,{xPercent:-50,x:0,data:"root"}),a.set(aa,{xPercent:-100,x:0,data:"root"}),aa._gsIgnore=ba._gsIgnore=U._gsIgnore=ja._gsIgnore=qa._gsIgnore=!0,a.killTweensOf([aa,ba,U]),Ka(M),M&&a.delayedCall(1e-4,Ka,[!1],this),a.ticker.addEventListener("tick",ha),this.update=function(a){h===P&&((!F._paused||a)&&G(),ya())},this.kill=function(){A(ua,"change",za),A(ua,"mousedown",wa),A(ja,"mousedown",oa),A(R(".seek-bar"),"mousedown",ia),A(R(".rewind"),"mousedown",pa),A(qa,"mousedown",ta),A(Aa,"change",Ca),_.disable(),fa.disable(),ga.disable(),a.ticker.removeEventListener("tick",ha),A(Q,"mouseout",Fa),A(Q,"mouseover",Ha),A(l,"keydown",N),Q.parentNode.removeChild(Q),h===P&&(h=null),delete p[c.id+""]},this.minimal=function(a){var b,d=Q.classList.contains("minimal");return arguments.length&&d!==a?(a?Q.classList.add("minimal"):Q.classList.remove("minimal"),c.container&&(Q.style.top=a?"calc(100% - 42px)":"calc(100% - 51px)"),void(_.isPressed&&(i=!0,_.endDrag(_.pointerEvent),i=!1,b=100*s.progress(),W.style.width=Math.max(0,b-da)+"%",U.style.left=b+"%",U.style.transform="translate(-50%,0)",U._gsTransform.x=0,U._gsTransform.xPercent=-50,_.startDrag(_.pointerEvent,!0)))):d},this.animation=xa,this.updateList=wa},L=!0,M=!0,N=a.onOverwrite,O=0;return K.version="0.1.9",K.logOverwrites=!1,K.globalRecordingTime=2,K.getById=function(a){return a?p[a]:h},s._startTime+=s._time,D._startTime=E._startTime=s._time=s._totalTime=0,a.delayedCall(.01,function(){h?h.update():G()}),a.delayedCall(2,function(){var b,d,e;if(!h)for(G(),b=D._first,e=D._startTime;b;)d=b._next,b._totalDuration!==b._totalTime||!b._duration&&1!==b.ratio?c.prototype.add.call(s,b,b._startTime-b._delay+e):b.kill(),b=d;K.globalRecordingTime>2?a.delayedCall(K.globalRecordingTime-2,function(){h&&h.update(),L=!1}):L=!1,M=!1}),s.add=function(b,d,e,f){var g=b.data;if(L&&b.vars&&"root"!==g&&"ignore"!==g&&"isStart"!==g&&"isFromStart"!==g&&"_draggable"!==g&&!(M&&!b._duration&&b instanceof a)&&(!b.vars.onComplete||b.vars.onComplete!==b.vars.onReverseComplete)){var h=D;return F._time&&(F._paused?(h=E,b._recordedTime=D.rawTime()):(d=(s._time-F._startTime)*F._timeScale,i||(a.ticker.addEventListener("tick",H),i=!0))),h.add(b,d,e,f),b.vars.repeat&&(h._dirty=!0),this}return c.prototype.add.apply(this,arguments)},D._enabled=E._enabled=function(a,b){return c.prototype._enabled.apply(this,arguments)},d.prototype._remove=function(a,b){c.prototype._remove.apply(this,arguments);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},a.onOverwrite=function(a,b,c,d){K.logOverwrites&&(d?console.log("[Overwrite warning] the following properties were overwritten: ",d,"| target:",c,"| overwritten tween: ",a,"| overwriting tween:",b):console.log("[Overwrite warning] the following tween was overwritten:",a,"by",b)),"function"==typeof N&&N(a,b,c,d)},K.create=function(a){return new K(a)},K},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();/*!
|
|
* VERSION: 0.17.0
|
|
* DATE: 2019-02-07
|
|
* UPDATES AND DOCS AT: http://greensock.com
|
|
*
|
|
* Requires TweenLite and CSSPlugin version 1.17.0 or later (TweenMax contains both TweenLite and CSSPlugin). ThrowPropsPlugin is required for momentum-based continuation of movement after the mouse/touch is released (ThrowPropsPlugin is a membership benefit of Club GreenSock - http://greensock.com/club/).
|
|
*
|
|
* @license Copyright (c) 2008-2019, GreenSock. All rights reserved.
|
|
* This work is subject to the terms at http://greensock.com/standard-license or for
|
|
* Club GreenSock members, the software agreement that was issued with your membership.
|
|
*
|
|
* @author: Jack Doyle, jack@greensock.com
|
|
*/
|
|
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(a,b,c){var d,e,f,g,h,i,j,k,l,m={css:{},data:"_draggable"},n={css:{},data:"_draggable"},o={css:{},data:"_draggable"},p={css:{}},q=_gsScope._gsDefine.globals,r={},s=function(){return!1},t={style:{},appendChild:s,removeChild:s},u=_gsScope.document||{createElement:function(){return t}},v=u.documentElement||{},w=function(a){return u.createElementNS?u.createElementNS("http://www.w3.org/1999/xhtml",a):u.createElement(a)},x=w("div"),y=[],z=180/Math.PI,A=999999999999999,B=Date.now||function(){return(new Date).getTime()},C=!(u.addEventListener||!u.all),D=u.createElement("div"),E=[],F={},G=0,H=/^(?:a|input|textarea|button|select)$/i,I=0,J=_gsScope.navigator&&-1!==_gsScope.navigator.userAgent.toLowerCase().indexOf("android"),K=0,L={},M={},N=function(a){if("string"==typeof a&&(a=b.selector(a)),!a||a.nodeType)return[a];var c,d=[],e=a.length;for(c=0;c!==e;d.push(a[c++]));return d},O=function(a,b){var c,d={};if(b)for(c in a)d[c]=a[c]*b;else for(c in a)d[c]=a[c];return d},P=function(){for(var a=E.length;--a>-1;)E[a]()},Q=function(a){E.push(a),1===E.length&&b.ticker.addEventListener("tick",P,this,!1,1)},R=function(a){for(var c=E.length;--c>-1;)E[c]===a&&E.splice(c,1);b.to(S,0,{overwrite:"all",delay:15,onComplete:S,data:"_draggable"})},S=function(){E.length||b.ticker.removeEventListener("tick",P)},T=function(a,b){var c;for(c in b)void 0===a[c]&&(a[c]=b[c]);return a},U=function(){return null!=window.pageYOffset?window.pageYOffset:null!=u.scrollTop?u.scrollTop:v.scrollTop||u.body.scrollTop||0},V=function(){return null!=window.pageXOffset?window.pageXOffset:null!=u.scrollLeft?u.scrollLeft:v.scrollLeft||u.body.scrollLeft||0},W=function(a,b){Ka(a,"scroll",b),Y(a.parentNode)||W(a.parentNode,b)},X=function(a,b){La(a,"scroll",b),Y(a.parentNode)||X(a.parentNode,b)},Y=function(a){return!(a&&a!==v&&a!==u&&a!==u.body&&a!==window&&a.nodeType&&a.parentNode)},Z=function(a,b){var c="x"===b?"Width":"Height",d="scroll"+c,e="client"+c,f=u.body;return Math.max(0,Y(a)?Math.max(v[d],f[d])-(window["inner"+c]||v[e]||f[e]):a[d]-a[e])},$=function(a){var b=Y(a),c=Z(a,"x"),d=Z(a,"y");b?a=M:$(a.parentNode),a._gsMaxScrollX=c,a._gsMaxScrollY=d,a._gsScrollX=a.scrollLeft||0,a._gsScrollY=a.scrollTop||0},_=function(a,b){return a=a||window.event,r.pageX=a.clientX+u.body.scrollLeft+v.scrollLeft,r.pageY=a.clientY+u.body.scrollTop+v.scrollTop,b&&(a.returnValue=!1),r},aa=function(a){return a?("string"==typeof a&&(a=b.selector(a)),a.length&&a!==window&&a[0]&&a[0].style&&!a.nodeType&&(a=a[0]),a===window||a.nodeType&&a.style?a:null):a},ba=function(a,b){var c,e,f,g=a.style;if(void 0===g[b]){for(f=["O","Moz","ms","Ms","Webkit"],e=5,c=b.charAt(0).toUpperCase()+b.substr(1);--e>-1&&void 0===g[f[e]+c];);if(0>e)return"";d=3===e?"ms":f[e],b=d+c}return b},ca=function(a,b,c){var d=a.style;d&&(void 0===d[b]&&(b=ba(a,b)),null==c?d.removeProperty?d.removeProperty(b.replace(/([A-Z])/g,"-$1").toLowerCase()):d.removeAttribute(b):void 0!==d[b]&&(d[b]=c))},da="undefined"!=typeof window?window:u.defaultView||{getComputedStyle:function(){}},ea=function(a,b){return da.getComputedStyle(a instanceof Element?a:a.host||(a.parentNode||{}).host||a,b)},fa=/(?:Left|Right|Width)/i,ga=/(?:\d|\-|\+|=|#|\.)*/g,ha=function(a,b,c,d,e){if("px"===d||!d)return c;if("auto"===d||!c)return 0;var f,g=fa.test(b),h=a,i=x.style,j=0>c;return j&&(c=-c),"%"===d&&-1!==b.indexOf("border")?f=c/100*(g?a.clientWidth:a.clientHeight):(i.cssText="border:0 solid red;position:"+ja(a,"position",!0)+";line-height:0;","%"!==d&&h.appendChild?i[g?"borderLeftWidth":"borderTopWidth"]=c+d:(h=a.parentNode||u.body,i[g?"width":"height"]=c+d),h.appendChild(x),f=parseFloat(x[g?"offsetWidth":"offsetHeight"]),h.removeChild(x),0!==f||e||(f=ha(a,b,c,d,!0))),j?-f:f},ia=function(a,b){if("absolute"!==ja(a,"position",!0))return 0;var c="left"===b?"Left":"Top",d=ja(a,"margin"+c,!0);return a["offset"+c]-(ha(a,b,parseFloat(d),(d+"").replace(ga,""))||0)},ja=function(a,b,c){var d,e=(a._gsTransform||{})[b];return e||0===e?e:(a.style&&a.style[b]?e=a.style[b]:(d=ea(a))?(e=d.getPropertyValue(b.replace(/([A-Z])/g,"-$1").toLowerCase()),e=e||d.length?e:d[b]):a.currentStyle&&(e=a.currentStyle[b]),"auto"!==e||"top"!==b&&"left"!==b||(e=ia(a,b)),c?e:parseFloat(e)||0)},ka=function(a,b,c){var d=a.vars,e=d[c],f=a._listeners[b];"function"==typeof e&&e.apply(d[c+"Scope"]||d.callbackScope||a,d[c+"Params"]||[a.pointerEvent]),f&&a.dispatchEvent(b)},la=function(a,b){var c,d,e,f=aa(a);return f?Fa(f,b):void 0!==a.left?(e=za(b),{left:a.left-e.x,top:a.top-e.y,width:a.width,height:a.height}):(d=a.min||a.minX||a.minRotation||0,c=a.min||a.minY||0,{left:d,top:c,width:(a.max||a.maxX||a.maxRotation||0)-d,height:(a.max||a.maxY||0)-c})},ma=function(){if(!u.createElementNS)return h=0,void(i=!1);var a,b,c,d,e=w("div"),f=u.createElementNS("http://www.w3.org/2000/svg","svg"),g=w("div"),m=e.style,n=u.body||v,o="flex"===ja(n,"display",!0);u.body&&pa&&(m.position="absolute",n.appendChild(g),g.appendChild(e),d=e.offsetParent,g.style[pa]="rotate(1deg)",l=e.offsetParent===d,g.style.position="absolute",m.height="10px",d=e.offsetTop,g.style.border="5px solid red",k=d!==e.offsetTop,n.removeChild(g)),m=f.style,f.setAttributeNS(null,"width","400px"),f.setAttributeNS(null,"height","400px"),f.setAttributeNS(null,"viewBox","0 0 400 400"),m.display="block",m.boxSizing="border-box",m.border="0px solid red",m.transform="none",e.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",n.appendChild(e),e.appendChild(f),c=f.createSVGPoint().matrixTransform(f.getScreenCTM()),b=c.y,e.scrollTop=100,c.x=c.y=0,c=c.matrixTransform(f.getScreenCTM()),j=b-c.y<100.1?0:b-c.y-150,e.removeChild(f),n.removeChild(e),n.appendChild(f),o&&(n.style.display="block"),a=f.getScreenCTM(),b=a.e,m.border="50px solid red",a=f.getScreenCTM(),0===b&&0===a.e&&0===a.f&&1===a.a?(h=1,i=!0):(h=b!==a.e?1:0,i=1!==a.a),o&&(n.style.display="flex"),n.removeChild(f)},na=""!==ba(x,"perspective"),oa=ba(x,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),pa=ba(x,"transform"),qa=pa.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),ra={},sa={},ta=_gsScope.SVGElement,ua=function(a){return!!(ta&&"function"==typeof a.getBBox&&a.getCTM&&(!a.parentNode||a.parentNode.getBBox&&a.parentNode.getCTM))},va=_gsScope.navigator&&(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(_gsScope.navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(_gsScope.navigator.userAgent))&&parseFloat(RegExp.$1)<11,wa=[],xa=[],ya=function(a){if(!a.getBoundingClientRect||!a.parentNode||!pa)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:v};if(Ua.cacheSVGData!==!1&&a._dCache&&a._dCache.lastUpdate===b.ticker.frame)return a._dCache;var c,d,e,f,g,k,l,m,n,o,p,q,r=a,s=Aa(a);if(s.lastUpdate=b.ticker.frame,a.getBBox&&!s.isSVGRoot){for(r=a.parentNode,c=a.getBBox();r&&"svg"!==(r.nodeName+"").toLowerCase();)r=r.parentNode;return f=ya(r),s.offsetTop=c.y*f.scaleY,s.offsetLeft=c.x*f.scaleX,s.scaleX=f.scaleX,s.scaleY=f.scaleY,s.offsetParent=r||v,s}for(e=s.offsetParent,e===u.body&&(e=v),xa.length=wa.length=0;r&&r.parentNode;)g=ja(r,pa,!0),"matrix(1, 0, 0, 1, 0, 0)"!==g&&"none"!==g&&"translate3d(0px, 0px, 0px)"!==g&&(xa.push(r),wa.push(r.style[pa]),r.style[pa]="none"),r=r.parentNode;for(d=e.getBoundingClientRect(),g=a.getScreenCTM(),m=a.createSVGPoint(),l=m.matrixTransform(g),s.scaleX=Math.sqrt(g.a*g.a+g.b*g.b),s.scaleY=Math.sqrt(g.d*g.d+g.c*g.c),void 0===h&&ma(),s.borderBox&&!i&&a.getAttribute("width")&&(f=ea(a)||{},n=parseFloat(f.borderLeftWidth)+parseFloat(f.borderRightWidth)||0,o=parseFloat(f.borderTopWidth)+parseFloat(f.borderBottomWidth)||0,p=parseFloat(f.width)||0,q=parseFloat(f.height)||0,s.scaleX*=(p-n)/p,s.scaleY*=(q-o)/q),j?(c=a.getBoundingClientRect(),s.offsetLeft=c.left-d.left,s.offsetTop=c.top-d.top):(s.offsetLeft=l.x-d.left,s.offsetTop=l.y-d.top),s.offsetParent=e,k=xa.length;--k>-1;)xa[k].style[pa]=wa[k];return s},za=function(a,c){if(c=c||{},!a||a===v||!a.parentNode||a===window)return{x:0,y:0};var d=ea(a),e=oa&&d?d.getPropertyValue(oa):"50% 50%",f=e.split(" "),g=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":f[0],h=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":f[1];return("center"===h||null==h)&&(h="50%"),("center"===g||isNaN(parseFloat(g)))&&(g="50%"),a.getBBox&&ua(a)?(a._gsTransform||(b.set(a,{x:"+=0",overwrite:!1}),void 0===a._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),e=a.getBBox(),c.x=a._gsTransform.xOrigin-e.x,c.y=a._gsTransform.yOrigin-e.y):(a.getBBox&&-1!==(g+h).indexOf("%")&&(a=a.getBBox(),a={offsetWidth:a.width,offsetHeight:a.height}),c.x=-1!==g.indexOf("%")?a.offsetWidth*parseFloat(g)/100:parseFloat(g),c.y=-1!==h.indexOf("%")?a.offsetHeight*parseFloat(h)/100:parseFloat(h)),c},Aa=function(a){if(Ua.cacheSVGData!==!1&&a._dCache&&a._dCache.lastUpdate===b.ticker.frame)return a._dCache;var c,d=a._dCache=a._dCache||{},e=ea(a),f=a.getBBox&&ua(a),g="svg"===(a.nodeName+"").toLowerCase();if(d.isSVG=f,d.isSVGRoot=g,d.borderBox="border-box"===e.boxSizing,d.computedStyle=e,g)c=a.parentNode||v,c.insertBefore(x,a),d.offsetParent=x.offsetParent||v,c.removeChild(x);else if(f){for(c=a.parentNode;c&&"svg"!==(c.nodeName+"").toLowerCase();)c=c.parentNode;d.offsetParent=c}else d.offsetParent=a.offsetParent;return d},Ba=function(a,b,c,d,e){if(a===window||!a||!a.style||!a.parentNode)return[1,0,0,1,0,0];var f,g,i,j,m,n,o,p,q,r,s,t,w,x,y=a._dCache||Aa(a),z=a.parentNode,A=z._dCache||Aa(z),B=y.computedStyle,C=y.isSVG?A.offsetParent:z.offsetParent;if(f=y.isSVG&&-1!==(a.style[pa]+"").indexOf("matrix")?a.style[pa]:B?B.getPropertyValue(qa):a.currentStyle?a.currentStyle[pa]:"1,0,0,1,0,0",a.getBBox&&-1!==(a.getAttribute("transform")+"").indexOf("matrix")&&(f=a.getAttribute("transform")),f=(f+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0],f.length>6&&(f=[f[0],f[1],f[4],f[5],f[12],f[13]]),d?f[4]=f[5]=0:y.isSVG&&(m=a._gsTransform)&&(m.xOrigin||m.yOrigin)&&(f[0]=parseFloat(f[0]),f[1]=parseFloat(f[1]),f[2]=parseFloat(f[2]),f[3]=parseFloat(f[3]),f[4]=parseFloat(f[4])-(m.xOrigin-(m.xOrigin*f[0]+m.yOrigin*f[2])),f[5]=parseFloat(f[5])-(m.yOrigin-(m.xOrigin*f[1]+m.yOrigin*f[3]))),b)if(void 0===h&&ma(),i=y.isSVG||y.isSVGRoot?ya(a):a,y.isSVG?(j=a.getBBox(),r=A.isSVGRoot?{x:0,y:0}:z.getBBox(),i={offsetLeft:j.x-r.x,offsetTop:j.y-r.y,offsetParent:y.offsetParent}):y.isSVGRoot?(s=parseInt(B.borderTopWidth,10)||0,t=parseInt(B.borderLeftWidth,10)||0,w=(f[0]-h)*t+f[2]*s,x=f[1]*t+(f[3]-h)*s,n=b.x,o=b.y,p=n-(n*f[0]+o*f[2]),q=o-(n*f[1]+o*f[3]),f[4]=parseFloat(f[4])+p,f[5]=parseFloat(f[5])+q,b.x-=p,b.y-=q,n=i.scaleX,o=i.scaleY,e||(b.x*=n,b.y*=o),f[0]*=n,f[1]*=o,f[2]*=n,f[3]*=o,va||(b.x+=w,b.y+=x),C===u.body&&i.offsetParent===v&&(C=v)):!k&&a.offsetParent&&(b.x+=parseInt(ja(a.offsetParent,"borderLeftWidth"),10)||0,b.y+=parseInt(ja(a.offsetParent,"borderTopWidth"),10)||0),g=z===v||z===u.body,f[4]=Number(f[4])+b.x+(i.offsetLeft||0)-c.x-(g?0:z.scrollLeft||0),f[5]=Number(f[5])+b.y+(i.offsetTop||0)-c.y-(g?0:z.scrollTop||0),z&&"fixed"===ja(a,"position",!0))for(f[4]+=V(),f[5]+=U(),z=z.offsetParent;z;)f[4]-=z.offsetLeft,f[5]-=z.offsetTop,z=z.offsetParent;else!z||z===v||C!==i.offsetParent||A.isSVG||l&&"100100"!==Ba(z).join("")||(i=A.isSVGRoot?ya(z):z,f[4]-=i.offsetLeft||0,f[5]-=i.offsetTop||0,k||!A.offsetParent||y.isSVG||y.isSVGRoot||(f[4]-=parseInt(ja(A.offsetParent,"borderLeftWidth"),10)||0,f[5]-=parseInt(ja(A.offsetParent,"borderTopWidth"),10)||0));return f},Ca=function(a,b){if(!a||a===window||!a.parentNode)return[1,0,0,1,0,0];for(var c,d,e,f,g,h,i,j,k=za(a,ra),l=za(a.parentNode,sa),m=Ba(a,k,l,!1,!b);(a=a.parentNode)&&a.parentNode&&a!==v;)k=l,l=za(a.parentNode,k===ra?sa:ra),i=Ba(a,k,l),c=m[0],d=m[1],e=m[2],f=m[3],g=m[4],h=m[5],m[0]=c*i[0]+d*i[2],m[1]=c*i[1]+d*i[3],m[2]=e*i[0]+f*i[2],m[3]=e*i[1]+f*i[3],m[4]=g*i[0]+h*i[2]+i[4],m[5]=g*i[1]+h*i[3]+i[5];return b&&(c=m[0],d=m[1],e=m[2],f=m[3],g=m[4],h=m[5],j=c*f-d*e,m[0]=f/j,m[1]=-d/j,m[2]=-e/j,m[3]=c/j,m[4]=(e*h-f*g)/j,m[5]=-(c*h-d*g)/j),m},Da=function(a,b,c,d){a=aa(a);var e=Ca(a,!1),f=b.x,g=b.y;return c&&(za(a,b),f-=b.x,g-=b.y),d=d===!0?b:d||{},d.x=f*e[0]+g*e[2]+e[4],d.y=f*e[1]+g*e[3]+e[5],d},Ea=function(a,b,c){var d=a.x*b[0]+a.y*b[2]+b[4],e=a.x*b[1]+a.y*b[3]+b[5];return a.x=d*c[0]+e*c[2]+c[4],a.y=d*c[1]+e*c[3]+c[5],a},Fa=function(a,b,c){if(!(a=aa(a)))return null;b=aa(b);var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,w,x,y,z,A,B=a.getBBox&&ua(a);if(a===window)g=U(),e=V(),f=e+(v.clientWidth||a.innerWidth||u.body.clientWidth||0),h=g+((a.innerHeight||0)-20<v.clientHeight?v.clientHeight:a.innerHeight||u.body.clientHeight||0);else{if(void 0===b||b===window)return a.getBoundingClientRect();d=za(a),e=-d.x,g=-d.y,B?(o=a.getBBox(),p=o.width,q=o.height):"svg"!==(a.nodeName+"").toLowerCase()&&a.offsetWidth?(p=a.offsetWidth,q=a.offsetHeight):(z=ea(a),p=parseFloat(z.width),q=parseFloat(z.height)),f=e+p,h=g+q,"svg"!==a.nodeName.toLowerCase()||C||(r=ya(a),A=r.computedStyle||{},w=(a.getAttribute("viewBox")||"0 0").split(" "),x=parseFloat(w[0]),y=parseFloat(w[1]),s=parseFloat(A.borderLeftWidth)||0,t=parseFloat(A.borderTopWidth)||0,e/=r.scaleX,g/=r.scaleY,f=e+p-(p-(p-s)/r.scaleX-x),h=g+q-(q-(q-t)/r.scaleY-y),e-=s/r.scaleX-x,g-=t/r.scaleY-y,z&&(f+=(parseFloat(A.borderRightWidth)+s)/r.scaleX,h+=(t+parseFloat(A.borderBottomWidth))/r.scaleY))}return a===b?{left:e,top:g,width:f-e,height:h-g}:(i=Ca(a),j=Ca(b,!0),k=Ea({x:e,y:g},i,j),l=Ea({x:f,y:g},i,j),m=Ea({x:f,y:h},i,j),n=Ea({x:e,y:h},i,j),e=Math.min(k.x,l.x,m.x,n.x),g=Math.min(k.y,l.y,m.y,n.y),L.x=L.y=0,c&&za(b,L),{left:e+L.x,top:g+L.y,width:Math.max(k.x,l.x,m.x,n.x)-e,height:Math.max(k.y,l.y,m.y,n.y)-g})},Ga=function(a){return a&&a.length&&a[0]&&(a[0].nodeType&&a[0].style&&!a.nodeType||a[0].length&&a[0][0])?!0:!1},Ha=function(a){var b,c,d,e=[],f=a.length;for(b=0;f>b;b++)if(c=a[b],Ga(c))for(d=c.length,d=0;d<c.length;d++)e.push(c[d]);else c&&0!==c.length&&e.push(c);return e},Ia="undefined"!=typeof window&&"ontouchstart"in v&&"orientation"in window,Ja=function(a){for(var b=a.split(","),c=(void 0!==x.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==x.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":a).split(","),d={},e=4;--e>-1;)d[b[e]]=c[e],d[c[e]]=b[e];try{v.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){f=1}}))}catch(g){}return d}("touchstart,touchmove,touchend,touchcancel"),Ka=function(a,b,c,d){if(a.addEventListener){var e=Ja[b];d=d||(f?{passive:!1}:null),a.addEventListener(e||b,c,d),e&&b!==e&&a.addEventListener(b,c,d)}else a.attachEvent&&a.attachEvent("on"+b,c)},La=function(a,b,c){if(a.removeEventListener){var d=Ja[b];a.removeEventListener(d||b,c),d&&b!==d&&a.removeEventListener(b,c)}else a.detachEvent&&a.detachEvent("on"+b,c)},Ma=function(a,b){for(var c=a.length;--c>-1;)if(a[c].identifier===b)return!0;return!1},Na=function(a){e=a.touches&&I<a.touches.length,La(a.target,"touchend",Na)},Oa=function(a){e=a.touches&&I<a.touches.length,Ka(a.target,"touchend",Na)},Pa=function(a,b,c,d,e,f){var g,h,i,j={};if(b)if(1!==e&&b instanceof Array){if(j.end=g=[],i=b.length,"object"==typeof b[0])for(h=0;i>h;h++)g[h]=O(b[h],e);else for(h=0;i>h;h++)g[h]=b[h]*e;c+=1.1,d-=1.1}else"function"==typeof b?j.end=function(c){var d,f,g=b.call(a,c);if(1!==e)if("object"==typeof g){d={};for(f in g)d[f]=g[f]*e;g=d}else g*=e;return g}:j.end=b;return(c||0===c)&&(j.max=c),(d||0===d)&&(j.min=d),f&&(j.velocity=0),j},Qa=function(a){var b;return a&&a.getAttribute&&"BODY"!==a.nodeName?"true"===(b=a.getAttribute("data-clickable"))||"false"!==b&&(a.onclick||H.test(a.nodeName+"")||"true"===a.getAttribute("contentEditable"))?!0:Qa(a.parentNode):!1},Ra=function(a,b){for(var c,d=a.length;--d>-1;)c=a[d],c.ondragstart=c.onselectstart=b?null:s,ca(c,"userSelect",b?"text":"none")},Sa=function(){var a,b=u.createElement("div"),c=u.createElement("div"),d=c.style,e=u.body||x;return d.display="inline-block",d.position="relative",b.style.cssText=c.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",b.appendChild(c),e.appendChild(b),a=c.offsetHeight+18>b.scrollHeight,e.removeChild(b),a}(),Ta=function(a,c){a=aa(a),c=c||{};var d,e,f,g,h,i,j=u.createElement("div"),k=j.style,l=a.firstChild,m=0,n=0,o=a.scrollTop,p=a.scrollLeft,q=a.scrollWidth,r=a.scrollHeight,s=0,t=0,v=0;na&&c.force3D!==!1?(h="translate3d(",i="px,0px)"):pa&&(h="translate(",i="px)"),this.scrollTop=function(a,b){return arguments.length?void this.top(-a,b):-this.top()},this.scrollLeft=function(a,b){return arguments.length?void this.left(-a,b):-this.left()},this.left=function(d,e){if(!arguments.length)return-(a.scrollLeft+n);var f=a.scrollLeft-p,g=n;return(f>2||-2>f)&&!e?(p=a.scrollLeft,b.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-p),void(c.onKill&&c.onKill())):(d=-d,0>d?(n=d-.5|0,d=0):d>t?(n=d-t|0,d=t):n=0,(n||g)&&(h?this._suspendTransforms||(k[pa]=h+-n+"px,"+-m+i):k.left=-n+"px",n+s>=0&&(k.paddingRight=n+s+"px")),a.scrollLeft=0|d,void(p=a.scrollLeft))},this.top=function(d,e){if(!arguments.length)return-(a.scrollTop+m);var f=a.scrollTop-o,g=m;return(f>2||-2>f)&&!e?(o=a.scrollTop,b.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-o),void(c.onKill&&c.onKill())):(d=-d,0>d?(m=d-.5|0,d=0):d>v?(m=d-v|0,d=v):m=0,(m||g)&&(h?this._suspendTransforms||(k[pa]=h+-n+"px,"+-m+i):k.top=-m+"px"),a.scrollTop=0|d,void(o=a.scrollTop))},this.maxScrollTop=function(){return v},this.maxScrollLeft=function(){return t},this.disable=function(){for(l=j.firstChild;l;)g=l.nextSibling,a.appendChild(l),l=g;a===j.parentNode&&a.removeChild(j)},this.enable=function(){if(l=a.firstChild,l!==j){for(;l;)g=l.nextSibling,j.appendChild(l),l=g;a.appendChild(j),this.calibrate()}},this.calibrate=function(b){var c,g,h=a.clientWidth===d;o=a.scrollTop,p=a.scrollLeft,(!h||a.clientHeight!==e||j.offsetHeight!==f||q!==a.scrollWidth||r!==a.scrollHeight||b)&&((m||n)&&(c=this.left(),g=this.top(),this.left(-a.scrollLeft),this.top(-a.scrollTop)),(!h||b)&&(k.display="block",k.width="auto",k.paddingRight="0px",s=Math.max(0,a.scrollWidth-a.clientWidth),s&&(s+=ja(a,"paddingLeft")+(Sa?ja(a,"paddingRight"):0))),k.display="inline-block",k.position="relative",k.overflow="visible",k.verticalAlign="top",k.width="100%",k.paddingRight=s+"px",Sa&&(k.paddingBottom=ja(a,"paddingBottom",!0)),C&&(k.zoom="1"),d=a.clientWidth,e=a.clientHeight,q=a.scrollWidth,r=a.scrollHeight,t=a.scrollWidth-d,v=a.scrollHeight-e,f=j.offsetHeight,k.display="block",(c||g)&&(this.left(c),this.top(g)))},this.content=j,this.element=a,this._suspendTransforms=!1,this.enable()},Ua=function(d,f){a.call(this,d),d=aa(d),g||(g=q.com.greensock.plugins.ThrowPropsPlugin),this.vars=f=O(f||{}),this.target=d,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(f.dragResistance)||0,this.edgeResistance=isNaN(f.edgeResistance)?1:parseFloat(f.edgeResistance)||0,this.lockAxis=f.lockAxis,this.autoScroll=f.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!f.allowEventDefault;var h,i,j,k,l,r,s,t,w,x,E,H,P,S,U,V,Z,ba,da,ea,fa,ga,ha,ia,ma,na,oa,pa,qa,ra,sa,ta,va,wa,xa=(f.type||(C?"top,left":"x,y")).toLowerCase(),ya=-1!==xa.indexOf("x")||-1!==xa.indexOf("y"),za=-1!==xa.indexOf("rotation"),Aa=za?"rotation":ya?"x":"left",Ba=ya?"y":"top",Ea=-1!==xa.indexOf("x")||-1!==xa.indexOf("left")||"scroll"===xa,Fa=-1!==xa.indexOf("y")||-1!==xa.indexOf("top")||"scroll"===xa,Ga=f.minimumMovement||2,Ha=this,Na=N(f.trigger||f.handle||d),Sa={},Va=0,Wa=!1,Xa=f.autoScrollMarginTop||40,Za=f.autoScrollMarginRight||40,$a=f.autoScrollMarginBottom||40,_a=f.autoScrollMarginLeft||40,ab=f.clickableTest||Qa,bb=0,cb=function(a){return Ha.isPressed&&a.which<2?void Ha.endDrag():(a.preventDefault(),a.stopPropagation(),!1)},db=function(a){if(Ha.autoScroll&&Ha.isDragging&&(Wa||ba)){var b,c,e,f,g,h,j,k,l=d,m=15*Ha.autoScroll;for(Wa=!1,M.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=v.scrollTop?v.scrollTop:u.body.scrollTop,M.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=v.scrollLeft?v.scrollLeft:u.body.scrollLeft,f=Ha.pointerX-M.scrollLeft,g=Ha.pointerY-M.scrollTop;l&&!c;)c=Y(l.parentNode),b=c?M:l.parentNode,e=c?{bottom:Math.max(v.clientHeight,window.innerHeight||0),right:Math.max(v.clientWidth,window.innerWidth||0),left:0,top:0}:b.getBoundingClientRect(),h=j=0,Fa&&(k=b._gsMaxScrollY-b.scrollTop,0>k?j=k:g>e.bottom-$a&&k?(Wa=!0,j=Math.min(k,m*(1-Math.max(0,e.bottom-g)/$a)|0)):g<e.top+Xa&&b.scrollTop&&(Wa=!0,j=-Math.min(b.scrollTop,m*(1-Math.max(0,g-e.top)/Xa)|0)),j&&(b.scrollTop+=j)),Ea&&(k=b._gsMaxScrollX-b.scrollLeft,0>k?h=k:f>e.right-Za&&k?(Wa=!0,h=Math.min(k,m*(1-Math.max(0,e.right-f)/Za)|0)):f<e.left+_a&&b.scrollLeft&&(Wa=!0,h=-Math.min(b.scrollLeft,m*(1-Math.max(0,f-e.left)/_a)|0)),h&&(b.scrollLeft+=h)),c&&(h||j)&&(window.scrollTo(b.scrollLeft,b.scrollTop),rb(Ha.pointerX+h,Ha.pointerY+j)),l=b}if(ba){var n=Ha.x,o=Ha.y,p=1e-6;p>n&&n>-p&&(n=0),p>o&&o>-p&&(o=0),za?(Ha.deltaX=n-qa.data.rotation,qa.data.rotation=Ha.rotation=n,qa.setRatio(1)):i?(Fa&&(Ha.deltaY=o-i.top(),i.top(o)),Ea&&(Ha.deltaX=n-i.left(),i.left(n))):ya?(Fa&&(Ha.deltaY=o-qa.data.y,qa.data.y=o),Ea&&(Ha.deltaX=n-qa.data.x,qa.data.x=n),qa.setRatio(1)):(Fa&&(Ha.deltaY=o-parseFloat(d.style.top||0),d.style.top=o+"px"),Ea&&(Ha.deltaY=n-parseFloat(d.style.left||0),d.style.left=n+"px")),!t||a||ta||(ta=!0,ka(Ha,"drag","onDrag"),ta=!1)}ba=!1},eb=function(a,c){var e,f=Ha.x,g=Ha.y;d._gsTransform||!ya&&!za||b.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),ya?(Ha.y=d._gsTransform.y,Ha.x=d._gsTransform.x):za?Ha.x=Ha.rotation=d._gsTransform.rotation:i?(Ha.y=i.top(),Ha.x=i.left()):(Ha.y=parseInt(d.style.top,10)||0,Ha.x=parseInt(d.style.left,10)||0),(ea||fa||ga)&&!c&&(Ha.isDragging||Ha.isThrowing)&&(ga&&(L.x=Ha.x,L.y=Ha.y,e=ga(L),e.x!==Ha.x&&(Ha.x=e.x,ba=!0),e.y!==Ha.y&&(Ha.y=e.y,ba=!0)),ea&&(e=ea(Ha.x),e!==Ha.x&&(Ha.x=e,za&&(Ha.rotation=e),ba=!0)),fa&&(e=fa(Ha.y),e!==Ha.y&&(Ha.y=e),ba=!0)),ba&&db(!0),a||(Ha.deltaX=Ha.x-f,Ha.deltaY=Ha.y-g,ka(Ha,"throwupdate","onThrowUpdate"))},fb=function(){var a,b,c,e;s=!1,i?(i.calibrate(),Ha.minX=x=-i.maxScrollLeft(),Ha.minY=H=-i.maxScrollTop(),Ha.maxX=w=Ha.maxY=E=0,s=!0):f.bounds&&(a=la(f.bounds,d.parentNode),za?(Ha.minX=x=a.left,Ha.maxX=w=a.left+a.width,Ha.minY=H=Ha.maxY=E=0):void 0!==f.bounds.maxX||void 0!==f.bounds.maxY?(a=f.bounds,Ha.minX=x=a.minX,Ha.minY=H=a.minY,Ha.maxX=w=a.maxX,Ha.maxY=E=a.maxY):(b=la(d,d.parentNode),Ha.minX=x=ja(d,Aa)+a.left-b.left,Ha.minY=H=ja(d,Ba)+a.top-b.top,Ha.maxX=w=x+(a.width-b.width),Ha.maxY=E=H+(a.height-b.height)),x>w&&(Ha.minX=w,Ha.maxX=w=x,x=Ha.minX),H>E&&(Ha.minY=E,Ha.maxY=E=H,H=Ha.minY),za&&(Ha.minRotation=x,Ha.maxRotation=w),s=!0),f.liveSnap&&(c=f.liveSnap===!0?f.snap||{}:f.liveSnap,e=c instanceof Array||"function"==typeof c,za?(ea=nb(e?c:c.rotation,x,w,1),fa=null):c.points?ga=ob(e?c:c.points,x,w,H,E,c.radius,i?-1:1):(Ea&&(ea=nb(e?c:c.x||c.left||c.scrollLeft,x,w,i?-1:1)),Fa&&(fa=nb(e?c:c.y||c.top||c.scrollTop,H,E,i?-1:1))))},gb=function(){Ha.isThrowing=!1,ka(Ha,"throwcomplete","onThrowComplete")},hb=function(){Ha.isThrowing=!1},ib=function(a,b){var c,e,h,j;a&&g?(a===!0&&(c=f.snap||f.liveSnap||{},e=c instanceof Array||"function"==typeof c,a={resistance:(f.throwResistance||f.resistance||1e3)/(za?10:1)},za?a.rotation=Pa(Ha,e?c:c.rotation,w,x,1,b):(Ea&&(a[Aa]=Pa(Ha,e?c:c.points||c.x||c.left||c.scrollLeft,w,x,i?-1:1,b||"x"===Ha.lockedAxis)),Fa&&(a[Ba]=Pa(Ha,e?c:c.points||c.y||c.top||c.scrollTop,E,H,i?-1:1,b||"y"===Ha.lockedAxis)),(c.points||c instanceof Array&&"object"==typeof c[0])&&(a.linkedProps=Aa+","+Ba,a.radius=c.radius))),Ha.isThrowing=!0,j=isNaN(f.overshootTolerance)?1===f.edgeResistance?0:1-Ha.edgeResistance+.2:f.overshootTolerance,Ha.tween=h=g.to(i||d,{throwProps:a,data:"_draggable",ease:f.ease||q.Power3.easeOut,onComplete:gb,onOverwrite:hb,onUpdate:f.fastMode?ka:eb,onUpdateParams:f.fastMode?[Ha,"onthrowupdate","onThrowUpdate"]:c&&c.radius?[!1,!0]:y},Math.max(f.minDuration||0,f.maxDuration||0)||2,isNaN(f.minDuration)?0===j||"object"==typeof a&&a.resistance>1e3?0:.5:f.minDuration,j),f.fastMode||(i&&(i._suspendTransforms=!0),h.render(h.duration(),!0,!0),eb(!0,!0),Ha.endX=Ha.x,Ha.endY=Ha.y,za&&(Ha.endRotation=Ha.x),h.play(0),eb(!0,!0),i&&(i._suspendTransforms=!1))):s&&Ha.applyBounds()},jb=function(a){var b,c,e,f,g,h,i,l,m,n=ma||[1,0,0,1,0,0];ma=Ca(d.parentNode,!0),a&&Ha.isPressed&&n.join(",")!==ma.join(",")&&(b=n[0],c=n[1],e=n[2],f=n[3],g=n[4],h=n[5],i=b*f-c*e,l=j*(f/i)+k*(-e/i)+(e*h-f*g)/i,m=j*(-c/i)+k*(b/i)+-(b*h-c*g)/i,k=l*ma[1]+m*ma[3]+ma[5],j=l*ma[0]+m*ma[2]+ma[4]),ma[1]||ma[2]||1!=ma[0]||1!=ma[3]||0!=ma[4]||0!=ma[5]||(ma=null)},kb=function(){var a=1-Ha.edgeResistance;jb(!1),ma&&(j=Ha.pointerX*ma[0]+Ha.pointerY*ma[2]+ma[4],k=Ha.pointerX*ma[1]+Ha.pointerY*ma[3]+ma[5]),ba&&(rb(Ha.pointerX,Ha.pointerY),db(!0)),i?(fb(),r=i.top(),l=i.left()):(lb()?(eb(!0,!0),fb()):Ha.applyBounds(),za?(Z=Ha.rotationOrigin=Da(d,{x:0,y:0}),eb(!0,!0),l=Ha.x,r=Ha.y=Math.atan2(Z.y-Ha.pointerY,Ha.pointerX-Z.x)*z):(oa=d.parentNode?d.parentNode.scrollTop||0:0,pa=d.parentNode?d.parentNode.scrollLeft||0:0,r=ja(d,Ba),l=ja(d,Aa))),s&&a&&(l>w?l=w+(l-w)/a:x>l&&(l=x-(x-l)/a),za||(r>E?r=E+(r-E)/a:H>r&&(r=H-(H-r)/a))),Ha.startX=l,Ha.startY=r},lb=function(){return Ha.tween&&Ha.tween.isActive()},mb=function(){!D.parentNode||lb()||Ha.isDragging||D.parentNode.removeChild(D)},nb=function(a,b,c,d){return null==b&&(b=-A),null==c&&(c=A),"function"==typeof a?function(e){var f=Ha.isPressed?1-Ha.edgeResistance:1;return a.call(Ha,e>c?c+(e-c)*f:b>e?b+(e-b)*f:e)*d}:a instanceof Array?function(d){for(var e,f,g=a.length,h=0,i=A;--g>-1;)e=a[g],f=e-d,0>f&&(f=-f),i>f&&e>=b&&c>=e&&(h=g,i=f);return a[h]}:isNaN(a)?function(a){return a}:function(){return a*d}},ob=function(a,b,c,d,e,f,g){return f=f&&A>f?f*f:A,"function"==typeof a?function(h){var i,j,k,l=Ha.isPressed?1-Ha.edgeResistance:1,m=h.x,n=h.y;return h.x=m=m>c?c+(m-c)*l:b>m?b+(m-b)*l:m,h.y=n=n>e?e+(n-e)*l:d>n?d+(n-d)*l:n,i=a.call(Ha,h),i!==h&&(h.x=i.x,h.y=i.y),1!==g&&(h.x*=g,h.y*=g),A>f&&(j=h.x-m,k=h.y-n,j*j+k*k>f&&(h.x=m,h.y=n)),h}:a instanceof Array?function(b){for(var c,d,e,g,h=a.length,i=0,j=A;--h>-1;)e=a[h],c=e.x-b.x,d=e.y-b.y,g=c*c+d*d,j>g&&(i=h,j=g);return f>=j?a[i]:b}:function(a){return a}},pb=function(a,c){var e;if(h&&!Ha.isPressed&&a&&("mousedown"!==a.type&&"pointerdown"!==a.type||c||!(B()-bb<30)||!Ja[Ha.pointerEvent.type])){if(na=lb(),Ha.pointerEvent=a,Ja[a.type]?(ia=-1!==a.type.indexOf("touch")?a.currentTarget||a.target:u,Ka(ia,"touchend",sb),Ka(ia,"touchmove",qb),Ka(ia,"touchcancel",sb),Ka(u,"touchstart",Oa)):(ia=null,Ka(u,"mousemove",qb)),sa=null,Ka(u,"mouseup",sb),a&&a.target&&Ka(a.target,"mouseup",sb),ha=ab.call(Ha,a.target)&&f.dragClickables!==!1&&!c)return Ka(a.target,"change",sb),ka(Ha,"pressInit","onPressInit"),ka(Ha,"press","onPress"),void Ra(Na,!0);if(ra=!ia||Ea===Fa||Ha.vars.allowNativeTouchScrolling===!1||Ha.vars.allowContextMenu&&a&&(a.ctrlKey||a.which>2)?!1:Ea?"y":"x",C?a=_(a,!0):ra||Ha.allowEventDefault||(a.preventDefault(),a.preventManipulation&&a.preventManipulation()),a.changedTouches?(a=U=a.changedTouches[0],V=a.identifier):a.pointerId?V=a.pointerId:U=V=null,I++,Q(db),k=Ha.pointerY=a.pageY,j=Ha.pointerX=a.pageX,ka(Ha,"pressInit","onPressInit"),(ra||Ha.autoScroll)&&$(d.parentNode),!d.parentNode||!Ha.autoScroll||i||za||!d.parentNode._gsMaxScrollX||D.parentNode||d.getBBox||(D.style.width=d.parentNode.scrollWidth+"px",d.parentNode.appendChild(D)),kb(),Ha.tween&&Ha.tween.kill(),Ha.isThrowing=!1,b.killTweensOf(i||d,!0,Sa),i&&b.killTweensOf(d,!0,{scrollTo:1}),Ha.tween=Ha.lockedAxis=null,(f.zIndexBoost||!za&&!i&&f.zIndexBoost!==!1)&&(d.style.zIndex=Ua.zIndex++),Ha.isPressed=!0,t=!(!f.onDrag&&!Ha._listeners.drag),!za&&(f.cursor!==!1||f.activeCursor))for(e=Na.length;--e>-1;)ca(Na[e],"cursor",f.activeCursor||f.cursor||"move");ka(Ha,"press","onPress")}},qb=function(a){var b,c,d,f,g,i,l=a;if(h&&!e&&Ha.isPressed&&a){if(Ha.pointerEvent=a,b=a.changedTouches){if(a=b[0],a!==U&&a.identifier!==V){for(f=b.length;--f>-1&&(a=b[f]).identifier!==V;);if(0>f)return}}else if(a.pointerId&&V&&a.pointerId!==V)return;if(C)a=_(a,!0);else{if(ia&&ra&&!sa&&(c=a.pageX,d=a.pageY,ma&&(f=c*ma[0]+d*ma[2]+ma[4],d=c*ma[1]+d*ma[3]+ma[5],c=f),g=Math.abs(c-j),i=Math.abs(d-k),(g!==i&&(g>Ga||i>Ga)||J&&ra===sa)&&(sa=g>i&&Ea?"x":"y",Ha.vars.lockAxisOnTouchScroll!==!1&&(Ha.lockedAxis="x"===sa?"y":"x","function"==typeof Ha.vars.onLockAxis&&Ha.vars.onLockAxis.call(Ha,l)),J&&ra===sa)))return void sb(l);Ha.allowEventDefault||ra&&(!sa||ra===sa)||l.cancelable===!1||(l.preventDefault(),l.preventManipulation&&l.preventManipulation())}Ha.autoScroll&&(Wa=!0),rb(a.pageX,a.pageY)}},rb=function(a,b){var c,d,e,f,g,h,i=1-Ha.dragResistance,m=1-Ha.edgeResistance;Ha.pointerX=a,Ha.pointerY=b,za?(f=Math.atan2(Z.y-b,a-Z.x)*z,g=Ha.y-f,g>180?(r-=360,Ha.y=f):-180>g&&(r+=360,Ha.y=f),Ha.x!==l||Math.abs(r-f)>Ga?(Ha.y=f,e=l+(r-f)*i):e=l):(ma&&(h=a*ma[0]+b*ma[2]+ma[4],b=a*ma[1]+b*ma[3]+ma[5],a=h),d=b-k,c=a-j,Ga>d&&d>-Ga&&(d=0),Ga>c&&c>-Ga&&(c=0),(Ha.lockAxis||Ha.lockedAxis)&&(c||d)&&(h=Ha.lockedAxis,h||(Ha.lockedAxis=h=Ea&&Math.abs(c)>Math.abs(d)?"y":Fa?"x":null,h&&"function"==typeof Ha.vars.onLockAxis&&Ha.vars.onLockAxis.call(Ha,Ha.pointerEvent)),"y"===h?d=0:"x"===h&&(c=0)),e=l+c*i,f=r+d*i),(ea||fa||ga)&&(Ha.x!==e||Ha.y!==f&&!za)?(ga&&(L.x=e,L.y=f,h=ga(L),e=h.x,f=h.y),ea&&(e=ea(e)),fa&&(f=fa(f))):s&&(e>w?e=w+(e-w)*m:x>e&&(e=x+(e-x)*m),za||(f>E?f=E+(f-E)*m:H>f&&(f=H+(f-H)*m))),za||ma||(e=Math.round(e),f=Math.round(f)),(Ha.x!==e||Ha.y!==f&&!za)&&(za?(Ha.endRotation=Ha.x=Ha.endX=e,ba=!0):(Fa&&(Ha.y=Ha.endY=f,ba=!0),Ea&&(Ha.x=Ha.endX=e,ba=!0)),!Ha.isDragging&&Ha.isPressed&&(Ha.isDragging=!0,ka(Ha,"dragstart","onDragStart")))},sb=function(a,c){if(h&&Ha.isPressed&&(!a||null==V||c||!(a.pointerId&&a.pointerId!==V||a.changedTouches&&!Ma(a.changedTouches,V)))){Ha.isPressed=!1;var e,g,i,j,k,l=a,m=Ha.isDragging,n=Ha.vars.allowContextMenu&&a&&(a.ctrlKey||a.which>2),o=b.delayedCall(.001,mb);if(ia?(La(ia,"touchend",sb),La(ia,"touchmove",qb),La(ia,"touchcancel",sb),La(u,"touchstart",Oa)):La(u,"mousemove",qb),La(u,"mouseup",sb),a&&a.target&&La(a.target,"mouseup",sb),ba=!1,ha&&!n)return a&&(La(a.target,"change",sb),Ha.pointerEvent=l),Ra(Na,!1),ka(Ha,"release","onRelease"),ka(Ha,"click","onClick"),void(ha=!1);if(R(db),!za)for(g=Na.length;--g>-1;)ca(Na[g],"cursor",f.cursor||(f.cursor!==!1?"move":null));if(m&&(Va=K=B(),Ha.isDragging=!1),I--,a){if(C&&(a=_(a,!1)),e=a.changedTouches,e&&(a=e[0],a!==U&&a.identifier!==V)){for(g=e.length;--g>-1&&(a=e[g]).identifier!==V;);if(0>g)return}Ha.pointerEvent=l,Ha.pointerX=a.pageX,Ha.pointerY=a.pageY}return n&&l?(l.preventDefault(),l.preventManipulation&&l.preventManipulation(),ka(Ha,"release","onRelease")):l&&!m?(na&&(f.snap||f.bounds)&&ib(f.throwProps),ka(Ha,"release","onRelease"),J&&"touchmove"===l.type||-1!==l.type.indexOf("cancel")||(ka(Ha,"click","onClick"),B()-bb<300&&ka(Ha,"doubleclick","onDoubleClick"),j=l.target||l.srcElement||d,bb=B(),k=function(){bb!==va&&Ha.enabled()&&!Ha.isPressed&&(j.click?j.click():u.createEvent&&(i=u.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,window,1,Ha.pointerEvent.screenX,Ha.pointerEvent.screenY,Ha.pointerX,Ha.pointerY,!1,!1,!1,!1,0,null),j.dispatchEvent(i)))},J||l.defaultPrevented||b.delayedCall(1e-5,k))):(ib(f.throwProps),C||Ha.allowEventDefault||!l||f.dragClickables===!1&&ab.call(Ha,l.target)||!m||ra&&(!sa||ra!==sa)||l.cancelable===!1||(l.preventDefault(),l.preventManipulation&&l.preventManipulation()),ka(Ha,"release","onRelease")),lb()&&o.duration(Ha.tween.duration()),m&&ka(Ha,"dragend","onDragEnd"),!0}},tb=function(a){if(a&&Ha.isDragging&&!i){var b=a.target||a.srcElement||d.parentNode,c=b.scrollLeft-b._gsScrollX,e=b.scrollTop-b._gsScrollY;(c||e)&&(ma?(j-=c*ma[0]+e*ma[2],k-=e*ma[3]+c*ma[1]):(j-=c,k-=e),b._gsScrollX+=c,b._gsScrollY+=e,rb(Ha.pointerX,Ha.pointerY))}},ub=function(a){var b=B(),c=40>b-bb,d=40>b-Va,e=c&&va===bb,f=!!a.preventDefault,g=Ha.pointerEvent&&Ha.pointerEvent.defaultPrevented,h=c&&wa===bb,i=a.isTrusted||null==a.isTrusted&&c&&e;
|
|
return f&&(e||d&&Ha.vars.suppressClickOnDrag!==!1)&&a.stopImmediatePropagation(),!c||Ha.pointerEvent&&Ha.pointerEvent.defaultPrevented||e&&i===h?void((Ha.isPressed||d||c)&&(f?i&&a.detail&&c&&!g||(a.preventDefault(),a.preventManipulation&&a.preventManipulation()):a.returnValue=!1)):(i&&e&&(wa=bb),void(va=bb))},vb=function(a){return ma?{x:a.x*ma[0]+a.y*ma[2]+ma[4],y:a.x*ma[1]+a.y*ma[3]+ma[5]}:{x:a.x,y:a.y}};da=Ua.get(this.target),da&&da.kill(),this.startDrag=function(a,b){var c,e,f,g;pb(a||Ha.pointerEvent,!0),b&&!Ha.hitTest(a||Ha.pointerEvent)&&(c=Ya(a||Ha.pointerEvent),e=Ya(d),f=vb({x:c.left+c.width/2,y:c.top+c.height/2}),g=vb({x:e.left+e.width/2,y:e.top+e.height/2}),j-=f.x-g.x,k-=f.y-g.y),Ha.isDragging||(Ha.isDragging=!0,ka(Ha,"dragstart","onDragStart"))},this.drag=qb,this.endDrag=function(a){sb(a||Ha.pointerEvent,!0)},this.timeSinceDrag=function(){return Ha.isDragging?0:(B()-Va)/1e3},this.timeSinceClick=function(){return(B()-bb)/1e3},this.hitTest=function(a,b){return Ua.hitTest(Ha.target,a,b)},this.getDirection=function(a,b){var c,d,e,f,h,i,j="velocity"===a&&g?a:"object"!=typeof a||za?"start":"element";return"element"===j&&(h=Ya(Ha.target),i=Ya(a)),c="start"===j?Ha.x-l:"velocity"===j?g.getVelocity(this.target,Aa):h.left+h.width/2-(i.left+i.width/2),za?0>c?"counter-clockwise":"clockwise":(b=b||2,d="start"===j?Ha.y-r:"velocity"===j?g.getVelocity(this.target,Ba):h.top+h.height/2-(i.top+i.height/2),e=Math.abs(c/d),f=1/b>e?"":0>c?"left":"right",b>e&&(""!==f&&(f+="-"),f+=0>d?"up":"down"),f)},this.applyBounds=function(a){var b,c,e,g,h,i;if(a&&f.bounds!==a)return f.bounds=a,Ha.update(!0);if(eb(!0),fb(),s){if(b=Ha.x,c=Ha.y,b>w?b=w:x>b&&(b=x),c>E?c=E:H>c&&(c=H),(Ha.x!==b||Ha.y!==c)&&(e=!0,Ha.x=Ha.endX=b,za?Ha.endRotation=b:Ha.y=Ha.endY=c,ba=!0,db(!0),Ha.autoScroll&&!Ha.isDragging))for($(d.parentNode),g=d,M.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=v.scrollTop?v.scrollTop:u.body.scrollTop,M.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=v.scrollLeft?v.scrollLeft:u.body.scrollLeft;g&&!i;)i=Y(g.parentNode),h=i?M:g.parentNode,Fa&&h.scrollTop>h._gsMaxScrollY&&(h.scrollTop=h._gsMaxScrollY),Ea&&h.scrollLeft>h._gsMaxScrollX&&(h.scrollLeft=h._gsMaxScrollX),g=h;Ha.isThrowing&&(e||Ha.endX>w||Ha.endX<x||Ha.endY>E||Ha.endY<H)&&ib(f.throwProps,e)}return Ha},this.update=function(a,b,c){var e=Ha.x,f=Ha.y;return jb(!b),a?Ha.applyBounds():(ba&&c&&db(!0),eb(!0)),b&&(rb(Ha.pointerX,Ha.pointerY),ba&&db(!0)),Ha.isPressed&&!b&&(Ea&&Math.abs(e-Ha.x)>.01||Fa&&Math.abs(f-Ha.y)>.01&&!za)&&kb(),Ha.autoScroll&&($(d.parentNode),Wa=Ha.isDragging,db(!0)),Ha.autoScroll&&(X(d,tb),W(d,tb)),Ha},this.enable=function(a){var e,j,k;if("soft"!==a){for(j=Na.length;--j>-1;)k=Na[j],Ka(k,"mousedown",pb),Ka(k,"touchstart",pb),Ka(k,"click",ub,!0),za||f.cursor===!1||ca(k,"cursor",f.cursor||"move"),ca(k,"touchCallout","none"),ca(k,"touchAction",Ea===Fa?"none":Ea?"pan-y":"pan-x"),ua(k)&&ca(k.ownerSVGElement||k,"touchAction",Ea===Fa?"none":Ea?"pan-y":"pan-x"),this.vars.allowContextMenu||Ka(k,"contextmenu",cb);Ra(Na,!1)}return W(d,tb),h=!0,g&&"soft"!==a&&g.track(i||d,ya?"x,y":za?"rotation":"top,left"),i&&i.enable(),d._gsDragID=e="d"+G++,F[e]=this,i&&(i.element._gsDragID=e),b.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),qa={t:d,data:C?S:d._gsTransform,tween:{},setRatio:C?function(){b.set(d,P)}:c._internals.setTransformRatio||c._internals.set3DTransformRatio},kb(),Ha.update(!0),Ha},this.disable=function(a){var b,c,e=Ha.isDragging;if(!za)for(b=Na.length;--b>-1;)ca(Na[b],"cursor",null);if("soft"!==a){for(b=Na.length;--b>-1;)c=Na[b],ca(c,"touchCallout",null),ca(c,"touchAction",null),La(c,"mousedown",pb),La(c,"touchstart",pb),La(c,"click",ub),La(c,"contextmenu",cb);Ra(Na,!0),ia&&(La(ia,"touchcancel",sb),La(ia,"touchend",sb),La(ia,"touchmove",qb)),La(u,"mouseup",sb),La(u,"mousemove",qb)}return X(d,tb),h=!1,g&&"soft"!==a&&g.untrack(i||d,ya?"x,y":za?"rotation":"top,left"),i&&i.disable(),R(db),Ha.isDragging=Ha.isPressed=ha=!1,e&&ka(Ha,"dragend","onDragEnd"),Ha},this.enabled=function(a,b){return arguments.length?a?Ha.enable(b):Ha.disable(b):h},this.kill=function(){return Ha.isThrowing=!1,b.killTweensOf(i||d,!0,Sa),Ha.disable(),b.set(Na,{clearProps:"userSelect"}),delete F[d._gsDragID],Ha},-1!==xa.indexOf("scroll")&&(i=this.scrollProxy=new Ta(d,T({onKill:function(){Ha.isPressed&&sb(null)}},f)),d.style.overflowY=Fa&&!Ia?"auto":"hidden",d.style.overflowX=Ea&&!Ia?"auto":"hidden",d=i.content),f.force3D!==!1&&b.set(d,{force3D:!0}),za?Sa.rotation=1:(Ea&&(Sa[Aa]=1),Fa&&(Sa[Ba]=1)),za?(P=p,S=P.css,P.overwrite=!1):ya&&(P=Ea&&Fa?m:Ea?n:o,S=P.css,P.overwrite=!1),this.enable()},Va=Ua.prototype=new a;Va.constructor=Ua,Va.pointerX=Va.pointerY=Va.startX=Va.startY=Va.deltaX=Va.deltaY=0,Va.isDragging=Va.isPressed=!1,Ua.version="0.17.0",Ua.zIndex=1e3,Ka(u,"touchcancel",function(){}),Ka(u,"contextmenu",function(a){var b;for(b in F)F[b].isPressed&&F[b].endDrag()}),Ua.create=function(a,c){"string"==typeof a&&(a=b.selector(a));for(var d=a&&0!==a.length?Ga(a)?Ha(a):[a]:[],e=d.length;--e>-1;)d[e]=new Ua(d[e],c);return d},Ua.get=function(a){return F[(aa(a)||{})._gsDragID]},Ua.timeSinceDrag=function(){return(B()-K)/1e3};var Wa={},Xa=function(a){var b,c,d=0,e=0;for(a=aa(a),b=a.offsetWidth,c=a.offsetHeight;a;)d+=a.offsetTop,e+=a.offsetLeft,a=a.offsetParent;return{top:d,left:e,width:b,height:c}},Ya=function(a,b){if(a===window)return Wa.left=Wa.top=0,Wa.width=Wa.right=v.clientWidth||a.innerWidth||u.body.clientWidth||0,Wa.height=Wa.bottom=(a.innerHeight||0)-20<v.clientHeight?v.clientHeight:a.innerHeight||u.body.clientHeight||0,Wa;var c=a.pageX!==b?{left:a.pageX-V(),top:a.pageY-U(),right:a.pageX-V()+1,bottom:a.pageY-U()+1}:a.nodeType||a.left===b||a.top===b?C?Xa(a):aa(a).getBoundingClientRect():a;return c.right===b&&c.width!==b?(c.right=c.left+c.width,c.bottom=c.top+c.height):c.width===b&&(c={width:c.right-c.left,height:c.bottom-c.top,right:c.right,left:c.left,bottom:c.bottom,top:c.top}),c};return Ua.hitTest=function(a,b,c){if(a===b)return!1;var d,e,f,g=Ya(a),h=Ya(b),i=h.left>g.right||h.right<g.left||h.top>g.bottom||h.bottom<g.top;return i||!c?!i:(f=-1!==(c+"").indexOf("%"),c=parseFloat(c)||0,d={left:Math.max(g.left,h.left),top:Math.max(g.top,h.top)},d.width=Math.min(g.right,h.right)-d.left,d.height=Math.min(g.bottom,h.bottom)-d.top,d.width<0||d.height<0?!1:f?(c*=.01,e=d.width*d.height,e>=g.width*g.height*c||e>=h.width*h.height*c):d.width>c&&d.height>c)},D.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",Ua},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),require("../TimelineLite.min.js"),require("../plugins/CSSPlugin.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite","TimelineLite","CSSPlugin"],b)}("GSDevTools"); |