text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.spritejs=e():t.spritejs=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/js/",e(e.s=142)}([function(t,e){var r=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(5),i=r(0),o=r(19),a=r(23),u=function(t,e,r){var s,c,f,l=t&u.F,p=t&u.G,h=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,g=p?i:i[e]||(i[e]={}),m=g.prototype,b=p?n:h?n[e]:(n[e]||{}).prototype;p&&(r=e);for(s in r)(c=!l&&b&&void 0!==b[s])&&s in g||(f=c?b[s]:r[s],g[s]=p&&"function"!=typeof b[s]?r[s]:v&&c?o(f,n):y&&b[s]==f?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):d&&"function"==typeof f?o(Function.call,f):f,d&&((g.virtual||(g.virtual={}))[s]=f,t&u.R&&m&&!m[s]&&a(m,s,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(149),o=n(i),a=r(91),u=n(a);e.default=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=(0,u.default)(t);!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(61),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(74)("wks"),i=r(53),o=r(5).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){"use strict";function n(t){return"[object Array]"===S.call(t)}function i(t){return"[object ArrayBuffer]"===S.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function s(t){return"number"==typeof t}function c(t){return void 0===t}function f(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===S.call(t)}function p(t){return"[object File]"===S.call(t)}function h(t){return"[object Blob]"===S.call(t)}function d(t){return"[object Function]"===S.call(t)}function v(t){return f(t)&&d(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function m(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(t,e){if(null!==t&&void 0!==t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function x(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=x(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)b(arguments[r],t);return e}function w(t,e,r){return b(e,function(e,n){t[n]=r&&"function"==typeof e?_(e,r):e}),t}var _=r(88),k=r(228),S=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:i,isBuffer:k,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:f,isUndefined:c,isDate:l,isFile:p,isBlob:h,isFunction:d,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:m,forEach:b,merge:x,extend:w,trim:g}},function(t,e,r){t.exports={default:r(177),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(90),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,i.default)(t)}},function(t,e,r){var n=r(11);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(10),i=r(98),o=r(76),a=Object.defineProperty;e.f=r(15)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return F(t).toString()}function o(t){if("string"!=typeof t)return t;var e=t.match(/((?:scale|rotate|translate|skew|matrix)\([^()]+\))/g),r={};return e&&e.forEach(function(t){var e=t.match(/(scale|rotate|translate|skew|matrix)\(([^()]+)\)/);if(e){var n=(0,C.default)(e,3),i=n[1],o=n[2];r[i]="rotate"===i?s(o)[0]:s(o)}}),r}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("string"==typeof t){return t.split(/[\s,]+/g).map(function(t){return e?parseInt(t,10):parseFloat(t)})}return t}function u(t){return a(t,!0)}function s(t){return a(t,!1)}function c(t){return Array.isArray(t)?1===t.length?[t[0],t[0]]:t:[t,t]}function f(t){return Array.isArray(t)?1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:[].concat((0,P.default)(t),[0,0,0,0]).slice(0,4):[t,t,t,t]}function l(t,e){var r=[t[0],t[1],t[2],t[3]],n=r[0],i=r[1],o=r[2],a=r[3],u=[e[0],e[1],e[2],e[3]],s=u[0],c=u[1],f=u[2],l=u[3],p=Math.max(i,c),h=Math.min(o,f),d=Math.min(a,l),v=Math.max(n,s);return d>=p&&h>=v?[v,p,h,d]:null}function p(t){return[t[0],t[1],Math.round(t[2]-t[0]),Math.round(t[3]-t[1])]}function h(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function d(t){return[t[0],t[1],Math.round(t[0]+t[2]),Math.round(t[1]+t[3])]}function v(t){var e=d(t),r=(0,C.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];return[[n,i],[o,i],[o,a],[n,a]]}function y(t,e){return t?e?[Math.min(t[0],e[0]),Math.min(t[1],e[1]),Math.max(t[2],e[2]),Math.max(t[3],e[3])]:t:e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fißgPauljMPÜÖÄ",r=t.canvas.width,n=t.canvas.height;t.textAlign="left",t.textBaseline="top",t.fillText(e,25,0);for(var i=t.getImageData(0,0,r,n).data,o=-1,a=-1,u=0;u<n;u++){for(var s=0;s<r;s++){if(i[4*(r*u+s)+3]>0){o=u;break}}if(o>=0)break}for(var c=n;c>0;c--){for(var f=0;f<r;f++){if(i[4*(r*c+f)+3]>0){a=c;break}}if(a>=0)break}return{textHeight:a-o,height:a+o,firstPixel:o,lastPixel:a}}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return""===t?t:"string"==typeof t&&(0,E.default)(Number(t))?t:t+e}function b(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function x(t,e){var r=(0,C.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];if(t%=360,t<0&&(t+=360),t>=0&&t<90){var u=Math.tan(Math.PI*t/180),s=u*o;return s<=a?[n,i,n+o,i+s]:(s=a/u,[n,i,n+s,i+a])}if(t>=90&&t<180){var c=Math.tan(Math.PI*(t-90)/180),f=c*a;return f<=o?[n+o,i,n+o-f,i+a]:(f=o/c,[n+o,i,n,i+f])}if(t>=180&&t<270){var l=Math.tan(Math.PI*(t-180)/180),p=l*o;return p<=a?[n+o,i+a,n,i+a-p]:(p=a/l,[n+o,i+a,n+o-p,i])}if(t>=270&&t<360){var h=Math.tan(Math.PI*(t-270)/180),d=h*a;return d<=o?[n,i+a,n+d,i]:(d=o/h,[n,i+a,n+o,i+a-d])}return[n,i,n+o,i+a]}function w(t){var e=document.createElement("canvas"),r=e.getContext("2d");return e.width=t.canvas.width,e.height=t.canvas.height,r.drawImage(t.canvas,0,0),r}function _(t,e,r){var n=r.colors,i=r.direction,o=r.vector,a=(0,C.default)(e,4),u=a[0],s=a[1],c=a[2],f=a[3],l=void 0,p=void 0,h=void 0,d=void 0;if(null!=i){var v=x(i,[u,s,c,f]),y=(0,C.default)(v,4);l=y[0],p=y[1],h=y[2],d=y[3]}else if(o){var g=(0,C.default)(o,4);l=g[0],p=g[1],h=g[2],d=g[3]}var m=t.createLinearGradient(l,p,h,d);return n.forEach(function(t){m.addColorStop(t.offset,t.color)}),m}function k(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={context:t};return e.promise=new M.default(function(t,r){e.resolve=t,e.reject=r}),e}Object.defineProperty(e,"__esModule",{value:!0}),e.getLinearGradients=e.copyContext=e.createPath=e.appendUnit=e.getTextSize=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.oneOrTwoValues=e.parseColor=e.defer=void 0;var S=r(21),M=n(S),O=r(150),E=n(O),j=r(16),T=n(j),A=r(9),P=n(A),R=r(2),C=n(R),z=r(3),I=n(z),L=r(4),D=n(L),N=r(24),B=function(){function t(e){if((0,I.default)(this,t),"string"==typeof e){var r=document.createElement("canvas"),n=r.getContext("2d");n.fillStyle=e,n.fillRect(0,0,1,1);var i=n.getImageData(0,0,1,1).data;this.red=i[0],this.green=i[1],this.blue=i[2],this.alpha=i[3]/255}else this.red=Math.round(e.red),this.green=Math.round(e.green),this.blue=Math.round(e.blue),this.alpha=null!=e.alpha?e.alpha:1}return(0,D.default)(t,[{key:"toString",value:function(){return"rgba("+this.red+","+this.green+","+this.blue+","+this.alpha+")"}},{key:"str",get:function(){return String(this)}}]),t}(),F=(0,N.memoize)(function(t){return new B(t)}),q=(0,N.memoize)(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if("undefined"!=typeof IS_NODE_ENV){r=parseInt(r,10)||0;var n=document.createElement("canvas"),i=n.getContext("2d");e&&(i.font=e);var o=i.measureText(t),a=o.width,u=g(i,t),s=u.height;return[a,Math.max(s,r)]}var c=document.createElement("font");e&&(c.style.font=e),r=m(r),(0,T.default)(c.style,{position:"absolute",left:0,top:0,visibility:"hidden",display:"inline-block",lineHeight:r,padding:"0",verticalAlign:"middle",whiteSpace:"nowrap"}),c.innerHTML=t,document.documentElement.appendChild(c);var f=[c.clientWidth,c.clientHeight];return document.documentElement.removeChild(c),f});e.defer=k,e.parseColor=F,e.oneOrTwoValues=c,e.parseStringInt=u,e.parseStringFloat=s,e.parseColorString=i,e.fourValuesShortCut=f,e.parseStringTransform=o,e.boxIntersect=l,e.boxToRect=p,e.boxEqual=h,e.boxUnion=y,e.rectToBox=d,e.rectVertices=v,e.getTextSize=q,e.appendUnit=m,e.createPath=b,e.copyContext=w,e.getLinearGradients=_},function(t,e,r){t.exports={default:r(171),__esModule:!0}},function(t,e,r){t.exports=!r(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){t.exports={default:r(165),__esModule:!0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(154),o=n(i),a=r(151),u=n(a),s=r(46),c=n(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,c.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(46),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){var n=r(38);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(66),i=r(63);t.exports=function(t){return n(i(t))}},function(t,e,r){t.exports={default:r(175),__esModule:!0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(14),o=n(i),a=r(31),u=n(a);e.default=function t(e,r,n){null===e&&(e=Function.prototype);var i=(0,u.default)(e,r);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)}},function(t,e,r){var n=r(12),i=r(42);t.exports=r(15)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){"use strict";function n(){function t(t,r,n){n.enumerable=!0;var i=n.set;return n.set=function(t){var n=this.subject||this,o=this.get(r);null===t?this.remove(r):i.call(this,t);var a=this.get(r);f(a,o)||("repaint"===e&&(n.cache=null),n.forceUpdate()),n.attributeChangedCallback&&n.attributeChangedCallback(r,a,o,this)},n}var e=void 0;return 1===arguments.length?(e=arguments.length<=0?void 0:arguments[0],t):t.apply(void 0,arguments)}function i(){function t(t,e,r){var n=t.constructor.name+"#"+e+" has been deprecated.";if("function"==typeof r.value){var o=r.value;r.value=function(){console.warn(n,i);for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return o.apply(this,e)}}if(r.set){var a=r.set;r.set=function(t){return console.warn(n,i),a.call(this,t)}}if(r.get){var u=r.get;r.get=function(){return console.warn(n,i),u.call(this)}}}for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var i="";return 1===r.length?(i=r[0],t):t.apply(void 0,r)}function o(t,e,r){r.enumerable=!0}function a(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r,n){var i=n.set;return n.set=function(t){t=e.reduce(function(t,e){return e(t)},t),i.call(this,t)},n}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default,r={};return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=e(i);return a in r||(r[a]=t.apply(this,i)),r[a]}}Object.defineProperty(e,"__esModule",{value:!0});var s=r(60),c=function(t){return t&&t.__esModule?t:{default:t}}(s);e.attr=n,e.deprecate=i,e.readonly=o,e.parseValue=a,e.memoize=u;var f=r(225)},function(t,e,r){t.exports={default:r(168),__esModule:!0}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";var n=r(194)(!0);r(67)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,o,a=r(9),u=n(a),s=r(157),c=n(s),f=r(46),l=n(f),p=r(92),h=n(p),d=r(16),v=n(d),y=r(61),g=n(y),m=r(2),b=n(m),x=r(25),w=n(x),_=r(152),k=n(_),S=r(14),M=n(S),O=r(3),E=n(O),j=r(18),T=n(j),A=r(22),P=n(A),R=r(4),C=n(R),z=r(17),I=n(z),L=r(8),D=n(L),N=r(140),B=n(N),F=r(59),q=n(F),U=r(44),V=n(U),G=r(89),H=n(G),W=r(148),J=n(W),X=r(139),Y=n(X),$=r(13),K=r(24),Q=(0,D.default)("attr"),Z=(0,D.default)("eventHandlers"),tt=(0,D.default)("animations"),et=(0,D.default)("context"),rt=(0,D.default)("renderers"),nt=(0,D.default)("paths"),it=(o=i=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attr:{}};(0,E.default)(this,e);var r=(0,T.default)(this,(e.__proto__||(0,M.default)(e)).call(this));return r[Q]=new r.constructor.Attr(r),r.attr(t.attr),delete t.attr,(0,v.default)(r,t),r[Z]={},r[tt]=new h.default,r[et]=null,r[rt]=[],r[nt]=[],r}return(0,I.default)(e,t),(0,C.default)(e,null,[{key:"defineAttributes",value:function(t){var e=function(t){function e(){return(0,E.default)(this,e),(0,T.default)(this,(e.__proto__||(0,M.default)(e)).apply(this,arguments))}return(0,I.default)(e,t),e}(this.Attr),r=(0,k.default)(t);(0,w.default)(r).forEach(function(t){var r=(0,b.default)(t,2),n=r[0],i=r[1];(0,g.default)(e.prototype,n,(0,K.attr)(e.prototype,n,i))}),this.Attr=e}}]),(0,C.default)(e,[{key:"initAttributes",value:function(t){this[Q].merge(t)}},{key:"createPath",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=new(Function.prototype.bind.apply(Path2D,[null].concat(e)));return this[nt].push(n),n}},{key:"findPath",value:function(t,e){var r=this.context;if(r){return this[nt].filter(function(n){return r.isPointInPath(n,t,e)})}return[]}},{key:"serialize",value:function(){return{nodeType:this.nodeType,attrs:this[Q].serialize(),id:this.id}}},{key:"cloneNode",value:function(){var t=new this.constructor;return t.initAttributes(this[Q].serialize()),t}},{key:"getAttribute",value:function(t){return this.attr(t)}},{key:"setAttribute",value:function(t,e){return this.attr(t,e)}},{key:"removeAttribute",value:function(t){return this.attr(t,null)}},{key:"attr",value:function(t,e){if("object"===(void 0===t?"undefined":(0,l.default)(t)))return(0,v.default)(this[Q],t),this;if("string"==typeof t)return void 0!==e?((0,v.default)(this[Q],(0,c.default)({},t,e)),this):this[Q][t];var r={};for(var n in this[Q])r[n]=this[Q][n];return r}},{key:"animate",value:function(t,e){var r=this,n=new Y.default(this,t,e);return this.layer&&(n.baseTimeline=this.layer.timeline,n.play(),n.finished.then(function(){r[tt].delete(n)})),this[tt].add(n),n}},{key:"connect",value:function(t,r){var n=this;(0,P.default)(e.prototype.__proto__||(0,M.default)(e.prototype),"connect",this).call(this,t,r),this[tt].forEach(function(e){e.baseTimeline=t.timeline,e.play(),e.finished.then(function(){n[tt].delete(e)})})}},{key:"disconnect",value:function(t){this[tt].forEach(function(t){return t.cancel()}),(0,P.default)(e.prototype.__proto__||(0,M.default)(e.prototype),"disconnect",this).call(this,t)}},{key:"OBBCollision",value:function(t){function e(t,e){var r=t.map(function(t){return e.dot(new J.default(t))}),n=(0,b.default)(r,4),i=n[0],o=n[1],a=n[2],u=n[3];return[Math.min(i,o,a,u),Math.max(i,o,a,u)]}function r(t,e){var r=(t[0]+t[1])/2,n=Math.abs(t[1]-t[0]),i=(e[0]+e[1])/2,o=Math.abs(e[1]-e[0]);return Math.abs(i-r)<=(n+o)/2}var n=(0,b.default)(this.vertices,3),i=n[0],o=n[1],a=n[2],u=(0,b.default)(t.vertices,3),s=u[0],c=u[1],f=u[2],l=new J.default(o,i).unit(),p=new J.default(a,o).unit(),h=new J.default(c,s).unit(),d=new J.default(f,c).unit();return r(e(this.vertices,l),e(t.vertices,l))&&r(e(this.vertices,p),e(t.vertices,p))&&r(e(this.vertices,h),e(t.vertices,h))&&r(e(this.vertices,d),e(t.vertices,d))}},{key:"remove",value:function(){return!!this.parent&&(this.parent.removeChild(this),!0)}},{key:"appendTo",value:function(t){t.appendChild(this)}},{key:"forceUpdate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.parent;e&&(e.forceUpdate?e.forceUpdate(!0):e.update&&e.parent&&(t&&(this.cache=null),this.parent.isDirty(this)||this.parent.update(this)))}},{key:"pointToOffset",value:function(t,e){var r=this.attr(),n=t-r.x,i=e-r.y;return this.transform.inverse().transformPoint(n,i)}},{key:"pointCollision",value:function(t){var e=void 0,r=void 0;null!=t.parentX?(e=t.parentX,r=t.parentY):(e=t.layerX,r=t.layerY);var n=(0,b.default)(this.renderRect,4),i=n[0],o=n[1],a=n[2],u=n[3];if(e>=i&&e-i<a&&r>=o&&r-o<u){var s=(0,b.default)(this.originRect,4),c=s[0],f=s[1],l=s[2],p=s[3],h=this.pointToOffset(e,r),d=(0,b.default)(h,2),v=d[0],y=d[1];if(v>=c&&v-c<l&&y>=f&&y-f<p)return t.offsetX=v,t.offsetY=y,t.targetPaths=this.findPath(v,y),!0}}},{key:"draw",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this[rt].push({fn:t,remove:r}),this.forceUpdate(e)}},{key:"drawOnce",value:function(t){this.draw(t,!0,!0)}},{key:"userRender",value:function(t,e){var r=this;if(this[rt].length){var n=[];this[rt].forEach(function(i){var o=i.fn,a=i.remove;o.call(r,e,t,i),a||n.push(i)}),this[rt]=n}}},{key:"render",value:function(t){this[nt]=[];var e=this.attr(),r=e.bgcolor,n=e.linearGradients,i=(0,b.default)(this.offsetSize,2),o=i[0],a=i[1],u=(0,b.default)(this.clientSize,2),s=u[0],c=u[1];if(0!==o&&0!==a){var f=document.createElement("canvas"),l=this.originRect;f.width=l[2],f.height=l[3];var p=f.getContext("2d"),h=(0,b.default)(e.border,2),d=h[0],v=h[1],y=e.borderRadius;if(p.save(),d||n&&n.border){p.lineWidth=d;var g=d/2,m=d/2,x=o-d,w=a-d,_=y;if(p.beginPath(),p.moveTo(g+_,m),p.arcTo(g+x,m,g+x,m+w,_),p.arcTo(g+x,m+w,g,m+w,_),p.arcTo(g,m+w,g,m,_),p.arcTo(g,m,g+x,m,_),p.closePath(),n&&n.border){var k=n.border.rect||[g,m,x,w];p.strokeStyle=(0,$.getLinearGradients)(p,k,n.border)}else v&&(p.strokeStyle=v);p.stroke(),p.clip()}if(r||n&&n.bgcolor){var S=[d,d,s,c,Math.max(0,y-d/2)],M=S[0],O=S[1],E=S[2],j=S[3],T=S[4];if(p.beginPath(),p.moveTo(M+T,O),p.arcTo(M+E,O,M+E,O+j,T),p.arcTo(M+E,O+j,M,O+j,T),p.arcTo(M,O+j,M,O,T),p.arcTo(M,O,M+E,O,T),p.closePath(),n&&n.bgcolor){var A=n.bgcolor.rect||[M,O,E,j];p.fillStyle=(0,$.getLinearGradients)(p,A,n.bgcolor)}else r&&(p.fillStyle=r);p.fill()}p.restore();var P=e.padding,R=P[0],C=P[3];return p.translate(R,C),this[et]=p,p}}},{key:"context",get:function(){return this[et]}},{key:"nodeType",get:function(){return this.constructor.nodeType}},{key:"layer",get:function(){var t=this;do{t=t.parent}while(null!=t&&!(t instanceof H.default));return t}},{key:"id",set:function(t){this.attr("id",t)},get:function(){return this.attr("id")}},{key:"name",set:function(t){this.attr("name",t)},get:function(){return this.attr("name")}},{key:"transform",get:function(){return new V.default(this[Q].get("transform"))}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,b.default)(t,2);return[0|e[0],0|e[1]]}},{key:"clientSize",get:function(){var t=this.attr("padding"),e=(0,b.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=(0,b.default)(this.contentSize,2);return[o+a[0]+n,r+a[1]+i]}},{key:"offsetSize",get:function(){var t=this.attr("border"),e=(0,b.default)(t,1),r=e[0],n=(0,b.default)(this.clientSize,2);return[n[0]+2*r,n[1]+2*r]}},{key:"innerSize",get:function(){return this.contentSize}},{key:"outerSize",get:function(){return this.offsetSize}},{key:"boundRect",get:function(){var t=this.attr("anchor"),e=this.transform,r=(0,b.default)(this.offsetSize,2),n=r[0],i=r[1],o=(0,b.default)(t,2),a=o[0],s=o[1],c=[[-a*n,-s*i],[(1-a)*n,-s*i],[-a*n,(1-s)*i],[(1-a)*n,(1-s)*i]],f=c.map(function(t){return e.transformPoint(t[0],t[1])}),l=f.map(function(t){return t[0]}),p=f.map(function(t){return t[1]}),h=Math.min.apply(Math,(0,u.default)(l)),d=Math.min.apply(Math,(0,u.default)(p)),v=Math.max.apply(Math,(0,u.default)(l)),y=Math.max.apply(Math,(0,u.default)(p));return[].concat((0,u.default)([h,d].map(Math.floor)),(0,u.default)([v-h,y-d].map(Math.ceil)))}},{key:"originRect",get:function(){var t=(0,b.default)(this.offsetSize,2),e=t[0],r=t[1],n=this.attr("anchor"),i=(0,b.default)(n,2),o=i[0],a=i[1];return[Math.floor(-o*e),Math.floor(-a*r),e,r]}},{key:"originRenderRect",get:function(){var t=this.originRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"renderBox",get:function(){var t=this.boundRect,e=this.attr("pos");return[e[0]+t[0]-1,e[1]+t[1]-1,e[0]+t[0]+t[2]+1,e[1]+t[1]+t[3]+1]}},{key:"renderRect",get:function(){var t=this.boundRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"vertices",get:function(){var t=(0,$.rectVertices)(this.originRect),e=this.transform,r=this.attr("pos"),n=(0,b.default)(r,2),i=n[0],o=n[1];return t.map(function(t){var r=e.transformPoint(t[0],t[1]),n=(0,b.default)(r,2),a=n[0],u=n[1];return[Math.round(i+a),Math.round(o+u)]})}},{key:"cache",set:function(t){this.cacheContext=t},get:function(){return this.cacheContext}}]),e}(q.default),i.Attr=B.default,o);e.default=it},function(t,e,r){t.exports={default:r(163),__esModule:!0}},function(t,e,r){t.exports={default:r(169),__esModule:!0}},function(t,e){t.exports={}},function(t,e,r){var n=r(105),i=r(65);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(63);t.exports=function(t){return Object(n(t))}},function(t,e,r){r(199);for(var n=r(5),i=r(23),o=r(32),a=r(6)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var c=u[s],f=n[c],l=f&&f.prototype;l&&!l[a]&&i(l,a,c),o[c]=o.Array}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(21),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){function n(o,a){try{var u=e[o](a),s=u.value}catch(t){return void r(t)}if(!u.done)return i.default.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}},function(t,e,r){t.exports=r(229)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(19),i=r(101),o=r(99),a=r(10),u=r(52),s=r(80),c={},f={},e=t.exports=function(t,e,r,l,p){var h,d,v,y,g=p?function(){return t}:s(t),m=n(r,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(h=u(t.length);h>b;b++)if((y=e?m(a(d=t[b])[0],d[1]):m(t[b]))===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=i(v,m,d.value,e))===c||y===f)return y};e.BREAK=c,e.RETURN=f},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(12).f,i=r(27),o=r(6)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t=t||[1,0,0,1,0,0],this.m=t.slice(0)};n.prototype.unit=function(){return this.m=[1,0,0,1,0,0],this},n.prototype.multiply=function(t){var e=this.m,r=void 0;r=t instanceof n?t.m:t;var i=e[0]*r[0]+e[2]*r[1],o=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],u=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],c=e[1]*r[4]+e[3]*r[5]+e[5];return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=c,this},n.prototype.inverse=function(){var t=new n(this.m),e=t.m,r=1/(e[0]*e[3]-e[1]*e[2]),i=e[3]*r,o=-e[1]*r,a=-e[2]*r,u=e[0]*r,s=r*(e[2]*e[5]-e[3]*e[4]),c=r*(e[1]*e[4]-e[0]*e[5]);return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=c,t},n.prototype.translate=function(t,e){return this.multiply([1,0,0,1,t,e])},n.prototype.rotate=function(t){var e=t*Math.PI/180,r=Math.cos(e),n=Math.sin(e);return this.multiply([r,n,-n,r,0,0])},n.prototype.skew=function(t,e){e|=0;var r=t*Math.PI/180,n=e*Math.PI/180,i=Math.tan(r),o=Math.tan(n);return this.multiply([1,o,i,1,0,0])},n.prototype.scale=function(t,e){return this.multiply([t,0,0,e,0,0])},n.prototype.transformPoint=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2]+this.m[4],e=r*this.m[1]+n*this.m[3]+this.m[5],[t,e]},n.prototype.transformVector=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2],e=r*this.m[1]+n*this.m[3],[t,e]},e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){t=t.slice(0);var e=t[0],r=t[t.length-1];r.offset=r.offset||1,e.offset=e.offset||0;for(var n=0,i=-1,o=0;o<t.length;o++){var a=t[o];if(null!=a.offset){var u=o-i;if(u>1)for(var s=(a.offset-n)/u,c=0;c<u-1;c++)t[i+c+1].offset=n+s*(c+1);n=a.offset,i=o}o>0&&(t[o]=(0,S.default)({},t[o-1],t[o]))}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Effects=e.Easings=e.Animator=void 0;var o=r(21),a=n(o),u=r(25),s=n(u),c=r(91),f=n(c),l=r(2),p=n(l),h=r(153),d=n(h),v=r(9),y=n(v),g=r(3),m=n(g),b=r(4),x=n(b),w=r(8),_=n(w),k=r(16),S=n(k),M=r(115),O=r(233),E=n(O),j=r(234),T=n(j),A=r(232),P=n(A),R=r(120),C=(0,_.default)("timing"),z=(0,_.default)("keyframes"),I=(0,_.default)("initState"),L=(0,_.default)("readyDefer"),D=(0,_.default)("finishedDefer"),N=(0,_.default)("_effects"),B={delay:0,endDelay:0,fill:"auto",iterations:1,playbackRate:1,direction:"normal",easing:"linear",effect:null},F=function(){function t(e,r,n){var o=this;if((0,m.default)(this,t),Array.isArray(e)){var a=[e[0],e,r];e=a[0],r=a[1],n=a[2]}"number"==typeof n&&(n={duration:n}),this[C]=(0,S.default)({},B,n);var u=this[C].easing;"string"==typeof u?P.default[u]?this[C].easing=P.default[u]:this[C].easing=(0,M.parseEasingStr)(u):"cubic-bezier"===this[C].easing.type?this[C].easing=M.getBezierEasing.apply(void 0,(0,y.default)(u.value)):"steps"===this[C].easing.type&&(this[C].easing=(0,M.getStepsEasing)(u.step,u.pos)),this[z]=i(r);var s=this[z][this[z].length-1];if(this[I]={},(0,d.default)(s).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(o[I][t]=e[t])}),0!==this[z][0].offset){var c=(0,S.default)({},this[I],{offset:0});this[z].unshift(c)}if(s.offset<1){var f=(0,S.default)({},s,{offset:1});this[z].push(f)}this[N]={},this.timeline=null}return(0,x.default)(t,[{key:"pause",value:function(){this.timeline.playbackRate=0}},{key:"play",value:function(){var t=this;if("finished"===this.playState&&this.cancel(),"idle"===this.playState){var e=this[C],r=e.delay,n=e.duration,i=e.iterations,o=e.endDelay,a=e.playbackRate,u=e.timeline;this.timeline=new T.default({originTime:r,playbackRate:a},u),this[L]&&!this[L].timerID&&(this[L].timerID=this.timeline.setTimeout(function(){t[L].resolve(),R("running"===t.playState||"finished"===t.playState,"An error occured: "+t.playState),delete t[L]},{entropy:-this.timeline.entropy})),this[D]&&!this[D].timerID&&(this[D].timerID=this.timeline.setTimeout(function(){t[D].resolve()},{entropy:n*i+o-this.timeline.entropy}))}else"paused"===this.playState&&(this.timeline.playbackRate=this.playbackRate,this[L]&&!this[L].timerID&&(this[L].resolve(),delete this[L]))}},{key:"cancel",value:function(){this[L]&&(this.timeline&&this.timeline.clearTimeout(this[L].timerID),delete this[L]),this[D]&&(this.timeline&&this.timeline.clearTimeout(this[D].timerID),delete this[D]),this.timeline=null}},{key:"finish",value:function(){"idle"!==this.playState?(this.timeline.entropy=1/0,this[L]&&(this.timeline.clearTimeout(this[L].timerID),delete this[L]),this[D]&&(this.timeline.clearTimeout(this[D].timerID),this[D].resolve(),delete this[D])):(this[L]&&delete this[L],this[D]&&(this[D].resolve(),delete this[D]))}},{key:"applyEffects",value:function(t){return(0,S.default)(this[N],t)}},{key:"playbackRate",get:function(){return this[C].playbackRate},set:function(t){this.timeline&&"paused"!==this.playState&&(this.timeline.playbackRate=t),this[C].playbackRate=t}},{key:"playState",get:function(){var t=this.timeline,e=this[C],r=e.iterations,n=e.duration,i=e.endDelay;if(null==t)return"idle";if(0===t.playbackRate)return"paused";if(t.entropy<0)return"pending";var o=t.entropy-r*n;return o>0&&o<i?"pending":o>=i?"finished":"running"}},{key:"progress",get:function(){var t=this[C],e=t.duration,r=t.iterations,n=this.timeline,i=n?n.entropy:0,o=this.playState,a=void 0;if("idle"===o)a=0;else if("paused"===o&&i<0)a=0;else if("pending"===o)if(i<0)a=0;else{var u=n.seekLocalTime(r*e);a=(0,M.periodicity)(u,e)/e}else"running"!==o&&"paused"!==o||(a=(0,M.periodicity)(n.currentTime,e)/e);return"finished"===o&&(a=(0,M.periodicity)(r,1)),a}},{key:"frame",get:function(){var t=this.progress,e=this.playState,r=this[I],n=this[C],i=n.fill,o=n.direction,a=n.duration,u=n.easing,c=n.effect;if("idle"===e)return r;var l=this.timeline.entropy,h=this[z].slice(0),d=!1;if("reverse"===o)t=1-t,d=!0;else if("alternate"===o||"alternate-reverse"===o){var v=Math.floor(l/a);1===t&&v--,v=Math.max(0,v),v%2^"alternate-reverse"===o&&(t=1-t,d=!0)}var y={};if(l<0&&"pending"===e)return"backwards"===i||"both"===i?d?h[h.length-1]:h[0]:r;if(("pending"===e||"finished"===e)&&"forwards"!==i&&"both"!==i)return r;var g=this[N];t=u(t,h);for(var m=1;m<h.length;m++){var b=h[m],x=b.offset;if(x>=t||m===h.length-1){var w=h[m-1],_=w.offset;if(c)y=c(w,b,t,_,x);else{var k=!0,S=!1,M=void 0;try{for(var O,j=(0,f.default)((0,s.default)(b));!(k=(O=j.next()).done);k=!0){var T=O.value,A=(0,p.default)(T,2),P=A[0],R=A[1];if("offset"!==P){var L=g[P]||E.default[P]||E.default.default,D=L(w[P],R,t,_,x);null!=D&&(y[P]=D)}}}catch(t){S=!0,M=t}finally{try{!k&&j.return&&j.return()}finally{if(S)throw M}}}break}}return y}},{key:"baseTimeline",set:function(t){this[C].timeline=t},get:function(){return this[C].timeline}},{key:"ready",get:function(){var t=this;return this[L]?this[L].promise:this.timeline&&this.timeline.entropy>=0?"paused"!==this.playState?a.default.resolve():(this[L]=(0,M.defer)(),this[L].promise):(this[L]=(0,M.defer)(),this.timeline&&(this[L].timerID=this.timeline.setTimeout(function(){t[L].resolve(),R("running"===t.playState||"finished"===t.playState,"An error occured: "+t.playState),delete t[L]},{entropy:-this.timeline.entropy})),this[L].promise)}},{key:"finished",get:function(){var t=this;if("finished"===this.playState)return a.default.resolve();if(!this[D]){this[D]=(0,M.defer)();var e=this[C],r=e.duration,n=e.iterations,i=e.endDelay;this.timeline&&(this[D].timerID=this.timeline.setTimeout(function(){t[D].resolve()},{entropy:r*n+i-this.timeline.entropy}))}return this[D].promise}}]),t}();e.Animator=F,e.Easings=P.default,e.Effects=E.default,e.Timeline=T.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(156),o=n(i),a=r(8),u=n(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,r){var n=r(39),i=r(6)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=!0},function(t,e,r){var n=r(10),i=r(190),o=r(65),a=r(73)("IE_PROTO"),u=function(){},s=function(){var t,e=r(64)("iframe"),n=o.length;for(e.style.display="none",r(97).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[o[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=s(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(41),i=r(42),o=r(20),a=r(76),u=r(27),s=r(98),c=Object.getOwnPropertyDescriptor;e.f=r(15)?c:function(t,e){if(t=o(t),e=a(e,!0),s)try{return c(t,e)}catch(t){}if(u(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(75),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&h&&(v=!1,h.length?d=h.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=d.length;e;){for(h=d,d=[];++y<e;)h&&h[y].run();y=-1,e=d.length}h=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function c(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var h,d=[],v=!1,y=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new s(t,e)),1!==d.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,r){"use strict";function n(t,e){Object.defineProperty(e,"nodeType",{get:function(){return t}}),s.set(t,e)}function i(t,e,r){var n=s.get(t);if(n){var i=new n;return e&&i.initAttributes(e),r&&(i.id=r),i}return null}function o(t){return s.get(t)}Object.defineProperty(e,"__esModule",{value:!0});var a=r(30),u=function(t){return t&&t.__esModule?t:{default:t}}(a);e.registerNodeType=n,e.createNode=i,e.getNodeType=o;var s=new u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(37),o=n(i),a=r(2),u=n(a),s=r(25),c=n(s),f=r(36),l=n(f),p=r(21),h=n(p),d=r(30),v=n(d),y=r(29),g=n(y),m=r(56),b=r(121),x=new v.default,w={loadTexture:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;("string"==typeof t||t instanceof g.default||"CANVAS"===t.tagName)&&(t={src:t}),"string"!=typeof t.src&&null==t.src.id&&(t.src.id="texture"+Math.random()),t.src&&t.src.id&&(t.id=t.src.id);var r=t.id||t.src;return x.has(r)?h.default.resolve({img:x.get(r),texture:t}):new h.default(function(n,i){if("string"!=typeof t.src){var o=t.src;"CANVAS"===o.tagName?(n({img:o,texture:t}),x.set(r,o)):(o instanceof g.default||(o=(0,m.createNode)(o.nodeType,o.attrs),o.id=t.id),h.default.resolve(o.render()).then(function(e){n({img:o,texture:t}),x.set(r,o)}),t.src=o.serialize())}else{var a=document.createElement("img");a.crossOrigin="anonymous";var u=setTimeout(function(){i(new Error("load img timeout"))},e);a.src=t.src,a.onload=function(){var e=a.width,i=a.height,o=document.createElement("canvas"),s=o.getContext("2d");o.width=e,o.height=i,s.drawImage(a,0,0),n({img:o,texture:t}),x.set(r,o),clearTimeout(u)}}})},loadFrames:function(){function t(t,r){return e.apply(this,arguments)}var e=(0,l.default)(o.default.mark(function t(e,r){var n,i;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof r){t.next=5;break}return t.next=3,b.get(r);case 3:r=t.sent,r=r.data;case 5:return t.next=7,this.loadTexture(e);case 7:return n=t.sent,i=r.frames,(0,c.default)(i).forEach(function(t){var e=(0,u.default)(t,2),r=e[0],i=e[1],o=i.sourceSize,a=o.w,s=o.h,c=document.createElement("canvas"),f=i.frame,l=i.spriteSourceSize,p=c.getContext("2d"),h=i.rotated;if(c.width=a,c.height=s,p.save(),h){p.translate(0,s),p.rotate(-.5*Math.PI);var d=l.y;l.y=l.x,l.x=s-f.h-d,p.drawImage(n.img,f.x,f.y,f.h,f.w,l.x,l.y,l.h,l.w)}else p.drawImage(n.img,f.x,f.y,f.w,f.h,l.x,l.y,l.w,l.h);p.restore(),x.set(r,c)}),t.abrupt("return",n);case 11:case"end":return t.stop()}},t,this)}));return t}()};e.default=w},function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(7),o=r(136),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(84):void 0!==e&&(t=r(84)),t}(),transformRequest:[function(t,e){return o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(a)}),t.exports=u}).call(e,r(55))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(16),o=n(i),a=r(3),u=n(a),s=r(4),c=n(s),f=r(8),l=n(f),p=(0,l.default)("eventHandlers"),h=(0,l.default)("collisionState"),d=function(){function t(){(0,u.default)(this,t),this[p]={}}return(0,c.default)(t,[{key:"on",value:function(t,e){this[p][t]=this[p][t]||[],this[p][t].push(e)}},{key:"off",value:function(t,e){if(e&&this[p][t]){var r=this[p][t].indexOf(e);r>=0&&this[p][t].splice(r,1)}else delete this[p][t]}},{key:"addEventListener",value:function(t,e){return this.on(t,e)}},{key:"removeEventListener",value:function(t,e){return this.off(t,e)}},{key:"pointCollision",value:function(t){throw Error("you mast override this method")}},{key:"dispatchEvent",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.terminated||!n&&!this.pointCollision(e)){if("mousemove"===t){if(this[h]){var i=(0,o.default)({},e);i.type="mouseleave",i.target=this,i.terminated=!1,this.dispatchEvent("mouseleave",i,!0)}this[h]=!1}}else{e.target=this,e.type!==t&&(e.type&&(e.originalType=e.type),e.type=t);var a=this[p][t];if(a&&a.forEach(function(t){return t.call(r,e)}),"mousemove"===t){if(!this[h]){var u=(0,o.default)({},e);u.type="mouseenter",u.terminated=!1,this.dispatchEvent("mouseenter",u)}this[h]=!0}}return this[h]}},{key:"connect",value:function(t,e){if(this.parent)throw new Error("This node belongs to another parent node! Remove it first...");return Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0}),Object.defineProperty(this,"parent",{get:function(){return t},configurable:!0}),this.connectedCallback&&this.connectedCallback(t),this}},{key:"disconnect",value:function(t){if(!this.parent||t!==this.parent)throw new Error("Invalid node to disconnect");return delete this.zOrder,this.disconnectedCallback&&this.disconnectedCallback(this.parent),delete this.parent,this}}]),t}();e.default=d},function(t,e,r){t.exports={default:r(162),__esModule:!0}},function(t,e,r){t.exports={default:r(167),__esModule:!0}},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,r){var n=r(11),i=r(5).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){"use strict";var n=r(48),i=r(1),o=r(109),a=r(23),u=r(27),s=r(32),c=r(187),f=r(43),l=r(104),p=r(6)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,v,y,g,m){c(r,e,v);var b,x,w,_=function(t){if(!h&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},k=e+" Iterator",S="values"==y,M=!1,O=t.prototype,E=O[p]||O["@@iterator"]||y&&O[y],j=!h&&E||_(y),T=y?S?_("entries"):j:void 0,A="Array"==e?O.entries||E:E;if(A&&(w=l(A.call(new t)))!==Object.prototype&&w.next&&(f(w,k,!0),n||u(w,p)||a(w,p,d)),S&&E&&"values"!==E.name&&(M=!0,j=function(){return E.call(this)}),n&&!m||!h&&!M&&O[p]||a(O,p,j),s[e]=j,s[k]=d,y)if(b={values:S?j:_("values"),keys:g?j:_("keys"),entries:T},m)for(x in b)x in O||o(O,x,b[x]);else i(i.P+i.F*(h||M),e,b);return b}},function(t,e,r){var n=r(53)("meta"),i=r(11),o=r(27),a=r(12).f,u=0,s=Object.isExtensible||function(){return!0},c=!r(26)(function(){return s(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!o(t,n)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[n].w},h=function(t){return c&&d.NEED&&s(t)&&!o(t,n)&&f(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(38);t.exports.f=function(t){return new n(t)}},function(t,e,r){var n=r(105),i=r(65).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(1),i=r(0),o=r(26);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(t,e,r){var n=r(23);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){var n=r(74)("keys"),i=r(53);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(5),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(11);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(11);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,r){var n=r(5),i=r(0),o=r(48),a=r(79),u=r(12).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(6)},function(t,e,r){var n=r(47),i=r(6)("iterator"),o=r(32);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function o(t,e,r){var n=t.split(/\n/),i=0,o=0;return n.forEach(function(t){var n=(0,z.getTextSize)(t,e,r),a=(0,A.default)(n,2),u=a[0],s=a[1];i=Math.max(i,u),o+=s}),[i,o]}Object.defineProperty(e,"__esModule",{value:!0});var a,u,s,c,f,l,p,h,d,v=r(22),y=n(v),g=r(31),m=n(g),b=r(14),x=n(b),w=r(3),_=n(w),k=r(4),S=n(k),M=r(18),O=n(M),E=r(17),j=n(E),T=r(2),A=n(T),P=r(29),R=n(P),C=r(24),z=r(13),I=(a=(0,C.attr)("repaint"),u=(0,C.attr)("repaint"),s=(0,C.attr)("repaint"),c=(0,C.attr)("repaint"),f=(0,C.attr)("repaint"),l=(0,C.attr)("repaint"),p=function(t){function e(t){(0,_.default)(this,e);var r=(0,O.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t));return r.merge({font:"16px Arial",textAlign:"left",color:(0,z.parseColorString)("black"),lineHeight:"",renderMode:"fill",text:"",textboxSize:[0,0]}),r}return(0,j.default)(e,t),(0,S.default)(e,[{key:"text",set:function(t){t=String(t),this.set("textboxSize",o(t,this.font,this.lineHeight)),this.set("text",t)},get:function(){return this.get("text")}},{key:"textboxSize",get:function(){return this.get("textboxSize")}},{key:"font",set:function(t){this.set("textboxSize",o(this.text,t,this.lineHeight)),this.set("font",t)},get:function(){return this.get("font")}},{key:"lineHeight",set:function(t){this.set("textboxSize",o(this.text,this.font,t)),this.set("lineHeight",t)},get:function(){return this.get("lineHeight")}},{key:"textAlign",set:function(t){this.set("textAlign",t)},get:function(){return this.get("textAlign")}},{key:"renderMode",set:function(t){this.set("renderMode",t)},get:function(){return this.get("renderMode")}},{key:"color",set:function(t){this.set("color",(0,z.parseColorString)(t))},get:function(){return this.get("color")}}]),e}(R.default.Attr),i(p.prototype,"text",[a],(0,m.default)(p.prototype,"text"),p.prototype),i(p.prototype,"textboxSize",[C.readonly],(0,m.default)(p.prototype,"textboxSize"),p.prototype),i(p.prototype,"font",[u],(0,m.default)(p.prototype,"font"),p.prototype),i(p.prototype,"lineHeight",[s],(0,m.default)(p.prototype,"lineHeight"),p.prototype),i(p.prototype,"textAlign",[c],(0,m.default)(p.prototype,"textAlign"),p.prototype),i(p.prototype,"renderMode",[f],(0,m.default)(p.prototype,"renderMode"),p.prototype),i(p.prototype,"color",[l],(0,m.default)(p.prototype,"color"),p.prototype),p),L=(d=h=function(t){function e(t,r){(0,_.default)(this,e);var n=(0,O.default)(this,(e.__proto__||(0,x.default)(e)).call(this,r));return n.text=String(t),n}return(0,j.default)(e,t),(0,S.default)(e,[{key:"render",value:function(t){var r=(0,y.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"render",this).call(this,t),n=this.attr(),i=this.text,o=n.font,a=n.renderMode;if(i){r.font=n.font;var u=n.color,s=this.text.split(/\n/);r.textBaseline="top";var c=n.textAlign,f=(0,A.default)(this.contentSize,2),l=f[0],p=f[1];r.strokeStyle=r.fillStyle=u,r.textBaseline="middle";var h=this.attr("border"),d=(0,A.default)(h,1),v=d[0],g=n.linearGradients;if(g&&g.text){var m=g.text.rect||[v,v,l,p];r.strokeStyle=r.fillStyle=(0,z.getLinearGradients)(r,m,g.text)}var b=v;s.forEach(function(t){var e=v,i=(0,z.getTextSize)(t,o,n.lineHeight),u=(0,A.default)(i,2),s=u[0],f=u[1];"center"===c?e+=(l-s)/2:"right"===c&&(e+=l-s),"fill"===a?r.fillText(t,e,b+f/2):r.strokeText(t,e,b+f/2),b+=f})}return r}},{key:"text",set:function(t){this.attr("text",t)},get:function(){return this.attr("text")}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,A.default)(t,2),r=e[0],n=e[1],i=this.attr("textboxSize");return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}}]),e}(R.default),h.Attr=I,d);e.default=L},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function o(t){var e=t.loadObj("path"),r=t.d,n=t.lineCap,i=t.lineJoin,o=t.lineWidth;if(!e){if(!r)return[0,0,0,0];e=(0,D.createPath)(r),t.saveObj("path",e)}var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.visibility="hidden",a.style.position="absolute",a.style.top=0,a.style.left=0,e.setAttribute("stroke-width",o),e.setAttribute("stroke","#f00"),e.setAttribute("stroke-linecap",n),e.setAttribute("stroke-linejoin",i),a.appendChild(e),document.body.appendChild(a);var u=a.getBoundingClientRect(),s=u.left,c=u.top,f=e.getBoundingClientRect(),l=f.left,p=f.top,h=f.width,d=f.height,v=l-s,y=p-c;document.body.removeChild(a);var g=[v,y,h,d];return t.saveObj("pathRect",g),g}function a(t,e){var r=e?null:t.loadObj("pathRect");r||(r=o(t));var n=r,i=(0,C.default)(n,4),a=i[0],u=i[1],s=i[2],c=i[3],f=Math.ceil(t.lineWidth/2);return[-f,-f,a+s+f,u+c+f]}Object.defineProperty(e,"__esModule",{value:!0}),e.PathSpriteAttr=void 0;var u,s,c,f,l,p,h,d,v,y,g,m=r(22),b=n(m),x=r(31),w=n(x),_=r(14),k=n(_),S=r(3),M=n(S),O=r(4),E=n(O),j=r(18),T=n(j),A=r(17),P=n(A),R=r(2),C=n(R),z=r(29),I=n(z),L=r(24),D=r(13),N=r(45),B=r(144),F=n(B);N.Effects.d=F.default;var q=e.PathSpriteAttr=(u=(0,L.attr)("repaint"),s=(0,L.attr)("repaint"),c=(0,L.attr)("repaint"),f=(0,L.attr)("repaint"),l=(0,L.attr)("repaint"),p=(0,L.attr)("repaint"),h=(0,L.attr)("repaint"),d=(0,L.attr)("repaint"),v=function(t){function e(t){(0,M.default)(this,e);var r=(0,T.default)(this,(e.__proto__||(0,k.default)(e)).call(this,t));return r.merge({lineWidth:1,lineCap:"butt",lineJoin:"miter",strokeColor:(0,D.parseColorString)("black"),fillColor:"",renderMode:"stroke",boxSize:[0,0]}),r}return(0,P.default)(e,t),(0,E.default)(e,[{key:"boundingBox",get:function(){return a(this)}},{key:"pathRect",get:function(){return this.loadObj("pathRect")||[0,0,0,0]}},{key:"d",set:function(t){var e=(0,D.createPath)(t);this.set("d",e.getAttribute("d")),this.saveObj("path",e);var r=a(this,!0);this.set("boxSize",[r[2]-r[0],r[3]-r[1]]);var n=(0,C.default)(this.translate,2),i=n[0],o=n[1],u=this.get("dOffset")||[0,0];this.translate=[i+r[0]-u[0],o+r[1]-u[1]],this.set("dOffset",[r[0],r[1]])},get:function(){return this.get("d")}},{key:"boxSize",get:function(){return this.get("boxSize")}},{key:"lineWidth",set:function(t){if(this.set("lineWidth",Math.round(t)),this.d){var e=a(this,!1);this.set("boxSize",[e[2]-e[0],e[3]-e[1]])}},get:function(){return this.get("lineWidth")}},{key:"lineCap",set:function(t){this.set("lineCap",t)},get:function(){return this.get("lineCap")}},{key:"lineJoin",set:function(t){this.set("lineJoin",t)},get:function(){return this.get("lineJoin")}},{key:"renderMode",set:function(t){this.set("renderMode",t)},get:function(){return this.get("renderMode")}},{key:"color",set:function(t){this.strokeColor=t},get:function(){return this.strokeColor}},{key:"strokeColor",set:function(t){this.set("strokeColor",(0,D.parseColorString)(t))},get:function(){return this.get("strokeColor")}},{key:"fillColor",set:function(t){this.set("fillColor",(0,D.parseColorString)(t))},get:function(){return this.get("fillColor")}}]),e}(I.default.Attr),i(v.prototype,"boundingBox",[L.readonly],(0,w.default)(v.prototype,"boundingBox"),v.prototype),i(v.prototype,"pathRect",[L.readonly],(0,w.default)(v.prototype,"pathRect"),v.prototype),i(v.prototype,"d",[u],(0,w.default)(v.prototype,"d"),v.prototype),i(v.prototype,"boxSize",[L.readonly],(0,w.default)(v.prototype,"boxSize"),v.prototype),i(v.prototype,"lineWidth",[s],(0,w.default)(v.prototype,"lineWidth"),v.prototype),i(v.prototype,"lineCap",[c],(0,w.default)(v.prototype,"lineCap"),v.prototype),i(v.prototype,"lineJoin",[f],(0,w.default)(v.prototype,"lineJoin"),v.prototype),i(v.prototype,"renderMode",[l],(0,w.default)(v.prototype,"renderMode"),v.prototype),i(v.prototype,"color",[p],(0,w.default)(v.prototype,"color"),v.prototype),i(v.prototype,"strokeColor",[h],(0,w.default)(v.prototype,"strokeColor"),v.prototype),i(v.prototype,"fillColor",[d],(0,w.default)(v.prototype,"fillColor"),v.prototype),v),U=(g=y=function(t){function e(t,r){(0,M.default)(this,e);var n=(0,T.default)(this,(e.__proto__||(0,k.default)(e)).call(this,r));return t&&n.attr({d:t}),n}return(0,P.default)(e,t),(0,E.default)(e,[{key:"getPointAtLength",value:function(t){var e=(0,D.createPath)(this.attr("d")),r=e.getPointAtLength(t);return[r.x,r.y]}},{key:"getPathLength",value:function(){return(0,D.createPath)(this.attr("d")).getTotalLength()}},{key:"render",value:function(t){var r=(0,b.default)(e.prototype.__proto__||(0,k.default)(e.prototype),"render",this).call(this,t),n=this.attr();if(n.d){var i=n.boundingBox;r.translate(-i[0],-i[1]);var o=this.createPath(n.d),a=n.strokeColor,u=n.fillColor;r.lineWidth=n.lineWidth,r.lineCap=n.lineCap,r.lineJoin=n.lineJoin;var s=(0,C.default)(this.contentSize,2),c=s[0],f=s[1],l=(0,C.default)(n.border,1),p=l[0],h=n.linearGradients;if(h&&h.strokeColor){var d=h.strokeColor.rect||[p,p,c,f];r.strokeStyle=(0,D.getLinearGradients)(r,d,h.strokeColor)}else r.strokeStyle=a;if(r.stroke(o),"fill"===n.renderMode){if(h&&h.fillColor){var v=h.fillColor.rect||[p,p,c,f];r.fillStyle=(0,D.getLinearGradients)(r,v,h.fillColor)}else r.fillStyle=u||a;r.fill(o)}this.path=o}return r}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,C.default)(t,2),r=e[0],n=e[1],i=this.attr("boxSize");return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}},{key:"pathRect",get:function(){return this.attr("pathRect")}}]),e}(I.default),y.Attr=q,g);e.default=U},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,a,u,s=r(60),c=n(s),f=r(37),l=n(f),p=r(36),h=n(p),d=r(9),v=n(d),y=r(30),g=n(y),m=r(22),b=n(m),x=r(31),w=n(x),_=r(2),k=n(_),S=r(21),M=n(S),O=r(14),E=n(O),j=r(3),T=n(j),A=r(4),P=n(A),R=r(18),C=n(R),z=r(17),I=n(z),L=r(8),D=n(L),N=r(29),B=n(N),F=r(57),q=n(F),U=r(141),V=n(U),G=r(24),H=r(13),W=(0,D.default)("_texturesCache"),J=(o=function(t){function e(){return(0,T.default)(this,e),(0,C.default)(this,(e.__proto__||(0,E.default)(e)).apply(this,arguments))}return(0,I.default)(e,t),(0,P.default)(e,[{key:"textures",set:function(t){var e=this;Array.isArray(t)||(t=[t]);var r=this.subject;t=t.map(function(t){return"string"==typeof t?t={src:t}:t instanceof B.default&&(t={src:t}),t});var n=t.map(function(t){return q.default.loadTexture(t)});M.default.all(n).then(function(t){var n=0,i=0;t.forEach(function(t){var e=t.img,r=t.texture,o=void 0,a=void 0;r&&r.rect?(o=r.rect[2]+r.rect[0],a=r.rect[3]+r.rect[1]):r&&r.srcRect?(o=r.srcRect[2],a=r.srcRect[3]):(o=e.width,a=e.height),n<o&&(n=o),i<a&&(i=a)});var o=(0,k.default)(e.texturesSize,2),a=o[0],u=o[1];e.set("texturesSize",[n,i]),a===n&&u===i||r.forceUpdate(!0)}),this.set("textures",t)},get:function(){return this.get("textures")}},{key:"texturesSize",get:function(){return this.get("texturesSize")||[0,0]}}]),e}(B.default.Attr),i(o.prototype,"textures",[G.attr],(0,w.default)(o.prototype,"textures"),o.prototype),i(o.prototype,"texturesSize",[G.readonly],(0,w.default)(o.prototype,"texturesSize"),o.prototype),o),X=(u=a=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{attr:{}},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J;(0,T.default)(this,e),"string"==typeof t?t=[t]:t&&!Array.isArray(t)&&(r=t,t=r.textures);var i=r.attr;delete r.attr;var o=(0,C.default)(this,(e.__proto__||(0,E.default)(e)).call(this,r,n));return o[W]=new g.default,t&&(o.textures=t),i&&o.attr(i),o}return(0,I.default)(e,t),(0,P.default)(e,[{key:"pointCollision",value:function(t){var r=this;if((0,b.default)(e.prototype.__proto__||(0,E.default)(e.prototype),"pointCollision",this).call(this,t)){var n=this.textures;if(n){var i=t.offsetX,o=t.offsetY;t.targetTextures=[];var a=this.attr("anchor"),u=(0,k.default)(a,2),s=u[0],c=u[1],f=(0,k.default)(this.contentSize,2),l=f[0],p=f[1];i+=l*s,o+=p*c,n.forEach(function(e){var n=e.rect||[0,0].concat((0,v.default)(r.innerSize)),a=(0,k.default)(n,4),u=a[0],s=a[1],c=a[2],f=a[3];i>=u&&i-u<c&&o>=s&&o-s<f&&t.targetTextures.push(e)})}return!0}}},{key:"render",value:function(){function t(t){return r.apply(this,arguments)}var r=(0,h.default)(l.default.mark(function t(r){var n,i,o,a,u,s,c=this;return l.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=void 0,!(i=this.textures)){t.next=12;break}return o=this.attr(),a=o.border[0],u=i.map(function(t){return q.default.loadTexture(t)}),t.next=7,M.default.all(u);case 7:s=t.sent,n=(0,b.default)(e.prototype.__proto__||(0,E.default)(e.prototype),"render",this).call(this,r),s.forEach(function(t){var e=t.texture,r=t.img,i=(t.sprite,(e.rect||[0,0].concat((0,v.default)(c.innerSize))).slice(0)),o=e.srcRect;i[0]+=a,i[1]+=a;var u=document.createElement("canvas"),s=u.getContext("2d");n.save();var f=[0,0];if(r instanceof B.default){var l,p=r.transform.m,h=r.attr("pos");f=r.originRect,n.translate(h[0],h[1]),(l=n).transform.apply(l,(0,v.default)(p)),n.globalAlpha=r.attr("opacity"),r=r.context.canvas}if(e.filter){var d,y=void 0,g=o?[0,0,o[2],o[3]]:[0,0,r.width,r.height];if(e.filter.dropShadow){var m=e.filter.dropShadow,b=[Math.round(m[0]-2*m[2]),Math.round(m[1]-2*m[2]),g[2]+4*m[2],g[3]+4*m[2]];y=(0,H.boxToRect)((0,H.boxUnion)((0,H.rectToBox)(b),(0,H.rectToBox)(g))).map(function(t){return Math.abs(t)})}else y=g;u.width=y[2],u.height=y[3],s.filter=V.default.compile(e.filter),o?s.drawImage.apply(s,[r].concat((0,v.default)(o),[f[0]+y[0],f[1]+y[1],o[2],o[3]])):s.drawImage(r,f[0]+y[0],f[1]+y[1],r.width,r.height),(d=n).drawImage.apply(d,[u].concat((0,v.default)(i)))}else if(o){var x;(x=n).drawImage.apply(x,[r].concat((0,v.default)(o),[f[0]+i[0],f[1]+i[1],i[2],i[3]]))}else{var w;(w=n).drawImage.apply(w,[r].concat([f[0]+i[0],f[1]+i[1],i[2],i[3]]))}n.restore()}),t.next=13;break;case 12:n=(0,b.default)(e.prototype.__proto__||(0,E.default)(e.prototype),"render",this).call(this,r);case 13:return t.abrupt("return",n);case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"textures",set:function(t){this.attr("textures",t)},get:function(){return this.attr("textures")}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,k.default)(t,2),r=e[0],n=e[1],i=this.attr("texturesSize");return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}},{key:"cache",set:function(t){if(null==t)return void this[W].clear();var e=(0,c.default)(this.textures),r=this[W];r.has(e)||r.set(e,t)},get:function(){var t=(0,c.default)(this.textures),e=this[W];return e.has(t)?e.get(t):null}}]),e}(B.default),a.Attr=J,u);e.default=X},function(t,e,r){"use strict";(function(e){var n=r(7),i=r(128),o=r(131),a=r(137),u=r(135),s=r(87),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(130);t.exports=function(t){return new Promise(function(f,l){var p=t.data,h=t.headers;n.isFormData(p)&&delete h["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||u(t.url)||(d=new window.XDomainRequest,v="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";h.Authorization="Basic "+c(g+":"+m)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||y)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?d.response:d.responseText,n={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};i(f,l,n),d=null}},d.onerror=function(){l(s("Network Error",t,null,d)),d=null},d.ontimeout=function(){l(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r(133),x=(t.withCredentials||u(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;x&&(h[t.xsrfHeaderName]=x)}if("setRequestHeader"in d&&n.forEach(h,function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===p&&(p=null),d.send(p)})}}).call(e,r(55))},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var n=r(127);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(90),o=n(i),a=r(9),u=n(a),s=r(37),c=n(s),f=r(36),l=n(f),p=r(21),h=n(p),d=r(2),v=n(d),y=r(25),g=n(y),m=r(92),b=n(m),x=r(14),w=n(x),_=r(3),k=n(_),S=r(4),M=n(S),O=r(18),E=n(O),j=r(22),T=n(j),A=r(17),P=n(A),R=r(8),C=n(R),z=r(59),I=n(z),L=r(13),D=r(45),N=r(56),B=(0,C.default)("children"),F=(0,C.default)("updateSet"),q=(0,C.default)("zOrder"),U=(0,C.default)("state"),V=(0,C.default)("tRecord"),G=(0,C.default)("timeline"),H=(0,C.default)("renderPromise"),W=(0,C.default)("resolution"),J=function(t){function e(t,r){var n=r.handleEvent,i=r.evaluateFPS,o=r.renderMode,a=r.resolution;(0,k.default)(this,e);var u=(0,E.default)(this,(e.__proto__||(0,w.default)(e)).call(this));u.handleEvent=!1!==n,u.evaluateFPS=!!i,u.renderMode=o||"repaintAll";var s=document.createElement("canvas");s.dataset.layerId=t,s.style.position="absolute",s.style.left=0,s.style.top=0;var c=s.cloneNode(!0);u.shadowContext=c.getContext("2d"),u.outputContext=s.getContext("2d"),u[B]=[],u[F]=new b.default,u[q]=0,u[V]=[],u[U]={},u[G]=new D.Timeline,u.namespaceURI="http://spritejs.org/layer";var f=u;return u.ownerDocument={createElementNS:function(t,e){var r=(0,N.createNode)(e);return r?f.appendChild(r):null}},a&&(u.resolution=a),u.updateResolution(),u}return(0,P.default)(e,t),(0,M.default)(e,[{key:"getElementById",value:function(t){for(var e=this[B],r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}return null}},{key:"getElementsByName",value:function(t){return this[B].filter(function(e){return e.name===t})}},{key:"querySelector",value:function(t){var e=this[B];if(!t||"*"===t)return e[0];if("string"==typeof t){if(t.startsWith("#"))return this.getElementById(t.slice(1));if(t.startsWith(":")){for(var r=t.slice(1),n=0;n<e.length;n++){var i=e[n];if(i.name===r)return i}return null}var o=(0,N.getNodeType)(t);if(o){for(var a=0;a<e.length;a++){var u=e[a];if(u instanceof o)return u}return null}return null}for(var s=0;s<e.length;s++)for(var c=e[s],f=(0,g.default)(t),l=0;l<f.length;l++){var p=(0,v.default)(f[l],2),h=p[0],d=p[1],y=(0,N.getNodeType)(h);if(y&&c instanceof y&&d.call(this,c))return c}return null}},{key:"querySelectorAll",value:function(t){var e=this;if(!t||"*"===t)return this[B];if("string"==typeof t){if(t.startsWith("#")){var r=this.getElementById(t.slice(1));return r?[r]:[]}if(t.startsWith(":"))return this.getElementsByName(t.slice(1));var n=(0,N.getNodeType)(t);return n?this[B].filter(function(t){return t instanceof n}):null}return this[B].filter(function(r){for(var n=(0,g.default)(t),i=0;i<n.length;i++){var o=(0,v.default)(n[i],2),a=o[0],u=o[1],s=(0,N.getNodeType)(a);if(!(s&&r instanceof s))return!1;if(!u.call(e,r))return!1}return!0})}},{key:"insertBefore",value:function(t,e){var r=this[B].indexOf(e);if(r>=0){this.removeChild(t),this[B].splice(r,0,t),t.connect(this,e.zOrder),this.update(t);for(var n=r+1;n<this[B].length;n++){var i=this[B][n],o=i.zOrder+1;delete i.zOrder,Object.defineProperty(this,"zOrder",{value:o,writable:!1,configurable:!0}),this.update(i)}this[q]++}return t}},{key:"isDirty",value:function(t){return this[F].has(t)}},{key:"prepareRender",value:function(){if(!this[U].prepareRender){this[U].prepareRender=!0;var t=this,r=(0,T.default)(e.prototype.__proto__||(0,w.default)(e.prototype),"dispatchEvent",this),n=this.parent;this[H]=new h.default(function(e,i){requestAnimationFrame(function(){function i(t){return o.apply(this,arguments)}var o=(0,l.default)(c.default.mark(function o(a){var u;return c.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(n){o.next=4;break}return t[U].prepareRender=!1,e(),o.abrupt("return");case 4:if(t.evaluateFPS&&(t[V].push(a),t[V]=t[V].slice(-10)),u=void 0,"repaintDirty"!==t.renderMode){o.next=10;break}u=t.renderRepaintDirty.bind(t),o.next=15;break;case 10:if("repaintAll"!==t.renderMode){o.next=14;break}u=t.renderRepaintAll.bind(t),o.next=15;break;case 14:throw new Error("unknown render mode!");case 15:if(!t[F].size){o.next=19;break}return o.next=18,u(a);case 18:r.call(t,"update",{target:t,timeline:t.timeline,currentTime:t.timeline.currentTime},!0);case 19:t[F].size?requestAnimationFrame(i):(t[U].prepareRender=!1,e());case 20:case"end":return o.stop()}},o,this)}));return i}())})}return this[H]}},{key:"update",value:function(t){if(!this.parent)return void this[F].clear();t&&this[F].has(t)||(!t||t.lastRenderBox||this.isVisible(t))&&(t&&this[F].add(t),this.prepareRender())}},{key:"isVisible",value:function(t){if(t.attr("opacity")<=0)return!1;var e=(0,v.default)(t.offsetSize,2),r=e[0],n=e[1];if(r<=0||n<=0)return!1;var i=(0,v.default)(this.resolution,2),o=i[0],a=i[1],u=t.renderBox;return!(u[0]>o||u[1]>a||u[2]<0||u[3]<0)}},{key:"sortChildren",value:function(t){t.sort(function(t,e){var r=t.attr("zIndex"),n=e.attr("zIndex");return r===n?t.zOrder-e.zOrder:r-n})}},{key:"drawSprites",value:function(){function t(t,r,n){return e.apply(this,arguments)}var e=(0,l.default)(c.default.mark(function t(e,r,n){var i,o,a,s,f,l;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=0;case 1:if(!(i<r.length)){t.next=27;break}if(o=r[i],o.parent!==this){t.next=24;break}if(!this.isVisible(o)){t.next=23;break}if(a=o.cache){t.next=11;break}return t.next=9,o.render(n);case 9:a=t.sent,o.cache=a;case 11:o.userRender(n,a),this[F].has(o)&&o.dispatchEvent("update",{target:o,context:a,renderBox:o.renderBox,lastRenderBox:o.lastRenderBox},!0),o.lastRenderBox=o.renderBox,s=o.transform.m,f=o.attr("pos"),l=o.originRect,e.save(),e.translate(f[0],f[1]),e.transform.apply(e,(0,u.default)(s)),e.globalAlpha=o.attr("opacity"),e.drawImage(a.canvas,l[0],l[1]),e.restore(),t.next=24;break;case 23:delete o.lastRenderBox;case 24:i++,t.next=1;break;case 27:case"end":return t.stop()}},t,this)}));return t}()},{key:"renderRepaintAll",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.default)(c.default.mark(function t(e){var r,n,i,o,a,u,s,f=this;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this[B].filter(function(t){return f.isVisible(t)}),n=(0,v.default)(this.resolution,2),i=n[0],o=n[1],a=this.shadowContext,u=this.outputContext,s=a.canvas,a.clearRect(0,0,i,o),u.clearRect(0,0,i,o),this.sortChildren(r),t.next=10,this.drawSprites(a,r,e);case 10:u.drawImage(s,0,0),this[F].clear();case 12:case"end":return t.stop()}},t,this)}));return t}()},{key:"renderRepaintDirty",value:function(){function t(t){return e.apply(this,arguments)}var e=(0,l.default)(c.default.mark(function t(e){var r,n,i,a,s,f,l,p,h,d,y,g,m,x,w,_,k,S,M,O,E,j,T,A,P,R,C,z,I,D,N,q,U,V,G,H,W,J,X,Y,$,K,Q,Z=this;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=(0,v.default)(this.resolution,2),n=r[0],i=r[1],a=this[F],s=this[B].filter(function(t){return Z.isVisible(t)}),f=this.shadowContext,l=this.outputContext,p=f.canvas,h=s.filter(function(t){return!a.has(t)}),d=new b.default,y=new b.default,g=(0,o.default)(a),m=0;case 10:if(!(m<h.length)){t.next=27;break}x=h[m],w=!1,_=0;case 14:if(!(_<g.length)){t.next=23;break}if(k=g[_],S=k.renderBox,M=x.renderBox,O=k.lastRenderBox,!((0,L.boxIntersect)(S,M)||O&&(0,L.boxIntersect)(O,M))){t.next=20;break}return w=!0,t.abrupt("break",23);case 20:_++,t.next=14;break;case 23:w?d.add(x):y.add(x);case 24:m++,t.next=10;break;case 27:if(!(d.size>0&&y.size>0)){t.next=52;break}E=void 0;case 29:E=!1,j=(0,o.default)(d),T=(0,o.default)(y),A=0;case 32:if(!(A<j.length)){t.next=51;break}P=j[A],R=0;case 35:if(!(R<T.length)){t.next=46;break}if(C=T[R],z=P.renderBox,I=C.renderBox,!(0,L.boxIntersect)(z,I)){t.next=43;break}return d.add(C),y.delete(C),E=!0,t.abrupt("break",46);case 43:R++,t.next=35;break;case 46:if(!E){t.next=48;break}return t.abrupt("break",51);case 48:A++,t.next=32;break;case 51:if(E){t.next=29;break}case 52:for(f.save(),l.save(),f.beginPath(),l.beginPath(),D=0;D<g.length;D++)N=g[D],q=N.renderBox,U=(0,L.boxIntersect)(q,[0,0,n,i]),U&&(V=(0,L.boxToRect)(U),f.rect.apply(f,(0,u.default)(V)),l.rect.apply(l,(0,u.default)(V))),(G=N.lastRenderBox)&&!(0,L.boxEqual)(G,q)&&(U=(0,L.boxIntersect)(G,[0,0,n,i]))&&(H=(0,L.boxToRect)(U),f.rect.apply(f,(0,u.default)(H)),l.rect.apply(l,(0,u.default)(H)));for(W=(0,o.default)(d),J=0;J<W.length;J++)X=W[J],Y=X.renderBox,($=(0,L.boxIntersect)(Y,[0,0,n,i]))&&(K=(0,L.boxToRect)($),f.rect.apply(f,(0,u.default)(K)),l.rect.apply(l,(0,u.default)(K)));return f.clip(),l.clip(),f.clearRect(0,0,n,i),l.clearRect(0,0,n,i),Q=[].concat((0,u.default)(a),(0,u.default)(d)),this.sortChildren(Q),t.next=67,this.drawSprites(f,Q,e);case 67:l.drawImage(p,0,0),f.restore(),l.restore(),this[F].clear();case 71:case"end":return t.stop()}},t,this)}));return t}()},{key:"appendChild",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.removeChild(t),this[B].push(t),t.connect(this,this[q]++),e&&this.update(t),t}},{key:"append",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.appendChild(e)})}},{key:"removeChild",value:function(t){var e=this[B].indexOf(t);return-1===e?null:(this[B].splice(e,1),(this.isVisible(t)||t.lastRenderBox)&&t.forceUpdate(),t.disconnect(this),t)}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length&&(r=this[B].slice(0)),r.map(function(e){return t.removeChild(e)})}},{key:"pointCollision",value:function(t){var e=t.layerX,r=t.layerY,n=(0,v.default)(this.resolution,2),i=n[0],o=n[1];if(e>=0&&r>=0&&e<i&&r<o)return[e,r]}},{key:"dispatchEvent",value:function(t,r){r.layer=this;var n=this[B].slice(0);n.sort(function(t,e){var r=t.attr("zIndex"),n=e.attr("zIndex");return r===n?e.zOrder-t.zOrder:n-r});for(var i=[],o=0;o<n.length;o++){var a=n[o];a.dispatchEvent(t,r)&&i.push(a)}r.targetSprites=i,(0,T.default)(e.prototype.__proto__||(0,w.default)(e.prototype),"dispatchEvent",this).call(this,t,r)}},{key:"updateResolution",value:function(){if(this.parent){var t=this.resolution,e=this.viewport,r=this.parent.container,n=this.shadowContext.canvas,i=this.outputContext.canvas;i.width=t[0],i.height=t[1],n.width=t[0],n.height=t[1],i.style.width=e[0]+"px",i.style.height=e[1]+"px",this.outputContext.clearRect(0,0,t[0],t[1]),this.shadowContext.clearRect(0,0,t[0],t[1]),r!==i.parentNode&&r.appendChild(i),this[B].forEach(function(t){delete t.lastRenderBox,t.forceUpdate()})}}},{key:"connect",value:function(t,r,n){return(0,T.default)(e.prototype.__proto__||(0,w.default)(e.prototype),"connect",this).call(this,t,r),this.zIndex=n,this.updateResolution(),this}},{key:"disconnect",value:function(t){return this.outputContext.canvas.remove(),(0,T.default)(e.prototype.__proto__||(0,w.default)(e.prototype),"disconnect",this).call(this,t)}},{key:"getSnapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,l.default)(c.default.mark(function t(){var e,r;return c.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.prepareRender();case 2:return e=this.canvas.cloneNode(!0),e.getContext("2d").drawImage(this.canvas,0,0),r=this[B].map(function(t){return t.serialize()}),t.abrupt("return",{context:e,children:r});case 6:case"end":return t.stop()}},t,this)}));return t}()},{key:"putSnapshot",value:function(t){var e=this,r=this.outputContext,n=(0,v.default)(this.resolution,2),i=n[0],o=n[1];r.clearRect(0,0,i,o),r.drawImage(t.context,0,0),this[F].clear(),t.children.forEach(function(t){var r=(0,N.createNode)(t.nodeType,t.attrs,t.id);e.appendChild(r,!1)});for(var a=0;a<this[B].length;a++){var u=this[B][a];u.dispatchEvent("update",{target:u,context:u.context,renderBox:u.renderBox,lastRenderBox:u.lastRenderBox},!0),u.lastRenderBox=u.renderBox}return this[B]}},{key:"adjust",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.outputContext,n=this.shadowContext,i=(0,v.default)(this.resolution,2),o=i[0],a=i[1];r.clearRect(0,0,o,a),t.call(this,r),e&&r.drawImage(n.canvas,0,0)}},{key:"timeline",get:function(){return this[G]}},{key:"canvas",get:function(){return this.outputContext.canvas}},{key:"container",get:function(){return this.parent?this.parent.container:null}},{key:"resolution",get:function(){return this[W]?this[W]:this.parent?this.parent.resolution:[0,0]},set:function(t){this[W]=t}},{key:"viewport",get:function(){return this.parent?this.parent.viewport:[0,0]}},{key:"id",get:function(){return this.canvas.dataset.layerId}},{key:"fps",get:function(){if(!this.evaluateFPS)return NaN;var t=0,e=this[V].slice(-10),r=e.length;return e.length<=5?NaN:(e.reduceRight(function(e,r,n){return t+=n*(e-r),r}),Math.round((r-1)*r/2*1e3/t))}},{key:"zIndex",get:function(){return this.outputContext.canvas.style.zIndex},set:function(t){this.outputContext.canvas.style.zIndex=t}}]),e}(I.default);e.default=J},function(t,e,r){t.exports={default:r(159),__esModule:!0}},function(t,e,r){t.exports={default:r(160),__esModule:!0}},function(t,e,r){t.exports={default:r(176),__esModule:!0}},function(t,e,r){"use strict";var n=r(12).f,i=r(49),o=r(72),a=r(19),u=r(62),s=r(40),c=r(67),f=r(103),l=r(112),p=r(15),h=r(68).fastKey,d=r(77),v=p?"_s":"size",y=function(t,e){var r,n=h(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,c){var f=t(function(t,n){u(t,f,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&s(n,r,t[c],t)});return o(f.prototype,{clear:function(){for(var t=d(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var r=d(this,e),n=y(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(t){d(this,e);for(var r,n=a(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(d(this,e),t)}}),p&&n(f.prototype,"size",{get:function(){return d(this,e)[v]}}),f},def:function(t,e,r){var n,i,o=y(t,e);return o?o.v=r:(t._l=o={i:i=h(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,r){c(t,e,function(t,r){this._t=d(t,e),this._k=r,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?f(0,r.k):"values"==e?f(0,r.v):f(0,[r.k,r.v]):(t._t=void 0,f(1))},r?"entries":"values",!r,!0),l(e)}}},function(t,e,r){var n=r(47),i=r(180);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,r){"use strict";var n=r(5),i=r(1),o=r(68),a=r(26),u=r(23),s=r(72),c=r(40),f=r(62),l=r(11),p=r(43),h=r(12).f,d=r(182)(0),v=r(15);t.exports=function(t,e,r,y,g,m){var b=n[t],x=b,w=g?"set":"add",_=x&&x.prototype,k={};return v&&"function"==typeof x&&(m||_.forEach&&!a(function(){(new x).entries().next()}))?(x=e(function(e,r){f(e,x,t,"_c"),e._c=new b,void 0!=r&&c(r,g,e[w],e)}),d("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in _&&(!m||"clear"!=t)&&u(x.prototype,t,function(r,n){if(f(this,x,t),!e&&m&&!l(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),m||h(x.prototype,"size",{get:function(){return this._c.size}})):(x=y.getConstructor(e,t,g,w),s(x.prototype,r),o.NEED=!0),p(x,t),k[t]=x,i(i.G+i.W+i.F,k),m||y.setStrong(x,t,g),x}},function(t,e,r){"use strict";var n=r(12),i=r(42);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){var n=r(5).document;t.exports=n&&n.documentElement},function(t,e,r){t.exports=!r(15)&&!r(26)(function(){return 7!=Object.defineProperty(r(64)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(32),i=r(6)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(39);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(10);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(6)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(27),i=r(34),o=r(73)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(27),i=r(20),o=r(181)(!1),a=r(73)("IE_PROTO");t.exports=function(t,e){var r,u=i(t),s=0,c=[];for(r in u)r!=a&&n(u,r)&&c.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(c,r)||c.push(r));return c}},function(t,e,r){var n=r(33),i=r(20),o=r(41).f;t.exports=function(t){return function(e){for(var r,a=i(e),u=n(a),s=u.length,c=0,f=[];s>c;)o.call(a,r=u[c++])&&f.push(t?[r,a[r]]:a[r]);return f}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(10),i=r(11),o=r(69);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){t.exports=r(23)},function(t,e,r){"use strict";var n=r(1),i=r(38),o=r(19),a=r(40);t.exports=function(t){n(n.S,t,{from:function(t){var e,r,n,u,s=arguments[1];return i(this),e=void 0!==s,e&&i(s),void 0==t?new this:(r=[],e?(n=0,u=o(s,arguments[2],2),a(t,!1,function(t){r.push(u(t,n++))})):a(t,!1,r.push,r),new this(r))}})}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,r){"use strict";var n=r(5),i=r(0),o=r(12),a=r(15),u=r(6)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(10),i=r(38),o=r(6)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(19),u=r(186),s=r(97),c=r(64),f=r(5),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},n(y),y},h=function(t){delete g[t]},"process"==r(39)(l)?n=function(t){l.nextTick(a(m,t,1))}:v&&v.now?n=function(t){v.now(a(m,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):n="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:p,clear:h}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){var t={};return t.promise=new y.default(function(e,r){t.resolve=e,t.reject=r}),t}function o(t,e){var r=Math.floor(t/e);return r?(t-=r*e)||e:t}function a(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=m.get(e);return n||(n=g.apply(void 0,e),m.set(e,n),n)}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(r,n){for(var i=1;i<n.length;i++){var o=n[i].offset;if(r<=o){var a=n[i-1].offset,u=o,s=(r-a)/(u-a),c=1/t,f=s/c;return f="end"===e?Math.floor(f):Math.ceil(f),c*f*(u-a)+a}}return 0}}function s(t){var e=/^cubic-bezier\((.*)\)/,r=t.match(e);if(r){var n=r[1].trim();return n=n.split(",").map(function(t){return parseFloat(t.trim())}),a.apply(void 0,(0,p.default)(n))}if(e=/^steps\((.*)\)/,r=t.match(e)){var i=r[1].trim();i=i.split(",").map(function(t){return t.trim()});var o=i,s=(0,f.default)(o,2),c=s[0],l=s[1];return u(parseInt(c,10),l)}return t}Object.defineProperty(e,"__esModule",{value:!0});var c=r(2),f=n(c),l=r(9),p=n(l),h=r(30),d=n(h),v=r(21),y=n(v);e.defer=i,e.periodicity=o,e.getBezierEasing=a,e.getStepsEasing=u,e.parseEasingStr=s;var g=r(158),m=new d.default},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}function o(t){if(t){var e=t.attr(),r=e.direction,n=e.ticks,i=e.length,o=e.vLength,a=e.font,u=e.lineWidth,s=e.color,c=e.axisScales,f=n.slice(0),l=n.slice(0);if(c.length&&(l=l.map(function(t){return c.reduce(function(t,e){return e(t)},t)}),l=l.filter(function(t){return t>=0})),!(l.length<=0)){if(n=n.slice(-l.length),c.length){var p=c[c.length-1],h=p.range(),d=(0,z.default)(h,2),v=d[0],y=d[1],g=p.domain(),m=(0,z.default)(g,2),b=m[0],x=m[1];v<l[0]&&(n.unshift(b),l.unshift(v)),y>l[l.length-1]&&(n.push(x),l.push(y))}var w=l[l.length-1]-l[0];"auto"===i&&(i=w);var _=void 0,k=void 0,S=[],M=l.map(function(t){return i*(t-l[0])/w}),O=0,E=0,j=0;n.forEach(function(e,n){if(-1!==f.indexOf(e)){var i=t[W][n];i||(i=new F.default,t[W][n]=i),i.text=e,i.attr({font:a,color:s});var u=(0,z.default)(i.contentSize,2),c=u[0],l=u[1];O=Math.max(O,l),E=Math.max(E,c),0===n&&(j=c);var p=M[n];null!=p&&("top"===r?S.push({src:i,rect:[j+p-Math.round(c/2),0,c,l]}):"bottom"===r?S.push({src:i,rect:[j+p-Math.round(c/2),o+5,c,l]}):"left"===r?S.push({src:i,rect:[o+5,p,c,l]}):"right"===r&&S.push({src:i,rect:[0,p,c,l]}))}}),"top"===r?(k="M0 "+o+" h"+i,M.forEach(function(t){k+="M"+t+" 0 v"+o}),_=[j,O+5,i,o]):"bottom"===r?(k="M0 0 h"+i,M.forEach(function(t){k+="M"+t+" 0 v"+o}),_=[j,0,i,o]):"left"===r?(k="M0 0 v"+i,M.forEach(function(t){k+="M0 "+t+" h"+o}),_=[0,O/2,o,i]):"right"===r&&(k="M"+(E+5)+" 0 v"+i,M.forEach(function(t){k+="M"+(E+5-o)+" "+t+" h"+o}),_=[E+5,O/2,o,i]);var T=t[H];T.attr({d:k,lineWidth:u,color:s}),S.push({src:T,rect:_}),t.attr({textures:S})}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u,s,c,f,l,p,h,d,v,y,g,m,b=r(22),x=n(b),w=r(31),_=n(w),k=r(14),S=n(k),M=r(3),O=n(M),E=r(4),j=n(E),T=r(18),A=n(T),P=r(17),R=n(P),C=r(2),z=n(C),I=r(8),L=n(I),D=r(82),N=n(D),B=r(81),F=n(B),q=r(83),U=n(q),V=r(24),G=r(13),H=(0,L.default)("axisPath"),W=(0,L.default)("labels"),J=(a=(0,V.attr)("repaint"),u=(0,V.attr)("repaint"),s=(0,V.attr)("repaint"),c=(0,V.attr)("repaint"),f=(0,V.attr)("repaint"),l=(0,V.parseValue)(G.parseStringFloat),p=(0,V.attr)("repaint"),h=(0,V.attr)("repaint"),d=(0,V.attr)("repaint"),v=(0,V.parseValue)(G.parseColorString),y=function(t){function e(t){(0,O.default)(this,e);var r=(0,A.default)(this,(e.__proto__||(0,S.default)(e)).call(this,t));return r.merge({length:"auto",vLength:10,ticks:[0,100],direction:"top",lineWidth:1,color:"black",renderMode:"stroke",font:"24px Arial",axisScales:[]}),r}return(0,R.default)(e,t),(0,j.default)(e,[{key:"font",set:function(t){this.set("font",t),o(this.subject)},get:function(){return this.get("font")}},{key:"direction",set:function(t){this.set("direction",t),o(this.subject)},get:function(){return this.get("direction")}},{key:"length",set:function(t){this.set("length",t),o(this.subject)},get:function(){return this.get("length")}},{key:"vLength",set:function(t){this.set("vLength",Math.round(t)),o(this.subject)},get:function(){return this.get("vLength")}},{key:"ticks",set:function(t){this.set("ticks",t.sort(function(t,e){return t-e})),o(this.subject)},get:function(){return this.get("ticks")}},{key:"axisScales",set:function(t){this.set("axisScales",t),o(this.subject)},get:function(){return this.get("axisScales")}},{key:"d",get:function(){return this.subject&&this.subject[H]?this.subject[H].d:null}},{key:"lineWidth",set:function(t){this.set("lineWidth",t),o(this.subject)},get:function(){return this.get("lineWidth")}},{key:"color",set:function(t){this.set("color",t),o(this.subject)},get:function(){return this.get("color")}}]),e}(U.default.Attr),i(y.prototype,"font",[a],(0,_.default)(y.prototype,"font"),y.prototype),i(y.prototype,"direction",[u],(0,_.default)(y.prototype,"direction"),y.prototype),i(y.prototype,"length",[s],(0,_.default)(y.prototype,"length"),y.prototype),i(y.prototype,"vLength",[c],(0,_.default)(y.prototype,"vLength"),y.prototype),i(y.prototype,"ticks",[f,l],(0,_.default)(y.prototype,"ticks"),y.prototype),i(y.prototype,"axisScales",[p],(0,_.default)(y.prototype,"axisScales"),y.prototype),i(y.prototype,"d",[V.readonly],(0,_.default)(y.prototype,"d"),y.prototype),i(y.prototype,"lineWidth",[h],(0,_.default)(y.prototype,"lineWidth"),y.prototype),i(y.prototype,"color",[d,v],(0,_.default)(y.prototype,"color"),y.prototype),y),X=(m=g=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,100],r=arguments[1];(0,O.default)(this,e);var n=(0,A.default)(this,(e.__proto__||(0,S.default)(e)).call(this,null,r));return n[H]=new N.default,n[W]=[],t&&n.attr({ticks:t}),n}return(0,R.default)(e,t),(0,j.default)(e,[{key:"render",value:function(t){return(0,x.default)(e.prototype.__proto__||(0,S.default)(e.prototype),"render",this).call(this,t)}},{key:"initAttributes",value:function(t){(0,x.default)(e.prototype.__proto__||(0,S.default)(e.prototype),"initAttributes",this).call(this,t),o(this)}}]),e}(U.default),g.Attr=J,m);e.default=X},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){t.sort(function(t,e){var r=t.attr("zIndex"),n=e.attr("zIndex");return r===n?t.zOrder-e.zOrder:r-n})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(2),a=n(o),u=r(37),s=n(u),c=r(9),f=n(c),l=r(36),p=n(l),h=r(16),d=n(h),v=r(14),y=n(v),g=r(3),m=n(g),b=r(4),x=n(b),w=r(18),_=n(w),k=r(22),S=n(k),M=r(17),O=n(M),E=r(8),j=n(E),T=r(29),A=n(T),P=(0,j.default)("children"),R=(0,j.default)("zOrder"),C=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{attr:{}};(0,m.default)(this,e);var r=(0,_.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r[P]=[],r[R]=0,r}return(0,O.default)(e,t),(0,x.default)(e,[{key:"appendChild",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this[P].push(t),t.connect(this,this[R]++),e&&i(this[P])}},{key:"append",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.appendChild(e,!1)}),i(this[P])}},{key:"removeChild",value:function(t){var e=this[P].indexOf(t);return-1===e?null:(this[P].splice(e,1),t.disconnect(this),t)}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.removeChild(e)})}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!r.terminated&&(n||this.pointCollision(r))){var i=r.offsetX-this.originRect[0],o=r.offsetY-this.originRect[1],a=(0,d.default)({},r);a.parentX=i,a.parentY=o;var u=[];this[P].forEach(function(e){e.dispatchEvent(t,a,n)&&u.push(e)}),r.targetSprites=u,(0,S.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n)}}},{key:"render",value:function(){function t(t){return r.apply(this,arguments)}var r=(0,p.default)(s.default.mark(function t(r){var n,i,o,a,u,c,l,p;return s.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,S.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,r),i=this[P],o=0;case 3:if(!(o<i.length)){t.next=18;break}return a=i[o],t.next=7,a.render(r);case 7:u=t.sent,c=a.transform.m,l=a.attr("pos"),p=a.originRect,n.save(),n.translate(l[0],l[1]),n.transform.apply(n,(0,f.default)(c)),n.globalAlpha=a.attr("opacity"),n.drawImage(u.canvas,p[0],p[1]),n.restore();case 15:o++,t.next=3;break;case 18:return t.abrupt("return",n);case 19:case"end":return t.stop()}},t,this)}));return t}()},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,a.default)(t,2),r=e[0],n=e[1];return""!==r&&""!==n||(r=n=0,this[P].forEach(function(t){var e=t.renderBox;r=Math.max(r,e[2]),n=Math.max(r,e[3])})),[r,n]}}]),e}(A.default);e.default=C},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=(0,j.default)(t[D]);e.sort(function(t,e){return e.zIndex===t.zIndex?e.zOrder-t.zOrder:e.zIndex-t.zIndex}),t[B]=e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(37),a=n(o),u=r(21),s=n(u),c=r(9),f=n(c),l=r(36),p=n(l),h=r(16),d=n(h),v=r(2),y=n(v),g=r(14),m=n(g),b=r(3),x=n(b),w=r(4),_=n(w),k=r(18),S=n(k),M=r(17),O=n(M),E=r(155),j=n(E),T=r(8),A=n(T),P=r(89),R=n(P),C=r(57),z=n(C),I=r(59),L=n(I),D=(0,A.default)("layerMap"),N=(0,A.default)("zOrder"),B=(0,A.default)("layers"),F=(0,A.default)("snapshot"),q=function(t){function e(t,r,n){(0,x.default)(this,e);var i=(0,S.default)(this,(e.__proto__||(0,m.default)(e)).call(this));if("string"==typeof t&&(t=document.querySelector(t)),!t)throw new Error("Container is not defined or cannot found.");i.container=t,i.viewport=[r||t.clientWidth,n||t.clientHeight],i.resolution=[i.viewport[0],i.viewport[1]],i[N]=0,i[D]={},i[B]=[],i[F]=document.createElement("canvas"),i.namespaceURI="http://spritejs.org/paper2D";var o=i;i.ownerDocument={createElementNS:function(t,e){return o.layer(e)}};var a=["mousedown","mouseup","mousemove","touchstart","touchend","touchmove","click","dblclick"];return i.delegateEvent.apply(i,a),i}return(0,O.default)(e,t),(0,_.default)(e,[{key:"insertBefore",value:function(t,e){if(this.container)return this.container.insertBefore(t,e)}},{key:"appendChild",value:function(t){return this.appendLayer(t)}},{key:"removeChild",value:function(t){return this.removeLayer(t)}},{key:"setViewport",value:function(t,e){return"auto"===t&&(t=this.container.clientWidth),"auto"===e&&(e=this.container.clientHeight),this.viewport=[t,e],this[B].forEach(function(t){return t.updateResolution()}),this}},{key:"setResolution",value:function(t,e){return this.resolution=[t,e],this[B].forEach(function(t){return t.updateResolution()}),this}},{key:"toGlobalPos",value:function(t,e){var r=this.resolution,n=this.viewport;return t=t*n[0]/r[0],e=e*n[1]/r[1],[t,e]}},{key:"toLocalPos",value:function(t,e){var r=this.resolution,n=this.viewport;return t=t*r[0]/n[0],e=e*r[1]/n[1],[t,e]}},{key:"delegateEvent",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){"string"==typeof e&&(e={type:e,passive:!0});var r=e,n=r.type,i=r.passive;t.container.addEventListener(n,function(e){var r=t[B],i={originalEvent:e,type:n,stopDispatch:function(){this.terminated=!0}},o=e.target.getBoundingClientRect(),a=o.left,u=o.top,s=void 0,c=void 0;if(e.changedTouches){var f=e.changedTouches[0],l=f.clientX,p=f.clientY;s=Math.round(l-a),c=Math.round(p-u)}else s=Math.round(e.clientX-a),c=Math.round(e.clientY-u);var h=t.toLocalPos(s,c),v=(0,y.default)(h,2),g=v[0],m=v[1];(0,d.default)(i,{layerX:g,layerY:m,originalX:s,originalY:c,x:g,y:m});for(var b=0;b<r.length;b++){var x=r[b];x.handleEvent&&x.dispatchEvent(n,i)}},{passive:i})})}},{key:"preload",value:function(){function t(){return e.apply(this,arguments)}var e=(0,p.default)(a.default.mark(function t(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o,u,c,l,p,h,d;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(o=[],u=[],c=0;c<n.length;c++)l=n[c],p=void 0,"string"==typeof l?p=z.default.loadTexture(l):Array.isArray(l)?p=z.default.loadFrames.apply(z.default,(0,f.default)(l)):(h=l.id,d=l.src,p=z.default.loadTexture({id:h,src:d})),u.push(p.then(function(t){o.push(t),e.dispatchEvent("preload",{target:e,current:t,loaded:o,resources:n},!0)}));return t.next=4,s.default.all(u);case 4:return t.abrupt("return",o);case 5:case"end":return t.stop()}},t,this)}));return t}()},{key:"layer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handleEvent:!0};if("number"==typeof e&&(e={zIndex:e}),!this.hasLayer(t)){var r=0;null!=e.zIndex&&(r=e.zIndex,delete e.zIndex);var n=new R.default(t,e);this.appendLayer(n,r)}return this[D][t]}},{key:"appendLayer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.id;if(this.hasLayer(r)&&this[D][r]!==t)throw new Error("layer "+r+" already exists! remove first...");return this.removeLayer(t),this[D][r]=t,t.connect(this,this[N]++,e),i(this),t}},{key:"removeLayer",value:function(t){var e=void 0;return"string"==typeof t?(e=t,t=this[D][t]):e=t.id,this.hasLayer(t)?(t.disconnect(this),delete this[D][e],i(this),t):null}},{key:"hasLayer",value:function(t){var e=void 0;return"string"==typeof t?(e=t,t=this[D][t]):e=t.id,t&&this[D][e]===t}},{key:"snapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,p.default)(a.default.mark(function t(){var e,r,n,i,o,u,c;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this[F],r=(0,y.default)(this.viewport,2),n=r[0],i=r[1],e.width=n,e.height=i,o=this[B].slice(0).reverse(),u=e.getContext("2d"),c=o.map(function(t){return t.prepareRender()}),t.next=9,s.default.all(c);case 9:return o.forEach(function(t){return u.drawImage(t.canvas,0,0,n,i)}),t.abrupt("return",e);case 11:case"end":return t.stop()}},t,this)}));return t}()},{key:"distortion",get:function(){return this.viewport[1]*this.resolution[0]/(this.viewport[0]*this.resolution[1])}}]),e}(L.default);e.default=q},function(t,e,r){"use strict";(function(e){function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function o(t){return Object.prototype.toString.call(t)}function a(t){return!i(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function u(t){if(x.isFunction(t)){if(k)return t.name;var e=t.toString(),r=e.match(M);return r&&r[1]}}function s(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function c(t){if(k||!x.isFunction(t))return x.inspect(t);var e=u(t);return"[Function"+(e?": "+e:"")+"]"}function f(t){return s(c(t.actual),128)+" "+t.operator+" "+s(c(t.expected),128)}function l(t,e,r,n,i){throw new S.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function p(t,e){t||l(t,!0,e,"==",S.ok)}function h(t,e,r,u){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(x.isDate(t)&&x.isDate(e))return t.getTime()===e.getTime();if(x.isRegExp(t)&&x.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(a(t)&&a(e)&&o(t)===o(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;u=u||{actual:[],expected:[]};var s=u.actual.indexOf(t);return-1!==s&&s===u.expected.indexOf(e)||(u.actual.push(t),u.expected.push(e),v(t,e,r,u))}return r?t===e:t==e}function d(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function v(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(x.isPrimitive(t)||x.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=d(t),o=d(e);if(i&&!o||!i&&o)return!1;if(i)return t=_.call(t),e=_.call(e),h(t,e,r);var a,u,s=O(t),c=O(e);if(s.length!==c.length)return!1;for(s.sort(),c.sort(),u=s.length-1;u>=0;u--)if(s[u]!==c[u])return!1;for(u=s.length-1;u>=0;u--)if(a=s[u],!h(t[a],e[a],r,n))return!1;return!0}function y(t,e,r){h(t,e,!0)&&l(t,e,r,"notDeepStrictEqual",y)}function g(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function m(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=m(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&l(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&x.isError(i),u=!t&&i&&!r;if((a&&o&&g(i,r)||u)&&l(i,r,"Got unwanted exception"+n),t&&i&&r&&!g(i,r)||!t&&i)throw i}var x=r(237),w=Object.prototype.hasOwnProperty,_=Array.prototype.slice,k=function(){return"foo"===function(){}.name}(),S=t.exports=p,M=/\s*function\s+([^\(\s]*)\s*/;S.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=f(this),this.generatedMessage=!0);var e=t.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=u(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},x.inherits(S.AssertionError,Error),S.fail=l,S.ok=p,S.equal=function(t,e,r){t!=e&&l(t,e,r,"==",S.equal)},S.notEqual=function(t,e,r){t==e&&l(t,e,r,"!=",S.notEqual)},S.deepEqual=function(t,e,r){h(t,e,!1)||l(t,e,r,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(t,e,r){h(t,e,!0)||l(t,e,r,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(t,e,r){h(t,e,!1)&&l(t,e,r,"notDeepEqual",S.notDeepEqual)},S.notDeepStrictEqual=y,S.strictEqual=function(t,e,r){t!==e&&l(t,e,r,"===",S.strictEqual)},S.notStrictEqual=function(t,e,r){t===e&&l(t,e,r,"!==",S.notStrictEqual)},S.throws=function(t,e,r){b(!0,t,e,r)},S.doesNotThrow=function(t,e,r){b(!1,t,e,r)},S.ifError=function(t){if(t)throw t};var O=Object.keys||function(t){var e=[];for(var r in t)w.call(t,r)&&e.push(r);return e}}).call(e,r(116))},function(t,e,r){t.exports=r(122)},function(t,e,r){"use strict";function n(t){var e=new a(t),r=o(a.prototype.request,e);return i.extend(r,a.prototype,e),i.extend(r,e),r}var i=r(7),o=r(88),a=r(124),u=r(58),s=n(u);s.Axios=a,s.create=function(t){return n(i.merge(u,t))},s.Cancel=r(85),s.CancelToken=r(123),s.isCancel=r(86),s.all=function(t){return Promise.all(t)},s.spread=r(138),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}var i=r(85);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=r(58),o=r(7),a=r(125),u=r(126),s=r(134),c=r(132);n.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.method=t.method.toLowerCase(),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url));var e=[u,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},o.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(o.merge(r||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(o.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},function(t,e,r){"use strict";function n(){this.handlers=[]}var i=r(7);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=r(7),o=r(129),a=r(86),u=r(58);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return n(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},function(t,e,r){"use strict";var n=r(87);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},function(t,e,r){"use strict";function n(){this.message="String contains an invalid character"}function i(t){for(var e,r,i=String(t),a="",u=0,s=o;i.charAt(0|u)||(s="=",u%1);a+=s.charAt(63&e>>8-u%1*8)){if((r=i.charCodeAt(u+=.75))>255)throw new n;e=e<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(7);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(7);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),n.isString(i)&&u.push("path="+i),n.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";var n=r(7);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(r){var i=n.isString(r)?t(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,r){"use strict";var n=r(7);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t){var e,r,i,o={};return t?(n.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+r:r)}),o):o}},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){return Array.isArray(t)?t.map(function(t,o){return C(t,e[o],r,n,i)}):C(t,e,r,n,i)}function o(t){if(Array.isArray(t))return t;var e=new P.default;return(0,j.default)(t).forEach(function(t){var r=(0,O.default)(t,2),n=r[0],i=r[1];Array.isArray(i)?e[n].apply(e,(0,S.default)(i)):e[n](i)}),e}function a(t,e,r,n,o){var a=(0,_.default)({},e,t),u=(0,_.default)({},t,e);return(0,j.default)(a).forEach(function(t){var e=(0,O.default)(t,2),s=e[0],c=e[1];a[s]=i(c,u[s],r,n,o)}),a}function u(t,e,r,n,u){return t=(0,R.parseStringTransform)(t),e=(0,R.parseStringTransform)(e),Array.isArray(t)||Array.isArray(e)?(t=o(t),e=o(e),i(t,e,r,n,u)):a(t,e,r,n,u)}function s(t,e,r,n,i){return t=(0,R.parseColor)(t),e=(0,R.parseColor)(e),a(t,e,r,n,i)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=r(14),f=n(c),l=r(3),p=n(l),h=r(4),d=n(h),v=r(18),y=n(v),g=r(22),m=n(g),b=r(17),x=n(b),w=r(16),_=n(w),k=r(9),S=n(k),M=r(2),O=n(M),E=r(25),j=n(E),T=r(45),A=r(44),P=n(A),R=r(13),C=T.Effects.default;(0,_.default)(T.Effects,{pos:i,size:i,transform:u,bgcolor:s,border:function(t,e,r,n,i){return[C(t[0],e[0],r,n,i),s(t[1],e[1],r,n,i)]},scale:i,translate:i,skew:i,zIndex:function(t,e,r,n,i){return Math.round(C(t,e,r,n,i))},color:s,strokeColor:s,fillColor:s});var z=function(t){function e(t,r,n){(0,p.default)(this,e);var i=(0,y.default)(this,(e.__proto__||(0,f.default)(e)).call(this,t.attr(),r,n));return i.target=t,i}return(0,x.default)(e,t),(0,d.default)(e,[{key:"play",value:function(){if(this.target.parent&&"running"!==this.playState){(0,m.default)(e.prototype.__proto__||(0,f.default)(e.prototype),"play",this).call(this);var t=this.target;if(!t.parent)throw new Error("no context");t.attr(this.frame);var r=this;this.ready.then(function(){requestAnimationFrame(function e(){"idle"!==r.playState&&(t.attr(r.frame),"running"===r.playState?requestAnimationFrame(e):"paused"===r.playState&&r.ready.then(function(){requestAnimationFrame(e)}))})})}}},{key:"cancel",value:function(){(0,m.default)(e.prototype.__proto__||(0,f.default)(e.prototype),"cancel",this).call(this),this.target.attr(this.frame)}},{key:"playState",get:function(){return this.target.parent?(0,m.default)(e.prototype.__proto__||(0,f.default)(e.prototype),"playState",this):"idle"}}]),e}(T.Animator);e.default=z},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}Object.defineProperty(e,"__esModule",{value:!0});var o,a,u,s,c,f,l,p,h,d,v,y,g,m,b=r(31),x=n(b),w=r(9),_=n(w),k=r(25),S=n(k),M=r(2),O=n(M),E=r(60),j=n(E),T=r(16),A=n(T),P=r(46),R=n(P),C=r(30),z=n(C),I=r(3),L=n(I),D=r(4),N=n(D),B=r(8),F=n(B),q=r(24),U=r(44),V=n(U),G=r(13),H=r(231).static,W=(0,F.default)("attr"),J=(0,F.default)("store"),X=(0,F.default)("subject"),Y=(o=(0,q.parseValue)(G.parseStringFloat,G.oneOrTwoValues),a=(0,q.parseValue)(G.parseStringInt),u=(0,q.attr)("repaint"),s=(0,q.parseValue)(G.parseColorString),c=(0,q.attr)("repaint"),f=(0,q.attr)("repaint"),l=(0,q.parseValue)(G.parseStringInt),p=(0,q.attr)("repaint"),h=(0,q.attr)("repaint"),d=(0,q.parseValue)(G.parseStringInt,G.fourValuesShortCut),v=(0,q.attr)("repaint"),y=(0,q.parseValue)(G.parseStringTransform),g=(0,q.attr)("repaint"),m=function(){function t(e){(0,L.default)(this,t),this[X]=e,this[W]=H({anchor:[0,0],x:0,y:0,opacity:1,width:"",height:"",bgcolor:"",rotate:0,scale:[1,1],translate:[0,0],skew:[0,0],transform:[1,0,0,1,0,0],border:"",borderRadius:0,padding:[0,0,0,0],zIndex:0,offsetRotate:"auto",linearGradients:{}}),this[J]=new z.default}return(0,N.default)(t,[{key:"getAttrState",value:function(){return this[W]}},{key:"saveObj",value:function(t,e){this[J].set(t,e)}},{key:"loadObj",value:function(t){return this[J].get(t)}},{key:"set",value:function(t,e){this[W]=H.set(this[W],t,e)}},{key:"get",value:function(t){var e=this[W][t];return e&&"object"===(void 0===e?"undefined":(0,R.default)(e))?H.asMutable(e,{deep:!0}):e}},{key:"remove",value:function(t){return delete this[W][t]}},{key:"clearCache",value:function(){return this.subject&&(this.subject.cache=null),this}},{key:"forceUpdate",value:function(t){return this.subject&&this.subject.forceUpdate(t),this}},{key:"merge",value:function(t){return"string"==typeof t&&(t=JSON.parse(t)),this[W]=H.merge(this[W],t),this}},{key:"serialize",value:function(){var t=(0,A.default)({},this[W]);return(0,j.default)(t)}},{key:"resetOffset",value:function(){var t=this.get("offsetPath"),e=this.offsetDistance;if(t){var r=this.loadObj("offsetPath");r?t=r:(t=(0,G.createPath)(t),this.saveObj("offsetPath",t))}if(null!=t){var n=e*t.getTotalLength(),i=t.getPointAtLength(n),o=i.x,a=i.y,u=this.offsetRotate;if("auto"===u||"reverse"===u){var s=t.getPointAtLength("auto"===u?n+1:n-1),c=s.x,f=s.y;u=c===o&&f===a?this.get("offsetAngle"):180*Math.atan2(f-a,c-o)/Math.PI,"reverse"===this.offsetRotate&&(u=-u)}var l=this.get("offsetAngle");l&&(this.rotate-=l),this.set("offsetAngle",u),this.rotate+=u;var p=this.get("offsetPoint");p&&(this.pos=[this.x-p[0],this.y-p[1]]),this.set("offsetPoint",[o,a]),this.pos=[this.x+o,this.y+a]}}},{key:"subject",get:function(){return this[X]}},{key:"id",set:function(t){return this.saveObj("id",String(t))},get:function(){return this.loadObj("id")}},{key:"name",set:function(t){return this.set("name",String(t))},get:function(){return this.get("name")}},{key:"anchor",set:function(t){this.set("anchor",t)},get:function(){return this.get("anchor")}},{key:"x",set:function(t){this.set("x",Math.round(t))},get:function(){return this.get("x")}},{key:"y",set:function(t){this.set("y",Math.round(t))},get:function(){return this.get("y")}},{key:"pos",set:function(t){var e=(0,O.default)(t,2),r=e[0],n=e[1];this.x=r,this.y=n},get:function(){return[this.x,this.y]}},{key:"bgcolor",set:function(t){this.set("bgcolor",t)},get:function(){return this.get("bgcolor")}},{key:"opacity",set:function(t){this.set("opacity",t)},get:function(){return this.get("opacity")}},{key:"width",set:function(t){this.set("width",Math.round(t))},get:function(){return this.get("width")}},{key:"height",set:function(t){this.set("height",Math.round(t))},get:function(){return this.get("height")}},{key:"size",set:function(t){var e=(0,O.default)(t,2),r=e[0],n=e[1];this.width=r,this.height=n},get:function(){return[this.width,this.height]}},{key:"border",set:function(t){var e=(0,O.default)(t,2),r=e[0],n=e[1];this.set("border",[r,(0,G.parseColorString)(n)])},get:function(){return this.get("border")||[0,"rgba(0,0,0,0)"]}},{key:"padding",set:function(t){this.set("padding",t)},get:function(){return this.get("padding")}},{key:"borderRadius",set:function(t){this.set("borderRadius",t)},get:function(){return this.get("borderRadius")}},{key:"transform",set:function(t){var e=this;if(this.merge({rotate:0,scale:[1,1],translate:[0,0],skew:[0,0]}),Array.isArray(t))this.set("transform",t),this.set("transformStr","matrix("+t+")");else{this.set("transform",[1,0,0,1,0,0]);var r=[];(0,S.default)(t).forEach(function(t){var n=(0,O.default)(t,2),i=n[0],o=n[1];"matrix"===i&&Array.isArray(o)?e.set("transform",new V.default(o).m):e[i]=o,r.push(i+"("+o+")")}),this.set("transformStr",r.join(" "))}},get:function(){return this.get("transformStr")||"matrix(1,0,0,1,0,0)"}},{key:"rotate",set:function(t){var e=this.get("rotate")-t;this.set("rotate",t);var r=new V.default(this.get("transform")).rotate(-e);this.set("transform",r.m)},get:function(){return this.get("rotate")}},{key:"scale",set:function(t){t=(0,G.oneOrTwoValues)(t);var e=this.get("scale"),r=[t[0]/e[0],t[1]/e[1]];this.set("scale",t);var n=this.get("offsetAngle");n&&(this.rotate-=n);var i=new V.default(this.get("transform"));i.scale.apply(i,r),this.set("transform",i.m),n&&(this.rotate+=n)},get:function(){return this.get("scale")}},{key:"translate",set:function(t){var e=this.get("translate"),r=[t[0]-e[0],t[1]-e[1]];this.set("translate",t);var n=new V.default(this.get("transform"));n.translate.apply(n,r),this.set("transform",n.m)},get:function(){return this.get("translate")}},{key:"skew",set:function(t){var e,r,n=this.get("skew"),i=(e=new V.default).skew.apply(e,(0,_.default)(n)).inverse();this.set("skew",t);var o=new V.default(this.get("transform"));(r=o.multiply(i)).skew.apply(r,(0,_.default)(t)),this.set("transform",o.m)},get:function(){return this.get("skew")}},{key:"zIndex",set:function(t){this.set("zIndex",t)},get:function(){return this.get("zIndex")}},{key:"linearGradients",set:function(t){this.set("linearGradients",t)},get:function(){return this.get("linearGradients")}},{key:"offsetPath",set:function(t){var e=(0,G.createPath)(t);this.set("offsetPath",e.getAttribute("d")),this.saveObj("offsetPath",e),this.resetOffset()},get:function(){return this.get("offsetPath")}},{key:"offsetDistance",set:function(t){this.set("offsetDistance",t),this.resetOffset()},get:function(){return this.get("offsetDistance")||0}},{key:"offsetRotate",set:function(t){this.set("offsetRotate",t),this.resetOffset()},get:function(){return this.get("offsetRotate")}}]),t}(),i(m.prototype,"anchor",[q.attr,o],(0,x.default)(m.prototype,"anchor"),m.prototype),i(m.prototype,"x",[q.attr],(0,x.default)(m.prototype,"x"),m.prototype),i(m.prototype,"y",[q.attr],(0,x.default)(m.prototype,"y"),m.prototype),i(m.prototype,"pos",[q.attr,a],(0,x.default)(m.prototype,"pos"),m.prototype),i(m.prototype,"bgcolor",[u,s],(0,x.default)(m.prototype,"bgcolor"),m.prototype),i(m.prototype,"opacity",[q.attr],(0,x.default)(m.prototype,"opacity"),m.prototype),i(m.prototype,"width",[c],(0,x.default)(m.prototype,"width"),m.prototype),i(m.prototype,"height",[f],(0,x.default)(m.prototype,"height"),m.prototype),i(m.prototype,"size",[q.attr,l],(0,x.default)(m.prototype,"size"),m.prototype),i(m.prototype,"border",[p],(0,x.default)(m.prototype,"border"),m.prototype),i(m.prototype,"padding",[h,d],(0,x.default)(m.prototype,"padding"),m.prototype),i(m.prototype,"borderRadius",[v],(0,x.default)(m.prototype,"borderRadius"),m.prototype),i(m.prototype,"transform",[q.attr,y],(0,x.default)(m.prototype,"transform"),m.prototype),i(m.prototype,"rotate",[q.attr],(0,x.default)(m.prototype,"rotate"),m.prototype),i(m.prototype,"scale",[q.attr],(0,x.default)(m.prototype,"scale"),m.prototype),i(m.prototype,"translate",[q.attr],(0,x.default)(m.prototype,"translate"),m.prototype),i(m.prototype,"skew",[q.attr],(0,x.default)(m.prototype,"skew"),m.prototype),i(m.prototype,"zIndex",[q.attr],(0,x.default)(m.prototype,"zIndex"),m.prototype),i(m.prototype,"linearGradients",[g],(0,x.default)(m.prototype,"linearGradients"),m.prototype),i(m.prototype,"offsetPath",[q.attr],(0,x.default)(m.prototype,"offsetPath"),m.prototype),i(m.prototype,"offsetDistance",[q.attr],(0,x.default)(m.prototype,"offsetDistance"),m.prototype),i(m.prototype,"offsetRotate",[q.attr],(0,x.default)(m.prototype,"offsetRotate"),m.prototype),m);e.default=Y},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(25),o=n(i),a=r(2),u=n(a),s=r(13);e.default={blur:function(t){return"blur("+(0,s.appendUnit)(t)+")"},brightness:function(t){return"brightness("+t+")"},contrast:function(t){return"contrast("+t+")"},dropShadow:function(t){var e=(0,u.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3];return"drop-shadow("+(0,s.appendUnit)(r)+" "+(0,s.appendUnit)(n)+" "+(0,s.appendUnit)(i)+" "+o+")"},grayscale:function(t){return"grayscale("+t+")"},hueRotate:function(t){return"hue-rotate("+(0,s.appendUnit)(t,"deg")+")"},invert:function(t){return"invert("+t+")"},opacity:function(t){return"opacity("+t+")"},saturate:function(t){return"saturate("+t+")"},sepia:function(t){return"sepia("+t+")"},url:function(t){return"url("+t+")"},compile:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(e,r){return e.concat(t[r[0]](r[1]))},[]).join(" ")}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){console.warn("[Deprecation] spritejs.Paper2D is deprecated, instead use new spritejs.Scene.");for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(p.default,[null].concat(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.Paper2D=e.Scene=e.Group=e.Matrix=e.Effects=e.createNode=e.registerNodeType=e.Axis=e.Color=e.Path=e.Label=e.Resource=e.Sprite=e.BaseSprite=e.version=void 0;var o=r(29),a=n(o),u=r(83),s=n(u),c=r(81),f=n(c),l=r(119),p=n(l),h=r(57),d=n(h),v=r(82),y=n(v),g=r(13),m=r(117),b=n(m),x=r(56),w=r(44),_=n(w),k=r(118),S=n(k),M=r(45);(0,x.registerNodeType)("sprite",s.default),(0,x.registerNodeType)("label",f.default),(0,x.registerNodeType)("path",y.default),(0,x.registerNodeType)("axis",b.default),(0,x.registerNodeType)("group",S.default);var O=g.parseColor;e.version="1.15.1",e.BaseSprite=a.default,e.Sprite=s.default,e.Resource=d.default,e.Label=f.default,e.Path=y.default,e.Color=O,e.Axis=b.default,e.registerNodeType=x.registerNodeType,e.createNode=x.createNode,e.Effects=M.Effects,e.Matrix=_.default,e.Group=S.default,e.Scene=p.default,e.Paper2D=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(2),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=2*Math.PI,a=function(t,e,r,n,i,o,a){var u=t.x,s=t.y;return u*=e,s*=r,{x:n*u-i*s+o,y:i*u+n*s+a}},u=function(t,e){var r=4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:o+a*r,y:a-o*r},{x:o,y:a}]},s=function(t,e,r,n){var i=t*n-e*r<0?-1:1,o=Math.sqrt(t*t+e*e),a=Math.sqrt(t*t+e*e),u=t*r+e*n,s=u/(o*a);return s>1&&(s=1),s<-1&&(s=-1),i*Math.acos(s)},c=function(t,e,r,n,i,a,u,c,f,l,p,h){var d=Math.pow(i,2),v=Math.pow(a,2),y=Math.pow(p,2),g=Math.pow(h,2),m=d*v-d*g-v*y;m<0&&(m=0),m/=d*g+v*y,m=Math.sqrt(m)*(u===c?-1:1);var b=m*i/a*h,x=m*-a/i*p,w=l*b-f*x+(t+r)/2,_=f*b+l*x+(e+n)/2,k=(p-b)/i,S=(h-x)/a,M=(-p-b)/i,O=(-h-x)/a,E=s(1,0,k,S),j=s(k,S,M,O);return 0===c&&j>0&&(j-=o),1===c&&j<0&&(j+=o),[w,_,E,j]},f=function(t){var e=t.px,r=t.py,n=t.cx,s=t.cy,f=t.rx,l=t.ry,p=t.xAxisRotation,h=void 0===p?0:p,d=t.largeArcFlag,v=void 0===d?0:d,y=t.sweepFlag,g=void 0===y?0:y,m=[];if(0===f||0===l)return[];var b=Math.sin(h*o/360),x=Math.cos(h*o/360),w=x*(e-n)/2+b*(r-s)/2,_=-b*(e-n)/2+x*(r-s)/2;if(0===w&&0===_)return[];f=Math.abs(f),l=Math.abs(l);var k=Math.pow(w,2)/Math.pow(f,2)+Math.pow(_,2)/Math.pow(l,2);k>1&&(f*=Math.sqrt(k),l*=Math.sqrt(k));var S=c(e,r,n,s,f,l,v,g,b,x,w,_),M=(0,i.default)(S,4),O=M[0],E=M[1],j=M[2],T=M[3],A=Math.max(Math.ceil(Math.abs(T)/(o/4)),1);T/=A;for(var P=0;P<A;P++)m.push(u(j,T)),j+=T;return m.map(function(t){var e=a(t[0],f,l,x,b,O,E),r=e.x,n=e.y,i=a(t[1],f,l,x,b,O,E),o=i.x,u=i.y,s=a(t[2],f,l,x,b,O,E);return{x1:r,y1:n,x2:o,y2:u,x:s.x,y:s.y}})};e.default=f},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[],i=r[0][0],o=r[0][1];r.forEach(function(){n.push([i,o,i,o,i,o,i,o])}),t.push(n)}()}function o(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[];r.forEach(function(t){n.push(t.slice(0))}),t.push(n)}()}function a(t,e,r,n,i,o,a,s,c){return{left:u(t,e,r,n,i,o,a,s,c),right:u(a,s,i,o,r,n,t,e,1-c,!0)}}function u(t,e,r,n,i,o,a,u,s,c){var f=(r-t)*s+t,l=(n-e)*s+e,p=(i-r)*s+r,h=(o-n)*s+n,d=(a-i)*s+i,v=(u-o)*s+o,y=(p-f)*s+f,g=(h-l)*s+l,m=(d-p)*s+p,b=(v-h)*s+h,x=(m-y)*s+y,w=(b-g)*s+g;return c?[x,w,y,g,f,l,t,e]:[t,e,f,l,y,g,x,w]}function s(t,e){for(var r=0,n=0;r<e;r++){var i=t[n],o=a(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],.5);t.splice(n,1),t.splice(n,0,o.left,o.right),n+=2,n>=t.length-1&&(n=0)}}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,n=(0,y.default)(t),a=(0,y.default)(e),u=n.length,c=a.length;return u>c?i(a,u-c):u<c&&o(n,c-u),n=(0,g.sort)(n,a),n.forEach(function(t,e){var n=t.length,i=a[e].length;n>i?n<r?(s(t,r-n),s(a[e],r-i)):s(a[e],n-i):n<i&&(i<r?(s(t,r-n),s(a[e],r-i)):s(t,i-n))}),n.forEach(function(t,e){n[e]=(0,g.sortCurves)(t,a[e])}),[n,a]}function f(t,e,r,n,i){return[t+(r-t)*i,e+(n-e)*i]}function l(t,e,r){return f(t[0],t[1],e[0],e[1],r).concat(f(t[2],t[3],e[2],e[3],r)).concat(f(t[4],t[5],e[4],e[5],r)).concat(f(t[6],t[7],e[6],e[7],r))}function p(t,e,r){var n=c(t,e),i=(0,d.default)(n,2),o=i[0],a=i[1];return o.map(function(t,e){var n=a[e];return t.map(function(t,e){var i=n[e],o=l(t,i,r);return 0===e?"M"+o[0]+" "+o[1]+" C"+o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]:o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]})}).join(" ")+"z"}Object.defineProperty(e,"__esModule",{value:!0});var h=r(2),d=n(h);e.default=function(t,e,r,n,i){var o=(r-n)/(i-n);return o<=0?t:o>=1?e:p(t,e,o)};var v=r(146),y=n(v),g=r(147)},function(t,e,r){"use strict";function n(t){var e=[];return t.replace(a,function(t,r,n){var a=r.toLowerCase();for(n=i(n),"m"===a&&n.length>2&&(e.push([r].concat(n.splice(0,2))),a="l",r="m"===r?"l":"L");;){if(n.length===o[a])return n.unshift(r),e.push(n);if(n.length<o[a])throw new Error("malformed path data");e.push([r].concat(n.splice(0,o[a])))}}),e}function i(t){var e=t.match(u);return e?e.map(Number):[]}Object.defineProperty(e,"__esModule",{value:!0});var o={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi,u=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i,o){return[t,e,(t+2*r)/3,(e+2*n)/3,(i+2*r)/3,(o+2*n)/3,i,o]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=(0,s.default)(t),r=e.length,n=[],o=0,u=0,c=0,f=null,l=void 0,p=void 0,h=void 0,d=void 0,v=void 0,y=void 0,g=void 0;c<r;c++){var m=e[c],b=m[0],x=e[c-1];switch(b){case"m":v=n.length,n[v]=[],f=n[v],o+=m[1],u+=m[2];break;case"M":v=n.length,n[v]=[],f=n[v],o=m[1],u=m[2];break;case"l":f.push([o,u,o,u,o,u,o+m[1],u+m[2]]),o+=m[1],u+=m[2];break;case"L":f.push([o,u,m[1],m[2],m[1],m[2],m[1],m[2]]),o=m[1],u=m[2];break;case"h":f.push([o,u,o,u,o,u,o+m[1],u]),o+=m[1];break;case"H":f.push([o,u,m[1],u,m[1],u,m[1],u]),o=m[1];break;case"v":f.push([o,u,o,u,o,u,o,u+m[1]]),u+=m[1];break;case"V":f.push([o,u,o,m[1],o,m[1],o,m[1]]),u=m[1];break;case"C":f.push([o,u,m[1],m[2],m[3],m[4],m[5],m[6]]),o=m[5],u=m[6];break;case"S":"C"===x[0]||"c"===x[0]?f.push([o,u,o+x[5]-x[3],u+x[6]-x[4],m[1],m[2],m[3],m[4]]):"S"!==x[0]&&"s"!==x[0]||f.push([o,u,o+x[3]-x[1],u+x[4]-x[2],m[1],m[2],m[3],m[4]]),o=m[3],u=m[4];break;case"c":f.push([o,u,o+m[1],u+m[2],o+m[3],u+m[4],o+m[5],u+m[6]]),o+=m[5],u+=m[6];break;case"s":"C"===x[0]||"c"===x[0]?f.push([o,u,o+x[5]-x[3],u+x[6]-x[4],o+m[1],u+m[2],o+m[3],u+m[4]]):"S"!==x[0]&&"s"!==x[0]||f.push([o,u,o+x[3]-x[1],u+x[4]-x[2],o+m[1],u+m[2],o+m[3],u+m[4]]),o+=m[3],u+=m[4];break;case"a":y=(0,a.default)({rx:m[1],ry:m[2],px:o,py:u,xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5],cx:o+m[6],cy:o+m[7]}),g=y[y.length-1],y.forEach(function(t,e){0===e?f.push([o,u,t.x1,t.y1,t.x2,t.y2,t.x,t.y]):f.push([y[e-1].x,y[e-1].y,t.x1,t.y1,t.x2,t.y2,t.x,t.y])}),o=g.x,u=g.y;break;case"A":y=(0,a.default)({rx:m[1],ry:m[2],px:o,py:u,xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5],cx:m[6],cy:m[7]}),g=y[y.length-1],y.forEach(function(t,e){0===e?f.push([o,u,t.x1,t.y1,t.x2,t.y2,t.x,t.y]):f.push([y[e-1].x,y[e-1].y,t.x1,t.y1,t.x2,t.y2,t.x,t.y])}),o=g.x,u=g.y;break;case"Q":f.push(i(o,u,m[1],m[2],m[3],m[4])),o=m[3],u=m[4];break;case"q":f.push(i(o,u,o+m[1],u+m[2],m[3]+o,m[4]+u)),o+=m[3],u+=m[4];break;case"T":"Q"===x[0]||"q"===x[0]?(h=o+x[3]-x[1],d=u+x[4]-x[2],f.push(i(o,u,h,d,m[1],m[2]))):"T"!==x[0]&&"t"!==x[0]||(f.push(i(o,u,o+o-h,u+u-d,m[1],m[2])),h=o+o-h,d=u+u-d),o=m[1],u=m[2];break;case"t":"Q"===x[0]||"q"===x[0]?(h=o+x[3]-x[1],d=u+x[4]-x[2],f.push(i(o,u,h,d,o+m[1],u+m[2]))):"T"!==x[0]&&"t"!==x[0]||(f.push(i(o,u,o+o-h,u+u-d,o+m[1],u+m[2])),h=o+o-h,d=u+u-d),o+=m[1],u+=m[2];break;case"Z":case"z":l=f[0][0],p=f[0][1],f.push([o,u,l,p,l,p,l,p]);break;default:throw new Error("unknown action")}}return n};var o=r(143),a=n(o),u=r(145),s=n(u)},function(t,e,r){"use strict";function n(t){var e=t[0][0],r=t[0][1],n=e,i=r;return t.forEach(function(t){var o=t[0],a=t[2],u=t[4],s=t[6],c=t[1],f=t[3],l=t[5],p=t[7];e=Math.min(e,o,a,u,s),r=Math.min(r,c,f,l,p),n=Math.max(n,o,a,u,s),i=Math.max(i,c,f,l,p)}),[e,r,n,i]}function i(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))+Math.sqrt(Math.pow(t[2]-e[2],2)+Math.pow(t[3]-e[3],2))}function o(t,e){var r=t[0],n=t[2],i=t[4],o=t[6],a=t[1],u=t[3],s=t[5],c=t[7],f=e[0],l=e[2],p=e[4],h=e[6],d=e[1],v=e[3],y=e[5],g=e[7];return Math.sqrt(Math.pow(f-r,2)+Math.pow(d-a,2))+Math.sqrt(Math.pow(l-n,2)+Math.pow(v-u,2))+Math.sqrt(Math.pow(p-i,2)+Math.pow(y-s,2))+Math.sqrt(Math.pow(h-o,2)+Math.pow(g-c,2))}function a(t,e){var r=s(t.length),n=[];r.forEach(function(r){var i=0,a=0;r.forEach(function(r){i+=o(t[r],e[a++])}),n.push({index:r,distance:i})}),n.sort(function(t,e){return t.distance-e.distance});var i=[];return n[0].index.forEach(function(e){i.push(t[e])}),i}function u(t,e){var r=c(t.length),o=[];r.forEach(function(r){var a=0;r.forEach(function(r){a+=i(n(t[r]),n(e[r]))}),o.push({index:r,distance:a})}),o.sort(function(t,e){return t.distance-e.distance});var a=[];return o[0].index.forEach(function(e){a.push(t[e])}),a}function s(t){for(var e=[],r=0;r<t;r++){for(var n=[],i=0;i<t;i++){var o=i+r;o>t-1&&(o-=t),n[o]=i}e.push(n)}return e}function c(t){for(var e=[],r=0;r<t;r++)e.push(r);return f(e)}function f(t){function e(t){var i=void 0,o=void 0;for(i=0;i<t.length;i++)o=t.splice(i,1)[0],n.push(o),0===t.length&&r.push(n.slice()),e(t),t.splice(i,0,o),n.pop();return r}var r=[],n=[];return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.sort=u,e.sortCurves=a},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(2),o=n(i),a=r(3),u=n(a),s=r(4),c=n(s),f=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];(0,u.default)(this,t);var n=(0,o.default)(e,3),i=n[0],a=n[1],s=n[2],c=(0,o.default)(r,3),f=c[0],l=c[1],p=c[2];s=s||0,p=p||0,this.x=i-f,this.y=a-l,this.z=s-p}return(0,c.default)(t,[{key:"unit",value:function(){var e=this.length;return new t([this.x/e,this.y/e,this.z/e])}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y+this.z*t.z}},{key:"cross",value:function(e){var r=this.x,n=this.y,i=this.z,o=e.x,a=e.y,u=e.z;return new t([n*u-i*a,i*o-r*u,r*a-o*n])}},{key:"length",get:function(){var t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}}]),t}();e.default=f},function(t,e,r){t.exports={default:r(161),__esModule:!0}},function(t,e,r){t.exports={default:r(164),__esModule:!0}},function(t,e,r){t.exports={default:r(166),__esModule:!0}},function(t,e,r){t.exports={default:r(170),__esModule:!0}},function(t,e,r){t.exports={default:r(172),__esModule:!0}},function(t,e,r){t.exports={default:r(173),__esModule:!0}},function(t,e,r){t.exports={default:r(174),__esModule:!0}},function(t,e,r){t.exports={default:r(178),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(61),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e,r){return e in t?(0,i.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e){function r(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function i(t){return 3*t}function o(t,e,o){return((r(e,o)*t+n(e,o))*t+i(e))*t}function a(t,e,o){return 3*r(e,o)*t*t+2*n(e,o)*t+i(e)}function u(t,e,r,n,i){var a,u,s=0;do{u=e+(r-e)/2,a=o(u,n,i)-t,a>0?r=u:e=u}while(Math.abs(a)>f&&++s<l);return u}function s(t,e,r,n){for(var i=0;i<c;++i){var u=a(e,r,n);if(0===u)return e;e-=(o(e,r,n)-t)/u}return e}var c=4,f=1e-7,l=10,p=11,h=1/(p-1),d="function"==typeof Float32Array;t.exports=function(t,e,r,n){function i(e){for(var n=0,i=1,o=p-1;i!==o&&c[i]<=e;++i)n+=h;--i;var f=(e-c[i])/(c[i+1]-c[i]),l=n+f*h,d=a(l,t,r);return d>=.001?s(e,l,t,r):0===d?l:u(e,n,n+h,t,r)}if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");var c=d?new Float32Array(p):new Array(p);if(t!==e||r!==n)for(var f=0;f<p;++f)c[f]=o(f*h,t,r);return function(a){return t===e&&r===n?a:0===a?0:1===a?1:o(i(a),e,n)}}},function(t,e,r){r(28),r(198),t.exports=r(0).Array.from},function(t,e,r){r(35),r(28),t.exports=r(196)},function(t,e,r){r(35),r(28),t.exports=r(197)},function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,r){r(54),r(28),r(35),r(200),r(214),r(213),r(212),t.exports=r(0).Map},function(t,e,r){r(201),t.exports=r(0).Number.isNaN},function(t,e,r){r(202),t.exports=r(0).Object.assign},function(t,e,r){r(203);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){r(204);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){r(215),t.exports=r(0).Object.entries},function(t,e,r){r(205);var n=r(0).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},function(t,e,r){r(216),t.exports=r(0).Object.getOwnPropertyDescriptors},function(t,e,r){r(206),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){r(207),t.exports=r(0).Object.keys},function(t,e,r){r(208),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){r(217),t.exports=r(0).Object.values},function(t,e,r){r(54),r(28),r(35),r(209),r(218),r(219),t.exports=r(0).Promise},function(t,e,r){r(54),r(28),r(35),r(210),r(222),r(221),r(220),t.exports=r(0).Set},function(t,e,r){r(211),r(54),r(223),r(224),t.exports=r(0).Symbol},function(t,e,r){r(28),r(35),t.exports=r(79).f("iterator")},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(40);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},function(t,e,r){var n=r(20),i=r(52),o=r(195);t.exports=function(t){return function(e,r,a){var u,s=n(e),c=i(s.length),f=o(a,c);if(t&&r!=r){for(;c>f;)if((u=s[f++])!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===r)return t||f||0;return!t&&-1}}},function(t,e,r){var n=r(19),i=r(66),o=r(34),a=r(52),u=r(184);t.exports=function(t,e){var r=1==t,s=2==t,c=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,d){for(var v,y,g=o(e),m=i(g),b=n(u,d,3),x=a(m.length),w=0,_=r?h(e,x):s?h(e,0):void 0;x>w;w++)if((p||w in m)&&(v=m[w],y=b(v,w,g),t))if(r)_[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(f)return!1;return l?-1:c||f?f:_}}},function(t,e,r){var n=r(11),i=r(100),o=r(6)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(183);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){var n=r(33),i=r(51),o=r(41);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){"use strict";var n=r(49),i=r(42),o=r(43),a={};r(23)(a,r(6)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(5),i=r(114).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(39)(a);t.exports=function(){var t,e,r,c=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(c)};else if(!o||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve();r=function(){f.then(c)}}else r=function(){i.call(n,c)};else{var l=!0,p=document.createTextNode("");new o(c).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){"use strict";var n=r(33),i=r(51),o=r(41),a=r(34),u=r(66),s=Object.assign;t.exports=!s||r(26)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=a(t),s=arguments.length,c=1,f=i.f,l=o.f;s>c;)for(var p,h=u(arguments[c++]),d=f?n(h).concat(f(h)):n(h),v=d.length,y=0;v>y;)l.call(h,p=d[y++])&&(r[p]=h[p]);return r}:s},function(t,e,r){var n=r(12),i=r(10),o=r(33);t.exports=r(15)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),u=a.length,s=0;u>s;)n.f(t,r=a[s++],e[r]);return t}},function(t,e,r){var n=r(20),i=r(70).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(n(t))}},function(t,e,r){var n=r(70),i=r(51),o=r(10),a=r(5).Reflect;t.exports=a&&a.ownKeys||function(t){var e=n.f(o(t)),r=i.f;return r?e.concat(r(t)):e}},function(t,e,r){var n=r(11),i=r(10),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(19)(Function.call,r(50).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){var n=r(75),i=r(63);t.exports=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),c=u.length;return s<0||s>=c?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,r){var n=r(75),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(10),i=r(80);t.exports=r(0).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){var n=r(47),i=r(6)("iterator"),o=r(32);t.exports=r(0).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(19),i=r(1),o=r(34),a=r(101),u=r(99),s=r(52),c=r(96),f=r(80);i(i.S+i.F*!r(102)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,l,p=o(t),h="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=f(p);if(y&&(v=n(v,d>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(e=s(p.length),r=new h(e);e>g;g++)c(r,g,y?v(p[g],g):p[g]);else for(l=m.call(p),r=new h;!(i=l.next()).done;g++)c(r,g,y?a(l,v,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(179),i=r(103),o=r(32),a=r(20);t.exports=r(67)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){"use strict";var n=r(93),i=r(77);t.exports=r(95)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){var n=r(1);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(1);n(n.S+n.F,"Object",{assign:r(189)})},function(t,e,r){var n=r(1);n(n.S,"Object",{create:r(49)})},function(t,e,r){var n=r(1);n(n.S+n.F*!r(15),"Object",{defineProperty:r(12).f})},function(t,e,r){var n=r(20),i=r(50).f;r(71)("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},function(t,e,r){var n=r(34),i=r(104);r(71)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(34),i=r(33);r(71)("keys",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(1);n(n.S,"Object",{setPrototypeOf:r(193).set})},function(t,e,r){"use strict";var n,i,o,a,u=r(48),s=r(5),c=r(19),f=r(47),l=r(1),p=r(11),h=r(38),d=r(62),v=r(40),y=r(113),g=r(114).set,m=r(188)(),b=r(69),x=r(107),w=r(108),_=s.TypeError,k=s.process,S=s.Promise,M="process"==f(k),O=function(){},E=i=b.f,j=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(6)("species")]=function(t){t(O,O)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a=i?e.ok:e.fail,u=e.resolve,s=e.reject,c=e.domain;try{a?(i||(2==t._h&&C(t),t._h=1),!0===a?r=n:(c&&c.enter(),r=a(n),c&&c.exit()),r===e.promise?s(_("Promise-chain cycle")):(o=T(r))?o.call(r,u,s):u(r)):s(n)}catch(t){s(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(s,function(){var e,r,n,i=t._v,o=R(t);if(o&&(e=x(function(){M?k.emit("unhandledRejection",i,t):(r=s.onunhandledrejection)?r({promise:t,reason:i}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=M||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},C=function(t){g.call(s,function(){var e;M?k.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(e=T(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,c(I,n,1),c(z,n,1))}catch(t){z.call(n,t)}}):(r._v=t,r._s=1,A(r,!1))}catch(t){z.call({_w:r,_d:!1},t)}}};j||(S=function(t){d(this,S,"Promise","_h"),h(t),n.call(this);try{t(c(I,this,1),c(z,this,1))}catch(t){z.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(72)(S.prototype,{then:function(t,e){var r=E(y(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=M?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&A(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=c(I,t,1),this.reject=c(z,t,1)},b.f=E=function(t){return t===S||t===a?new o(t):i(t)}),l(l.G+l.W+l.F*!j,{Promise:S}),r(43)(S,"Promise"),r(112)("Promise"),a=r(0).Promise,l(l.S+l.F*!j,"Promise",{reject:function(t){var e=E(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!j),"Promise",{resolve:function(t){return w(u&&this===a?S:this,t)}}),l(l.S+l.F*!(j&&r(102)(function(t){S.all(t).catch(O)})),"Promise",{all:function(t){var e=this,r=E(e),n=r.resolve,i=r.reject,o=x(function(){var r=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=E(e),n=r.reject,i=x(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(t,e,r){"use strict";var n=r(93),i=r(77);t.exports=r(95)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n=r(5),i=r(27),o=r(15),a=r(1),u=r(109),s=r(68).KEY,c=r(26),f=r(74),l=r(43),p=r(53),h=r(6),d=r(79),v=r(78),y=r(185),g=r(100),m=r(10),b=r(11),x=r(20),w=r(76),_=r(42),k=r(49),S=r(191),M=r(50),O=r(12),E=r(33),j=M.f,T=O.f,A=S.f,P=n.Symbol,R=n.JSON,C=R&&R.stringify,z=h("_hidden"),I=h("toPrimitive"),L={}.propertyIsEnumerable,D=f("symbol-registry"),N=f("symbols"),B=f("op-symbols"),F=Object.prototype,q="function"==typeof P,U=n.QObject,V=!U||!U.prototype||!U.prototype.findChild,G=o&&c(function(){return 7!=k(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=j(F,e);n&&delete F[e],T(t,e,r),n&&t!==F&&T(F,e,n)}:T,H=function(t){var e=N[t]=k(P.prototype);return e._k=t,e},W=q&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},J=function(t,e,r){return t===F&&J(B,e,r),m(t),e=w(e,!0),m(r),i(N,e)?(r.enumerable?(i(t,z)&&t[z][e]&&(t[z][e]=!1),r=k(r,{enumerable:_(0,!1)})):(i(t,z)||T(t,z,_(1,{})),t[z][e]=!0),G(t,e,r)):T(t,e,r)},X=function(t,e){m(t);for(var r,n=y(e=x(e)),i=0,o=n.length;o>i;)J(t,r=n[i++],e[r]);return t},Y=function(t,e){return void 0===e?k(t):X(k(t),e)},$=function(t){var e=L.call(this,t=w(t,!0));return!(this===F&&i(N,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(N,t)||i(this,z)&&this[z][t])||e)},K=function(t,e){if(t=x(t),e=w(e,!0),t!==F||!i(N,e)||i(B,e)){var r=j(t,e);return!r||!i(N,e)||i(t,z)&&t[z][e]||(r.enumerable=!0),r}},Q=function(t){for(var e,r=A(x(t)),n=[],o=0;r.length>o;)i(N,e=r[o++])||e==z||e==s||n.push(e);return n},Z=function(t){for(var e,r=t===F,n=A(r?B:x(t)),o=[],a=0;n.length>a;)!i(N,e=n[a++])||r&&!i(F,e)||o.push(N[e]);return o};q||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===F&&e.call(B,r),i(this,z)&&i(this[z],t)&&(this[z][t]=!1),G(this,t,_(1,r))};return o&&V&&G(F,t,{configurable:!0,set:e}),H(t)},u(P.prototype,"toString",function(){return this._k}),M.f=K,O.f=J,r(70).f=S.f=Q,r(41).f=$,r(51).f=Z,o&&!r(48)&&u(F,"propertyIsEnumerable",$,!0),d.f=function(t){return H(h(t))}),a(a.G+a.W+a.F*!q,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)h(tt[et++]);for(var rt=E(h.store),nt=0;rt.length>nt;)v(rt[nt++]);a(a.S+a.F*!q,"Symbol",{for:function(t){return i(D,t+="")?D[t]:D[t]=P(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in D)if(D[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!q,"Object",{create:Y,defineProperty:J,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),R&&a(a.S+a.F*(!q||c(function(){var t=P();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=e=n[1],(b(e)||void 0!==t)&&!W(t))return g(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!W(e))return e}),n[1]=e,C.apply(R,n)}}),P.prototype[I]||r(23)(P.prototype,I,P.prototype.valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){r(110)("Map")},function(t,e,r){r(111)("Map")},function(t,e,r){var n=r(1);n(n.P+n.R,"Map",{toJSON:r(94)("Map")})},function(t,e,r){var n=r(1),i=r(106)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){var n=r(1),i=r(192),o=r(20),a=r(50),u=r(96);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,r,n=o(t),s=a.f,c=i(n),f={},l=0;c.length>l;)void 0!==(r=s(n,e=c[l++]))&&u(f,e,r);return f}})},function(t,e,r){var n=r(1),i=r(106)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){"use strict";var n=r(1),i=r(0),o=r(5),a=r(113),u=r(108);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(1),i=r(69),o=r(107);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){r(110)("Set")},function(t,e,r){r(111)("Set")},function(t,e,r){var n=r(1);n(n.P+n.R,"Set",{toJSON:r(94)("Set")})},function(t,e,r){r(78)("asyncIterator")},function(t,e,r){r(78)("observable")},function(t,e,r){function n(t){return null===t||void 0===t}function i(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function o(t,e,r){var o,f;if(n(t)||n(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=a.call(t),e=a.call(e),c(t,e,r));if(i(t)){if(!i(e))return!1;if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}try{var l=u(t),p=u(e)}catch(t){return!1}if(l.length!=p.length)return!1;for(l.sort(),p.sort(),o=l.length-1;o>=0;o--)if(l[o]!=p[o])return!1;for(o=l.length-1;o>=0;o--)if(f=l[o],!c(t[f],e[f],r))return!1;return typeof t==typeof e}var a=Array.prototype.slice,u=r(227),s=r(226),c=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:o(t,e,r))}},function(t,e){function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function n(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();e=t.exports=i?r:n,e.supported=r,e.unsupported=n},function(t,e){function r(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"==typeof Object.keys?Object.keys:r,e.shim=r},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(230),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),u=new h(n||[]);return a._invoke=c(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(t){function e(r,i,o,a){var u=n(t[r],t,i);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&m.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(c).then(function(t){s.value=t,o(s)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function c(t,e,r){var i=M;return function(o,a){if(i===E)throw new Error("Generator is already running");if(i===j){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=f(u,r);if(s){if(s===T)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===M)throw i=j,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=E;var c=n(t,e,r);if("normal"===c.type){if(i=r.done?j:O,c.arg===T)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=j,r.method="throw",r.arg=c.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,T;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,T):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(m.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=y,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},x=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag",k="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(k&&(t.exports=S));S=e.regeneratorRuntime=k?t.exports:{},S.wrap=r;var M="suspendedStart",O="suspendedYield",E="executing",j="completed",T={},A={};A[x]=function(){return this};var P=Object.getPrototypeOf,R=P&&P(P(d([])));R&&R!==g&&m.call(R,x)&&(A=R);var C=a.prototype=i.prototype=Object.create(A);o.prototype=C.constructor=a,a.constructor=o,a[_]=o.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(C),t},S.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[w]=function(){return this},S.AsyncIterator=s,S.async=function(t,e,n,i){var o=new s(r(t,e,n,i));return S.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},u(C),C[_]="Generator",C[x]=function(){return this},C.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),u=m.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;p(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),T}}}(function(){return this}()||Function("return this")())},function(t,e,r){var n;!function(){"use strict";function i(t){function e(t){var e=Object.getPrototypeOf(t);return e?Object.create(e):{}}function r(t,e,r){Object.defineProperty(t,e,{enumerable:!1,configurable:!1,writable:!1,value:r})}function n(t,e){r(t,e,function(){throw new c("The "+e+" method cannot be invoked on an Immutable data structure.")})}function o(t){r(t,H,!0)}function a(t){return"object"!=typeof t||(null===t||Boolean(Object.getOwnPropertyDescriptor(t,H)))}function u(t,e){return t===e||t!==t&&e!==e}function s(t){return!(null===t||"object"!=typeof t||Array.isArray(t)||t instanceof Date)}function c(t){this.name="MyError",this.message=t,this.stack=(new Error).stack}function f(t,e){o(t);for(var r in e)e.hasOwnProperty(r)&&n(t,e[r]);return Object.freeze(t),t}function l(t,e){var n=t[e];r(t,e,function(){return B(n.apply(t,arguments))})}function p(t,e,r){var n=r&&r.deep;if(t in this&&(n&&this[t]!==e&&s(e)&&s(this[t])&&(e=B.merge(this[t],e,{deep:!0,mode:"replace"})),u(this[t],e)))return this;var i=b.call(this);return i[t]=B(e),d(i)}function h(t,e,r){var n=t[0];if(1===t.length)return p.call(this,n,e,r);var i,o=t.slice(1),a=this[n];if("object"==typeof a&&null!==a)i=B.setIn(a,o,e);else{var u=o[0];i=""!==u&&isFinite(u)?h.call(K,o,e):M.call(Q,o,e)}if(n in this&&a===i)return this;var s=b.call(this);return s[n]=i,d(s)}function d(t){for(var e in Y)if(Y.hasOwnProperty(e)){var n=Y[e];l(t,n)}G.use_static||(r(t,"flatMap",g),r(t,"asObject",x),r(t,"asMutable",b),r(t,"set",p),r(t,"setIn",h),r(t,"update",E),r(t,"updateIn",T),r(t,"getIn",A));for(var i=0,o=t.length;i<o;i++)t[i]=B(t[i]);return f(t,X)}function v(t){return G.use_static||r(t,"asMutable",y),f(t,$)}function y(){return new Date(this.getTime())}function g(t){if(0===arguments.length)return this;var e,r=[],n=this.length;for(e=0;e<n;e++){var i=t(this[e],e,this);Array.isArray(i)?r.push.apply(r,i):r.push(i)}return d(r)}function m(t){if(void 0===t&&0===arguments.length)return this;if("function"!=typeof t){var r=Array.isArray(t)?t.slice():Array.prototype.slice.call(arguments);r.forEach(function(t,e,r){"number"==typeof t&&(r[e]=t.toString())}),t=function(t,e){return-1!==r.indexOf(e)}}var n=e(this);for(var i in this)this.hasOwnProperty(i)&&!1===t(this[i],i)&&(n[i]=this[i]);return C(n)}function b(t){var e,r,n=[];if(t&&t.deep)for(e=0,r=this.length;e<r;e++)n.push(w(this[e]));else for(e=0,r=this.length;e<r;e++)n.push(this[e]);return n}function x(t){"function"!=typeof t&&(t=function(t){return t});var e,r={},n=this.length;for(e=0;e<n;e++){var i=t(this[e],e,this),o=i[0],a=i[1];r[o]=a}return C(r)}function w(t){return!t||"object"!=typeof t||!Object.getOwnPropertyDescriptor(t,H)||t instanceof Date?t:B.asMutable(t,{deep:!0})}function _(t,e){for(var r in t)Object.getOwnPropertyDescriptor(t,r)&&(e[r]=t[r]);return e}function k(t,r){function n(t,n,o){var a=B(n[o]),f=l&&l(t[o],a,r),p=t[o];if(void 0!==i||void 0!==f||!t.hasOwnProperty(o)||!u(a,p)){var h;h=f||(c&&s(p)&&s(a)?B.merge(p,a,r):a),u(p,h)&&t.hasOwnProperty(o)||(void 0===i&&(i=_(t,e(t))),i[o]=h)}}if(0===arguments.length)return this;if(null===t||"object"!=typeof t)throw new TypeError("Immutable#merge can only be invoked with objects or arrays, not "+JSON.stringify(t));var i,o,a=Array.isArray(t),c=r&&r.deep,f=r&&r.mode||"merge",l=r&&r.merger;if(a)for(var p=0,h=t.length;p<h;p++){var d=t[p];for(o in d)d.hasOwnProperty(o)&&n(void 0!==i?i:this,d,o)}else{for(o in t)Object.getOwnPropertyDescriptor(t,o)&&n(this,t,o);"replace"===f&&function(t,r){for(var n in t)r.hasOwnProperty(n)||(void 0===i&&(i=_(t,e(t))),delete i[n])}(this,t)}return void 0===i?this:C(i)}function S(t,e){var r=e&&e.deep;if(0===arguments.length)return this;if(null===t||"object"!=typeof t)throw new TypeError("Immutable#replace can only be invoked with objects or arrays, not "+JSON.stringify(t));return B.merge(this,t,{deep:r,mode:"replace"})}function M(t,r,n){if(!Array.isArray(t)||0===t.length)throw new TypeError('The first argument to Immutable#setIn must be an array containing at least one "key" string.');var i=t[0];if(1===t.length)return O.call(this,i,r,n);var o,a=t.slice(1),u=this[i];if(o=this.hasOwnProperty(i)&&"object"==typeof u&&null!==u?B.setIn(u,a,r):M.call(Q,a,r),this.hasOwnProperty(i)&&u===o)return this;var s=_(this,e(this));return s[i]=o,C(s)}function O(t,r,n){var i=n&&n.deep;if(this.hasOwnProperty(t)&&(i&&this[t]!==r&&s(r)&&s(this[t])&&(r=B.merge(this[t],r,{deep:!0,mode:"replace"})),u(this[t],r)))return this;var o=_(this,e(this));return o[t]=B(r),C(o)}function E(t,e){var r=Array.prototype.slice.call(arguments,2),n=this[t];return B.set(this,t,e.apply(n,[n].concat(r)))}function j(t,e){for(var r=0,n=e.length;null!=t&&r<n;r++)t=t[e[r]];return r&&r==n?t:void 0}function T(t,e){var r=Array.prototype.slice.call(arguments,2),n=j(this,t);return B.setIn(this,t,e.apply(n,[n].concat(r)))}function A(t,e){var r=j(this,t);return void 0===r?e:r}function P(t){var r,n=e(this);if(t&&t.deep)for(r in this)this.hasOwnProperty(r)&&(n[r]=w(this[r]));else for(r in this)this.hasOwnProperty(r)&&(n[r]=this[r]);return n}function R(){return{}}function C(t){return G.use_static||(r(t,"merge",k),r(t,"replace",S),r(t,"without",m),r(t,"asMutable",P),r(t,"set",O),r(t,"setIn",M),r(t,"update",E),r(t,"updateIn",T),r(t,"getIn",A)),f(t,W)}function z(t){return"object"==typeof t&&null!==t&&(t.$$typeof===V||t.$$typeof===U)}function I(t){return"undefined"!=typeof File&&t instanceof File}function L(t){return"undefined"!=typeof Blob&&t instanceof Blob}function D(t){return"object"==typeof t&&"function"==typeof t.then}function N(t){return t instanceof Error}function B(t,e,r){if(a(t)||z(t)||I(t)||L(t)||N(t))return t;if(D(t))return t.then(B);if(Array.isArray(t))return d(t.slice());if(t instanceof Date)return v(new Date(t.getTime()));var n=e&&e.prototype,i=n&&n!==Object.prototype?function(){return Object.create(n)}:R,o=i();if(null==r&&(r=64),r<=0)throw new c("Attempt to construct Immutable from a deeply nested object was detected. Have you tried to wrap an object with circular references (e.g. React element)? See https://github.com/rtfeldman/seamless-immutable/wiki/Deeply-nested-object-was-detected for details.");r-=1;for(var u in t)Object.getOwnPropertyDescriptor(t,u)&&(o[u]=B(t[u],void 0,r));return C(o)}function F(t){function e(){var e=[].slice.call(arguments),r=e.shift();return t.apply(r,e)}return e}function q(t,e){function r(){var r=[].slice.call(arguments),n=r.shift();return Array.isArray(n)?e.apply(n,r):t.apply(n,r)}return r}var U="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element"),V=60103,G={use_static:!1};(function(t){return"object"==typeof t&&!Array.isArray(t)&&null!==t})(t)&&void 0!==t.use_static&&(G.use_static=Boolean(t.use_static));var H="__immutable_invariants_hold",W=["setPrototypeOf"],J=["keys"],X=W.concat(["push","pop","sort","splice","shift","unshift","reverse"]),Y=J.concat(["map","filter","slice","concat","reduce","reduceRight"]),$=W.concat(["setDate","setFullYear","setHours","setMilliseconds","setMinutes","setMonth","setSeconds","setTime","setUTCDate","setUTCFullYear","setUTCHours","setUTCMilliseconds","setUTCMinutes","setUTCMonth","setUTCSeconds","setYear"]);c.prototype=new Error,c.prototype.constructor=Error;var K=B([]),Q=B({});return B.from=B,B.isImmutable=a,B.ImmutableError=c,B.merge=F(k),B.replace=F(S),B.without=F(m),B.asMutable=function(t,e,r){function n(){var n=[].slice.call(arguments),i=n.shift();return Array.isArray(i)?e.apply(i,n):i instanceof Date?r.apply(i,n):t.apply(i,n)}return n}(P,b,y),B.set=q(O,p),B.setIn=q(M,h),B.update=F(E),B.updateIn=F(T),B.getIn=F(A),B.flatMap=F(g),B.asObject=F(x),G.use_static||(B.static=i({use_static:!0})),Object.freeze(B),B}var o=i();void 0!==(n=function(){return o}.call(e,r,e,t))&&(t.exports=n)}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(115);e.default={linear:function(t){return t},ease:(0,n.getBezierEasing)(.25,.1,.25,1),"ease-in":(0,n.getBezierEasing)(.42,0,1,1),"ease-out":(0,n.getBezierEasing)(0,0,.58,1),"ease-in-out":(0,n.getBezierEasing)(.42,0,.58,1),"step-start":(0,n.getStepsEasing)(1,"start"),"step-end":(0,n.getStepsEasing)(1,"end")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={default:function(t,e,r,n,i){return"number"==typeof t&&"number"==typeof e?t+(r-n)/(i-n)*(e-t):r-n>i-r?e:t}}},function(t,e,r){"use strict";(function(e){function n(t){return t&&t.__esModule?t:{default:t}}function i(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==e&&e.hrtime){var t=e.hrtime(),r=(0,m.default)(t,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}var o=r(9),a=n(o),u=r(30),s=n(u),c=r(16),f=n(c),l=r(3),p=n(l),h=r(4),d=n(h),v=r(8),y=n(v),g=r(2),m=n(g),b={originTime:0,playbackRate:1},x=(0,y.default)("timeMark"),w=(0,y.default)("playbackRate"),_=(0,y.default)("timers"),k=(0,y.default)("originTime"),S=(0,y.default)("timerID"),M=(0,y.default)("setTimer"),O=(0,y.default)("parent"),E=function(){function t(e,r){(0,p.default)(this,t),e instanceof t&&(r=e,e={}),e=(0,f.default)({},b,e),r&&(this[O]=r),this[x]=[{globalTime:this.globalTime,localTime:-e.originTime,entropy:-e.originTime,playbackRate:e.playbackRate}],this[O]&&(this[x][0].globalEntropy=this[O].entropy),this[k]=e.originTime,this[w]=e.playbackRate,this[_]=new s.default,this[S]=0}return(0,d.default)(t,[{key:"fork",value:function(e){return new t(e,this)}},{key:"seekGlobalTime",value:function(t){var e=this.seekTimeMark(t),r=this[x][e],n=r.entropy,i=r.playbackRate;return r.globalTime+(t-n)/Math.abs(i)}},{key:"seekLocalTime",value:function(t){var e=this.seekTimeMark(t),r=this[x][e],n=r.localTime,i=r.entropy;return r.playbackRate>0?n+(t-i):n-(t-i)}},{key:"seekTimeMark",value:function(t){var e=this[x],r=0,n=e.length-1;if(t<=e[r].entropy)return r;if(t>=e[n].entropy)return n;for(var i=Math.floor((r+n)/2);i>r&&i<n;){if(t===e[i].entropy)return i;t<e[i].entropy?n=i:t>e[i].entropy&&(r=i),i=Math.floor((r+n)/2)}return r}},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=this[_].get(t);e&&null!=e.timerID&&(this[O]?this[O].clearTimeout(e.timerID):clearTimeout(e.timerID)),this[_].delete(t)})},{key:"clearInterval",value:function(t){return this.clearTimeout(t)}},{key:"setTimeout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{time:0};return this[M](t,e,"timeout")}},{key:"setInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{time:0};return this[M](t,e,"interval")}},{key:M,value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"timeout";"number"==typeof e&&(e={time:e});var i=this.currentTime,o=this.entropy,a=++this[S],u=null,s=void 0;if(s=null==e.time?e.entropy/Math.abs(this.playbackRate):e.time/this.playbackRate,isFinite(s)){var c=this[O],f=c?c.setTimeout.bind(c):setTimeout,l=c?c.setInterval.bind(c):setInterval;s=Math.ceil(s),this[O]&&(s={entropy:s}),"timeout"===n?u=f(function(){r[_].delete(a),t()},s):"interval"===n&&(u=l(function(){var e=r[_].get(a);e.active=!0,t(),e.active=!1},s))}return this[_].set(a,{timerID:u,handler:t,time:e,currentTime:i,entropy:o,type:n}),a}},{key:"currentTime",get:function(){var t=this[x][this[x].length-1],e=t.localTime,r=t.globalTime;return e+(this.globalTime-r)*this.playbackRate},set:function(t){var e={globalTime:this.globalTime,localTime:t,entropy:this.entropy,playbackRate:this.playbackRate};this[O]&&(e.globalEntropy=this[O].entropy),this[x].push(e)}},{key:"entropy",get:function(){var t=this[x][this[x].length-1],e=t.globalTime,r=t.entropy,n=t.globalEntropy;return this[O]?r+Math.abs((this[O].entropy-n)*this.playbackRate):r+Math.abs((this.globalTime-e)*this.playbackRate)},set:function(t){var e=this.seekTimeMark(t);this[x].length=e+1,this[x].push({globalTime:this.globalTime,localTime:this.currentTime,entropy:t,playbackRate:this.playbackRate})}},{key:"globalTime",get:function(){return this[O]?this[O].currentTime:i()}},{key:"playbackRate",get:function(){return this[w]},set:function(t){var e=this;if(t!==this.playbackRate){var r=this.currentTime;if(this.currentTime=r,this[w]=t,this[x][this[x].length-1].playbackRate=t,this[_].size){[].concat((0,a.default)(this[_])).forEach(function(t){var n=(0,m.default)(t,2),i=n[0],o=n[1];e.clearTimeout(i);var a=e.entropy,u=o.time,s=o.handler,c=o.type,f=o.active,l=null,p=void 0;if(null==u.time?(p=u.entropy-(a-o.entropy),p/=Math.abs(e.playbackRate)):(p=u.time-(r-o.currentTime),p/=e.playbackRate),isFinite(p)){var h=e[O],d=h?h.setTimeout.bind(h):setTimeout,v=h?h.setInterval.bind(h):setInterval;p=Math.ceil(p),e[O]&&(p={entropy:p}),"timeout"===c?l=d(function(){e[_].delete(i),s()},p):"interval"===c&&(l=d(function(){f||s(),p=null==u.time?u.entropy/Math.abs(e.playbackRate):u.time/e.playbackRate,e[_].has(i)&&(l=v(function(){s()},p),e[_].get(i).timerID=l)},p))}e[_].set(i,{timerID:l,handler:s,time:u,currentTime:r,entropy:a,type:c})})}}}}]),t}();t.exports=E}).call(e,r(55))},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,r){(function(t,n){function i(t,r){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&e._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),s(n,t,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function a(t,e){return t}function u(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function s(t,r,n){if(t.customInspect&&r&&O(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=s(t,i,n)),i}var o=c(t,r);if(o)return o;var a=Object.keys(r),v=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),M(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(r);if(0===a.length){if(O(r)){var y=r.name?": "+r.name:"";return t.stylize("[Function"+y+"]","special")}if(_(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(M(r))return f(r)}var g="",m=!1,x=["{","}"];if(d(r)&&(m=!0,x=["[","]"]),O(r)){g=" [Function"+(r.name?": "+r.name:"")+"]"}if(_(r)&&(g=" "+RegExp.prototype.toString.call(r)),S(r)&&(g=" "+Date.prototype.toUTCString.call(r)),M(r)&&(g=" "+f(r)),0===a.length&&(!m||0==r.length))return x[0]+g+x[1];if(n<0)return _(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var w;return w=m?l(t,r,n,v,a):a.map(function(e){return p(t,r,n,v,e,m)}),t.seen.pop(),h(w,g,x)}function c(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):v(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)P(e,String(a))?o.push(p(t,e,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,r,n,i,!0))}),o}function p(t,e,r,n,i,o){var a,u,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),P(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(c.value)<0?(u=y(r)?s(t,c.value,null):s(t,c.value,r-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return"   "+t}).join("\n"))):u=t.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return u;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function h(t,e,r){var n=0;return t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return null==t}function m(t){return"number"==typeof t}function b(t){return"string"==typeof t}function x(t){return"symbol"==typeof t}function w(t){return void 0===t}function _(t){return k(t)&&"[object RegExp]"===j(t)}function k(t){return"object"==typeof t&&null!==t}function S(t){return k(t)&&"[object Date]"===j(t)}function M(t){return k(t)&&("[object Error]"===j(t)||t instanceof Error)}function O(t){return"function"==typeof t}function E(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function j(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function A(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var R=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(t).replace(R,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r<o;u=n[++r])y(u)||!k(u)?a+=" "+u:a+=" "+i(u);return a},e.deprecate=function(r,i){function o(){if(!a){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),a=!0}return r.apply(this,arguments)}if(w(t.process))return function(){return e.deprecate(r,i).apply(this,arguments)};if(!0===n.noDeprecation)return r;var a=!1;return o};var C,z={};e.debuglog=function(t){if(w(C)&&(C=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!z[t])if(new RegExp("\\b"+t+"\\b","i").test(C)){var r=n.pid;z[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else z[t]=function(){};return z[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=v,e.isNull=y,e.isNullOrUndefined=g,e.isNumber=m,e.isString=b,e.isSymbol=x,e.isUndefined=w,e.isRegExp=_,e.isObject=k,e.isDate=S,e.isError=M,e.isFunction=O,e.isPrimitive=E,e.isBuffer=r(236);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",A(),e.format.apply(e,arguments))},e.inherits=r(235),e._extend=function(t,e){if(!e||!k(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(e,r(116),r(55))}])});