| 1 |
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.F2=e():t.F2=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=130)}([function(t,e,n){var r=n(43),i={upperFirst:n(44),lowerFirst:n(45),isString:n(15),isNumber:n(13),isBoolean:n(46),isFunction:n(47),isDate:n(33),isArray:n(10),isNil:n(7),isObject:n(18),isPlainObject:n(28),deepMix:n(49),mix:n(16),each:n(3),isObjectValueEqual:function(t,e){t=Object.assign({},t),e=Object.assign({},e);var n=Object.getOwnPropertyNames(t),r=Object.getOwnPropertyNames(e);if(n.length!==r.length)return!1;for(var i=0,a=n.length;i<a;i++){var o=n[i];if(t[o]!==e[o])return!1}return!0},wrapBehavior:function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},getWrapBehavior:function(t,e){return t["_wrap_"+e]},parsePadding:function(t){var e,n,r,a;return i.isNumber(t)||i.isString(t)?e=r=a=n=t:i.isArray(t)&&(e=t[0],n=i.isNil(t[1])?t[0]:t[1],r=i.isNil(t[2])?t[0]:t[2],a=i.isNil(t[3])?n:t[3]),[e,n,r,a]},directionEnabled:function(t,e){return void 0===t||"string"==typeof t&&-1!==t.indexOf(e)}};i.Array={merge:function(t){for(var e=[],n=0,r=t.length;n<r;n++)e=e.concat(t[n]);return e},values:function(t,e){for(var n=[],r={},a=0,o=t.length;a<o;a++){var s=t[a][e];i.isNil(s)||(i.isArray(s)?i.each(s,function(t){r[t]||(n.push(t),r[t]=!0)}):r[s]||(n.push(s),r[s]=!0))}return n},firstValue:function(t,e){for(var n=null,r=0,a=t.length;r<a;r++){var o=t[r][e];if(!i.isNil(o)){n=i.isArray(o)?o[0]:o;break}}return n},group:function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var r=i.Array.groupToMap(t,e),a=[];if(1===e.length&&n[e[0]]){var o=n[e[0]];i.each(o,function(t){t="_"+t,a.push(r[t])})}else for(var s in r)a.push(r[s]);return a},groupToMap:function(t,e){if(!e)return{0:t};for(var n={},r=0,i=t.length;r<i;r++){var a=t[r],o=function(t){for(var n="_",r=0,i=e.length;r<i;r++)n+=t[e[r]]&&t[e[r]].toString();return n}(a);n[o]?n[o].push(a):n[o]=[a]}return n},remove:function(t,e){if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},getRange:function(t){if(!t.length)return{min:0,max:0};var e=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:e}}},i.mix(i,r),t.exports=i},function(t,e,n){var r=n(42),i=n(0),a={version:"3.3.3",trackable:!0,scales:{},widthRatio:{column:.5,rose:.999999,multiplePie:.75},lineDash:[4,4]};a.setTheme=function(t){i.deepMix(this,t)},a.setTheme(r),t.exports=a},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isShape:!0,attrs:{}}},n.getType=function(){return this._attrs.type},n.drawInner=function(t){var e=this,n=e.get("attrs");e.createPath(t);var r=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;i.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=r)}if(e.hasStroke()&&n.lineWidth>0){var o=n.strokeOpacity;i.isNil(o)||1===o||(t.globalAlpha=o),t.stroke()}},n.getBBox=function(){var t=this._attrs.bbox;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this._attrs.bbox=t),t},n.calculateBox=function(){return null},n.createPath=function(){},e}(n(25));t.exports=a},function(t,e,n){var r=n(18),i=n(10);t.exports=function(t,e){if(t)if(i(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e){t.exports={create:function(){return[0,0]},length:function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},normalize:function(t,e){var n=this.length(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},direction:function(t,e){return t[0]*e[1]-e[0]*t[1]},angle:function(t,e){var n=this.dot(t,e)/(this.length(t)*this.length(e));return Math.acos(n)},angleTo:function(t,e,n){var r=this.angle(t,e),i=this.direction(t,e)>=0;return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r},zero:function(t){return 0===t[0]&&0===t[1]},distance:function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},clone:function(t){return[t[0],t[1]]},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},transformMat2d:function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}}},function(t,e,n){var r={Canvas:n(68),Group:n(31),Shape:n(2),Matrix:n(23),Vector2:n(4)};n(70),n(71),n(72),n(73),n(74),n(75),n(76),n(77),n(78),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){return a.isArray(t)?t:a.isString(t)?t.split("*"):[t]}var a=n(0),o=n(29),s=["color","size","shape"],u=n(1),c=n(53),l=n(9),h=n(22),f=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{type:null,data:null,attrs:{},scales:{},container:null,styleOptions:null,chart:null,shapeType:"",generatePoints:!1,attrOptions:{},sortable:!1,startOnZero:!0,visible:!0,connectNulls:!1}},n.init=function(){var t=this;t._initAttrs();var e=t._processData();t.get("adjust")&&t._adjustData(e),t.set("dataArray",e)},n._getGroupScales=function(){var t=this,e=[];return a.each(s,function(n){var r=t.getAttr(n);if(r){var i=r.scales;a.each(i,function(t){t&&t.isCategory&&-1===e.indexOf(t)&&e.push(t)})}}),e},n._groupData=function(t){var e=this,n=e.get("colDefs"),r=e._getGroupScales();if(r.length){var i={},o=[];return a.each(r,function(t){var e=t.field;o.push(e),n&&n[e]&&n[e].values&&(i[t.field]=n[e].values)}),a.Array.group(t,o,i)}return[t]},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?a.isFunction(n)?i.callback=n:i.values=n:i.values=r,this._setAttrOptions(t,i)},n._initAttrs=function(){var t=this,e=t.get("attrs"),n=t.get("attrOptions"),r=t.get("coord");for(var o in n)if(n.hasOwnProperty(o)){var s=n[o],u=a.upperFirst(o),l=i(s.field);"position"===o&&(s.coord=r);for(var h=[],f=0,p=l.length;f<p;f++){var g=l[f],v=t._createScale(g);h.push(v)}if("position"===o){var d=h[1];"polar"===r.type&&r.transposed&&t.hasAdjust("stack")&&d.values.length&&d.change({nice:!1,min:0,max:Math.max.apply(null,d.values)})}s.scales=h;var y=new c[u](s);e[o]=y}},n._createScale=function(t){var e=this.get("scales"),n=e[t];return n||(n=this.get("chart").createScale(t),e[t]=n),n},n._processData=function(){for(var t=this,e=this.get("data"),n=[],r=this._groupData(e),i=0,a=r.length;i<a;i++){var o=r[i],s=t._saveOrigin(o);this.hasAdjust("dodge")&&t._numberic(s),n.push(s)}return n},n._saveOrigin=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n],a={};for(var o in i)a[o]=i[o];a._origin=i,e.push(a)}return e},n._numberic=function(t){for(var e=this.getAttr("position").scales,n=0,r=t.length;n<r;n++)for(var i=t[n],a=Math.min(2,e.length),o=0;o<a;o++){var s=e[o];if(s.isCategory){var u=s.field;i[u]=s.translate(i[u])}}},n._adjustData=function(t){var e=this,n=e.get("adjust");if(n){var r=a.upperFirst(n.type);if(!h[r])throw new Error("not support such adjust : "+n);var i=e.getXScale(),o=e.getYScale(),s=a.mix({xField:i.field,yField:o.field},n);new h[r](s).processAdjust(t),"Stack"===r&&e._updateStackRange(o.field,o,t)}},n._updateStackRange=function(t,e,n){for(var r=a.Array.merge(n),i=e.min,o=e.max,s=0,u=r.length;s<u;s++){var c=r[s],l=Math.min.apply(null,c[t]),h=Math.max.apply(null,c[t]);l<i&&(i=l),h>o&&(o=h)}(i<e.min||o>e.max)&&e.change({min:i,max:o})},n._sort=function(t){var e=this,n=e.getXScale(),r=n.field,i=n.type;"identity"!==i&&n.values.length>1&&a.each(t,function(t){t.sort(function(t,e){return"timeCat"===i?n._toTimeStamp(t._origin[r])-n._toTimeStamp(e._origin[r]):n.translate(t._origin[r])-n.translate(e._origin[r])})}),e.set("hasSorted",!0),e.set("dataArray",t)},n.paint=function(){var t=this,e=t.get("dataArray"),n=[],r=t.getShapeFactory();r.setCoord(t.get("coord")),t._beforeMapping(e);for(var i=0,a=e.length;i<a;i++){var o=e[i];o.length&&(o=t._mapping(o),n.push(o),t.draw(o,r))}t.set("dataArray",n)},n.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=l.getShapeFactory(e),this.set("shapeFactory",t)}return t},n._mapping=function(t){for(var e=this,n=e.get("attrs"),r=e.getYScale().field,i=[],o=0,s=t.length;o<s;o++){var u=t[o],c={};c._origin=u._origin,c.points=u.points,c._originY=u[r];for(var l in n)if(n.hasOwnProperty(l)){var h=n[l],f=h.names,p=e._getAttrValues(h,u);if(f.length>1)for(var g=0,v=p.length;g<v;g++){var d=p[g];c[f[g]]=a.isArray(d)&&1===d.length?d[0]:d}else c[f[0]]=1===p.length?p[0]:p}i.push(c)}return i},n._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0,a=n.length;i<a;i++){var o=n[i],s=o.field;"identity"===o.type?r.push(o.value):r.push(e[s])}return t.mapping.apply(t,r)},n.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;return n&&(r=this._getAttrValues(n,e)[0]),r},n._beforeMapping=function(t){var e=this;e.get("sortable")&&e._sort(t),e.get("generatePoints")&&a.each(t,function(t){e._generatePoints(t)})},n.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},n.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map(function(t){return n[t]});return a.each(e,function(t,e){a.isFunction(t)?r[e]=t.apply(null,i):r[e]=t}),r},n.getDrawCfg=function(t){var e=this,n=e.isInCircle(),r={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:n,opacity:t.opacity},i=e.get("styleOptions");return i&&i.style&&(r.style=e.getCallbackCfg(i.fields,i.style,t._origin)),e.get("generatePoints")&&(r.points=t.points),n&&(r.center=e.get("coord").center),r},n.draw=function(t,e){var n=this,r=n.get("container"),i=n.getYScale();a.each(t,function(t,o){if(!i||!a.isNil(t._origin[i.field])){t.index=o;var s=n.getDrawCfg(t),u=t.shape;n.drawShape(u,t,s,r,e)}})},n.drawShape=function(t,e,n,r,i){var o=i.drawShape(t,n,r);o&&a.each([].concat(o),function(t){t.set("origin",e)})},n._generatePoints=function(t){for(var e=this,n=e.getShapeFactory(),r=e.getAttr("shape"),i=0,a=t.length;i<a;i++){var o=t[i],s=e.createShapePointsCfg(o),u=r?e._getAttrValues(r,o):null,c=n.getShapePoints(u,s);o.points=c}},n.createShapePointsCfg=function(t){var e,n=this.getXScale(),r=this.getYScale(),i=this._normalizeValues(t[n.field],n);return e=r?this._normalizeValues(t[r.field],r):t.y?t.y:.1,{x:i,y:e,y0:r?r.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return this.get("startOnZero")?n<=0&&e<=0?n:e>=0?e:0:e},n._normalizeValues=function(t,e){var n=[];if(a.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];n.push(e.scale(o))}else n=e.scale(t);return n},n.getAttr=function(t){return this.get("attrs")[t]},n.getXScale=function(){return this.getAttr("position").scales[0]},n.getYScale=function(){return this.getAttr("position").scales[1]},n.hasAdjust=function(t){return this.get("adjust")&&this.get("adjust").type===t},n._getSnap=function(t,e,n){var r,i=0,a=this.getYScale().field;if(this.hasAdjust("stack")&&t.field===a){r=[],n.forEach(function(t){r.push(t._originY)});for(var o=r.length;i<o&&!(r[0][0]>e);i++){if(r[r.length-1][1]<=e){i=r.length-1;break}if(r[i][0]<=e&&r[i][1]>e)break}}else{(r=t.values).sort(function(t,e){return t-e});for(var s=r.length;i<s&&!((r[0]+r[1])/2>e)&&!((r[i-1]+r[i])/2<=e&&(r[i+1]+r[i])/2>e);i++)if((r[r.length-2]+r[r.length-1])/2<=e){i=r.length-1;break}}return r[i]},n.getSnapRecords=function(t){var e=this,n=e.get("coord"),r=e.getXScale(),i=e.getYScale(),o=r.field,s=e.get("dataArray");this.get("hasSorted")||this._sort(s);var u=[],c=n.invertPoint(t),l=c.x;e.isInCircle()&&!n.transposed&&l>(1+r.rangeMax())/2&&(l=r.rangeMin());var h=r.invert(l);r.isCategory||(h=e._getSnap(r,h));var f=[];if(s.forEach(function(t){t.forEach(function(t){var n=a.isNil(t._origin)?t[o]:t._origin[o];e._isEqual(n,h,r)&&f.push(t)})}),this.hasAdjust("stack")&&n.isPolar&&n.transposed&&1===r.values.length){if(l>=0&&l<=1){var p=i.invert(c.y);p=e._getSnap(i,p,f),f.forEach(function(t){(a.isArray(p)?t._originY.toString()===p.toString():t._originY===p)&&u.push(t)})}}else u=f;return u},n._isEqual=function(t,e,n){return"timeCat"===n.type?n._toTimeStamp(t)===e:e===t},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,u.colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,u.sizes),this},n.shape=function(t,e){var n=this.get("type"),r=u.shapes[n]||[];return this._createAttrOption("shape",t,e,r),this},n.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),a.isObject(t)&&(e=t,t=null);var r;return t&&(r=i(t)),n.fields=r,n.style=e,this},n.adjust=function(t){return a.isString(t)&&(t={type:t}),this.set("adjust",t),this},n.animate=function(t){return this.set("animateCfg",t),this},n.reset=function(){this.set("attrOptions",{}),this.set("adjust",null),this.clearInner()},n.clearInner=function(){var t=this.get("container");t&&(t.clear(),t.setMatrix([1,0,0,1,0,0])),t&&t.clear(),this.set("attrs",{}),this.set("groupScales",null),this.set("xDistance",null),this.set("_width",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear(),t.prototype.destroy.call(this)},n._display=function(t){this.set("visible",t);var e=this.get("container"),n=e.get("canvas");e.set("visible",t),n.draw()},n.show=function(){this._display(!0)},n.hide=function(){this._display(!1)},e}(o);t.exports=f},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e,n){var r=n(0),i=n(1),a={},o={_coord:null,draw:function(t,e){this.drawShape&&this.drawShape(t,e)},setCoord:function(t){this._coord=t},parsePoint:function(t){var e=this._coord;return e.isPolar&&(1===t.x&&(t.x=.9999999),1===t.y&&(t.y=.9999999)),e.convertPoint(t)},parsePoints:function(t){if(!t)return!1;var e=this,n=[];return t.forEach(function(t){n.push(e.parsePoint(t))}),n}},s={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;r.isArray(t)&&(t=t[0]);var n=e[t]||e[e.defaultShapeType];return n._coord=e._coord,n},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},drawShape:function(t,e,n){var r=this.getShape(t);return e.color||(e.color=i.colors[0]),r.draw(e,n)}};a.registerFactory=function(t,e){var n=r.upperFirst(t),i=r.mix({},s,e);return a[n]=i,i.name=t,i},a.registerShape=function(t,e,n){var i=r.upperFirst(t),s=a[i],u=r.mix({},o,n);return s[e]=u,u},a.registShape=a.registerShape,a.getShapeFactory=function(t){var e=this;return t=t||"point",e[r.upperFirst(t)]},t.exports=a},function(t,e,n){var r=n(8),i=Array.isArray?Array.isArray:function(t){return r(t,"Array")};t.exports=i},function(t,e,n){function r(t,e,n,r,a){return{x:i(a,t.x,e.x,n.x,r.x),y:i(a,t.y,e.y,n.y,r.y)}}function i(t,e,n,r,i){var a=t*t;return e+(3*-e+t*(3*e-e*t))*t+(3*n+t*(-6*n+3*n*t))*t+(3*r-3*r*t)*a+i*(a*t)}function a(t){for(var e=1/0,n=-1/0,i=1/0,a=-1/0,o={x:t[0],y:t[1]},s={x:t[2],y:t[3]},u={x:t[4],y:t[5]},c={x:t[6],y:t[7]},l=0;l<100;l++){var h=r(o,s,u,c,l/100);h.x<e&&(e=h.x),h.x>n&&(n=h.x),h.y<i&&(i=h.y),h.y>a&&(a=h.y)}return{minX:e,minY:i,maxX:n,maxY:a}}var o=n(4),s=o.create(),u=o.create(),c=o.create();t.exports={getBBoxFromPoints:function(t,e){if(0!==t.length){for(var n=t[0],r=n.x,i=n.x,a=n.y,o=n.y,s=t.length,u=1;u<s;u++)n=t[u],r=Math.min(r,n.x),i=Math.max(i,n.x),a=Math.min(a,n.y),o=Math.max(o,n.y);return e=e/2||0,{minX:r-e,minY:a-e,maxX:i+e,maxY:o+e}}},getBBoxFromLine:function(t,e,n,r,i){return i=i/2||0,{minX:Math.min(t,n)-i,minY:Math.min(e,r)-i,maxX:Math.max(t,n)+i,maxY:Math.max(e,r)+i}},getBBoxFromArc:function(t,e,n,r,i,a){var l=Math.abs(r-i);if(l%Math.PI*2<1e-4&&l>1e-4)return{minX:t-n,minY:e-n,maxX:t+n,maxY:e+n};s[0]=Math.cos(r)*n+t,s[1]=Math.sin(r)*n+e,u[0]=Math.cos(i)*n+t,u[1]=Math.sin(i)*n+e;var h=[0,0],f=[0,0];if(o.min(h,s,u),o.max(f,s,u),(r%=2*Math.PI)<0&&(r+=2*Math.PI),(i%=2*Math.PI)<0&&(i+=2*Math.PI),r>i&&!a?i+=2*Math.PI:r<i&&a&&(r+=2*Math.PI),a){var p=i;i=r,r=p}for(var g=0;g<i;g+=Math.PI/2)g>r&&(c[0]=Math.cos(g)*n+t,c[1]=Math.sin(g)*n+e,o.min(h,c,h),o.max(f,c,f));return{minX:h[0],minY:h[1],maxX:f[0],maxY:f[1]}},getBBoxFromBezierGroup:function(t,e){for(var n=1/0,r=-1/0,i=1/0,o=-1/0,s=0,u=t.length;s<u;s++){var c=a(t[s]);c.minX<n&&(n=c.minX),c.maxX>r&&(r=c.maxX),c.minY<i&&(i=c.minY),c.maxY>o&&(o=c.maxY)}return e=e/2||0,{minX:n-e,minY:i-e,maxX:r+e,maxY:o+e}}}},,function(t,e,n){var r=n(8);t.exports=function(t){return r(t,"Number")}},function(t,e,n){var r=n(16),i=n(3),a=n(18),o=n(7),s=function(){function t(t){this._initDefaultCfg(),r(this,t),this.init()}var e=t.prototype;return e._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},e.init=function(){},e.getTicks=function(){var t=this,e=t.ticks,n=[];return i(e,function(e){var r;r=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)}),n},e.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),t.toString()},e.rangeMin=function(){return this.range[0]},e.rangeMax=function(){var t=this.range;return t[t.length-1]},e.invert=function(t){return t},e.translate=function(t){return t},e.scale=function(t){return t},e.clone=function(){var t=this,e=t.constructor,n={};return i(t,function(e,r){n[r]=t[r]}),new e(n)},e.change=function(t){return this.ticks=null,r(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var r=n(8);t.exports=function(t){return r(t,"String")}},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){function r(t,e){return i(e)?e:t.invert(t.scale(e))}var i=n(15),a=n(10),o=n(16),s=n(3),u=function(){function t(t){this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null,o(this,t)}var e=t.prototype;return e._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear)return n[t.translate(e)%n.length];var r=t.scale(e);return this.getLinearValue(r)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,a=e[r];return a+((r===n?a:e[r+1])-a)*i},e.callback=function(t){var e=this,n=e.scales[0];return"identity"===n.type?n.value:e._getAttrValue(n,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i++)r.push(e[i]);return r},e.getFields=function(){var t=this.scales,e=[];return s(t,function(t){e.push(t.field)}),e},e.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=r;if(e){for(var o=0,s=r.length;o<s;o++)r[o]=this._toOriginParam(r[o],t[o]);a=e.apply(this,r)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var i=0,o=t.length;i<o;i++)n.push(r(e,t[i]))}else n=r(e,t);return n},t}();t.exports=u},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e=t.startAngle,n=t.endAngle;return!(!l.isNil(e)&&!l.isNil(n)&&n-e<2*Math.PI)}function o(t,e){return t-e}function s(t,e){var n=!1;return l.each(t,function(t){var r=[].concat(t.values),i=[].concat(e.values);t.type!==e.type||t.field!==e.field||r.sort(o).toString()!==i.sort(o).toString()||(n=!0)}),n}var u=n(29),c=n(50),l=n(0),h=n(51),f=n(6),p=n(59),g=n(65),v=n(1),d=n(5).Canvas,y=n(26),x=function(t){function e(e){var n,r=i(i(n=t.call(this,e)||this));return l.each(f,function(t,e){var n=l.lowerFirst(e);r[n]=function(e){var n=new t(e);return r.addGeom(n),n}}),r._init(),n}r(e,t),e.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var r,i,a,o,s,u=this.descriptors(t),c=u.length;for(r=0;r<c;++r)if(i=u[r],a=i.plugin,"function"==typeof(s=a[e])&&(o=[t].concat(n||[]),!1===s.apply(a,o)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],r=[];return this._plugins.concat(t&&t.get("plugins")||[]).forEach(function(t){-1===n.indexOf(t)&&(n.push(t),r.push({plugin:t}))}),e.descriptors=r,e.id=this._cacheId,r}}};var n=e.prototype;return n.getDefaultCfg=function(){return{id:null,padding:v.padding,data:null,scales:{},geoms:null,colDefs:null,pixelRatio:v.pixelRatio,filters:null,appendPadding:v.appendPadding}},n._syncYScales=function(){var t=this.get("geoms"),e=[],n=[],r=[];l.each(t,function(t){var i=t.getYScale();i.isLinear&&(e.push(i),n.push(i.min),r.push(i.max))}),n=Math.min.apply(null,n),r=Math.max.apply(null,r),l.each(e,function(t){t.change({min:n}),t.change({max:r})})},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return l.each(e,function(e){var n=e.get("attrOptions").color;if(n&&n.field&&l.isString(n.field)){var r=n.field.split("*");l.each(r,function(e){-1===t.indexOf(e)&&t.push(e)})}}),t},n._createScale=function(t,e){return this.get("scaleController").createScale(t,e)},n._adjustScale=function(){var t=this,e=t.get("coord"),n=t.getXScale(),r=t.getYScales(),i=[];n&&i.push(n),i=i.concat(r);var o=e.isPolar&&a(e),s=t.get("scaleController").defs;l.each(i,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!s[t.field]||!s[t.field].range)){var n,r=t.values.length;if(1===r)n=[.5,1];else{var i=0;n=o?e.transposed?[(i=1/r*v.widthRatio.multiplePie)/2,1-i/2]:[0,1-1/r]:[i=1/r*1/2,1-i]}t.range=n}});for(var u=this.get("geoms"),c=0;c<u.length;c++){var h=u[c];if("interval"===h.get("type")){var f=h.getYScale(),p=f.field,g=f.min,d=f.max,y=f.type;s[p]&&s[p].min||"time"===y||(g>0?f.change({min:0}):d<=0&&f.change({max:0}))}}},n._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;)t.shift().destroy()},n._clearGeoms=function(){for(var t=this.get("geoms"),e=0,n=t.length;e<n;e++)t[e].clear()},n._clearInner=function(){this.set("scales",{}),this.set("legendItems",null),this._clearGeoms(),e.plugins.notify(this,"clearInner"),this.get("axisController")&&this.get("axisController").clear()},n._execFilter=function(t){var e=this.get("filters");return e&&(t=t.filter(function(t){var n=!0;return l.each(e,function(e,r){if(e&&!(n=e(t[r],t)))return!1}),n})),t},n._initGeoms=function(t){for(var e=this.get("coord"),n=this.get("filteredData"),r=this.get("colDefs"),i=0,a=t.length;i<a;i++){var o=t[i];o.set("data",n),o.set("coord",e),o.set("colDefs",r),o.init()}},n._initCoord=function(){var t=this.get("plotRange"),e=l.mix({type:"cartesian"},this.get("coordCfg"),{plot:t}),n=e.type,r=new(0,h[l.upperFirst(n)])(e);this.set("coord",r)},n._initLayout=function(){var t=this.get("_padding");t||(t=this.get("margin")||this.get("padding"),t=l.parsePadding(t));var e="auto"===t[0]?0:t[0],n="auto"===t[1]?0:t[1],r="auto"===t[2]?0:t[2],i="auto"===t[3]?0:t[3],a=this.get("width"),o=this.get("height"),s=new c({start:{x:i,y:e},end:{x:a-n,y:o-r}});this.set("plotRange",s),this.set("plot",s)},n._initCanvas=function(){var t=this;try{var n=new d({el:t.get("el")||t.get("id"),context:t.get("context"),pixelRatio:t.get("pixelRatio"),width:t.get("width"),height:t.get("height"),fontFamily:v.fontFamily});t.set("canvas",n),t.set("width",n.get("width")),t.set("height",n.get("height"))}catch(t){throw t}e.plugins.notify(t,"afterCanvasInit"),t._initLayout()},n._initLayers=function(){var t=this.get("canvas");this.set("backPlot",t.addGroup()),this.set("middlePlot",t.addGroup({zIndex:10})),this.set("frontPlot",t.addGroup({zIndex:20}))},n._init=function(){var t=this;t._initCanvas(),t._initLayers(),t.set("geoms",[]),t.set("scaleController",new p),t.set("axisController",new g({frontPlot:t.get("frontPlot").addGroup({className:"axisContainer"}),backPlot:t.get("backPlot").addGroup({className:"axisContainer"}),chart:t})),e.plugins.notify(t,"init")},n.source=function(t,e){return this.set("data",t),e&&this.scale(e),this},n.scale=function(t,e){var n=this.get("colDefs")||{};return l.isObject(t)?l.mix(n,t):n[t]=e,this.set("colDefs",n),this.get("scaleController").defs=n,this},n.axis=function(t,e){var n=this.get("axisController");return t?(n.axisCfg=n.axisCfg||{},n.axisCfg[t]=e):n.axisCfg=null,this},n.coord=function(t,e){var n;return l.isObject(t)?n=t:(n=e||{}).type=t||"cartesian",this.set("coordCfg",n),this},n.filter=function(t,e){var n=this.get("filters")||{};n[t]=e,this.set("filters",n)},n.render=function(){var t=this.get("canvas"),n=this.get("geoms"),r=this.get("data")||[],i=this._execFilter(r);this.set("filteredData",i),this._initCoord(),e.plugins.notify(this,"beforeGeomInit"),this._initGeoms(n),this.get("syncY")&&this._syncYScales(),this._adjustScale(),e.plugins.notify(this,"beforeGeomDraw"),this._renderAxis();var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var o=this.get("coord"),s=y.getClip(o);s.set("canvas",a.get("canvas")),a.attr("clip",s)}for(var u=0,c=n.length;u<c;u++)n[u].paint();return e.plugins.notify(this,"afterGeomDraw"),t.sort(),this.get("frontPlot").sort(),e.plugins.notify(this,"beforeCanvasDraw"),t.draw(),this},n.clear=function(){return e.plugins.notify(this,"clear"),this._removeGeoms(),this._clearInner(),this.set("filters",null),this.set("isUpdate",!1),this.set("_padding",null),this.get("canvas").draw(),this},n.repaint=function(){this.set("isUpdate",!0),e.plugins.notify(this,"repaint"),this._clearInner(),this.render()},n.changeData=function(t){this.set("data",t),e.plugins.notify(this,"changeData"),this.set("_padding",null),this.repaint()},n.changeSize=function(t,e){return t?this.set("width",t):t=this.get("width"),e?this.set("height",e):e=this.get("height"),this.get("canvas").changeSize(t,e),this._initLayout(),this.repaint(),this},n.destroy=function(){this.clear(),this.get("canvas").destroy(),e.plugins.notify(this,"afterCanvasDestroyed"),this._interactions&&l.each(this._interactions,function(t){t.destroy()}),t.prototype.destroy.call(this)},n.getPosition=function(t){var e=this,n=e.get("coord"),r=e.getXScale(),i=e.getYScales()[0],a=r.field,o=r.scale(t[a]),s=i.field,u=i.scale(t[s]);return n.convertPoint({x:o,y:u})},n.getRecord=function(t){var e=this,n=e.get("coord"),r=e.getXScale(),i=e.getYScales()[0],a=n.invertPoint(t),o={};return o[r.field]=r.invert(a.x),o[i.field]=i.invert(a.y),o},n.getSnapRecords=function(t){var e=this.get("geoms")[0],n=[];return e&&(n=e.getSnapRecords(t)),n},n.createScale=function(t){var e=this.get("data"),n=this.get("filteredData");n.length&&-1===this._getFieldsForLegend().indexOf(t)&&(e=n);var r=this.get("scales");return r[t]||(r[t]=this._createScale(t,e)),r[t]},n.addGeom=function(t){var e=this.get("geoms"),n=this.get("middlePlot");e.push(t),t.set("chart",this),t.set("container",n.addGroup())},n.getXScale=function(){return this.get("geoms")[0].getXScale()},n.getYScales=function(){var t=this.get("geoms"),e=[];return l.each(t,function(t){var n=t.getYScale();-1===e.indexOf(n)&&e.push(n)}),e},n.getLegendItems=function(){if(this.get("legendItems"))return this.get("legendItems");var t={},e=[],n=this.get("geoms");return l.each(n,function(n){var r=n.getAttr("color");if(r){var i=r.getScale("color");if("identity"!==i.type&&!s(e,i)){e.push(i);var a=i.field,o=i.getTicks(),u=[];l.each(o,function(t){var e=t.text,n=t.value,a=i.invert(n),o={fill:r.mapping(a).join("")||v.defaultColor,radius:3,symbol:"circle",stroke:"#fff"};u.push({name:e,dataValue:a,checked:!0,marker:o})}),t[a]=u}}}),this.set("legendItems",t),t},n.registerPlugins=function(t){var n=this,r=n.get("plugins")||[];l.isArray(r)||(r=[r]),[].concat(t).forEach(function(t){-1===r.indexOf(t)&&(t.init&&t.init(n),r.push(t))}),e.plugins._cacheId++,n.set("plugins",r)},n._renderAxis=function(){var t=this.get("axisController"),n=this.getXScale(),r=this.getYScales(),i=this.get("coord");e.plugins.notify(this,"beforeRenderAxis"),t.createAxis(i,n,r)},n._isAutoPadding=function(){if(this.get("_padding"))return!1;var t=this.get("padding");return l.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},n._updateLayout=function(t){var e=this.get("width"),n=this.get("height"),r={x:t[3],y:t[0]},i={x:e-t[1],y:n-t[2]},a=this.get("plot"),o=this.get("coord");a.reset(r,i),o.reset(a)},e}(u);x.plugins=x.initPlugins(),t.exports=x},function(t,e,n){var r=n(0),i={splitPoints:function(t){var e=[],n=t.x,i=t.y;return(i=r.isArray(i)?i:[i]).forEach(function(t,i){var a={x:r.isArray(n)?n[i]:n,y:t};e.push(a)}),e},splitArray:function(t,e,n){if(!t.length)return[];var i,a=[],o=[];return r.each(t,function(t){i=t._origin?t._origin[e]:t[e],n?r.isNil(i)||o.push(t):r.isArray(i)&&r.isNil(i[0])||r.isNil(i)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}};t.exports=i},function(t,e,n){var r=n(0),i=function(){function t(t){this._initDefaultCfg(),r.mix(this,t);var e,n;this.plot?(e=this.plot.bl,n=this.plot.tr,this.start=e,this.end=n):(e=this.start,n=this.end),this.init(e,n)}var e=t.prototype;return e._initDefaultCfg=function(){},e.init=function(){},e.convertPoint=function(t){return t},e.invertPoint=function(t){return t},e.reset=function(t){this.plot=t;var e=t.bl,n=t.tr;this.start=e,this.end=n,this.init(e,n)},t}();t.exports=i},function(t,e,n){var r=n(16),i=function(){function t(t){this._initDefaultCfg(),r(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=i},function(t,e){var n={multiply:function(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]},scale:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[0],t[2]=e[2]*n[1],t[3]=e[3]*n[1],t[4]=e[4],t[5]=e[5],t},rotate:function(t,e,n){var r=Math.cos(n),i=Math.sin(n),a=e[0]*r+e[2]*i,o=e[1]*r+e[3]*i,s=e[0]*-i+e[2]*r,u=e[1]*-i+e[3]*r;return t[0]=a,t[1]=o,t[2]=s,t[3]=u,t[4]=e[4],t[5]=e[5],t},translate:function(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+e[0]*n[0]+e[2]*n[1],t[5]=e[5]+e[1]*n[0]+e[3]*n[1],t},transform:function(t,e){for(var r=[].concat(t),i=0,a=e.length;i<a;i++){var o=e[i];switch(o[0]){case"t":n.translate(r,r,[o[1],o[2]]);break;case"s":n.scale(r,r,[o[1],o[2]]);break;case"r":n.rotate(r,r,o[1])}}return r}};t.exports=n},function(t,e,n){var r=n(0),i=n(1),a=n(4),o=function(){function t(t){this._initDefaultCfg(),r.mix(this,t),this.draw()}var e=t.prototype;return e._initDefaultCfg=function(){this.ticks=[],this.tickLine={},this.offsetFactor=1,this.frontContainer=null,this.backContainer=null,this.gridPoints=[]},e.draw=function(){var t=this.line,e=this.tickLine,n=this.label,r=this.grid;r&&this.drawGrid(r),e&&this.drawTicks(e),t&&this.drawLine(t),n&&this.drawLabels()},e.drawTicks=function(t){var e=this,n=e.ticks,i=t.length,a=e.getContainer(t.top);r.each(n,function(n){var o=e.getOffsetPoint(n.value),s=e.getSidePoint(o,i);a.addShape("line",{className:"axis-tick",attrs:r.mix({x1:o.x,y1:o.y,x2:s.x,y2:s.y},t)})._id=e._id+"-ticks"})},e.drawLabels=function(){var t=this,e=t.labelOffset,n=t.labels;r.each(n,function(n){var i=t.getContainer(n.get("top")),a=t.getOffsetPoint(n.get("value")),o=t.getSidePoint(a,e),s=o.x,u=o.y;n.attr(r.mix({x:s,y:u},t.getTextAlignInfo(a,e),n.get("textStyle"))),n._id=t._id+"-"+n.attr("text"),i.add(n)})},e.drawLine=function(){},e.drawGrid=function(t){var e=this,n=e.gridPoints,o=e.ticks,s=t,u=n.length;r.each(n,function(n,c){if(r.isFunction(t)){var l=o[c]||{},h=t(l.text,c,u);s=h?r.mix({},i._defaultAxis.grid,h):null}if(s){var f,p=s.type,g=n.points,v=e.getContainer(s.top);if("arc"===p){var d=e.center,y=e.startAngle,x=e.endAngle,m=a.length([g[0].x-d.x,g[0].y-d.y]);f=v.addShape("Arc",{className:"axis-grid",attrs:r.mix({x:d.x,y:d.y,startAngle:y,endAngle:x,r:m},s)})}else f=v.addShape("Polyline",{className:"axis-grid",attrs:r.mix({points:g},s)});f._id=n._id}})},e.getOffsetPoint=function(){},e.getAxisVector=function(){},e.getOffsetVector=function(t,e){var n=this,r=n.getAxisVector(t),i=a.normalize([],r),o=n.offsetFactor,s=[-1*i[1]*o,i[0]*o];return a.scale([],s,e)},e.getSidePoint=function(t,e){var n=this.getOffsetVector(t,e);return{x:t.x+n[0],y:t.y+n[1]}},e.getTextAlignInfo=function(t,e){var n,r,i=this.getOffsetVector(t,e);return n=i[0]>0?"left":i[0]<0?"right":"center",r=i[1]>0?"top":i[1]<0?"bottom":"middle",{textAlign:n,textBaseline:r}},e.getContainer=function(t){var e=this.frontContainer,n=this.backContainer;return t?e:n},t}();t.exports=o},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]}var i=n(0),a=n(23),o=n(4),s=n(69),u={stroke:"strokeStyle",fill:"fillStyle",opacity:"globalAlpha"},c=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash"],l=["circle","sector","polygon","rect","polyline"],h=function(){function t(t){this._initProperties(),i.mix(this._attrs,t);var e=this._attrs.attrs;e&&this.initAttrs(e),this.initTransform()}var e=t.prototype;return e._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.isGroup=function(){return this.get("isGroup")},e.isShape=function(){return this.get("isShape")},e.initAttrs=function(t){this.attr(i.mix(this.getDefaultAttrs(),t))},e.getDefaultAttrs=function(){return{}},e._setAttr=function(t,e){var n=this._attrs.attrs;if("clip"===t)e=this._setAttrClip(e);else{var r=u[t];r&&(n[r]=e)}n[t]=e},e._getAttr=function(t){return this._attrs.attrs[t]},e._setAttrClip=function(t){return t&&l.indexOf(t._attrs.type)>-1?(null===t.get("canvas")&&(t=Object.assign({},t)),t.set("parent",this.get("parent")),t.set("context",this.get("context")),t):null},e.attr=function(t,e){var n=this;if(n.get("destroyed"))return null;var r=arguments.length;if(0===r)return n._attrs.attrs;if(i.isObject(t)){this._attrs.bbox=null;for(var a in t)n._setAttr(a,t[a]);return n._afterAttrsSet&&n._afterAttrsSet(),n}return 2===r?(this._attrs.bbox=null,n._setAttr(t,e),n._afterAttrsSet&&n._afterAttrsSet(),n):n._getAttr(t)},e.getParent=function(){return this.get("parent")},e.draw=function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},e.setContext=function(t){var e=this._attrs.attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},e.restoreContext=function(t){t.restore()},e.resetContext=function(t){var e=this._attrs.attrs;if(!this._attrs.isGroup)for(var n in e)if(c.indexOf(n)>-1){var r=e[n];"fillStyle"!==n&&"strokeStyle"!==n||(r=s.parseStyle(r,this,t)),"lineDash"===n&&t.setLineDash&&i.isArray(r)?t.setLineDash(r):t[n]=r}},e.hasFill=function(){return this.get("canFill")&&this._attrs.attrs.fillStyle},e.hasStroke=function(){return this.get("canStroke")&&this._attrs.attrs.strokeStyle},e.drawInner=function(){},e.show=function(){return this.set("visible",!0),this},e.hide=function(){return this.set("visible",!1),this},e.isVisible=function(){return this.get("visible")},e._removeFromParent=function(){var t=this.get("parent");if(t){var e=t.get("children");i.Array.remove(e,this)}return this},e.remove=function(t){t?this.destroy():this._removeFromParent()},e.destroy=function(){if(this.get("destroyed"))return null;this._removeFromParent(),this._attrs={},this.set("destroyed",!0)},e.getBBox=function(){return{minX:0,maxX:0,minY:0,maxY:0,width:0,height:0}},e.initTransform=function(){var t=this._attrs.attrs||{};t.matrix||(t.matrix=[1,0,0,1,0,0]),this._attrs.attrs=t},e.getMatrix=function(){return this._attrs.attrs.matrix},e.setMatrix=function(t){this._attrs.attrs.matrix=[t[0],t[1],t[2],t[3],t[4],t[5]]},e.transform=function(t){var e=this._attrs.attrs.matrix;return this._attrs.attrs.matrix=a.transform(e,t),this},e.setTransform=function(t){return this._attrs.attrs.matrix=[1,0,0,1,0,0],this.transform(t)},e.translate=function(t,e){var n=this._attrs.attrs.matrix;a.translate(n,n,[t,e])},e.rotate=function(t){var e=this._attrs.attrs.matrix;a.rotate(e,e,t)},e.scale=function(t,e){var n=this._attrs.attrs.matrix;a.scale(n,n,[t,e])},e.moveTo=function(t,e){var n=this._attrs.x||0,r=this._attrs.y||0;this.translate(t-n,e-r),this.set("x",t),this.set("y",e)},e.apply=function(t){var e=this._attrs.attrs.matrix;return o.transformMat2d(t,t,e),this},e.resetTransform=function(t){var e=this._attrs.attrs.matrix;r(e)||t.transform(e[0],e[1],e[2],e[3],e[4],e[5])},e.isDestroyed=function(){return this.get("destroyed")},t}();t.exports=h},function(t,e,n){var r=n(5).Shape;t.exports={getClip:function(t){var e,n=t.start,i=t.end,a=i.x-n.x,o=Math.abs(i.y-n.y);if(t.isPolar){var s=t.circleRadius,u=t.center,c=t.startAngle,l=t.endAngle;e=new r.Sector({attrs:{x:u.x,y:u.y,r:s,r0:0,startAngle:c,endAngle:l}})}else e=new r.Rect({attrs:{x:n.x,y:i.y-10,width:a,height:o+20}});return e.isClip=!0,e},isPointInPlot:function(t,e){var n=t.x,r=t.y,i=e.tl,a=e.tr,o=e.br;return n>=i.x&&n<=a.x&&r>=i.y&&r<=o.y}}},function(t,e,n){var r=n(7);t.exports=function(t){return r(t)?"":t.toString()}},function(t,e,n){var r=n(48),i=n(8);t.exports=function(t){if(!r(t)||!i(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){var r=n(0),i=function(){function t(t){var e={},n=this.getDefaultCfg();this._attrs=e,r.mix(e,n,t)}var e=t.prototype;return e.getDefaultCfg=function(){return{}},e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e.destroy=function(){this._attrs={},this.destroyed=!0},t}();t.exports=i},function(t,e,n){function r(t){return function(e,n){var r=t(e,n);return 0===r?e[s]-n[s]:r}}var i=n(0),a=n(2),o={},s="_INDEX";t.exports={getGroupClass:function(){},getChildren:function(){return this.get("children")},addShape:function(t,e){void 0===e&&(e={});var n=this.get("canvas"),r=o[t];r||(r=i.upperFirst(t),o[t]=r),e.canvas=n,"Text"===r&&n&&n.get("fontFamily")&&(e.attrs.fontFamily=e.attrs.fontFamily||n.get("fontFamily"));var s=new a[r](e);return this.add(s),s},addGroup:function(t){var e=this.get("canvas"),n=this.getGroupClass();(t=i.mix({},t)).canvas=e,t.parent=this;var r=new n(t);return this.add(r),r},contain:function(t){return this.get("children").indexOf(t)>-1},sort:function(){for(var t=this.get("children"),e=0,n=t.length;e<n;e++)t[e][s]=e;return t.sort(r(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},clear:function(){for(var t=this.get("children");0!==t.length;)t[t.length-1].remove(!0);return this},add:function(t){var e=this,n=e.get("children");i.isArray(t)||(t=[t]);for(var r=0,a=t.length;r<a;r++){var o=t[r],s=o.get("parent");if(s){var u=s.get("children");i.Array.remove(u,o)}e._setEvn(o),n.push(o)}return e},_setEvn:function(t){var e=this;t._attrs.parent=e,t._attrs.context=e._attrs.context,t._attrs.canvas=e._attrs.canvas;var n=t._attrs.attrs.clip;if(n&&(n.set("parent",e),n.set("context",e.get("context"))),t._attrs.isGroup)for(var r=t._attrs.children,i=0,a=r.length;i<a;i++)t._setEvn(r[i])}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(25),o=n(30),s=n(4),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isGroup:!0,children:[]}},n.drawInner=function(t){for(var e=this.get("children"),n=0,r=e.length;n<r;n++)e[n].draw(t);return this},n.getBBox=function(){for(var t=1/0,e=-1/0,n=1/0,r=-1/0,i=this.get("children"),a=0,o=i.length;a<o;a++){var u=i[a];if(u.get("visible")){var c=u.getBBox();if(!c)continue;var l=[c.minX,c.minY],h=[c.minX,c.maxY],f=[c.maxX,c.minY],p=[c.maxX,c.maxY],g=u.attr("matrix");s.transformMat2d(l,l,g),s.transformMat2d(h,h,g),s.transformMat2d(f,f,g),s.transformMat2d(p,p,g),t=Math.min(l[0],h[0],f[0],p[0],t),e=Math.max(l[0],h[0],f[0],p[0],e),n=Math.min(l[1],h[1],f[1],p[1],n),r=Math.max(l[1],h[1],f[1],p[1],r)}}return{minX:t,minY:n,maxX:e,maxY:r,x:t,y:n,width:e-t,height:r-n}},n.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e}(a);i.mix(u.prototype,o,{getGroupClass:function(){return u}}),t.exports=u},function(t,e,n){function r(t){var e={strokeStyle:t.color};return t.size>=0&&(e.lineWidth=t.size),a.mix(e,t.style),a.mix({},u.shape.line,e)}function i(t,e,n,r){var i=t.points;if(i.length&&a.isArray(i[0].y)){for(var o=[],u=[],c=0,l=i.length;c<l;c++){var h=i[c],f=s.splitPoints(h);u.push(f[0]),o.push(f[1])}return t.isInCircle&&(o.push(o[0]),u.push(u[0])),t.isStack?e.addShape("Polyline",{className:"line",attrs:a.mix({points:o,smooth:r},n)}):[e.addShape("Polyline",{className:"line",attrs:a.mix({points:o,smooth:r},n)}),e.addShape("Polyline",{className:"line",attrs:a.mix({points:u,smooth:r},n)})]}return t.isInCircle&&i.push(i[0]),e.addShape("Polyline",{className:"line",attrs:a.mix({points:i,smooth:r},n)})}var a=n(0),o=n(9),s=n(20),u=n(1),c=o.registerFactory("line",{defaultShapeType:"line"}),l=["line","smooth","dash"];a.each(l,function(t){o.registerShape("line",t,{draw:function(e,n){var a="smooth"===t,o=r(e);return"dash"===t&&(o.lineDash=u.lineDash),i(e,n,o,a)}})}),t.exports=c},function(t,e,n){var r=n(8);t.exports=function(t){return r(t,"Date")}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(14),a=n(35),o=n(3),s=n(13),u=n(15),c=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this,e=t.values,n=t.tickCount;if(o(e,function(t,n){e[n]=t.toString()}),!t.ticks){var r=e;n&&(r=a({maxCount:n,data:e,isRounding:t.isRounding}).ticks),this.ticks=r}},n.getText=function(e){return-1===this.values.indexOf(e)&&s(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&s(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),r=this.rangeMax();return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(r-n)},n.invert=function(t){if(u(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},e}(i);i.Cat=c,t.exports=c},function(t,e,n){function r(t){var e=[];return a(t,function(t){e=e.concat(t)}),e}function i(t,e){var n;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}var a=n(3);t.exports=function(t){var e,n={},a=[],o=t.isRounding,s=r(t.data),u=s.length,c=t.maxCount||8;if(o?2===(e=i(u-1,c-1)+1)?e=c:e<c-4&&(e=c-4):e=c,!o&&u<=e+e/2)a=[].concat(s);else{for(var l=parseInt(u/(e-1),10),h=s.map(function(t,e){return e%l==0?s.slice(e,e+l):null}).filter(function(t){return t}),f=1,p=h.length;f<p&&(o?f*l<u-l:f<e-1);f++)a.push(h[f][0]);if(s.length){a.unshift(s[0]);var g=s[u-1];-1===a.indexOf(g)&&a.push(g)}}return n.categories=s,n.ticks=a,n}},function(t,e){t.exports={requestAnimationFrame:"object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:function(t){return setTimeout(t,16)}}},function(t,e,n){function r(t){return[t.x,t.y]}function i(t,e,n,i){var o,s,u,c,l,h,f,p,g=[],v=!!i;if(v){for(u=[1/0,1/0],c=[-1/0,-1/0],p=0,f=t.length;p<f;p++)l=r(t[p]),a.min(u,u,l),a.max(c,c,l);a.min(u,u,i[0]),a.max(c,c,i[1])}for(p=0,h=t.length;p<h;p++){if(l=r(t[p]),n)o=r(t[p?p-1:h-1]),s=r(t[(p+1)%h]);else{if(0===p||p===h-1){g.push([l[0],l[1]]);continue}o=r(t[p-1]),s=r(t[p+1])}var d=a.sub([],s,o);a.scale(d,d,e);var y=a.distance(l,o),x=a.distance(l,s),m=y+x;0!==m&&(y/=m,x/=m);var _=a.scale([],d,-y),S=a.scale([],d,x),P=a.add([],l,_),b=a.add([],l,S);v&&(a.max(P,P,u),a.min(P,P,c),a.max(b,b,u),a.min(b,b,c)),g.push([P[0],P[1]]),g.push([b[0],b[1]])}return n&&g.push(g.shift()),g}var a=n(4);t.exports={smooth:function(t,e,n){for(var r,a,o,s=!!e,u=i(t,.4,s,n),c=t.length,l=[],h=0;h<c-1;h++)r=u[2*h],a=u[2*h+1],o=t[h+1],l.push(["C",r[0],r[1],a[0],a[1],o.x,o.y]);return s&&(r=u[c],a=u[c+1],o=t[0],l.push(["C",r[0],r[1],a[0],a[1],o.x,o.y])),l}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(6),a=n(20),o=n(0);n(32);var s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},n.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasAdjust("stack"),n},n.draw=function(t,e){var n=this,r=n.get("container"),i=n.getYScale(),s=n.get("connectNulls"),u=a.splitArray(t,i.field,s),c=this.getDrawCfg(t[0]);c.origin=t,o.each(u,function(i,a){c.splitedIndex=a,c.points=i,n.drawShape(c.shape,t[0],c,r,e)})},e}(i);i.Path=s,t.exports=s},function(t,e,n){var r=n(1),i=n(0),a={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),n=this.getXScale(),i=this.get("dataArray"),a=n.values.length,o=n.range,s=1/a,u=1;e&&e.isPolar?u=e.transposed&&a>1?r.widthRatio.multiplePie:r.widthRatio.rose:(n.isLinear&&(s*=o[1]-o[0]),u=r.widthRatio.column),s*=u,this.hasAdjust("dodge")&&(s/=i.length),t=s,this.set("defaultSize",t)}return t},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=i.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefalutSize();e=this._toCoordSize(n)}return e}};t.exports=a},,function(t,e,n){var r={},i=n(1);r.Global=i,r.version=i.version,r.Chart=n(19),r.Shape=n(9),r.G=n(5),r.Util=n(0),r.track=function(t){i.trackable=t},n(79),t.exports=r},function(t,e,n){var r=n(0),i={label:{fill:"#808080",fontSize:10},line:{stroke:"#E8E8E8",lineWidth:1},grid:{type:"line",stroke:"#E8E8E8",lineWidth:1,lineDash:[2]},tickLine:null,labelOffset:7.5},a={fontFamily:'"Helvetica Neue", "San Francisco", Helvetica, Tahoma, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", sans-serif',defaultColor:"#1890FF",pixelRatio:1,padding:"auto",appendPadding:15,colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],shapes:{line:["line","dash"],point:["circle","hollowCircle"]},sizes:[4,10],axis:{common:i,bottom:r.mix({},i,{grid:null}),left:r.mix({},i,{line:null}),right:r.mix({},i,{line:null}),circle:r.mix({},i,{line:null}),radius:r.mix({},i,{labelOffset:4})},shape:{line:{lineWidth:2,lineJoin:"round",lineCap:"round"},point:{lineWidth:0,size:3},area:{fillOpacity:.1}},_defaultAxis:i};t.exports=a},function(t,e){function n(t,e,n,r,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function r(t,e){var r=t.type,a={},o=t.targetTouches;o&&o.length>0?(a.x=o[0].clientX,a.y=o[0].clientY):(a.x=t.clientX,a.y=t.clientY);var s=e.get("canvas"),u=i.getRelativePosition(a,s);return n(r,e,u.x,u.y,t)}var i,a=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};i={isWx:"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync,isMy:"object"==typeof my&&"function"==typeof my.getSystemInfoSync,isNode:void 0!==t&&void 0!==t.exports,isBrowser:"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.sessionStorage,getPixelRatio:function(){return window&&window.devicePixelRatio||1},getStyle:function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},getWidth:function(t){var e=this.getStyle(t,"width");return"auto"===e&&(e=t.offsetWidth),parseFloat(e)},getHeight:function(t){var e=this.getStyle(t,"height");return"auto"===e&&(e=t.offsetHeight),parseFloat(e)},getDomById:function(t){return t?document.getElementById(t):null},getRelativePosition:function(t,e){var n=e.get("el"),r=n.getBoundingClientRect(),i=r.top,a=r.right,o=r.bottom,s=r.left,u=parseFloat(this.getStyle(n,"padding-left")),c=parseFloat(this.getStyle(n,"padding-top")),l=a-s-u-parseFloat(this.getStyle(n,"padding-right")),h=o-i-c-parseFloat(this.getStyle(n,"padding-bottom")),f=e.get("pixelRatio");return{x:(t.x-s-u)/l*n.width/f,y:(t.y-i-c)/h*n.height/f}},addEventListener:function(t,e,n){i.isBrowser&&t.addEventListener(e,n,a)},removeEventListener:function(t,e,n){i.isBrowser&&t.removeEventListener(e,n,a)},createEvent:function(t,e){return r(t,e)},measureText:function(t,e,n){return n||(n=document.createElement("canvas").getContext("2d")),n.font=e||"12px sans-serif",n.measureText(t)}},t.exports=i},function(t,e,n){var r=n(27);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(27);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){var r=n(8);t.exports=function(t){return r(t,"Boolean")}},function(t,e,n){var r=n(8);t.exports=function(t){return r(t,"Function")}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":n(t))&&null!==t}},function(t,e,n){function r(t,e,n,s){n=n||0,s=s||o;for(var u in e)if(e.hasOwnProperty(u)){var c=e[u];null!==c&&i(c)?(i(t[u])||(t[u]={}),n<s?r(t[u],c,n+1,s):t[u]=e[u]):a(c)?(t[u]=[],t[u]=t[u].concat(c)):void 0!==c&&(t[u]=c)}}var i=n(28),a=n(10),o=5;t.exports=function(){for(var t=new Array(arguments.length),e=t.length,n=0;n<e;n++)t[n]=arguments[n];for(var i=t[0],a=1;a<e;a++)r(i,t[a]);return i}},function(t,e,n){var r=n(0),i=function(){function t(t){r.mix(this,t),this._init()}var e=t.prototype;return e._init=function(){var t=this,e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.max(e.x,n.x),a=Math.min(e.y,n.y),o=Math.max(e.y,n.y);this.tl={x:r,y:a},this.tr={x:i,y:a},this.bl={x:r,y:o},this.br={x:i,y:o},this.width=i-r,this.height=o-a},e.reset=function(t,e){this.start=t,this.end=e,this._init()},e.isInRange=function(t,e){r.isObject(t)&&(e=t.y,t=t.x);var n=this.tl,i=this.br;return n.x<=t&&t<=i.x&&n.y<=e&&e<=i.y},t}();t.exports=i},function(t,e,n){var r=n(21);n(52),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="cartesian",this.transposed=!1,this.isRect=!0},n.init=function(t,e){this.x={start:t.x,end:e.x},this.y={start:t.y,end:e.y}},n.convertPoint=function(t){var e=this,n=e.transposed,r=n?"y":"x",i=n?"x":"y",a=e.x,o=e.y;return{x:a.start+(a.end-a.start)*t[r],y:o.start+(o.end-o.start)*t[i]}},n.invertPoint=function(t){var e=this,n=e.transposed,r=n?"y":"x",i=n?"x":"y",a=e.x,o=e.y,s={};return s[r]=(t.x-a.start)/(a.end-a.start),s[i]=(t.y-o.start)/(o.end-o.start),s},e}(i);i.Cartesian=a,i.Rect=a,t.exports=a},function(t,e,n){t.exports={Position:n(54),Shape:n(55),Size:n(56),Color:n(57)}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(7),a=n(10),o=n(3),s=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}return r(e,t),e.prototype.mapping=function(t,e){var n,r,s,u=this.scales,c=this.coord,l=u[0],h=u[1];if(i(t)||i(e))return[];if(a(e)&&a(t)){n=[],r=[];for(var f=0,p=0,g=t.length,v=e.length;f<g&&p<v;f++,p++)s=c.convertPoint({x:l.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),r.push(s.y)}else if(a(e))t=l.scale(t),r=[],o(e,function(e){e=h.scale(e),s=c.convertPoint({x:t,y:e}),n&&n!==s.x?(a(n)||(n=[n]),n.push(s.x)):n=s.x,r.push(s.y)});else if(a(t))e=h.scale(e),n=[],o(t,function(t){t=l.scale(t),s=c.convertPoint({x:t,y:e}),r&&r!==s.y?(a(r)||(r=[r]),r.push(s.y)):r=s.y,n.push(s.x)});else{t=l.scale(t),e=h.scale(e);var d=c.convertPoint({x:t,y:e});n=d.x,r=d.y}return[n,r]},e}(n(17));t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["shape"],n.type="shape",n.gradient=null,n}return r(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(17));t.exports=i},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["size"],n.type="size",n.gradient=null,n}return r(e,t),e}(n(17));t.exports=i},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(58),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["color"],n.type="color",n.gradient=null,i.isString(n.values)&&(n.linear=!0),n}return r(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=a.gradient(n),this.gradient=e}return e(t)},e}(n(17));t.exports=o},function(t,e,n){function r(t,e,n,r){return t[r]+(e[r]-t[r])*n}function i(t){return"#"+a(t[0])+a(t[1])+a(t[2])}function a(t){return t=Math.round(t),1===(t=t.toString(16)).length&&(t="0"+t),t}function o(t,e){var n=t.length-1,a=Math.floor(n*e),o=n*e-a,s=t[a],u=a===n?s:t[a+1];return i([r(s,u,o,0),r(s,u,o,1),r(s,u,o,2)])}function s(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var u=n(0),c={black:"#000000",blue:"#0000ff",grey:"#808080",green:"#008000",orange:"#ffa500",pink:"#ffc0cb",purple:"#800080",red:"#ff0000",white:"#ffffff",yellow:"#ffff00"},l={toHex:function(t){if(c[t])return c[t];if("#"===t[0]){if(7===t.length)return t;var e=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,n,r){return"#"+e+e+n+n+r+r});return c[t]=e,e}var n=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);return n.shift(),n=i(n),c[t]=n,n},hex2arr:s,gradient:function(t){var e=[];return u.isString(t)&&(t=t.split("-")),u.each(t,function(t){-1===t.indexOf("#")&&(t=l.toHex(t)),e.push(s(t))}),function(t){return o(e,t)}}};t.exports=l},function(t,e,n){var r=n(0),i=n(1),a=n(60),o={linear:"Linear",cat:"Cat",timeCat:"TimeCat",identity:"Identity"},s=function(){function t(t){this.defs={},r.mix(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=null;return(i.scales[t]||e[t])&&(n=r.mix({},i.scales[t]),r.each(e[t],function(t,e){r.isNil(t)?delete n[e]:n[e]=t})),n},e._getDefaultType=function(t,e,n){if(n&&n.type)return n.type;var i="linear",a=r.Array.firstValue(e,t);return r.isArray(a)&&(a=a[0]),r.isString(a)&&(i="cat"),i},e._getScaleCfg=function(t,e,n,i){var a,o={field:e,values:a=i&&i.values?i.values:r.Array.values(n,e)};if(!("cat"===t||"timeCat"===t||i&&i.min&&i.max)){var s=r.Array.getRange(a),u=s.min,c=s.max;o.min=u,o.max=c,o.nice=!0}return"cat"!==t&&"timeCat"!==t||(o.isRounding=!1),o},e.createScale=function(t,e){var n,i=this,s=i._getDef(t);if(!e||!e.length)return s&&s.type?(s.field=t,n=new a[o[s.type]](s)):n=new a.Identity({value:t,field:t.toString(),values:[t]}),n;var u=e[0][t];if(null===u&&(u=r.Array.firstValue(e,t)),r.isNumber(t)||r.isNil(u)&&!s)n=new a.Identity({value:t,field:t.toString(),values:[t]});else{var c=i._getDefaultType(t,e,s),l=i._getScaleCfg(c,t,e,s);s&&r.mix(l,s),n=new a[o[c]](l)}return n},t}();t.exports=s},function(t,e,n){var r=n(14);n(61),n(64),n(34),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(7),a=n(3),o=n(14),s=n(62),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);var e=this;e.type="linear",e.isLinear=!0,e.nice=!1,e.min=null,e.minLimit=null,e.max=null,e.maxLimit=null,e.tickCount=null,e.tickInterval=null,e.minTickInterval=null,e.snapArray=null},n.init=function(){var t=this;if(t.ticks){var e=t.ticks,n=t.translate(e[0]),r=t.translate(e[e.length-1]);(i(t.min)||t.min>n)&&(t.min=n),(i(t.max)||t.max<r)&&(t.max=r)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,o=this.minTickInterval,u=this.snapArray;if(1===i)throw new Error("linear scale'tickCount should not be 1");if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);return s({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:o,snapArray:u}).ticks},n.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];a(e,function(e){e>=t.min&&e<=t.max&&n.push(e)}),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},n.scale=function(t){if(i(t))return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),a=this.rangeMin();return a+r*(this.rangeMax()-a)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(o);o.Linear=u,t.exports=u},function(t,e,n){var r=n(7),i=n(13),a=n(63),o=[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[0,1,2,4,5,10];t.exports=function(t){var e=t.min,n=t.max,u=t.interval,c=t.minTickInterval,l=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,g=r(t.minLimit)?-1/0:t.minLimit,v=r(t.maxLimit)?1/0:t.maxLimit,d=(h+f)/2,y=d,x=t.snapArray?t.snapArray:p?o:s;if(e===g&&n===v&&p&&(u=(n-e)/(y-1)),r(e)&&(e=0),r(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),r(u)){var m=(n-e)/(d-1);u=a.snapFactorTo(m,x,"ceil"),f!==h&&((y=parseInt((n-e)/u,10))>f&&(y=f),y<h&&(y=h),u=a.snapFactorTo((n-e)/(y-1),x,"floor"))}if(i(c)&&u<c&&(u=c),t.interval||f!==h)n=Math.min(a.snapMultiple(n,u,"ceil"),v),e=Math.max(a.snapMultiple(e,u,"floor"),g),y=Math.round((n-e)/u),e=a.fixedBase(e,u),n=a.fixedBase(n,u);else{d=parseInt(d,10);var _,S=(n+e)/2,P=a.snapMultiple(S,u,"ceil"),b=Math.floor((d-2)/2),A=P+b*u;_=d%2==0?P-b*u:P-(b+1)*u,A<n&&(A+=u),_>e&&(_-=u),n=a.fixedBase(A,u),e=a.fixedBase(_,u)}n=Math.min(n,v),e=Math.max(e,g),l.push(e);for(var w=1;w<y;w++){var C=a.fixedBase(u*w+e,u);C<n&&l.push(C)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:y,ticks:l}}},function(t,e){function n(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>a&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}function r(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function i(t,e){var n=t.length;if(0===n)return NaN;var r;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){r=t[i];break}return r}var a=12,o={snapFactorTo:function(t,e,r){if(isNaN(t))return NaN;var i=1;if(0!==t){t<0&&(i=-1);var s=n(t*=i);i*=s,t/=s}var u=(t="floor"===r?o.snapFloor(e,t):"ceil"===r?o.snapCeiling(e,t):o.snapTo(e,t))*i;return Math.abs(i)<1&&u.toString().length>a&&(u=t/parseInt(1/i)*(i>0?1:-1)),u},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var n=r(t,e),a=i(t,e);if(isNaN(n)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-n)<Math.abs(a-e)?n:a},snapFloor:function(t,e){return r(t,e)},snapCeiling:function(t,e){return i(t,e)},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}};t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(14),a=n(13),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},n.getText=function(){return this.value.toString()},n.scale=function(t){return this.value!==t&&a(t)?t:this.range[0]},n.invert=function(){return this.value},e}(i);i.Identity=o,t.exports=o},function(t,e,n){function r(t){var e=t.slice(0);if(e.length>0){var n=e[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}var i=n(0),a=n(66),o=n(1),s=n(5).Shape,u=function(){function t(t){this.axisCfg={},this.frontPlot=null,this.backPlot=null,this.axes={},i.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.axisCfg;return!e||!1===e[t]},e._getLinePosition=function(t,e,n,r){var i="",a=t.field,o=this.axisCfg;return o[a]&&o[a].position?i=o[a].position:"x"===e?i=r?"left":"bottom":"y"===e&&(i=n?"right":"left",r&&(i="bottom")),i},e._getLineCfg=function(t,e,n){var r,i,a=1;return"x"===e?(r={x:0,y:0},i={x:1,y:0}):"right"===n?(r={x:1,y:0},i={x:1,y:1}):(r={x:0,y:0},i={x:0,y:1},a=-1),t.transposed&&(a*=-1),{offsetFactor:a,start:t.convertPoint(r),end:t.convertPoint(i)}},e._getCircleCfg=function(t){return{startAngle:t.startAngle,endAngle:t.endAngle,center:t.center,radius:t.circleRadius}},e._getRadiusCfg=function(t){var e,n;return t.transposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{offsetFactor:-1,start:t.convertPoint(e),end:t.convertPoint(n)}},e._getAxisCfg=function(t,e,n,r,a){var u=this,c=this.axisCfg,l=e.getTicks(),h=i.deepMix({ticks:l,frontContainer:this.frontPlot,backContainer:this.backPlot},a,c[e.field]),f=[],p=h.label,g=l.length,v=0,d=0,y=p;return i.each(l,function(t,e){if(i.isFunction(p)){var n=p(t.text,e,g);y=n?i.mix({},o._defaultAxis.label,n):null}if(y){var r={};y.textAlign&&(r.textAlign=y.textAlign),y.textBaseline&&(r.textBaseline=y.textBaseline);var a=new s.Text({className:"axis-label",attrs:i.mix({x:0,y:0,text:t.text,fontFamily:u.chart.get("canvas").get("fontFamily")},y),value:t.value,textStyle:r,top:y.top,context:u.chart.get("canvas").get("context")});f.push(a);var c=a.getBBox(),l=c.width,h=c.height;v=Math.max(v,l),d=Math.max(d,h)}}),h.labels=f,h.maxWidth=v,h.maxHeight=d,h},e._createAxis=function(t,e,n,r,i){void 0===i&&(i="");var a,s,u,c=this,l=t.type,h=t.transposed;if("cartesian"===l||"rect"===l){var f=c._getLinePosition(e,r,i,h);(u=o.axis[f]).position=f,a="Line",s=f}else"x"===r&&!h||"y"===r&&h?(u=o.axis.circle,a="Circle",s="circle"):(u=o.axis.radius,a="Line",s="radius");var p=c._getAxisCfg(t,e,n,r,u);p.type=a,p.dimType=r,p.verticalScale=n,p.index=i,this.axes[s]=p},e.createAxis=function(t,e,n){var o=this;e&&!o._isHide(e.field)&&o._createAxis(t,e,n[0],"x"),i.each(n,function(n,r){o._isHide(n.field)||o._createAxis(t,n,e,"y",r)});var s=this.axes,u=o.chart;if(u._isAutoPadding()){var c=i.parsePadding(u.get("padding")),l=i.parsePadding(u.get("appendPadding")),h=u.get("legendRange")||{top:0,right:0,bottom:0,left:0},f=["auto"===c[0]?h.top+2*l[0]:c[0],"auto"===c[1]?h.right+l[1]:c[1],"auto"===c[2]?h.bottom+l[2]:c[2],"auto"===c[3]?h.left+l[3]:c[3]];if(t.isPolar){var p=s.circle;if(p){var g=p.maxHeight,v=p.maxWidth,d=p.labelOffset;f[0]+=g+d,f[1]+=v+d,f[2]+=g+d,f[3]+=v+d}}else{if(s.right&&"auto"===c[1]){var y=s.right,x=y.maxWidth,m=y.labelOffset;f[1]+=x+m}if(s.left&&"auto"===c[3]){var _=s.left,S=_.maxWidth,P=_.labelOffset;f[3]+=S+P}if(s.bottom&&"auto"===c[2]){var b=s.bottom,A=b.maxHeight,w=b.labelOffset;f[2]+=A+w}}u.set("_padding",f),u._updateLayout(f)}i.each(s,function(e){var n,s=e.type,u=e.grid,c=e.verticalScale,l=e.ticks,h=e.dimType,f=e.position,p=e.index;if(t.isPolar?"Line"===s?n=o._getRadiusCfg(t):"Circle"===s&&(n=o._getCircleCfg(t)):n=o._getLineCfg(t,h,f),u&&c){var g=[],v=r(c.getTicks());i.each(l,function(e){var n=[];i.each(v,function(r){var i="x"===h?e.value:r.value,a="x"===h?r.value:e.value;if(i>=0&&i<=1&&a>=0&&a<=1){var o=t.convertPoint({x:i,y:a});n.push(o)}}),g.push({points:n,_id:"axis-"+h+p+"-grid-"+e.tickValue})}),e.gridPoints=g,t.isPolar&&(e.center=t.center,e.startAngle=t.startAngle,e.endAngle=t.endAngle)}n._id="axis-"+h,i.isNil(p)||(n._id="axis-"+h+p),new a[s](i.mix(e,n))})},e.clear=function(){this.axes={},this.frontPlot.clear(),this.backPlot.clear()},t}();t.exports=u},function(t,e,n){var r=n(24);n(67),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(24),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},n.getOffsetPoint=function(t){var e=this.start,n=this.end;return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},n.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},n.drawLine=function(t){var e=this.getContainer(t.top),n=this.start,r=this.end;e.addShape("line",{className:"axis-line",attrs:i.mix({x1:n.x,y1:n.y,x2:r.x,y2:r.y},t)})},e}(a);a.Line=o,t.exports=o},function(t,e,n){var r=n(0),i=n(30),a=n(31),o=n(36).requestAnimationFrame,s=function(){function t(t){this._attrs=r.mix({type:"canvas",children:[]},t),this._initPixelRatio(),this._initCanvas()}var e=t.prototype;return e.get=function(t){return this._attrs[t]},e.set=function(t,e){this._attrs[t]=e},e._initPixelRatio=function(){this.get("pixelRatio")||this.set("pixelRatio",r.getPixelRatio())},e.beforeDraw=function(){var t=this._attrs.context,e=this._attrs.el;!r.isWx&&!r.isMy&&t&&t.clearRect(0,0,e.width,e.height)},e._initCanvas=function(){var t,e=this,n=e.get("el"),i=e.get("context");if(!(t=i?i.canvas:r.isString(n)?r.getDomById(n):n))throw new Error("Please specify the id or el of the chart!");i&&t&&!t.getContext&&(t.getContext=function(){return i});var a=e.get("width");a||(a=r.getWidth(t));var o=e.get("height");o||(o=r.getHeight(t)),e.set("canvas",this),e.set("el",t),e.set("context",i||t.getContext("2d")),e.changeSize(a,o)},e.changeSize=function(t,e){var n=this.get("pixelRatio"),i=this.get("el");r.isBrowser&&(i.style.width=t+"px",i.style.height=e+"px"),r.isWx||r.isMy||(i.width=t*n,i.height=e*n,1!==n&&this.get("context").scale(n,n)),this.set("width",t),this.set("height",e)},e.getWidth=function(){var t=this.get("pixelRatio");return this.get("width")*t},e.getHeight=function(){var t=this.get("pixelRatio");return this.get("height")*t},e.getPointByClient=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,a=r.bottom-r.top;return{x:(t-r.left)*(n.width/i),y:(e-r.top)*(n.height/a)}},e._beginDraw=function(){this._attrs.toDraw=!0},e._endDraw=function(){this._attrs.toDraw=!1},e.draw=function(){function t(){e.set("animateHandler",o(function(){e.set("animateHandler",void 0),e.get("toDraw")&&t()})),e.beforeDraw();try{for(var n=e._attrs.context,i=e._attrs.children,a=0,s=i.length;a<s;a++)i[a].draw(n);(r.isWx||r.isMy)&&n.draw()}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e._endDraw()}e._endDraw()}var e=this;e.get("destroyed")||(e.get("animateHandler")?this._beginDraw():t())},e.destroy=function(){this.get("destroyed")||(this.clear(),this._attrs={},this.set("destroyed",!0))},e.isDestroyed=function(){return this.get("destroyed")},t}();r.mix(s.prototype,i,{getGroupClass:function(){return a}}),t.exports=s},function(t,e,n){function r(t,e){return(t%e+e)%e}function i(t,e){s.each(t,function(t){t=t.split(":"),e.addColorStop(Number(t[0]),t[1])})}function a(t,e,n){var a=t.split(" "),o=a[0].slice(2,a[0].length-1);o=r(parseFloat(o)*Math.PI/180,2*Math.PI);var s,u,c=a.slice(1),l=e.getBBox(),h=l.minX,f=l.minY,p=l.maxX,g=l.maxY;o>=0&&o<.5*Math.PI?(s={x:h,y:f},u={x:p,y:g}):.5*Math.PI<=o&&o<Math.PI?(s={x:p,y:f},u={x:h,y:g}):Math.PI<=o&&o<1.5*Math.PI?(s={x:p,y:g},u={x:h,y:f}):(s={x:h,y:g},u={x:p,y:f});var v=Math.tan(o),d=v*v,y=(u.x-s.x+v*(u.y-s.y))/(d+1)+s.x,x=v*(u.x-s.x+v*(u.y-s.y))/(d+1)+s.y,m=n.createLinearGradient(s.x,s.y,y,x);return i(c,m),m}function o(t,e,n){var r=t.split(" "),a=r[0].slice(2,r[0].length-1);a=a.split(",");var o=parseFloat(a[0]),s=parseFloat(a[1]),u=parseFloat(a[2]),c=r.slice(1);if(0===u)return c[c.length-1].split(":")[1];var l=e.getBBox(),h=l.width,f=l.height,p=l.minX,g=l.minY,v=Math.sqrt(h*h+f*f)/2,d=n.createRadialGradient(p+h*o,g+f*s,u*v,p+h/2,g+f/2,v);return i(c,d),d}var s=n(0);t.exports={parseStyle:function(t,e,n){if("("===t[1])try{var r=t[0];if("l"===r)return a(t,e,n);if("r"===r)return o(t,e,n)}catch(t){console.error("error in parsing gradient string, please check if there are any extra whitespaces."),console.error(t)}return t}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(2),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="rect"},n.getDefaultAttrs=function(){return{x:0,y:0,width:0,height:0,radius:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,a=e.width,o=e.height;t.beginPath();var s=e.radius;s&&a*o?(s=i.parsePadding(s),t.moveTo(n+s[0],r),t.lineTo(n+a-s[1],r),t.arc(n+a-s[1],r+s[1],s[1],-Math.PI/2,0,!1),t.lineTo(n+a,r+o-s[2]),t.arc(n+a-s[2],r+o-s[2],s[2],0,Math.PI/2,!1),t.lineTo(n+s[3],r+o),t.arc(n+s[3],r+o-s[3],s[3],Math.PI/2,Math.PI,!1),t.lineTo(n,r+s[0]),t.arc(n+s[0],r+s[0],s[0],Math.PI,3*Math.PI/2,!1),t.closePath()):t.rect(n,r,a,o)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},e}(a);a.Rect=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="circle"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.r;return{minX:e-r,maxX:e+r,minY:n-r,maxY:n+r}},e}(i);i.Circle=a,t.exports=a},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.type="line"},n.getDefaultAttrs=function(){return{x1:0,y1:0,x2:0,y2:0,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x1,r=e.y1,i=e.x2,a=e.y2;t.beginPath(),t.moveTo(n,r),t.lineTo(i,a)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.lineWidth;return a.getBBoxFromLine(e,n,r,i,o)},e}(i);i.Line=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polygon"},n.getDefaultAttrs=function(){return{points:null,lineWidth:0}},n.createPath=function(t){var e=this.get("attrs").points;t.beginPath();for(var n=0,r=e.length;n<r;n++){var i=e[n];0===n?t.moveTo(i.x,i.y):t.lineTo(i.x,i.y)}t.closePath()},n.calculateBox=function(){var t=this.get("attrs").points;return a.getBBoxFromPoints(t)},e}(i);i.Polygon=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(37),o=n(11),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polyline"},n.getDefaultAttrs=function(){return{points:null,lineWidth:1,smooth:!1}},n.createPath=function(t){for(var e=this.get("attrs"),n=e.points,r=e.smooth,i=[],o=0,s=n.length;o<s;o++){var u=n[o];isNaN(u.x)||isNaN(u.y)||i.push(u)}if(t.beginPath(),i.length)if(t.moveTo(i[0].x,i[0].y),r)for(var c=[[0,0],[1,1]],l=a.smooth(i,!1,c),h=0,f=l.length;h<f;h++){var p=l[h];t.bezierCurveTo(p[1],p[2],p[3],p[4],p[5],p[6])}else{var g,v;for(g=1,v=i.length-1;g<v;g++)t.lineTo(i[g].x,i[g].y);t.lineTo(i[v].x,i[v].y)}},n.calculateBox=function(){var t=this.get("attrs"),e=t.points,n=t.smooth,r=t.lineWidth;if(n){for(var i=[],s=[[0,0],[1,1]],u=a.smooth(e,!1,s),c=0,l=u.length;c<l;c++){var h=u[c];if(0===c)i.push([e[0].x,e[0].y,h[1],h[2],h[3],h[4],h[5],h[6]]);else{var f=u[c-1];i.push([f[5],f[6],h[1],h[2],h[3],h[4],h[5],h[6]])}}return o.getBBoxFromBezierGroup(i,r)}return o.getBBoxFromPoints(e,r)},e}(i);i.Polyline=s,t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},n.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!1,lineWidth:1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t.beginPath(),t.arc(n,r,i,a,o,s)},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,s=t.clockwise;return a.getBBoxFromArc(e,n,r,i,o,s)},e}(i);i.Arc=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="sector"},n.getDefaultAttrs=function(){return{x:0,y:0,lineWidth:0,r:0,r0:0,startAngle:0,endAngle:2*Math.PI,clockwise:!1}},n.createPath=function(t){var e=this.get("attrs"),n=e.x,r=e.y,i=e.startAngle,a=e.endAngle,o=e.r,s=e.r0,u=e.clockwise;t.beginPath();var c=Math.cos(i),l=Math.sin(i);t.moveTo(c*s+n,l*s+r),t.lineTo(c*o+n,l*o+r),t.arc(n,r,o,i,a,u),t.lineTo(Math.cos(a)*s+n,Math.sin(a)*s+r),0!==s&&t.arc(n,r,s,a,i,!u),t.closePath()},n.calculateBox=function(){var t=this.get("attrs"),e=t.x,n=t.y,r=t.r,i=t.r0,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=a.getBBoxFromArc(e,n,r,o,s,u),l=a.getBBoxFromArc(e,n,i,o,s,u);return{minX:Math.min(c.minX,l.minX),minY:Math.min(c.minY,l.minY),maxX:Math.max(c.maxX,l.maxX),maxY:Math.max(c.maxY,l.maxY)}},e}(i);i.Sector=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(0),a=n(2),o=0,s={},u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="text"},n.getDefaultAttrs=function(){return{lineWidth:0,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null}},n._getFontStyle=function(){var t=this._attrs.attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return t.fontStyle+" "+t.fontVariant+" "+r+" "+e+"px "+n},n._afterAttrsSet=function(){var t=this._attrs.attrs;if(t.font=this._getFontStyle(),t.text){var e=t.text,n=null,r=1;i.isString(e)&&-1!==e.indexOf("\n")&&(r=(n=e.split("\n")).length),t.lineCount=r,t.textArr=n}this.set("attrs",t)},n._getTextHeight=function(){var t=this._attrs.attrs;if(t.height)return t.height;var e=t.lineCount,n=1*t.fontSize;return e>1?n*e+this._getSpaceingY()*(e-1):n},n._getSpaceingY=function(){var t=this._attrs.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},n.drawInner=function(t){var e=this,n=e._attrs.attrs,r=n.text,a=n.x,o=n.y;if(!(i.isNil(r)||isNaN(a)||isNaN(o))){var s=n.textArr,u=1*n.fontSize,c=e._getSpaceingY();n.rotate&&(t.translate(a,o),t.rotate(n.rotate),a=0,o=0);var l,h=n.textBaseline;s&&(l=e._getTextHeight());var f;if(e.hasFill()){var p=n.fillOpacity;if(i.isNil(p)||1===p||(t.globalAlpha=p),s)for(var g=0,v=s.length;g<v;g++){var d=s[g];f=o+g*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.fillText(d,a,f)}else t.fillText(r,a,o)}if(e.hasStroke())if(s)for(var y=0,x=s.length;y<x;y++){var m=s[y];f=o+y*(c+u)-l+u,"middle"===h&&(f+=l-u-(l-u)/2),"top"===h&&(f+=l-u),t.strokeText(m,a,f)}else t.strokeText(r,a,o)}},n.calculateBox=function(){var t=this,e=t._attrs.attrs,n=e.x,r=e.y,i=e.textAlign,a=e.textBaseline,o=t._getTextWidth();if(!o)return{minX:n,minY:r,maxX:n,maxY:r};var s=t._getTextHeight(),u={x:n,y:r-s};return i&&("end"===i||"right"===i?u.x-=o:"center"===i&&(u.x-=o/2)),a&&("top"===a?u.y+=s:"middle"===a&&(u.y+=s/2)),{minX:u.x,minY:u.y,maxX:u.x+o,maxY:u.y+s}},n._getTextWidth=function(){var t=this._attrs.attrs;if(t.width)return t.width;var e=t.text,n=this.get("context");if(!i.isNil(e)){var r=t.font,a=t.textArr,u=e+""+r;if(s[u])return s[u];var c=0;if(a)for(var l=0,h=a.length;l<h;l++){var f=a[l];c=Math.max(c,i.measureText(f,r,n).width)}else c=i.measureText(e,r,n).width;return o>5e3&&(o=0,s={}),o++,s[u]=c,c}},e}(a);a.Text=u,t.exports=u},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.createPath=null,this._attrs.type="custom"},n.createPath=function(t){var e=this.get("createPath");e&&e.call(this,t)},n.calculateBox=function(){var t=this.get("calculateBox");return t&&t.call(this)},e}(i);i.Custom=a,t.exports=a},function(t,e,n){var r=n(1),i=n(0);setTimeout(function(){if(r.trackable&&i.isBrowser){var t=new Image,e={pg:document.URL,r:(new Date).getTime(),f2:!0,version:r.version,page_type:"syslog"},n=encodeURIComponent(JSON.stringify([e]));t.src="https://kcart.alipay.com/web/bi.do?BIProfile=merge&d="+n}},3e3)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(38),a=n(6);n(32);var o=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(i);a.Line=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var a=n(6),o=n(0),s=n(39);n(82);var u=function(t){function e(e){var n;return n=t.call(this,e)||this,o.mix(i(i(n)),s),n}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(a);a.Interval=u,t.exports=u},function(t,e,n){function r(t){var e=t.x,n=t.y,r=t.y0,i=t.size,o=r,s=n;a.isArray(n)&&(s=n[1],o=n[0]);var u,c;return a.isArray(e)?(u=e[0],c=e[1]):(u=e-i/2,c=e+i/2),[{x:u,y:o},{x:u,y:s},{x:c,y:s},{x:c,y:o}]}function i(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var a=t[r];e.push(a.x),n.push(a.y)}var o=Math.min.apply(null,e),s=Math.min.apply(null,n);return{x:o,y:s,width:Math.max.apply(null,e)-o,height:Math.max.apply(null,n)-s}}var a=n(0),o=n(9),s=n(4),u=n(1),c=o.registerFactory("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return r(t)}});o.registerShape("interval","rect",{draw:function(t,e){var n=this.parsePoints(t.points),r=a.mix({fill:t.color},u.shape.interval,t.style);if(t.isInCircle){var o=n.slice(0);this._coord.transposed&&(o=[n[0],n[3],n[2],n[1]]);var c=t.center,l=c.x,h=c.y,f=[1,0],p=[o[0].x-l,o[0].y-h],g=[o[1].x-l,o[1].y-h],v=[o[2].x-l,o[2].y-h],d=s.angleTo(f,g),y=s.angleTo(f,v),x=s.length(p),m=s.length(g);return d>=1.5*Math.PI&&(d-=2*Math.PI),y>=1.5*Math.PI&&(y-=2*Math.PI),e.addShape("Sector",{className:"interval",attrs:a.mix({x:l,y:h,r:m,r0:x,startAngle:d,endAngle:y},r)})}var _=i(n);return e.addShape("rect",{className:"interval",attrs:a.mix(_,r)})}}),t.exports=c},function(t,e,n){t.exports={Stack:n(84),Dodge:n(86)}},function(t,e,n){var r=n(85);t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(10),a=n(7),o=n(22),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null},n.processAdjust=function(t){this.processStack(t)},n.processStack=function(t){var e=this,n=e.xField,r=e.yField,o=t.length,s={positive:{},negative:{}};e.reverseOrder&&(t=t.slice(0).reverse());for(var u=0;u<o;u++)for(var c=t[u],l=0,h=c.length;l<h;l++){var f=c[l],p=f[n]||0,g=f[r],v=p.toString();if(g=i(g)?g[1]:g,!a(g)){var d=g>=0?"positive":"negative";s[d][v]||(s[d][v]=0),f[r]=[s[d][v],g+s[d][v]],s[d][v]+=g}}},e}(o);o.Stack=s,t.exports=s},function(t,e,n){var r=n(87);t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(22),a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var r=this,i=t.pre,a=t.next,o=a-i,s=o*r.dodgeRatio/n,u=r.marginRatio*s;return(i+a)/2+(.5*(o-n*s-(n-1)*u)+((e+1)*s+e*u)-.5*s-.5*o)},n.processAdjust=function(t){var e=this,n=t.length,r=e.xField;a(t,function(t,i){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[r],c={pre:u-.5,next:u+.5},l=e.getDodgeOffset(c,i,n);s[r]=l}})},e}(i);i.Dodge=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(21),a=n(4),o=n(23),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.type="polar",this.startAngle=-Math.PI/2,this.endAngle=3*Math.PI/2,this.inner=0,this.innerRadius=0,this.isPolar=!0,this.transposed=!1,this.center=null,this.radius=null},n.init=function(t,e){var n,r,i=this,a=i.inner||i.innerRadius,o=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);i.startAngle===-Math.PI&&0===i.endAngle?(n=Math.min(o/2,s),r={x:(t.x+e.x)/2,y:t.y}):(n=Math.min(o,s)/2,r={x:(t.x+e.x)/2,y:(t.y+e.y)/2});var u=i.radius;u>0&&u<=1&&(n*=u),this.x={start:i.startAngle,end:i.endAngle},this.y={start:n*a,end:n},this.center=r,this.circleRadius=n},n.convertPoint=function(t){var e=this,n=e.center,r=e.transposed,i=r?"y":"x",a=r?"x":"y",o=e.x,s=e.y,u=o.start+(o.end-o.start)*t[i],c=s.start+(s.end-s.start)*t[a];return{x:n.x+Math.cos(u)*c,y:n.y+Math.sin(u)*c}},n.invertPoint=function(t){var e=this,n=e.center,r=e.transposed,i=e.x,s=e.y,u=r?"y":"x",c=r?"x":"y",l=[1,0,0,1,0,0];o.rotate(l,l,i.start);var h=[1,0];a.transformMat2d(h,h,l),h=[h[0],h[1]];var f=[t.x-n.x,t.y-n.y];if(a.zero(f))return{x:0,y:0};var p=a.angleTo(h,f,i.end<i.start);Math.abs(p-2*Math.PI)<.001&&(p=0);var g=a.length(f),v=p/(i.end-i.start);v=i.end-i.start>0?v:-v;var d=(g-s.start)/(s.end-s.start),y={};return y[u]=v,y[c]=d,y},e}(i);i.Polar=s,t.exports=s},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r=n(41);n(80),n(81),n(83),n(88),t.exports=r}])});
|