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=149)}([function(t,e){var r=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(151),o=n(i),a=r(92),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){var n=r(9),i=r(0),o=r(20),a=r(23),u=function(t,e,r){var s,f,l,c=t&u.F,h=t&u.G,d=t&u.S,p=t&u.P,v=t&u.B,y=t&u.W,g=h?i:i[e]||(i[e]={}),m=g.prototype,b=h?n:d?n[e]:(n[e]||{}).prototype;h&&(r=e);for(s in r)(f=!c&&b&&void 0!==b[s])&&s in g||(l=f?b[s]:r[s],g[s]=h&&"function"!=typeof b[s]?r[s]:v&&f?o(l,n):y&&b[s]==l?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}(l):p&&"function"==typeof l?o(Function.call,l):l,p&&((g.virtual||(g.virtual={}))[s]=l,t&u.R&&m&&!m[s]&&a(m,s,l)))};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){t.exports={default:r(179),__esModule:!0}},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(49),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,r){"use strict";e.__esModule=!0;var n=r(91),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(75)("wks"),i=r(55),o=r(9).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){t.exports={default:r(167),__esModule:!0}},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){"use strict";function n(t){return"[object Array]"===M.call(t)}function i(t){return"[object ArrayBuffer]"===M.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 f(t){return void 0===t}function l(t){return null!==t&&"object"==typeof t}function c(t){return"[object Date]"===M.call(t)}function h(t){return"[object File]"===M.call(t)}function d(t){return"[object Blob]"===M.call(t)}function p(t){return"[object Function]"===M.call(t)}function v(t){return l(t)&&p(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 _(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=_(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)b(arguments[r],t);return e}function x(t,e,r){return b(e,function(e,n){t[n]=r&&"function"==typeof e?w(e,r):e}),t}var w=r(90),k=r(226),M=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:i,isBuffer:k,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:l,isUndefined:f,isDate:c,isFile:h,isBlob:d,isFunction:p,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:m,forEach:b,merge:_,extend:x,trim:g}},function(t,e,r){t.exports={default:r(173),__esModule:!0}},function(t,e,r){t.exports=!r(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(18),i=r(101),o=r(77),a=Object.defineProperty;e.f=r(12)?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";Object.defineProperty(e,"__esModule",{value:!0}),e.sortOrderedSprites=e.resolveValue=e.parseValue=e.deprecate=e.setDeprecation=e.attr=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.praseString=e.oneOrTwoValues=e.parseColor=e.Color=e.notice=void 0;var n=r(129),i=r(246);e.notice=n.notice,e.Color=n.Color,e.parseColor=n.parseColor,e.oneOrTwoValues=n.oneOrTwoValues,e.praseString=n.praseString,e.parseStringInt=n.parseStringInt,e.parseStringFloat=n.parseStringFloat,e.parseColorString=n.parseColorString,e.fourValuesShortCut=n.fourValuesShortCut,e.parseStringTransform=n.parseStringTransform,e.boxIntersect=n.boxIntersect,e.boxToRect=n.boxToRect,e.boxEqual=n.boxEqual,e.boxUnion=n.boxUnion,e.rectToBox=n.rectToBox,e.rectVertices=n.rectVertices,e.appendUnit=n.appendUnit,e.attr=i.attr,e.setDeprecation=i.setDeprecation,e.deprecate=i.deprecate,e.parseValue=i.parseValue,e.resolveValue=i.resolveValue,e.sortOrderedSprites=n.sortOrderedSprites},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(11),o=n(i),a=r(26),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){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(154),o=n(i),a=r(152),u=n(a),s=r(32),f=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,f.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(32),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(19);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(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){t.exports={default:r(171),__esModule:!0}},function(t,e,r){t.exports={default:r(177),__esModule:!0}},function(t,e,r){var n=r(13),i=r(42);t.exports=r(12)?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){var n=r(66),i=r(63);t.exports=function(t){return n(i(t))}},function(t,e,r){t.exports={default:r(165),__esModule:!0}},function(t,e,r){t.exports={default:r(172),__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(195)(!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}}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object.defineProperty(e.prototype,"nodeType",{get:function(){return t}}),b.set(t,e),r&&!e.prototype.ownerDocument&&(Object.defineProperty(e.prototype,"ownerDocument",_),e.prototype.namespaceURI="http://spritejs.org/"+t,(0,s.default)(e.prototype,x))}function o(t){var e=b.get(t);if(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new(Function.prototype.bind.apply(e,[null].concat(n)))}return null}function a(t){return b.get(t)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(8),s=n(u),f=r(6),l=n(f),c=r(1),h=n(c),d=r(21),p=n(d),v=r(25),y=n(v);e.registerNodeType=i,e.createNode=o;var g=r(238),m=n(g),b=new y.default,_={get:function(){var t=this;return{createElementNS:function(e,r){var n=o(r);return n?t.appendChild(n):null}}}},x={getElementById:function(t){for(var e=this.children,r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}return null},getElementsByName:function(t){return this.children.filter(function(e){return e.name===t})},querySelector:function(t){var e=this,r=this.children,n=null;if(t&&"*"!==t)if("string"==typeof t)if(t.startsWith("#"))n=this.getElementById(t.slice(1));else if(t.startsWith(":")){var i=t.slice(1),o=(0,m.default)(r,function(t){return t.name===i},1);o.length&&(n=o[0])}else{var u=a(t);if(u){var s=(0,m.default)(r,function(t){return t instanceof u},1);s.length&&(n=s[0])}}else{var f=(0,m.default)(r,function(r){return(0,p.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],u=a(i);return u&&r instanceof u&&o.call(e,r)})},1);f.length&&(n=f[0])}else n=r[0];return n},querySelectorAll:function(t){var e=this,r=[],n=this.children;if(t&&"*"!==t)if("string"==typeof t){if(t.startsWith("#")){var i=this.getElementById(t.slice(1));r=i?[i]:[]}t.startsWith(":")&&(r=this.getElementsByName(t.slice(1)));var o=a(t);o&&(r=(0,m.default)(n,function(t){return t instanceof o}))}else r=(0,m.default)(n,function(r){return(0,p.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],u=a(i);return!!(u&&r instanceof u)&&o.call(e,r)})});else r=[].concat((0,l.default)(n));return r}}},function(t,e){t.exports=function(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(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(3),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){t.exports={}},function(t,e,r){var n=r(110),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(200);for(var n=r(9),i=r(23),o=r(33),a=r(7)("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 f=u[s],l=n[f],c=l&&l.prototype;c&&!c[a]&&i(c,a,f),o[f]=o.Array}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=e.x,n=e.y,i=e.w,o=e.h,a=e.r;t.beginPath(),t.moveTo(r+a,n),t.arcTo(r+i,n,r+i,n+o,a),t.arcTo(r+i,n+o,r,n+o,a),t.arcTo(r,n+o,r,n,a),t.arcTo(r,n,r+i,n,a),t.closePath()}function o(t,e){var r=(0,c.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];(t%=360)<0&&(t+=360);var u=[n,i,n+o,i+a];if(t>=0&&t<90){var s=Math.tan(Math.PI*t/180),f=s*o;f<=a?u=[n,i,n+o,i+f]:(f=a/s,u=[n,i,n+f,i+a])}else if(t>=90&&t<180){var l=Math.tan(Math.PI*(t-90)/180),h=l*a;h<=o?u=[n+o,i,n+o-h,i+a]:(h=o/l,u=[n+o,i,n,i+h])}else if(t>=180&&t<270){var d=Math.tan(Math.PI*(t-180)/180),p=d*o;p<=a?u=[n+o,i+a,n,i+a-p]:(p=a/d,u=[n+o,i+a,n+o-p,i])}else if(t>=270&&t<360){var v=Math.tan(Math.PI*(t-270)/180),y=v*a;y<=o?u=[n,i+a,n+y,i]:(y=o/v,u=[n,i+a,n+o,i+a-y])}return u}function a(t,e,r){var n=e.attr("gradients")||{},i="border"===r?e.attr(r).color:e.attr(r),a=void 0;if(n[r]?a=n[r]:"string"!=typeof i&&(a=i),a){var u=a,s=u.colors,l=u.vector,c=u.direction,h=u.rect;if(null!=c){if("border"===r)h=h||[0,0].concat((0,f.default)(e.outerSize));else{var d=e.attr("border"),p=d.width;h=h||[p,p].concat((0,f.default)(e.innerSize))}l=o(c,h)}if(4===l.length)i=t.createLinearGradient.apply(t,(0,f.default)(l));else if(6===l.length)i=t.createRadialGradient.apply(t,(0,f.default)(l));else{if(3!==l.length)throw Error("Invalid gradient vector!");i=t.createCircularGradient.apply(t,(0,f.default)(l))}s.forEach(function(t){i.addColorStop(t.offset,t.color)})}return i}function u(t){if(t.canvas){var e=t.canvas,r=e.width,n=e.height;t.clearRect(0,0,r,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.cacheContextPool=void 0;var s=r(6),f=n(s),l=r(1),c=n(l);e.drawRadiusBox=i,e.findColor=a,e.clearContext=u;var h=[];e.cacheContextPool={get:function(t){if(h.length>0)return h.pop();var e=t.canvas;if(e&&e.cloneNode){return e.cloneNode().getContext("2d")}},put:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];e.every(function(t){return t.canvas.width=0,t.canvas.height=0,h.push(t),h.length<20})},get size(){return h.length}}},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(20),i=r(104),o=r(102),a=r(18),u=r(54),s=r(81),f={},l={},e=t.exports=function(t,e,r,c,h){var d,p,v,y,g=h?function(){return t}:s(t),m=n(r,c,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(d=u(t.length);d>b;b++)if((y=e?m(a(p=t[b])[0],p[1]):m(t[b]))===f||y===l)return y}else for(v=g.call(t);!(p=v.next()).done;)if((y=i(v,m,p.value,e))===f||y===l)return y};e.BREAK=f,e.RETURN=l},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(13).f,i=r(28),o=r(7)("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";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Effects=e.Easings=e.Animator=void 0;var i=r(122),o=n(i),a=r(128),u=n(a),s=r(121),f=r(231),l=n(f);e.Animator=l.default,e.Easings=s.Easings,e.Effects=o.default,e.Timeline=u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a=r(49),u=n(a),s=r(6),f=n(s),l=r(157),c=n(l),h=r(8),d=n(h),p=r(1),v=n(p),y=r(21),g=n(y),m=r(32),b=n(m),_=r(50),x=n(_),w=r(11),k=n(w),M=r(4),S=n(M),E=r(5),C=n(E),O=r(17),T=n(O),P=r(15),j=n(P),A=r(16),R=n(A),z=r(3),I=n(z),L=r(234),N=n(L),D=r(82),F=n(D),V=r(46),B=r(233),q=n(B),U=r(14),G=r(30),W=r(37),H=r(44),J=r(124),X=n(J),Y=(0,I.default)("attr"),$=(0,I.default)("animations"),K=(0,I.default)("cachePriority"),Q=(o=i=function(t){function e(t){(0,S.default)(this,e);var r=(0,T.default)(this,(e.__proto__||(0,k.default)(e)).call(this));return r[Y]=new r.constructor.Attr(r),r[$]=new x.default,r[K]=0,r.__cachePolicyThreshold=6,t&&r.attr(t),r}return(0,R.default)(e,t),(0,C.default)(e,[{key:"serialize",value:function(){return{nodeType:this.nodeType,attrs:this[Y].serialize(),id:this.id}}},{key:"merge",value:function(t){this[Y].merge(t)}},{key:"cloneNode",value:function(){var t=new this.constructor;return t.merge(this[Y].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){var r=this;return"object"===(void 0===t?"undefined":(0,b.default)(t))?((0,g.default)(t).forEach(function(t){var e=(0,v.default)(t,2),n=e[0],i=e[1];r.attr(n,i)}),this):"string"==typeof t?void 0!==e?("function"==typeof e&&(e=e(this[Y][t])),(0,d.default)(this[Y],(0,c.default)({},t,e)),"zIndex"===t&&this.parent&&this.parent.children.sort(function(t,e){return t.zIndex===e.zIndex?t.zOrder-e.zOrder:t.zIndex-e.zIndex}),this):this[Y][t]:this[Y].attrs}},{key:"attrs",value:function(){return this.attr()}},{key:"isVisible",value:function(){if(this.attr("opacity")<=0)return!1;var t=(0,v.default)(this.offsetSize,2),e=t[0],r=t[1];return!(e<=0||r<=0)}},{key:"transition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",r=this;return{attr:function(n,i){return"string"==typeof n&&(n=(0,c.default)({},n,i)),(0,g.default)(n).forEach(function(t){var e=(0,v.default)(t,2),i=e[0],o=e[1];"function"==typeof o&&(n[i]=o(r.attr(i)))}),r.animate([n],{duration:1e3*t,fill:"forwards",easing:e}).finished}}}},{key:"animate",value:function(t,e){var r=this,n=new q.default(this,t,e);return this.layer&&(n.baseTimeline=this.layer.timeline,n.play(),n.finished.then(function(){r[$].delete(n)})),this[$].add(n),n}},{key:"connect",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t&&!(t instanceof F.default)){var i=new F.default;i.context=t,i.timeline=new H.Timeline,i.update=function(){var t=this.timeline.currentTime;i.dispatchEvent("update",{target:this,timeline:this.timeline,renderTime:t},!0)},t=i}var o=(0,j.default)(e.prototype.__proto__||(0,k.default)(e.prototype),"connect",this).call(this,t,n);return Object.defineProperty(this,"context",{get:function(){return t.cache||t.context},configurable:!0}),this[$].forEach(function(e){t.layer&&(e.baseTimeline=t.layer.timeline),e.play(),e.finished.then(function(){r[$].delete(e)})}),o}},{key:"disconnect",value:function(t){this[$].forEach(function(t){return t.cancel()}),this.cache&&(this.cache=null);var r=(0,j.default)(e.prototype.__proto__||(0,k.default)(e.prototype),"disconnect",this).call(this,t);return delete this.context,r}},{key:"clearCache",value:function(){this[K]=0,this.cache=null,this.parent&&this.parent.cache&&(this.parent[K]=0,this.parent.cache=null)}},{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];this.isDirty=!0,t&&this.clearCache(),this.parent&&this.parent.update(this)}},{key:"pointToOffset",value:function(t,e){var r=this.attr("pos"),n=(0,v.default)(r,2),i=n[0],o=n[1],a=t-i,u=e-o;return this.transform.inverse().transformPoint(a,u)}},{key:"pointCollision",value:function(t){if(!this.isVisible())return!1;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,v.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,v.default)(this.originalRect,4),f=s[0],l=s[1],c=s[2],h=s[3],d=this.pointToOffset(e,r),p=(0,v.default)(d,2),y=p[0],g=p[1];if(y>=f&&y-f<c&&g>=l&&g-l<h){if(t.offsetX=y,t.offsetY=g,this.context&&this.context.isPointInPath){var m=this.attr("border").width,b=this.attr("borderRadius");if(m||b){var _=(0,v.default)(this.outerSize,2),x=_[0],w=_[1],k=[0,0,x,w,Math.max(0,b+m/2)],M=k[0],S=k[1],E=k[2],C=k[3],O=k[4];return(0,W.drawRadiusBox)(this.context,{x:M,y:S,w:E,h:C,r:O}),this.layer&&this.layer.offset&&(y+=this.layer.offset[0],g+=this.layer.offset[1]),this.context.isPointInPath(y-f,g-l)}}return!0}}}},{key:"OBBCollision",value:function(t){function e(t,e){var r=t.map(function(t){return e.dot(new V.Vector(t))}),n=(0,v.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,v.default)(this.vertices,3),i=n[0],o=n[1],a=n[2],u=(0,v.default)(t.vertices,3),s=u[0],f=u[1],l=u[2],c=new V.Vector(o,i).unit(),h=new V.Vector(a,o).unit(),d=new V.Vector(f,s).unit(),p=new V.Vector(l,f).unit();return r(e(this.vertices,c),e(t.vertices,c))&&r(e(this.vertices,h),e(t.vertices,h))&&r(e(this.vertices,d),e(t.vertices,d))&&r(e(this.vertices,p),e(t.vertices,p))}},{key:"draw",value:function(t){var e=this.context,r=this.originalRect,n=null;this.cachePriority>this.__cachePolicyThreshold&&(this.cache?n=this.cache:(n=W.cacheContextPool.get(e),n?(n.canvas.width=Math.ceil(r[2])+2,n.canvas.height=Math.ceil(r[3])+2):this.__cachePolicyThreshold=1/0)),this[K]=Math.min(this[K]+1,10);var i={context:e,cacheContext:n,target:this,renderTime:t,fromCache:!!this.cache};e.save(),e.translate.apply(e,(0,f.default)(this.attr("pos"))),e.transform.apply(e,(0,f.default)(this.transform.m)),e.globalAlpha*=this.attr("opacity"),n?n.translate(r[0]-Math.floor(r[0])+1,r[1]-Math.floor(r[1])+1):e.translate(r[0],r[1]),this.dispatchEvent("beforedraw",i,!0,!0);var o=this.attr("filter");return o&&(e.filter=X.default.compile(o),this[K]=0),n?this.cache||(this.cache=n,this.render(t,n)):this.render(t,e),n&&e.drawImage(n.canvas,Math.floor(r[0])-1,Math.floor(r[1])-1),this.dispatchEvent("afterdraw",i,!0,!0),e.restore(),this.lastRenderBox=this.renderBox,e}},{key:"render",value:function(t,e){var r=this.attr("border"),n=this.attr("borderRadius"),i=this.attr("padding"),o=(0,v.default)(this.offsetSize,2),a=o[0],u=o[1],s=(0,v.default)(this.clientSize,2),f=s[0],l=s[1];if(0!==a&&0!==u){var c=r.width,h=r.style;if(c){e.lineWidth=c;var d=c/2,p=c/2,y=a-c,g=u-c,m=n;if((0,W.drawRadiusBox)(e,{x:d,y:p,w:y,h:g,r:m}),h&&"solid"!==h){var b=this.attr("dashOffset");e.lineDashOffset=b,"dashed"===h&&(h=[3*c,3*c]),e.setLineDash(h)}e.strokeStyle=(0,W.findColor)(e,this,"border"),e.stroke()}var _=(0,W.findColor)(e,this,"bgcolor");if(null==this.cache||c||n||_){var x=[c,c,f,l,Math.max(0,n-c/2)],w=x[0],k=x[1],M=x[2],S=x[3],E=x[4];if((0,W.drawRadiusBox)(e,{x:w,y:k,w:M,h:S,r:E}),_&&(e.fillStyle=_,e.fill()),"undefined"==typeof wx||!wx.navigateToMiniProgram||"undefined"==typeof requestAnimationFrame){this.attr("filter")||e.clip()}}e.translate(c+i[3],c+i[0])}}},{key:"cachePriority",get:function(){return this[K]}},{key:"layer",get:function(){return this.parent&&this.parent.layer}},{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:"zIndex",set:function(t){this.attr("zIndex",t)},get:function(){return this.attr("zIndex")}},{key:"transform",get:function(){var t=new V.Matrix(this[Y].get("transformMatrix")),e=this.attr("transformOrigin");if(e){var r=new V.Matrix;return r.translate.apply(r,(0,f.default)(e)),r.multiply(t),r.translate.apply(r,(0,f.default)(e.map(function(t){return-t}))),r}return t}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,v.default)(t,2);return[0|e[0],0|e[1]]}},{key:"clientSize",get:function(){var t=this.attr("padding"),e=(0,v.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=(0,v.default)(this.contentSize,2);return[o+a[0]+n,r+a[1]+i]}},{key:"offsetSize",get:function(){var t=this.attr("border"),e=t.width,r=(0,v.default)(this.clientSize,2);return[r[0]+2*e,r[1]+2*e]}},{key:"innerSize",get:function(){return this.contentSize}},{key:"outerSize",get:function(){return this.offsetSize}},{key:"boundingRect",get:function(){var t=this.transform,e=(0,v.default)(this.originalRect,2),r=e[0],n=e[1],i=(0,v.default)(this.offsetSize,2),o=i[0],a=i[1],u=[[r,n],[o+r,n],[r,a+n],[o+r,a+n]],s=u.map(function(e){return t.transformPoint(e[0],e[1])}),l=s.map(function(t){return t[0]}),c=s.map(function(t){return t[1]}),h=Math.min.apply(Math,(0,f.default)(l)),d=Math.min.apply(Math,(0,f.default)(c));return[h,d].concat([Math.max.apply(Math,(0,f.default)(l))-h,Math.max.apply(Math,(0,f.default)(c))-d])}},{key:"originalRect",get:function(){var t=(0,v.default)(this.offsetSize,2),e=t[0],r=t[1],n=this.attr("anchor"),i=(0,v.default)(n,2);return[-i[0]*e,-i[1]*r,e,r]}},{key:"originalRenderRect",get:function(){var t=this.originalRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"renderBox",get:function(){var t=this.boundingRect,e=this.attr("pos");return[Math.floor(e[0]+t[0]),Math.floor(e[1]+t[1]),Math.ceil(e[0]+t[0]+t[2]),Math.ceil(e[1]+t[1]+t[3])]}},{key:"renderRect",get:function(){return(0,U.boxToRect)(this.renderBox)}},{key:"vertices",get:function(){var t=(0,U.rectVertices)(this.originalRect),e=this.transform,r=this.attr("pos"),n=(0,v.default)(r,2),i=n[0],o=n[1];return t.map(function(t){var r=e.transformPoint(t[0],t[1]),n=(0,v.default)(r,2),a=n[0],u=n[1];return[i+a,o+u]})}},{key:"cache",set:function(t){this.cacheContext&&t!==this.cacheContext&&W.cacheContextPool.put(this.cacheContext),this.cacheContext=t},get:function(){return this.cacheContext}}],[{key:"defineAttributes",value:function(t){var e=this;return this.Attr=function(e){function r(e){(0,S.default)(this,r);var n=(0,T.default)(this,(r.__proto__||(0,k.default)(r)).call(this,e));return t.init(n,e),n}return(0,R.default)(r,e),r}(this.Attr),(0,g.default)(t).forEach(function(t){var r=(0,v.default)(t,2),n=r[0],i=r[1],o=function(){return this.get(n)};"function"!=typeof i&&i.set&&(o=i.get||o,i=i.set),"init"!==n&&(e.Attr.prototype.__attributeNames.push(n),(0,u.default)(e.Attr.prototype,n,{set:function(t){this.__clearCacheTag=!1,this.__updateTag=!1,i(this,t),this.subject&&this.__updateTag&&this.subject.forceUpdate(this.__clearCacheTag),delete this.__updateTag,delete this.__clearCacheTag},get:o}))}),this.Attr}}]),e}(F.default),i.Attr=N.default,o);e.default=Q,(0,G.registerNodeType)("basesprite",Q)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=e.Matrix=void 0;var i=r(243),o=n(i),a=r(244),u=n(a);e.Matrix=o.default,e.Vector=u.default},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,r=document.createElement("canvas");return r.width=t,r.height=e,r}function i(t){var e=document.createElement("img");e.crossOrigin="anonymous";var r=new s.default(function(t){e.addEventListener("load",function(){t(e)})});return e.src=t,r}function o(t){if("string"==typeof t&&(t=document.querySelector(t)),!t)throw new Error("Container is not defined or cannot found.");return t}function a(){try{new window.CustomEvent("T")}catch(e){var t=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r};t.prototype=window.Event.prototype,window.CustomEvent=t}}Object.defineProperty(e,"__esModule",{value:!0}),e.removeDebugToolsObserver=e.setDebugToolsObserver=e._debugger=void 0;var u=r(22),s=function(t){return t&&t.__esModule?t:{default:t}}(u);e.createCanvas=n,e.loadImage=i,e.getContainer=o,e.shim=a;var f=r(150);e._debugger=f._debugger,e.setDebugToolsObserver=f.setDebugToolsObserver,e.removeDebugToolsObserver=f.removeDebugToolsObserver},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SvgPath=e.Color=e.createNode=e.registerNodeType=e.Effects=e.Group=e.Layer=e.Path=e.Label=e.Sprite=e.Batch=e.BaseSprite=e.BaseNode=e.math=e.utils=void 0;var o=r(45),a=i(o),u=r(242),s=i(u),f=r(239),l=i(f),c=r(240),h=i(c),d=r(125),p=i(d),v=r(82),y=i(v),g=r(241),m=i(g),b=r(123),_=i(b),x=r(30),w=r(44),k=r(83),M=i(k),S=r(14),E=n(S),C=r(46),O=n(C),T=E.Color;e.utils=E,e.math=O,e.BaseNode=y.default,e.BaseSprite=a.default,e.Batch=_.default,e.Sprite=s.default,e.Label=l.default,e.Path=m.default,e.Layer=h.default,e.Group=p.default,e.Effects=w.Effects,e.registerNodeType=x.registerNodeType,e.createNode=x.createNode,e.Color=T,e.SvgPath=M.default},function(t,e,r){t.exports={default:r(170),__esModule:!0}},function(t,e,r){t.exports={default:r(178),__esModule:!0}},function(t,e,r){var n=r(39),i=r(7)("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(18),i=r(107),o=r(65),a=r(74)("IE_PROTO"),u=function(){},s=function(){var t,e=r(64)("iframe"),n=o.length;for(e.style.display="none",r(100).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(76),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(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(c===clearTimeout)return clearTimeout(t);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{return c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?p=d.concat(p):y=-1,p.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=p.length;e;){for(d=p,p=[];++y<e;)d&&d[y].run();y=-1,e=p.length}d=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function f(){}var l,c,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(t){c=n}}();var d,p=[],v=!1,y=-1;h.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];p.push(new s(t,e)),1!==p.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},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(61),o=n(i),a=r(1),u=n(a),s=r(21),f=n(s),l=r(60),c=n(l),h=r(22),d=n(h),p=r(25),v=n(p),y=r(47),g=r(131),m=new v.default,b={loadTexture:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;"string"==typeof t&&(t={src:t}),t.id||(t.id=t.src);var r=t.id;return m.has(r)?{img:m.get(r),texture:t,fromCache:!0}:new d.default(function(n,i){var o=setTimeout(function(){i(new Error("load img timeout"))},e);(0,y.loadImage)(t.src).then(function(e){n({img:e,texture:t,fromCache:!1}),m.set(r,e),clearTimeout(o)})})},loadFrames:function(){function t(t,r){return e.apply(this,arguments)}var e=(0,c.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,g.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,f.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,f=(0,y.createCanvas)(a,s),l=i.frame,c=i.spriteSourceSize,h=f.getContext("2d"),d=i.rotated;if(h.save(),d){h.translate(0,s),h.rotate(-.5*Math.PI);var p=c.y;c.y=c.x,c.x=s-l.h-p,h.drawImage(n.img,l.x,l.y,l.h,l.w,c.x,c.y,c.h,c.w)}else h.drawImage(n.img,l.x,l.y,l.w,l.h,c.x,c.y,c.w,c.h);h.restore(),m.set(r,f)}),t.abrupt("return",n);case 11:case"end":return t.stop()}},t,this)}));return t}()};e.default=b},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(10),o=r(146),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(86):void 0!==e&&(t=r(86)),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(57))},function(t,e,r){"use strict";e.__esModule=!0;var n=r(22),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(227)},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(19),i=r(9).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(52),i=r(2),o=r(114),a=r(23),u=r(28),s=r(33),f=r(190),l=r(43),c=r(109),h=r(7)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,r,v,y,g,m){f(r,e,v);var b,_,x,w=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},k=e+" Iterator",M="values"==y,S=!1,E=t.prototype,C=E[h]||E["@@iterator"]||y&&E[y],O=C||w(y),T=y?M?w("entries"):O:void 0,P="Array"==e?E.entries||C:C;if(P&&(x=c(P.call(new t)))!==Object.prototype&&x.next&&(l(x,k,!0),n||u(x,h)||a(x,h,p)),M&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),n&&!m||!d&&!S&&E[h]||a(E,h,O),s[e]=O,s[k]=p,y)if(b={values:M?O:w("values"),keys:g?O:w("keys"),entries:T},m)for(_ in b)_ in E||o(E,_,b[_]);else i(i.P+i.F*(d||S),e,b);return b}},function(t,e,r){var n=r(55)("meta"),i=r(19),o=r(28),a=r(13).f,u=0,s=Object.isExtensible||function(){return!0},f=!r(27)(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},c=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";l(t)}return t[n].i},h=function(t,e){if(!o(t,n)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return f&&p.NEED&&s(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:c,getWeak:h,onFreeze:d}},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(41),i=r(42),o=r(24),a=r(77),u=r(28),s=r(101),f=Object.getOwnPropertyDescriptor;e.f=r(12)?f:function(t,e){if(t=o(t),e=a(e,!0),s)try{return f(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(2),i=r(0),o=r(27);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(75)("keys"),i=r(55);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(9),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(19);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(19);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(9),i=r(0),o=r(52),a=r(80),u=r(13).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(7)},function(t,e,r){var n=r(51),i=r(7)("iterator"),o=r(33);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}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(8),o=n(i),a=r(4),u=n(a),s=r(5),f=n(s),l=r(3),c=n(l),h=(0,c.default)("eventHandlers"),d=(0,c.default)("collisionState"),p=function(){function t(){(0,u.default)(this,t),this[h]={}}return(0,f.default)(t,[{key:"on",value:function(t,e){var r=this;return Array.isArray(t)?t.forEach(function(t){return r.on(t,e)}):(this[h][t]=this[h][t]||[],this[h][t].push(e)),this}},{key:"off",value:function(t,e){var r=this;if(Array.isArray(t))t.forEach(function(t){return r.off(t,e)});else if(e&&this[h][t]){var n=this[h][t].indexOf(e);n>=0&&this[h][t].splice(n,1)}else delete this[h][t];return this}},{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];e.stopDispatch||(e.stopDispatch=function(){e.terminated=!0}),e.type!==t&&(e.type&&(e.originalType=e.type),e.type=t);var i=n||this.pointCollision(e);if(!e.terminated&&i){e.target=this;var a=this[h][t];if(a&&a.forEach(function(t){return t.call(r,e)}),"mousemove"===t){if(!this[d]){var u=(0,o.default)({},e);u.type="mouseenter",u.terminated=!1,this.dispatchEvent("mouseenter",u,!0)}this[d]=!0}}else if("mousemove"===t){if(this[d]){var s=(0,o.default)({},e);s.type="mouseleave",s.target=this,s.terminated=!1,this.dispatchEvent("mouseleave",s,!0)}this[d]=!1}return i}},{key:"connect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.parent&&this.disconnect(this.parent),Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0}),Object.defineProperty(this,"parent",{get:function(){return t},configurable:!0});var r=this[h].append;return r&&r.length&&this.dispatchEvent("append",{parent:t,zOrder:e},!0,!0),this}},{key:"disconnect",value:function(t){if(!this.parent||t!==this.parent)throw new Error("Invalid node to disconnect");var e=this.zOrder;delete this.zOrder;var r=this[h].remove;return r&&r.length&&this.dispatchEvent("remove",{parent:t,zOrder:e},!0,!0),delete this.parent,this}}]),t}();e.default=p},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(6),o=n(i),a=r(1),u=n(a),s=r(96),f=n(s),l=r(8),c=n(l),h=r(4),d=n(h),p=r(5),v=n(p),y=r(3),g=n(y),m=r(46),b=r(252),_=r(251),x=r(248),w=r(250),k=r(249),M=(0,g.default)("path"),S=(0,g.default)("bounds"),E=(0,g.default)("savedPaths"),C=(0,g.default)("renderProps"),O=(0,g.default)("beginPath"),T=function(){function t(e){if((0,d.default)(this,t),!k(e))throw new Error("Not an SVG path!");var r=w(x(_(e)));this[M]=r,this[S]=null,this[E]=[],this[C]={},this[O]=!1}return(0,v.default)(t,[{key:"save",value:function(){return this[E].push({path:this[M],bounds:this[S],renderProps:(0,c.default)({},this[C])}),this}},{key:"restore",value:function(){if(this[E].length){var t=this[E].pop(),e=t.path,r=t.bounds,n=t.renderProps;this[M]=e,this[S]=r,this[C]=n}return this}},{key:"isPointInPath",value:function(t,e){return(0,b.isPointInPath)(this,t,e)}},{key:"getPointAtLength",value:function(t){return(0,b.getPointAtLength)(this.d,t)}},{key:"getTotalLength",value:function(){return(0,b.getTotalLength)(this.d)}},{key:"transform",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[S]=null;var n=new m.Matrix(e),i=this[M];return this[M]=i.map(function(t){for(var e=(0,f.default)(t),r=e[0],i=e.slice(1),o=[r],a=0;a<i.length;a+=2){var s=i[a],l=i[a+1],c=n.transformPoint(s,l),h=(0,u.default)(c,2),d=h[0],p=h[1];o.push(d,p)}return o}),this}},{key:"translate",value:function(t,e){var r=(new m.Matrix).translate(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"rotate",value:function(t){var e=(new m.Matrix).rotate(t);return this.transform.apply(this,(0,o.default)(e.m))}},{key:"scale",value:function(t,e){null==e&&(e=t);var r=(new m.Matrix).scale(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"skew",value:function(t,e){var r=(new m.Matrix).skew(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"trim",value:function(){var t=(0,u.default)(this.bounds,2),e=t[0],r=t[1];return this.translate(-e,-r),this}},{key:"beginPath",value:function(){return this[O]=!0,this}},{key:"to",value:function(t){var e=this[M],r=this[C];return e.length&&(this[O]&&t.beginPath(),e.forEach(function(e){var r=(0,f.default)(e),n=r[0],i=r.slice(1);"M"===n?t.moveTo.apply(t,(0,o.default)(i)):t.bezierCurveTo.apply(t,(0,o.default)(i))})),(0,c.default)(t,r),{stroke:function(){return t.stroke(),this},fill:function(){return t.fill(),this}}}},{key:"strokeStyle",value:function(t){return this[C].strokeStyle=t,this}},{key:"fillStyle",value:function(t){return this[C].fillStyle=t,this}},{key:"lineWidth",value:function(t){return this[C].lineWidth=t,this}},{key:"lineCap",value:function(t){return this[C].lineCap=t,this}},{key:"lineJoin",value:function(t){return this[C].lineJoin=t,this}},{key:"bounds",get:function(){if(!this[S]){var t=this[M];if(this[S]=[0,0,0,0],t.length){for(var e=[1/0,1/0,-1/0,-1/0],r=0,n=t.length;r<n;r++)for(var i=t[r].slice(1),o=0;o<i.length;o+=2)i[o+0]<e[0]&&(e[0]=i[o+0]),i[o+1]<e[1]&&(e[1]=i[o+1]),i[o+0]>e[2]&&(e[2]=i[o+0]),i[o+1]>e[3]&&(e[3]=i[o+1]);this[S]=e}}return this[S]}},{key:"size",get:function(){var t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}},{key:"center",get:function(){var t=(0,u.default)(this.bounds,4),e=t[0],r=t[1];return[(e+t[2])/2,(r+t[3])/2]}},{key:"d",get:function(){return this[M].map(function(t){var e=(0,f.default)(t);return e[0]+e.slice(1).join()}).join("")}},{key:"path",get:function(){return this[M]}}]),t}();t.exports=T},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(61),o=n(i),a=r(60),u=n(a),s=r(1),f=n(s),l=r(11),c=n(l),h=r(32),d=n(h),p=r(4),v=n(p),y=r(5),g=n(y),m=r(17),b=n(m),_=r(15),x=n(_),w=r(16),k=n(w),M=r(3),S=n(M),E=r(48),C=r(47),O=(0,S.default)("resolution"),T=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,v.default)(this,e),"object"===(void 0===t?"undefined":(0,d.default)(t))&&(r=t,t=r.id||"id_"+Math.random().toString().slice(2,10));var n=r,i=n.context,o=n.handleEvent,a=n.evaluateFPS,u=n.renderMode,s=n.resolution,f=n.shadowContext;i=i||(0,C.createCanvas)().getContext("2d");var l=i.canvas;l.dataset.layerId=t,l.style.position="absolute";var h=(0,b.default)(this,(e.__proto__||(0,c.default)(e)).call(this,{context:i,handleEvent:o,evaluateFPS:a,renderMode:u,shadowContext:f}));return s?h.resolution=s:h[O]=[h.canvas.width,h.canvas.height,0,0],h}return(0,k.default)(e,t),(0,g.default)(e,[{key:"renderRepaintAll",value:function(t){var r=(0,f.default)(this.resolution,4),n=r[0],i=r[1],o=r[2],a=r[3];this.shadowContext?this.shadowContext.clearRect(-o,-a,n,i):this.outputContext.clearRect(-o,-a,n,i),(0,x.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"renderRepaintAll",this).call(this,t)}},{key:"isVisible",value:function(t){if(!(0,x.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"isVisible",this).call(this,t))return!1;var r=(0,f.default)(this.resolution,4),n=r[0],i=r[1],o=r[2],a=r[3],u=t.renderBox;return!(u[0]>n-o||u[1]>i-a||u[2]<0||u[3]<0)}},{key:"toLocalPos",value:function(t,e){if(this.parent)return this.parent.toLocalPos(t,e);var r=this.resolution;return[t-r[2],e-r[3]]}},{key:"toGlobalPos",value:function(t,e){if(this.parent)return this.parent.toGlobalPos(t,e);var r=this.resolution;return[t+r[2],e+r[3]]}},{key:"takeSnapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,u.default)(o.default.mark(function t(){var e,r,n;return o.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),r=e.getContext("2d"),r.drawImage(this.canvas,0,0),n=this.children.map(function(t){return t.serialize()}),t.abrupt("return",{context:r,children:n});case 6:case"end":return t.stop()}},t,this)}));return t}()},{key:"putSnapshot",value:function(t){var e=this,r=this.outputContext,n=(0,f.default)(this.resolution,2),i=n[0],o=n[1];r.clearRect(0,0,i,o),r.drawImage(t.context.canvas,0,0),this.clearUpdate(),t.children.forEach(function(t){var r=(0,E.createNode)(t.nodeType);t.id&&(r.id=t.id),r.attr(JSON.parse(t.attrs)),e.appendChild(r,!1)});for(var a=0;a<this.children.length;a++){var u=this.children[a];u.dispatchEvent("update",{target:u,context:u.context,renderBox:u.renderBox,lastRenderBox:u.lastRenderBox},!0),u.lastRenderBox=u.renderBox}return this.children}},{key:"id",get:function(){return this.canvas.dataset.layerId}},{key:"resolution",get:function(){return this[O]},set:function(t){var e=(0,f.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=this.outputContext.canvas;if(a.width=r,a.height=n,this.outputContext.clearRect(0,0,r,n),this.shadowContext){var u=this.shadowContext.canvas;u.width=r,u.height=n,this.shadowContext.clearRect(0,0,r,n)}if(i||o){(this.shadowContext||this.outputContext).translate(i,o)}this.children.forEach(function(t){delete t.lastRenderBox,t.forceUpdate()}),this[O]=t}},{key:"offset",get:function(){return[this.resolution[2],this.resolution[3]]}},{key:"zIndex",get:function(){return this.canvas.style.zIndex},set:function(t){this.canvas.style.zIndex=t}}]),e}(E.Layer);e.default=T},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,u=r(26),s=n(u),f=r(22),l=n(f),c=r(8),h=n(c),d=r(11),p=n(d),v=r(4),y=n(v),g=r(5),m=n(g),b=r(17),_=n(b),x=r(15),w=n(x),k=r(16),M=n(k),S=r(3),E=n(S),C=r(48),O=r(58),T=n(O),P=r(31),j=C.utils.attr,A=(0,E.default)("mapTextures"),R=(i=function(t){function e(){return(0,y.default)(this,e),(0,_.default)(this,(e.__proto__||(0,p.default)(e)).apply(this,arguments))}return(0,M.default)(e,t),(0,m.default)(e,[{key:A,value:function(t){var r=!1,n=t.map(function(t){var e=t.img,n=t.texture;return t.fromCache||(r=!0),(0,h.default)({},n,{image:e})});r&&this.subject.forceUpdate(!0),(0,w.default)(e.prototype.__proto__||(0,p.default)(e.prototype),"loadTextures",this).call(this,n)}},{key:"loadTextures",value:function(t){var e=!1,r=t.map(function(t){if(t.image)return{img:t.image,texture:t};var r=T.default.loadTexture(t);return r instanceof l.default&&(e=!0),r});e?l.default.all(r).then(this[A].bind(this)):this[A](r)}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return"string"==typeof t?t={src:t}:t.src||t.id||t.image||(t={image:t}),t}),this.set("textures",t),this.loadTextures(t)}}]),e}(C.Sprite.Attr),P(i.prototype,"textures",[j],(0,s.default)(i.prototype,"textures"),i.prototype),i),z=(a=o=function(t){function e(){return(0,y.default)(this,e),(0,_.default)(this,(e.__proto__||(0,p.default)(e)).apply(this,arguments))}return(0,M.default)(e,t),e}(C.Sprite),o.Attr=R,a);e.default=z},function(t,e,r){"use strict";(function(e){var n=r(10),i=r(138),o=r(141),a=r(147),u=r(145),s=r(89),f="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(140);t.exports=function(t){return new Promise(function(l,c){var h=t.data,d=t.headers;n.isFormData(h)&&delete d["Content-Type"];var p=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||u(t.url)||(p=new window.XDomainRequest,v="onload",y=!0,p.onprogress=function(){},p.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+f(g+":"+m)}if(p.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),p.timeout=t.timeout,p[v]=function(){if(p&&(4===p.readyState||y)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?p.response:p.responseText,n={data:r,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:e,config:t,request:p};i(l,c,n),p=null}},p.onerror=function(){c(s("Network Error",t,null,p)),p=null},p.ontimeout=function(){c(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",p)),p=null},n.isStandardBrowserEnv()){var b=r(143),_=(t.withCredentials||u(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;_&&(d[t.xsrfHeaderName]=_)}if("setRequestHeader"in p&&n.forEach(d,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete d[e]:p.setRequestHeader(e,t)}),t.withCredentials&&(p.withCredentials=!0),t.responseType)try{p.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&p.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){p&&(p.abort(),c(t),p=null)}),void 0===h&&(h=null),p.send(h)})}}).call(e,r(57))},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(137);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){t.exports={default:r(161),__esModule:!0}},function(t,e,r){t.exports={default:r(162),__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(174),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(91),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return Array.isArray(t)?t:(0,i.default)(t)}},function(t,e,r){"use strict";var n=r(13).f,i=r(53),o=r(73),a=r(20),u=r(62),s=r(40),f=r(67),l=r(106),c=r(117),h=r(12),d=r(68).fastKey,p=r(78),v=h?"_s":"size",y=function(t,e){var r,n=d(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,f){var l=t(function(t,n){u(t,l,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[f],t)});return o(l.prototype,{clear:function(){for(var t=p(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=p(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){p(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(p(this,e),t)}}),h&&n(l.prototype,"size",{get:function(){return p(this,e)[v]}}),l},def:function(t,e,r){var n,i,o=y(t,e);return o?o.v=r:(t._l=o={i:i=d(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){f(t,e,function(t,r){this._t=p(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?l(0,r.k):"values"==e?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),c(e)}}},function(t,e,r){var n=r(51),i=r(182);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(9),i=r(2),o=r(68),a=r(27),u=r(23),s=r(73),f=r(40),l=r(62),c=r(19),h=r(43),d=r(13).f,p=r(184)(0),v=r(12);t.exports=function(t,e,r,y,g,m){var b=n[t],_=b,x=g?"set":"add",w=_&&_.prototype,k={};return v&&"function"==typeof _&&(m||w.forEach&&!a(function(){(new _).entries().next()}))?(_=e(function(e,r){l(e,_,t,"_c"),e._c=new b,void 0!=r&&f(r,g,e[x],e)}),p("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in w&&(!m||"clear"!=t)&&u(_.prototype,t,function(r,n){if(l(this,_,t),!e&&m&&!c(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),m||d(_.prototype,"size",{get:function(){return this._c.size}})):(_=y.getConstructor(e,t,g,x),s(_.prototype,r),o.NEED=!0),h(_,t),k[t]=_,i(i.G+i.W+i.F,k),m||y.setStrong(_,t,g),_}},function(t,e,r){var n=r(9).document;t.exports=n&&n.documentElement},function(t,e,r){t.exports=!r(12)&&!r(27)(function(){return 7!=Object.defineProperty(r(64)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(33),i=r(7)("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(18);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(7)("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(13),i=r(18),o=r(34);t.exports=r(12)?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(110),i=r(65).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(28),i=r(35),o=r(74)("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(28),i=r(24),o=r(183)(!1),a=r(74)("IE_PROTO");t.exports=function(t,e){var r,u=i(t),s=0,f=[];for(r in u)r!=a&&n(u,r)&&f.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(f,r)||f.push(r));return f}},function(t,e,r){var n=r(34),i=r(24),o=r(41).f;t.exports=function(t){return function(e){for(var r,a=i(e),u=n(a),s=u.length,f=0,l=[];s>f;)o.call(a,r=u[f++])&&l.push(t?[r,a[r]]:a[r]);return l}}},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(18),i=r(19),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(2),i=r(38),o=r(20),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(2);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,r){"use strict";var n=r(9),i=r(0),o=r(13),a=r(12),u=r(7)("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(18),i=r(38),o=r(7)("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(20),u=r(189),s=r(100),f=r(64),l=r(9),c=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.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)};h&&d||(h=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},d=function(t){delete g[t]},"process"==r(39)(c)?n=function(t){c.nextTick(a(m,t,1))}:v&&v.now?n=function(t){v.now(a(m,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:h,clear:d}},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,h.default)(t,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}var o=r(6),a=n(o),u=r(3),s=n(u),f=r(25),l=n(f),c=r(1),h=n(c),d=void 0,p=void 0;"undefined"==typeof requestAnimationFrame?(d=function(t){return setTimeout(function(){t(i())},16)},p=function(t){return clearTimeout(t)}):(d=requestAnimationFrame,p=cancelAnimationFrame);var v=new l.default,y=void 0,g={requestAnimationFrame:function(t){var e=(0,s.default)("requestId");return v.set(e,t),null==y&&(y=d(function(t){y=null,[].concat((0,a.default)(v)).forEach(function(e){var r=(0,h.default)(e,2),n=r[0];(0,r[1])(t),v.delete(n)})})),e},cancelAnimationFrame:function(t){v.delete(t),!v.size&&y&&(p(y),y=null)}};t.exports=g}).call(e,r(57))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=v.get(e);return n||(n=p.apply(void 0,e),v.set(e,n),n)}function o(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),f=1/t,l=s/f;return l="end"===e?Math.floor(l):Math.ceil(l),f*l*(u-a)+a}}return 0}}function a(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())}),i.apply(void 0,(0,c.default)(n))}if(e=/^steps\((.*)\)/,r=t.match(e)){var a=r[1].trim();a=a.split(",").map(function(t){return t.trim()});var u=a,s=(0,f.default)(u,2),l=s[0],h=s[1];return o(parseInt(l,10),h)}return t}function u(t){return"string"==typeof t?t=y[t]?y[t]:a(t):"cubic-bezier"===t.type?t=i.apply(void 0,(0,c.default)(t.value)):"steps"===t.type&&(t=o(t.step,t.pos)),t}Object.defineProperty(e,"__esModule",{value:!0}),e.parseEasing=e.Easings=void 0;var s=r(1),f=n(s),l=r(6),c=n(l),h=r(25),d=n(h),p=r(158),v=new d.default,y={linear:function(t){return t},ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":o(1,"start"),"step-end":o(1,"end")};e.Easings=y,e.parseEasing=u},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 n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(6),o=n(i),a=r(50),u=n(a),s=r(4),f=n(s),l=r(5),c=n(l),h=r(3),d=n(h),p=r(37),v=(0,d.default)("batch"),y=function(){function t(e){(0,f.default)(this,t),this.layer=e,this[v]=new u.default,this.cache=null}return(0,c.default)(t,[{key:"add",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){if(!e.layer||e.layer!==t.layer)throw new Error("Batch node must append to this layer first!");if(e[v])throw new Error("Node already batched!");var r=t;Object.defineProperty(e,"cache",{configurable:!0,get:function(){return r.cache},set:function(t){if(r.baseNode===this)r.cache&&t!==r.cache&&p.cacheContextPool.put(r.cache),r.cache=t;else if(null==t)throw new Error("Cannot set non-cachable attributes to batch members.Use batch.baseNode.attr(...)")}}),Object.defineProperty(e,"cachePriority",{configurable:!0,get:function(){return 1/0}}),e[v]=t,t[v].add(e)})}},{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){t[v].has(e)&&(delete e[v],delete e.cache,t[v].delete(e))})}},{key:"baseNode",get:function(){for(var t=[].concat((0,o.default)(this[v])),e=t[0],r=1/0,n=1/0,i=0;i<t.length;i++){var a=t[i];n>a.zIndex?(n=a.zIndex,r=a.zOrder,e=a):n===a.zIndex&&r>a.zOrder&&(r=a.zOrder,e=a)}return e}}]),t}();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(21),o=n(i),a=r(1),u=n(a),s=r(14);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}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(1),s=n(u),f=r(8),l=n(f),c=r(15),h=n(c),d=r(26),p=n(d),v=r(11),y=n(v),g=r(4),m=n(g),b=r(5),_=n(b),x=r(17),w=n(x),k=r(16),M=n(k),S=r(3),E=n(S),C=r(45),O=n(C),T=r(30),P=r(14),j=r(127),A=r(126),R=n(A),z=r(31),I=(0,E.default)("children"),L=(0,E.default)("zOrder"),N=(i=function(t){function e(t){(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r.setDefault({clip:null}),r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"clip",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,j.createSvgPath)(t),this.set("clip",t)):(this.subject.svg=null,this.set("clip",null))}}]),e}(O.default.Attr),z(i.prototype,"clip",[P.attr],(0,p.default)(i.prototype,"clip"),i.prototype),i),D=(a=o=function(t){function e(t){(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r[I]=[],r[L]=0,r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"cloneNode",value:function(t){var r=(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"cloneNode",this).call(this);if(t){this.children.forEach(function(e){var n=e.cloneNode(t);r.append(n)})}return r}},{key:"update",value:function(t){this.forceUpdate(!0)}},{key:"pointCollision",value:function(t){if((0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"pointCollision",this).call(this,t)){if(this.svg){var r=t.offsetX,n=t.offsetY,i=this.originalRect;t.isInClip=this.svg.isPointInPath(r-i[0],n-i[1])}return!0}return!1}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n||this.pointCollision(r);if(!r.terminated&&o){var a=r.offsetX-this.originalRect[0],u=r.offsetY-this.originalRect[1],s=(0,l.default)({},r);s.parentX=a,s.parentY=u;var f=this[I].slice(0).reverse(),c=[];if(!i&&"mouseenter"!==t&&"mouseleave"!==t)for(var d=0;d<f.length&&!1!==r.isInClip;d++){var p=f[d],v=p.dispatchEvent(t,s,n,i);if(v&&c.push(p),r.terminated&&!r.type.startsWith("mouse"))break}r.targetSprites=c}return r.terminated=!1,(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n)}},{key:"isNodeVisible",value:function(t){if(!t.isVisible())return!1;var e=(0,s.default)(this.outerSize,2),r=e[0],n=e[1],i=t.renderBox,o=[0,0,r,n];return!!(0,P.boxIntersect)(i,o)}},{key:"render",value:function(t,r){this.attr("clip")&&(r.save(),this.svg.beginPath().to(r),r.restore(),r.clip()),(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,t,r);for(var n=this[I],i=0;i<n.length;i++){var o=n[i],a=this.isNodeVisible(o);a&&o.draw(t),o.isDirty&&(o.isDirty=!1,o.dispatchEvent("update",{target:o,renderTime:t,isVisible:a},!0,!0))}}},{key:"children",get:function(){return this[I]}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,s.default)(t,2),r=e[0],n=e[1];if(""===r||""===n)if(this.attr("clip")){var i=this.svg,o=i.bounds;r=o[2],n=o[3]}else{var a=void 0,u=void 0;a=0,u=0,this[I].forEach(function(t){var e=t.renderBox;a=Math.max(a,e[2]),u=Math.max(u,e[3])}),r=a,n=u}return[r,n]}}]),e}(O.default),o.Attr=N,a);e.default=D,(0,l.default)(D.prototype,R.default),(0,T.registerNodeType)("group",D,!0)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=(0,i.default)("zOrder");e.default={appendChild:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t.remove();var r=this.children;r.push(t),this[o]=this[o]||0,t.connect(this,this[o]++);for(var n=r.length-1;n>0;n--){var i=r[n],a=r[n-1];i.zIndex<a.zIndex&&(r[n]=a,r[n-1]=i)}return e&&t.forceUpdate(),t},append: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)})},removeChild:function(t){var e=this.children.indexOf(t);return-1===e?null:(this.children.splice(e,1),(this.isVisible(t)||t.lastRenderBox)&&t.forceUpdate(),t.disconnect(this),t)},clear:function(){var t=this;return this.children.slice(0).map(function(e){return t.removeChild(e)})},insertBefore:function(t,e){var r=this.children.indexOf(e);if(r>=0){this.removeChild(t),this.children.splice(r,0,t);var n=e.zOrder;t.connect(this,n),t.forceUpdate();for(var i=0;i<this.children.length;i++)if(i!==r){var a=this.children[i],u=a.zOrder;u>=n&&(delete a.zOrder,Object.defineProperty(a,"zOrder",{value:u+1,writable:!1,configurable:!0}))}this[o]=this[o]||0,this[o]++}return t}}},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,f){return{left:u(t,e,r,n,i,o,a,s,f),right:u(a,s,i,o,r,n,t,e,1-f,!0)}}function u(t,e,r,n,i,o,a,u,s,f){var l=(r-t)*s+t,c=(n-e)*s+e,h=(i-r)*s+r,d=(o-n)*s+n,p=(a-i)*s+i,v=(u-o)*s+o,y=(h-l)*s+l,g=(d-c)*s+c,m=(p-h)*s+h,b=(v-d)*s+d,_=(m-y)*s+y,x=(b-g)*s+g;return f?[_,x,y,g,l,c,t,e]:[t,e,l,c,y,g,_,x]}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 f(t){var e=0,r=0,n=[];return t.forEach(function(t){var i=(0,k.default)(t),o=i[0],a=i.slice(1);"M"===o?(e=a[0],r=a[1]):(n.push([e,r].concat((0,x.default)(a))),e=a[4],r=a[5])}),[n]}function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,n=f(t.path),a=f(e.path),u=n.length,l=a.length;return u>l?i(a,u-l):u<l&&o(n,l-u),n=(0,M.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,M.sortCurves)(t,a[e])}),[n,a]}function c(t,e,r,n,i){return[t+(r-t)*i,e+(n-e)*i]}function h(t,e,r){return c(t[0],t[1],e[0],e[1],r).concat(c(t[2],t[3],e[2],e[3],r)).concat(c(t[4],t[5],e[4],e[5],r)).concat(c(t[6],t[7],e[6],e[7],r))}function d(t,e,r){var n=l(t,e),i=(0,b.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=h(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"}function p(t,e,r,n,i){var o=(r-n)/(i-n);return o<=0?t:o>=1?e:(t=new E.default(t),e=new E.default(e),d(t,e,o))}function v(t){"string"==typeof t&&(t={d:t});var e=new E.default(t.d);return(t.transform||t.trim)&&(t.transform&&(0,g.default)(t.transform).forEach(function(t){var r=(0,b.default)(t,2),n=r[0],i=r[1];Array.isArray(i)||(i=[i]),e[n].apply(e,(0,x.default)(i))}),t.trim&&e.trim()),e}Object.defineProperty(e,"__esModule",{value:!0});var y=r(21),g=n(y),m=r(1),b=n(m),_=r(6),x=n(_),w=r(96),k=n(w);e.pathEffect=p,e.createSvgPath=v;var M=r(237),S=r(83),E=n(S)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(1),o=n(i),a=r(6),u=n(a),s=r(25),f=n(s),l=r(8),c=n(l),h=r(4),d=n(h),p=r(5),v=n(p),y=r(3),g=n(y),m=r(245),b={originTime:0,playbackRate:1},_=(0,g.default)("timeMark"),x=(0,g.default)("playbackRate"),w=(0,g.default)("timers"),k=(0,g.default)("originTime"),M=(0,g.default)("setTimer"),S=(0,g.default)("parent"),E=(0,g.default)("createTime"),C=function(){function t(e,r){(0,d.default)(this,t),e instanceof t&&(r=e,e={}),e=(0,c.default)({},b,e),r&&(this[S]=r),this[_]=[{globalTime:this.globalTime,localTime:-e.originTime,entropy:-e.originTime,playbackRate:e.playbackRate,globalEntropy:0}],this[E]=(0,m.nowtime)(),this[S]&&(this[_][0].globalEntropy=this[S].entropy),this[k]=e.originTime,this[x]=e.playbackRate,this[w]=new f.default}return(0,v.default)(t,[{key:"markTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.time,r=void 0===e?this.currentTime:e,n=t.entropy,i=void 0===n?this.entropy:n,o=t.playbackRate,a=void 0===o?this.playbackRate:o,u={globalTime:this.globalTime,localTime:r,entropy:i,playbackRate:a,globalEntropy:this.globalEntropy};this[_].push(u)}},{key:"fork",value:function(e){return new t(e,this)}},{key:"seekGlobalTime",value:function(t){var e=this.seekTimeMark(t),r=this[_][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[_][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[_],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:"updateTimers",value:function(){var t=this;[].concat((0,u.default)(this[w])).forEach(function(e){var r=(0,o.default)(e,2),n=r[0],i=r[1];t[M](i.handler,i.time,n)})}},{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[w].get(t);e&&null!=e.timerID&&(this[S]?this[S].clearTimeout(e.timerID):clearTimeout(e.timerID)),this[w].delete(t)})},{key:"clearInterval",value:function(t){return this.clearTimeout(t)}},{key:"clear",value:function(){var t=this,e=this[w];[].concat((0,u.default)(e.keys())).forEach(function(e){t.clearTimeout(e)})}},{key:"setTimeout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0};return this[M](t,e)}},{key:"setInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},r=this,n=this[M](function i(){r[M](i,e,n),t()},e);return n}},{key:M,value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,g.default)("timerID");e=(0,m.formatDelay)(e);var i=this[w].get(n),o=void 0,a=null,u=void 0,s=void 0;i?(this.clearTimeout(n),o=e.isEntropy?(e.delay-(this.entropy-i.startEntropy))/Math.abs(this.playbackRate):(e.delay-(this.currentTime-i.startTime))/this.playbackRate,u=i.startTime,s=i.startEntropy):(o=e.delay/(e.isEntropy?Math.abs(this.playbackRate):this.playbackRate),u=this.currentTime,s=this.entropy);var f=this[S],l=f?f.setTimeout.bind(f):setTimeout,c=e.heading;return!f&&!1===c&&o<0&&(o=1/0),(isFinite(o)||f)&&(o=Math.ceil(o),l!==setTimeout&&(o={delay:o,heading:c}),a=l(function(){r[w].delete(n),t()},o)),this[w].set(n,{timerID:a,handler:t,time:e,startTime:u,startEntropy:s}),n}},{key:"parent",get:function(){return this[S]}},{key:"lastTimeMark",get:function(){return this[_][this[_].length-1]}},{key:"currentTime",get:function(){var t=this.lastTimeMark,e=t.localTime,r=t.globalTime;return e+(this.globalTime-r)*this.playbackRate},set:function(t){var e=this.currentTime,r=t,n=this[w];this.markTime({time:t}),[].concat((0,u.default)(n)).forEach(function(t){var i=(0,o.default)(t,2),a=i[0],u=i[1],s=u.time,f=s.isEntropy,l=s.delay,c=s.heading,h=u.handler,d=u.startTime;if(f)0===l&&(h(),n.delete(a));else{var p=d+l;(0===l||!1!==c&&(r-e)*l<0||e<p&&p<r||e>p&&p>r)&&(h(),n.delete(a))}}),this.updateTimers()}},{key:"entropy",get:function(){var t=this.lastTimeMark,e=t.entropy,r=t.globalEntropy;return e+Math.abs((this.globalEntropy-r)*this.playbackRate)},set:function(t){if(this.entropy>t){var e=this.seekTimeMark(t);this[_].length=e+1}this.markTime({entropy:t}),this.updateTimers()}},{key:"globalEntropy",get:function(){return this[S]?this[S].entropy:(0,m.nowtime)()-this[E]}},{key:"globalTime",get:function(){return this[S]?this[S].currentTime:(0,m.nowtime)()}},{key:"playbackRate",get:function(){return this[x]},set:function(t){t!==this.playbackRate&&(this.markTime({playbackRate:t}),this[x]=t,this.updateTimers())}},{key:"paused",get:function(){if(0===this.playbackRate)return!0;for(var t=this.parent;t;){if(0===t.playbackRate)return!0;t=t.parent}return!1}}]),t}();t.exports=C},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t&&"string"==typeof t?I(t).toString():t}function o(t){if("string"!=typeof t)return t;var e=t.match(/(?:^|\s)+((?:scale|rotate|translate|skew|matrix)\([^()]+\))/g),r={};return e&&e.forEach(function(t){var e=t.match(/(scale|rotate|translate|skew|matrix)\(([^()]+)\)/),n=(0,O.default)(e,3),i=n[1],o=n[2];r[i]="rotate"===i?f(o)[0]:f(o)}),r}function a(t,e){if("string"==typeof t){return t.split(/[\s,]+/g).map(function(t){return e?e(t):t})}return t}function u(t){return a(t)}function s(t){return a(t,parseInt)}function f(t){return a(t,parseFloat)}function l(t){return Array.isArray(t)?1===t.length?[t[0],t[0]]:t:[t,t]}function c(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,E.default)(t),[0,0,0,0]).slice(0,4):[t,t,t,t]}function h(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],f=u[1],l=u[2],c=u[3],h=Math.max(i,f),d=Math.min(o,l),p=Math.min(a,c),v=Math.max(n,s);return p>=h&&d>=v?[v,h,d,p]:null}function d(t){return[t[0],t[1],t[2]-t[0],t[3]-t[1]]}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function v(t){return[t[0],t[1],t[0]+t[2],t[1]+t[3]]}function y(t){var e=v(t),r=(0,O.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 g(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 m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return""===t?t:"string"==typeof t&&(0,M.default)(Number(t))?t:t+e}function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.sort(function(t,r){if(e){var n=[r,t];t=n[0],r=n[1]}return t.zIndex===r.zIndex?t.zOrder-r.zOrder:t.zIndex-r.zIndex})}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";"undefined"==typeof console||L.has(t)||(console[e](t),L.add(t))}Object.defineProperty(e,"__esModule",{value:!0}),e.sortOrderedSprites=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.praseString=e.oneOrTwoValues=e.parseColor=e.notice=e.Color=void 0;var x=r(50),w=n(x),k=r(94),M=n(k),S=r(6),E=n(S),C=r(1),O=n(C),T=r(4),P=n(T),j=r(5),A=n(j),R=r(160),z=function(){function t(e){if((0,P.default)(this,t),"string"==typeof e){var r=R.get(e||"rgba(0,0,0,0)"),n=r.model,i=r.value;this.model=n,this.value=i}else this.model=e.model,this.value=e.value}return(0,A.default)(t,[{key:"toString",value:function(){var t=(0,O.default)(this.value,4),e=t[0],r=t[1],n=t[2],i=t[3],o=this.model;return"rgb"===o?o+"a("+e+","+r+","+n+","+i+")":o+"a("+e+","+r+"%,"+n+"%,"+i+")"}},{key:"str",get:function(){return String(this)}}]),t}();e.Color=z;var I=function(t){return new z(t)},L=new w.default;e.notice=_,e.parseColor=I,e.oneOrTwoValues=l,e.praseString=u,e.parseStringInt=s,e.parseStringFloat=f,e.parseColorString=i,e.fourValuesShortCut=c,e.parseStringTransform=o,e.boxIntersect=h,e.boxToRect=d,e.boxEqual=p,e.boxUnion=g,e.rectToBox=v,e.rectVertices=y,e.appendUnit=m,e.sortOrderedSprites=b},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(94),o=n(i),a=r(61),u=n(a),s=r(22),f=n(s),l=r(60),c=n(l),h=r(8),d=n(h),p=r(155),v=n(p),y=r(6),g=n(y),m=r(1),b=n(m),_=r(11),x=n(_),w=r(4),k=n(w),M=r(5),S=n(M),E=r(17),C=n(E),O=r(15),T=n(O),P=r(16),j=n(P),A=r(3),R=n(A),z=r(84),I=n(z),L=r(58),N=n(L),D=r(48),F=r(47),V=D.utils.setDeprecation,B=D.utils.sortOrderedSprites,q=(0,R.default)("layerMap"),U=(0,R.default)("zOrder"),G=(0,R.default)("layers"),W=(0,R.default)("snapshot"),H=(0,R.default)("viewport"),J=(0,R.default)("resolution"),X=(0,R.default)("resizeHandler"),Y=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.default)(this,e);var n=(0,C.default)(this,(e.__proto__||(0,x.default)(e)).call(this));t=(0,F.getContainer)(t),n.container=t,3===arguments.length&&(V("Scene(container, width, height)","Instead use Scene(container, {viewport, resolution})."),r={viewport:[arguments[1],arguments[2]]}),n[U]=0,n[q]={},n[G]=[],n[W]=(0,F.createCanvas)();var i=r.viewport||["",""],o=(0,b.default)(i,2),a=o[0],u=o[1];n.viewport=[a,u],n.stickMode=r.stickMode||"scale",n.stickExtend=!!r.stickExtend,n.stickOffset=[0,0],n[J]=r.resolution||[].concat((0,g.default)(n.viewport)),n.namespaceURI="http://spritejs.org/scene";var s=n;return n.ownerDocument={createElementNS:function(t,e){return s.layer(e)}},["mousedown","mouseup","mousemove","touchstart","touchend","touchmove","click","dblclick"].forEach(function(t){return n.delegateEvent(t)}),t.addEventListener("DOMNodeRemovedFromDocument",function(){n[X]&&(window.removeEventListener("resize",n[X]),delete n[X])}),n}return(0,j.default)(e,t),(0,S.default)(e,[{key:"insertBefore",value:function(t,e){var r=this;if(!this.hasLayer(e))throw new Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");this.appendLayer(t),this.container.insertBefore(t.canvas,e.canvas);var n=void 0;n=this.container.querySelectorAll?this.container.querySelectorAll("canvas"):this.container.children,n.forEach(function(t,e){var n=t.dataset.layerId;if(n){var i=r.layer(n);delete i.zOrder,Object.defineProperty(i,"zOrder",{value:e,writable:!1,configurable:!0})}}),this[G]=B((0,v.default)(this[q]),!0)}},{key:"appendChild",value:function(t){return this.appendLayer(t)}},{key:"removeChild",value:function(t){return this.removeLayer(t)}},{key:"updateViewport",value:function(t){var e=this,r=(0,b.default)(this.layerViewport,2),n=r[0],i=r[1],o=t?[t]:this[G],a=this.stickMode,u=this.stickExtend;return o.forEach(function(t){var r=t.canvas;r.style.width=n+"px",r.style.height=i+"px",(0,d.default)(r.style,{top:"",right:"",bottom:"",left:"",transform:""}),u||"width"!==a&&"height"!==a?u||"right"!==a&&"bottom"!==a?(r.style.top="0",r.style.left="0"):(r.style.right="0",r.style.bottom="0"):(r.style.top="50%",r.style.left="50%",r.style.transform="translate(-50%, -50%)"),u&&(t.resolution=e.layerResolution)}),this.dispatchEvent("viewportChange",{target:this,layers:o}),this}},{key:"updateResolution",value:function(t){var e=this,r=t?[t]:this[G];return r.forEach(function(t){t.resolution=e.layerResolution}),this.dispatchEvent("resolutionChange",{target:this,layers:r}),this}},{key:"setViewport",value:function(t,e){return this.viewport=[t,e],this}},{key:"setResolution",value:function(t,e){return this.resolution=[t,e],this}},{key:"toGlobalPos",value:function(t,e){var r=this.layerResolution,n=this.layerViewport;return t=t*n[0]/r[0]+this.stickOffset[0],e=e*n[1]/r[1]+this.stickOffset[1],[t,e]}},{key:"toLocalPos",value:function(t,e){var r=this.layerResolution,n=this.layerViewport;return t=t*r[0]/n[0]-this.stickOffset[0],e=e*r[1]/n[1]-this.stickOffset[1],[t,e]}},{key:"delegateEvent",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;"string"==typeof t&&(t={type:t,passive:!0});var n=t,i=n.type,o=n.passive;r.addEventListener(i,function(t){var r=e[G],n={originalEvent:t,type:i,stopDispatch:function(){this.terminated=!0}},o=0,a=0,u=0,s=0;if(t instanceof CustomEvent){if((0,d.default)(n,t.detail),null!=n.x&&null!=n.y){o=n.x,a=n.y;var f=e.toGlobalPos(o,a),l=(0,b.default)(f,2);u=l[0],s=l[1]}else if(null!=n.originalX&&null!=n.originalY){u=n.originalX,s=n.originalY;var c=e.toLocalPos(u,s),h=(0,b.default)(c,2);o=h[0],a=h[1]}}else if(t.target.dataset.layerId&&e[q][t.target.dataset.layerId]){var p=t.target.getBoundingClientRect(),v=p.left,y=p.top,g=t.changedTouches?t.changedTouches[0]:t,m=g.clientX,_=g.clientY;u=Math.round((0|m)-v),s=Math.round((0|_)-y);var x=e.toLocalPos(u,s),w=(0,b.default)(x,2);o=w[0],a=w[1]}(0,d.default)(n,{layerX:o,layerY:a,originalX:u,originalY:s,x:o,y:a});for(var k=0;k<r.length;k++){var M=r[k];M.handleEvent&&M.dispatchEvent(i,n)}},{passive:o})}},{key:"dispatchEvent",value:function(t,r){this.container.dispatchEvent(new CustomEvent(t,{detail:r})),(0,T.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"dispatchEvent",this).call(this,t,r,!0)}},{key:"preload",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(u.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,a,s,l,c,h,d;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(o=[],a=[],s=0;s<n.length;s++)l=n[s],c=void 0,"string"==typeof l?c=N.default.loadTexture(l):Array.isArray(l)?c=N.default.loadFrames.apply(N.default,(0,g.default)(l)):(h=l.id,d=l.src,c=N.default.loadTexture({id:h,src:d})),c instanceof f.default||(c=f.default.resolve(c)),a.push(c.then(function(t){o.push(t),e.dispatchEvent("preload",{target:e,current:t,loaded:o,resources:n})}));return t.next=4,f.default.all(a);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;if(null!=e.zIndex&&(r=e.zIndex,delete e.zIndex),"undefined"!=typeof window&&window.getComputedStyle){var n=window.getComputedStyle&&window.getComputedStyle(this.container).position;this.container.style&&"absolute"!==n&&"fixed"!==n&&(this.container.style.position="relative")}this.appendLayer(new I.default(t,e),r)}return this[q][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[q][r]!==t)throw new Error("layer "+r+" already exists! remove first...");return this.removeLayer(t),this[q][r]=t,t.connect(this,this[U]++,e),this.updateViewport(t),this.stickExtend||(t.resolution=this.layerResolution),this[G]=B((0,v.default)(this[q]),!0),F.setDebugToolsObserver&&"__debuglayer__"!==t.id&&(0,F.setDebugToolsObserver)(this,t),t}},{key:"removeLayer",value:function(t){return"string"==typeof t&&(t=this[q][t]),this.hasLayer(t)?(t.disconnect(this),delete this[q][t.id],this[G]=B((0,v.default)(this[q]),!0),F.removeDebugToolsObserver&&(0,F.removeDebugToolsObserver)(t),t):null}},{key:"hasLayer",value:function(t){var e=void 0;return"string"==typeof t?(e=t,t=this[q][t]):e=t.id,t&&this[q][e]===t}},{key:"snapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,c.default)(u.default.mark(function t(){var e,r,n,i,o,a,s,l,c,h,d;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,b.default)(this.viewport,2),r=e[0],n=e[1],i=this[W],i.width=r,i.height=n,o=(0,b.default)(this.layerViewport,2),a=o[0],s=o[1],l=this[G].slice(0).reverse(),c=i.getContext("2d"),h=l.map(function(t){return t.prepareRender()}),t.next=10,f.default.all(h);case 10:return d=[0,0,a,s],this.stickExtend||("width"===this.stickMode||"height"===this.stickMode?(d[0]=(r-a)/2,d[1]=(n-s)/2):"bottom"!==this.stickMode&&"right"!==this.stickMode||(d[0]=r-a,d[1]=n-s)),l.forEach(function(t){c.drawImage.apply(c,[t.canvas].concat(d))}),t.abrupt("return",i);case 14:case"end":return t.stop()}},t,this)}));return t}()},{key:"width",get:function(){return this.viewport[0]}},{key:"height",get:function(){return this.viewport[1]}},{key:"layerViewport",get:function(){var t=(0,b.default)(this.resolution,2),e=t[0],r=t[1],n=(0,b.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend,s=i,f=o;return u||("width"===a||"top"===a||"bottom"===a?f=i*r/e:"height"!==a&&"left"!==a&&"right"!==a||(s=o*e/r)),[s,f]}},{key:"distortion",get:function(){return"scale"!==this.stickMode?1:this.viewport[1]*this.resolution[0]/(this.viewport[0]*this.resolution[1])}},{key:"viewport",set:function(t){var e=this,r=(0,b.default)(t,2),n=r[0],i=r[1];this[H]=[n,i],"auto"===n||"auto"===i?this[X]||(this[X]=function(){return e.updateViewport()},window.addEventListener("resize",this[X])):this[X]&&(window.removeEventListener("resize",this[X]),delete this[X]),this[G].length&&this.updateViewport()},get:function(){var t=(0,b.default)(this[H],2),e=t[0],r=t[1];return(""===e||(0,o.default)(Number(e)))&&(e=this.container.clientWidth),(""===r||(0,o.default)(Number(r)))&&(r=this.container.clientHeight),[e,r]}},{key:"layerResolution",get:function(){var t=(0,b.default)(this.resolution,2),e=t[0],r=t[1],n=(0,b.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend,s=e,f=r,l=0,c=0;if(u)if("width"===a||"top"===a||"bottom"===a){var h=e*o/i;f=h,"width"===a?l=Math.round((h-r)/2):"bottom"===a&&(l=h-r)}else if("height"===a||"left"===a||"right"===a){var d=r*i/o;s=d,"height"===a?c=Math.round((d-e)/2):"right"===a&&(c=d-e)}return this.stickOffset=[c,l],[s,f,c,l]}},{key:"resolution",set:function(t){var e=(0,b.default)(t,2),r=e[0],n=e[1];this[J]=[r,n],this.updateResolution()},get:function(){return this[J]}},{key:"layers",get:function(){return this[G]}}]),e}(D.BaseNode);e.default=Y},function(t,e,r){t.exports=r(132)},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(10),o=r(90),a=r(134),u=r(59),s=n(u);s.Axios=a,s.create=function(t){return n(i.merge(u,t))},s.Cancel=r(87),s.CancelToken=r(133),s.isCancel=r(88),s.all=function(t){return Promise.all(t)},s.spread=r(148),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(87);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(59),o=r(10),a=r(135),u=r(136),s=r(144),f=r(142);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=f(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(10);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(10),o=r(139),a=r(88),u=r(59);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(89);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(10);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(10);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(10);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(10);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(10);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(10);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(){v("spritejs.Paper2D","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(c.default,[null].concat(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.Effects=e.Resource=e.Color=e.createNode=e.registerNodeType=e.Paper2D=e.Scene=e.Layer=e.Group=e.Path=e.Label=e.Sprite=e.BaseSprite=e.BaseNode=e.utils=e.math=e.version=e._debugger=void 0;var o=r(48),a=r(85),u=n(a),s=r(84),f=n(s),l=r(130),c=n(l),h=r(58),d=n(h),p=r(47),v=o.utils.setDeprecation;p.shim&&(0,p.shim)(),(0,o.registerNodeType)("layer",f.default,!0),(0,o.registerNodeType)("sprite",u.default);e._debugger=p._debugger,e.version="2.0.0-alpha.29",e.math=o.math,e.utils=o.utils,e.BaseNode=o.BaseNode,e.BaseSprite=o.BaseSprite,e.Sprite=u.default,e.Label=o.Label,e.Path=o.Path,e.Group=o.Group,e.Layer=f.default,e.Scene=c.default,e.Paper2D=i,e.registerNodeType=o.registerNodeType,e.createNode=o.createNode,e.Color=o.Color,e.Resource=d.default,e.Effects=o.Effects},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=void 0,n=void 0,i=void 0,o=void 0;e[l]=e[l]||{},e[l].initObserver=function(){function a(){if(h.selectedSprite){h.selectedSprite.off("update",s),h.selectedSprite=null;var t=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(t),i&&i.attr("opacity",0)}}function u(t){var e=t.renderRect;i||(i=new f.default,i.attr({zIndex:1/0,bgcolor:"rgba(0, 0, 0, 0.3)"}),o.append(i)),i.attr({pos:[e[0],e[1]],size:[e[2],e[3]]})}var s=void 0;o=t.layer("__debuglayer__"),o.canvas.style.background="transparent",o.zIndex=2147483647,r=function(t){var e=t.targetSprites;if(e.length){var r=e[0];if(r){if(h.selectedSprite===r)return;if(h.selectedSprite){var n=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(n),h.selectedSprite.off("update",s)}var i=new CustomEvent("spritejs: observer",{detail:r.attr()});document.dispatchEvent(i);var o=function(t){var e=new CustomEvent("spritejs: observer",{detail:t.attr()});document.dispatchEvent(e),u(t)};s=function(t){o(t.target)},o(r),r.on("update",s),h.selectedSprite=r,t.stopDispatch()}}else a()},e.on("click",r),n=function(t){if(!h.selectedSprite){var e=t.targetSprites[0];e?u(e):(o.remove(i),i=null)}},e.on("mousemove",n),c=!0},e[l].removeObserver=function(){r&&(e.off("click",r),r=null),n&&(e.off("mousemove",n),n=null),i&&(e.remove(i),i=null),o&&t.removeLayer(o),h.selectedSprite=null,c=!1},c&&e[l].initObserver(),e[l].attrChange=function(t){var e=t.detail,r=e.key,n=e.value;if(h.selectedSprite){var i=h.selectedSprite,o=r.split("."),a=o[1];if(2===o.length)try{i.attr(a,n)}catch(t){}else{for(var u=i.attr(a),s=2;s<o.length-1;s++)u[o[s]]=u[o[s]]||{};u[o[o.length-1]]=n;try{i.attr(a,u)}catch(t){}}}};var a=e[l];document.addEventListener("spritejs: devtools-opened",a.initObserver),document.addEventListener("spritejs: devtools-closed",a.removeObserver),document.addEventListener("spritejs: attr-change",a.attrChange)}function o(t){var e=t[l];e&&(document.removeEventListener("spritejs: devtools-opened",e.initObserver),document.removeEventListener("spritejs: devtools-closed",e.removeObserver),document.removeEventListener("spritejs: attr-change",e.attrChange))}Object.defineProperty(e,"__esModule",{value:!0}),e._debugger=void 0;var a=r(3),u=n(a);e.setDebugToolsObserver=i,e.removeDebugToolsObserver=o;var s=r(85),f=n(s),l=(0,u.default)("debugToolsHandler"),c=!1,h=e._debugger={selectedSprite:null}},function(t,e,r){t.exports={default:r(163),__esModule:!0}},function(t,e,r){t.exports={default:r(168),__esModule:!0}},function(t,e,r){t.exports={default:r(169),__esModule:!0}},function(t,e,r){t.exports={default:r(175),__esModule:!0}},function(t,e,r){t.exports={default:r(176),__esModule:!0}},function(t,e,r){t.exports={default:r(180),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(49),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)>c&&++s<h);return u}function s(t,e,r,n){for(var i=0;i<l;++i){var u=a(e,r,n);if(0===u)return e;e-=(o(e,r,n)-t)/u}return e}function f(t){return t}var l=4,c=1e-7,h=10,d=11,p=1/(d-1),v="function"==typeof Float32Array;t.exports=function(t,e,r,n){function i(e){for(var n=0,i=1,o=d-1;i!==o&&l[i]<=e;++i)n+=p;--i;var f=(e-l[i])/(l[i+1]-l[i]),c=n+f*p,h=a(c,t,r);return h>=.001?s(e,c,t,r):0===h?c:u(e,n,n+p,t,r)}if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&r===n)return f;for(var l=v?new Float32Array(d):new Array(d),c=0;c<d;++c)l[c]=o(c*p,t,r);return function(t){return 0===t?0:1===t?1:o(i(t),e,n)}}},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=r(159),a=r(229),u={};for(var s in o)o.hasOwnProperty(s)&&(u[o[s]]=s);var f=t.exports={to:{}};f.get=function(t){var e,r,n=t.substring(0,3).toLowerCase();switch(n){case"hsl":e=f.get.hsl(t),r="hsl";break;case"hwb":e=f.get.hwb(t),r="hwb";break;default:e=f.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},f.get.rgb=function(t){if(!t)return null;var e,r,i,a=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,s=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,f=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,l=/(\D+)/,c=[0,0,0,1];if(e=t.match(u)){for(i=e[2],e=e[1],r=0;r<3;r++){var h=2*r;c[r]=parseInt(e.slice(h,h+2),16)}i&&(c[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(a)){for(e=e[1],i=e[3],r=0;r<3;r++)c[r]=parseInt(e[r]+e[r],16);i&&(c[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(s)){for(r=0;r<3;r++)c[r]=parseInt(e[r+1],0);e[4]&&(c[3]=parseFloat(e[4]))}else{if(!(e=t.match(f)))return(e=t.match(l))?"transparent"===e[1]?[0,0,0,0]:(c=o[e[1]])?(c[3]=1,c):null:null;for(r=0;r<3;r++)c[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(c[3]=parseFloat(e[4]))}for(r=0;r<3;r++)c[r]=n(c[r],0,255);return c[3]=n(c[3],0,1),c},f.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},f.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},f.to.hex=function(){var t=a(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(Math.round(255*t[3])):"")},f.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},f.to.rgb.percent=function(){var t=a(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},f.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},f.to.hwb=function(){var t=a(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},f.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,e,r){r(29),r(199),t.exports=r(0).Array.from},function(t,e,r){r(36),r(29),t.exports=r(197)},function(t,e,r){r(36),r(29),t.exports=r(198)},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(56),r(29),r(36),r(201),r(216),r(215),r(214),t.exports=r(0).Map},function(t,e,r){r(202),t.exports=r(0).Number.isNaN},function(t,e,r){r(203),t.exports=r(0).Object.assign},function(t,e,r){r(204);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){r(205);var n=r(0).Object;t.exports=function(t,e){return n.defineProperties(t,e)}},function(t,e,r){r(206);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){r(217),t.exports=r(0).Object.entries},function(t,e,r){r(207);var n=r(0).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},function(t,e,r){r(208),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){r(209),t.exports=r(0).Object.keys},function(t,e,r){r(210),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){r(218),t.exports=r(0).Object.values},function(t,e,r){r(56),r(29),r(36),r(211),r(219),r(220),t.exports=r(0).Promise},function(t,e,r){r(56),r(29),r(36),r(212),r(223),r(222),r(221),t.exports=r(0).Set},function(t,e,r){r(213),r(56),r(224),r(225),t.exports=r(0).Symbol},function(t,e,r){r(29),r(36),t.exports=r(80).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(24),i=r(54),o=r(196);t.exports=function(t){return function(e,r,a){var u,s=n(e),f=i(s.length),l=o(a,f);if(t&&r!=r){for(;f>l;)if((u=s[l++])!=u)return!0}else for(;f>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}}},function(t,e,r){var n=r(20),i=r(66),o=r(35),a=r(54),u=r(186);t.exports=function(t,e){var r=1==t,s=2==t,f=3==t,l=4==t,c=6==t,h=5==t||c,d=e||u;return function(e,u,p){for(var v,y,g=o(e),m=i(g),b=n(u,p,3),_=a(m.length),x=0,w=r?d(e,_):s?d(e,0):void 0;_>x;x++)if((h||x in m)&&(v=m[x],y=b(v,x,g),t))if(r)w[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:w.push(v)}else if(l)return!1;return c?-1:f||l?l:w}}},function(t,e,r){var n=r(19),i=r(103),o=r(7)("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(185);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){"use strict";var n=r(13),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(34),i=r(71),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,f=0;u.length>f;)s.call(t,a=u[f++])&&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(53),i=r(42),o=r(43),a={};r(23)(a,r(7)("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(9),i=r(119).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(39)(a);t.exports=function(){var t,e,r,f=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(f)};else if(o){var l=!0,c=document.createTextNode("");new o(f).observe(c,{characterData:!0}),r=function(){c.data=l=!l}}else if(u&&u.resolve){var h=u.resolve();r=function(){h.then(f)}}else r=function(){i.call(n,f)};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(34),i=r(71),o=r(41),a=r(35),u=r(66),s=Object.assign;t.exports=!s||r(27)(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,f=1,l=i.f,c=o.f;s>f;)for(var h,d=u(arguments[f++]),p=l?n(d).concat(l(d)):n(d),v=p.length,y=0;v>y;)c.call(d,h=p[y++])&&(r[h]=d[h]);return r}:s},function(t,e,r){var n=r(24),i=r(108).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(19),i=r(18),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(20)(Function.call,r(70).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(76),i=r(63);t.exports=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),f=u.length;return s<0||s>=f?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===f||(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(76),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(18),i=r(81);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(51),i=r(7)("iterator"),o=r(33);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(20),i=r(2),o=r(35),a=r(104),u=r(102),s=r(54),f=r(187),l=r(81);i(i.S+i.F*!r(105)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,c,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,y=void 0!==v,g=0,m=l(h);if(y&&(v=n(v,p>2?arguments[2]:void 0,2)),void 0==m||d==Array&&u(m))for(e=s(h.length),r=new d(e);e>g;g++)f(r,g,y?v(h[g],g):h[g]);else for(c=m.call(h),r=new d;!(i=c.next()).done;g++)f(r,g,y?a(c,v,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(181),i=r(106),o=r(33),a=r(24);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(97),i=r(78);t.exports=r(99)("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(2);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(2);n(n.S+n.F,"Object",{assign:r(192)})},function(t,e,r){var n=r(2);n(n.S,"Object",{create:r(53)})},function(t,e,r){var n=r(2);n(n.S+n.F*!r(12),"Object",{defineProperties:r(107)})},function(t,e,r){var n=r(2);n(n.S+n.F*!r(12),"Object",{defineProperty:r(13).f})},function(t,e,r){var n=r(24),i=r(70).f;r(72)("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},function(t,e,r){var n=r(35),i=r(109);r(72)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(35),i=r(34);r(72)("keys",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(2);n(n.S,"Object",{setPrototypeOf:r(194).set})},function(t,e,r){"use strict";var n,i,o,a,u=r(52),s=r(9),f=r(20),l=r(51),c=r(2),h=r(19),d=r(38),p=r(62),v=r(40),y=r(118),g=r(119).set,m=r(191)(),b=r(69),_=r(112),x=r(113),w=s.TypeError,k=s.process,M=s.Promise,S="process"==l(k),E=function(){},C=i=b.f,O=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[r(7)("species")]=function(t){t(E,E)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e}catch(t){}}(),T=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},P=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,f=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?r=n:(f&&f.enter(),r=a(n),f&&f.exit()),r===e.promise?s(w("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&&j(t)})}},j=function(t){g.call(s,function(){var e,r,n,i=t._v,o=A(t);if(o&&(e=_(function(){S?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=S||A(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},A=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if(e=r[n++],e.fail||!A(e.promise))return!1;return!0},R=function(t){g.call(s,function(){var e;S?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()),P(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw w("Promise can't be resolved itself");(e=T(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,f(I,n,1),f(z,n,1))}catch(t){z.call(n,t)}}):(r._v=t,r._s=1,P(r,!1))}catch(t){z.call({_w:r,_d:!1},t)}}};O||(M=function(t){p(this,M,"Promise","_h"),d(t),n.call(this);try{t(f(I,this,1),f(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(73)(M.prototype,{then:function(t,e){var r=C(y(this,M));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=S?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&P(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=f(I,t,1),this.reject=f(z,t,1)},b.f=C=function(t){return t===M||t===a?new o(t):i(t)}),c(c.G+c.W+c.F*!O,{Promise:M}),r(43)(M,"Promise"),r(117)("Promise"),a=r(0).Promise,c(c.S+c.F*!O,"Promise",{reject:function(t){var e=C(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(u||!O),"Promise",{resolve:function(t){return x(u&&this===a?M:this,t)}}),c(c.S+c.F*!(O&&r(105)(function(t){M.all(t).catch(E)})),"Promise",{all:function(t){var e=this,r=C(e),n=r.resolve,i=r.reject,o=_(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=C(e),n=r.reject,i=_(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(97),i=r(78);t.exports=r(99)("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(9),i=r(28),o=r(12),a=r(2),u=r(114),s=r(68).KEY,f=r(27),l=r(75),c=r(43),h=r(55),d=r(7),p=r(80),v=r(79),y=r(188),g=r(103),m=r(18),b=r(24),_=r(77),x=r(42),w=r(53),k=r(193),M=r(70),S=r(13),E=r(34),C=M.f,O=S.f,T=k.f,P=n.Symbol,j=n.JSON,A=j&&j.stringify,R=d("_hidden"),z=d("toPrimitive"),I={}.propertyIsEnumerable,L=l("symbol-registry"),N=l("symbols"),D=l("op-symbols"),F=Object.prototype,V="function"==typeof P,B=n.QObject,q=!B||!B.prototype||!B.prototype.findChild,U=o&&f(function(){return 7!=w(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=C(F,e);n&&delete F[e],O(t,e,r),n&&t!==F&&O(F,e,n)}:O,G=function(t){var e=N[t]=w(P.prototype);return e._k=t,e},W=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},H=function(t,e,r){return t===F&&H(D,e,r),m(t),e=_(e,!0),m(r),i(N,e)?(r.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),r=w(r,{enumerable:x(0,!1)})):(i(t,R)||O(t,R,x(1,{})),t[R][e]=!0),U(t,e,r)):O(t,e,r)},J=function(t,e){m(t);for(var r,n=y(e=b(e)),i=0,o=n.length;o>i;)H(t,r=n[i++],e[r]);return t},X=function(t,e){return void 0===e?w(t):J(w(t),e)},Y=function(t){var e=I.call(this,t=_(t,!0));return!(this===F&&i(N,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(N,t)||i(this,R)&&this[R][t])||e)},$=function(t,e){if(t=b(t),e=_(e,!0),t!==F||!i(N,e)||i(D,e)){var r=C(t,e);return!r||!i(N,e)||i(t,R)&&t[R][e]||(r.enumerable=!0),r}},K=function(t){for(var e,r=T(b(t)),n=[],o=0;r.length>o;)i(N,e=r[o++])||e==R||e==s||n.push(e);return n},Q=function(t){for(var e,r=t===F,n=T(r?D:b(t)),o=[],a=0;n.length>a;)!i(N,e=n[a++])||r&&!i(F,e)||o.push(N[e]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===F&&e.call(D,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),U(this,t,x(1,r))};return o&&q&&U(F,t,{configurable:!0,set:e}),G(t)},u(P.prototype,"toString",function(){return this._k}),M.f=$,S.f=H,r(108).f=k.f=K,r(41).f=Y,r(71).f=Q,o&&!r(52)&&u(F,"propertyIsEnumerable",Y,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=E(d.store),rt=0;et.length>rt;)v(et[rt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return i(L,t+="")?L[t]:L[t]=P(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!V,"Object",{create:X,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:Q}),j&&a(a.S+a.F*(!V||f(function(){var t=P();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!W(t)){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);return e=n[1],"function"==typeof e&&(r=e),!r&&g(e)||(e=function(t,e){if(r&&(e=r.call(this,t,e)),!W(e))return e}),n[1]=e,A.apply(j,n)}}}),P.prototype[z]||r(23)(P.prototype,z,P.prototype.valueOf),c(P,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(t,e,r){r(115)("Map")},function(t,e,r){r(116)("Map")},function(t,e,r){var n=r(2);n(n.P+n.R,"Map",{toJSON:r(98)("Map")})},function(t,e,r){var n=r(2),i=r(111)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){var n=r(2),i=r(111)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(9),a=r(118),u=r(113);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(2),i=r(69),o=r(112);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(115)("Set")},function(t,e,r){r(116)("Set")},function(t,e,r){var n=r(2);n(n.P+n.R,"Set",{toJSON:r(98)("Set")})},function(t,e,r){r(79)("asyncIterator")},function(t,e,r){r(79)("observable")},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(228),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 d(n||[]);return a._invoke=f(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,f=s.value;return f&&"object"==typeof f&&m.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(f).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 f(t,e,r){var i=S;return function(o,a){if(i===C)throw new Error("Generator is already running");if(i===O){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=l(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===S)throw i=O,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=C;var f=n(t,e,r);if("normal"===f.type){if(i=r.done?O:E,f.arg===T)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(i=O,r.method="throw",r.arg=f.arg)}}}function l(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,l(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 c(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 h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(c,this),this.reset(!0)}function p(t){if(t){var e=t[_];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:{},_=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",w=b.toStringTag||"@@toStringTag",k="object"==typeof t,M=e.regeneratorRuntime;if(M)return void(k&&(t.exports=M));M=e.regeneratorRuntime=k?t.exports:{},M.wrap=r;var S="suspendedStart",E="suspendedYield",C="executing",O="completed",T={},P={};P[_]=function(){return this};var j=Object.getPrototypeOf,A=j&&j(j(p([])));A&&A!==g&&m.call(A,_)&&(P=A);var R=a.prototype=i.prototype=Object.create(P);o.prototype=R.constructor=a,a.constructor=o,a[w]=o.displayName="GeneratorFunction",M.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},M.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,w in t||(t[w]="GeneratorFunction")),t.prototype=Object.create(R),t},M.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[x]=function(){return this},M.AsyncIterator=s,M.async=function(t,e,n,i){var o=new s(r(t,e,n,i));return M.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},u(R),R[w]="Generator",R[_]=function(){return this},R.toString=function(){return"[object Generator]"},M.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}},M.values=p,d.prototype={constructor:d,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(h),!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),h(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;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:p(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),T}}}(function(){return this}()||Function("return this")())},function(t,e,r){"use strict";var n=r(230),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var u=t[r];n(u)?e=i.call(e,o.call(u)):e.push(u)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},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(22),o=n(i),a=r(95),u=n(a),s=r(8),f=n(s),l=r(4),c=n(l),h=r(5),d=n(h),p=r(3),v=n(p),y=r(232),g=r(128),m=n(g),b=r(121),_=(0,v.default)("timing"),x=(0,v.default)("keyframes"),w=(0,v.default)("initState"),k=(0,v.default)("readyDefer"),M=(0,v.default)("finishedDefer"),S=(0,v.default)("effects"),E=(0,v.default)("activeReadyTimer"),C=(0,v.default)("activeFinishTimer"),O=(0,v.default)("removeDefer"),T={delay:0,endDelay:0,fill:"auto",iterations:1,playbackRate:1,direction:"normal",easing:"linear",effect:null},P=function(){function t(e,r,n){var i=this;if((0,c.default)(this,t),Array.isArray(e)){var o=[e[0],e,r];e=o[0],r=o[1],n=o[2]}"number"==typeof n&&(n={duration:n}),this[_]=(0,f.default)({},T,n),this[_].easing=(0,b.parseEasing)(this[_].easing),this[x]=(0,y.calculateFramesOffset)(r);var a=this[x][this[x].length-1];this[w]={},(0,u.default)(a).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(i[w][t]=e[t])}),this[x]=this[x].map(function(t){return(0,f.default)({},i[w],t)}),0!==this[x][0].offset&&this[x].unshift((0,f.default)({},this[w],{offset:0})),a.offset<1&&this[x].push((0,f.default)({},a,{offset:1})),this[S]={},this.timeline=null}return(0,d.default)(t,[{key:"pause",value:function(){this.timeline.playbackRate=0}},{key:E,value:function(){var t=this;this[k]&&!this[k].timerID&&(this.timeline.currentTime<0?this[k].timerID=this.timeline.setTimeout(function(){t[k].resolve(),delete t[k]},{delay:-this.timeline.currentTime,heading:!1}):this[k].timerID=this.timeline.setTimeout(function(){t[k].resolve(),delete t[k]},{delay:0,isEntropy:!0}))}},{key:C,value:function(){var t=this,e=this[_],r=e.duration,n=e.iterations,i=e.endDelay,o=Math.ceil(r*n+i-this.timeline.currentTime)+1;this[M]&&!this[M].timerID&&(this[M].timerID=this.timeline.setTimeout(function(){t[M].resolve()},{delay:o,heading:!1}))}},{key:"play",value:function(){if("finished"===this.playState&&this.cancel(),"idle"===this.playState){if(this.playbackRate<=0)return;var t=this[_],e=t.delay,r=t.playbackRate,n=t.timeline;this.timeline=new m.default({originTime:e,playbackRate:r},n),this[E](),this[C]()}else"paused"===this.playState&&(this.timeline.playbackRate=this.playbackRate,this[E]())}},{key:O,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this[t],n=this.timeline;r&&n&&(n.clearTimeout(r.timerID),e&&r.resolve()),delete this[t]}},{key:"cancel",value:function(){this[O](k),this[O](M),this.timeline=null}},{key:"finish",value:function(){this.timeline.currentTime=1/0,this[O](k),this[O](M,!0)}},{key:"applyEffects",value:function(t){return(0,f.default)(this[S],t)}},{key:"playbackRate",get:function(){return this[_].playbackRate},set:function(t){this.timeline&&(this.timeline.playbackRate=t),this[_].playbackRate=t}},{key:"playState",get:function(){var t=this.timeline,e=this[_],r=e.iterations,n=e.duration,i=e.endDelay,o="running";if(null==t)o="idle";else if(t.paused)o="paused";else if(t.currentTime<0)o="pending";else{var a=t.currentTime-r*n;a>0&&a<i?o="pending":a>=i&&(o="finished")}return o}},{key:"progress",get:function(){if(!this.timeline)return 0;var t=this[_],e=t.duration,r=t.iterations,n=this.timeline,i=this.playState,o=void 0;if("idle"===i)o=0;else if("paused"===i&&n.currentTime<0)o=0;else if("pending"===i)if(n.currentTime<0)o=0;else{var a=n.seekLocalTime(r*e);o=(0,y.periodicity)(a,e)[1]/e}else"running"!==i&&"paused"!==i||(o=(0,y.periodicity)(n.currentTime,e)[1]/e);return"finished"===i&&(o=(0,y.periodicity)(r,1)[1]),o}},{key:"frame",get:function(){var t=this.playState,e=this[w],r=this[_].fill;if("idle"===t)return e;var n=this.timeline.currentTime,i=this[x].slice(0),o=(0,y.getProgress)(this.timeline,this[_],this.progress),a=o.p,u=o.inverted,s=e;return n<0&&"pending"===t?"backwards"!==r&&"both"!==r||(s=u?i[i.length-1]:i[0]):("pending"!==t&&"finished"!==t||"forwards"===r||"both"===r)&&(s=(0,y.getCurrentFrame)(this[_],i,this[S],a)),s}},{key:"baseTimeline",set:function(t){this[_].timeline=t},get:function(){return this[_].timeline}},{key:"ready",get:function(){return this[k]?this[k].promise:this.timeline&&this.timeline.currentTime>=0&&"paused"!==this.playState?o.default.resolve():(this[k]=(0,y.defer)(),this.timeline&&this[E](),this[k]?this[k].promise:o.default.resolve())}},{key:"finished",get:function(){return"finished"===this.playState?o.default.resolve():(this[M]||(this[M]=(0,y.defer)(),this.timeline&&this[C]()),this[M].promise)}}]),t}();e.default=P},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){var t={};return t.promise=new b.default(function(e,r){t.resolve=e,t.reject=r}),t}function o(t,e){var r=Math.floor(t/e),n=t-r*e;return 0===n&&r>0&&(n=e,r--),[r,n]}function a(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,f=0;f<u-1;f++)t[i+f+1].offset=n+s*(f+1);n=a.offset,i=o}o>0&&(t[o]=(0,g.default)({},t[o-1],t[o]))}return t}function u(t,e,r){var n=t.currentTime,i=e.direction,o=e.duration,a=!1;if("reverse"===i)r=1-r,a=!0;else if("alternate"===i||"alternate-reverse"===i){var u=Math.floor(n/o);1===r&&u--,u%2^"alternate-reverse"===i&&(r=1-r,a=!0)}return{p:r,inverted:a}}function s(t,e,r,n){var i={},o=!0,a=!1,u=void 0;try{for(var s,f=(0,d.default)((0,c.default)(e));!(o=(s=f.next()).done);o=!0){var l=s.value,h=(0,v.default)(l,2),p=h[0],y=h[1];if("offset"!==p){var g=r[p]||r.default,m=g(t[p],y,n,t.offset,e.offset);null!=m&&(i[p]=m)}}}catch(t){a=!0,u=t}finally{try{!o&&f.return&&f.return()}finally{if(a)throw u}}return i}function f(t,e,r,n){var i=t.easing,o=t.effect;o||(r=(0,g.default)({},r,x.default));var a={};n=i(n,e);for(var u=1;u<e.length;u++){var f=e[u],l=f.offset;if(l>=n||u===e.length-1){var c=e[u-1],h=c.offset;a=o?o(c,f,n,h,l):s(c,f,r,n);break}}return a}Object.defineProperty(e,"__esModule",{value:!0});var l=r(21),c=n(l),h=r(92),d=n(h),p=r(1),v=n(p),y=r(8),g=n(y),m=r(22),b=n(m);e.defer=i,e.periodicity=o,e.calculateFramesOffset=a,e.getProgress=u,e.getCurrentFrame=f;var _=r(122),x=n(_)},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 L(t,e[o],r,n,i)}):L(t,e,r,n,i)}function o(t,e,r,n,o){var a=(0,j.default)({},e,t),u=(0,j.default)({},t,e);return(0,T.default)(a).forEach(function(t){var e=(0,C.default)(t,2),s=e[0],f=e[1];a[s]=i(f,u[s],r,n,o)}),a}function a(t){var e=new z.Matrix;return(0,T.default)(t).forEach(function(t){var r=(0,C.default)(t,2),n=r[0],i=r[1];if("matrix"===n)e=new z.Matrix(i);else if(Array.isArray(i)){var o;(o=e)[n].apply(o,(0,S.default)(i))}else"scale"===n?e.scale(i,i):e[n](i)}),e.m}function u(t,e){if(t.length!==e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}function s(t,e,r,n,s){return t=(0,I.parseStringTransform)(t),e=(0,I.parseStringTransform)(e),u((0,k.default)(t),(0,k.default)(e))||(t=a(t),e=a(e)),Array.isArray(t)||Array.isArray(e)?i(t,e,r,n,s):o(t,e,r,n,s)}function f(t,e,r,n,o){var a=(0,I.parseColor)(t),u=(0,I.parseColor)(e);return a.model===u.model?(a.value=i(a.value,u.value,r,n,o).map(function(t,e){return e<3?Math.round(t):Math.round(100*t)/100}),a.str):L(t,e,r,n,o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(11),c=n(l),h=r(4),d=n(h),p=r(5),v=n(p),y=r(17),g=n(y),m=r(15),b=n(m),_=r(16),x=n(_),w=r(95),k=n(w),M=r(6),S=n(M),E=r(1),C=n(E),O=r(21),T=n(O),P=r(8),j=n(P),A=r(44),R=r(120),z=r(46),I=r(14),L=A.Effects.default;(0,j.default)(A.Effects,{pos:i,size:i,transform:s,bgcolor:f,border:function(t,e,r,n,o){return{width:L(t.width,e.width,r,n,o),color:f(t.color,e.color,r,n,o),style:i(t.style,e.style,r,n,o)}},scale:i,translate:i,skew:i,color:f,strokeColor:f,fillColor:f});var N=function(t){function e(t,r,n){(0,d.default)(this,e);var i=(0,g.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t.attr(),r,n));return i.target=t,i}return(0,x.default)(e,t),(0,v.default)(e,[{key:"play",value:function(){if(this.target.parent&&"running"!==this.playState){(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"play",this).call(this);var t=this.target;t.attr(this.frame);var r=this;this.ready.then(function(){t.attr(r.frame),r.requestId=(0,R.requestAnimationFrame)(function e(){var n=r.target;if("undefined"!=typeof document&&document.documentElement&&document.documentElement.contains&&n.layer&&n.layer.canvas&&!document.documentElement.contains(n.layer.canvas))return void r.cancel();var i=r.playState;t.attr(r.frame),"idle"!==i&&("running"===i?r.requestId=(0,R.requestAnimationFrame)(e):("paused"===i||"pending"===i&&r.timeline.currentTime<0)&&r.ready.then(function(){t.attr(r.frame),r.requestId=(0,R.requestAnimationFrame)(e)}))})})}}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,R.cancelAnimationFrame)(this.requestId),t?(this.target.attr(this.frame),(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"cancel",this).call(this)):((0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"cancel",this).call(this),this.target.attr(this.frame))}},{key:"playState",get:function(){return this.target.parent?(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"playState",this):"idle"}},{key:"finished",get:function(){var t=this,r=this.target;return(0,b.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"finished",this).then(function(){r.attr(t.frame),(0,R.cancelAnimationFrame)(t.requestId)})}}]),e}(A.Animator);e.default=N},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,u,s,f,l,c,h,d,p,v,y,g,m,b,_,x=r(26),w=n(x),k=r(6),M=n(k),S=r(49),E=n(S),C=r(93),O=n(C),T=r(32),P=n(T),j=r(153),A=n(j),R=r(1),z=n(R),I=r(21),L=n(I),N=r(8),D=n(N),F=r(25),V=n(F),B=r(4),q=n(B),U=r(5),G=n(U),W=r(3),H=n(W),J=r(46),X=r(14),Y=r(83),$=n(Y),K=r(31),Q=(0,H.default)("attr"),Z=(0,H.default)("store"),tt=(0,H.default)("subject"),et=(0,H.default)("default"),rt=(0,H.default)("props"),nt=(i=(0,X.parseValue)(X.parseStringFloat,X.oneOrTwoValues),o=(0,X.parseValue)(parseFloat),a=(0,X.parseValue)(parseFloat),u=(0,X.parseValue)(X.parseStringInt),s=(0,X.parseValue)(X.parseColorString),f=(0,X.parseValue)(function(t){return t?parseFloat(t):t}),l=(0,X.parseValue)(function(t){return t?parseFloat(t):t}),c=(0,X.parseValue)(X.parseStringInt),h=(0,X.parseValue)(X.parseStringInt,X.fourValuesShortCut),d=(0,X.parseValue)(parseFloat),p=(0,X.parseValue)(parseFloat),v=(0,X.parseValue)(X.parseStringTransform),y=(0,X.parseValue)(parseFloat),g=(0,X.parseValue)(X.parseStringFloat,X.oneOrTwoValues),m=(0,X.deprecate)("Instead use attr.gradients."),b=(0,X.parseValue)(parseFloat),_=function(){function t(e){(0,q.default)(this,t),this[tt]=e,this[et]={},this[Q]={},this[rt]={},this.setDefault({anchor:[0,0],x:0,y:0,opacity:1,width:"",height:"",bgcolor:"",rotate:0,scale:[1,1],translate:[0,0],skew:[0,0],transform:"matrix(1,0,0,1,0,0)",transformOrigin:"",transformMatrix:[1,0,0,1,0,0],border:{width:0,color:"rgba(0,0,0,0)",style:"solid"},borderRadius:0,dashOffset:0,padding:[0,0,0,0],zIndex:0,offsetRotate:"auto",gradients:{},offsetDistance:0,filter:""},{pos:function(){return[this.x,this.y]},size:function(){return[this.width,this.height]},linearGradients:function(){return this.gradients}}),this[Z]=new V.default}return(0,G.default)(t,[{key:"setDefault",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,D.default)(this[et],t),(0,D.default)(this[Q],t);var n={};(0,L.default)(r).forEach(function(t){var r=(0,z.default)(t,2),i=r[0],o=r[1];n[i]={get:o.bind(e)}}),(0,A.default)(this[Q],n),(0,D.default)(this[rt],n)}},{key:"saveObj",value:function(t,e){this[Z].set(t,e),this.__updateTag=!0}},{key:"loadObj",value:function(t){return this[Z].get(t)}},{key:"quietSet",value:function(t,e){this[Q][t]=e}},{key:"set",value:function(t,e){if(null==e&&(e=this[et][t]),"object"===(void 0===e?"undefined":(0,P.default)(e))){var r=this[Q][t];if(r!==e&&(0,O.default)(e)===(0,O.default)(r))return}this[Q][t]=e,this.__updateTag=!0}},{key:"get",value:function(t){return this[Q][t]}},{key:"clearCache",value:function(){return this.__clearCacheTag=!0,this}},{key:"merge",value:function(t){var e=this;return"string"==typeof t&&(t=JSON.parse(t)),(0,L.default)(t).forEach(function(t){var r=(0,z.default)(t,2),n=r[0],i=r[1];if(e[et][n]!==i)if("offsetPath"!==n&&"offsetDistance"!==n&&"offsetRotate"!==n&&"offsetAngle"!==n&&"offsetPoint"!==n)e[n]=i;else if("offsetPath"===n){var o=new $.default(i);e.set("offsetPath",o.d),e.saveObj("offsetPath",o)}else e.set(n,i)}),this}},{key:"serialize",value:function(){var t=this.attrs;delete t.id;var e=this.get("offsetAngle");null!=e&&(t.offsetAngle=e);var r=this.get("offsetPoint");return null!=r&&(t.offsetPoint=r),(0,O.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=new $.default(t),this.saveObj("offsetPath",t))}if(null!=t){var n=e*t.getTotalLength(),i=t.getPointAtLength(n),o=(0,z.default)(i,2),a=o[0],u=o[1],s=this.offsetRotate;if("auto"===s||"reverse"===s){"reverse"===s&&0===n&&(n=1);var f=t.getPointAtLength("auto"===s?n+1:n-1),l=(0,z.default)(f,2),c=l[0],h=l[1];s=c===a&&h===u?this.get("offsetAngle"):180*Math.atan2(h-u,c-a)/Math.PI,"reverse"===this.offsetRotate&&(s=-s)}var d=this.get("offsetAngle");d&&(this.rotate-=d),this.set("offsetAngle",s),this.rotate+=s;var p=this.get("offsetPoint");p&&(this.pos=[this.x-p[0],this.y-p[1]]),this.set("offsetPoint",[a,u]),this.pos=[this.x+a,this.y+u]}}},{key:"attrs",get:function(){var t=this,e={};return this.__attributeNames.forEach(function(r){r in t[rt]?(0,E.default)(e,r,t[rt][r]):e[r]=t[r]}),e}},{key:"subject",get:function(){return this[tt]}},{key:"id",set:function(t){return this.quietSet("id",String(t))}},{key:"name",set:function(t){return this.quietSet("name",String(t))}},{key:"anchor",set:function(t){this.set("anchor",t)}},{key:"x",set:function(t){this.set("x",t)}},{key:"y",set:function(t){this.set("y",t)}},{key:"pos",set:function(t){null==t&&(t=[0,0]);var e=t,r=(0,z.default)(e,2),n=r[0],i=r[1];this.x=n,this.y=i}},{key:"bgcolor",set:function(t){this.clearCache(),this.set("bgcolor",t)}},{key:"opacity",set:function(t){this.set("opacity",t)}},{key:"width",set:function(t){this.clearCache(),this.set("width",t)}},{key:"height",set:function(t){this.clearCache(),this.set("height",t)}},{key:"size",set:function(t){null==t&&(t=["",""]);var e=t,r=(0,z.default)(e,2),n=r[0],i=r[1];this.width=n,this.height=i}},{key:"border",set:function(t){this.clearCache(),"number"==typeof t||"string"==typeof t?t={width:parseFloat(t)}:Array.isArray(t)?t={width:parseFloat(t[0]),color:(0,X.parseColorString)(t[1]||"#000")}:(t.width=parseFloat(t.width),t.color=(0,X.parseColorString)(t.color||"#000")),t=(0,D.default)({width:1,color:(0,X.parseColorString)("#000"),style:"solid"},t),this.set("border",t)}},{key:"padding",set:function(t){this.clearCache(),this.set("padding",t)}},{key:"borderRadius",set:function(t){this.clearCache(),this.set("borderRadius",t)}},{key:"dashOffset",set:function(t){this.clearCache(),this.set("dashOffset",t)}},{key:"transform",set:function(t){var e=this;if((0,D.default)(this[Q],{rotate:0,scale:[1,1],translate:[0,0],skew:[0,0]}),Array.isArray(t))this.set("transformMatrix",t),this.set("transform","matrix("+t+")");else{this.set("transformMatrix",[1,0,0,1,0,0]);var r=[];(0,L.default)(t).forEach(function(t){var n=(0,z.default)(t,2),i=n[0],o=n[1];"matrix"===i&&Array.isArray(o)?e.set("transformMatrix",new J.Matrix(o).m):e[i]=o,r.push(i+"("+o+")")}),this.set("transform",r.join(" "))}}},{key:"transformOrigin",set:function(t){this.set("transformOrigin",t)}},{key:"rotate",set:function(t){var e=this.get("rotate")-t;this.set("rotate",t);var r=new J.Matrix(this.get("transformMatrix")).rotate(-e);this.set("transformMatrix",r.m)}},{key:"scale",set:function(t){t=(0,X.oneOrTwoValues)(t).map(function(t){return Math.abs(t)>.001?t:1/t>0?.001:-.001});var e=this.get("scale")||[1,1],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 J.Matrix(this.get("transformMatrix"));i.scale.apply(i,r),this.set("transformMatrix",i.m),n&&(this.rotate+=n)}},{key:"translate",set:function(t){var e=this.get("translate")||[0,0],r=[t[0]-e[0],t[1]-e[1]];this.set("translate",t);var n=new J.Matrix(this.get("transformMatrix"));n.translate.apply(n,r),this.set("transformMatrix",n.m)}},{key:"skew",set:function(t){var e,r,n=this.get("skew")||[0,0],i=(e=new J.Matrix).skew.apply(e,(0,M.default)(n)).inverse();this.set("skew",t);var o=new J.Matrix(this.get("transformMatrix"));(r=o.multiply(i)).skew.apply(r,(0,M.default)(t)),this.set("transformMatrix",o.m)}},{key:"zIndex",set:function(t){this.set("zIndex",t)}},{key:"linearGradients",set:function(t){this.gradients=t}},{key:"gradients",set:function(t){this.clearCache(),this.set("gradients",t)}},{key:"offsetPath",set:function(t){var e=new $.default(t);this.set("offsetPath",e.d),this.saveObj("offsetPath",e),this.resetOffset()}},{key:"offsetDistance",set:function(t){this.set("offsetDistance",t),this.resetOffset()}},{key:"offsetRotate",set:function(t){"string"==typeof t&&"auto"!==t&&"reverse"!==t&&(t=parseFloat(t)),this.set("offsetRotate",t),this.resetOffset()}},{key:"filter",set:function(t){this.clearCache(),this.set("filter",t)}}]),t}(),K(_.prototype,"id",[X.attr],(0,w.default)(_.prototype,"id"),_.prototype),K(_.prototype,"name",[X.attr],(0,w.default)(_.prototype,"name"),_.prototype),K(_.prototype,"anchor",[i,X.attr],(0,w.default)(_.prototype,"anchor"),_.prototype),K(_.prototype,"x",[o,X.attr],(0,w.default)(_.prototype,"x"),_.prototype),K(_.prototype,"y",[a,X.attr],(0,w.default)(_.prototype,"y"),_.prototype),K(_.prototype,"pos",[u,X.attr],(0,w.default)(_.prototype,"pos"),_.prototype),K(_.prototype,"bgcolor",[s,X.attr],(0,w.default)(_.prototype,"bgcolor"),_.prototype),K(_.prototype,"opacity",[X.attr],(0,w.default)(_.prototype,"opacity"),_.prototype),K(_.prototype,"width",[f,X.attr],(0,w.default)(_.prototype,"width"),_.prototype),K(_.prototype,"height",[l,X.attr],(0,w.default)(_.prototype,"height"),_.prototype),K(_.prototype,"size",[c,X.attr],(0,w.default)(_.prototype,"size"),_.prototype),K(_.prototype,"border",[X.attr],(0,w.default)(_.prototype,"border"),_.prototype),K(_.prototype,"padding",[h,X.attr],(0,w.default)(_.prototype,"padding"),_.prototype),K(_.prototype,"borderRadius",[d,X.attr],(0,w.default)(_.prototype,"borderRadius"),_.prototype),K(_.prototype,"dashOffset",[p,X.attr],(0,w.default)(_.prototype,"dashOffset"),_.prototype),K(_.prototype,"transform",[v,X.attr],(0,w.default)(_.prototype,"transform"),_.prototype),K(_.prototype,"transformOrigin",[X.attr],(0,w.default)(_.prototype,"transformOrigin"),_.prototype),K(_.prototype,"rotate",[y,X.attr],(0,w.default)(_.prototype,"rotate"),_.prototype),K(_.prototype,"scale",[g,X.attr],(0,w.default)(_.prototype,"scale"),_.prototype),K(_.prototype,"translate",[X.attr],(0,w.default)(_.prototype,"translate"),_.prototype),K(_.prototype,"skew",[X.attr],(0,w.default)(_.prototype,"skew"),_.prototype),K(_.prototype,"zIndex",[X.attr],(0,w.default)(_.prototype,"zIndex"),_.prototype),K(_.prototype,"linearGradients",[m,X.attr],(0,w.default)(_.prototype,"linearGradients"),_.prototype),K(_.prototype,"gradients",[X.attr],(0,w.default)(_.prototype,"gradients"),_.prototype),K(_.prototype,"offsetPath",[X.attr],(0,w.default)(_.prototype,"offsetPath"),_.prototype),K(_.prototype,"offsetDistance",[b,X.attr],(0,w.default)(_.prototype,"offsetDistance"),_.prototype),K(_.prototype,"offsetRotate",[X.attr],(0,w.default)(_.prototype,"offsetRotate"),_.prototype),K(_.prototype,"filter",[X.attr],(0,w.default)(_.prototype,"filter"),_.prototype),_);e.default=nt},function(t,e,r){"use strict";function n(t,e,r,n){var i=t.shadowContext,o=t.outputContext;e=e.map(function(t,e){return e<2?t-1:t+1});var s=(0,u.boxIntersect)(e,[0,0,r,n]);if(s){var f=(0,u.boxToRect)(s);i&&i.rect.apply(i,(0,a.default)(f)),o.rect.apply(o,(0,a.default)(f))}}function i(t,e){for(var r=t.shadowContext,i=t.outputContext,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=i.canvas,s=a.width,f=a.height,l=0;l<e.length;l++){var c=e[l],h=c.renderBox;if(n({shadowContext:r,outputContext:i},h,s,f),o){var d=c.lastRenderBox;d&&!(0,u.boxEqual)(d,h)&&n({shadowContext:r,outputContext:i},d,s,f)}}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(6),a=function(t){return t&&t.__esModule?t:{default:t}}(o);e.clearDirtyRect=n,e.clearDirtyRects=i;var u=r(14)},function(t,e,r){"use strict";var n="'([^']+)'|\"([^\"]+)\"|[\\w-]+",i=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),o=new RegExp("(italic|oblique) +","i"),a=new RegExp("(small-caps) +","i"),u=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),s=new RegExp("([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q|vw|vh) *((?:"+n+")( *, *(?:"+n+"))*)"),f={};t.exports=function t(e,r){if(null==r)if("undefined"!=typeof window&&window.getComputedStyle){var n=window.getComputedStyle(document.documentElement).fontSize;r=t(n+" Arial",16).size}else r=16;if(f[e])return f[e];var l=s.exec(e);if(l){var c={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(l[1]),unit:l[2],family:l[3].replace(/["']/g,"").replace(/ *, */g,",")},h=void 0,d=void 0,p=void 0,v=void 0,y=e.substring(0,l.index);switch((h=i.exec(y))&&(c.weight=h[1]),(d=o.exec(y))&&(c.style=d[1]),(p=a.exec(y))&&(c.variant=p[1]),(v=u.exec(y))&&(c.stretch=v[1]),c.unit){case"pt":c.size/=.75;break;case"pc":c.size*=16;break;case"in":c.size*=96;break;case"cm":c.size*=96/2.54;break;case"mm":c.size*=96/25.4;break;case"%":break;case"em":case"rem":c.size*=r/.75;break;case"q":c.size*=96/25.4/4}if("vw"===c.unit){if("undefined"!=typeof document&&document.documentElement){var g=document.documentElement.clientWidth;c.size=g*c.size/100}}else if("vh"===c.unit&&"undefined"!=typeof document&&document.documentElement){var m=document.documentElement.clientHeight;c.size=m*c.size/100}return f[e]=c}}},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],f=t[1],l=t[3],c=t[5],h=t[7];e=Math.min(e,o,a,u,s),r=Math.min(r,f,l,c,h),n=Math.max(n,o,a,u,s),i=Math.max(i,f,l,c,h)}),[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],f=t[7],l=e[0],c=e[2],h=e[4],d=e[6],p=e[1],v=e[3],y=e[5],g=e[7];return Math.sqrt(Math.pow(l-r,2)+Math.pow(p-a,2))+Math.sqrt(Math.pow(c-n,2)+Math.pow(v-u,2))+Math.sqrt(Math.pow(h-i,2)+Math.pow(y-s,2))+Math.sqrt(Math.pow(d-o,2)+Math.pow(g-f,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=f(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 f(t){for(var e=[],r=0;r<t;r++)e.push(r);return l(e)}function l(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,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=[],i=0;i<t.length;i++){var o=t[i];if(e(o)&&(n.push(o),r===n.length))break}return n}Object.defineProperty(e,"__esModule",{value:!0}),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){var i=e.split(/\n/),o=0,a=0;return i.forEach(function(e){var i=N(t,e,r,n),u=(0,E.default)(i,2),s=u[0],f=u[1];o=Math.max(o,s),a+=f}),0===o&&0===a?"":[o,a]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,a,u,s,f,l,c=r(15),h=n(c),d=r(26),p=n(d),v=r(11),y=n(v),g=r(4),m=n(g),b=r(5),_=n(b),x=r(17),w=n(x),k=r(16),M=n(k),S=r(1),E=n(S),C=r(3),O=n(C),T=r(45),P=n(T),j=r(14),A=r(30),R=r(37),z=r(31),I=r(236),L=(0,O.default)("boxSize"),N=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=t.context;if(!i)return[0,0];i.save(),i.font=r;var o=i.measureText(e),a=o.width;return i.restore(),[a,n||1.2*I(r).size].map(Math.round)},D=(o=(0,j.parseValue)(parseFloat),a=(0,j.parseValue)(j.parseColorString),u=(0,j.parseValue)(j.parseColorString),s=function(t){function e(t){(0,m.default)(this,e);var r=(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r.setDefault({font:"16px Arial",textAlign:"left",strokeColor:"",fillColor:"",lineHeight:"",text:""},{color:function(){return this.fillColor}}),r}return(0,M.default)(e,t),(0,_.default)(e,[{key:"text",set:function(t){this.clearCache(),t=String(t),delete this.subject[L],this.set("text",t)}},{key:"font",set:function(t){this.clearCache(),delete this.subject[L],this.set("font",t)}},{key:"lineHeight",set:function(t){this.clearCache(),delete this.subject[L],this.set("lineHeight",t)}},{key:"textAlign",set:function(t){this.clearCache(),this.set("textAlign",t)}},{key:"color",set:function(t){this.fillColor=t}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",t)}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",t)}}]),e}(P.default.Attr),z(s.prototype,"text",[j.attr],(0,p.default)(s.prototype,"text"),s.prototype),z(s.prototype,"font",[j.attr],(0,p.default)(s.prototype,"font"),s.prototype),z(s.prototype,"lineHeight",[o,j.attr],(0,p.default)(s.prototype,"lineHeight"),s.prototype),z(s.prototype,"textAlign",[j.attr],(0,p.default)(s.prototype,"textAlign"),s.prototype),z(s.prototype,"color",[j.attr],(0,p.default)(s.prototype,"color"),s.prototype),z(s.prototype,"strokeColor",[a,j.attr],(0,p.default)(s.prototype,"strokeColor"),s.prototype),z(s.prototype,"fillColor",[u,j.attr],(0,p.default)(s.prototype,"fillColor"),s.prototype),s),F=(l=f=function(t){function e(t){return(0,m.default)(this,e),"string"==typeof t&&(t={text:t}),(0,w.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t))}return(0,M.default)(e,t),(0,_.default)(e,[{key:"render",value:function(t,r){var n=this;(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,t,r);var i=this.attr("textAlign"),o=this.attr("font"),a=this.attr("lineHeight");if(this.text){r.font=o;var u=this.text.split(/\n/);r.textBaseline="top";var s=i;r.textBaseline="middle";var f=(0,R.findColor)(r,this,"strokeColor");f&&(r.strokeStyle=f);var l=(0,R.findColor)(r,this,"fillColor");f||l||(l=(0,j.parseColorString)("black")),l&&(r.fillStyle=l);var c=0,d=0,p=this.contentSize[0];u.forEach(function(t){var e=N(n,t,o,a),i=(0,E.default)(e,2),u=i[0],h=i[1];"center"===s?d+=(p-u)/2:"right"===s&&(d+=p-u),l&&r.fillText(t,d,c+h/2),f&&r.strokeText(t,d,c+h/2),c+=h})}}},{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,E.default)(t,2),r=e[0],n=e[1];if(this[L])return this[L];if(""===r||""===n){var o=i(this,this.text,this.attr("font"),this.attr("lineHeight"));return this[L]=o,o||[0,0]}return[r,n]}}]),e}(P.default),f.Attr=D,l);e.default=F,(0,A.registerNodeType)("label",F)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(6),o=n(i),a=r(8),u=n(a),s=r(22),f=n(s),l=r(50),c=n(l),h=r(32),d=n(h),p=r(11),v=n(p),y=r(4),g=n(y),m=r(5),b=n(m),_=r(17),x=n(_),w=r(15),k=n(w),M=r(16),S=n(M),E=r(3),C=n(E),O=r(82),T=n(O),P=r(123),j=n(P),A=r(125),R=n(A),z=r(44),I=r(120),L=r(30),N=r(37),D=r(235),F=r(14),V=r(126),B=n(V),q=(0,C.default)("children"),U=(0,C.default)("updateSet"),G=(0,C.default)("zOrder"),W=(0,C.default)("tRecord"),H=(0,C.default)("timeline"),J=(0,C.default)("renderDeferrer"),X=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.context,n=t.handleEvent,i=t.evaluateFPS,o=t.renderMode,a=t.shadowContext;(0,g.default)(this,e);var u=(0,x.default)(this,(e.__proto__||(0,v.default)(e)).call(this));if(u.handleEvent=!1!==n,u.evaluateFPS=!!i,u.renderMode=o||"repaintAll",u.outputContext=r,!1!==a)if("object"===(void 0===a?"undefined":(0,d.default)(a)))u.shadowContext=a;else if(r.canvas&&r.canvas.cloneNode){var s=r.canvas.cloneNode();u.shadowContext=s.getContext("2d")}return r.canvas&&r.canvas.addEventListener&&r.canvas.addEventListener("DOMNodeRemovedFromDocument",function(){u.timeline.clear(),u.clear()}),u[q]=[],u[U]=new c.default,u[G]=0,u[W]=[],u[H]=new z.Timeline,u[J]=null,u}return(0,S.default)(e,t),(0,b.default)(e,[{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?((0,F.setDeprecation)("layer.remove()","Instead use layer.clear()."),this.clear()):r.map(function(e){return t.removeChild(e)})}},{key:"prepareRender",value:function(){var t=this;return this[J]||(this[J]={},this[J].promise=new f.default(function(e,r){(0,u.default)(t[J],{resolve:e,reject:r}),(0,I.requestAnimationFrame)(t.draw.bind(t))})),this[J]?this[J].promise:f.default.resolve()}},{key:"draw",value:function(t){if(t&&this.evaluateFPS&&(this[W].push(t),this[W]=this[W].slice(-10)),this[U].size){var r=void 0;if("repaintDirty"===this.renderMode)r=this.renderRepaintDirty.bind(this);else{if("repaintAll"!==this.renderMode)throw new Error("unknown render mode!");r=this.renderRepaintAll.bind(this)}var n=this.timeline.currentTime;r(n),(0,k.default)(e.prototype.__proto__||(0,v.default)(e.prototype),"dispatchEvent",this).call(this,"update",{target:this,timeline:this.timeline,renderTime:n},!0)}this[J]&&(this[J].resolve(),this[J]=null)}},{key:"update",value:function(t){t&&this[U].has(t)||(t&&this[U].add(t),this.prepareRender())}},{key:"isVisible",value:function(t){return!!t.isVisible()&&t.parent===this}},{key:"drawSprites",value:function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n.parent===this){var i=this.isVisible(n);i?n.draw(e):delete n.lastRenderBox,n.isDirty&&(n.isDirty=!1,n.dispatchEvent("update",{target:n,renderTime:e,isVisible:i},!0,!0))}}}},{key:"renderRepaintAll",value:function(t){var e=this[q],r=this.outputContext;(0,N.clearContext)(r);var n=this.shadowContext;n?((0,N.clearContext)(n),this.drawSprites(e,t),r.drawImage(n.canvas,0,0)):this.drawSprites(e,t),this[U].clear()}},{key:"renderRepaintDirty",value:function(t){var e=[].concat((0,o.default)(this[U]));if(e.some(function(t){return!!t.attr("filter")}))return this.renderRepaintAll(t);var r=this.shadowContext,n=this.outputContext,i=this[q];r&&(r.save(),r.beginPath()),n.save(),n.beginPath(),(0,D.clearDirtyRects)({shadowContext:r,outputContext:n},e,!0),r&&(r.clip(),n.clip(),(0,N.clearContext)(r)),n.clip(),(0,N.clearContext)(n),this.drawSprites(i,t),r&&(n.drawImage(r.canvas,0,0),r.restore()),n.restore(),this[U].clear()}},{key:"pointCollision",value:function(t){if(this.outputContext.canvas){var e=t.layerX,r=t.layerY,n=this.outputContext.canvas,i=n.width,o=n.height;return e>=0&&r>=0&&e<i&&r<o}return!0}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n||this.pointCollision(r);if(!r.terminated&&o){r.layer=this;var a=this[q].slice(0).reverse(),u=[];if(!i&&"mouseenter"!==t&&"mouseleave"!==t)for(var s=0;s<a.length;s++){var f=a[s],l=f.dispatchEvent(t,r,n,i);if(l&&u.push(f),r.terminated&&!r.type.startsWith("mouse"))break}r.targetSprites=u}return r.terminated=!1,(0,k.default)(e.prototype.__proto__||(0,v.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n)}},{key:"connect",value:function(t,r,n){return(0,k.default)(e.prototype.__proto__||(0,v.default)(e.prototype),"connect",this).call(this,t,r),this.zIndex=n,t&&t.container&&t.container.appendChild(this.outputContext.canvas),this}},{key:"disconnect",value:function(t){return this.canvas&&this.canvas.remove&&this.canvas.remove(),(0,k.default)(e.prototype.__proto__||(0,v.default)(e.prototype),"disconnect",this).call(this,t)}},{key:"group",value:function(){var t=new R.default;return t.append.apply(t,arguments),this.appendChild(t),t}},{key:"batch",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){e.layer!==t&&t.appendChild(e)});var i=new j.default(this);return i.add.apply(i,r),i}},{key:"adjust",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.outputContext,n=this.shadowContext;if(!n)throw new Error("No shadowContext.");(0,N.clearContext)(r),t.call(this,r),e&&r.drawImage(n.canvas,0,0)}},{key:"clearUpdate",value:function(){this[U].clear()}},{key:"layer",get:function(){return this}},{key:"children",get:function(){return this[q]}},{key:"timeline",get:function(){return this[H]}},{key:"context",get:function(){return this.shadowContext?this.shadowContext:this.outputContext}},{key:"canvas",get:function(){return this.outputContext.canvas}},{key:"offset",get:function(){return[0,0]}},{key:"fps",get:function(){if(!this.evaluateFPS)return NaN;var t=0,e=this[W].slice(-10),r=e.length;return r<=5?NaN:(e.reduceRight(function(e,r,n){return t+=e-r,r}),Math.round(1e3*(r-1)/t))}}]),e}(T.default);e.default=X,(0,u.default)(X.prototype,B.default),(0,L.registerNodeType)("layer",X,!0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u,s,f,l=r(6),c=n(l),h=r(1),d=n(h),p=r(15),v=n(p),y=r(26),g=n(y),m=r(8),b=n(m),_=r(11),x=n(_),w=r(4),k=n(w),M=r(5),S=n(M),E=r(17),C=n(E),O=r(16),T=n(O),P=r(45),j=n(P),A=r(37),R=r(44),z=r(14),I=r(127),L=r(30),N=r(31);R.Effects.d=I.pathEffect,R.Effects.path=function(t,e,r,n,i){return t=(0,I.createSvgPath)(t),e=(0,I.createSvgPath)(e),(0,I.pathEffect)(t.d,e.d,r,n,i)};var D=(i=(0,z.parseValue)(parseFloat),o=(0,z.parseValue)(parseFloat),a=(0,z.deprecate)("Instead use strokeColor."),u=function(t){function e(t){(0,k.default)(this,e);var r=(0,C.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t));return r.setDefault({lineWidth:1,lineDash:null,lineDashOffset:0,lineCap:"butt",lineJoin:"miter",strokeColor:"",fillColor:""},{color:function(){return this.strokeColor},d:function(){return this.path?this.path.d:null}}),r}return(0,T.default)(e,t),(0,S.default)(e,[{key:"path",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,I.createSvgPath)(t),this.set("path",t)):(this.subject.svg=null,this.set("path",null))}},{key:"d",set:function(t){if(t){var e=this.get("path");this.path=e?(0,b.default)(e,{d:t}):{d:t}}else this.path=null}},{key:"lineWidth",set:function(t){this.clearCache(),this.set("lineWidth",Math.round(t))}},{key:"lineDash",set:function(t){this.clearCache(),this.set("lineDash",t)}},{key:"lineDashOffset",set:function(t){this.clearCache(),this.set("lineDashOffset",t)}},{key:"lineCap",set:function(t){this.clearCache(),this.set("lineCap",t)}},{key:"lineJoin",set:function(t){this.clearCache(),this.set("lineJoin",t)}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",(0,z.parseColorString)(t))}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",(0,z.parseColorString)(t))}},{key:"color",set:function(t){this.strokeColor=t}}]),e}(j.default.Attr),N(u.prototype,"path",[z.attr],(0,g.default)(u.prototype,"path"),u.prototype),N(u.prototype,"d",[z.attr],(0,g.default)(u.prototype,"d"),u.prototype),N(u.prototype,"lineWidth",[i,z.attr],(0,g.default)(u.prototype,"lineWidth"),u.prototype),N(u.prototype,"lineDash",[z.attr],(0,g.default)(u.prototype,"lineDash"),u.prototype),N(u.prototype,"lineDashOffset",[o,z.attr],(0,g.default)(u.prototype,"lineDashOffset"),u.prototype),N(u.prototype,"lineCap",[z.attr],(0,g.default)(u.prototype,"lineCap"),u.prototype),N(u.prototype,"lineJoin",[z.attr],(0,g.default)(u.prototype,"lineJoin"),u.prototype),N(u.prototype,"strokeColor",[z.attr],(0,g.default)(u.prototype,"strokeColor"),u.prototype),N(u.prototype,"fillColor",[z.attr],(0,g.default)(u.prototype,"fillColor"),u.prototype),N(u.prototype,"color",[a,z.attr],(0,g.default)(u.prototype,"color"),u.prototype),u),F=(f=s=function(t){function e(t){return(0,k.default)(this,e),"string"==typeof t&&(t={d:t}),(0,C.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t))}return(0,T.default)(e,t),(0,S.default)(e,[{key:"getPointAtLength",value:function(t){return this.svg?this.svg.getPointAtLength(t):[0,0]}},{key:"getPathLength",value:function(){return this.svg?this.svg.getTotalLength():0}},{key:"findPath",value:function(t,e){var r=this.originalRect,n=this.pathOffset;return this.svg&&this.svg.isPointInPath(t-r[0]-n[0],e-r[1]-n[1])?[this.svg]:[]}},{key:"pointCollision",value:function(t){if((0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"pointCollision",this).call(this,t)){var r=t.offsetX,n=t.offsetY,i=this.svg;if(i){var o=i.bounds;r+=Math.min(0,o[0]),n+=Math.min(0,o[1])}return t.targetPaths=this.findPath(r,n),!0}return!1}},{key:"render",value:function(t,r){(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"render",this).call(this,t,r);var n=this.attr("d"),i=this.attr("lineWidth"),o=this.attr("lineCap"),a=this.attr("lineJoin"),u=this.attr("lineDash");if(n){var s=this.svg,f=(0,d.default)(s.bounds,2),l=f[0],h=f[1];if((l<0||h<0)&&r.translate(-Math.min(0,l),-Math.min(0,h)),r.translate.apply(r,(0,c.default)(this.pathOffset)),s.beginPath().to(r),r.lineWidth=i,r.lineCap=o,r.lineJoin=a,null!=u){r.setLineDash(u);var p=this.attr("lineDashOffset");r.lineDashOffset=p}var y=(0,A.findColor)(r,this,"fillColor");y&&(r.fillStyle=y);var g=(0,A.findColor)(r,this,"strokeColor");g||y||(g=(0,z.parseColorString)("black")),g&&(r.strokeStyle=g),y&&r.fill(),g&&r.stroke()}}},{key:"path",set:function(t){this.attr("path",t)},get:function(){return this.attr("path")}},{key:"lineWidth",get:function(){var t=this.attr("lineWidth"),e=this.attr("gradients"),r=this.attr("fillColor"),n=this.attr("strokeColor"),i=n||e&&e.strokeColor,o=r||e&&e.fillColor;return!i&&o?0:t}},{key:"pathOffset",get:function(){var t=Math.round(this.lineWidth);return[t,t]}},{key:"pathSize",get:function(){return this.svg?this.svg.size:[0,0]}},{key:"contentSize",get:function(){if(!this.svg)return(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"contentSize",this);var t=this.svg.bounds,r=this.attr("size"),n=(0,d.default)(r,2),i=n[0],o=n[1],a=this.pathOffset;return""===i&&(i=t[2]-Math.min(0,t[0])+2*a[0]),""===o&&(o=t[3]-Math.min(0,t[1])+2*a[1]),[i,o]}},{key:"originalRect",get:function(){var t=this.svg;if(t){var r=t.bounds,n=this.pathOffset,i=(0,d.default)(this.offsetSize,2),o=i[0],a=i[1],u=this.attr("anchor"),s=(0,d.default)(u,2),f=s[0],l=s[1],c=[0,0,o,a];return c[0]=Math.min(0,r[0])-n[0]-f*(o-2*n[0]),c[1]=Math.min(0,r[1])-n[1]-l*(a-2*n[1]),c}return(0,v.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"originalRect",this)}}]),e}(j.default),s.Attr=D,f);e.default=F,(0,L.registerNodeType)("path",F)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(93),s=n(u),f=r(6),l=n(f),c=r(1),h=n(c),d=r(25),p=n(d),v=r(15),y=n(v),g=r(26),m=n(g),b=r(11),_=n(b),x=r(4),w=n(x),k=r(5),M=n(k),S=r(17),E=n(S),C=r(16),O=n(C),T=r(3),P=n(T),j=r(45),A=n(j),R=r(124),z=n(R),I=r(14),L=r(30),N=r(37),D=r(31),F=(0,P.default)("_texturesCache"),V=(0,P.default)("_images"),B=(i=function(t){function e(t){(0,w.default)(this,e);var r=(0,E.default)(this,(e.__proto__||(0,_.default)(e)).call(this,t));return r.setDefault({textures:[]}),r}return(0,O.default)(e,t),(0,M.default)(e,[{key:"loadTextures",value:function(t){var e=this.subject,r=0,n=0;return e.images=t.map(function(t){var e=t.image,i=t.rect,o=t.srcRect,a=void 0,u=void 0;return i?(a=i[2]+i[0],u=i[3]+i[1]):o?(a=o[2],u=o[3]):(a=e.width,u=e.height),r<a&&(r=a),n<u&&(n=u),delete t.image,e}),e.texturesSize=[r,n],t}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return t.image||(t={image:t}),t}),this.loadTextures(t),this.set("textures",t)}}]),e}(A.default.Attr),D(i.prototype,"textures",[I.attr],(0,m.default)(i.prototype,"textures"),i.prototype),i),q=(a=o=function(t){function e(t){(0,w.default)(this,e),t&&t.constructor!==Object&&(t={textures:[t]});var r=(0,E.default)(this,(e.__proto__||(0,_.default)(e)).call(this));return r[F]=new p.default,t&&r.attr(t),r}return(0,O.default)(e,t),(0,M.default)(e,[{key:"cloneNode",value:function(){var t=this,r=(0,y.default)(e.prototype.__proto__||(0,_.default)(e.prototype),"cloneNode",this).call(this);return r.textures=this.textures.map(function(e,r){return e.image=t.images[r],e}),r}},{key:"pointCollision",value:function(t){var r=this;if((0,y.default)(e.prototype.__proto__||(0,_.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,h.default)(a,2),s=u[0],f=u[1],c=(0,h.default)(this.contentSize,2),d=c[0],p=c[1];i+=d*s,o+=p*f,n.forEach(function(e){var n=e.rect||[0,0].concat((0,l.default)(r.innerSize)),a=(0,h.default)(n,4),u=a[0],s=a[1],f=a[2],c=a[3];i>=u&&i-u<f&&o>=s&&o-s<c&&t.targetTextures.push(e)})}return!0}return!1}},{key:"render",value:function(t,r){var n=this;(0,y.default)(e.prototype.__proto__||(0,_.default)(e.prototype),"render",this).call(this,t,r);var i=this.textures;this.images&&i.forEach(function(t,e){var i=n.images[e],o=t.rect||[0,0].concat((0,l.default)(n.innerSize)),a=t.srcRect;if(r.save(),t.filter){(0,I.setDeprecation)("texture.filter","Instead use sprite.attr({filter}).");var u=a?[0,0,a[2],a[3]]:[0,0,i.width,i.height],s=o[2]/u[2],f=o[3]/u[3];r.filter=z.default.compile(t.filter),a?r.drawImage.apply(r,[i].concat((0,l.default)(a),[s*u[0]+o[0],f*u[1]+o[1],s*a[2],f*a[3]])):r.drawImage(i,s*u[0]+o[0],f*u[1]+o[1],s*i.width,f*i.height)}else a?r.drawImage.apply(r,[i].concat((0,l.default)(a),(0,l.default)(o))):r.drawImage.apply(r,[i].concat((0,l.default)(o)));r.restore()})}},{key:"images",set:function(t){this[V]=t},get:function(){return this[V]}},{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,h.default)(t,2),r=e[0],n=e[1],i=this.texturesSize||[0,0];return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}},{key:"cache",set:function(t){if(null==t)return N.cacheContextPool.put.apply(N.cacheContextPool,(0,l.default)(this[F].values())),void this[F].clear();var e=(0,s.default)(this.textures),r=this[F];r.has(e)||r.set(e,t)},get:function(){var t=(0,s.default)(this.textures),e=this[F];return e.has(t)?e.get(t):null}}]),e}(A.default),o.Attr=B,a);e.default=q,(0,L.registerNodeType)("sprite",q)},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[0],t[1],t[2],t[3],t[4],t[5]]};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],f=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]=f,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]),f=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]=f,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}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),o=n(i),a=r(4),u=n(a),s=r(5),f=n(s),l=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],f=(0,o.default)(r,3),l=f[0],c=f[1],h=f[2];s=s||0,h=h||0,this.x=i-l,this.y=a-c,this.z=s-h}return(0,f.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=l},function(t,e,r){"use strict";(function(t){function n(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==t&&t.hrtime){var e=t.hrtime(),r=(0,a.default)(e,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}function i(t){return"number"==typeof t?t={delay:t}:"entropy"in t&&(t={delay:t.entropy,isEntropy:!0}),t}Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),a=function(t){return t&&t.__esModule?t:{default:t}}(o);e.nowtime=n,e.formatDelay=i}).call(e,r(57))},function(t,e,r){"use strict";function n(t,e,r){if(t.__attributeNames=t.__attributeNames||[],t.__attributeNames.push(e),r.get){var n=r.get;r.get=function(){var t=n.call(this);return null==t&&(t=this.get(e)),t}}else r.get=function(){return this.get(e)};var i=r.set;return r.set=function(t){this.__clearCacheTag=!1,this.__updateTag=!1,i.call(this,t),this.subject&&this.__updateTag&&this.subject.forceUpdate(this.__clearCacheTag),delete this.__updateTag,delete this.__clearCacheTag},r}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e="[Deprecation] "+t+" has been deprecated."+e,(0,s.notice)(e)}function o(){function t(t,e,r){if(a=a||t.constructor.name+"#"+e,"function"==typeof r.value){var n=r.value;r.value=function(){i(a,o);for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}}if(r.set){var u=r.set;r.set=function(t){return i(a,o),u.call(this,t)}}if(r.get){var s=r.get;r.get=function(){return i(a,o),s.call(this)}}}for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var o="",a="";return 1===r.length?(o=r[0],t):2===r.length?(a=r[0],o=r[1],t):t.apply(void 0,r)}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(){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.get;n.get=function(t){return t=i.call(this),t=e.reduce(function(t,e){return e(t)},t)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.attr=n,e.setDeprecation=i,e.deprecate=o,e.parseValue=a,e.resolveValue=u;var s=r(129)},function(t,e,r){"use strict";function n(t,e,r,n){var i=t*n-e*r<0?-1:1,o=t*r+e*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function i(t,e,r,i,o,u,s,f,l,c){var h=c*(t-r)/2+l*(e-i)/2,d=-l*(t-r)/2+c*(e-i)/2,p=s*s,v=f*f,y=h*h,g=d*d,m=p*v-p*g-v*y;m<0&&(m=0),m/=p*g+v*y,m=Math.sqrt(m)*(o===u?-1:1);var b=m*s/f*d,_=m*-f/s*h,x=c*b-l*_+(t+r)/2,w=l*b+c*_+(e+i)/2,k=(h-b)/s,M=(d-_)/f,S=(-h-b)/s,E=(-d-_)/f,C=n(1,0,k,M),O=n(k,M,S,E);return 0===u&&O>0&&(O-=a),1===u&&O<0&&(O+=a),[x,w,C,O]}function o(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[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}var a=2*Math.PI;t.exports=function(t,e,r,n,u,s,f,l,c){var h=Math.sin(c*a/360),d=Math.cos(c*a/360),p=d*(t-r)/2+h*(e-n)/2,v=-h*(t-r)/2+d*(e-n)/2;if(0===p&&0===v)return[];if(0===f||0===l)return[];f=Math.abs(f),l=Math.abs(l);var y=p*p/(f*f)+v*v/(l*l);y>1&&(f*=Math.sqrt(y),l*=Math.sqrt(y));var g=i(t,e,r,n,u,s,f,l,h,d),m=[],b=g[2],_=g[3],x=Math.max(Math.ceil(Math.abs(_)/(a/4)),1);_/=x;for(var w=0;w<x;w++)m.push(o(b,_)),b+=_;return m.map(function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],n=t[e+1];r*=f,n*=l;var i=d*r-h*n,o=h*r+d*n;t[e+0]=i+g[0],t[e+1]=o+g[1]}return t})}},function(t,e,r){"use strict";function n(t){var e=0,r=0,n=0,i=0;return t.map(function(t){t=t.slice();var o=t[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var u=1;u<t.length;)t[u++]+=n,t[u++]+=i}switch(a){case"Z":n=e,i=r;break;case"H":n=t[1];break;case"V":i=t[1];break;case"M":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t})}t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return"string"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},function(t,e,r){"use strict";function n(t){for(var e,r=[],n=0,a=0,f=0,l=0,c=null,h=null,d=0,p=0,v=0,y=t.length;v<y;v++){var g=t[v],m=g[0];switch(m){case"M":f=g[1],l=g[2];break;case"A":var b=s(d,p,g[6],g[7],g[4],g[5],g[1],g[2],g[3]);if(!b.length)continue;b=b.map(function(t){var e=(0,u.default)(t,8);e[0],e[1];return{x1:e[2],y1:e[3],x2:e[4],y2:e[5],x:e[6],y:e[7]}});for(var _,x=0;x<b.length;x++)_=b[x],g=["C",_.x1,_.y1,_.x2,_.y2,_.x,_.y],x<b.length-1&&r.push(g);break;case"S":var w=d,k=p;"C"!=e&&"S"!=e||(w+=w-n,k+=k-a),g=["C",w,k,g[1],g[2],g[3],g[4]];break;case"T":"Q"==e||"T"==e?(c=2*d-c,h=2*p-h):(c=d,h=p),g=o(d,p,c,h,g[1],g[2]);break;case"Q":c=g[1],h=g[2],g=o(d,p,g[1],g[2],g[3],g[4]);break;case"L":g=i(d,p,g[1],g[2]);break;case"H":g=i(d,p,g[1],p);break;case"V":g=i(d,p,d,g[1]);break;case"Z":g=i(d,p,f,l)}e=m,d=g[g.length-2],p=g[g.length-1],g.length>4?(n=g[g.length-4],a=g[g.length-3]):(n=d,a=p),r.push(g)}return r}function i(t,e,r,n){return["C",t,e,r,n,r,n]}function o(t,e,r,n,i,o){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}var a=r(1),u=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports=n;var s=r(247)},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):[]}t.exports=n;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},function(t,e,r){"use strict";function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function i(t,e){var r=n(t),i=r.getPointAtLength(e);return[i.x,i.y]}function o(t,e){return n(t).getTotalLength(e)}function a(t,e,r){var n=t.d,i=new Path2D(n);return document.createElement("canvas").getContext("2d").isPointInPath(i,e,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.getPointAtLength=i,e.getTotalLength=o,e.isPointInPath=a}])});