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

3 lines
35 KiB
JavaScript

// KUTE.js Standard v2.0.13 | thednp © 2020 | MIT-License
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 u(){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 l={Tick:s,Ticker:o,Tweens:e,Time:i};for(var p in l)t[p]||(t[p]="Time"===p?i.now:l[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 _(t){return e.push(t)}function S(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}function C(){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 u in r[i])r[o]&&"function"==typeof r[o][u]&&!t[u]&&(t[u]=r[o][u])};for(var r in y)n(r)}var T={add:_,remove:S,getAll:function(){return e},removeAll:function(){e.length=0},stop:u,linkInterpolation:C};function I(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 E(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 M(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 u in t)h[u]&&a[u]?n[u]=a[u].call(this,u,t[u]):!h[s]&&"transform"===s&&i.includes(u)?o[u]=t[u]:h[u]||"transform"!==u?!h[s]&&i&&i.includes(u)&&(n[u]=a[s].call(this,u,t[u])):n[u]=t[u];Object.keys&&Object.keys(o).length&&(n[s]=a[s].call(this,s,o))}}}function A(){var t={},e=I(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={},M.call(this,t,"start")}var k={getInlineStyle:I,getStyleForProperty:E,getStartValues:A,prepareObject:M},O=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};O.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},O.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},O.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},O.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 P={},L={linear:new O(0,0,1,1,"linear"),easingSinusoidalIn:new O(.47,0,.745,.715,"easingSinusoidalIn"),easingSinusoidalOut:new O(.39,.575,.565,1,"easingSinusoidalOut"),easingSinusoidalInOut:new O(.445,.05,.55,.95,"easingSinusoidalInOut"),easingQuadraticIn:new O(.55,.085,.68,.53,"easingQuadraticIn"),easingQuadraticOut:new O(.25,.46,.45,.94,"easingQuadraticOut"),easingQuadraticInOut:new O(.455,.03,.515,.955,"easingQuadraticInOut"),easingCubicIn:new O(.55,.055,.675,.19,"easingCubicIn"),easingCubicOut:new O(.215,.61,.355,1,"easingCubicOut"),easingCubicInOut:new O(.645,.045,.355,1,"easingCubicInOut"),easingQuarticIn:new O(.895,.03,.685,.22,"easingQuarticIn"),easingQuarticOut:new O(.165,.84,.44,1,"easingQuarticOut"),easingQuarticInOut:new O(.77,0,.175,1,"easingQuarticInOut"),easingQuinticIn:new O(.755,.05,.855,.06,"easingQuinticIn"),easingQuinticOut:new O(.23,1,.32,1,"easingQuinticOut"),easingQuinticInOut:new O(.86,0,.07,1,"easingQuinticInOut"),easingExponentialIn:new O(.95,.05,.795,.035,"easingExponentialIn"),easingExponentialOut:new O(.19,1,.22,1,"easingExponentialOut"),easingExponentialInOut:new O(1,0,0,1,"easingExponentialInOut"),easingCircularIn:new O(.6,.04,.98,.335,"easingCircularIn"),easingCircularOut:new O(.075,.82,.165,1,"easingCircularOut"),easingCircularInOut:new O(.785,.135,.15,.86,"easingCircularInOut"),easingBackIn:new O(.6,-.28,.735,.045,"easingBackIn"),easingBackOut:new O(.175,.885,.32,1.275,"easingBackOut"),easingBackInOut:new O(.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);C.call(this)}P.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 O(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 N=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:P.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 u=this._easing.name;return a[u]||(a[u]=function(e){!t[e]&&e===this._easing.name&&(t[e]=this._easing)}),this};N.prototype.start=function(e){return _(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},N.prototype.stop=function(){return this.playing&&(S(this),this.playing=!1,this._onStop&&this._onStop.call(this),this.close()),this},N.prototype.close=function(){for(var t in m)for(var e in m[t])m[t][e].call(this,e);this._startFired=!1,u.call(this)},N.prototype.chain=function(t){return this._chain=[],this._chain=t.length?t:this._chain.concat(t),this},N.prototype.stopChainedTweens=function(){this._chain&&this._chain.length&&this._chain.map((function(t){return t.stop()}))},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._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)},P.tween=N,f.repeat=0,f.repeatDelay=0,f.yoyo=!1,f.resetStart=!1;var H=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(M.call(this,a,"end"),this._resetStart?this.valuesStart=r:M.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,A.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,_(this),!s&&o()),this},n.prototype.pause=function(){return!this.paused&&this.playing&&(S(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}(N);P.tween=H;var F=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 P.tween(t,e,n,i[s])):console.error("KUTE.js - "+t+" not instanceof [Element]")})),this.length=this.tweens.length,this};F.prototype.start=function(e){return e=void 0===e?t.Time():e,this.tweens.map((function(t){return t.start(e)})),this},F.prototype.stop=function(){return this.tweens.map((function(t){return t.stop(time)})),this},F.prototype.pause=function(){return this.tweens.map((function(t){return t.pause(time)})),this},F.prototype.resume=function(){return this.tweens.map((function(t){return t.resume(time)})),this},F.prototype.chain=function(t){var e=this.tweens[this.length-1];if(t instanceof F)e.chain(t.tweens);else{if(!(t instanceof P.tween))throw new TypeError("KUTE.js - invalid chain value");e.chain(t)}return this},F.prototype.playing=function(){return this.tweens.some((function(t){return t.playing}))},F.prototype.removeTweens=function(){this.tweens=[]},F.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 j=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)}};function R(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"}}function D(t,e,n){return(t=+t)+(e-=t)*n}function Q(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=(a>.99||a<.01?(10*D(n,r,a)>>0)/10:D(n,r,a)>>0)+"px"})}j.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 u in t.defaultValues)h[u]=t.defaultValues[u];this.supports=(o||s)+" "+(s||i)+" properties"}if(t.defaultOptions)for(var l in t.defaultOptions)f[l]=t.defaultOptions[l];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 _=t.Interpolate[x];if("function"!=typeof _||r[x])for(var S in _)"function"!=typeof _[S]||r[x]||(r[x]=_[S]);else r[x]=_}y[e]=t.Interpolate}if(t.Util)for(var C in t.Util)!w[C]&&(w[C]=t.Util[C]);return this};var X=["top","left","width","height"],B={};X.map((function(t){return B[t]=Q}));var z={component:"essentialBoxModel",category:"boxModel",properties:X,defaultValues:{top:0,left:0,width:0,height:0},Interpolate:{numbers:D},functions:{prepareStart:function(t){return E(this.element,t)||h[t]},prepareProperty:function(t,e){var n=R(e),r="height"===t?"offsetHeight":"offsetWidth";return"%"===n.u?n.v*this.element[r]/100:n.v},onStart:B},Util:{trueDimension:R}};function Z(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 Y(t,e,n){var r,a={};for(r in e)a[r]="a"!==r?D(t[r],e[r],n)>>0||0:t[r]&&e[r]?(100*D(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 q(e){this.valuesEnd[e]&&!t[e]&&(t[e]=function(t,n,r,a){t.style[e]=Y(n,r,a)})}x.BoxModelEssential=z;var K=["color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],$={};K.map((function(t){$[t]="#000"}));var W={};K.map((function(t){return W[t]=q}));var G={component:"colorProperties",category:"colors",properties:K,defaultValues:$,Interpolate:{numbers:D,colors:Y},functions:{prepareStart:function(t,e){return E(this.element,t)||h[t]},prepareProperty:function(t,e){return Z(e)},onStart:W},Util:{trueColor:Z}};x.ColorProperties=G;var J={},tt=["fill","stroke","stop-color"];function et(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}var nt={prepareStart:function(t,e){var n={};for(var r in e){var a=et(r).replace(/_+[a-z]+/,""),i=this.element.getAttribute(a);n[a]=tt.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=et(r),s=/(%|[a-z]+)$/,o=this.element.getAttribute(i.replace(/_+[a-z]+/,""));if(tt.includes(i))a.htmlAttributes[i]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in J)&&(J[e]=function(t,e,n,r,a){t.setAttribute(e,Y(n,r,a))})},n[i]=Z(e[r])||h.htmlAttributes[r];else if(null!==o&&s.test(o)){var u=R(o).u||R(e[r]).u,l=/%/.test(u)?"_percent":"_"+u;a.htmlAttributes[i+l]=function(e){this.valuesEnd[t]&&this.valuesEnd[t][e]&&!(e in J)&&(J[e]=function(t,e,n,r,a){var i=e.replace(l,"");t.setAttribute(i,(1e3*D(n.v,r.v,a)>>0)/1e3+r.u)})},n[i+l]=R(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 J)&&(J[e]=function(t,e,n,r,a){t.setAttribute(e,(1e3*D(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]=J)}}},rt={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:D,colors:Y},functions:nt,Util:{replaceUppercase:et,trueColor:Z,trueDimension:R}};x.HTMLAttributes=rt;var at={prepareStart:function(t){return E(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*D(n,r,a)>>0)/1e3})}},it={component:"opacityProperty",property:"opacity",defaultValue:1,Interpolate:{numbers:D},functions:at};x.OpacityProperty=it;var st=String("abcdefghijklmnopqrstuvwxyz").split(""),ot=String("abcdefghijklmnopqrstuvwxyz").toUpperCase().split(""),ut=String("~!@#$%^&*()_+{}[];'<>,./?=-").split(""),lt=String("0123456789").split(""),pt=st.concat(ot,lt),ct=pt.concat(ut),ht={alpha:st,upper:ot,symbols:ut,numeric:lt,alphanumeric:pt,all:ct},ft={text:function(e){if(!t[e]&&this.valuesEnd[e]){var n=this._textChars,r=n in ht?ht[n]:n&&n.length?n:ht[f.textChars];t[e]=function(t,e,n,a){var i="",s="",o=e.substring(0),u=n.substring(0),l=r[Math.random()*r.length>>0];" "===e?(s=u.substring(Math.min(a*u.length,u.length)>>0,0),t.innerHTML=a<1?s+l:""===n?" ":n):" "===n?(i=o.substring(0,Math.min((1-a)*o.length,o.length)>>0),t.innerHTML=a<1?i+l:""===n?" ":n):(i=o.substring(o.length,Math.min(a*o.length,o.length)>>0),s=u.substring(0,Math.min(a*u.length,u.length)>>0),t.innerHTML=a<1?s+l+i:""===n?" ":n)}}},number:function(e){e in this.valuesEnd&&!t[e]&&(t[e]=function(t,e,n,r){t.innerHTML=D(e,n,r)>>0})}};function dt(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 vt(t,e){var n=[];if(t.children.length){for(var r,a=[],i=t.innerHTML,s=0,o=t.children.length,u=void 0,l=void 0,p=void 0;s<o;s++)l=(u=t.children[s]).outerHTML,""!==(r=i.split(l))[0]?(p=dt(r[0],e),a.push(p),i=i.replace(r[0],"")):""!==r[1]&&(p=dt(r[1].split("<")[0],e),a.push(p),i=i.replace(r[0].split("<")[0],"")),!u.classList.contains(e)&&u.classList.add(e),a.push(u),i=i.replace(l,"");if(""!==i){var c=dt(i,e);a.push(c)}n=n.concat(a)}else n=n.concat([dt(t,e)]);return n}var gt={component:"textWriteProperties",category:"textWrite",properties:["text","number"],defaultValues:{text:" ",numbers:"0"},defaultOptions:{textChars:"alpha"},Interpolate:{numbers:D},functions:{prepareStart:function(t,e){return this.element.innerHTML},prepareProperty:function(t,e){return"number"===t?parseFloat(e):""===e?" ":e},onStart:ft},Util:{charSet:ht,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=vt(t,"text-part"),r=vt(dt(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")),u=[],l=0;return(u=(u=u.concat(s.map((function(t,e){return n.duration="auto"===n.duration?75*a[e].innerHTML.length:n.duration,n.delay=l,n.onComplete=null,l+=n.duration,new P.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=l,n.onComplete=a===i.length-1?function(){t.innerHTML=e,t.playing=!1}:null,l+=n.duration,new P.tween(r,{text:""},{text:i[a].innerHTML},n)})))).start=function(){!t.playing&&u.map((function(t){return t.start()}))&&(t.playing=!0)},u}}}};function mt(t,e,n,r){return"perspective("+(1e3*(t+(e-t)*r)>>0)/1e3+n+")"}function yt(t,e,n,r){for(var a=[],i=0;i<3;i++)a[i]=(t[i]||e[i]?(1e3*(t[i]+(e[i]-t[i])*r)>>0)/1e3:0)+n;return"translate3d("+a.join(",")+")"}function bt(t,e,n,r){var a="";return a+=t[0]||e[0]?"rotateX("+(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3+n+")":"",a+=t[1]||e[1]?"rotateY("+(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3+n+")":"",a+=t[2]||e[2]?"rotateZ("+(1e3*(t[2]+(e[2]-t[2])*r)>>0)/1e3+n+")":""}function wt(t,e,n){return"scale("+(1e3*(t+(e-t)*n)>>0)/1e3+")"}function xt(t,e,n,r){var a=[];return a[0]=(t[0]===e[0]?e[0]:(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3)+n,a[1]=t[1]||e[1]?(t[1]===e[1]?e[1]:(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3)+n:"0","skew("+a.join(",")+")"}x.TextWriteProperties=gt;var _t={component:"transformFunctions",property:"transform",subProperties:["perspective","translate3d","translateX","translateY","translateZ","translate","rotate3d","rotateX","rotateY","rotateZ","rotate","skewX","skewY","skew","scale"],defaultValues:{perspective:400,translate3d:[0,0,0],translateX:0,translateY:0,translateZ:0,translate:[0,0],rotate3d:[0,0,0],rotateX:0,rotateY:0,rotateZ:0,rotate:0,skewX:0,skewY:0,skew:[0,0],scale:1},functions:{prepareStart:function(t,e){var n=I(this.element);return n[t]?n[t]:h[t]},prepareProperty:function(t,e){var n=["X","Y","Z"],r={},a=[],i=[],s=[],o=["translate3d","translate","rotate3d","skew"];for(var u in e){var l="object"==typeof e[u]&&e[u].length?e[u].map((function(t){return parseInt(t)})):parseInt(e[u]);if(o.includes(u))r["translate"===u||"rotate"===u?u+"3d":u]="skew"===u?l.length?[l[0]||0,l[1]||0]:[l||0,0]:"translate"===u?l.length?[l[0]||0,l[1]||0,l[2]||0]:[l||0,0,0]:[l[0]||0,l[1]||0,l[2]||0];else if(/[XYZ]/.test(u)){for(var p=u.replace(/[XYZ]/,""),c="skew"===p?p:p+"3d",h="skew"===p?2:3,f="translate"===p?a:"rotate"===p?i:"skew"===p?s:{},d=0;d<h;d++){var v=n[d];f[d]=""+p+v in e?parseInt(e[""+p+v]):0}r[c]=f}else"rotate"===u?r.rotate3d=[0,0,l]:r[u]="scale"===u?parseFloat(e[u]):l}return r},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,n,r,a){t.style[e]=(n.perspective||r.perspective?mt(n.perspective,r.perspective,"px",a):"")+(n.translate3d?yt(n.translate3d,r.translate3d,"px",a):"")+(n.rotate3d?bt(n.rotate3d,r.rotate3d,"deg",a):"")+(n.skew?xt(n.skew,r.skew,"deg",a):"")+(n.scale||r.scale?wt(n.scale,r.scale,a):"")})},crossCheck:function(t){this.valuesEnd[t]&&this.valuesEnd[t]&&this.valuesEnd[t].perspective&&!this.valuesStart[t].perspective&&(this.valuesStart[t].perspective=this.valuesEnd[t].perspective)}},Interpolate:{perspective:mt,translate3d:yt,rotate3d:bt,translate:function(t,e,n,r){var a=[];return a[0]=(t[0]===e[0]?e[0]:(1e3*(t[0]+(e[0]-t[0])*r)>>0)/1e3)+n,a[1]=t[1]||e[1]?(t[1]===e[1]?e[1]:(1e3*(t[1]+(e[1]-t[1])*r)>>0)/1e3)+n:"0","translate("+a.join(",")+")"},rotate:function(t,e,n,r){return"rotate("+(1e3*(t+(e-t)*r)>>0)/1e3+n+")"},scale:wt,skew:xt}};function St(t,e){return parseFloat(t)/100*e}function Ct(t){return 2*t.getAttribute("width")+2*t.getAttribute("height")}function Tt(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 Et(t){var e=t.getAttribute("r");return 2*Math.PI*e}function Mt(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 At(t){return/rect/.test(t.tagName)?Ct(t):/circle/.test(t.tagName)?Et(t):/ellipse/.test(t.tagName)?Mt(t):/polygon|polyline/.test(t.tagName)?Tt(t):/line/.test(t.tagName)?It(t):void 0}function kt(t,e){var n,r,a,i,s=/path|glyph/.test(t.tagName)?t.getTotalLength():At(t);return e instanceof Object?e:("string"==typeof e?(e=e.split(/\,|\s/),n=/%/.test(e[0])?St(e[0].trim(),s):parseFloat(e[0]),r=/%/.test(e[1])?St(e[1].trim(),s):parseFloat(e[1])):void 0===e&&(i=parseFloat(E(t,"stroke-dashoffset")),a=E(t,"stroke-dasharray").split(/\,/),n=0-i,r=parseFloat(a[0])+n||s),{s:n,e:r,l:s})}x.TransformFunctions=_t;var Ot={prepareStart:function(){return kt(this.element)},prepareProperty:function(t,e){return kt(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*D(e.s,n.s,r)>>0)/100,s=(100*D(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"})}},Pt={component:"svgDraw",property:"draw",defaultValue:"0% 0%",Interpolate:{numbers:D},functions:Ot,Util:{getRectLength:Ct,getPolyLength:Tt,getLineLength:It,getCircleLength:Et,getEllipseLength:Mt,getTotalLength:At,resetDraw:function(t){t.style.strokeDashoffset="",t.style.strokeDasharray=""},getDraw:kt,percent:St}};function Lt(t,e,n,r){for(var a=[],i=0;i<n;i++){a[i]=[];for(var s=0;s<2;s++)a[i].push((1e3*(t[i][s]+(e[i][s]-t[i][s])*r)>>0)/1e3)}return a}x.SVGDraw=Pt;var Vt=3;function Ut(t){return t.map((function(t){return t.map((function(t,e){var n=+t,r=Math.pow(10,Vt);return e?n%1==0?n:(n*r>>0)/r:t}))}))}function Nt(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 Ht={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function Ft(t){return t>=48&&t<=57}function jt(t){return t>=48&&t<=57||43===t||45===t||46===t}function Rt(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 Dt(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,u=!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),Ft(e)||46===e){if(46!==e){if(i=48===e,e=++r<a?t.pathValue.charCodeAt(r):0,i&&r<a&&e&&Ft(e))return void(t.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+n+")");for(;r<a&&Ft(t.pathValue.charCodeAt(r));)r++,s=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(46===e){for(u=!0,r++;Ft(t.pathValue.charCodeAt(r));)r++,o=!0;e=r<a?t.pathValue.charCodeAt(r):0}if(101===e||69===e){if(u&&!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&&Ft(t.pathValue.charCodeAt(r))))return void(t.err="SvgPath: invalid float exponent (at pos "+r+")");for(;r<a&&Ft(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 Xt(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>=Ht[n]&&(t.segments.push([e].concat(r.splice(0,Ht[n]))),Ht[n]););}function Bt(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=Ht[t.pathValue[t.index].toLowerCase()],t.index++,Rt(t),t.data=[],!a)return t.isClosed=1,void Xt(t);for(r=!1;;){for(i=a;i>0;i--){if(!n||3!==i&&4!==i?Qt(t):Dt(t),t.err.length)return;t.data.push(t.param),Rt(t),r=!1,t.index<s&&44===t.pathValue.charCodeAt(t.index)&&(t.index++,Rt(t),r=!0)}if(!r){if(t.index>=t.max)break;if(!jt(t.pathValue.charCodeAt(t.index)))break}}Xt(t)}else t.err="SvgPath: bad command "+t.pathValue[t.index]+" (at pos "+t.index+")"}function zt(t){if(Array.isArray(t))return function t(e){return e.map((function(e){return Array.isArray(e)?t(e):isNaN(+e)?e:+e}))}(t);var e=new Nt(t),n=e.max;for(Rt(e);e.index<n&&!e.err.length;)Bt(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"),Ut(e.segments)}function Zt(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 Yt(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),u=t+n*Math.cos(-a*s);i=[["M",o,e+n*Math.sin(-r*s)],["A",n,n,0,+(a-r>180),0,u,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 qt(t){if(!(t=zt(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,a=0,i=0,s=0,o=t.length,u=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 l=function(s){var o=void 0,l=t[s],p=l[0];if(e.push(o=[]),p!==p.toUpperCase())switch(o[0]=p.toUpperCase(),o[0]){case"A":o[1]=l[1],o[2]=l[2],o[3]=l[3],o[4]=l[4],o[5]=l[5],o[6]=+l[6]+n,o[7]=+l[7]+r;break;case"V":o[1]=+l[1]+r;break;case"H":o[1]=+l[1]+n;break;case"R":for(var c=[n,r].concat(l.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(Zt(c,u));break;case"O":e.pop(),(c=Yt(n,r,+l[1],+l[2])).push(c[0]),e=e.concat(c);break;case"U":e.pop(),e=e.concat(Yt(n,r,l[1],l[2],l[3])),o=["U"].concat(e[e.length-1].slice(-2));break;case"M":a=+l[1]+n,i=+l[2]+r;default:for(var d=1,v=l.length;d<v;d++)o[d]=+l[d]+(d%2?n:r)}else"R"===p?(dots=[n,r].concat(l.slice(1)),e.pop(),e=e.concat(Zt(dots,u)),o=["R"].concat(l.slice(-2))):"O"===p?(e.pop(),dots=Yt(n,r,+l[1],+l[2]),dots.push(dots[0]),e=e.concat(dots)):"U"===p?(e.pop(),e=e.concat(Yt(n,r,+l[1],+l[2],+l[3])),o=["U"].concat(e[e.length-1].slice(-2))):l.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++)l(p);return Ut(e)}function Kt(t){return t.map((function(t){return"string"==typeof t?t:t.shift()+t.join(",")})).join(" ")}function $t(t){return"number"==typeof t&&isFinite(t)}function Wt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function Gt(t,e,n){return[t[0]+(e[0]-t[0])*n,t[1]+(e[1]-t[1])*n]}function Jt(t,e){return Wt(t,e)<1e-9}function te(t,e){var n=qt(t);return ee(n)||ne(n,e)}function ee(t){var e=[];if(!t.length||"M"!==t[0][0])return!1;for(var n=0;n<t.length;n++){var r=t[n],a=r[0],i=r[1],s=r[2];if("M"===a&&n||"Z"===a)break;if("M"===a||"L"===a)e.push([i,s]);else if("H"===a)e.push([i,e[e.length-1][1]]);else{if("V"!==a)return!1;e.push([e[e.length-1][0],i])}}return!!e.length&&{ring:e}}function ne(t,e){var n,r,a,i=(a=Kt(t),a.replace(/(m|M)/g,"|$1").split("|").map((function(t){return t.trim()})).filter((function(t){return t})))[0],s=[],o=3;if(!i)throw new TypeError("Invalid path value");n=(r=re(i)).getTotalLength(),e&&$t(e)&&e>0&&(o=Math.max(o,Math.ceil(n/e)));for(var u=0;u<o;u++){var l=r.getPointAtLength(n*u/o);s.push([l.x,l.y])}return{ring:s,skipBisect:!0}}function re(t){try{var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttributeNS(null,"d",t),e}catch(t){}return!1}function ae(t,e){for(var n,r,a,i=t.length,s=1/0,o=function(a){r=0,e.forEach((function(e,n){var s=Wt(t[(a+n)%i],e);r+=s*s})),r<s&&(s=r,n=a)},u=0;u<i;u++)o(u);n&&(a=t.splice(0,n),t.splice.apply(t,[t.length,0].concat(a)))}function ie(t){for(var e,n,r=-1,a=t.length,i=t[a-1],s=i[0],o=i[1],u=0;++r<a;)e=s,n=o,e-=s=(i=t[r])[0],n-=o=i[1],u+=Math.sqrt(e*e+n*n);return u}function se(t){for(var e,n=-1,r=t.length,a=t[r-1],i=0;++n<r;)e=a,a=t[n],i+=e[1]*a[0]-e[0]*a[1];return i/2}function oe(t,e){for(var n=t.length+e,r=ie(t)/e,a=0,i=0,s=r/2;t.length<n;){var o=t[a],u=t[(a+1)%t.length],l=Wt(o,u);s<=i+l?(t.splice(a+1,0,l?Gt(o,u,(s-i)/l):o.slice(0)),s+=r):(i+=l,a++)}}function ue(t,e){void 0===e&&(e=1/0);for(var n=0;n<t.length;n++)for(var r=t[n],a=n===t.length-1?t[0]:t[n+1];Wt(r,a)>e;)a=Gt(r,a,.5),t.splice(n+1,0,a)}function le(t,e){var n,r;if("string"==typeof t){var a=te(t,e);t=a.ring,r=a.skipBisect}else if(!Array.isArray(t))throw new TypeError("Invalid path value");if(!pe(n=t.slice(0)))throw new TypeError("Invalid path value");return n.length>1&&Jt(n[0],n[n.length-1])&&n.pop(),se(n)>0&&n.reverse(),!r&&e&&$t(e)&&e>0&&ue(n,e),n}function pe(t){return t.every((function(t){return Array.isArray(t)&&t.length>=2&&$t(t[0])&&$t(t[1])}))}function ce(t,e,n){var r=le(t,n=n||f.morphPrecision),a=le(e,n),i=r.length-a.length;return oe(r,i<0?-1*i:0),oe(a,i>0?i:0),ae(r,a),[r,a]}var he={prepareStart:function(t){return this.element.getAttribute("d")},prepareProperty:function(t,e){var n={},r=e instanceof Element?e:/^\.|^\#/.test(e)?V(e):null,a=new RegExp("\\n","ig");return"object"==typeof e&&e.pathArray?e:(r&&/path|glyph/.test(r.tagName)?n.original=r.getAttribute("d").replace(a,""):!r&&/[a-z][^a-z]*/gi.test(e)&&(n.original=e.replace(a,"")),n)},onStart:function(e){!t[e]&&this.valuesEnd[e]&&(t[e]=function(t,e,n,r){var a=e.pathArray,i=n.pathArray,s=i.length;t.setAttribute("d",1===r?n.original:"M"+Lt(a,i,s,r).join("L")+"Z")})},crossCheck:function(t){if(this.valuesEnd[t]){var e=this.valuesStart[t].pathArray,n=this.valuesEnd[t].pathArray;if(!e||!n||e&&n&&e.length!==n.length){var r=ce(this.valuesStart[t].original,this.valuesEnd[t].original,this._morphPrecision?parseInt(this._morphPrecision):f.morphPrecision);this.valuesStart[t].pathArray=r[0],this.valuesEnd[t].pathArray=r[1]}}}},fe={component:"svgMorph",property:"path",defaultValue:[],Interpolate:Lt,defaultOptions:{morphPrecision:10,morphIndex:0},functions:he,Util:{INVALID_INPUT:"Invalid path value",isFiniteNumber:$t,distance:Wt,pointAlong:Gt,samePoint:Jt,pathToAbsolute:qt,pathToString:Kt,pathStringToRing:te,exactRing:ee,approximateRing:ne,measure:re,rotateRing:ae,polygonLength:ie,polygonArea:se,addPoints:oe,bisect:ue,normalizeRing:le,validRing:pe,getInterpolationPoints:ce}};for(var de in x.SVGMorph=fe,x){var ve=x[de];x[de]=new j(ve)}var ge={Animation:j,Components:x,Tween:H,fromTo:function(t,e,n,r){return r=r||{},new P.tween(V(t),e,n,r)},to:function(t,e,n){return(n=n||{}).resetStart=e,new P.tween(V(t),e,e,n)},TweenCollection:F,allFromTo:function(t,e,n,r){return r=r||{},new F(V(t,!0),e,n,r)},allTo:function(t,e,n){return(n=n||{}).resetStart=e,new F(V(t,!0),e,e,n)},Objects:b,Util:w,Easing:L,CubicBezier:O,Render:l,Interpolate:r,Process:k,Internals:T,Selector:V,Version:"2.0.13"};export default ge;