{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/tween-animation/1.0.0',[],function(a){var b=Math.pow;function c(b,c){var d='undefined'!=typeof Symbol&&b[Symbol.iterator]||b['@@iterator'];if(!d){if(Array.isArray(b)||(d=g(b))||c&&b&&'number'==typeof b.length){d&&(b=d);var e=0,f=function a(){};return{s:f,n:function a(){return e>=b.length?{done:!0}:{done:!1,value:b[e++]}},e:function b(a){throw a},f:f}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var h,i=!0,j=!1;return{s:function a(){d=d.call(b)},n:function a(){var b=d.next();return i=b.done,b},e:function b(a){j=!0,h=a},f:function a(){try{i||null==d.return||d.return()}finally{if(j)throw h}}}}function d(a,b){return j(a)||i(a,b)||g(a,b)||f()}function f(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function g(b,c){if(b){if('string'==typeof b)return h(b,c);var a={}.toString.call(b).slice(8,-1);return'Object'===a&&b.constructor&&(a=b.constructor.name),'Map'===a||'Set'===a?Array.from(b):'Arguments'===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(b,c):void 0}}function h(b,c){(null==c||c>b.length)&&(c=b.length);for(var d=0,f=Array(c);darguments.length?a:c):e.value}},q.apply(null,arguments)}function s(a,b){for(;!{}.hasOwnProperty.call(a,b)&&null!==(a=u(a)););return a}function u(a){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},u(a)}function v(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function');a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,'prototype',{writable:!1}),b&&w(a,b)}function w(a,b){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,b){return a.__proto__=b,a},w(a,b)}function x(a){\"@babel/helpers - typeof\";return x='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},x(a)}function y(b,a){if(!(b instanceof a))throw new TypeError('Cannot call a class as a function')}function z(a,b){for(var c,d=0;d=this.duration?this.complete():this.timer+=a}},{key:'reset',value:function a(){o(b,'reset',this,3)([]),this.timer=0}}])}(D),F=function(a){function b(a){var c;return y(this,b),c=k(this,b),c.func=a,c}return v(b,a),A(b,[{key:'update',value:function a(){this.func(),this.completed=!0}}])}(D),G=function(a){function b(c,d,e,f,a){var h,g=Math.round;return y(this,b),h=k(this,b),h._inited=!1,h.maxCount=g(e/(1e3/60)),h.obj=c,h.completed=!1,h.args=arguments,h}return v(b,a),A(b,[{key:'init',value:function b(){this._inited=!0;var c=d(this.args,5),f=c[0],e=c[1],g=c[2],h=c[3],a=c[4];if(this.updateList=[],'object'==x(e))for(var j in e){var k=e[j],l=this.obj[j];'number'==typeof l&&'number'==typeof k&&0=this.duration?(this.completed=!0,this.target):this.cur+this.a*b(this.t,this.n)}}])}(),EaseOut:function(){function a(c,d,e,f){y(this,a),this.duration=c,this.completed=!1,this.target=e,this.cur=d,this.t=0,this.n=f,this.a=(e-d)/b(c,f)}return A(a,[{key:'reset',value:function a(){this.completed=!1,this.t=0}},{key:'update',value:function c(a){return this.t+=a,this.t>=this.duration?(this.completed=!0,this.target):this.cur+this.a*b(this.duration-this.t,this.n)}}])}(),EaseInOut:function(){function a(c,d,e,f){y(this,a),this.duration=c,this.completed=!1,this.target=e,this.cur=d,this.t=0,this.n=f;var g=c/2,h=(e-d)/2;this.xh=g,this.a=h/b(g,f)}return A(a,[{key:'reset',value:function a(){this.completed=!1,this.t=0}},{key:'update',value:function c(a){return this.t+=a,this.t>=this.duration?(this.completed=!0,this.target):this.t=this.duration?(this.completed=!0,this.target):this.cur+this.t*this.a}}])}()},I=function(){function a(b,c){y(this,a),this.obj=b,this.tweenList=[],this.completed=!1,c.push(this),this.isLoop=!1,this.curIndex=0,this._onUpdate=null,this._onComplete=null}return A(a,[{key:'onUpdate',value:function b(a){this._onUpdate=a}},{key:'onComplete',value:function b(a){this._onComplete=a}},{key:'loop',value:function a(){return this.isLoop=!0,this}},{key:'callback',value:function b(a){return this.tweenList.push(new F(a)),this}},{key:'delay',value:function b(a){return this.tweenList.push(new E(a)),this}},{key:'destroy',value:function a(){this.tweenList=[],this.completed=!0}},{key:'to',value:function a(b,c,d,e){var f=d||H.Linear,g=e||1;return this.tweenList.push(new G(this.obj,b,c,f,g)),this}},{key:'set',value:function b(a){var c=this;return this.tweenList.push(new F(function(){Object.keys(a).forEach(function(b){return c.obj[b]=a[b]})})),this}},{key:'complete',value:function a(){if(this.isLoop){this.curIndex=0;var b,d=c(this.tweenList);try{for(d.s();!(b=d.n()).done;){var f=b.value;f.reset()}}catch(a){d.e(a)}finally{d.f()}}else this.completed=!0,delete this.tweenList,delete this.obj,this._onComplete&&this._onComplete()}},{key:'update',value:function b(a){var c=this.tweenList;if(this.curIndex>c.length-1)return void this.complete();var d=c[this.curIndex];d.completed?(this.curIndex++,this.update(a)):(d.update(a),d.isDelay||this._onUpdate&&this._onUpdate(this.obj))}}])}(),J=function(){function a(){y(this,a),this.animationes=[],this.flag=!1,this.isStart=!1,this.startTime=0,this.excuteAnimationCallback=[],this.requestAnimation=0,this.filterBlur=!1,this.filters=[]}return A(a,[{key:'clear',value:function a(){this.animationes=[],this.flag=!1,this.isStart=!1,this.startTime=0,this.excuteAnimationCallback=[],this.filterBlur=!1,this.filters=[]}},{key:'requestAnimationFrameCallback',value:function a(){var b=this;if(this.isStart){this.filterBlur=!0;var c;if(0>=this.excuteAnimationCallback.length)return c=this.requestAnimation,this.filterBlur?this.filters.push(c):this.excuteAnimationCallback=this.excuteAnimationCallback.filter(function(a){return a!==c}),this.isStart=!1,this.filterBlur=!1;if(0=h.length)return b(g),d=!1,void(f=!1);if(0(a*=2)?.5*a*a:-.5*(--a*(a-2)-1)}}),Cubic:Object.freeze({In:function(a){return a*a*a},Out:function(a){return--a*a*a+1},InOut:function(a){return 1>(a*=2)?.5*a*a*a:.5*((a-=2)*a*a+2)}}),Quartic:Object.freeze({In:function(a){return a*a*a*a},Out:function(a){return 1- --a*a*a*a},InOut:function(a){return 1>(a*=2)?.5*a*a*a*a:-.5*((a-=2)*a*a*a-2)}}),Quintic:Object.freeze({In:function(a){return a*a*a*a*a},Out:function(a){return--a*a*a*a*a+1},InOut:function(a){return 1>(a*=2)?.5*a*a*a*a*a:.5*((a-=2)*a*a*a*a+2)}}),Sinusoidal:Object.freeze({In:function(a){return 1-e((1-a)*f/2)},Out:function(a){return e(a*f/2)},InOut:function(a){return .5*(1-e(f*(.5-a)))}}),Exponential:Object.freeze({In:function(a){return 0===a?0:d(1024,a-1)},Out:function(a){return 1===a?1:1-d(2,-10*a)},InOut:function(a){return 0===a?0:1===a?1:1>(a*=2)?.5*d(1024,a-1):.5*(-d(2,-10*(a-1))+2)}}),Circular:Object.freeze({In:function(a){return 1-c(1-a*a)},Out:function(a){return c(1- --a*a)},InOut:function(a){return 1>(a*=2)?-.5*(c(1-a*a)-1):.5*(c(1-(a-=2)*a)+1)}}),Elastic:Object.freeze({In:function(a){return 0===a?0:1===a?1:-d(2,10*(a-1))*e(5*(a-1.1)*f)},Out:function(a){return 0===a?0:1===a?1:d(2,-10*a)*e(5*(a-.1)*f)+1},InOut:function(a){return 0===a?0:1===a?1:(a*=2,1>a?-.5*d(2,10*(a-1))*e(5*(a-1.1)*f):.5*d(2,-10*(a-1))*e(5*(a-1.1)*f)+1)}}),Back:Object.freeze({In:function(a){var b=1.70158;return 1===a?1:a*a*((b+1)*a-b)},Out:function(a){var b=1.70158;return 0===a?0:--a*a*((b+1)*a+b)+1},InOut:function(a){var b=1.70158*1.525;return 1>(a*=2)?.5*(a*a*((b+1)*a-b)):.5*((a-=2)*a*((b+1)*a+b)+2)}}),Bounce:Object.freeze({In:function(a){return 1-h.Bounce.Out(1-a)},Out:function(a){return a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-=1.5/2.75)*a+.75:a<2.5/2.75?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},InOut:function(a){return .5>a?.5*h.Bounce.In(2*a):.5*h.Bounce.Out(2*a-1)+.5}}),generatePow:function(a){var b=Number.EPSILON;return void 0===a&&(a=4),a=ab?d(2*b,a)/2:(1-d(2-2*b,a))/2+.5}}}}),j=function(){return performance.now()},k=function(){function a(){this._tweens={},this._tweensAddedDuringUpdate={}}return a.prototype.getAll=function(){var a=this;return Object.keys(this._tweens).map(function(b){return a._tweens[b]})},a.prototype.removeAll=function(){this._tweens={}},a.prototype.add=function(a){this._tweens[a.getId()]=a,this._tweensAddedDuringUpdate[a.getId()]=a},a.prototype.remove=function(a){delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]},a.prototype.update=function(a,b){void 0===a&&(a=j()),void 0===b&&(b=!1);var c=Object.keys(this._tweens);if(0===c.length)return!1;for(;0c?g(a[0],a[1],e):1d?d:f+1],e-f)},Bezier:function(a,c){for(var e=0,f=a.length-1,g=d,h=l.Utils.Bernstein,j=0;j<=f;j++)e+=g(1-c,f-j)*g(c,j)*a[j]*h(f,j);return e},CatmullRom:function(a,c){var d=a.length-1,e=d*c,g=b(e),h=l.Utils.CatmullRom;return a[0]===a[d]?(0>c&&(g=b(e=d*(1+c))),h(a[(g-1+d)%d],a[g],a[(g+1)%d],a[(g+2)%d],e-g)):0>c?a[0]-(h(a[0],a[0],a[1],a[1],-e)-a[0]):1b?0:b,this},b.prototype.duration=function(a){return void 0===a&&(a=1e3),this._duration=0>a?0:a,this},b.prototype.dynamic=function(a){return void 0===a&&(a=!1),this._isDynamic=a,this},b.prototype.start=function(a,b){if(void 0===a&&(a=j()),void 0===b&&(b=!1),this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var c in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(c),this._valuesStart[c]=this._valuesStartRepeat[c];if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=a,this._startTime+=this._delayTime,!this._propertiesAreSetUp||b){if(this._propertiesAreSetUp=!0,!this._isDynamic){var d={};for(var e in this._valuesEnd)d[e]=this._valuesEnd[e];this._valuesEnd=d}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,b)}return this},b.prototype.startFromCurrentValues=function(a){return this.start(a,!0)},b.prototype._setupProperties=function(a,b,c,d,e){for(var f in c){var h=a[f],j=Array.isArray(h),k=j?'array':g(h),m=!j&&Array.isArray(c[f]);if('undefined'!==k&&'function'!==k){if(m){var n=c[f];if(0===n.length)continue;for(var o,p=[h],q=0,r=n.length;qd)return!1;b&&this.start(a,!0)}if(this._goToEnd=!1,ad)return 1;var e=a(b%c/this._duration,1);return 0===e&&0!==b&&0==b%this._duration?1:e},b.prototype._calculateCompletionStatus=function(a){return 0!==this._duration&&a=this._repeat?'completed':a===this._duration?'about-to-repeat':'repeat'},b.prototype._processRepetition=function(b,c){var d=Math.trunc,e=a(d((b-this._duration)/c)+1,this._repeat);for(var f in isFinite(this._repeat)&&(this._repeat-=e),this._valuesStartRepeat){var g=this._valuesEnd[f];this._yoyo||'string'!=typeof g||(this._valuesStartRepeat[f]+=parseFloat(g)),this._yoyo&&this._swapEndStartRepeatValues(f),this._valuesStart[f]=this._valuesStartRepeat[f]}this._yoyo&&(this._reversed=!this._reversed),this._startTime+=c*e},b.prototype._updateProperties=function(a,b,c,d){for(var e in c)if(void 0!==b[e]){var f=b[e]||0,h=c[e],i=Array.isArray(a[e]),j=Array.isArray(h),k=!i&&j;k?a[e]=this._interpolationFunction(h,d):'object'===g(h)&&h?this._updateProperties(a[e],f,h,d):(h=this._handleRelativeValue(f,h),'number'==typeof h&&(a[e]=f+(h-f)*d))}},b.prototype._handleRelativeValue=function(a,b){return'string'==typeof b?'+'===b.charAt(0)||'-'===b.charAt(0)?a+parseFloat(b):parseFloat(b):b},b.prototype._swapEndStartRepeatValues=function(a){var b=this._valuesStartRepeat[a],c=this._valuesEnd[a];'string'==typeof c?this._valuesStartRepeat[a]+=parseFloat(c):this._valuesStartRepeat[a]=this._valuesEnd[a],this._valuesEnd[a]=b},b}(),p=m.nextId,q=n,r=q.getAll.bind(q),s=q.removeAll.bind(q),t=q.add.bind(q),u=q.remove.bind(q),v=q.update.bind(q);return a.exports={Easing:h,Group:k,Interpolation:l,now:j,Sequence:m,nextId:p,Tween:o,VERSION:'23.1.2',getAll:r,removeAll:s,add:t,remove:u,update:v},a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/tween-animation/1.0.0", "outputPath": "/com/tween-animation/1.0.0/tween.js", "fileName": "/tween.js" } }