kute.js/demo/src/kute-extra.min.js
thednp b0a6495748 Changes:
* replaced some path processing with SVGPathCommander
* minor improvements
2020-08-16 20:20:36 +00:00

3 lines
53 KiB
JavaScript

// KUTE.js Extra v2.0.13 | thednp © 2020 | MIT-License
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).KUTE=e()}(this,(function(){"use strict";var t={},e=[],n="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r={},a={},i={};i.now=self.performance.now.bind(self.performance);var s=0,o=function(t){for(var n=0;n<e.length;)e[n].update(t)?n++:e.splice(n,1);s=requestAnimationFrame(o)};function l(){setTimeout((function(){if(!e.length&&s){for(var n in cancelAnimationFrame(s),s=null,a)if("function"==typeof a[n])t[n]&&delete t[n];else for(var i in a[n])t[i]&&delete t[i];for(var o in r)t[o]&&delete t[o]}}),64)}var u={Tick:s,Ticker:o,Tweens:e,Time:i};for(var p in u)t[p]||(t[p]="Time"===p?i.now:u[p]);n._KUTE=t;var c={},h={},f={duration:700,delay:0,easing:"linear"},d={},v={},g={},m={},y={},b={supportedProperties:c,defaultValues:h,defaultOptions:f,prepareProperty:d,prepareStart:v,crossCheck:g,onStart:a,onComplete:m,linkProperty:y},w={},x={};function S(t){return e.push(t)}function M(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function T(){var e=this,n=function(n){var r=y[n],a=c[n];for(var i in r)if("function"==typeof r[i]&&Object.keys(e.valuesEnd).some((function(t){return a&&a.includes(t)||"attr"===t&&Object.keys(e.valuesEnd[t]).some((function(t){return a&&a.includes(t)}))})))!t[i]&&(t[i]=r[i]);else for(var s in e.valuesEnd)for(var o in e.valuesEnd[s])if("function"==typeof r[o])!t[o]&&(t[o]=r[o]);else for(var l in r[i])r[o]&&"function"==typeof r[o][l]&&!t[l]&&(t[l]=r[o][l])};for(var r in y)n(r)}var C={add:S,remove:M,getAll:function(){return e},removeAll:function(){e.length=0},stop:l,linkInterpolation:T};function E(t){if(t.style){var e=t.style.cssText.replace(/\s/g,"").split(";"),n={},r=["translate3d","translate","scale3d","skew"];return e.map((function(t){/transform/i.test(t)&&t.split(":")[1].split(")").map((function(t){var e=t.split("("),a=e[0],i=e[1];/matrix/.test(a)||(n[a]=r.includes(a)?i.split(","):i)}))})),n}}function _(t,e){var n=t.style,r=getComputedStyle(t)||t.currentStyle,a=n[e]&&!/auto|initial|none|unset/.test(n[e])?n[e]:r[e];if("transform"!==e&&(e in r||e in n))return a||h[e]}function k(t,e){var n="start"===e?this.valuesStart:this.valuesEnd;for(var r in d){var a=d[r],i=c[r];for(var s in a){var o={};for(var l in t)h[l]&&a[l]?n[l]=a[l].call(this,l,t[l]):!h[s]&&"transform"===s&&i.includes(l)?o[l]=t[l]:h[l]||"transform"!==l?!h[s]&&i&&i.includes(l)&&(n[l]=a[s].call(this,l,t[l])):n[l]=t[l];Object.keys&&Object.keys(o).length&&(n[s]=a[s].call(this,s,o))}}}function I(){var t={},e=E(this.element);for(var n in this.valuesStart)for(var r in v){var a=v[r];for(var i in a)(i===n&&a[n]||c[r]&&c[r].includes(n))&&(t[n]=a[i].call(this,n,this.valuesStart[n]))}for(var s in e)s in this.valuesStart||(t[s]=e[s]||h[s]);this.valuesStart={},k.call(this,t,"start")}var A={getInlineStyle:E,getStyleForProperty:_,getStartValues:I,prepareObject:k},P=function(t,e,n,r,a){var i=this;this.cx=3*t,this.bx=3*(n-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(r-e)-this.cy,this.ay=1-this.cy-this.by;var s=function(t){return i.sampleCurveY(i.solveCurveX(t))};return Object.defineProperty(s,"name",{writable:!0}),s.name=a||"cubic-bezier("+[t,e,n,r]+")",s};P.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},P.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},P.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},P.prototype.solveCurveX=function(t){var e,n,r,a,i,s;for(r=t,s=0;s<32;s++){if(a=this.sampleCurveX(r)-t,Math.abs(a)<1e-5)return r;if(i=this.sampleCurveDerivativeX(r),Math.abs(i)<1e-5)break;r-=a/i}if((r=t)<(e=0))return e;if(r>(n=1))return n;for(;e<n;){if(a=this.sampleCurveX(r),Math.abs(a-t)<1e-5)return r;t>a?e=r:n=r,r=.5*(n-e)+e}return r};var O={},L={linear:new P(0,0,1,1,"linear"),easingSinusoidalIn:new P(.47,0,.745,.715,"easingSinusoidalIn"),easingSinusoidalOut:new P(.39,.575,.565,1,"easingSinusoidalOut"),easingSinusoidalInOut:new P(.445,.05,.55,.95,"easingSinusoidalInOut"),easingQuadraticIn:new P(.55,.085,.68,.53,"easingQuadraticIn"),easingQuadraticOut:new P(.25,.46,.45,.94,"easingQuadraticOut"),easingQuadraticInOut:new P(.455,.03,.515,.955,"easingQuadraticInOut"),easingCubicIn:new P(.55,.055,.675,.19,"easingCubicIn"),easingCubicOut:new P(.215,.61,.355,1,"easingCubicOut"),easingCubicInOut:new P(.645,.045,.355,1,"easingCubicInOut"),easingQuarticIn:new P(.895,.03,.685,.22,"easingQuarticIn"),easingQuarticOut:new P(.165,.84,.44,1,"easingQuarticOut"),easingQuarticInOut:new P(.77,0,.175,1,"easingQuarticInOut"),easingQuinticIn:new P(.755,.05,.855,.06,"easingQuinticIn"),easingQuinticOut:new P(.23,1,.32,1,"easingQuinticOut"),easingQuinticInOut:new P(.86,0,.07,1,"easingQuinticInOut"),easingExponentialIn:new P(.95,.05,.795,.035,"easingExponentialIn"),easingExponentialOut:new P(.19,1,.22,1,"easingExponentialOut"),easingExponentialInOut:new P(1,0,0,1,"easingExponentialInOut"),easingCircularIn:new P(.6,.04,.98,.335,"easingCircularIn"),easingCircularOut:new P(.075,.82,.165,1,"easingCircularOut"),easingCircularInOut:new P(.785,.135,.15,.86,"easingCircularInOut"),easingBackIn:new P(.6,-.28,.735,.045,"easingBackIn"),easingBackOut:new P(.175,.885,.32,1.275,"easingBackOut"),easingBackInOut:new P(.68,-.55,.265,1.55,"easingBackInOut")};function V(t,e){try{return e?t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array&&t.every((function(t){return t instanceof Element}))?t:document.querySelectorAll(t):t instanceof Element||t===window?t:document.querySelector(t)}catch(e){console.error("KUTE.js - Element(s) not found: "+t+".")}}function U(){for(var t in a)if("function"==typeof a[t])a[t].call(this,t);else for(var e in a[t])a[t][e].call(this,e);T.call(this)}O.processEasing=function(t){if("function"==typeof t)return t;if("function"==typeof L[t])return L[t];if(/bezier/.test(t)){var e=t.replace(/bezier|\s|\(|\)/g,"").split(",");return new P(1*e[0],1*e[1],1*e[2],1*e[3])}return/elastic|bounce/i.test(t)&&console.warn("KUTE.js - CubicBezier doesn't support "+t+" easing."),L.linear};var F=function(e,n,r,i){for(var s in this.element=e,this.playing=!1,this._startTime=null,this._startFired=!1,this.valuesEnd=r,this.valuesStart=n,i=i||{},this._resetStart=i.resetStart||0,this._easing="function"==typeof i.easing?i.easing:O.processEasing(i.easing),this._duration=i.duration||f.duration,this._delay=i.delay||f.delay,i){var o="_"+s;o in this||(this[o]=i[s])}var l=this._easing.name;return a[l]||(a[l]=function(e){!t[e]&&e===this._easing.name&&(t[e]=this._easing)}),this};F.prototype.start=function(e){return S(this),this.playing=!0,this._startTime=void 0!==e?e:t.Time(),this._startTime+=this._delay,this._startFired||(this._onStart&&this._onStart.call(this),U.call(this),this._startFired=!0),!s&&o(),this},F.prototype.stop=function(){return this.playing&&(M(this),this.playing=!1,this._onStop&&this._onStop.call(this),this.close()),this},F.prototype.close=function(){for(var t in m)for(var e in m[t])m[t][e].call(this,e);this._startFired=!1,l.call(this)},F.prototype.chain=function(t){return this._chain=[],this._chain=t.length?t:this._chain.concat(t),this},F.prototype.stopChainedTweens=function(){this._chain&&this._chain.length&&this._chain.map((function(t){return t.stop()}))},F.prototype.update=function(e){var n,r;if((e=void 0!==e?e:t.Time())<this._startTime&&this.playing)return!0;for(var a in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[a](this.element,this.valuesStart[a],this.valuesEnd[a],r);return this._onUpdate&&this._onUpdate.call(this),1!==n||(this._onComplete&&this._onComplete.call(this),this.playing=!1,this.close(),void 0!==this._chain&&this._chain.length&&this._chain.map((function(t){return t.start()})),!1)},O.tween=F,f.repeat=0,f.repeatDelay=0,f.yoyo=!1,f.resetStart=!1;var j=function(e){function n(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];e.apply(this,t),this.valuesStart={},this.valuesEnd={};var r=t[1],a=t[2];if(k.call(this,a,"end"),this._resetStart?this.valuesStart=r:k.call(this,r,"start"),!this._resetStart)for(var i in g)for(var s in g[i])g[i][s].call(this,s);this.paused=!1,this._pauseTime=null;var o=t[3];return this._repeat=o.repeat||f.repeat,this._repeatDelay=o.repeatDelay||f.repeatDelay,this._repeatOption=this._repeat,this.valuesRepeat={},this._yoyo=o.yoyo||f.yoyo,this._reversed=!1,this}return e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n,n.prototype.start=function(t){if(this._resetStart)for(var n in this.valuesStart=this._resetStart,I.call(this),g)for(var r in g[n])g[n][r].call(this,r);if(this.paused=!1,this._yoyo)for(var a in this.valuesEnd)this.valuesRepeat[a]=this.valuesStart[a];return e.prototype.start.call(this,t),this},n.prototype.stop=function(){return e.prototype.stop.call(this),!this.paused&&this.playing&&(this.paused=!1,this.stopChainedTweens()),this},n.prototype.close=function(){return e.prototype.close.call(this),this._repeatOption>0&&(this._repeat=this._repeatOption),this._yoyo&&!0===this._reversed&&(this.reverse(),this._reversed=!1),this},n.prototype.resume=function(){return this.paused&&this.playing&&(this.paused=!1,void 0!==this._onResume&&this._onResume.call(this),U.call(this),this._startTime+=t.Time()-this._pauseTime,S(this),!s&&o()),this},n.prototype.pause=function(){return!this.paused&&this.playing&&(M(this),this.paused=!0,this._pauseTime=t.Time(),void 0!==this._onPause&&this._onPause.call(this)),this},n.prototype.reverse=function(){for(var t in this.valuesEnd){var e=this.valuesRepeat[t];this.valuesRepeat[t]=this.valuesEnd[t],this.valuesEnd[t]=e,this.valuesStart[t]=this.valuesRepeat[t]}},n.prototype.update=function(e){var n,r;if((e=void 0!==e?e:t.Time())<this._startTime&&this.playing)return!0;for(var a in n=(e-this._startTime)/this._duration,n=0===this._duration||n>1?1:n,r=this._easing(n),this.valuesEnd)t[a](this.element,this.valuesStart[a],this.valuesEnd[a],r);return this._onUpdate&&this._onUpdate.call(this),1!==n||(this._repeat>0?(isFinite(this._repeat)&&this._repeat--,this._startTime=isFinite(this._repeat)&&this._yoyo&&!this._reversed?e+this._repeatDelay:e,this._yoyo&&(this._reversed=!this._reversed,this.reverse()),!0):(this._onComplete&&this._onComplete.call(this),this.playing=!1,this.close(),void 0!==this._chain&&this._chain.length&&this._chain.map((function(t){return t.start()})),!1))},n}(F);O.tween=j;var N=function(t){function e(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.apply(this,e),this}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.to=function(t,e){},e.prototype.fromTo=function(t,e){},e.prototype.getTotalDuration=function(){},e.prototype.on=function(t,e){["start","stop","update","complete","pause","resume"].indexOf(t)>-1&&(this["_on"+(t.charAt(0).toUpperCase()+t.slice(1))]=e)},e.prototype.option=function(t,e){this["_"+t]=e},e}(j);O.tween=N;var R=function(t,e,n,r){var a=this;this.tweens=[],!("offset"in f)&&(f.offset=0),(r=r||{}).delay=r.delay||f.delay;var i=[];return Array.from(t).map((function(t,s){i[s]=r||{},i[s].delay=s>0?r.delay+(r.offset||f.offset):r.delay,t instanceof Element?a.tweens.push(new O.tween(t,e,n,i[s])):console.error("KUTE.js - "+t+" not instanceof [Element]")})),this.length=this.tweens.length,this};R.prototype.start=function(e){return e=void 0===e?t.Time():e,this.tweens.map((function(t){return t.start(e)})),this},R.prototype.stop=function(){return this.tweens.map((function(t){return t.stop(time)})),this},R.prototype.pause=function(){return this.tweens.map((function(t){return t.pause(time)})),this},R.prototype.resume=function(){return this.tweens.map((function(t){return t.resume(time)})),this},R.prototype.chain=function(t){var e=this.tweens[this.length-1];if(t instanceof R)e.chain(t.tweens);else{if(!(t instanceof O.tween))throw new TypeError("KUTE.js - invalid chain value");e.chain(t)}return this},R.prototype.playing=function(){return this.tweens.some((function(t){return t.playing}))},R.prototype.removeTweens=function(){this.tweens=[]},R.prototype.getMaxDuration=function(){var t=[];return this.tweens.forEach((function(e){t.push(e._duration+e._delay+e._repeat*e._repeatDelay)})),Math.max(t)};var H=function(t,e){if(this.element=V(t),this.element.tween=e,this.element.tween.toolbar=this.element,this.element.toolbar=this,this.element.output=this.element.parentNode.getElementsByTagName("OUTPUT")[0],!(this.element instanceof HTMLInputElement))throw TypeError("Target element is not [HTMLInputElement]");if("range"!==this.element.type)throw TypeError("Target element is not a range input");if(!(e instanceof O.tween))throw TypeError("tween parameter is not ["+O.tween+"]");this.element.setAttribute("value",0),this.element.setAttribute("min",0),this.element.setAttribute("max",1),this.element.setAttribute("step",1e-4),this.element.tween._onUpdate=this.updateBar,this.element.addEventListener("mousedown",this.downAction,!1)};H.prototype.updateBar=function(){var e=this.toolbar.output,n=this.paused?this.toolbar.value:(t.Time()-this._startTime)/this._duration;n=n>.9999?1:n<.01?0:n;var r=this._reversed?1-n:n;this.toolbar.value=r,e&&(e.value=(100*r).toFixed(2)+"%")},H.prototype.toggleEvents=function(t){this.element[t+"EventListener"]("mousemove",this.moveAction,!1),this.element[t+"EventListener"]("mouseup",this.upAction,!1)},H.prototype.updateTween=function(){var t=(this.tween._reversed?1-this.value:this.value)*this.tween._duration-1e-4;this.tween._startTime=0,this.tween.update(t)},H.prototype.moveAction=function(){this.toolbar.updateTween.call(this)},H.prototype.downAction=function(){this.tween.playing||this.tween.start(),this.tween.paused||(this.tween.pause(),this.toolbar.toggleEvents("add"),t.Tick=cancelAnimationFrame(t.Ticker))},H.prototype.upAction=function(){this.tween.paused&&(this.tween.paused&&this.tween.resume(),this.tween._startTime=t.Time()-(this.tween._reversed?1-this.value:this.value)*this.tween._duration,this.toolbar.toggleEvents("remove"),t.Tick=requestAnimationFrame(t.Ticker))};var D=function(t){try{t.component in c?console.error("KUTE.js - "+t.component+" already registered"):t.property in h?console.error("KUTE.js - "+t.property+" already registered"):this.setComponent(t)}catch(t){console.error(t)}};D.prototype.setComponent=function(t){var e=t.component,n={prepareProperty:d,prepareStart:v,onStart:a,onComplete:m,crossCheck:g},i=t.category,s=t.property,o=t.properties&&t.properties.length||t.subProperties&&t.subProperties.length;if(c[e]=t.properties||t.subProperties||t.property,"defaultValue"in t)h[s]=t.defaultValue,this.supports=s+" property";else if(t.defaultValues){for(var l in t.defaultValues)h[l]=t.defaultValues[l];this.supports=(o||s)+" "+(s||i)+" properties"}if(t.defaultOptions)for(var u in t.defaultOptions)f[u]=t.defaultOptions[u];if(t.functions)for(var p in n)if(p in t.functions)if("function"==typeof t.functions[p])!n[p][e]&&(n[p][e]={}),!n[p][e][i||s]&&(n[p][e][i||s]=t.functions[p]);else for(var b in t.functions[p])!n[p][e]&&(n[p][e]={}),!n[p][e][b]&&(n[p][e][b]=t.functions[p][b]);if(t.Interpolate){for(var x in t.Interpolate){var S=t.Interpolate[x];if("function"!=typeof S||r[x])for(var M in S)"function"!=typeof S[M]||r[x]||(r[x]=S[M]);else r[x]=S}y[e]=t.Interpolate}if(t.Util)for(var T in t.Util)!w[T]&&(w[T]=t.Util[T]);return this};var q=function(t){function e(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];t.apply(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setComponent=function(e){t.prototype.setComponent.call(this,e);var n={prepareProperty:d,prepareStart:v,onStart:a,onComplete:m,crossCheck:g},i=e.category,s=e.property,o=e.properties&&e.properties.length||e.subProperties&&e.subProperties.length;if("defaultValue"in e?(this.supports=s+" property",this.defaultValue=(e.defaultValue+"").length?"YES":"not set or incorrect"):e.defaultValues&&(this.supports=(o||s)+" "+(s||i)+" properties",this.defaultValues=Object.keys(e.defaultValues).length===o?"YES":"Not set or incomplete"),e.defaultOptions){for(var l in this.extends=[],e.defaultOptions)this.extends.push(l);this.extends.length?this.extends="with <"+this.extends.join(", ")+"> new option(s)":delete this.extends}if(e.functions){for(var u in this.interface=[],this.render=[],this.warning=[],n)u in e.functions?("prepareProperty"===u&&this.interface.push("fromTo()"),"prepareStart"===u&&this.interface.push("to()"),"onStart"===u&&(this.render="can render update")):("prepareProperty"===u&&this.warning.push("fromTo()"),"prepareStart"===u&&this.warning.push("to()"),"onStart"===u&&(this.render="no function to render update"));this.interface.length?this.interface=(i||s)+" can use ["+this.interface.join(", ")+"] method(s)":delete this.uses,this.warning.length?this.warning=(i||s)+" can't use ["+this.warning.join(", ")+"] method(s) because values aren't processed":delete this.warning}if(e.Interpolate){for(var p in this.uses=[],this.adds=[],e.Interpolate){var c=e.Interpolate[p];if("function"==typeof c)r[p]||this.adds.push(""+p),this.uses.push(""+p);else for(var h in c)"function"!=typeof c[h]||r[p]||this.adds.push(""+h),this.uses.push(""+h)}this.uses.length?this.uses="["+this.uses.join(", ")+"] interpolation function(s)":delete this.uses,this.adds.length?this.adds="new ["+this.adds.join(", ")+"] interpolation function(s)":delete this.adds}else this.critical="For "+(s||i)+" no interpolation function[s] is set";return e.Util&&(this.hasUtil=Object.keys(e.Util).join(",")),this},e}(D);function B(t,e,n){return(t=+t)+(e-=t)*n}function X(t,e){for(var n,r=parseInt(t)||0,a=["px","%","deg","rad","em","rem","vh","vw"],i=0;i<a.length;i++)if("string"==typeof t&&t.includes(a[i])){n=a[i];break}return{v:r,u:n=void 0!==n?n:e?"deg":"px"}}var Y={prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){if(e instanceof Array){var n=X(e[0]).v,r=X(e[1]).v;return[NaN!==n?n:50,NaN!==r?r:50]}var a=e.replace(/top|left/g,0).replace(/right|bottom/g,100).replace(/center|middle/g,50);return[X((a=2===(a=a.split(/(\,|\s)/g)).length?a:[a[0],50])[0]).v,X(a[1]).v]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(100*B(n[0],r[0],a)>>0)/100+"% "+(100*B(n[1],r[1],a)>>0)/100+"%"})}},Q={component:"backgroundPositionProp",property:"backgroundPosition",defaultValue:[50,50],Interpolate:{numbers:B},functions:Y,Util:{trueDimension:X}};function z(t,e,n,r){return(t=+t)+(e-=t)*r+n}function W(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=z(n.v,r.v,r.u,a)})}x.BackgroundPosition=Q;var K=["borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],G={};K.map((function(t){return G[t]=0}));var $={};K.forEach((function(t){$[t]=W}));var Z={component:"borderRadiusProperties",category:"borderRadius",properties:K,defaultValues:G,Interpolate:{units:z},functions:{prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){return X(e)},onStart:$},Util:{trueDimension:X}};function J(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(a>.99||a<.01?(10*B(n,r,a)>>0)/10:B(n,r,a)>>0)+"px"})}x.BorderRadiusProperties=Z;var tt=["top","left","width","height","right","bottom","minWidth","minHeight","maxWidth","maxHeight","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","margin","marginTop","marginBottom","marginLeft","marginRight","borderWidth","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","outlineWidth"],et={};tt.map((function(t){return et[t]=0}));var nt={};tt.map((function(t){return nt[t]=J}));var rt={component:"boxModelProperties",category:"boxModel",properties:tt,defaultValues:et,Interpolate:{numbers:B},functions:{prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){var n=X(e),r="height"===t?"offsetHeight":"offsetWidth";return"%"===n.u?n.v*this.element[r]/100:n.v},onStart:nt}};x.BoxModelProperties=rt;var at={prepareStart:function(t,e){var n=_(this.element,t),r=_(this.element,"width"),a=_(this.element,"height");return/rect/.test(n)?n:[0,r,a,0]},prepareProperty:function(t,e){if(e instanceof Array)return[X(e[0]),X(e[1]),X(e[2]),X(e[3])];var n=e.replace(/rect|\(|\)/g,"");return[X((n=/\,/g.test(n)?n.split(/\,/g):n.split(/\s/g))[0]),X(n[1]),X(n[2]),X(n[3])]},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,e,n,r){for(var a=0,i=[];a<4;a++){var s=e[a].v,o=n[a].v,l=n[a].u||"px";i[a]=(100*B(s,o,r)>>0)/100+l}t.style.clip="rect("+i+")"})}},it={component:"clipProperty",property:"clip",defaultValue:[0,0,0,0],Interpolate:{numbers:B},functions:at,Util:{trueDimension:X}};function st(t){if(/rgb|rgba/.test(t)){var e=t.replace(/\s|\)/,"").split("(")[1].split(","),n=e[3]?e[3]:null;return n?{r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2]),a:parseFloat(n)}:{r:parseInt(e[0]),g:parseInt(e[1]),b:parseInt(e[2])}}if(/^#/.test(t)){var r=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}(t);return{r:r.r,g:r.g,b:r.b}}if(/transparent|none|initial|inherit/.test(t))return{r:0,g:0,b:0,a:0};if(!/^#|^rgb/.test(t)){var a=document.getElementsByTagName("head")[0];a.style.color=t;var i=getComputedStyle(a,null).color;return i=/rgb/.test(i)?i.replace(/[^\d,]/g,"").split(","):[0,0,0],a.style.color="",{r:parseInt(i[0]),g:parseInt(i[1]),b:parseInt(i[2])}}}function ot(t,e,n){var r,a={};for(r in e)a[r]="a"!==r?B(t[r],e[r],n)>>0||0:t[r]&&e[r]?(100*B(t[r],e[r],n)>>0)/100:null;return a.a?"rgba("+a.r+","+a.g+","+a.b+","+a.a+")":"rgb("+a.r+","+a.g+","+a.b+")"}function lt(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=ot(n,r,a)})}x.ClipProperty=it;var ut=["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],pt={};ut.map((function(t){pt[t]="#000"}));var ct={};ut.map((function(t){return ct[t]=lt}));var ht={component:"colorProperties",category:"colors",properties:ut,defaultValues:pt,Interpolate:{numbers:B,colors:ot},functions:{prepareStart:function(t,e){return _(this.element,t)||h[t]},prepareProperty:function(t,e){return st(e)},onStart:ct},Util:{trueColor:st}};x.ColorProperties=ht;var ft={},dt=["fill","stroke","stop-color"];function vt(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}var gt={prepareStart:function(t,e){var n={};for(var r in e){var a=vt(r).replace(/_+[a-z]+/,""),i=this.element.getAttribute(a);n[a]=dt.includes(a)?i||"rgba(0,0,0,0)":i||(/opacity/i.test(r)?1:0)}return n},prepareProperty:function(t,e){var n={};for(var r in e){var i=vt(r),s=/(%|[a-z]+)$/,o=this.element.getAttribute(i.replace(/_+[a-z]+/,""));if(dt.includes(i))a.htmlAttributes[i]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){t.setAttribute(e,ot(n,r,a))})},n[i]=st(e[r])||h.htmlAttributes[r];else if(null!==o&&s.test(o)){var l=X(o).u||X(e[r]).u,u=/%/.test(l)?"_percent":"_"+l;a.htmlAttributes[i+u]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){var i=e.replace(u,"");t.setAttribute(i,(1e3*B(n.v,r.v,a)>>0)/1e3+r.u)})},n[i+u]=X(e[r])}else s.test(e[r])&&null!==o&&(null===o||s.test(o))||(a.htmlAttributes[i]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in ft)&&(ft[e]=function(t,e,n,r,a){t.setAttribute(e,(1e3*B(n,r,a)>>0)/1e3)})},n[i]=parseFloat(e[r]))}return n},onStart:{attr:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(e,n,r,a){for(var i in r)t.attributes[i](e,i,n[i],r[i],a)})},attributes:function(e){!t[e]&&this.valuesEnd.attr&&(t[e]=ft)}}},mt={component:"htmlAttributes",property:"attr",subProperties:["fill","stroke","stop-color","fill-opacity","stroke-opacity"],defaultValue:{fill:"rgb(0,0,0)",stroke:"rgb(0,0,0)","stop-color":"rgb(0,0,0)",opacity:1,"stroke-opacity":1,"fill-opacity":1},Interpolate:{numbers:B,colors:ot},functions:gt,Util:{replaceUppercase:vt,trueColor:st,trueDimension:X}};function yt(t,e,n){for(var r=[],a=0;a<3;a++)r[a]=(100*B(t[a],e[a],n)>>0)/100+"px";return"drop-shadow("+r.concat(ot(t[3],e[3],n)).join(" ")+")"}function bt(t){return t.replace("-r","R").replace("-s","S")}function wt(t){var e;3===t.length?e=[t[0],t[1],0,t[2]]:4===t.length&&(e=[t[0],t[1],t[2],t[3]]);for(var n=0;n<3;n++)e[n]=parseFloat(e[n]);return e[3]=st(e[3]),e}function xt(t){var e={},n=t.match(/(([a-z].*?)\(.*?\))(?=\s([a-z].*?)\(.*?\)|\s*$)/g),r="none"!==t?n:"none";if(r instanceof Array)for(var a=0,i=r.length;a<i;a++){var s=r[a].trim().split(/\((.+)/),o=bt(s[0]);if("dropShadow"===o){var l=s[1].match(/(([a-z].*?)\(.*?\))(?=\s(.*?))/)[0],u=s[1].replace(l,"").split(/\s/).map(parseFloat);e[o]=u.filter((function(t){return!isNaN(t)})).concat(l)}else e[o]=s[1].replace(/\'|\"|\)/g,"")}return e}x.HTMLAttributes=mt;var St={prepareStart:function(t,e){var n,r=xt(_(this.element,t));for(var a in e)r[n=bt(a)]||(r[n]=h[t][a]);return r},prepareProperty:function(t,e){var n,r={};for(var a in e)n=bt(a),/hue/.test(a)?r[n]=parseFloat(e[a]):/drop/.test(a)?r[n]=wt(e[a]):r[a]="url"===a?e[a]:parseFloat(e[a]);return r},onStart:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){n.dropShadow||r.dropShadow&&console.log(yt(n.dropShadow,r.dropShadow,a)),t.style[e]=(r.url?"url("+r.url+")":"")+(n.opacity||r.opacity?"opacity("+(100*B(n.opacity,r.opacity,a)>>0)/100+"%)":"")+(n.blur||r.blur?"blur("+(100*B(n.blur,r.blur,a)>>0)/100+"em)":"")+(n.saturate||r.saturate?"saturate("+(100*B(n.saturate,r.saturate,a)>>0)/100+"%)":"")+(n.invert||r.invert?"invert("+(100*B(n.invert,r.invert,a)>>0)/100+"%)":"")+(n.grayscale||r.grayscale?"grayscale("+(100*B(n.grayscale,r.grayscale,a)>>0)/100+"%)":"")+(n.hueRotate||r.hueRotate?"hue-rotate("+(100*B(n.hueRotate,r.hueRotate,a)>>0)/100+"deg)":"")+(n.sepia||r.sepia?"sepia("+(100*B(n.sepia,r.sepia,a)>>0)/100+"%)":"")+(n.brightness||r.brightness?"brightness("+(100*B(n.brightness,r.brightness,a)>>0)/100+"%)":"")+(n.contrast||r.contrast?"contrast("+(100*B(n.contrast,r.contrast,a)>>0)/100+"%)":"")+(n.dropShadow||r.dropShadow?yt(n.dropShadow,r.dropShadow,a):"")})},crossCheck:function(t){if(this.valuesEnd[t])for(var e in this.valuesStart[t])this.valuesEnd[t][e]||(this.valuesEnd[t][e]=this.valuesStart[t][e])}},Mt={component:"filterEffects",property:"filter",defaultValue:{opacity:100,blur:0,saturate:100,grayscale:0,brightness:100,contrast:100,sepia:0,invert:0,hueRotate:0,dropShadow:[0,0,0,{r:0,g:0,b:0}],url:""},Interpolate:{opacity:B,blur:B,saturate:B,grayscale:B,brightness:B,contrast:B,sepia:B,invert:B,hueRotate:B,dropShadow:{numbers:B,colors:ot,dropShadow:yt}},functions:St,Util:{parseDropShadow:wt,parseFilterString:xt,replaceDashNamespace:bt,trueColor:st}};x.FilterEffects=Mt;var Tt={prepareStart:function(t){return _(this.element,t)},prepareProperty:function(t,e){return parseFloat(e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(1e3*B(n,r,a)>>0)/1e3})}},Ct={component:"opacityProperty",property:"opacity",defaultValue:1,Interpolate:{numbers:B},functions:Tt};function Et(t,e){return parseFloat(t)/100*e}function _t(t){return 2*t.getAttribute("width")+2*t.getAttribute("height")}function kt(t){var e=t.getAttribute("points").split(" "),n=0;if(e.length>1){var r=function(t){var e=t.split(",");if(2==e.length&&!isNaN(e[0])&&!isNaN(e[1]))return[parseFloat(e[0]),parseFloat(e[1])]},a=function(t,e){return null!=t&&null!=e?Math.sqrt(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)):0};if(e.length>2)for(var i=0;i<e.length-1;i++)n+=a(r(e[i]),r(e[i+1]));n+="polygon"===t.tagName?a(r(e[0]),r(e[e.length-1])):0}return n}function It(t){var e=t.getAttribute("x1"),n=t.getAttribute("x2"),r=t.getAttribute("y1"),a=t.getAttribute("y2");return Math.sqrt(Math.pow(n-e,2)+Math.pow(a-r,2))}function At(t){var e=t.getAttribute("r");return 2*Math.PI*e}function Pt(t){var e=2*t.getAttribute("rx"),n=2*t.getAttribute("ry");return Math.sqrt(.5*(e*e+n*n))*(2*Math.PI)/2}function Ot(t){return/rect/.test(t.tagName)?_t(t):/circle/.test(t.tagName)?At(t):/ellipse/.test(t.tagName)?Pt(t):/polygon|polyline/.test(t.tagName)?kt(t):/line/.test(t.tagName)?It(t):void 0}function Lt(t,e){var n,r,a,i,s=/path|glyph/.test(t.tagName)?t.getTotalLength():Ot(t);return e instanceof Object?e:("string"==typeof e?(e=e.split(/\,|\s/),n=/%/.test(e[0])?Et(e[0].trim(),s):parseFloat(e[0]),r=/%/.test(e[1])?Et(e[1].trim(),s):parseFloat(e[1])):void 0===e&&(i=parseFloat(_(t,"stroke-dashoffset")),a=_(t,"stroke-dasharray").split(/\,/),n=0-i,r=parseFloat(a[0])+n||s),{s:n,e:r,l:s})}x.OpacityProperty=Ct;var Vt={prepareStart:function(){return Lt(this.element)},prepareProperty:function(t,e){return Lt(this.element,e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){var a=(100*e.l>>0)/100,i=0-(100*B(e.s,n.s,r)>>0)/100,s=(100*B(e.e,n.e,r)>>0)/100+i;t.style.strokeDashoffset=i+"px",t.style.strokeDasharray=(100*(s<1?0:s)>>0)/100+"px, "+a+"px"})}},Ut={component:"svgDraw",property:"draw",defaultValue:"0% 0%",Interpolate:{numbers:B},functions:Vt,Util:{getRectLength:_t,getPolyLength:kt,getLineLength:It,getCircleLength:At,getEllipseLength:Pt,getTotalLength:Ot,resetDraw:function(t){t.style.strokeDashoffset="",t.style.strokeDasharray=""},getDraw:Lt,percent:Et}};function Ft(t){return t.map((function(t){return"string"==typeof t?t:t.shift()+t.join(",")})).join(" ")}function jt(t){return t.map((function(t){return Array.isArray(t)?jt(t):isNaN(+t)?t:+t}))}x.SVGDraw=Ut;var Nt=3;function Rt(t){return t.map((function(t){return t.map((function(t,e){var n=+t,r=Math.pow(10,Nt);return e?n%1==0?n:(n*r>>0)/r:t}))}))}function Ht(t){return this.segments=[],this.isClosed=0,this.isAbsolute=0,this.pathValue=t,this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err="",this}var Dt={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function qt(t){return t>=48&&t<=57}function Bt(t){return t>=48&&t<=57||43===t||45===t||46===t}function Xt(t){for(;t.index<t.max&&(10===(e=t.pathValue.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0);)t.index++;var e}function Yt(t){var e=t.pathValue.charCodeAt(t.index);return 48===e?(t.param=0,void t.index++):49===e?(t.param=1,void t.index++):void(t.err="SvgPath: arc flag can be 0 or 1 only (at pos "+t.index+")")}function Qt(t){var e,n=t.index,r=n,a=t.max,i=!1,s=!1,o=!1,l=!1;if(r>=a)t.err="SvgPath: missed param (at pos "+r+")";else if(43!==(e=t.pathValue.charCodeAt(r))&&45!==e||(e=++r<a?t.pathValue.charCodeAt(r):0),qt(e)||46===e){if(46!==e){if(i=48===e,e=++r<a?t.pathValue.charCodeAt(r):0,i&&r<a&&e&&qt(e))return void(t.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+n+")");for(;r<a&&qt(t.pathValue.charCodeAt(r));)r++,s=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(46===e){for(l=!0,r++;qt(t.pathValue.charCodeAt(r));)r++,o=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(101===e||69===e){if(l&&!s&&!o)return void(t.err="SvgPath: invalid float exponent (at pos "+r+")");if(43!==(e=++r<a?t.pathValue.charCodeAt(r):0)&&45!==e||r++,!(r<a&&qt(t.pathValue.charCodeAt(r))))return void(t.err="SvgPath: invalid float exponent (at pos "+r+")");for(;r<a&&qt(t.pathValue.charCodeAt(r));)r++}t.index=r,t.param=parseFloat(t.pathValue.slice(n,r))+0}else t.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")"}function zt(t){var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;if("m"===n&&r.length>2&&(t.segments.push([e,r[0],r[1]]),r=r.slice(2),n="l",e="m"===e?"l":"L"),"r"===n)t.segments.push([e].concat(r));else for(;r.length>=Dt[n]&&(t.segments.push([e].concat(r.splice(0,Dt[n]))),Dt[n]););}function Wt(t){var e,n,r,a,i,s=t.max;if(t.segmentStart=t.index,e=t.pathValue.charCodeAt(t.index),n=97==(32|e),function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(e)){if(a=Dt[t.pathValue[t.index].toLowerCase()],t.index++,Xt(t),t.data=[],!a)return t.isClosed=1,void zt(t);for(r=!1;;){for(i=a;i>0;i--){if(!n||3!==i&&4!==i?Qt(t):Yt(t),t.err.length)return;t.data.push(t.param),Xt(t),r=!1,t.index<s&&44===t.pathValue.charCodeAt(t.index)&&(t.index++,Xt(t),r=!0)}if(!r){if(t.index>=t.max)break;if(!Bt(t.pathValue.charCodeAt(t.index)))break}}zt(t)}else t.err="SvgPath: bad command "+t.pathValue[t.index]+" (at pos "+t.index+")"}function Kt(t){if(Array.isArray(t))return jt(t);var e=new Ht(t),n=e.max;for(Xt(e);e.index<n&&!e.err.length;)Wt(e);return e.err.length?e.segments=[]:e.segments.length&&("mM".indexOf(e.segments[0][0])<0?(e.err="SvgPath: string should start with `M` or `m`",e.segments=[]):e.segments[0][0]="M"),Rt(e.segments)}function Gt(t,e){for(var n=[],r=0,a=t.length;a-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?a-4==r?i[3]={x:+t[0],y:+t[1]}:a-2==r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4==r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n}function $t(t,e,n,r,a){var i;if(null==a&&null==r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!=a){var s=Math.PI/180,o=t+n*Math.cos(-r*s),l=t+n*Math.cos(-a*s);i=[["M",o,e+n*Math.sin(-r*s)],["A",n,n,0,+(a-r>180),0,l,e+n*Math.sin(-a*s)]]}else i=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i}function Zt(t){if(!(t=Kt(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,a=0,i=0,s=0,o=t.length,l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase();"M"===t[0][0]&&(n=+t[0][1],r=+t[0][2],a=n,i=r,s++,e[0]=["M",n,r]);for(var u=function(s){var o=void 0,u=t[s],p=u[0];if(e.push(o=[]),p!==p.toUpperCase())switch(o[0]=p.toUpperCase(),o[0]){case"A":o[1]=u[1],o[2]=u[2],o[3]=u[3],o[4]=u[4],o[5]=u[5],o[6]=+u[6]+n,o[7]=+u[7]+r;break;case"V":o[1]=+u[1]+r;break;case"H":o[1]=+u[1]+n;break;case"R":for(var c=[n,r].concat(u.slice(1)),h=2,f=c.length;h<f;h++)c[h]=+c[h]+n,c[++h]=+c[h]+r;e.pop(),e=e.concat(Gt(c,l));break;case"O":e.pop(),(c=$t(n,r,+u[1],+u[2])).push(c[0]),e=e.concat(c);break;case"U":e.pop(),e=e.concat($t(n,r,u[1],u[2],u[3])),o=["U"].concat(e[e.length-1].slice(-2));break;case"M":a=+u[1]+n,i=+u[2]+r;default:for(var d=1,v=u.length;d<v;d++)o[d]=+u[d]+(d%2?n:r)}else"R"===p?(dots=[n,r].concat(u.slice(1)),e.pop(),e=e.concat(Gt(dots,l)),o=["R"].concat(u.slice(-2))):"O"===p?(e.pop(),dots=$t(n,r,+u[1],+u[2]),dots.push(dots[0]),e=e.concat(dots)):"U"===p?(e.pop(),e=e.concat($t(n,r,+u[1],+u[2],+u[3])),o=["U"].concat(e[e.length-1].slice(-2))):u.map((function(t){return o.push(t)}));if("O"!==(p=p.toUpperCase()))switch(o[0]){case"Z":n=a,r=i;break;case"H":n=+o[1];break;case"V":r=+o[1];break;case"M":a=+o[o.length-2],i=+o[o.length-1];default:n=+o[o.length-2],r=+o[o.length-1]}},p=s;p<o;p++)u(p);return Rt(e)}function Jt(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function te(t,e,n,r,a,i,s,o,l,u){var p,c,h,f,d,v=120*Math.PI/180,g=Math.PI/180*(a||0),m=[];if(u)c=u[0],h=u[1],f=u[2],d=u[3];else{t=(p=Jt(t,e,-g)).x,e=p.y;var y=(t-(o=(p=Jt(o,l,-g)).x))/2,b=(e-(l=p.y))/2,w=y*y/(n*n)+b*b/(r*r);w>1&&(n*=w=Math.sqrt(w),r*=w);var x=n*n,S=r*r,M=(i==s?-1:1)*Math.sqrt(Math.abs((x*S-x*b*b-S*y*y)/(x*b*b+S*y*y)));f=M*n*b/r+(t+o)/2,d=M*-r*y/n+(e+l)/2,c=Math.asin((e-d)/r),h=Math.asin((l-d)/r),c=t<f?Math.PI-c:c,h=o<f?Math.PI-h:h,c<0&&(c=2*Math.PI+c),h<0&&(h=2*Math.PI+h),s&&c>h&&(c-=2*Math.PI),!s&&h>c&&(h-=2*Math.PI)}var T=h-c;if(Math.abs(T)>v){var C=h,E=o,_=l;h=c+v*(s&&h>c?1:-1),o=f+n*Math.cos(h),l=d+r*Math.sin(h),m=te(o,l,n,r,a,0,s,E,_,[h,C,f,d])}T=h-c;var k=Math.cos(c),I=Math.sin(c),A=Math.cos(h),P=Math.sin(h),O=Math.tan(T/4),L=4/3*n*O,V=4/3*r*O,U=[t,e],F=[t+L*I,e-V*k],j=[o+L*P,l-V*A],N=[o,l];return F[0]=2*U[0]-F[0],F[1]=2*U[1]-F[1],u?[F,j,N].concat(m):(m=[F,j,N].concat(m).join().split(",")).map((function(t,e){return e%2?Jt(m[e-1],t,g).y:Jt(t,m[e+1],g).x}))}function ee(t,e,n,r,a,i){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*a+2/3*n,1/3*i+2/3*r,a,i]}function ne(t,e,n,r){return[t,e,n,r,n,r]}function re(t,e,n){var r,a;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(te.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(r=2*e.x-e.bx,a=2*e.y-e.by):(r=e.x,a=e.y),t=["C",r,a].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(ee(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(ee(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(ne(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(ne(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(ne(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(ne(e.x,e.y,e.X,e.Y))}return t}function ae(t,e,n,r,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[a][1],n.y=t[a][2])}function ie(t,e,n,r,a){if(t[a].length>7){t[a].shift();for(var i=t[a];i.length;)n[a]="A",e&&(r[a]="A"),t.splice(a++,0,["C"].concat(i.splice(0,6)));t.splice(a,1)}}function se(t,e){for(var n=Zt(t),r=e&&Zt(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],o=[],l="",u="",p=Math.max(n.length,r&&r.length||0),c=0;c<p;c++){n[c]&&(l=n[c][0]),"C"!==l&&(s[c]=l,c&&(u=s[c-1])),n[c]=re(n[c],a,u),"A"!==s[c]&&"C"===l&&(s[c]="C"),ie(n,r,s,o,c),p=Math.max(n.length,r&&r.length||0),r&&(r[c]&&(l=r[c][0]),"C"!==l&&(o[c]=l,c&&(u=o[c-1])),r[c]=re(r[c],i,u),"A"!==o[c]&&"C"===l&&(o[c]="C"),ie(r,n,o,s,c),p=Math.max(n.length,r&&r.length||0)),ae(n,r,a,i,c),r&&ae(r,n,i,a,c),p=Math.max(n.length,r&&r.length||0);var h=n[c],f=r&&r[c],d=h.length,v=r&&f.length;a.x=h[d-2],a.y=h[d-1],a.bx=parseFloat(h[d-4])||a.x,a.by=parseFloat(h[d-3])||a.y,i.bx=r&&(parseFloat(f[v-4])||i.x),i.by=r&&(parseFloat(f[v-3])||i.y),i.x=r&&f[v-2],i.y=r&&f[v-1]}return r?[Rt(n),Rt(r)]:Rt(n)}function oe(t){var e,n,r,a,i,s,o=jt(t),l=o.length-2,u=0,p=0,c=[],h=[],f=o.slice(1),d=f.map((function(t,o){return p=(u=l-o)-1<0?l:u-1,c=f[u],h=f[p],i=h[h.length-2],s=h[h.length-1],e=c[3],n=c[4],r=c[1],a=c[2],[t[0],e,n,r,a,i,s]}));return[["M",d[l][5],d[l][6]]].concat(d)}function le(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path"),n=t instanceof SVGElement?t.getAttribute("d"):t;return e.setAttribute("d",n),e}function ue(t,e){var n=t.length,r=n-1;return t.map((function(a,i){var s,o=e+i;return 0===i||t[o]&&"M"===t[o][0]?["M",(s=t[o])[s.length-2],s[s.length-1]]:(o>=n&&(o-=r),t[o])}))}function pe(t){return t.map((function(e,n){return ue(t,n)}))}function ce(t,e){var n=t.length-1,r=[],a=[],i=pe(t);return i.map((function(i,s){for(var o,l,u,p,c,h=0,f=le("M0,0L0,0"),d=0;d<n;d++)l=(o=t[(s+d)%n]).length,p=(u=e[d%n]).length,c="M"+o[l-2]+","+o[l-1]+"L"+u[p-2]+","+u[p-1],f.setAttribute("d",c),h+=Math.pow(f.getTotalLength(),2),r[d]=f;a[s]=h,h=0})),i[a.indexOf(Math.min.apply(null,a))]}var he={prepareStart:function(t){return this.element.getAttribute("d")},prepareProperty:function(t,e){var n={},r=e instanceof SVGElement?e:/^\.|^\#/.test(e)?V(e):null,a=new RegExp("\\n","ig");try{return"object"==typeof e&&e.curve?e:(r&&/path|glyph/.test(r.tagName)?n.original=r.getAttribute("d").replace(a,""):r||"string"!=typeof e||(n.original=e.replace(a,"")),n)}catch(t){throw TypeError("KUTE.js - "+INVALID_INPUT+" "+t)}},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){for(var a=[],i=e.curve,s=n.curve,o=0,l=s.length;o<l;o++){a.push([i[o][0]]);for(var u=1,p=i[o].length;u<p;u++)a[o].push((1e3*B(i[o][u],s[o][u],r)>>0)/1e3)}t.setAttribute("d",1===r?n.original:Ft(a))})},crossCheck:function(t){if(this.valuesEnd[t]){var e=this.valuesStart[t].curve,n=this.valuesEnd[t].curve;if(!e||!n||e&&n&&"M"===e[0][0]&&e.length!==n.length){var r=se(this.valuesStart[t].original,this.valuesEnd[t].original),a=this._reverseFirstPath?oe(r[0]):r[0],i=this._reverseSecondPath?oe(r[1]):r[1];a=ce.call(this,a,i),this.valuesStart[t].curve=a,this.valuesEnd[t].curve=i}}}},fe={component:"svgCubicMorph",property:"path",defaultValue:[],Interpolate:{numbers:B,pathToString:Ft},functions:he,Util:{pathToCurve:se,pathToAbsolute:Zt,pathToString:Ft,parsePathString:Kt,getRotatedCurve:ce,getRotations:pe,getRotationSegments:ue,reverseCurve:oe,createPath:le}};function de(t,e){var n=e.x,r=e.width;return/[a-zA-Z]/.test(t)&&!/px/.test(t)?t.replace(/top|left/,0).replace(/right|bottom/,100).replace(/center|middle/,50):/%/.test(t)?n+parseFloat(t)*r/100:parseFloat(t)}function ve(t){var e=t&&/\)/.test(t)?t.substring(0,t.length-1).split(/\)\s|\)/):"none",n={};if(e instanceof Array)for(var r=0,a=e.length;r<a;r++){var i=e[r].trim().split("(");n[i[0]]=i[1]}return n}function ge(t,e){var n,r={},a=this.element.getBBox(),i=a.x+a.width/2,s=a.y+a.height/2,o=this._transformOrigin;for(var l in(o=void 0!==o?o.constructor===Array?o:o.split(/\s/):[i,s])[0]="number"==typeof o[0]?o[0]:de(o[0],a),o[1]="number"==typeof o[1]?o[1]:de(o[1],a),r.origin=o,e)"rotate"===l?r[l]="number"==typeof e[l]?e[l]:e[l]instanceof Array?e[l][0]:1*e[l].split(/\s/)[0]:"translate"===l?(n=e[l]instanceof Array?e[l]:/\,|\s/.test(e[l])?e[l].split(","):[e[l],0],r[l]=[1*n[0]||0,1*n[1]||0]):/skew/.test(l)?r[l]=1*e[l]||0:"scale"===l&&(r[l]=parseFloat(e[l])||1);return r}x.SVGCubicMorph=fe;var me={prepareStart:function(t,e){var n={},r=ve(this.element.getAttribute("transform"));for(var a in e)n[a]=a in r?r[a]:"scale"===a?1:0;return n},prepareProperty:function(t,e){return ge.call(this,t,e)},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){var a,i=0,s=0,o=Math.PI/180,l="scale"in n?B(e.scale,n.scale,r):1,u="rotate"in n?B(e.rotate,n.rotate,r):0,p=Math.sin(u*o),c=Math.cos(u*o),h="skewX"in n?B(e.skewX,n.skewX,r):0,f="skewY"in n?B(e.skewY,n.skewY,r):0,d=u||h||f||1!==l||0;i-=d?n.origin[0]:0,s-=d?n.origin[1]:0,i*=l,s*=l,s+=f?i*Math.tan(f*o):0,a=c*(i+=h?s*Math.tan(h*o):0)-p*s,s=u?p*i+c*s:s,i=u?a:i,i+="translate"in n?B(e.translate[0],n.translate[0],r):0,s+="translate"in n?B(e.translate[1],n.translate[1],r):0,i+=d?n.origin[0]:0,s+=d?n.origin[1]:0,t.setAttribute("transform",(i||s?"translate("+(1e3*i>>0)/1e3+(s?","+(1e3*s>>0)/1e3:"")+")":"")+(u?"rotate("+(1e3*u>>0)/1e3+")":"")+(h?"skewX("+(1e3*h>>0)/1e3+")":"")+(f?"skewY("+(1e3*f>>0)/1e3+")":"")+(1!==l?"scale("+(1e3*l>>0)/1e3+")":""))})},crossCheck:function(t){if(this._resetStart&&this.valuesEnd[t]){var e=this.valuesStart[t],n=this.valuesEnd[t],r=ge.call(this,t,ve(this.element.getAttribute("transform")));for(var a in r)e[a]=r[a];var i=this.element.ownerSVGElement,s=i.createSVGTransformFromMatrix(i.createSVGMatrix().translate(-e.origin[0],-e.origin[1]).translate("translate"in e?e.translate[0]:0,"translate"in e?e.translate[1]:0).rotate(e.rotate||0).skewX(e.skewX||0).skewY(e.skewY||0).scale(e.scale||1).translate(+e.origin[0],+e.origin[1]));for(var o in e.translate=[s.matrix.e,s.matrix.f],e)o in n&&"origin"!==o||(n[o]=e[o])}}},ye={component:"svgTransformProperty",property:"svgTransform",defaultOptions:{transformOrigin:"50% 50%"},defaultValue:{translate:0,rotate:0,skewX:0,skewY:0,scale:1},Interpolate:{numbers:B},functions:me,Util:{parseStringOrigin:de,parseTransformString:ve,parseTransformSVG:ge}};x.SVGTransformProperty=ye;var be=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t,e)}),e)}catch(t){}return t}(),we="onmouseleave"in document?["mouseenter","mouseleave"]:["mouseover","mouseout"],xe="ontouchstart"in window||navigator.msMaxTouchPoints||!1?"touchstart":"mousewheel",Se=navigator&&/(EDGE|Mac)/i.test(navigator.userAgent)?document.body:document.documentElement,Me=!!be&&{passive:!1};function Te(t){this.scrolling&&t.preventDefault()}function Ce(){var t=this.element;return t===Se?{el:document,st:document.body}:{el:t,st:t}}function Ee(t,e){e[t](we[0],Te,Me),e[t](xe,Te,Me)}function _e(){var t=Ce.call(this);"scroll"in this.valuesEnd&&!t.el.scrolling&&(t.el.scrolling=1,Ee("addEventListener",t.el),t.st.style.pointerEvents="none")}function ke(){var t=Ce.call(this);"scroll"in this.valuesEnd&&t.el.scrolling&&(t.el.scrolling=0,Ee("removeEventListener",t.el),t.st.style.pointerEvents="")}var Ie={prepareStart:function(){return this.element=!("scroll"in this.valuesEnd)||this.element&&this.element!==window?this.element:Se,this.element===Se?window.pageYOffset||Se.scrollTop:this.element.scrollTop},prepareProperty:function(t,e){return parseInt(e)},onStart:function(e){e in this.valuesEnd&&!t[e]&&(this.element=!("scroll"in this.valuesEnd)||this.element&&this.element!==window?this.element:Se,_e.call(this),t[e]=function(t,e,n,r){t.scrollTop=B(e,n,r)>>0})},onComplete:function(t){ke.call(this)}},Ae={component:"scrollProperty",property:"scroll",defaultValue:0,Interpolate:{numbers:B},functions:Ie,Util:{preventScroll:Te,scrollIn:_e,scrollOut:ke,getScrollTargets:Ce,toggleScrollEvents:Ee,supportPassive:be}};function Pe(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){for(var i=[],s="textShadow"===e?3:4,o=3===s?n[3]:n[4],l=3===s?r[3]:r[4],u=!!(n[5]&&"none"!==n[5]||r[5]&&"none"!==r[5])&&" inset",p=0;p<s;p++)i.push((1e3*B(n[p],r[p],a)>>0)/1e3+"px");t.style[e]=u?ot(o,l,a)+i.join(" ")+u:ot(o,l,a)+i.join(" ")})}x.ScrollProperty=Ae;var Oe=["boxShadow","textShadow"];function Le(t,e){var n,r;for(3===t.length?n=[t[0],t[1],0,0,t[2],"none"]:4===t.length?n=/inset|none/.test(t[3])?[t[0],t[1],0,0,t[2],t[3]]:[t[0],t[1],t[2],0,t[3],"none"]:5===t.length?n=/inset|none/.test(t[4])?[t[0],t[1],t[2],0,t[3],t[4]]:[t[0],t[1],t[2],t[3],t[4],"none"]:6===t.length&&(n=t),r=0;r<4;r++)n[r]=parseFloat(n[r]);return n[4]=st(n[4]),n="boxShadow"===e?n:n.filter((function(t,e){return[0,1,2,4].indexOf(e)>-1}))}var Ve={};Oe.map((function(t){return Ve[t]=Pe}));var Ue={component:"shadowProperties",properties:Oe,defaultValues:{boxShadow:"0px 0px 0px 0px rgb(0,0,0)",textShadow:"0px 0px 0px rgb(0,0,0)"},Interpolate:{numbers:B,colors:ot},functions:{prepareStart:function(t,e){var n=_(this.element,t);return/^none$|^initial$|^inherit$|^inset$/.test(n)?h[t]:n},prepareProperty:function(t,e){if("string"==typeof e){var n,r="none";r=/inset/.test(e)?"inset":r,n=(e=/inset/.test(e)?e.replace(/(\s+inset|inset+\s)/g,""):e).match(/(\s?(?:#(?:[\da-f]{3}){1,2}|rgba?\(\d{1,3},\s*\d{1,3},\s*\d{1,3}\))\s?)/gi),e=Le(e=e.replace(n[0],"").split(" ").concat([n[0].replace(/\s/g,"")],[r]),t)}else e instanceof Array&&(e=Le(e,t));return e},onStart:Ve},Util:{processShadowArray:Le,trueColor:st}};function Fe(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=z(n.v,r.v,r.u,a)})}x.ShadowProperties=Ue;var je=["fontSize","lineHeight","letterSpacing","wordSpacing"],Ne={};je.forEach((function(t){Ne[t]=Fe}));var Re={component:"textProperties",category:"textProperties",properties:je,defaultValues:{fontSize:0,lineHeight:0,letterSpacing:0,wordSpacing:0},Interpolate:{units:z},functions:{prepareStart:function(t){return _(this.element,t)||h[t]},prepareProperty:function(t,e){return X(e)},onStart:Ne},Util:{trueDimension:X}};x.TextProperties=Re;var He=String("abcdefghijklmnopqrstuvwxyz").split(""),De=String("abcdefghijklmnopqrstuvwxyz").toUpperCase().split(""),qe=String("~!@#$%^&*()_+{}[];'<>,./?=-").split(""),Be=String("0123456789").split(""),Xe=He.concat(De,Be),Ye=Xe.concat(qe),Qe={alpha:He,upper:De,symbols:qe,numeric:Be,alphanumeric:Xe,all:Ye},ze={text:function(e){if(!t[e]&&this.valuesEnd[e]){var n=this._textChars,r=n in Qe?Qe[n]:n&&n.length?n:Qe[f.textChars];t[e]=function(t,e,n,a){var i="",s="",o=e.substring(0),l=n.substring(0),u=r[Math.random()*r.length>>0];" "===e?(s=l.substring(Math.min(a*l.length,l.length)>>0,0),t.innerHTML=a<1?s+u:""===n?" ":n):" "===n?(i=o.substring(0,Math.min((1-a)*o.length,o.length)>>0),t.innerHTML=a<1?i+u:""===n?" ":n):(i=o.substring(o.length,Math.min(a*o.length,o.length)>>0),s=l.substring(0,Math.min(a*l.length,l.length)>>0),t.innerHTML=a<1?s+u+i:""===n?" ":n)}}},number:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){t.innerHTML=B(e,n,r)>>0})}};function We(t,e){var n,r;if("string"==typeof t)return(r=document.createElement("SPAN")).innerHTML=t,r.className=e,r;if(!t.children.length||t.children.length&&t.children[0].className!==e){var a=t.innerHTML;(n=document.createElement("SPAN")).className=e,n.innerHTML=a,t.appendChild(n),t.innerHTML=n.outerHTML}else t.children.length&&t.children[0].className===e&&(n=t.children[0]);return n}function Ke(t,e){var n=[];if(t.children.length){for(var r,a=[],i=t.innerHTML,s=0,o=t.children.length,l=void 0,u=void 0,p=void 0;s<o;s++)u=(l=t.children[s]).outerHTML,""!==(r=i.split(u))[0]?(p=We(r[0],e),a.push(p),i=i.replace(r[0],"")):""!==r[1]&&(p=We(r[1].split("<")[0],e),a.push(p),i=i.replace(r[0].split("<")[0],"")),!l.classList.contains(e)&&l.classList.add(e),a.push(l),i=i.replace(u,"");if(""!==i){var c=We(i,e);a.push(c)}n=n.concat(a)}else n=n.concat([We(t,e)]);return n}var Ge={component:"textWriteProperties",category:"textWrite",properties:["text","number"],defaultValues:{text:" ",numbers:"0"},defaultOptions:{textChars:"alpha"},Interpolate:{numbers:B},functions:{prepareStart:function(t,e){return this.element.innerHTML},prepareProperty:function(t,e){return"number"===t?parseFloat(e):""===e?" ":e},onStart:ze},Util:{charSet:Qe,createTextTweens:function(t,e,n){if(!t.playing){(n=n||{}).duration="auto"===n.duration?"auto":isFinite(1*n.duration)?1*n.duration:1e3;var r=function(t,e){var n=Ke(t,"text-part"),r=Ke(We(e),"text-part");return t.innerHTML="",t.innerHTML+=n.map((function(t){return t.className+=" oldText",t.outerHTML})).join(""),t.innerHTML+=r.map((function(t){return t.className+=" newText",t.outerHTML.replace(t.innerHTML,"")})).join(""),[n,r]}(t,e),a=r[0],i=r[1],s=[].slice.call(t.getElementsByClassName("oldText")).reverse(),o=[].slice.call(t.getElementsByClassName("newText")),l=[],u=0;return(l=(l=l.concat(s.map((function(t,e){return n.duration="auto"===n.duration?75*a[e].innerHTML.length:n.duration,n.delay=u,n.onComplete=null,u+=n.duration,new O.tween(t,{text:t.innerHTML},{text:""},n)})))).concat(o.map((function(r,a){return n.duration="auto"===n.duration?75*i[a].innerHTML.length:n.duration,n.delay=u,n.onComplete=a===i.length-1?function(){t.innerHTML=e,t.playing=!1}:null,u+=n.duration,new O.tween(r,{text:""},{text:i[a].innerHTML},n)})))).start=function(){!t.playing&&l.map((function(t){return t.start()}))&&(t.playing=!0)},l}}}};function $e(t,e,n){for(var r=[],a=0,i=e.length;a<i;a++)r[a]=(1e3*(t[a]+(e[a]-t[a])*n)>>0)/1e3;return r}x.TextWriteProperties=Ge;var Ze="undefined"!=typeof DOMMatrix?DOMMatrix:"undefined"!=typeof WebKitCSSMatrix?WebKitCSSMatrix:"undefined"!=typeof CSSMatrix?CSSMatrix:"undefined"!=typeof MSCSSMatrix?MSCSSMatrix:null;var Je={component:"transformMatrix",property:"transform",defaultValue:{perspective:400,translate3d:[0,0,0],translateX:0,translateY:0,translateZ:0,rotate3d:[0,0,0],rotateX:0,rotateY:0,rotateZ:0,skew:[0,0],skewX:0,skewY:0,scale3d:[1,1,1],scaleX:1,scaleY:1,scaleZ:1},functions:{prepareStart:function(t,e){var n={};if(this.element.transformMatrix){var r=this.element.transformMatrix;for(var a in r)n[a]=r[a]}else for(var i in e)n[i]="perspective"===i?e[i]:h.transform[i];return n},prepareProperty:function(t,e){if("object"==typeof e&&!e.length){var n={},r={},a={},i={},s={},o=[{translate3d:r},{rotate3d:a},{skew:s},{scale3d:i}],l=function(t){if(/3d/.test(t)&&"object"==typeof e[t]&&e[t].length){var o=e[t].map((function(e){return"scale3d"===t?parseFloat(e):parseInt(e)}));n[t]="scale3d"===t?[o[0]||1,o[1]||1,o[2]||1]:[o[0]||0,o[1]||0,o[2]||0]}else if(/[XYZ]/.test(t)){(/translate/.test(t)?r:/rotate/.test(t)?a:/scale/.test(t)?i:/skew/.test(t)?s:{})[t.replace(/translate|rotate|scale|skew/,"").toLowerCase()]=/scale/.test(t)?parseFloat(e[t]):parseInt(e[t])}else if("skew"===t){var l=e[t].map((function(t){return parseInt(t)||0}));n[t]=[l[0]||0,l[1]||0]}else n[t]=parseInt(e[t])};for(var u in e)l(u);return o.map((function(t){var e=Object.keys(t)[0],r=t[e];Object.keys(r).length&&!n[e]&&(n[e]="scale3d"===e?[r.x||1,r.y||1,r.z||1]:"skew"===e?[r.x||0,r.y||0]:[r.x||0,r.y||0,r.z||0])})),n}console.error('KUTE.js - "'+e+'" is not valid/supported transform function')},onStart:{transform:function(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){var i=new Ze,s={};for(var o in r)s[o]="perspective"===o?B(n[o],r[o],a):$e(n[o],r[o],a);s.perspective&&(i.m34=-1/s.perspective),i=s.translate3d?i.translate(s.translate3d[0],s.translate3d[1],s.translate3d[2]):i,i=s.rotate3d?i.rotate(s.rotate3d[0],s.rotate3d[1],s.rotate3d[2]):i,s.skew&&(i=s.skew[0]?i.skewX(s.skew[0]):i,i=s.skew[1]?i.skewY(s.skew[1]):i),i=s.scale3d?i.scale(s.scale3d[0],s.scale3d[1],s.scale3d[2]):i,t.style[e]=i.toString()})},CSS3Matrix:function(e){this.valuesEnd.transform&&!t[e]&&(t[e]=Ze)}},onComplete:function(t){if(this.valuesEnd[t])for(var e in this.element.transformMatrix={},this.valuesEnd[t])this.element.transformMatrix[e]=this.valuesEnd[t][e]},crossCheck:function(t){this.valuesEnd[t]&&this.valuesEnd[t].perspective&&!this.valuesStart[t].perspective&&(this.valuesStart[t].perspective=this.valuesEnd[t].perspective)}},Interpolate:{perspective:B,translate3d:$e,rotate3d:$e,skew:$e,scale3d:$e}};for(var tn in x.TransformMatrix=Je,x){var en=x[tn];x[tn]=new q(en)}return{Animation:q,Components:x,TweenExtra:N,fromTo:function(t,e,n,r){return r=r||{},new O.tween(V(t),e,n,r)},to:function(t,e,n){return(n=n||{}).resetStart=e,new O.tween(V(t),e,e,n)},TweenCollection:R,ProgressBar:H,allFromTo:function(t,e,n,r){return r=r||{},new R(V(t,!0),e,n,r)},allTo:function(t,e,n){return(n=n||{}).resetStart=e,new R(V(t,!0),e,e,n)},Objects:b,Util:w,Easing:L,CubicBezier:P,Render:u,Interpolate:r,Process:A,Internals:C,Selector:V,Version:"2.0.13"}}));