forked from DevonRavihansa/sidebar-nav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecharts-liquidfill.min.js
3 lines (3 loc) · 84.4 KB
/
echarts-liquidfill.min.js
1
2
3
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("echarts")):"function"==typeof define&&define.amd?define(["echarts"],e):"object"==typeof exports?exports["echarts-liquidfill"]=e(require("echarts")):t["echarts-liquidfill"]=e(t.echarts)}(this,function(t){return function(t){function e(i){if(r[i])return r[i].exports;var n=r[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}([function(t,e,r){t.exports=r(17)},function(t,e){function r(t){if(null==t||"object"!=typeof t)return t;var e=t,i=D.call(t);if("[object Array]"===i){e=[];for(var n=0,a=t.length;n<a;n++)e[n]=r(t[n])}else if(L[i])e=t.constructor.from(t);else if(!O[i]&&!T(t)){e={};for(var o in t)t.hasOwnProperty(o)&&(e[o]=r(t[o]))}return e}function i(t,e,n){if(!M(e)||!M(t))return n?r(e):t;for(var a in e)if(e.hasOwnProperty(a)){var o=t[a],s=e[a];!M(s)||!M(o)||_(s)||_(o)||T(s)||T(o)||P(s)||P(o)?!n&&a in t||(t[a]=r(e[a],!0)):i(o,s,n)}return t}function n(t,e){for(var r=t[0],n=1,a=t.length;n<a;n++)r=i(r,t[n],e);return r}function a(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function o(t,e,r){for(var i in e)e.hasOwnProperty(i)&&(r?null!=e[i]:null==t[i])&&(t[i]=e[i]);return t}function s(){return document.createElement("canvas")}function h(){return I||(I=E.createCanvas().getContext("2d")),I}function l(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function u(t,e){function r(){}var i=t.prototype;r.prototype=e.prototype,t.prototype=new r;for(var n in i)t.prototype[n]=i[n];t.prototype.constructor=t,t.superClass=e}function c(t,e,r){t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,o(t,e,r)}function f(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function d(t,e,r){if(t&&e)if(t.forEach&&t.forEach===z)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function p(t,e,r){if(t&&e){if(t.map&&t.map===B)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}}function v(t,e,r,i){if(t&&e){if(t.reduce&&t.reduce===j)return t.reduce(e,r,i);for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function g(t,e,r){if(t&&e){if(t.filter&&t.filter===F)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}}function y(t,e,r){if(t&&e)for(var i=0,n=t.length;i<n;i++)if(e.call(r,t[i],i,t))return t[i]}function m(t,e){var r=R.call(arguments,2);return function(){return t.apply(e,r.concat(R.call(arguments)))}}function x(t){var e=R.call(arguments,1);return function(){return t.apply(this,e.concat(R.call(arguments)))}}function _(t){return"[object Array]"===D.call(t)}function b(t){return"function"==typeof t}function w(t){return"[object String]"===D.call(t)}function M(t){var e=typeof t;return"function"===e||!!t&&"object"==e}function P(t){return!!O[D.call(t)]}function T(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function k(t){return t!==t}function S(t){for(var e=0,r=arguments.length;e<r;e++)if(null!=arguments[e])return arguments[e]}function A(){return Function.call.apply(R,arguments)}function C(t,e){if(!t)throw new Error(e)}var I,O={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},L={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},D=Object.prototype.toString,q=Array.prototype,z=q.forEach,F=q.filter,R=q.slice,B=q.map,j=q.reduce,E={inherits:u,mixin:c,clone:r,merge:i,mergeAll:n,extend:a,defaults:o,getContext:h,createCanvas:s,indexOf:l,slice:A,find:y,isArrayLike:f,each:d,map:p,reduce:v,filter:g,bind:m,curry:x,isArray:_,isString:w,isObject:M,isFunction:b,isBuildInObject:P,isDom:T,eqNaN:k,retrieve:S,assert:C,noop:function(){}};t.exports=E},function(t,e,r){function i(t){n.call(this,t),this.path=new o}var n=r(9),a=r(1),o=r(6),s=r(31),h=r(43),l=h.prototype.getCanvasPattern,u=Math.abs;i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var r=this.style,i=this.path,n=r.hasStroke(),a=r.hasFill(),o=r.fill,s=r.stroke,h=a&&!!o.colorStops,u=n&&!!s.colorStops,c=a&&!!o.image,f=n&&!!s.image;if(r.bind(t,this,e),this.setTransform(t),this.__dirty){var d=this.getBoundingRect();h&&(this._fillGradient=r.getGradient(t,o,d)),u&&(this._strokeGradient=r.getGradient(t,s,d))}h?t.fillStyle=this._fillGradient:c&&(t.fillStyle=l.call(o,t)),u?t.strokeStyle=this._strokeGradient:f&&(t.strokeStyle=l.call(s,t));var p=r.lineDash,v=r.lineDashOffset,g=!!t.setLineDash,y=this.getGlobalScale();i.setScale(y[0],y[1]),this.__dirtyPath||p&&!g&&n?(i=this.path.beginPath(t),p&&!g&&(i.setLineDash(p),i.setLineDashOffset(v)),this.buildPath(i,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),a&&i.fill(t),p&&g&&(t.setLineDash(p),t.lineDashOffset=v),n&&i.stroke(t),p&&g&&t.setLineDash([]),this.restoreTransform(t),null!=r.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,r){},getBoundingRect:function(){var t=this._rect,e=this.style,r=!t;if(r){var i=this.path;this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var n=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||r){n.copy(t);var a=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),o>1e-10&&(n.width+=a/o,n.height+=a/o,n.x-=a/o/2,n.y-=a/o/2)}return n}return t},contain:function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),n=this.style;if(t=r[0],e=r[1],i.contain(t,e)){var a=this.path.data;if(n.hasStroke()){var o=n.lineWidth,h=n.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(n.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),s.containStroke(a,o/h,t,e)))return!0}if(n.hasFill())return s.contain(a,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var r=this.shape;if(r){if(a.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);else r[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1}},i.extend=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var r=t.shape;if(r){this.shape=this.shape||{};var n=this.shape;for(var a in r)!n.hasOwnProperty(a)&&r.hasOwnProperty(a)&&(n[a]=r[a])}t.init&&t.init.call(this,e)};a.inherits(e,i);for(var r in t)"style"!==r&&"shape"!==r&&(e.prototype[r]=t[r]);return e},a.inherits(i,n),t.exports=i},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new r(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new r(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,r){return t[0]=e,t[1]=r,t},add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t},sub:function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t},div:function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},normalize:function(t,e){var r=i.len(e);return 0===r?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t},applyTransform:function(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,r){"use strict";function i(t,e,r,i){r<0&&(t+=r,r=-r),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=r,this.height=i}var n=r(3),a=r(7),o=n.applyTransform,s=Math.min,h=Math.max;i.prototype={constructor:i,union:function(t){var e=s(t.x,this.x),r=s(t.y,this.y);this.width=h(t.x+t.width,this.x+this.width)-e,this.height=h(t.y+t.height,this.y+this.height)-r,this.x=e,this.y=r},applyTransform:function(){var t=[],e=[],r=[],i=[];return function(n){if(n){t[0]=r[0]=this.x,t[1]=i[1]=this.y,e[0]=i[0]=this.x+this.width,e[1]=r[1]=this.y+this.height,o(t,t,n),o(e,e,n),o(r,r,n),o(i,i,n),this.x=s(t[0],e[0],r[0],i[0]),this.y=s(t[1],e[1],r[1],i[1]);var a=h(t[0],e[0],r[0],i[0]),l=h(t[1],e[1],r[1],i[1]);this.width=a-this.x,this.height=l-this.y}}}(),calculateTransform:function(t){var e=this,r=t.width/e.width,i=t.height/e.height,n=a.create();return a.translate(n,n,[-e.x,-e.y]),a.scale(n,n,[r,i]),a.translate(n,n,[t.x,t.y]),n},intersect:function(t){if(!t)return!1;t instanceof i||(t=i.create(t));var e=this,r=e.x,n=e.x+e.width,a=e.y,o=e.y+e.height,s=t.x,h=t.x+t.width,l=t.y,u=t.y+t.height;return!(n<s||h<r||o<l||u<a)},contain:function(t,e){var r=this;return t>=r.x&&t<=r.x+r.width&&e>=r.y&&e<=r.y+r.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,r){"use strict";function i(t){return t>-w&&t<w}function n(t){return t>w||t<-w}function a(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function o(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function s(t,e,r,n,a,o){var s=n+3*(e-r)-t,h=3*(r-2*e+t),l=3*(e-t),u=t-a,c=h*h-3*s*l,f=h*l-9*s*u,d=l*l-3*h*u,p=0;if(i(c)&&i(f))if(i(h))o[0]=0;else{var v=-l/h;v>=0&&v<=1&&(o[p++]=v)}else{var g=f*f-4*c*d;if(i(g)){var y=f/c,v=-h/s+y,m=-y/2;v>=0&&v<=1&&(o[p++]=v),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var x=b(g),w=c*h+1.5*s*(-f+x),M=c*h+1.5*s*(-f-x);w=w<0?-_(-w,T):_(w,T),M=M<0?-_(-M,T):_(M,T);var v=(-h-(w+M))/(3*s);v>=0&&v<=1&&(o[p++]=v)}else{var k=(2*c*h-3*s*f)/(2*b(c*c*c)),S=Math.acos(k)/3,A=b(c),C=Math.cos(S),v=(-h-2*A*C)/(3*s),m=(-h+A*(C+P*Math.sin(S)))/(3*s),I=(-h+A*(C-P*Math.sin(S)))/(3*s);v>=0&&v<=1&&(o[p++]=v),m>=0&&m<=1&&(o[p++]=m),I>=0&&I<=1&&(o[p++]=I)}}return p}function h(t,e,r,a,o){var s=6*r-12*e+6*t,h=9*e+3*a-3*t-9*r,l=3*e-3*t,u=0;if(i(h)){if(n(s)){var c=-l/s;c>=0&&c<=1&&(o[u++]=c)}}else{var f=s*s-4*h*l;if(i(f))o[0]=-s/(2*h);else if(f>0){var d=b(f),c=(-s+d)/(2*h),p=(-s-d)/(2*h);c>=0&&c<=1&&(o[u++]=c),p>=0&&p<=1&&(o[u++]=p)}}return u}function l(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,h=(i-r)*n+r,l=(s-o)*n+o,u=(h-s)*n+s,c=(u-l)*n+l;a[0]=t,a[1]=o,a[2]=l,a[3]=c,a[4]=c,a[5]=u,a[6]=h,a[7]=i}function u(t,e,r,i,n,o,s,h,l,u,c){var f,d,p,v,g,y=.005,m=1/0;k[0]=l,k[1]=u;for(var _=0;_<1;_+=.05)S[0]=a(t,r,n,s,_),S[1]=a(e,i,o,h,_),v=x(k,S),v<m&&(f=_,m=v);m=1/0;for(var w=0;w<32&&!(y<M);w++)d=f-y,p=f+y,S[0]=a(t,r,n,s,d),S[1]=a(e,i,o,h,d),v=x(S,k),d>=0&&v<m?(f=d,m=v):(A[0]=a(t,r,n,s,p),A[1]=a(e,i,o,h,p),g=x(A,k),p<=1&&g<m?(f=p,m=g):y*=.5);return c&&(c[0]=a(t,r,n,s,f),c[1]=a(e,i,o,h,f)),b(m)}function c(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function f(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function d(t,e,r,a,o){var s=t-2*e+r,h=2*(e-t),l=t-a,u=0;if(i(s)){if(n(h)){var c=-l/h;c>=0&&c<=1&&(o[u++]=c)}}else{var f=h*h-4*s*l;if(i(f)){var c=-h/(2*s);c>=0&&c<=1&&(o[u++]=c)}else if(f>0){var d=b(f),c=(-h+d)/(2*s),p=(-h-d)/(2*s);c>=0&&c<=1&&(o[u++]=c),p>=0&&p<=1&&(o[u++]=p)}}return u}function p(t,e,r){var i=t+r-2*e;return 0===i?.5:(t-e)/i}function v(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function g(t,e,r,i,n,a,o,s,h){var l,u=.005,f=1/0;k[0]=o,k[1]=s;for(var d=0;d<1;d+=.05){S[0]=c(t,r,n,d),S[1]=c(e,i,a,d);var p=x(k,S);p<f&&(l=d,f=p)}f=1/0;for(var v=0;v<32&&!(u<M);v++){var g=l-u,y=l+u;S[0]=c(t,r,n,g),S[1]=c(e,i,a,g);var p=x(S,k);if(g>=0&&p<f)l=g,f=p;else{A[0]=c(t,r,n,y),A[1]=c(e,i,a,y);var m=x(A,k);y<=1&&m<f?(l=y,f=m):u*=.5}}return h&&(h[0]=c(t,r,n,l),h[1]=c(e,i,a,l)),b(f)}var y=r(3),m=y.create,x=y.distSquare,_=Math.pow,b=Math.sqrt,w=1e-8,M=1e-4,P=b(3),T=1/3,k=m(),S=m(),A=m();t.exports={cubicAt:a,cubicDerivativeAt:o,cubicRootAt:s,cubicExtrema:h,cubicSubdivide:l,cubicProjectPoint:u,quadraticAt:c,quadraticDerivativeAt:f,quadraticRootAt:d,quadraticExtremum:p,quadraticSubdivide:v,quadraticProjectPoint:g}},function(t,e,r){"use strict";var i=r(5),n=r(3),a=r(36),o=r(4),s=r(11).devicePixelRatio,h={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],u=[],c=[],f=[],d=Math.min,p=Math.max,v=Math.cos,g=Math.sin,y=Math.sqrt,m=Math.abs,x="undefined"!=typeof Float32Array,_=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};_.prototype={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=m(1/s/t)||0,this._uy=m(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(h.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var r=m(t-this._xi)>this._ux||m(e-this._yi)>this._uy||this._len<5;return this.addData(h.L,t,e),this._ctx&&r&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,r,i,n,a){return this.addData(h.C,t,e,r,i,n,a),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,r,i,n,a):this._ctx.bezierCurveTo(t,e,r,i,n,a)),this._xi=n,this._yi=a,this},quadraticCurveTo:function(t,e,r,i){return this.addData(h.Q,t,e,r,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,r,i):this._ctx.quadraticCurveTo(t,e,r,i)),this._xi=r,this._yi=i,this},arc:function(t,e,r,i,n,a){return this.addData(h.A,t,e,r,r,i,n-i,0,a?0:1),this._ctx&&this._ctx.arc(t,e,r,i,n,a),this._xi=v(n)*r+t,this._yi=g(n)*r+t,this},arcTo:function(t,e,r,i,n){return this._ctx&&this._ctx.arcTo(t,e,r,i,n),this},rect:function(t,e,r,i){return this._ctx&&this._ctx.rect(t,e,r,i),this.addData(h.R,t,e,r,i),this},closePath:function(){this.addData(h.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,r),t.closePath()),this._xi=e,this._yi=r,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,r=0;r<t.length;r++)e+=t[r];this._dashSum=e}return this},setLineDashOffset:function(t){return this._dashOffset=t,this},len:function(){return this._len},setData:function(t){var e=t.length;this.data&&this.data.length==e||!x||(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e},appendPath:function(t){t instanceof Array||(t=[t]);for(var e=t.length,r=0,i=this._len,n=0;n<e;n++)r+=t[n].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var n=0;n<e;n++)for(var a=t[n].data,o=0;o<a.length;o++)this.data[i++]=a[o];this._len=i},addData:function(t){var e=this.data;this._len+arguments.length>e.length&&(this._expandData(),e=this.data);for(var r=0;r<arguments.length;r++)e[this._len++]=arguments[r];this._prevCmd=t},_expandData:function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(t,e){var r,i,n=this._dashSum,a=this._dashOffset,o=this._lineDash,s=this._ctx,h=this._xi,l=this._yi,u=t-h,c=e-l,f=y(u*u+c*c),v=h,g=l,m=o.length;for(u/=f,c/=f,a<0&&(a=n+a),a%=n,v-=a*u,g-=a*c;u>0&&v<=t||u<0&&v>=t||0==u&&(c>0&&g<=e||c<0&&g>=e);)i=this._dashIdx,r=o[i],v+=u*r,g+=c*r,this._dashIdx=(i+1)%m,u>0&&v<h||u<0&&v>h||c>0&&g<l||c<0&&g>l||s[i%2?"moveTo":"lineTo"](u>=0?d(v,t):p(v,t),c>=0?d(g,e):p(g,e));u=v-t,c=g-e,this._dashOffset=-y(u*u+c*c)},_dashedBezierTo:function(t,e,r,n,a,o){var s,h,l,u,c,f=this._dashSum,d=this._dashOffset,p=this._lineDash,v=this._ctx,g=this._xi,m=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,M=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)h=x(g,t,r,a,s+.1)-x(g,t,r,a,s),l=x(m,e,n,o,s+.1)-x(m,e,n,o,s),_+=y(h*h+l*l);for(;b<w&&(M+=p[b],!(M>d));b++);for(s=(M-d)/_;s<=1;)u=x(g,t,r,a,s),c=x(m,e,n,o,s),b%2?v.moveTo(u,c):v.lineTo(u,c),s+=p[b]/_,b=(b+1)%w;b%2!==0&&v.lineTo(a,o),h=a-u,l=o-c,this._dashOffset=-y(h*h+l*l)},_dashedQuadraticTo:function(t,e,r,i){var n=r,a=i;r=(r+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,r,i,n,a)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){l[0]=l[1]=c[0]=c[1]=Number.MAX_VALUE,u[0]=u[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,r=0,i=0,s=0,d=0;d<t.length;){var p=t[d++];switch(1==d&&(e=t[d],r=t[d+1],i=e,s=r),p){case h.M:i=t[d++],s=t[d++],e=i,r=s,c[0]=i,c[1]=s,f[0]=i,f[1]=s;break;case h.L:a.fromLine(e,r,t[d],t[d+1],c,f),e=t[d++],r=t[d++];break;case h.C:a.fromCubic(e,r,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],c,f),e=t[d++],r=t[d++];break;case h.Q:a.fromQuadratic(e,r,t[d++],t[d++],t[d],t[d+1],c,f),e=t[d++],r=t[d++];break;case h.A:var y=t[d++],m=t[d++],x=t[d++],_=t[d++],b=t[d++],w=t[d++]+b,M=(t[d++],1-t[d++]);1==d&&(i=v(b)*x+y,s=g(b)*_+m),a.fromArc(y,m,x,_,b,w,M,c,f),e=v(w)*x+y,r=g(w)*_+m;break;case h.R:i=e=t[d++],s=r=t[d++];var P=t[d++],T=t[d++];a.fromLine(i,s,i+P,s+T,c,f);break;case h.Z:e=i,r=s}n.min(l,l,c),n.max(u,u,f)}return 0===d&&(l[0]=l[1]=u[0]=u[1]=0),new o(l[0],l[1],u[0]-l[0],u[1]-l[1])},rebuildPath:function(t){for(var e,r,i,n,a,o,s=this.data,l=this._ux,u=this._uy,c=this._len,f=0;f<c;){var d=s[f++];switch(1==f&&(i=s[f],n=s[f+1],e=i,r=n),d){case h.M:e=i=s[f++],r=n=s[f++],t.moveTo(i,n);break;case h.L:a=s[f++],o=s[f++],(m(a-i)>l||m(o-n)>u||f===c-1)&&(t.lineTo(a,o),i=a,n=o);break;case h.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),i=s[f-2],n=s[f-1];break;case h.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),i=s[f-2],n=s[f-1];break;case h.A:var p=s[f++],y=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++],M=s[f++],P=s[f++],T=x>_?x:_,k=x>_?1:x/_,S=x>_?_/x:1,A=Math.abs(x-_)>.001,C=b+w;A?(t.translate(p,y),t.rotate(M),t.scale(k,S),t.arc(0,0,T,b,C,1-P),t.scale(1/k,1/S),t.rotate(-M),t.translate(-p,-y)):t.arc(p,y,T,b,C,1-P),1==f&&(e=v(b)*x+p,r=g(b)*_+y),i=v(C)*x+p,n=g(C)*_+y;break;case h.R:e=i=s[f],r=n=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case h.Z:t.closePath(),i=e,n=r}}}},_.CMD=h,t.exports=_},function(t,e){var r="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(){var t=new r(6);return i.identity(t),t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mul:function(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],h=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=h,t},translate:function(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t},rotate:function(t,e,r){var i=e[0],n=e[2],a=e[4],o=e[1],s=e[3],h=e[5],l=Math.sin(r),u=Math.cos(r);return t[0]=i*u+o*l,t[1]=-i*l+o*u,t[2]=n*u+s*l,t[3]=-n*l+u*s,t[4]=u*a+l*h,t[5]=u*h-l*a,t},scale:function(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t},invert:function(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],h=r*o-a*i;return h?(h=1/h,t[0]=o*h,t[1]=-a*h,t[2]=-i*h,t[3]=r*h,t[4]=(i*s-o*n)*h,t[5]=(a*n-r*s)*h,t):null}};t.exports=i},function(e,r){e.exports=t},function(t,e,r){function i(t){t=t||{},o.call(this,t);for(var e in t)t.hasOwnProperty(e)&&"style"!==e&&(this[e]=t[e]);this.style=new a(t.style),this._rect=null,this.__clipPaths=[]}var n=r(1),a=r(45),o=r(10),s=r(50);i.prototype={constructor:i,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:-1,beforeBrush:function(t){},afterBrush:function(t){},brush:function(t,e){},getBoundingRect:function(){},contain:function(t,e){return this.rectContain(t,e)},traverse:function(t,e){t.call(e,this)},rectContain:function(t,e){var r=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return i.contain(r[0],r[1])},dirty:function(){this.__dirty=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(t){return this.animate("style",t)},attrKV:function(t,e){"style"!==t?o.prototype.attrKV.call(this,t,e):this.style.set(e)},setStyle:function(t,e){return this.style.set(t,e),this.dirty(!1),this},useStyle:function(t){return this.style=new a(t),this.dirty(!1),this}},n.inherits(i,o),n.mixin(i,s),t.exports=i},function(t,e,r){"use strict";var i=r(38),n=r(61),a=r(62),o=r(60),s=r(1),h=function(t){a.call(this,t),n.call(this,t),o.call(this,t),this.id=t.id||i()};h.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var r=this[t];r||(r=this[t]=[]),r[0]=e[0],r[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(s.isObject(t))for(var r in t)t.hasOwnProperty(r)&&this.attrKV(r,t[r]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this.clipPath&&this.clipPath.addSelfToZr(t)},removeSelfFromZr:function(t){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this.clipPath&&this.clipPath.removeSelfFromZr(t)}},s.mixin(h,o),s.mixin(h,a),s.mixin(h,n),t.exports=h},function(t,e){var r=1;"undefined"!=typeof window&&(r=Math.max(window.devicePixelRatio||1,1));var i={debugMode:0,devicePixelRatio:r};t.exports=i},function(t,e,r){function i(t,e){var r=t+":"+e;if(h[r])return h[r];for(var i=(t+"").split("\n"),n=0,a=0,o=i.length;a<o;a++)n=Math.max(p.measureText(i[a],e).width,n);return l>u&&(l=0,h={}),l++,h[r]=n,n}function n(t,e,r,n){var a=((t||"")+"").split("\n").length,o=i(t,e),s=i("国",e),h=a*s,l=new f(0,0,o,h);switch(l.lineHeight=s,n){case"bottom":case"alphabetic":l.y-=s;break;case"middle":l.y-=s/2}switch(r){case"end":case"right":l.x-=l.width;break;case"center":l.x-=l.width/2}return l}function a(t,e,r,i){var n=e.x,a=e.y,o=e.height,s=e.width,h=r.height,l=o/2-h/2,u="left";switch(t){case"left":n-=i,a+=l,u="right";break;case"right":n+=i+s,a+=l,u="left";break;case"top":n+=s/2,a-=i+h,u="center";break;case"bottom":n+=s/2,a+=o+i,u="center";break;case"inside":n+=s/2,a+=l,u="center";break;case"insideLeft":n+=i,a+=l,u="left";break;case"insideRight":n+=s-i,a+=l,u="right";break;case"insideTop":n+=s/2,a+=i,u="center";break;case"insideBottom":n+=s/2,a+=o-h-i,u="center";break;case"insideTopLeft":n+=i,a+=i,u="left";break;case"insideTopRight":n+=s-i,a+=i,u="right";break;case"insideBottomLeft":n+=i,a+=o-h-i;break;case"insideBottomRight":n+=s-i,a+=o-h-i,u="right"}return{x:n,y:a,textAlign:u,textBaseline:"top"}}function o(t,e,r,n,a){if(!e)return"";a=a||{},n=d(n,"...");for(var o=d(a.maxIterations,2),h=d(a.minChar,0),l=i("国",r),u=i("a",r),c=d(a.placeholder,""),f=e=Math.max(0,e-1),p=0;p<h&&f>=u;p++)f-=u;var v=i(n);v>f&&(n="",v=0),f=e-v;for(var g=(t+"").split("\n"),p=0,y=g.length;p<y;p++){var m=g[p],x=i(m,r);if(!(x<=e)){for(var _=0;;_++){if(x<=f||_>=o){m+=n;break}var b=0===_?s(m,f,u,l):x>0?Math.floor(m.length*f/x):0;m=m.substr(0,b),x=i(m,r)}""===m&&(m=c),g[p]=m}}return g.join("\n")}function s(t,e,r,i){for(var n=0,a=0,o=t.length;a<o&&n<e;a++){var s=t.charCodeAt(a);n+=0<=s&&s<=127?r:i}return a}var h={},l=0,u=5e3,c=r(1),f=r(4),d=c.retrieve,p={getWidth:i,getBoundingRect:n,adjustTextPositionOnRect:a,truncateText:o,measureText:function(t,e){var r=c.getContext();return r.font=e||"12px sans-serif",r.measureText(t)}};t.exports=p},function(t,e){var r=2*Math.PI;t.exports={normalizeRadian:function(t){return t%=r,t<0&&(t+=r),t}}},function(t,e){var r=function(t){this.colorStops=t||[]};r.prototype={constructor:r,addColorStop:function(t,e){this.colorStops.push({offset:t,color:e})}},t.exports=r},function(t,e,r){var i=r(49),n=r(48);t.exports={buildPath:function(t,e,r){var a=e.points,o=e.smooth;if(a&&a.length>=2){if(o&&"spline"!==o){var s=n(a,o,r,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var h=a.length,l=0;l<(r?h:h-1);l++){var u=s[2*l],c=s[2*l+1],f=a[(l+1)%h];t.bezierCurveTo(u[0],u[1],c[0],c[1],f[0],f[1])}}else{"spline"===o&&(a=i(a,r)),t.moveTo(a[0][0],a[0][1]);for(var l=1,d=a.length;l<d;l++)t.lineTo(a[l][0],a[l][1])}r&&t.closePath()}}}},function(t,e){function r(t){return t=Math.round(t),t<0?0:t>255?255:t}function i(t){return t=Math.round(t),t<0?0:t>360?360:t}function n(t){return t<0?0:t>1?1:t}function a(t){return r(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function o(t){return n(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function s(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function h(t,e,r){return t+(e-t)*r}function l(t){if(t){t+="";var e=t.replace(/ /g,"").toLowerCase();if(e in x)return x[e].slice();if("#"!==e.charAt(0)){var r=e.indexOf("("),i=e.indexOf(")");if(r!==-1&&i+1===e.length){var n=e.substr(0,r),s=e.substr(r+1,i-(r+1)).split(","),h=1;switch(n){case"rgba":if(4!==s.length)return;h=o(s.pop());case"rgb":if(3!==s.length)return;return[a(s[0]),a(s[1]),a(s[2]),h];case"hsla":if(4!==s.length)return;return s[3]=o(s[3]),u(s);case"hsl":if(3!==s.length)return;return u(s);default:return}}}else{if(4===e.length){var l=parseInt(e.substr(1),16);if(!(l>=0&&l<=4095))return;return[(3840&l)>>4|(3840&l)>>8,240&l|(240&l)>>4,15&l|(15&l)<<4,1]}if(7===e.length){var l=parseInt(e.substr(1),16);if(!(l>=0&&l<=16777215))return;return[(16711680&l)>>16,(65280&l)>>8,255&l,1]}}}}function u(t){var e=(parseFloat(t[0])%360+360)%360/360,i=o(t[1]),n=o(t[2]),a=n<=.5?n*(i+1):n+i-n*i,h=2*n-a,l=[r(255*s(h,a,e+1/3)),r(255*s(h,a,e)),r(255*s(h,a,e-1/3))];return 4===t.length&&(l[3]=t[3]),l}function c(t){if(t){var e,r,i=t[0]/255,n=t[1]/255,a=t[2]/255,o=Math.min(i,n,a),s=Math.max(i,n,a),h=s-o,l=(s+o)/2;if(0===h)e=0,r=0;else{r=l<.5?h/(s+o):h/(2-s-o);var u=((s-i)/6+h/2)/h,c=((s-n)/6+h/2)/h,f=((s-a)/6+h/2)/h;i===s?e=f-c:n===s?e=1/3+u-f:a===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,r,l];return null!=t[3]&&d.push(t[3]),d}}function f(t,e){var r=l(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0;return m(r,4===r.length?"rgba":"rgb")}}function d(t,e){var r=l(t);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function p(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[0,0,0,0];var n=t*(e.length-1),a=Math.floor(n),o=Math.ceil(n),s=e[a],l=e[o],u=n-a;return i[0]=r(h(s[0],l[0],u)),i[1]=r(h(s[1],l[1],u)),i[2]=r(h(s[2],l[2],u)),i[3]=r(h(s[3],l[3],u)),i}}function v(t,e,i){if(e&&e.length&&t>=0&&t<=1){var a=t*(e.length-1),o=Math.floor(a),s=Math.ceil(a),u=l(e[o]),c=l(e[s]),f=a-o,d=m([r(h(u[0],c[0],f)),r(h(u[1],c[1],f)),r(h(u[2],c[2],f)),n(h(u[3],c[3],f))],"rgba");return i?{color:d,leftIndex:o,rightIndex:s,value:a}:d}}function g(t,e,r,n){if(t=l(t))return t=c(t),null!=e&&(t[0]=i(e)),null!=r&&(t[1]=o(r)),null!=n&&(t[2]=o(n)),m(u(t),"rgba")}function y(t,e){if(t=l(t),t&&null!=e)return t[3]=n(e),m(t,"rgba")}function m(t,e){var r=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(r+=","+t[3]),e+"("+r+")"}var x={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],
paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};t.exports={parse:l,lift:f,toHex:d,fastMapToColor:p,mapToColor:v,modifyHSL:g,modifyAlpha:y,stringify:m}},function(t,e,r){var i=r(8);r(19),r(20),i.registerVisual(i.util.curry(r(24),"liquidFill"))},function(t,e,r){function i(t,e,r,i){return 0===e?[[t+.5*r/Math.PI/2,i/2],[t+.5*r/Math.PI,i],[t+r/4,i]]:1===e?[[t+.5*r/Math.PI/2*(Math.PI-2),i],[t+.5*r/Math.PI/2*(Math.PI-1),i/2],[t+r/4,0]]:2===e?[[t+.5*r/Math.PI/2,-i/2],[t+.5*r/Math.PI,-i],[t+r/4,-i]]:[[t+.5*r/Math.PI/2*(Math.PI-2),-i],[t+.5*r/Math.PI/2*(Math.PI-1),-i/2],[t+r/4,0]]}var n=r(8);t.exports=n.graphic.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},style:{fill:"#0f0"},buildPath:function(t,e){for(var r=2*Math.ceil(2*e.radius/e.waveLength*4);e.phase<2*-Math.PI;)e.phase+=2*Math.PI;for(;e.phase>0;)e.phase-=2*Math.PI;var n=e.phase/Math.PI/2*e.waveLength,a=e.cx-e.radius+n-2*e.radius;t.moveTo(a,e.waterLevel);for(var o=0,s=0;s<r;++s){var h=s%4,l=i(s*e.waveLength/4,h,e.waveLength,e.amplitude);t.bezierCurveTo(l[0][0]+a,-l[0][1]+e.waterLevel,l[1][0]+a,-l[1][1]+e.waterLevel,l[2][0]+a,-l[2][1]+e.waterLevel),s===r-1&&(o=l[2][0])}e.inverse?(t.lineTo(o+a,e.cy-e.radius),t.lineTo(a,e.cy-e.radius),t.lineTo(a,e.waterLevel)):(t.lineTo(o+a,e.cy+e.radius),t.lineTo(a,e.cy+e.radius),t.lineTo(a,e.waterLevel)),t.closePath()}})},function(t,e,r){var i=r(21),n=r(8);n.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var r=i(["value"],t.data),a=new n.List(r,this);return a.initData(t.data),a},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{normal:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},emphasis:{opacity:.8}},label:{normal:{show:!0,textStyle:{color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle"},position:"inside"}}}})},function(t,e,r){var i=r(8),n=i.number,a=r(23),o=n.parsePercent,s=r(18);i.extendChartView({type:"liquidFill",render:function(t,e,r){function n(e,r){var n=t.get("shape");if(n){if(0===n.indexOf("path://")){var o=i.graphic.makePath(n.slice(7),{}),s=o.getBoundingRect(),h=s.width,l=s.height;h>l?(l*=2*e/h,h=2*e):(h*=2*e/l,l=2*e);var u=r?0:P-h/2,c=r?0:T-l/2;return o=i.graphic.makePath(n.slice(7),{},new i.graphic.BoundingRect(u,c,h,l)),r&&(o.position=[-h/2,-l/2]),o}var f=r?-e:P-e,d=r?-e:T-e;return"pin"===n?d+=e:"arrow"===n&&(d-=e),a.createSymbol(n,f,d,2*e,2*e)}return new i.graphic.Circle({shape:{cx:r?0:P,cy:r?0:T,r:e}})}function h(){var e=n(k);return e.style.fill=null,e.setStyle(t.getModel("outline.itemStyle").getItemStyle()),e}function l(){var e=n(y);e.setStyle(t.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var r=n(y);r.setStyle(t.getModel("backgroundStyle").getItemStyle()),r.style.stroke=null;var a=new i.graphic.Group;return a.add(e),a.add(r),a}function u(t,e,r){var a=p.getItemModel(t),h=a.getModel("itemStyle"),l=a.get("phase"),u=o(a.get("amplitude"),2*y),c=o(a.get("waveLength"),2*y),f=p.get("value",t),d=y-f*y*2;l=r?r.shape.phase:"auto"===l?t*Math.PI/4:l;var v=h.getModel("normal").getItemStyle();v.fill=p.getItemVisual(t,"color");var g=2*y,m=new s({shape:{waveLength:c,radius:y,cx:g,cy:0,waterLevel:d,amplitude:u,phase:l,inverse:e},style:v,position:[P,T]});m.shape._waterLevel=d;var x=h.getModel("emphasis").getItemStyle();x.lineWidth=0,i.graphic.setHoverStyle(m,x);var _=n(y,!0);return m.setClipPath(_),m}function c(t,e,r){var i=p.getItemModel(t),n=i.get("period"),a=i.get("direction"),o=p.get("value",t),s=(p.get("value",0),i.get("phase"));s=r?r.shape.phase:"auto"===s?t*Math.PI/4:s;var h=function(e){var r=p.count();return 0===r?e:e*(.2+(r-t)/r*.8)},l=0;l="auto"===n?h(5e3):"function"==typeof n?n(o,t):n;var u=0;"right"===a||null==a?u=Math.PI:"left"===a?u=-Math.PI:"none"===a?u=0:console.error("Illegal direction value for liquid fill."),"none"!==a&&i.get("waveAnimation")&&e.animate("shape",!0).when(0,{phase:s}).when(l/2,{phase:u+s}).when(l,{phase:2*u+s}).during(function(){C&&C.dirty(!0)}).start()}function f(e){function r(){var e=t.getFormattedLabel(0,"normal"),r=100*p.get("value",0),i=p.getName(0)||t.name;return isNaN(r)||(i=r.toFixed(0)+"%"),null==e?i:e}var a=v.getModel("label.normal"),o=a.getModel("textStyle"),s={z2:10,shape:{x:O,y:L,width:2*y,height:2*y},style:{fill:"transparent",text:r(),textAlign:o.get("align"),textVerticalAlign:o.get("baseline")},silent:!0},h=new i.graphic.Rect(s),l=o.get("color");i.graphic.setText(h.style,a,l);var u=new i.graphic.Rect(s),c=o.get("insideColor");i.graphic.setText(u.style,a,c),u.style.textFill=c;var f=new i.graphic.Group;f.add(h),f.add(u);var d=n(y,!0);return C=new i.graphic.CompoundPath({shape:{paths:e},position:[P,T]}),C.setClipPath(d),u.setClipPath(C),f}var d=this.group;d.removeAll();var p=t.getData(),v=p.getItemModel(0),g=v.get("center"),y=v.get("radius"),m=r.getWidth(),x=r.getHeight(),_=Math.min(m,x),b=0,w=0,M=t.get("outline.show");M&&(b=t.get("outline.borderDistance"),w=o(t.get("outline.itemStyle.borderWidth"),_));var P=o(g[0],m),T=o(g[1],x),k=o(y,_)/2,S=k-w/2,A=o(b,_),C=null;if(M){var I=h();I.style.lineWidth=w,d.add(h())}y=S-A;var O=P-y,L=T-y;d.add(l());var D=this._data,q=[];p.diff(D).add(function(e){var r=u(e,!1),n=r.shape.waterLevel;r.shape.waterLevel=y,i.graphic.initProps(r,{shape:{waterLevel:n}},t),r.z2=2,c(e,r,null),d.add(r),p.setItemGraphicEl(e,r),q.push(r)}).update(function(e,r){var n=D.getItemGraphicEl(r),a=u(e,!1,n);i.graphic.updateProps(n,{shape:a.shape,style:a.style},t),n.position=a.position,n.setClipPath(a.clipPath),c(e,n,n),d.add(n),p.setItemGraphicEl(e,n),q.push(n)}).remove(function(t){var e=D.getItemGraphicEl(t);d.remove(e)}).execute(),d.add(f(q)),this._data=p}})},function(t,e,r){function i(t,e,r,i){if(!e)return t;var s=n(e[0]),h=a.isArray(s)&&s.length||1;r=r||[],i=i||"extra";for(var l=0;l<h;l++)if(!t[l]){var u=r[l]||i+(l-r.length);t[l]=o(e,l)?{type:"ordinal",name:u}:u}return t}function n(t){return a.isArray(t)?t:a.isObject(t)?t.value:t}var a=r(1),o=i.guessOrdinal=function(t,e){for(var r=0,i=t.length;r<i;r++){var o=n(t[r]);if(!a.isArray(o))return!1;var o=o[e];if(null!=o&&isFinite(o))return!1;if(a.isString(o)&&"-"!==o)return!0}return!1};t.exports=i},function(t,e,r){"use strict";function i(t){return null!=t&&"none"!=t}function n(t){return"string"==typeof t?_.lift(t,-.1):t}function a(t){if(t.__hoverStlDirty){var e=t.style.stroke,r=t.style.fill,a=t.__hoverStl;a.fill=a.fill||(i(r)?n(r):null),a.stroke=a.stroke||(i(e)?n(e):null);var o={};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.style[s]);t.__normalStl=o,t.__hoverStlDirty=!1}}function o(t){t.__isHover||(a(t),t.useHoverLayer?t.__zr&&t.__zr.addHover(t,t.__hoverStl):(t.setStyle(t.__hoverStl),t.z2+=1),t.__isHover=!0)}function s(t){if(t.__isHover){var e=t.__normalStl;t.useHoverLayer?t.__zr&&t.__zr.removeHover(t):(e&&t.setStyle(e),t.z2-=1),t.__isHover=!1}}function h(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&o(t)}):o(t)}function l(t){"group"===t.type?t.traverse(function(t){"group"!==t.type&&s(t)}):s(t)}function u(t,e){t.__hoverStl=t.hoverStyle||e||{},t.__hoverStlDirty=!0,t.__isHover&&a(t)}function c(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&h(this)}function f(t){this.__hoverSilentOnTouch&&t.zrByTouch||!this.__isEmphasis&&l(this)}function d(){this.__isEmphasis=!0,h(this)}function p(){this.__isEmphasis=!1,l(this)}function v(t,e,r,i,n,a){"function"==typeof n&&(a=n,n=null);var o=i&&(i.ifEnableAnimation?i.ifEnableAnimation():i.getShallow("animation"));if(o){var s=t?"Update":"",h=i&&i.getShallow("animationDuration"+s),l=i&&i.getShallow("animationEasing"+s),u=i&&i.getShallow("animationDelay"+s);"function"==typeof u&&(u=u(n)),"function"==typeof h&&(h=h(n)),h>0?e.animateTo(r,h,u||0,l,a):(e.attr(r),a&&a())}else e.attr(r),a&&a()}var g=r(1),y=r(63),m=Math.round,x=r(2),_=r(16),b=r(7),w=r(3),M={};M.Group=r(34),M.Image=r(41),M.Text=r(46),M.Circle=r(53),M.Sector=r(59),M.Ring=r(58),M.Polygon=r(55),M.Polyline=r(56),M.Rect=r(57),M.Line=r(54),M.BezierCurve=r(52),M.Arc=r(51),M.CompoundPath=r(40),M.LinearGradient=r(42),M.RadialGradient=r(44),M.BoundingRect=r(4),M.extendShape=function(t){return x.extend(t)},M.extendPath=function(t,e){return y.extendFromString(t,e)},M.makePath=function(t,e,r,i){var n=y.createFromString(t,e),a=n.getBoundingRect();if(r){var o=a.width/a.height;if("center"===i){var s,h=r.height*o;h<=r.width?s=r.height:(h=r.width,s=h/o);var l=r.x+r.width/2,u=r.y+r.height/2;r.x=l-h/2,r.y=u-s/2,r.width=h,r.height=s}M.resizePath(n,r)}return n},M.mergePath=y.mergePath,M.resizePath=function(t,e){if(t.applyTransform){var r=t.getBoundingRect(),i=r.calculateTransform(e);t.applyTransform(i)}},M.subPixelOptimizeLine=function(t){var e=M.subPixelOptimize,r=t.shape,i=t.style.lineWidth;return m(2*r.x1)===m(2*r.x2)&&(r.x1=r.x2=e(r.x1,i,!0)),m(2*r.y1)===m(2*r.y2)&&(r.y1=r.y2=e(r.y1,i,!0)),t},M.subPixelOptimizeRect=function(t){var e=M.subPixelOptimize,r=t.shape,i=t.style.lineWidth,n=r.x,a=r.y,o=r.width,s=r.height;return r.x=e(r.x,i,!0),r.y=e(r.y,i,!0),r.width=Math.max(e(n+o,i,!1)-r.x,0===o?0:1),r.height=Math.max(e(a+s,i,!1)-r.y,0===s?0:1),t},M.subPixelOptimize=function(t,e,r){var i=m(2*t);return(i+m(e))%2===0?i/2:(i+(r?1:-1))/2},M.setHoverStyle=function(t,e,r){t.__hoverSilentOnTouch=r&&r.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&u(t,e)}):u(t,e),t.on("mouseover",c).on("mouseout",f),t.on("emphasis",d).on("normal",p)},M.setText=function(t,e,r){var i=e.getShallow("position")||"inside",n=i.indexOf("inside")>=0?"white":r,a=e.getModel("textStyle");g.extend(t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:i,textFill:a.getTextColor()||n})},M.updateProps=function(t,e,r,i,n){v(!0,t,e,r,i,n)},M.initProps=function(t,e,r,i,n){v(!1,t,e,r,i,n)},M.getTransform=function(t,e){for(var r=b.identity([]);t&&t!==e;)b.mul(r,t.getLocalTransform(),r),t=t.parent;return r},M.applyTransform=function(t,e,r){return r&&(e=b.invert([],e)),w.applyTransform([],t,e)},M.transformDirection=function(t,e,r){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),n=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),a=["left"===t?-i:"right"===t?i:0,"top"===t?-n:"bottom"===t?n:0];return a=M.applyTransform(a,e,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"},M.groupTransition=function(t,e,r,i){function n(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function a(t){var e={position:w.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=g.extend({},t.shape)),e}if(t&&e){var o=n(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=o[t.anid];if(e){var i=a(t);t.attr(a(e)),M.updateProps(t,i,r,t.dataIndex)}}})}},t.exports=M},function(t,e,r){"use strict";var i=r(22),n=r(4),a=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}}),o=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),s=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),h=i-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,c=Math.sin(l),f=Math.cos(l);t.arc(r,h,o,Math.PI-l,2*Math.PI+l);var d=.6*o,p=.7*o;t.bezierCurveTo(r+u-c*d,h+s+f*d,r,i-p,r,i),t.bezierCurveTo(r,i-p,r-u+c*d,h+s+f*d,r-u,h+s),t.closePath()}}),h=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),l={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:o,pin:s,arrow:h,triangle:a},u={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}},c={};for(var f in l)l.hasOwnProperty(f)&&(c[f]=new l[f]);var d=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style,e=this.shape;"pin"===e.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,r){var i=e.symbolType,n=c[i];"none"!==e.symbolType&&(n||(i="rect",n=c[i]),u[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r))}}),p=function(t){if("image"!==this.type){var e=this.style,r=this.shape;r&&"line"===r.symbolType?e.stroke=t:this.__isEmptyBrush?(e.stroke=t,e.fill="#fff"):(e.fill&&(e.fill=t),e.stroke&&(e.stroke=t)),this.dirty(!1)}},v={createSymbol:function(t,e,r,a,o,s){var h=0===t.indexOf("empty");h&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return l=0===t.indexOf("image://")?new i.Image({style:{image:t.slice(8),x:e,y:r,width:a,height:o}}):0===t.indexOf("path://")?i.makePath(t.slice(7),{},new n(e,r,a,o)):new d({shape:{symbolType:t,x:e,y:r,width:a,height:o}}),l.__isEmptyBrush=h,l.setColor=p,l.setColor(s),l}};t.exports=v},function(t,e){t.exports=function(t,e){var r={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),n={};if(!e.isSeriesFiltered(t)){var a=t.getData();a.each(function(t){var e=a.getRawIndex(t);n[e]=t}),i.each(function(e){var o=i.getItemModel(e),s=n[e],h=null!=s&&a.getItemVisual(s,"color",!0);if(h)i.setItemVisual(e,"color",h);else{var l=o.get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),r);i.setItemVisual(e,"color",l),null!=s&&a.setItemVisual(s,"color",l)}})}})}},function(t,e,r){function i(t,e){return t[e]}function n(t,e,r){t[e]=r}function a(t,e,r){return(e-t)*r+t}function o(t,e,r){return r>.5?e:t}function s(t,e,r,i,n){var o=t.length;if(1==n)for(var s=0;s<o;s++)i[s]=a(t[s],e[s],r);else for(var h=t[0].length,s=0;s<o;s++)for(var l=0;l<h;l++)i[s][l]=a(t[s][l],e[s][l],r)}function h(t,e,r){var i=t.length,n=e.length;if(i!==n){var a=i>n;if(a)t.length=n;else for(var o=i;o<n;o++)t.push(1===r?e[o]:x.call(e[o]))}for(var s=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===r)isNaN(t[o])&&(t[o]=e[o]);else for(var h=0;h<s;h++)isNaN(t[o][h])&&(t[o][h]=e[o][h])}function l(t,e,r){if(t===e)return!0;var i=t.length;if(i!==e.length)return!1;if(1===r){for(var n=0;n<i;n++)if(t[n]!==e[n])return!1}else for(var a=t[0].length,n=0;n<i;n++)for(var o=0;o<a;o++)if(t[n][o]!==e[n][o])return!1;return!0}function u(t,e,r,i,n,a,o,s,h){var l=t.length;if(1==h)for(var u=0;u<l;u++)s[u]=c(t[u],e[u],r[u],i[u],n,a,o);else for(var f=t[0].length,u=0;u<l;u++)for(var d=0;d<f;d++)s[u][d]=c(t[u][d],e[u][d],r[u][d],i[u][d],n,a,o)}function c(t,e,r,i,n,a,o){var s=.5*(r-t),h=.5*(i-e);return(2*(e-r)+s+h)*o+(-3*(e-r)-2*s-h)*a+s*n+e}function f(t){if(m(t)){var e=t.length;if(m(t[0])){for(var r=[],i=0;i<e;i++)r.push(x.call(t[i]));return r}return x.call(t)}return t}function d(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function p(t,e,r,i,n){var f=t._getter,p=t._setter,y="spline"===e,x=i.length;if(x){var _,b=i[0].value,w=m(b),M=!1,P=!1,T=w&&m(b[0])?2:1;i.sort(function(t,e){return t.time-e.time}),_=i[x-1].time;for(var k=[],S=[],A=i[0].value,C=!0,I=0;I<x;I++){k.push(i[I].time/_);var O=i[I].value;if(w&&l(O,A,T)||!w&&O===A||(C=!1),A=O,"string"==typeof O){var L=g.parse(O);L?(O=L,M=!0):P=!0}S.push(O)}if(!C){for(var D=S[x-1],I=0;I<x-1;I++)w?h(S[I],D,T):!isNaN(S[I])||isNaN(D)||P||M||(S[I]=D);w&&h(f(t._target,n),D,T);var q,z,F,R,B,j,E=0,G=0;if(M)var H=[0,0,0,0];var N=function(t,e){var r;if(e<0)r=0;else if(e<G){for(q=Math.min(E+1,x-1),r=q;r>=0&&!(k[r]<=e);r--);r=Math.min(r,x-2)}else{for(r=E;r<x&&!(k[r]>e);r++);r=Math.min(r-1,x-2)}E=r,G=e;var i=k[r+1]-k[r];if(0!==i)if(z=(e-k[r])/i,y)if(R=S[r],F=S[0===r?r:r-1],B=S[r>x-2?x-1:r+1],j=S[r>x-3?x-1:r+2],w)u(F,R,B,j,z,z*z,z*z*z,f(t,n),T);else{var h;if(M)h=u(F,R,B,j,z,z*z,z*z*z,H,1),h=d(H);else{if(P)return o(R,B,z);h=c(F,R,B,j,z,z*z,z*z*z)}p(t,n,h)}else if(w)s(S[r],S[r+1],z,f(t,n),T);else{var h;if(M)s(S[r],S[r+1],z,H,1),h=d(H);else{if(P)return o(S[r],S[r+1],z);h=a(S[r],S[r+1],z)}p(t,n,h)}},V=new v({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:N,ondestroy:r});return e&&"spline"!==e&&(V.easing=e),V}}}var v=r(26),g=r(16),y=r(1),m=y.isArrayLike,x=Array.prototype.slice,_=function(t,e,r,a){this._tracks={},this._target=t,this._loop=e||!1,this._getter=r||i,this._setter=a||n,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var r=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!r[i]){r[i]=[];var n=this._getter(this._target,i);if(null==n)continue;0!==t&&r[i].push({time:0,value:f(n)})}r[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,r=0;r<e;r++)t[r].call(this)},start:function(t){var e,r=this,i=0,n=function(){i--,i||r._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var o=p(this,t,n,this._tracks[a],a);o&&(this._clipList.push(o),i++,this.animation&&this.animation.addClip(o),e=o)}if(e){var s=e.onframe;e.onframe=function(t,e){s(t,e);for(var i=0;i<r._onframeList.length;i++)r._onframeList[i](t,e)}}return i||this._doneCallback(),this},stop:function(t){for(var e=this._clipList,r=this.animation,i=0;i<e.length;i++){var n=e[i];t&&n.onframe(this._target,1),r&&r.removeClip(n)}e.length=0},delay:function(t){return this._delay=t,this},done:function(t){return t&&this._doneList.push(t),this},getClips:function(){return this._clipList}},t.exports=_},function(t,e,r){function i(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var n=r(27);i.prototype={constructor:i,step:function(t){this._initialized||(this._startTime=t+this._delay,this._initialized=!0);var e=(t-this._startTime)/this._life;if(!(e<0)){e=Math.min(e,1);var r=this.easing,i="string"==typeof r?n[r]:r,a="function"==typeof i?i(e):e;return this.fire("frame",a),1==e?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(t){var e=(t-this._startTime)%this._life;this._startTime=t-e+this.gap,this._needsRemove=!1},fire:function(t,e){t="on"+t,this[t]&&this[t](this._target,e)}},t.exports=i},function(t,e){var r={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return 0===t?0:1===t?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-r.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}};t.exports=r},function(t,e,r){var i=r(13).normalizeRadian,n=2*Math.PI;t.exports={containStroke:function(t,e,r,a,o,s,h,l,u){if(0===h)return!1;var c=h;l-=t,u-=e;var f=Math.sqrt(l*l+u*u);if(f-c>r||f+c<r)return!1;if(Math.abs(a-o)%n<1e-4)return!0;if(s){var d=a;a=i(o),o=i(d)}else a=i(a),o=i(o);a>o&&(o+=n);var p=Math.atan2(u,l);return p<0&&(p+=n),p>=a&&p<=o||p+n>=a&&p+n<=o}}},function(t,e,r){var i=r(5);t.exports={containStroke:function(t,e,r,n,a,o,s,h,l,u,c){if(0===l)return!1;var f=l;if(c>e+f&&c>n+f&&c>o+f&&c>h+f||c<e-f&&c<n-f&&c<o-f&&c<h-f||u>t+f&&u>r+f&&u>a+f&&u>s+f||u<t-f&&u<r-f&&u<a-f&&u<s-f)return!1;var d=i.cubicProjectPoint(t,e,r,n,a,o,s,h,u,c,null);return d<=f/2}}},function(t,e){t.exports={containStroke:function(t,e,r,i,n,a,o){if(0===n)return!1;var s=n,h=0,l=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t===r)return Math.abs(a-t)<=s/2;h=(e-i)/(t-r),l=(t*i-r*e)/(t-r);var u=h*a-o+l,c=u*u/(h*h+1);return c<=s/2*s/2}}},function(t,e,r){"use strict";function i(t,e){return Math.abs(t-e)<x}function n(){var t=b[0];b[0]=b[1],b[1]=t}function a(t,e,r,i,a,o,s,h,l,u){if(u>e&&u>i&&u>o&&u>h||u<e&&u<i&&u<o&&u<h)return 0;var c=v.cubicRootAt(e,i,o,h,u,_);if(0===c)return 0;for(var f,d,p=0,g=-1,y=0;y<c;y++){var m=_[y],x=0===m||1===m?.5:1,w=v.cubicAt(t,r,a,s,m);w<l||(g<0&&(g=v.cubicExtrema(e,i,o,h,b),b[1]<b[0]&&g>1&&n(),f=v.cubicAt(e,i,o,h,b[0]),g>1&&(d=v.cubicAt(e,i,o,h,b[1]))),p+=2==g?m<b[0]?f<e?x:-x:m<b[1]?d<f?x:-x:h<d?x:-x:m<b[0]?f<e?x:-x:h<f?x:-x)}return p}function o(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var h=v.quadraticRootAt(e,i,a,s,_);if(0===h)return 0;var l=v.quadraticExtremum(e,i,a);if(l>=0&&l<=1){for(var u=0,c=v.quadraticAt(e,i,a,l),f=0;f<h;f++){var d=0===_[f]||1===_[f]?.5:1,p=v.quadraticAt(t,r,n,_[f]);p<o||(u+=_[f]<l?c<e?d:-d:a<c?d:-d)}return u}var d=0===_[0]||1===_[0]?.5:1,p=v.quadraticAt(t,r,n,_[0]);return p<o?0:a<e?d:-d}function s(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var h=Math.sqrt(r*r-s*s);_[0]=-h,_[1]=h;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l%m<1e-4){i=0,n=m;var u=a?1:-1;return o>=_[0]+t&&o<=_[1]+t?u:0}if(a){var h=i;i=p(n),n=p(h)}else i=p(i),n=p(n);i>n&&(n+=m);for(var c=0,f=0;f<2;f++){var d=_[f];if(d+t>o){var v=Math.atan2(s,d),u=a?1:-1;v<0&&(v=m+v),(v>=i&&v<=n||v+m>=i&&v+m<=n)&&(v>Math.PI/2&&v<1.5*Math.PI&&(u=-u),c+=u)}}return c}function h(t,e,r,n,h){for(var u=0,p=0,v=0,m=0,x=0,_=0;_<t.length;){var b=t[_++];switch(b===l.M&&_>1&&(r||(u+=g(p,v,m,x,n,h))),1==_&&(p=t[_],v=t[_+1],m=p,x=v),b){case l.M:m=t[_++],x=t[_++],p=m,v=x;break;case l.L:if(r){if(y(p,v,t[_],t[_+1],e,n,h))return!0}else u+=g(p,v,t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.C:if(r){if(c.containStroke(p,v,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,n,h))return!0}else u+=a(p,v,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.Q:if(r){if(f.containStroke(p,v,t[_++],t[_++],t[_],t[_+1],e,n,h))return!0}else u+=o(p,v,t[_++],t[_++],t[_],t[_+1],n,h)||0;p=t[_++],v=t[_++];break;case l.A:var w=t[_++],M=t[_++],P=t[_++],T=t[_++],k=t[_++],S=t[_++],A=(t[_++],1-t[_++]),C=Math.cos(k)*P+w,I=Math.sin(k)*T+M;_>1?u+=g(p,v,C,I,n,h):(m=C,x=I);var O=(n-w)*T/P+w;if(r){if(d.containStroke(w,M,T,k,k+S,A,e,O,h))return!0}else u+=s(w,M,T,k,k+S,A,O,h);p=Math.cos(k+S)*P+w,v=Math.sin(k+S)*T+M;break;case l.R:m=p=t[_++],x=v=t[_++];var L=t[_++],D=t[_++],C=m+L,I=x+D;if(r){if(y(m,x,C,x,e,n,h)||y(C,x,C,I,e,n,h)||y(C,I,m,I,e,n,h)||y(m,I,m,x,e,n,h))return!0}else u+=g(C,x,C,I,n,h),u+=g(m,I,m,x,n,h);break;case l.Z:if(r){if(y(p,v,m,x,e,n,h))return!0}else u+=g(p,v,m,x,n,h);p=m,v=x}}return r||i(v,x)||(u+=g(p,v,m,x,n,h)||0),0!==u}var l=r(6).CMD,u=r(30),c=r(29),f=r(32),d=r(28),p=r(13).normalizeRadian,v=r(5),g=r(33),y=u.containStroke,m=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,r){return h(t,0,!1,e,r)},containStroke:function(t,e,r,i){return h(t,e,!0,r,i)}}},function(t,e,r){var i=r(5);t.exports={containStroke:function(t,e,r,n,a,o,s,h,l){if(0===s)return!1;var u=s;if(l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u||h>t+u&&h>r+u&&h>a+u||h<t-u&&h<r-u&&h<a-u)return!1;var c=i.quadraticProjectPoint(t,e,r,n,a,o,h,l,null);return c<=u/2}}},function(t,e){t.exports=function(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i)return 0;if(i===e)return 0;var o=i<e?1:-1,s=(a-e)/(i-e);1!==s&&0!==s||(o=i<e?.5:-.5);var h=s*(r-t)+t;return h>n?o:0}},function(t,e,r){var i=r(1),n=r(10),a=r(4),o=function(t){t=t||{},n.call(this,t);for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,r=0;r<e.length;r++)if(e[r].name===t)return e[r]},childCount:function(){return this._children.length},add:function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},addBefore:function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var r=this._children,i=r.indexOf(e);i>=0&&(r.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,r=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof o&&t.addChildrenToStorage(e)),r&&r.refresh()},remove:function(t){var e=this.__zr,r=this.__storage,n=this._children,a=i.indexOf(n,t);return a<0?this:(n.splice(a,1),t.parent=null,r&&(r.delFromMap(t.id),t instanceof o&&t.delChildrenFromStorage(r)),e&&e.refresh(),this)},removeAll:function(){var t,e,r=this._children,i=this.__storage;for(e=0;e<r.length;e++)t=r[e],i&&(i.delFromMap(t.id),t instanceof o&&t.delChildrenFromStorage(i)),t.parent=null;return r.length=0,this},eachChild:function(t,e){for(var r=this._children,i=0;i<r.length;i++){var n=r[i];t.call(e,n,i)}return this},traverse:function(t,e){for(var r=0;r<this._children.length;r++){var i=this._children[r];t.call(e,i),"group"===i.type&&i.traverse(t,e)}return this},addChildrenToStorage:function(t){for(var e=0;e<this._children.length;e++){var r=this._children[e];t.addToMap(r),r instanceof o&&r.addChildrenToStorage(t)}},delChildrenFromStorage:function(t){for(var e=0;e<this._children.length;e++){var r=this._children[e];t.delFromMap(r.id),r instanceof o&&r.delChildrenFromStorage(t)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(t){for(var e=null,r=new a(0,0,0,0),i=t||this._children,n=[],o=0;o<i.length;o++){var s=i[o];if(!s.ignore&&!s.invisible){var h=s.getBoundingRect(),l=s.getLocalTransform(n);l?(r.copy(h),r.applyTransform(l),e=e||r.clone(),e.union(r)):(e=e||h.clone(),e.union(h))}}return e||r}},i.inherits(o,n),t.exports=o},function(t,e){var r=function(){this.head=null,this.tail=null,this._len=0},i=r.prototype;i.insert=function(t){var e=new n(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len};var n=function(t){this.value=t,this.next,this.prev},a=function(t){this._list=new r,this._map={},this._maxSize=t||10},o=a.prototype;o.put=function(t,e){var r=this._list,i=this._map;if(null==i[t]){var n=r.len();if(n>=this._maxSize&&n>0){var a=r.head;r.remove(a),delete i[a.key]}var o=r.insert(e);o.key=t,i[t]=o}},o.get=function(t){var e=this._map[t],r=this._list;if(null!=e)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},o.clear=function(){this._list.clear(),this._map={}},t.exports=a},function(t,e,r){var i=r(3),n=r(5),a={},o=Math.min,s=Math.max,h=Math.sin,l=Math.cos,u=i.create(),c=i.create(),f=i.create(),d=2*Math.PI;a.fromPoints=function(t,e,r){if(0!==t.length){var i,n=t[0],a=n[0],h=n[0],l=n[1],u=n[1];for(i=1;i<t.length;i++)n=t[i],a=o(a,n[0]),h=s(h,n[0]),l=o(l,n[1]),u=s(u,n[1]);e[0]=a,e[1]=l,r[0]=h,r[1]=u}},a.fromLine=function(t,e,r,i,n,a){n[0]=o(t,r),n[1]=o(e,i),a[0]=s(t,r),a[1]=s(e,i)};var p=[],v=[];a.fromCubic=function(t,e,r,i,a,h,l,u,c,f){var d,g=n.cubicExtrema,y=n.cubicAt,m=g(t,r,a,l,p);for(c[0]=1/0,c[1]=1/0,f[0]=-(1/0),f[1]=-(1/0),d=0;d<m;d++){var x=y(t,r,a,l,p[d]);c[0]=o(x,c[0]),f[0]=s(x,f[0])}for(m=g(e,i,h,u,v),d=0;d<m;d++){var _=y(e,i,h,u,v[d]);c[1]=o(_,c[1]),f[1]=s(_,f[1])}c[0]=o(t,c[0]),f[0]=s(t,f[0]),c[0]=o(l,c[0]),f[0]=s(l,f[0]),c[1]=o(e,c[1]),f[1]=s(e,f[1]),c[1]=o(u,c[1]),f[1]=s(u,f[1])},a.fromQuadratic=function(t,e,r,i,a,h,l,u){var c=n.quadraticExtremum,f=n.quadraticAt,d=s(o(c(t,r,a),1),0),p=s(o(c(e,i,h),1),0),v=f(t,r,a,d),g=f(e,i,h,p);l[0]=o(t,a,v),l[1]=o(e,h,g),u[0]=s(t,a,v),u[1]=s(e,h,g)},a.fromArc=function(t,e,r,n,a,o,s,p,v){var g=i.min,y=i.max,m=Math.abs(a-o);if(m%d<1e-4&&m>1e-4)return p[0]=t-r,p[1]=e-n,v[0]=t+r,void(v[1]=e+n);if(u[0]=l(a)*r+t,u[1]=h(a)*n+e,c[0]=l(o)*r+t,c[1]=h(o)*n+e,g(p,u,c),y(v,u,c),a%=d,a<0&&(a+=d),o%=d,o<0&&(o+=d),a>o&&!s?o+=d:a<o&&s&&(a+=d),s){var x=o;o=a,a=x}for(var _=0;_<o;_+=Math.PI/2)_>a&&(f[0]=l(_)*r+t,f[1]=h(_)*n+e,g(p,f,p),y(v,f,v))},t.exports=a},function(t,e){function r(t){var e={},r={},i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);return i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,
r.version=n[1]),a&&(r.edge=!0,r.version=a[1]),o&&(r.weChat=!0),{browser:r,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!r.ie&&!r.edge,pointerEventsSupported:"onpointerdown"in window&&(r.edge||r.ie&&r.version>=11)}}var i={};i="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:r(navigator.userAgent),t.exports=i},function(t,e){var r=2311;t.exports=function(){return r++}},function(t,e,r){var i=r(11);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(i.debugMode>1)for(var t in arguments)console.log(arguments[t])}},function(t,e,r){var i=r(2);t.exports=i.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var t=this.__dirtyPath,e=this.shape.paths,r=0;r<e.length;r++)t=t||e[r].__dirtyPath;this.__dirtyPath=t,this.__dirty=this.__dirty||t},beforeBrush:function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),r=0;r<t.length;r++)t[r].path.setScale(e[0],e[1])},buildPath:function(t,e){for(var r=e.paths||[],i=0;i<r.length;i++)r[i].buildPath(t,r[i].shape,!0)},afterBrush:function(){for(var t=this.shape.paths,e=0;e<t.length;e++)t[e].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),i.prototype.getBoundingRect.call(this)}})},function(t,e,r){function i(t){n.call(this,t)}var n=r(9),a=r(4),o=r(1),s=r(35),h=new s(50);i.prototype={constructor:i,type:"image",brush:function(t,e){var r,i=this.style,n=i.image;if(i.bind(t,this,e),r="string"==typeof n?this._image:n,!r&&n){var a=h.get(n);if(!a)return r=new Image,r.onload=function(){r.onload=null;for(var t=0;t<a.pending.length;t++)a.pending[t].dirty()},a={image:r,pending:[this]},r.src=n,h.put(n,a),void(this._image=r);if(r=a.image,this._image=r,!r.width||!r.height)return void a.pending.push(this)}if(r){var o=i.width||r.width,s=i.height||r.height,l=i.x||0,u=i.y||0;if(!r.width||!r.height)return;if(this.setTransform(t),i.sWidth&&i.sHeight){var c=i.sx||0,f=i.sy||0;t.drawImage(r,c,f,i.sWidth,i.sHeight,l,u,o,s)}else if(i.sx&&i.sy){var c=i.sx,f=i.sy,d=o-c,p=s-f;t.drawImage(r,c,f,d,p,l,u,o,s)}else t.drawImage(r,l,u,o,s);null==i.width&&(i.width=o),null==i.height&&(i.height=s),this.restoreTransform(t),null!=i.text&&this.drawRectText(t,this.getBoundingRect())}},getBoundingRect:function(){var t=this.style;return this._rect||(this._rect=new a(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect}},o.inherits(i,n),t.exports=i},function(t,e,r){"use strict";var i=r(1),n=r(14),a=function(t,e,r,i,a,o){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==r?1:r,this.y2=null==i?0:i,this.type="linear",this.global=o||!1,n.call(this,a)};a.prototype={constructor:a},i.inherits(a,n),t.exports=a},function(t,e){var r=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};r.prototype.getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t.exports=r},function(t,e,r){"use strict";var i=r(1),n=r(14),a=function(t,e,r,i,a){this.x=null==t?.5:t,this.y=null==e?.5:e,this.r=null==r?.5:r,this.type="radial",this.global=a||!1,n.call(this,i)};a.prototype={constructor:a},i.inherits(a,n),t.exports=a},function(t,e){function r(t,e,r){var i=e.x,n=e.x2,a=e.y,o=e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y);var s=t.createLinearGradient(i,a,n,o);return s}function i(t,e,r){var i=r.width,n=r.height,a=Math.min(i,n),o=e.x,s=e.y,h=e.r;e.global||(o=o*i+r.x,s=s*n+r.y,h*=a);var l=t.createRadialGradient(o,s,0,o,s,h);return l}var n=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],a=function(t){this.extendFrom(t)};a.prototype={constructor:a,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,r){for(var i=this,a=r&&r.style,o=!a,s=0;s<n.length;s++){var h=n[s],l=h[0];(o||i[l]!==a[l])&&(t[l]=i[l]||h[1])}if((o||i.fill!==a.fill)&&(t.fillStyle=i.fill),(o||i.stroke!==a.stroke)&&(t.strokeStyle=i.stroke),(o||i.opacity!==a.opacity)&&(t.globalAlpha=null==i.opacity?1:i.opacity),(o||i.blend!==a.blend)&&(t.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var u=i.lineWidth;t.lineWidth=u/(this.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1)}},hasFill:function(){var t=this.fill;return null!=t&&"none"!==t},hasStroke:function(){var t=this.stroke;return null!=t&&"none"!==t&&this.lineWidth>0},extendFrom:function(t,e){if(t){var r=this;for(var i in t)!t.hasOwnProperty(i)||!e&&r.hasOwnProperty(i)||(r[i]=t[i])}},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,n){for(var a="radial"===e.type?i:r,o=a(t,e,n),s=e.colorStops,h=0;h<s.length;h++)o.addColorStop(s[h].offset,s[h].color);return o}};for(var o=a.prototype,s=0;s<n.length;s++){var h=n[s];h[0]in o||(o[h[0]]=h[1])}a.getGradient=o.getGradient,t.exports=a},function(t,e,r){var i=r(9),n=r(1),a=r(12),o=function(t){i.call(this,t)};o.prototype={constructor:o,type:"text",brush:function(t,e){var r=this.style,i=r.x||0,n=r.y||0,o=r.text;if(null!=o&&(o+=""),r.bind(t,this,e),o){this.setTransform(t);var s,h=r.textAlign,l=r.textFont||r.font;if(r.textVerticalAlign){var u=a.getBoundingRect(o,l,r.textAlign,"top");switch(s="middle",r.textVerticalAlign){case"middle":n-=u.height/2-u.lineHeight/2;break;case"bottom":n-=u.height-u.lineHeight/2;break;default:n+=u.lineHeight/2}}else s=r.textBaseline;t.font=l||"12px sans-serif",t.textAlign=h||"left",t.textAlign!==h&&(t.textAlign="left"),t.textBaseline=s||"alphabetic",t.textBaseline!==s&&(t.textBaseline="alphabetic");for(var c=a.measureText("国",t.font).width,f=o.split("\n"),d=0;d<f.length;d++)r.hasFill()&&t.fillText(f[d],i,n),r.hasStroke()&&t.strokeText(f[d],i,n),n+=c;this.restoreTransform(t)}},getBoundingRect:function(){if(!this._rect){var t=this.style,e=t.textVerticalAlign,r=a.getBoundingRect(t.text+"",t.textFont||t.font,t.textAlign,e?"top":t.textBaseline);switch(e){case"middle":r.y-=r.height/2;break;case"bottom":r.y-=r.height}r.x+=t.x||0,r.y+=t.y||0,this._rect=r}return this._rect}},n.inherits(o,i),t.exports=o},function(t,e){t.exports={buildPath:function(t,e){var r,i,n,a,o=e.x,s=e.y,h=e.width,l=e.height,u=e.r;h<0&&(o+=h,h=-h),l<0&&(s+=l,l=-l),"number"==typeof u?r=i=n=a=u:u instanceof Array?1===u.length?r=i=n=a=u[0]:2===u.length?(r=n=u[0],i=a=u[1]):3===u.length?(r=u[0],i=a=u[1],n=u[2]):(r=u[0],i=u[1],n=u[2],a=u[3]):r=i=n=a=0;var c;r+i>h&&(c=r+i,r*=h/c,i*=h/c),n+a>h&&(c=n+a,n*=h/c,a*=h/c),i+n>l&&(c=i+n,i*=l/c,n*=l/c),r+a>l&&(c=r+a,r*=l/c,a*=l/c),t.moveTo(o+r,s),t.lineTo(o+h-i,s),0!==i&&t.quadraticCurveTo(o+h,s,o+h,s+i),t.lineTo(o+h,s+l-n),0!==n&&t.quadraticCurveTo(o+h,s+l,o+h-n,s+l),t.lineTo(o+a,s+l),0!==a&&t.quadraticCurveTo(o,s+l,o,s+l-a),t.lineTo(o,s+r),0!==r&&t.quadraticCurveTo(o,s,o+r,s)}}},function(t,e,r){var i=r(3),n=i.min,a=i.max,o=i.scale,s=i.distance,h=i.add;t.exports=function(t,e,r,l){var u,c,f,d,p=[],v=[],g=[],y=[];if(l){f=[1/0,1/0],d=[-(1/0),-(1/0)];for(var m=0,x=t.length;m<x;m++)n(f,f,t[m]),a(d,d,t[m]);n(f,f,l[0]),a(d,d,l[1])}for(var m=0,x=t.length;m<x;m++){var _=t[m];if(r)u=t[m?m-1:x-1],c=t[(m+1)%x];else{if(0===m||m===x-1){p.push(i.clone(t[m]));continue}u=t[m-1],c=t[m+1]}i.sub(v,c,u),o(v,v,e);var b=s(_,u),w=s(_,c),M=b+w;0!==M&&(b/=M,w/=M),o(g,v,-b),o(y,v,w);var P=h([],_,g),T=h([],_,y);l&&(a(P,P,f),n(P,P,d),a(T,T,f),n(T,T,d)),p.push(P),p.push(T)}return r&&p.push(p.shift()),p}},function(t,e,r){function i(t,e,r,i,n,a,o){var s=.5*(r-t),h=.5*(i-e);return(2*(e-r)+s+h)*o+(-3*(e-r)-2*s-h)*a+s*n+e}var n=r(3);t.exports=function(t,e){for(var r=t.length,a=[],o=0,s=1;s<r;s++)o+=n.distance(t[s-1],t[s]);var h=o/2;h=h<r?r:h;for(var s=0;s<h;s++){var l,u,c,f=s/(h-1)*(e?r:r-1),d=Math.floor(f),p=f-d,v=t[d%r];e?(l=t[(d-1+r)%r],u=t[(d+1)%r],c=t[(d+2)%r]):(l=t[0===d?d:d-1],u=t[d>r-2?r-1:d+1],c=t[d>r-3?r-1:d+2]);var g=p*p,y=p*g;a.push([i(l[0],v[0],u[0],c[0],p,g,y),i(l[1],v[1],u[1],c[1],p,g,y)])}return a}},function(t,e,r){function i(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}var n=r(12),a=r(4),o=new a,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,r){var a=this.style,s=a.text;if(null!=s&&(s+=""),s){t.save();var h,l,u=a.textPosition,c=a.textOffset,f=a.textDistance,d=a.textAlign,p=a.textFont||a.font,v=a.textBaseline,g=a.textVerticalAlign;r=r||n.getBoundingRect(s,p,d,v);var y=this.transform;if(a.textTransform?this.setTransform(t):y&&(o.copy(e),o.applyTransform(y),e=o),u instanceof Array){if(h=e.x+i(u[0],e.width),l=e.y+i(u[1],e.height),d=d||"left",v=v||"top",g){switch(g){case"middle":l-=r.height/2-r.lineHeight/2;break;case"bottom":l-=r.height-r.lineHeight/2;break;default:l+=r.lineHeight/2}v="middle"}}else{var m=n.adjustTextPositionOnRect(u,e,r,f);h=m.x,l=m.y,d=d||m.textAlign,v=v||m.textBaseline}c&&(h+=c[0],l+=c[1]),t.textAlign=d||"left",t.textBaseline=v||"alphabetic";var x=a.textFill,_=a.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p||"12px sans-serif",t.shadowBlur=a.textShadowBlur,t.shadowColor=a.textShadowColor||"transparent",t.shadowOffsetX=a.textShadowOffsetX,t.shadowOffsetY=a.textShadowOffsetY;var b=s.split("\n");a.textRotation&&(y&&t.translate(y[4],y[5]),t.rotate(a.textRotation),y&&t.translate(-y[4],-y[5]));for(var w=0;w<b.length;w++)x&&t.fillText(b[w],h,l),_&&t.strokeText(b[w],h,l),l+=r.lineHeight;t.restore()}}},t.exports=s},function(t,e,r){t.exports=r(2).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.cx,i=e.cy,n=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,h=Math.cos(a),l=Math.sin(a);t.moveTo(h*n+r,l*n+i),t.arc(r,i,n,a,o,!s)}})},function(t,e,r){"use strict";function i(t,e,r){var i=t.cpx2,n=t.cpy2;return null===i||null===n?[(r?c:l)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?c:l)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?u:h)(t.x1,t.cpx1,t.x2,e),(r?u:h)(t.y1,t.cpy1,t.y2,e)]}var n=r(5),a=r(3),o=n.quadraticSubdivide,s=n.cubicSubdivide,h=n.quadraticAt,l=n.cubicAt,u=n.quadraticDerivativeAt,c=n.cubicDerivativeAt,f=[];t.exports=r(2).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,i=e.y1,n=e.x2,a=e.y2,h=e.cpx1,l=e.cpy1,u=e.cpx2,c=e.cpy2,d=e.percent;0!==d&&(t.moveTo(r,i),null==u||null==c?(d<1&&(o(r,h,n,d,f),h=f[1],n=f[2],o(i,l,a,d,f),l=f[1],a=f[2]),t.quadraticCurveTo(h,l,n,a)):(d<1&&(s(r,h,u,n,d,f),h=f[1],u=f[2],n=f[3],s(i,l,c,a,d,f),l=f[1],c=f[2],a=f[3]),t.bezierCurveTo(h,l,u,c,n,a)))},pointAt:function(t){return i(this.shape,t,!1)},tangentAt:function(t){var e=i(this.shape,t,!0);return a.normalize(e,e)}})},function(t,e,r){"use strict";t.exports=r(2).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,r){r&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,r){t.exports=r(2).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var r=e.x1,i=e.y1,n=e.x2,a=e.y2,o=e.percent;0!==o&&(t.moveTo(r,i),o<1&&(n=r*(1-o)+n*o,a=i*(1-o)+a*o),t.lineTo(n,a))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,r){var i=r(15);t.exports=r(2).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}})},function(t,e,r){var i=r(15);t.exports=r(2).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}})},function(t,e,r){var i=r(47);t.exports=r(2).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,a=e.width,o=e.height;e.r?i.buildPath(t,e):t.rect(r,n,a,o),t.closePath()}})},function(t,e,r){t.exports=r(2).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=2*Math.PI;t.moveTo(r+e.r,i),t.arc(r,i,e.r,0,n,!1),t.moveTo(r+e.r0,i),t.arc(r,i,e.r0,0,n,!0)}})},function(t,e,r){var i=r(37),n=r(2),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i.browser.ie&&i.browser.version>=11?function(){var t,e=this.__clipPaths,r=this.style;if(e)for(var i=0;i<e.length;i++){var o=e[i]&&e[i].shape;if(o&&o.startAngle===o.endAngle){for(var s=0;s<a.length;s++)a[s][2]=r[a[s][0]],r[a[s][0]]=a[s][1];t=!0;break}}if(n.prototype.brush.apply(this,arguments),t)for(var s=0;s<a.length;s++)r[a[s][0]]=a[s][2]}:n.prototype.brush,buildPath:function(t,e){var r=e.cx,i=e.cy,n=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=e.startAngle,s=e.endAngle,h=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*n+r,u*n+i),t.lineTo(l*a+r,u*a+i),t.arc(r,i,a,o,s,!h),t.lineTo(Math.cos(s)*n+r,Math.sin(s)*n+i),0!==n&&t.arc(r,i,n,s,o,h),t.closePath()}})},function(t,e,r){"use strict";var i=r(25),n=r(1),a=n.isString,o=n.isFunction,s=n.isObject,h=r(39),l=function(){this.animators=[]};l.prototype={constructor:l,animate:function(t,e){var r,a=!1,o=this,s=this.__zr;if(t){var l=t.split("."),u=o;a="shape"===l[0];for(var c=0,f=l.length;c<f;c++)u&&(u=u[l[c]]);u&&(r=u)}else r=o;if(!r)return void h('Property "'+t+'" is not existed in element '+o.id);var d=o.animators,p=new i(r,e);return p.during(function(t){o.dirty(a)}).done(function(){d.splice(n.indexOf(d,p),1)}),d.push(p),s&&s.animation.addAnimator(p),p},stopAnimation:function(t){for(var e=this.animators,r=e.length,i=0;i<r;i++)e[i].stop(t);return e.length=0,this},animateTo:function(t,e,r,i,n){function s(){l--,l||n&&n()}a(r)?(n=i,i=r,r=0):o(i)?(n=i,i="linear",r=0):o(r)?(n=r,r=0):o(e)?(n=e,e=500):e||(e=500),this.stopAnimation(),this._animateToShallow("",this,t,e,r,i,n);var h=this.animators.slice(),l=h.length;l||n&&n();for(var u=0;u<h.length;u++)h[u].done(s).start(i)},_animateToShallow:function(t,e,r,i,a){var o={},h=0;for(var l in r)if(r.hasOwnProperty(l))if(null!=e[l])s(r[l])&&!n.isArrayLike(r[l])?this._animateToShallow(t?t+"."+l:l,e[l],r[l],i,a):(o[l]=r[l],h++);else if(null!=r[l])if(t){var u={};u[t]={},u[t][l]=r[l],this.attr(u)}else this.attr(l,r[l]);return h>0&&this.animate(t,!1).when(null==i?500:i,o).delay(a||0),this}},t.exports=l},function(t,e){var r=Array.prototype.slice,i=function(){this._$handlers={}};i.prototype={constructor:i,one:function(t,e,r){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var n=0;n<i[t].length;n++)if(i[t][n].h===e)return this;return i[t].push({h:e,one:!0,ctx:r||this}),this},on:function(t,e,r){var i=this._$handlers;if(!e||!t)return this;i[t]||(i[t]=[]);for(var n=0;n<i[t].length;n++)if(i[t][n].h===e)return this;return i[t].push({h:e,one:!1,ctx:r||this}),this},isSilent:function(t){var e=this._$handlers;return e[t]&&e[t].length},off:function(t,e){var r=this._$handlers;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var i=[],n=0,a=r[t].length;n<a;n++)r[t][n].h!=e&&i.push(r[t][n]);r[t]=i}r[t]&&0===r[t].length&&delete r[t]}else delete r[t];return this},trigger:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>3&&(e=r.call(e,1));for(var n=this._$handlers[t],a=n.length,o=0;o<a;){switch(i){case 1:n[o].h.call(n[o].ctx);break;case 2:n[o].h.call(n[o].ctx,e[1]);break;case 3:n[o].h.call(n[o].ctx,e[1],e[2]);break;default:n[o].h.apply(n[o].ctx,e)}n[o].one?(n.splice(o,1),a--):o++}}return this},triggerWithContext:function(t){if(this._$handlers[t]){var e=arguments,i=e.length;i>4&&(e=r.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],o=a.length,s=0;s<o;){switch(i){case 1:a[s].h.call(n);break;case 2:a[s].h.call(n,e[1]);break;case 3:a[s].h.call(n,e[1],e[2]);break;default:a[s].h.apply(n,e)}a[s].one?(a.splice(s,1),o--):s++}}return this}},t.exports=i},function(t,e,r){"use strict";function i(t){return t>s||t<-s}var n=r(7),a=r(3),o=n.identity,s=5e-5,h=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},l=h.prototype;l.transform=null,l.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},l.updateTransform=function(){var t=this.parent,e=t&&t.transform,r=this.needLocalTransform(),i=this.transform;return r||e?(i=i||n.create(),r?this.getLocalTransform(i):o(i),e&&(r?n.mul(i,t.transform,i):n.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||n.create(),void n.invert(this.invTransform,i)):void(i&&o(i))},l.getLocalTransform=function(t){t=t||[],o(t);var e=this.origin,r=this.scale,i=this.rotation,a=this.position;return e&&(t[4]-=e[0],t[5]-=e[1]),n.scale(t,t,r),i&&n.rotate(t,t,i),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=a[0],t[5]+=a[1],t},l.setTransform=function(t){var e=this.transform,r=t.dpr||1;e?t.setTransform(r*e[0],r*e[1],r*e[2],r*e[3],r*e[4],r*e[5]):t.setTransform(r,0,0,r,0,0)},l.restoreTransform=function(t){var e=(this.transform,t.dpr||1);t.setTransform(e,0,0,e,0,0)};var u=[];l.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(n.mul(u,t.invTransform,e),e=u);var r=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],o=this.position,s=this.scale;i(r-1)&&(r=Math.sqrt(r)),i(a-1)&&(a=Math.sqrt(a)),e[0]<0&&(r=-r),e[3]<0&&(a=-a),o[0]=e[4],o[1]=e[5],s[0]=r,s[1]=a,this.rotation=Math.atan2(-e[1]/a,e[0]/r)}},l.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),r=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(r=-r),[e,r]},l.transformCoordToLocal=function(t,e){var r=[t,e],i=this.invTransform;return i&&a.applyTransform(r,r,i),r},l.transformCoordToGlobal=function(t,e){var r=[t,e],i=this.transform;return i&&a.applyTransform(r,r,i),r},t.exports=h},function(t,e,r){function i(t,e,r,i,n,a,o,s,h,l,u){var v=h*(p/180),m=d(v)*(t-r)/2+f(v)*(e-i)/2,x=-1*f(v)*(t-r)/2+d(v)*(e-i)/2,_=m*m/(o*o)+x*x/(s*s);_>1&&(o*=c(_),s*=c(_));var b=(n===a?-1:1)*c((o*o*(s*s)-o*o*(x*x)-s*s*(m*m))/(o*o*(x*x)+s*s*(m*m)))||0,w=b*o*x/s,M=b*-s*m/o,P=(t+r)/2+d(v)*w-f(v)*M,T=(e+i)/2+f(v)*w+d(v)*M,k=y([1,0],[(m-w)/o,(x-M)/s]),S=[(m-w)/o,(x-M)/s],A=[(-1*m-w)/o,(-1*x-M)/s],C=y(S,A);g(S,A)<=-1&&(C=p),g(S,A)>=1&&(C=0),0===a&&C>0&&(C-=2*p),1===a&&C<0&&(C+=2*p),u.addData(l,P,T,o,s,k,C,v,a)}function n(t){if(!t)return[];var e,r=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e<u.length;e++)r=r.replace(new RegExp(u[e],"g"),"|"+u[e]);var n,a=r.split("|"),o=0,h=0,l=new s,c=s.CMD;for(e=1;e<a.length;e++){var f,d=a[e],p=d.charAt(0),v=0,g=d.slice(1).replace(/e,-/g,"e-").split(",");g.length>0&&""===g[0]&&g.shift();for(var y=0;y<g.length;y++)g[y]=parseFloat(g[y]);for(;v<g.length&&!isNaN(g[v])&&!isNaN(g[0]);){var m,x,_,b,w,M,P,T=o,k=h;switch(p){case"l":o+=g[v++],h+=g[v++],f=c.L,l.addData(f,o,h);break;case"L":o=g[v++],h=g[v++],f=c.L,l.addData(f,o,h);break;case"m":o+=g[v++],h+=g[v++],f=c.M,l.addData(f,o,h),p="l";break;case"M":o=g[v++],h=g[v++],f=c.M,l.addData(f,o,h),p="L";break;case"h":o+=g[v++],f=c.L,l.addData(f,o,h);break;case"H":o=g[v++],f=c.L,l.addData(f,o,h);break;case"v":h+=g[v++],f=c.L,l.addData(f,o,h);break;case"V":h=g[v++],f=c.L,l.addData(f,o,h);break;case"C":f=c.C,l.addData(f,g[v++],g[v++],g[v++],g[v++],g[v++],g[v++]),o=g[v-2],h=g[v-1];break;case"c":f=c.C,l.addData(f,g[v++]+o,g[v++]+h,g[v++]+o,g[v++]+h,g[v++]+o,g[v++]+h),o+=g[v-2],h+=g[v-1];break;case"S":m=o,x=h;var S=l.len(),A=l.data;n===c.C&&(m+=o-A[S-4],x+=h-A[S-3]),f=c.C,T=g[v++],k=g[v++],o=g[v++],h=g[v++],l.addData(f,m,x,T,k,o,h);break;case"s":m=o,x=h;var S=l.len(),A=l.data;n===c.C&&(m+=o-A[S-4],x+=h-A[S-3]),f=c.C,T=o+g[v++],k=h+g[v++],o+=g[v++],h+=g[v++],l.addData(f,m,x,T,k,o,h);break;case"Q":T=g[v++],k=g[v++],o=g[v++],h=g[v++],f=c.Q,l.addData(f,T,k,o,h);break;case"q":T=g[v++]+o,k=g[v++]+h,o+=g[v++],h+=g[v++],f=c.Q,l.addData(f,T,k,o,h);break;case"T":m=o,x=h;var S=l.len(),A=l.data;n===c.Q&&(m+=o-A[S-4],x+=h-A[S-3]),o=g[v++],h=g[v++],f=c.Q,l.addData(f,m,x,o,h);break;case"t":m=o,x=h;var S=l.len(),A=l.data;n===c.Q&&(m+=o-A[S-4],x+=h-A[S-3]),o+=g[v++],h+=g[v++],f=c.Q,l.addData(f,m,x,o,h);break;case"A":_=g[v++],b=g[v++],w=g[v++],M=g[v++],P=g[v++],T=o,k=h,o=g[v++],h=g[v++],f=c.A,i(T,k,o,h,M,P,_,b,w,f,l);break;case"a":_=g[v++],b=g[v++],w=g[v++],M=g[v++],P=g[v++],T=o,k=h,o+=g[v++],h+=g[v++],f=c.A,i(T,k,o,h,M,P,_,b,w,f,l)}}"z"!==p&&"Z"!==p||(f=c.Z,l.addData(f)),n=f}return l.toStatic(),l}function a(t,e){var r,i=n(t);return e=e||{},e.buildPath=function(t){t.setData(i.data),r&&h(t,r);var e=t.getContext();e&&t.rebuildPath(e)},e.applyTransform=function(t){r||(r=l.create()),l.mul(r,t,r),this.dirty(!0)},e}var o=r(2),s=r(6),h=r(64),l=r(7),u=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"],c=Math.sqrt,f=Math.sin,d=Math.cos,p=Math.PI,v=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},g=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))},y=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))};t.exports={createFromString:function(t,e){return new o(a(t,e))},extendFromString:function(t,e){return o.extend(a(t,e))},mergePath:function(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];a.__dirty&&a.buildPath(a.path,a.shape,!0),r.push(a.path)}var s=new o(e);return s.buildPath=function(t){t.appendPath(r);var e=t.getContext();e&&t.rebuildPath(e)},s}}},function(t,e,r){function i(t,e){var r,i,a,u,c,f,d=t.data,p=n.M,v=n.C,g=n.L,y=n.R,m=n.A,x=n.Q;for(a=0,u=0;a<d.length;){switch(r=d[a++],u=a,i=0,r){case p:i=1;break;case g:i=1;break;case v:i=3;break;case x:i=2;break;case m:var _=e[4],b=e[5],w=h(e[0]*e[0]+e[1]*e[1]),M=h(e[2]*e[2]+e[3]*e[3]),P=l(-e[1]/M,e[0]/w);d[a++]+=_,d[a++]+=b,d[a++]*=w,d[a++]*=M,d[a++]+=P,d[a++]+=P,a+=2,u=a;break;case y:f[0]=d[a++],f[1]=d[a++],o(f,f,e),d[u++]=f[0],d[u++]=f[1],f[0]+=d[a++],f[1]+=d[a++],o(f,f,e),d[u++]=f[0],d[u++]=f[1]}for(c=0;c<i;c++){var f=s[c];f[0]=d[a++],f[1]=d[a++],o(f,f,e),d[u++]=f[0],d[u++]=f[1]}}}var n=r(6).CMD,a=r(3),o=a.applyTransform,s=[[],[],[]],h=Math.sqrt,l=Math.atan2;t.exports=i}])});