Automatically save\n values to localStorage
on exit.\n\n
localStorage
will\n override those passed to dat.GUI
\'s constructor. This makes it\n easier to work incrementally, but localStorage
is fragile,\n and your friends may not see the same values you do.\n\n e)for(i=t._first;i&&i._start<=n;){if(!i._dur&&"isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(!i._dur&&"isPause"===i.data&&i._start 0)&&this._prom()))}}else!function(t,e,n,i){var r,a,o=t.ratio,s=e<0||!e&&o&&!t._start&&t._zTime>O&&!t._dp._lock||(t._ts<0||t._dp._ts<0)&&"isFromStart"!==t.data&&"isStart"!==t.data?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Qt(0,t._tDur,e),zt(c,l)!==(a=zt(t._tTime,l))&&(o=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),s!==o||i||t._zTime===O||!e&&t._zTime){if(!t._initted&&Wt(t,e,i,n))return;for(a=t._zTime,t._zTime=e||(n?O:0),n||(n=e&&!a),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=c,n||de(t,"onStart"),r=t._pt;r;)r.r(s,r.d),r=r._next;t._startAt&&e<0&&t._startAt.render(e,!0,!0),t._onUpdate&&!n&&de(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&de(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&It(t,1),n||(de(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},a.targets=function(){return this._targets},a.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},a.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return pe(this);if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ze&&!0!==ze.vars.overwrite)._first||pe(this),this.parent&&n!==this.timeline.totalDuration()&&Xt(this,this._dur*this.timeline._tDur/n,0,1),this}var i,r,a,o,s,l,c,u=this._targets,h=t?ne(t):u,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,i=n===e.length;i&&n--&&t[n]===e[n];);return n<0}(u,h))return"all"===e&&(this._pt=0),pe(this);for(i=this._op=this._op||[],"all"!==e&&(F(e)&&(s={},_t(e,function(t){return s[t]=1}),e=s),e=function(t,e){var n,i,r,a,o=t[0]?gt(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(i in n=Lt({},e),s)if(i in n)for(r=(a=s[i].split(",")).length;r--;)n[a[r]]=n[i];return n}(u,e)),c=u.length;c--;)if(~h.indexOf(u[c]))for(s in r=d[c],"all"===e?(i[c]=e,o=r,a={}):(a=i[c]=i[c]||{},o=e),o)(l=r&&r[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Dt(this,l,"_pt"),delete r[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&pe(this),this},r.to=function(t,e){return new r(t,e,arguments[2])},r.from=function(t,e){return new r(t,wt(arguments,1))},r.delayedCall=function(t,e,n,i){return new r(e,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:e,onReverseComplete:e,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},r.fromTo=function(t,e,n){return new r(t,wt(arguments,2))},r.set=function(t,e){return e.duration=0,e.repeatDelay||(e.repeat=0),new r(t,e)},r.killTweensOf=function(t,e,n){return i.killTweensOf(t,e,n)},r}(He);At(We.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),_t("staggerTo,staggerFrom,staggerFromTo",function(t){We[t]=function(){var e=new Be,n=$t.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}});var Xe=function(t,e,n){return t[e]=n},qe=function(t,e,n){return t[e](n)},Ye=function(t,e,n,i){return t[e](i.fp,n)},Ze=function(t,e,n){return t.setAttribute(e,n)},Je=function(t,e){return k(t[e])?qe:U(t[e])&&t.setAttribute?Ze:Xe},Qe=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Ke=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},$e=function(t,e){var n=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+i,n=n._next;i+=e.c}e.set(e.t,e.p,i,e)},tn=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},en=function(t,e,n,i){for(var r,a=this._pt;a;)r=a._next,a.p===i&&a.modifier(t,e,n),a=r},nn=function(t){for(var e,n,i=this._pt;i;)n=i._next,i.p===t&&!i.op||i.op===t?Dt(this,i,"_pt"):i.dep||(e=1),i=n;return!e},rn=function(t,e,n,i){i.mSet(t,e,i.m.call(i.tween,n,i.mt),i)},an=function(t){for(var e,n,i,r,a=t._pt;a;){for(e=a._next,n=i;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:r)?a._prev._next=a:i=a,(a._next=n)?n._prev=a:r=a,a=e}t._pt=i},on=function(){function t(t,e,n,i,r,a,o,s,l){this.t=e,this.s=i,this.c=r,this.p=n,this.r=a||Qe,this.d=o||this,this.set=s||Xe,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=rn,this.m=t,this.mt=n,this.tween=e},t}();_t(mt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return lt[t]=1}),et.TweenMax=et.TweenLite=We,et.TimelineLite=et.TimelineMax=Be,i=new Be({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),C.stringFilter=be;var sn={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n