UNPKG

cvs

Version:

A basic canvas framework for 2d drawing.

1 lines 27.1 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{168:function(t,r,e){"use strict";e.d(r,"a",function(){return i});var n=e(71),o=e(179);function i(t,r){return!r||"object"!==Object(n.a)(r)&&"function"!=typeof r?Object(o.a)(t):r}},169:function(t,r,e){"use strict";function n(t){return(n=Object.getPrototypeOf||function(t){return t.__proto__})(t)}e.d(r,"a",function(){return n})},170:function(t,r,e){"use strict";function n(t,r){return(n=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function o(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");n(t.prototype,r&&r.prototype),r&&n(t,r)}e.d(r,"a",function(){return o})},171:function(t,r,e){"use strict";var n=e(183);var o=e(184);function i(t,r){return Object(n.a)(t)||function(t,r){var e=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(e.push(a.value),!r||e.length!==r);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return e}(t,r)||Object(o.a)()}e.d(r,"a",function(){return i})},172:function(t,r,e){e(181)("asyncIterator")},173:function(t,r,e){"use strict";var n=e(3),o=e(14),i=e(6),a=e(2),u=e(10),c=e(55).KEY,s=e(5),f=e(75),l=e(31),h=e(30),p=e(1),g=e(182),d=e(181),v=e(188),y=e(76),m=e(8),b=e(4),w=e(27),k=e(72),x=e(53),S=e(73),E=e(189),_=e(99),N=e(7),O=e(26),L=_.f,F=N.f,I=E.f,M=n.Symbol,j=n.JSON,A=j&&j.stringify,P=p("_hidden"),T=p("toPrimitive"),q={}.propertyIsEnumerable,G=f("symbol-registry"),C=f("symbols"),R=f("op-symbols"),D=Object.prototype,J="function"==typeof M,V=n.QObject,z=!V||!V.prototype||!V.prototype.findChild,H=i&&s(function(){return 7!=S(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(t,r,e){var n=L(D,r);n&&delete D[r],F(t,r,e),n&&t!==D&&F(D,r,n)}:F,Y=function(t){var r=C[t]=S(M.prototype);return r._k=t,r},U=J&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},$=function(t,r,e){return t===D&&$(R,r,e),m(t),r=k(r,!0),m(e),o(C,r)?(e.enumerable?(o(t,P)&&t[P][r]&&(t[P][r]=!1),e=S(e,{enumerable:x(0,!1)})):(o(t,P)||F(t,P,x(1,{})),t[P][r]=!0),H(t,r,e)):F(t,r,e)},Q=function(t,r){m(t);for(var e,n=v(r=w(r)),o=0,i=n.length;i>o;)$(t,e=n[o++],r[e]);return t},W=function(t){var r=q.call(this,t=k(t,!0));return!(this===D&&o(C,t)&&!o(R,t))&&(!(r||!o(this,t)||!o(C,t)||o(this,P)&&this[P][t])||r)},X=function(t,r){if(t=w(t),r=k(r,!0),t!==D||!o(C,r)||o(R,r)){var e=L(t,r);return!e||!o(C,r)||o(t,P)&&t[P][r]||(e.enumerable=!0),e}},Z=function(t){for(var r,e=I(w(t)),n=[],i=0;e.length>i;)o(C,r=e[i++])||r==P||r==c||n.push(r);return n},K=function(t){for(var r,e=t===D,n=I(e?R:w(t)),i=[],a=0;n.length>a;)!o(C,r=n[a++])||e&&!o(D,r)||i.push(C[r]);return i};J||(u((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),r=function(e){this===D&&r.call(R,e),o(this,P)&&o(this[P],t)&&(this[P][t]=!1),H(this,t,x(1,e))};return i&&z&&H(D,t,{configurable:!0,set:r}),Y(t)}).prototype,"toString",function(){return this._k}),_.f=X,N.f=$,e(95).f=E.f=Z,e(70).f=W,e(96).f=K,i&&!e(51)&&u(D,"propertyIsEnumerable",W,!0),g.f=function(t){return Y(p(t))}),a(a.G+a.W+a.F*!J,{Symbol:M});for(var B="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;B.length>tt;)p(B[tt++]);for(var rt=O(p.store),et=0;rt.length>et;)d(rt[et++]);a(a.S+a.F*!J,"Symbol",{for:function(t){return o(G,t+="")?G[t]:G[t]=M(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var r in G)if(G[r]===t)return r},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!J,"Object",{create:function(t,r){return void 0===r?S(t):Q(S(t),r)},defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:K}),j&&a(a.S+a.F*(!J||s(function(){var t=M();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var r,e,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(e=r=n[1],(b(r)||void 0!==t)&&!U(t))return y(r)||(r=function(t,r){if("function"==typeof e&&(r=e.call(this,t,r)),!U(r))return r}),n[1]=r,A.apply(j,n)}}),M.prototype[T]||e(11)(M.prototype,T,M.prototype.valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},174:function(t,r,e){"use strict";var n=e(106),o=e(78);t.exports=e(107)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var r=n.getEntry(o(this,"Map"),t);return r&&r.v},set:function(t,r){return n.def(o(this,"Map"),0===t?0:t,r)}},n,!0)},175:function(t,r,e){var n=e(2);n(n.P,"Array",{fill:e(195)}),e(97)("fill")},177:function(t,r){!function(r){"use strict";var e,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=r.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=r.regeneratorRuntime=s?t.exports:{}).wrap=w;var l="suspendedStart",h="suspendedYield",p="executing",g="completed",d={},v={};v[a]=function(){return this};var y=Object.getPrototypeOf,m=y&&y(y(M([])));m&&m!==n&&o.call(m,a)&&(v=m);var b=E.prototype=x.prototype=Object.create(v);S.prototype=b.constructor=E,E.constructor=S,E[c]=S.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===S||"GeneratorFunction"===(r.displayName||r.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},f.awrap=function(t){return{__await:t}},_(N.prototype),N.prototype[u]=function(){return this},f.AsyncIterator=N,f.async=function(t,r,e,n){var o=new N(w(t,r,e,n));return f.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:o.next()})},_(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},f.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},f.values=M,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(F),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,r){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&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),F(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;F(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:M(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),d}}}function w(t,r,e,n){var o=r&&r.prototype instanceof x?r:x,i=Object.create(o.prototype),a=new I(n||[]);return i._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var u=O(a,e);if(u){if(u===d)continue;return u}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=g,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;var c=k(t,r,e);if("normal"===c.type){if(n=e.done?g:h,c.arg===d)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n=g,e.method="throw",e.arg=c.arg)}}}(t,e,a),i}function k(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}function x(){}function S(){}function E(){}function _(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function N(t){var r;this._invoke=function(e,n){function i(){return new Promise(function(r,i){!function r(e,n,i,a){var u=k(t[e],t,n);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}(e,n,r,i)})}return r=r?r.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=k(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function L(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function F(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function M(t){if(t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:j}}function j(){return{value:e,done:!0}}}(function(){return this}()||Function("return this")())},178:function(t,r,e){"use strict";function n(t){return function(){var r=this,e=arguments;return new Promise(function(n,o){var i=t.apply(r,e);function a(t,r){try{var e=i[t](r),a=e.value}catch(t){return void o(t)}e.done?n(a):Promise.resolve(a).then(u,c)}function u(t){a("next",t)}function c(t){a("throw",t)}u()})}}e.d(r,"a",function(){return n})},179:function(t,r,e){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}e.d(r,"a",function(){return n})},181:function(t,r,e){var n=e(3),o=e(16),i=e(51),a=e(182),u=e(7).f;t.exports=function(t){var r=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in r||u(r,t,{value:a.f(t)})}},182:function(t,r,e){r.f=e(1)},183:function(t,r,e){"use strict";function n(t){if(Array.isArray(t))return t}e.d(r,"a",function(){return n})},184:function(t,r,e){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.d(r,"a",function(){return n})},185:function(t,r,e){var n=e(2),o=e(190)(!0);n(n.S,"Object",{entries:function(t){return o(t)}})},186:function(t,r,e){"use strict";var n=e(3),o=e(14),i=e(15),a=e(77),u=e(72),c=e(5),s=e(95).f,f=e(99).f,l=e(7).f,h=e(104).trim,p=n.Number,g=p,d=p.prototype,v="Number"==i(e(73)(d)),y="trim"in String.prototype,m=function(t){var r=u(t,!1);if("string"==typeof r&&r.length>2){var e,n,o,i=(r=y?r.trim():h(r,3)).charCodeAt(0);if(43===i||45===i){if(88===(e=r.charCodeAt(2))||120===e)return NaN}else if(48===i){switch(r.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+r}for(var a,c=r.slice(2),s=0,f=c.length;s<f;s++)if((a=c.charCodeAt(s))<48||a>o)return NaN;return parseInt(c,n)}}return+r};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var r=arguments.length<1?0:t,e=this;return e instanceof p&&(v?c(function(){d.valueOf.call(e)}):"Number"!=i(e))?a(new g(m(r)),e,p):m(r)};for(var b,w=e(6)?s(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;w.length>k;k++)o(g,b=w[k])&&!o(p,b)&&l(p,b,f(g,b));p.prototype=d,d.constructor=p,e(10)(n,"Number",p)}},188:function(t,r,e){var n=e(26),o=e(96),i=e(70);t.exports=function(t){var r=n(t),e=o.f;if(e)for(var a,u=e(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&r.push(a);return r}},189:function(t,r,e){var n=e(27),o=e(95).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},190:function(t,r,e){var n=e(26),o=e(27),i=e(70).f;t.exports=function(t){return function(r){for(var e,a=o(r),u=n(a),c=u.length,s=0,f=[];c>s;)i.call(a,e=u[s++])&&f.push(t?[e,a[e]]:a[e]);return f}}},191:function(t,r,e){"use strict";var n=e(2),o=e(25),i=e(28),a=e(5),u=[].sort,c=[1,2,3];n(n.P+n.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!e(19)(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},192:function(t,r,e){"use strict";var n=e(2),o=e(193);n(n.P+n.F*!e(19)([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},193:function(t,r,e){var n=e(25),o=e(28),i=e(54),a=e(52);t.exports=function(t,r,e,u,c){n(r);var s=o(t),f=i(s),l=a(s.length),h=c?l-1:0,p=c?-1:1;if(e<2)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=p)h in f&&(u=r(u,f[h],h,s));return u}},194:function(t,r,e){"use strict";var n=e(2),o=e(32)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),n(n.P+n.F*a,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),e(97)(i)},195:function(t,r,e){"use strict";var n=e(28),o=e(102),i=e(52);t.exports=function(t){for(var r=n(this),e=i(r.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,e),c=a>2?arguments[2]:void 0,s=void 0===c?e:o(c,e);s>u;)r[u++]=t;return r}},196:function(t,r,e){"use strict";e.d(r,"a",function(){return a});var n=e(183),o=e(90),i=e(184);function a(t){return Object(n.a)(t)||Object(o.a)(t)||Object(i.a)()}},197:function(t,r,e){var n=e(198),o=e(199),i=e(200);function a(t){if(!(this instanceof a))return new a(t);this._path=o(t)?t:n(t),this._path=i(this._path),this._path=function(t){for(var r,e=[],n=["L",0,0],o=0,i=t.length;o<i;o++){var a=t[o];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",a[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.length-2],a[1]]);break;default:e.push(a)}}return e}(this._path),this._path=function(t){for(var r,e=0,n=0,o={S:{to:"C",x:3},T:{to:"Q",x:1}},i=0,a=t.length;i<a;i++){var u=t[i],c=o[u[0]];c&&(u[0]=c.to,r&&(r[0]===c.to?(e=2*r[c.x+2]-r[c.x],n=2*r[c.x+3]-r[c.x+1]):(e=r[r.length-2],n=r[r.length-1])),u.splice(1,0,e,n)),r=u}return t}(this._path)}function u(t,r,e,n){var o=t-e,i=r-n;return Math.sqrt(o*o+i*i)}t.exports=a,a.prototype.at=function(t,r){return this._walk(t,r).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(t,r){for(var e=[0,0],n=[0,0,0],o=[0,0],i=0,a=0;a<this._path.length;a++){var c=this._path[a];if("M"===c[0]){if(e[0]=c[1],e[1]=c[2],0===t)return{length:i,pos:e}}else if("C"===c[0]){n[0]=o[0]=e[0],n[1]=o[1]=e[1],n[2]=i;for(var s=100,f=0;f<=s;f++){var l=d(c,g=f/s),h=v(c,g);if(i+=u(e[0],e[1],l,h),e[0]=l,e[1]=h,"number"==typeof t&&i>=t){var p=(i-t)/(i-n[2]);return{length:i,pos:[e[0]*(1-p)+n[0]*p,e[1]*(1-p)+n[1]*p]}}n[0]=e[0],n[1]=e[1],n[2]=i}}else if("Q"===c[0]){n[0]=o[0]=e[0],n[1]=o[1]=e[1],n[2]=i;for(s=100,f=0;f<=s;f++){var g;l=y(c,g=f/s),h=m(c,g);if(i+=u(e[0],e[1],l,h),e[0]=l,e[1]=h,"number"==typeof t&&i>=t){p=(i-t)/(i-n[2]);return{length:i,pos:[e[0]*(1-p)+n[0]*p,e[1]*(1-p)+n[1]*p]}}n[0]=e[0],n[1]=e[1],n[2]=i}}else if("L"===c[0]){if(n[0]=e[0],n[1]=e[1],n[2]=i,i+=u(e[0],e[1],c[1],c[2]),e[0]=c[1],e[1]=c[2],"number"==typeof t&&i>=t){p=(i-t)/(i-n[2]);return{length:i,pos:[e[0]*(1-p)+n[0]*p,e[1]*(1-p)+n[1]*p]}}n[0]=e[0],n[1]=e[1],n[2]=i}}return{length:i,pos:e};function d(t,r){return Math.pow(1-r,3)*o[0]+3*Math.pow(1-r,2)*r*t[1]+3*(1-r)*Math.pow(r,2)*t[3]+Math.pow(r,3)*t[5]}function v(t,r){return Math.pow(1-r,3)*o[1]+3*Math.pow(1-r,2)*r*t[2]+3*(1-r)*Math.pow(r,2)*t[4]+Math.pow(r,3)*t[6]}function y(t,r){return Math.pow(1-r,2)*o[0]+2*(1-r)*r*t[1]+Math.pow(r,2)*t[3]}function m(t,r){return Math.pow(1-r,2)*o[1]+2*(1-r)*r*t[2]+Math.pow(r,2)*t[4]}}},198:function(t,r){t.exports=function(t){var r=[];return t.replace(n,function(t,n,i){var a=n.toLowerCase();for(i=function(t){var r=t.match(o);return r?r.map(Number):[]}(i),"m"==a&&i.length>2&&(r.push([n].concat(i.splice(0,2))),a="l",n="m"==n?"l":"L");;){if(i.length==e[a])return i.unshift(n),r.push(i);if(i.length<e[a])throw new Error("malformed path data");r.push([n].concat(i.splice(0,e[a])))}}),r};var e={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var o=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},199:function(t,r){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},200:function(t,r){t.exports=function(t){var r=0,e=0,n=0,o=0;return t.map(function(t){var i=(t=t.slice())[0],a=i.toUpperCase();if(i!=a)switch(t[0]=a,i){case"a":t[6]+=n,t[7]+=o;break;case"v":t[1]+=o;break;case"h":t[1]+=n;break;default:for(var u=1;u<t.length;)t[u++]+=n,t[u++]+=o}switch(a){case"Z":n=r,o=e;break;case"H":n=t[1];break;case"V":o=t[1];break;case"M":n=r=t[1],o=e=t[2];break;default:n=t[t.length-2],o=t[t.length-1]}return t})}},201:function(t,r){var e=4,n=.001,o=1e-7,i=10,a=11,u=1/(a-1),c="function"==typeof Float32Array;function s(t,r){return 1-3*r+3*t}function f(t,r){return 3*r-6*t}function l(t){return 3*t}function h(t,r,e){return((s(r,e)*t+f(r,e))*t+l(r))*t}function p(t,r,e){return 3*s(r,e)*t*t+2*f(r,e)*t+l(r)}function g(t){return t}t.exports=function(t,r,s,f){if(!(0<=t&&t<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===r&&s===f)return g;for(var l=c?new Float32Array(a):new Array(a),d=0;d<a;++d)l[d]=h(d*u,t,s);function v(r){for(var c=0,f=1,g=a-1;f!==g&&l[f]<=r;++f)c+=u;var d=c+(r-l[--f])/(l[f+1]-l[f])*u,v=p(d,t,s);return v>=n?function(t,r,n,o){for(var i=0;i<e;++i){var a=p(r,n,o);if(0===a)return r;r-=(h(r,n,o)-t)/a}return r}(r,d,t,s):0===v?d:function(t,r,e,n,a){var u,c,s=0;do{(u=h(c=r+(e-r)/2,n,a)-t)>0?e=c:r=c}while(Math.abs(u)>o&&++s<i);return c}(r,c,c+u,t,s)}return function(t){return 0===t?0:1===t?1:h(v(t),r,f)}}},202:function(t,r,e){var n=e(203);function o(t){if(t){var r=[0,0,0],e=1,o=t.match(/^#([a-fA-F0-9]{3})$/);if(o){o=o[1];for(var i=0;i<r.length;i++)r[i]=parseInt(o[i]+o[i],16)}else if(o=t.match(/^#([a-fA-F0-9]{6})$/)){o=o[1];for(i=0;i<r.length;i++)r[i]=parseInt(o.slice(2*i,2*i+2),16)}else if(o=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(i=0;i<r.length;i++)r[i]=parseInt(o[i+1]);e=parseFloat(o[4])}else if(o=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(i=0;i<r.length;i++)r[i]=Math.round(2.55*parseFloat(o[i+1]));e=parseFloat(o[4])}else if(o=t.match(/(\D+)/)){if("transparent"==o[1])return[0,0,0,0];if(!(r=n[o[1]]))return}for(i=0;i<r.length;i++)r[i]=f(r[i],0,255);return e=e||0==e?f(e,0,1):1,r[3]=e,r}}function i(t){if(t){var r=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var e=parseFloat(r[4]);return[f(parseInt(r[1]),0,360),f(parseFloat(r[2]),0,100),f(parseFloat(r[3]),0,100),f(isNaN(e)?1:e,0,1)]}}}function a(t){if(t){var r=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(r){var e=parseFloat(r[4]);return[f(parseInt(r[1]),0,360),f(parseFloat(r[2]),0,100),f(parseFloat(r[3]),0,100),f(isNaN(e)?1:e,0,1)]}}}function u(t,r){return void 0===r&&(r=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+r+")"}function c(t,r){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(r||t[3]||1)+")"}function s(t,r){return void 0===r&&(r=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+r+")"}function f(t,r,e){return Math.min(Math.max(r,t),e)}function l(t){var r=t.toString(16).toUpperCase();return r.length<2?"0"+r:r}t.exports={getRgba:o,getHsla:i,getRgb:function(t){var r=o(t);return r&&r.slice(0,3)},getHsl:function(t){var r=i(t);return r&&r.slice(0,3)},getHwb:a,getAlpha:function(t){var r=o(t);if(r)return r[3];if(r=i(t))return r[3];if(r=a(t))return r[3]},hexString:function(t){return"#"+l(t[0])+l(t[1])+l(t[2])},rgbString:function(t,r){if(r<1||t[3]&&t[3]<1)return u(t,r);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:u,percentString:function(t,r){if(r<1||t[3]&&t[3]<1)return c(t,r);var e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),o=Math.round(t[2]/255*100);return"rgb("+e+"%, "+n+"%, "+o+"%)"},percentaString:c,hslString:function(t,r){if(r<1||t[3]&&t[3]<1)return s(t,r);return"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:s,hwbString:function(t,r){void 0===r&&(r=void 0!==t[3]?t[3]:1);return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==r&&1!==r?", "+r:"")+")"},keyword:function(t){return h[t.slice(0,3)]}};var h={};for(var p in n)h[n[p]]=p},203:function(t,r,e){"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]}},204:function(t,r,e){var n=e(2);n(n.P,"Function",{bind:e(205)})},205:function(t,r,e){"use strict";var n=e(25),o=e(4),i=e(101),a=[].slice,u={};t.exports=Function.bind||function(t){var r=n(this),e=a.call(arguments,1),c=function(){var n=e.concat(a.call(arguments));return this instanceof c?function(t,r,e){if(!(r in u)){for(var n=[],o=0;o<r;o++)n[o]="a["+o+"]";u[r]=Function("F,a","return new F("+n.join(",")+")")}return u[r](t,e)}(r,n.length,n):i(r,n,t)};return o(r.prototype)&&(c.prototype=r.prototype),c}},206:function(t,r,e){"use strict";e(207);var n=e(8),o=e(100),i=e(6),a=/./.toString,u=function(t){e(10)(RegExp.prototype,"toString",t,!0)};e(5)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},207:function(t,r,e){e(6)&&"g"!=/./g.flags&&e(7).f(RegExp.prototype,"flags",{configurable:!0,get:e(100)})},208:function(t,r,e){var n=Date.prototype,o=n.toString,i=n.getTime;new Date(NaN)+""!="Invalid Date"&&e(10)(n,"toString",function(){var t=i.call(this);return t==t?o.call(this):"Invalid Date"})},209:function(t,r,e){var n=e(2);n(n.S,"Date",{now:function(){return(new Date).getTime()}})}}]);