!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(t=t||self).__SVGATOR_PLAYER__=n()}(this,(function(){"use strict";function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(t,n){for(var r=0;r<n.length;r++){var e=n[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function e(t,n,e){return n&&r(t.prototype,n),e&&r(t,e),t}var i=Math.abs;function u(t){return t}function o(t,n,r){var e=1-r;return 3*r*e*(t*e+n*r)+r*r*r}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return t<0||t>1||r<0||r>1?null:i(t-n)<=1e-5&&i(r-e)<=1e-5?u:function(u){if(u<=0)return t>0?u*n/t:0===n&&r>0?u*e/r:0;if(u>=1)return r<1?1+(u-1)*(e-1)/(r-1):1===r&&t<1?1+(u-1)*(n-1)/(t-1):1;for(var a,l=0,s=1;l<s;){var f=o(t,r,a=(l+s)/2);if(i(u-f)<1e-5)break;f<u?l=a:s=a}return o(n,e,a)}}function l(){return 1}function s(t){return 1===t?1:0}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(1===t){if(0===n)return s;if(1===n)return l}var r=1/t;return function(t){return t>=1?1:(t+=n*r)-t%r}}function c(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(Number.isInteger(t))return t;var r=Math.pow(10,n);return Math.round(t*r)/r}var h=Math.PI/180;function v(t,n,r){return t>=.5?r:n}function d(t,n,r){return 0===t||n===r?n:t*(r-n)+n}function y(t,n,r){var e=d(t,n,r);return e<=0?0:e}function g(t,n,r){return 0===t?n:1===t?r:{x:d(t,n.x,r.x),y:d(t,n.y,r.y)}}function m(t,n,r){return 0===t?n:1===t?r:{x:y(t,n.x,r.x),y:y(t,n.y,r.y)}}function p(t,n,r){var e=function(t,n,r){return Math.round(d(t,n,r))}(t,n,r);return e<=0?0:e>=255?255:e}function b(t,n,r){return 0===t?n:1===t?r:{r:p(t,n.r,r.r),g:p(t,n.g,r.g),b:p(t,n.b,r.b),a:d(t,null==n.a?1:n.a,null==r.a?1:r.a)}}function w(t,n,r){if(0===t)return n;if(1===t)return r;var e=n.length;if(e!==r.length)return v(t,n,r);for(var i=[],u=0;u<e;u++)i.push(b(t,n[u],r[u]));return i}function x(t,n,r){var e=n.length;if(e!==r.length)return v(t,n,r);for(var i=new Array(e),u=0;u<e;u++)i[u]=d(t,n[u],r[u]);return i}function k(t,n){for(var r=[],e=0;e<t;e++)r.push(n);return r}function A(t,n){if(--n<=0)return t;var r=(t=Object.assign([],t)).length;do{for(var e=0;e<r;e++)t.push(t[e])}while(--n>0);return t}var _=/\.0+$/g;function M(t){return Number.isInteger(t)?t+"":t.toFixed(6).replace(_,"")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return t&&t.length?t.map(M).join(n):""}function E(t){return M(t.x)+","+M(t.y)}function B(t){return t?null==t.a||t.a>=1?"rgb("+t.r+","+t.g+","+t.b+")":"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":"transparent"}var I={f:null,i:m,u:function(t,n){return function(r){var e=n(r);t.setAttribute("rx",M(e.x)),t.setAttribute("ry",M(e.y))}}},F={f:null,i:function(t,n,r){return 0===t?n:1===t?r:{width:y(t,n.width,r.width),height:y(t,n.height,r.height)}},u:function(t,n){return function(r){var e=n(r);t.setAttribute("width",M(e.width)),t.setAttribute("height",M(e.height))}}},O=Math.sin,T=Math.cos,q=Math.acos,C=Math.asin,P=Math.tan,j=Math.atan2,V=Math.PI/180,N=180/Math.PI,z=Math.sqrt,R=function(){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;n(this,t),this.m=[r,e,i,u,o,a],this.i=null,this.w=null,this.s=null}return e(t,[{key:"point",value:function(t,n){var r=this.m;return{x:r[0]*t+r[2]*n+r[4],y:r[1]*t+r[3]*n+r[5]}}},{key:"translateSelf",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!t&&!n)return this;var r=this.m;return r[4]+=r[0]*t+r[2]*n,r[5]+=r[1]*t+r[3]*n,this.w=this.s=this.i=null,this}},{key:"rotateSelf",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t%=360){var n=O(t*=V),r=T(t),e=this.m,i=e[0],u=e[1];e[0]=i*r+e[2]*n,e[1]=u*r+e[3]*n,e[2]=e[2]*r-i*n,e[3]=e[3]*r-u*n,this.w=this.s=this.i=null}return this}},{key:"scaleSelf",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(1!==t||1!==n){var r=this.m;r[0]*=t,r[1]*=t,r[2]*=n,r[3]*=n,this.w=this.s=this.i=null}return this}},{key:"skewSelf",value:function(t,n){if(n%=360,(t%=360)||n){var r=this.m,e=r[0],i=r[1],u=r[2],o=r[3];t&&(t=P(t*V),r[2]+=e*t,r[3]+=i*t),n&&(n=P(n*V),r[0]+=u*n,r[1]+=o*n),this.w=this.s=this.i=null}return this}},{key:"resetSelf",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.m;return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o[4]=i,o[5]=u,this.w=this.s=this.i=null,this}},{key:"recomposeSelf",value:function(){var t=arguments.length>0&&void...