@antv/g2 3.5.14 → 3.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/g2-core.js +2 -70
- package/build/g2-core.js.map +1 -1
- package/build/g2-simple.js +2 -126
- package/build/g2-simple.js.map +1 -1
- package/build/g2.js +2 -346
- package/build/g2.js.map +1 -1
- package/dist/g2-core.min.js +1 -1
- package/dist/g2-simple.min.js +1 -1
- package/dist/g2.min.js +1 -1
- package/lib/base.js +0 -12
- package/lib/chart/chart.js +0 -12
- package/lib/chart/controller/tooltip.js +1 -1
- package/lib/chart/view.js +0 -10
- package/lib/component/guide/region-filter.js +0 -12
- package/lib/component/legend/tail.js +0 -12
- package/lib/component/tooltip/index.js +0 -12
- package/lib/facet/circle.js +0 -12
- package/lib/facet/list.js +0 -12
- package/lib/facet/matrix.js +0 -12
- package/lib/facet/mirror.js +0 -12
- package/lib/facet/rect.js +0 -12
- package/lib/facet/tree.js +0 -12
- package/lib/geom/area.js +0 -12
- package/lib/geom/base.js +0 -10
- package/lib/geom/edge.js +0 -12
- package/lib/geom/heatmap.js +0 -12
- package/lib/geom/interval.js +0 -16
- package/lib/geom/line.js +0 -14
- package/lib/geom/path.js +0 -10
- package/lib/geom/point.js +0 -16
- package/lib/geom/polygon.js +0 -12
- package/lib/geom/schema.js +0 -12
- package/lib/geom/venn.js +0 -12
- package/lib/geom/violin.js +0 -12
- package/lib/global.js +1 -1
- package/lib/interaction/brush.js +0 -10
- package/lib/interaction/drag.js +0 -10
- package/lib/interaction/scroll-bar.js +0 -12
- package/lib/interaction/shape-select.js +0 -12
- package/lib/interaction/slider.js +0 -10
- package/lib/interaction/zoom.js +0 -10
- package/package.json +1 -1
- package/src/chart/controller/tooltip.js +1 -1
- package/src/global.js +1 -1
package/dist/g2-simple.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2_3=e():t.G2_3=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=506)}([function(t,e,n){var i=n(126),r=n(16),a=i.mix({},i,{assign:i.mix,merge:i.deepMix,cloneDeep:i.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:i.isNumberEqual,remove:i.pull,inArray:i.contains,toAllPadding:function(t){var e=0,n=0,i=0,r=0;return a.isNumber(t)||a.isString(t)?e=n=i=r=t:a.isArray(t)?(e=t[0],i=a.isNil(t[1])?t[0]:t[1],r=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?i:t[3]):a.isObject(t)&&(e=t.top||0,i=t.right||0,r=t.bottom||0,n=t.left||0),[e,i,r,n]},getClipByRange:function(t){var e=t.tl,n=t.br;return new r.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}})}});a.Array={groupToMap:i.groupToMap,group:i.group,merge:i.merge,values:i.valuesOfKey,getRange:i.getRange,firstValue:i.firstValue,remove:i.pull},t.exports=a},function(t,e,n){var i=n(81),r={};i.merge(r,i,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var i={};r.each(e,function(e){r.augment(t,e);var a=e[n];a&&r.merge(i,a)}),t[n]=r.merge(i,t[n])}}}),t.exports=r},function(t,e,n){var i=n(25),r=n(4);t.exports=function(t,e){if(t)if(r(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(i(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var i=n(20),r=n(126),a=r.mix({assign:r.mix,isFinite:isFinite,isNaN:isNaN,Group:i.Group,Event:i.Event},r);t.exports=a},function(t,e,n){var i=n(12),r=Array.isArray?Array.isArray:function(t){return i(t,"Array")};t.exports=r},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){var i=n(1),r=n(190),a=n(102),o=n(55),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},i.extend(s,a);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};i.augment(s,r,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var r=e.fillOpacity;i.isNil(r)||1===r?t.fill():(t.globalAlpha=r,t.fill(),t.globalAlpha=n)}if(this.hasStroke()){if(this._attrs.lineWidth>0){var a=e.strokeOpacity;i.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var i=this.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,n[0],n[1]))return!1}var r=this._attrs.clip;return r?(r.invert(n,this.get("canvas")),!!r.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;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._cfg.box=t),t},clone:function(){var t=null,e=this._attrs,n={};return i.each(e,function(t,r){u[r]&&i.isArray(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)i.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}),t=new this.constructor({attrs:n}),t._cfg.zIndex=this._cfg.zIndex,t}}),t.exports=s},function(t,e,n){var i=n(0),r=n(150),a={version:"3.5.14",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){r[t]=e},setTheme:function(t){var e={};e=i.isObject(t)?t:-1!==i.indexOf(Object.keys(r),t)?r[t]:r.default,i.deepMix(a,e)}};a.setTheme("default"),t.exports=a},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,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Number")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"String")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Function")}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){t.exports={FONT_FAMILY:'"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(155),s=["min","max","median","start","end"],u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{xScales:null,yScales:null,el:null})},n.render=function(){},n.clear=function(){var t=this.get("el");t&&t.remove(),this.set("el",null)},n.destroy=function(){this.clear(),t.prototype.destroy.call(this)},n.changeVisible=function(t){this.set("visible",t);var e=this.get("el");e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},n.parsePoint=function(t,e){var n=this.get("xScales"),i=this.get("yScales");a.isFunction(e)&&(e=e(n,i));var r,s;if(a.isArray(e)&&a.isString(e[0])&&-1!==e[0].indexOf("%"))return this._parsePercentPoint(t,e);if(a.isArray(e))r=this._getNormalizedValue(e[0],o.getFirstScale(n)),s=this._getNormalizedValue(e[1],o.getFirstScale(i));else for(var u in e){var c=e[u];n[u]&&(r=this._getNormalizedValue(c,n[u])),i[u]&&(s=this._getNormalizedValue(c,i[u],"y"))}return a.isNil(r)||a.isNil(s)||isNaN(r)||isNaN(s)?null:t.convert({x:r,y:s})},n._getNormalizedValue=function(t,e){var n;if(-1!==a.indexOf(s,t)){var i;"start"===t?n=0:"end"===t?n=1:"median"===t?(i=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(i)):(i=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(i))}else n=e.scale(t);return n},n._parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,i=parseFloat(e[1])/100,r=t.start,a=t.end,o={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)};return{x:t.width*n+o.x,y:t.height*i+o.y}},e}(n(32));t.exports=u},function(t,e,n){var i=n(20);t.exports=i},function(t,e,n){"use strict";var i=n(61);n.d(e,"a",function(){return i.e}),n.d(e,"f",function(){return i.g}),n.d(e,"d",function(){return i.f});var r=n(205);n.d(e,"e",function(){return r.a}),n.d(e,"c",function(){return r.b});var a=n(206);n.d(e,"b",function(){return a.a})},function(t,e,n){var i=n(8),r=n(2),a=n(25),o=n(5),s=function(){function t(t){this._initDefaultCfg(),i(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 r(e,function(e){var i;i=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(i)}),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 r(t,function(e,i){n[i]=t[i]}),new e(n)},e.change=function(t){return this.ticks=null,i(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(23),a=i.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),t=n.isPolar&&!1!==e?r.convertPolarPath(n,t):r.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return i.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){i.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var i=this.defaultShapeType;n=this.getShape(i)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var i=this.getShape(t).draw(e,n);return i&&(i.setSilent("origin",e.origin),i._id=e.yIndex?e._id+e.yIndex:e._id,i.name=this.name),i}};o.registerFactory=function(t,e){var n=i.upperFirst(t),r=i.assign({},u,e);return o[n]=r,r.name=t,r},o.registerShape=function(t,e,n){var r=i.upperFirst(t),a=o[r],u=i.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){t=t||"point";return this[i.upperFirst(t)]},t.exports=o},function(t,e,n){t.exports={Canvas:n(182),Group:n(101),Shape:n(6),Arc:n(105),Circle:n(106),Dom:n(107),Ellipse:n(108),Fan:n(109),Image:n(110),Line:n(111),Marker:n(57),Path:n(112),Polygon:n(113),Polyline:n(114),Rect:n(115),Text:n(116),PathSegment:n(39),PathUtil:n(58),Event:n(100),version:"3.3.6"}},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t){return(l.isString(t)||l.isPlainObject(t))&&(t=[t]),l.each(t,function(e,n){l.isObject(e)||(t[n]={type:e})}),t}var s=n(73),u=n(299),c=n(147),l=n(0),h=n(7),f=n(307),p=n(19),g=n(339),d=n(340),v=n(341),y=n(342),m=["color","shape","size"],x=function(t){function e(e){var n;return n=t.call(this,e)||this,n.viewTheme=n.get("viewTheme"),l.assign(r(n),g,d,v),n.get("container")&&n._initContainer(),n._initOptions(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},n._initOptions=function(){var t=this.get("adjusts");t&&(t=o(t),this.set("adjusts",t))},n._createScale=function(t,e){var n=this.get("scales"),i=n[t];return i||(i=this.get("view").createScale(t,e),n[t]=i),i},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,i){var r={};r.field=e,n?l.isFunction(n)?r.callback=n:r.values=n:"color"!==t&&(r.values=i),this._setAttrOptions(t,r)},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){var n=this.viewTheme||h;return this._createAttrOption("color",t,e,n.colors),this},n.size=function(t,e){var n=this.viewTheme||h;return this._createAttrOption("size",t,e,n.sizes),this},n.shape=function(t,e){var n=this.viewTheme||h,i=this.get("type"),r=n.shapes[i]||[];return this._createAttrOption("shape",t,e,r),this},n.opacity=function(t,e){var n=this.viewTheme||h;return this._createAttrOption("opacity",t,e,n.opacities),this},n.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),l.isObject(t)&&(e=t,t=null);var i;return t&&(i=y(t)),n.fields=i,n.style=e,this},n.label=function(t,e,n){var i=this.get("labelCfg");i||(i={},this.set("labelCfg",i));var r;return t&&(r=y(t)),i.fields=r,l.isFunction(e)?(n||(n={}),i.callback=e):l.isObject(e)&&(n=e),i.globalCfg=n,this},n.tooltip=function(t,e){var n=this.get("tooltipCfg");if(n||(n={}),!1===t)this.set("tooltipCfg",!1);else{var i;t&&(i=y(t)),n.fields=i,n.cfg=e}return this.set("tooltipCfg",n),this},n.animate=function(t){return this.set("animateCfg",t),this},n.active=function(t,e){return!1===t?this.set("allowActive",!1):l.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},n.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=o(t)),this.set("adjusts",t)),this},n.select=function(t,e){return!1===t?this.set("allowSelect",!1):l.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},n.hasAdjust=function(t){var e=this.get("adjusts");if(!t)return!1;var n=!1;return l.each(e,function(e){if(e.type===t)return n=!0,!1}),n},n.hasStack=function(){var t=this.get("isStacked");return l.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},n.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},n._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),i=n&&n.get("_id");t=e.addGroup({viewId:i,visible:this.get("visible")}),this.set("shapeContainer",t)}},n.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;l.each(e,function(e){t._createScale(e)})}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},n._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),i=this.viewTheme||h,r=!1;for(var a in e)if(e.hasOwnProperty(a)){var o=e[a],u=l.upperFirst(a),c=y(o.field);"position"===a&&(o.coord=n,1===c.length&&"theta"===n.type&&(c.unshift("1"),r=!0));for(var f=[],p=0;p<c.length;p++){var g=c[p],d=this._createScale(g);"color"===a&&l.isNil(o.values)&&(d.values.length<=8?o.values=r?i.colors_pie:i.colors:d.values.length<=16?o.values=r?i.colors_pie_16:i.colors_16:o.values=i.colors_24,l.isNil(o.values)&&(o.values=i.colors)),f.push(d)}if("theta"===n.type&&"position"===a&&f.length>1){var v=f[1],m=Math.max.apply(null,v.values);isFinite(m)||(m=1),v.change({nice:!1,min:0,max:m})}o.scales=f;var x=new s[u](o);t[a]=x}},n._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),i=0;i<n.length;i++){var r=n[i],a=this._saveOrigin(r);e.push(this._numberic(a))}return e},n._groupData=function(t){var e=this._getGroupScales().map(function(t){return t.field});return l.Array.group(t,e)},n._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r={};for(var a in i)r[a]=i[a];r._origin=i,e.push(r)}return e},n._numberic=function(t){for(var e=this.getAttr("position").scales,n=[],i=0;i<t.length;i++){for(var r=t[i],a=!0,o=0;o<Math.min(2,e.length);o++){var s=e[o];if(s.isCategory){var u=s.field;r[u]=s.translate(r[u]),Number.isNaN(r[u])&&(a=!1)}}a&&n.push(r)}return n},n._getGroupScales=function(){var t=this.get("groupScales");if(!t){t=[];var e=this.get("attrs");l.each(e,function(e){if(m.includes(e.type)){var n=e.scales;l.each(n,function(e){e.isCategory&&-1===l.indexOf(t,e)&&t.push(e)})}}),this.set("groupScales",t)}return t},n._updateStackRange=function(t,e,n){for(var i=l.Array.merge(n),r=e.min,a=e.max,o=0;o<i.length;o++){var s=i[o];if(l.isArray(s[t])){var u=Math.min.apply(null,s[t]),c=Math.max.apply(null,s[t]);u<r&&(r=u),c>a&&(a=c)}}(r<e.min||a>e.max)&&e.change({min:r,max:a})},n._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),i=this.viewTheme||h,r=e.getYScale(),a=e.getXScale(),o=a.field,s=r?r.field:null;l.each(n,function(n){var c=l.mix({xField:o,yField:s},n),h=l.upperFirst(n.type);if("Dodge"===h){var f=[];if(a.isCategory||a.isIdentity)f.push("x");else{if(r)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}c.adjustNames=f,c.dodgeRatio=c.dodgeRatio||i.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!r){c.height=p.getHeight();var g=e.getDefaultValue("size")||3;c.size=g}!p.isTransposed&&l.isNil(c.reverseOrder)&&(c.reverseOrder=!0)}new u[h](c).processAdjust(t),"Stack"===h&&r&&e._updateStackRange(s,r,t)})}},n.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},n.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this.set("shapeFactory",n);var i=this.get("shapeContainer");this._beforeMapping(t);for(var r=0;r<t.length;r++){var a=t[r],o=r;a=this._mapping(a),e.push(a),this.draw(a,i,n,o)}this.get("labelCfg")&&this._addLabels(l.union.apply(null,e),i.get("children")),this.get("sortable")?this.set("dataArray",e):this._sort(e)},n._sort=function(t){var e=this.getXScale(),n=e.field;l.each(t,function(t){t.sort(function(t,i){return e.translate(t._origin[n])-e.translate(i._origin[n])})}),this.set("dataArray",t)},n._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),i=n.field;l.each(t,function(t){t.sort(function(t,e){return n.translate(t[i])-n.translate(e[i])})})}e.get("generatePoints")&&(l.each(t,function(t){e._generatePoints(t)}),l.each(t,function(e,n){var i=t[n+1];i&&(e[0].nextPoints=i[0].points)}))},n._addLabels=function(t,e){var n=this,i=n.get("type"),r=n.get("viewTheme")||h,a=n.get("coord"),o=f.getLabelsClass(a.type,i),s=n.get("container"),u=l.map(n.get("labelCfg").fields,function(t){return n._createScale(t)}),c=s.addGroup(o,{_id:this.get("_id"),labelCfg:l.mix({scales:u},n.get("labelCfg")),coord:a,geom:n,geomType:i,yScale:n.getYScale(),viewTheme:r,visible:n.get("visible")});c.showLabels(t,e),n.set("labelContainer",c)},n.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=p.getShapeFactory(e),this.set("shapeFactory",t)}return t},n._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),i=0;i<t.length;i++){var r=t[i],a=this.createShapePointsCfg(r),o=n?this._getAttrValues(n,r):null,s=e.getShapePoints(o,a);r.points=s}},n.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this._normalizeValues(t[n.field],n);return e=i?this._normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},n._normalizeValues=function(t,e){var n=[];if(l.isArray(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},n._mapping=function(t){for(var e=this.get("attrs"),n=[],i=0;i<t.length;i++){var r=t[i],a={};a._origin=r._origin,a.points=r.points,a.nextPoints=r.nextPoints;for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],u=s.names,c=this._getAttrValues(s,r);if(u.length>1)for(var h=0;h<c.length;h++){var f=c[h];a[u[h]]=l.isArray(f)&&1===f.length?f[0]:f}else a[u[0]]=1===c.length?c[0]:c}n.push(a)}return n},n._getAttrValues=function(t,e){for(var n=t.scales,i=[],r=0;r<n.length;r++){var a=n[r],o=a.field;"identity"===a.type?i.push(a.value):i.push(e[o])}return t.mapping.apply(t,i)},n.getAttrValue=function(t,e){var n=this.getAttr(t),i=null;if(n){i=this._getAttrValues(n,e)[0]}return i},n.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var i=n.getScale(t);"identity"===i.type&&(e=i.value)}return e},n.draw=function(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];this.drawPoint(a,e,n,i+r)}},n.getCallbackCfg=function(t,e,n){if(!t)return e;var i={},r=t.map(function(t){return n[t]});return l.each(e,function(t,e){l.isFunction(t)?i[e]=t.apply(null,r):i[e]=t}),i},n._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)l.each(n,function(n){e+="-"+t[n]});else{var i,r=this.get("type"),a=this.getXScale(),o=this.getYScale(),s=a.field||"x",u=o.field||"y",c=t[u];i=a.isIdentity?a.value:t[s],e+="interval"===r||"schema"===r?"-"+i:"line"===r||"area"===r||"path"===r?"-"+r:"-"+i+"-"+c;var h=this._getGroupScales();l.isEmpty(h)||l.each(h,function(n){var i=n.field;"identity"!==n.type&&(e+="-"+t[i])})}return e},n.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},n.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},n._applyViewThemeShapeStyle=function(t,e,n){var i=this.viewTheme||h,r=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(r="hollow"+l.upperFirst(r)):n.defaultShapeType.indexOf("hollow")>-1&&(r="hollow"+l.upperFirst(r));var a=i.shape[r]||{};t.style=l.mix({},a,t.style)},n.drawPoint=function(t,e,n,i){var r=t.shape,a=this.getDrawCfg(t);this._applyViewThemeShapeStyle(a,r,n);var o=n.drawShape(r,a,e);this.appendShapeInfo(o,i)},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.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return l.each(e,function(e){e.get("origin")&&t.push(e)}),t},n.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return l.each(t,function(t){m.includes(t.type)&&e.push(t)}),e},n.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return l.each(m,function(n){var i=e[n];i&&i.field&&l.isString(i.field)&&(t=t.concat(i.field.split("*")))}),l.uniq(t)},n.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var i=this.get("labelContainer");if(i&&i.set("visible",t),!e&&n){n.get("canvas").draw()}},n.reset=function(){this.set("attrOptions",{}),this.clearInner()},n.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},n.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},n.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(c);t.exports=x},function(t,e,n){t.exports={Axis:n(308),Component:n(67),Guide:n(316),Label:n(325),Legend:n(326),Tooltip:n(332)}},function(t,e,n){function i(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function r(t,e){for(var n=t.length,i=[t[0]],r=1;r<n;r+=2){var a=e.convertPoint({x:t[r],y:t[r+1]});i.push(a.x,a.y)}return i}var a=n(0),o=n(336),s={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],i=0,r=t.length;i<r;i++){var a=t[i];0===i?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var i=[],r=t[0],u=null;if(t.length<=2)return s.getLinePath(t,e);a.each(t,function(t){u&&u.x===t.x&&u.y===t.y||(i.push(t.x),i.push(t.y),u=t)}),n=n||[[0,0],[1,1]];var c=o.catmullRom2bezier(i,e,n);return c.unshift(["M",r.x,r.y]),c},getPointRadius:function(t,e){return i(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return a.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(r(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n,o,s,u,c=[];return a.each(e,function(a,l){switch(a[0].toLowerCase()){case"m":case"c":case"q":c.push(r(a,t));break;case"l":n=e[l-1],o=a,s=t.isTransposed,(u=s?n[n.length-2]===o[1]:n[n.length-1]===o[2])?c=c.concat(function(t,e,n){var r=n.isTransposed,a=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},c=[],l=r?"y":"x",h=Math.abs(u[l]-s[l])*(o-a),f=u[l]>=s[l]?1:0,p=h>Math.PI?1:0,g=n.convertPoint(u),d=i(n,g);if(d>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},y=n.convertPoint(v);c.push(["A",d,d,0,p,f,y.x,y.y]),c.push(["A",d,d,0,p,f,g.x,g.y])}else c.push(["A",d,d,0,p,f,g.x,g.y]);return c}(n,o,t)):c.push(r(a,t));break;case"z":default:c.push(a)}}),function(t){a.each(t,function(e,n){if("a"===e[0].toLowerCase()){var i=t[n-1],r=t[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}})}(c),c}};t.exports=s},function(t,e,n){var i=n(5);t.exports=function(t){return i(t)?"":t.toString()}},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){var i=n(49),r=n(12);t.exports=function(t){if(!i(t)||!r(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 i=n(1),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,r=0,a=0;return i.isArray(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}},parsePath:function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(r),i.each(t,function(e,n){if((e=e.match(a))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){"use strict";function i(t,e){return function(n){return t+n*e}}function r(t,e){var n=e-t;return n?i(t,n):Object(a.a)(isNaN(t)?e:t)}e.c=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?r:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Object(a.a)(isNaN(e)?n:e)}},e.a=r;var a=n(120)},function(t,e,n){function i(t,e){return r(e)?e:t.invert(t.scale(e))}var r=n(10),a=n(4),o=n(5),s=n(8),u=n(2),c=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,i=this.callback;if(t.callback){var r=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=r.apply(void 0,n);return o(s)&&(s=i.apply(e,n)),s}}s(this,t),n&&s(this,{callback:n})}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 i=t.scale(e);return this.getLinearValue(i)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,i=Math.floor(n*t),r=n*t-i,a=e[i];return a+((i===n?a:e[i+1])-a)*r},e.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r++)i.push(e[r]);return i},e.getFields=function(){var t=this.scales,e=[];return u(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,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=i;if(e){for(var o=0,s=i.length;o<s;o++)i[o]=this._toOriginParam(i[o],t[o]);a=e.apply(this,i)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var r=0,o=t.length;r<o;r++)n.push(i(e,t[r]))}else n=i(e,t);return n},t}();t.exports=c},function(t,e,n){var i=n(8),r=function(){function t(t){this._initDefaultCfg(),i(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=r},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(32),o=n(3),s=n(152),u=n(153),c=n(14).FONT_FAMILY,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{offset:0,offsetX:0,offsetY:0,textStyle:{},autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],title:{autoRotate:!0,textStyle:{}},autoPaint:!0})},n.beforeRender=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.set("title",o.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c,textAlign:"center"},offset:48},t)),e&&this.set("label",o.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c},offset:10},e)),n&&this.set("grid",o.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},n.render=function(){this.beforeRender();this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),o.isNil(this.get("title"))||this.renderTitle(),this.get("group").sort()},n.renderLabels=function(){var t=this.get("group"),e=this.get("label"),n=new u({name:"axis-label"});this.set("labelRenderer",n),n.set("labelCfg",e);o.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],function(t){e[t]&&n.set(t,e[t])}),n.set("coord",this.get("coord")),n.set("group",t.addGroup()),n.set("canvas",this.get("canvas"))},n._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var i=t[n];o.isObject(i)||(t[n]=this.parseTick(i,n,e))}return this.set("ticks",t),t},n._addTickItem=function(t,e,n,i){void 0===i&&(i="");var r=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:o.x,y2:o.y};r||(r=[]),a||(a=[]),"sub"===i?a.push(s):r.push(s),this.set("tickItems",r),this.set("subTickItems",a)},n._renderLine=function(){var t,e=this.get("line");if(e){t=this.getLinePath(),e=o.mix({path:t},e);var n=this.get("group").addShape("path",{attrs:e});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},n._processCatTicks=function(){var t=this.get("label"),e=this.get("tickLine"),n=this.get("ticks");n=this._parseTicks(n);for(var i=this._getNormalizedTicks(n),r=0;r<i.length;r+=3){var a=this.getTickPoint(i[r]),o=this.getTickPoint(i[r+1]),s=this.getTickPoint(i[r+2]),u=Math.floor(r/3),c=n[u];e&&(0===u&&this._addTickItem(u,o,e.length),this._addTickItem(u,s,e.length)),t&&this.addLabel(c,a,u)}},n._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],i=0;i<t.length;i++){var r=t[i],a=r.value,s=r.value-e,u=r.value+e;n.push(a,s,u)}var c=o.arrayUtil.getRange(n);return n.map(function(t){return(t-c.min)/(c.max-c.min)})},n.addLabel=function(t,e,n){var i=this.get("labelItems"),r=this.get("labelRenderer"),a=o.deepMix({},this.get("label"));if(r){var s=this.get("_labelOffset");o.isNil(this.get("label").offset)||(s=this.get("label").offset);var u=this.getSideVector(s,e,n);e={x:e.x+u[0]+a.offsetX,y:e.y+u[1]+a.offsetY},a.text=t.text,a.x=e.x,a.y=e.y,a.point=e,a.textAlign=this.getTextAnchor(u),e.rotate&&(a.rotate=e.rotate),i.push(a)}},n._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),i=t.get("tickLine"),r=t.get("ticks");if(r=t._parseTicks(r),o.each(r,function(n,r){var a=t.getTickPoint(n.value,r);i&&t._addTickItem(r,a,i.length),e&&t.addLabel(n,a,r)}),n){var a=t.get("subTickLine");o.each(r,function(e,o){if(o>0){var s=e.value-r[o-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var c={text:"",value:o?r[o-1].value+u*s:u*s},l=t.getTickPoint(c.value),h=void 0;h=a&&a.length?a.length:parseInt(.6*i.length,10),t._addTickItem(u-1,l,h,"sub")}}})}},n._addTickLine=function(t,e){var n=o.mix({},e),i=[];o.each(t,function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])}),delete n.length,n.path=i;var r=this.get("group").addShape("path",{attrs:n});r.name="axis-ticks",r._id=this.get("_id")+"-ticks",r.set("coord",this.get("coord")),this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo"))},n._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!o.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!o.isEmpty(e)){var i=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,i)}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(s,t))}},n._renderLabels=function(){var t=this.get("labelRenderer"),e=this.get("labelItems");t&&(t.set("items",e),t._dryDraw())},n.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");("cat"===n||"timeCat"===n)&&!1===e?this._processCatTicks():this._processTicks(),this._renderTicks(),this._renderGrid(),this._renderLabels();var i=this.get("label");i&&i.autoRotate&&this.autoRotateLabels(),i&&i.autoHide&&this.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox().width;n<e&&(n=e)}),n},n.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox().height;n<e&&(n=e)}),n},n.destroy=function(){if(!this.destroyed){var e=this.get("gridGroup");e&&e.remove();var n=this.get("labelRenderer");n&&n.destroy();this.get("group").destroy(),t.prototype.destroy.call(this)}},n.clear=function(){var t=this.get("group");if(!t.get("destroyed")&&t.get("children").length){var e=this.get("gridGroup");e&&e.clear();var n=this.get("labelRenderer");n&&n.clear();this.get("group").clear()}},n.autoRotateLabels=function(){},n.autoHideLabels=function(){},n.renderTitle=function(){},n.getLinePath=function(){},n.getTickPoint=function(){},n.getTickEnd=function(){},n.getSideVector=function(){},e}(a);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,canvas:null,container:null,group:null,capture:!1,coord:null,offset:[0,0],plotRange:null,position:[0,0],visible:!0,zIndex:1}},n._init=function(){},n.clear=function(){},n.destroy=function(){t.prototype.destroy.call(this)},n.beforeRender=function(){},n.render=function(){},n.afterRender=function(){},n.beforeDraw=function(){},n.draw=function(){},n.afterDraw=function(){},n.show=function(){},n.hide=function(){},n.setOffset=function(){},n.setPosition=function(){},n.setVisible=function(){},n.setZIndex=function(){},e}(n(67));t.exports=a},function(t,e,n){var i=n(5),r=n(2),a=n(18),o=n(175),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);this.type="linear",this.isLinear=!0,this.nice=!1,this.min=null,this.minLimit=null,this.max=null,this.maxLimit=null,this.tickCount=null,this.tickInterval=null,this.minTickInterval=null,this.snapArray=null},n.init=function(){if(this.ticks){var t=this.ticks,e=this.translate(t[0]),n=this.translate(t[t.length-1]);(i(this.min)||this.min>e)&&(this.min=e),(i(this.max)||this.max<n)&&(this.max=n)}else this.min=this.translate(this.min),this.max=this.translate(this.max),this.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,i=this.maxLimit,r=this.tickCount,a=this.tickInterval,s=this.minTickInterval,u=this.snapArray;if(1===r)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 o({min:t,max:e,minLimit:n,maxLimit:i,minCount:r,maxCount:r,interval:a,minTickInterval:s,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=[];r(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}(a);a.Linear=s,t.exports=s},function(t,e,n){var i=n(13);t.exports=function(t){return i(t)?Array.prototype.slice.call(t):[]}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e,n){var i=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,r,a,o){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];i.normalize(u,u);var c=[a-t,o-e];return Math.abs(i.dot(c,u))},box:function(t,e,n,i,r){var a=r/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,i)-a,maxX:s+a,maxY:Math.max(e,i)+a}},len:function(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}}},function(t,e,n){function i(t,e,n,i){return{x:Math.cos(i)*n+t,y:Math.sin(i)*n+e}}function r(t,e,n,i){var r,a;return i?t<e?(r=e-t,a=2*Math.PI-n+t):t>n&&(r=2*Math.PI-t+e,a=t-n):(r=t-e,a=n-t),r>a?n:e}function a(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:r(t,n,e,!0):t<e||t>n?t:r(t,e,n):e<=n?e<t&&t<n?t:r(t,e,n,!0):t>e||t<n?t:r(t,n,e)}function o(t,e,n,i,r,o,u,c,l){var h=[u,c],f=[t,e],p=s.vec2.subtract([],h,f),g=s.vec2.angleTo([1,0],p);g=a(g,i,r,o);var d=[n*Math.cos(g)+t,n*Math.sin(g)+e];l&&(l.x=d[0],l.y=d[1]);return s.vec2.distance(d,h)}var s=n(1);t.exports={nearAngle:a,projectPoint:function(t,e,n,i,r,a,s,u){var c={};return o(t,e,n,i,r,a,s,u,c),c},pointDistance:o,box:function(t,e,n,r,o,u){var c=Math.PI/2,l=Math.PI,h=3*Math.PI/2,f=[],p=a(0,r,o,u);0===p&&f.push(i(t,e,n,0)),(p=a(c,r,o,u))===c&&f.push(i(t,e,n,c)),(p=a(l,r,o,u))===l&&f.push(i(t,e,n,l)),(p=a(h,r,o,u))===h&&f.push(i(t,e,n,h)),f.push(i(t,e,n,r)),f.push(i(t,e,n,o));var g=1/0,d=-1/0,v=1/0,y=-1/0;return s.each(f,function(t){g>t.x&&(g=t.x),d<t.x&&(d=t.x),v>t.y&&(v=t.y),y<t.y&&(y=t.y)}),{minX:g,minY:v,maxX:d,maxY:y}}}},function(t,e,n){function i(t,e,n,i,r,a,o){var p,g,d,v,y,m,x;if(!e.fill){var b=e.arrowLength||h,_=e.arrowAngle?e.arrowAngle*s/180:f;x=l(i-a,n-r),y=Math.abs(e.lineWidth*c(x))/2,m=Math.abs(e.lineWidth*u(x))/2,o&&(y=-y,m=-m),p=r+b*c(x+_/2),g=a+b*u(x+_/2),d=r+b*c(x-_/2),v=a+b*u(x-_/2),t.beginPath(),t.moveTo(p-y,g-m),t.lineTo(r-y,a-m),t.lineTo(d-y,v-m),t.moveTo(r-y,a-m),t.lineTo(r+y,a+m),t.moveTo(r,a),t.stroke()}}function r(t,e,n,i,r,s,u){var c=u?e.startArrow:e.endArrow,l=c.d,h=0,f=r-n,p=s-i,g=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-g:f<0&&p<0?h=-Math.PI/2-g:f>=0&&p<0?h=-g-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-g);var d=function(t){var e,n=[],i=a.parsePath(t.path);if(!Array.isArray(i)||0===i.length||"M"!==i[0][0]&&"m"!==i[0][0])return!1;for(var r=i.length,s=0;s<i.length;s++){var u=i[s];e=new o(u,e,s===r-1),n.push(e)}return n}(c);if(d){l&&(u?(r+=Math.sin(Math.abs(g))*l,s=s+Math.cos(Math.abs(g))*l-.5*t.lineWidth):(r-=Math.sin(Math.abs(g))*l,s=s-Math.cos(Math.abs(g))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(r,s),t.rotate(h);for(var v=0;v<d.length;v++)d[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var a=n(27),o=n(39),s=Math.PI,u=Math.sin,c=Math.cos,l=Math.atan2,h=10,f=s/3;t.exports={addStartArrow:function(t,e,n,a,o,s){"object"==typeof e.startArrow?r(t,e,n,a,o,s,!0):e.startArrow&&i(t,e,n,a,o,s,!0)},addEndArrow:function(t,e,n,a,o,s){"object"==typeof e.endArrow?r(t,e,n,a,o,s,!1):e.endArrow&&i(t,e,n,a,o,s,!1)}}},function(t,e,n){function i(t,e,n){return{x:n.x+t,y:n.y+e}}function r(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}var u=n(1),c=n(55),l=n(56),h=n(103),f=n(104),p=u.vec3,g=u.mat3,d=["m","l","c","a","q","h","v","t","s","z"],v=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};u.augment(v,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,c,l,h,f=d.indexOf(n)>=0,p=f?n.toUpperCase():n,g=t,v=e.endPoint,y=g[1],m=g[2];switch(p){default:break;case"M":h=f?i(y,m,v):{x:y,y:m},this.command="M",this.params=[v,h],this.subStart=h,this.endPoint=h;break;case"L":h=f?i(y,m,v):{x:y,y:m},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"H":h=f?i(y,0,v):{x:y,y:v.y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"V":h=f?i(0,y,v):{x:v.x,y:y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"Q":f?(a=i(y,m,v),c=i(g[3],g[4],v)):(a={x:y,y:m},c={x:g[3],y:g[4]}),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"T":c=f?i(y,m,v):{x:y,y:m},"Q"===e.command?(a=r(e.params[1],v),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="TL",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"C":f?(a=i(y,m,v),c=i(g[3],g[4],v),l=i(g[5],g[6],v)):(a={x:y,y:m},c={x:g[3],y:g[4]},l={x:g[5],y:g[6]}),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"S":f?(c=i(y,m,v),l=i(g[3],g[4],v)):(c={x:y,y:m},l={x:g[3],y:g[4]}),"C"===e.command?(a=r(e.params[2],v),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="SQ",this.params=[v,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"A":var x=y,b=m,_=g[3],S=g[4],w=g[5];h=f?i(g[6],g[7],v):{x:g[6],y:g[7]},this.command="A";var M=function(t,e,n,i,r,a,c){var l=u.mod(u.toRadian(c),2*Math.PI),h=t.x,f=t.y,p=e.x,g=e.y,d=Math.cos(l)*(h-p)/2+Math.sin(l)*(f-g)/2,v=-1*Math.sin(l)*(h-p)/2+Math.cos(l)*(f-g)/2,y=d*d/(r*r)+v*v/(a*a);y>1&&(r*=Math.sqrt(y),a*=Math.sqrt(y));var m=r*r*(v*v)+a*a*(d*d),x=Math.sqrt((r*r*(a*a)-m)/m);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*r*v/a,_=x*-a*d/r,S=(h+p)/2+Math.cos(l)*b-Math.sin(l)*_,w=(f+g)/2+Math.sin(l)*b+Math.cos(l)*_,M=s([1,0],[(d-b)/r,(v-_)/a]),k=[(d-b)/r,(v-_)/a],C=[(-1*d-b)/r,(-1*v-_)/a],A=s(k,C);return o(k,C)<=-1&&(A=Math.PI),o(k,C)>=1&&(A=0),0===i&&A>0&&(A-=2*Math.PI),1===i&&A<0&&(A+=2*Math.PI),[t,S,w,r,a,M,A,l,i]}(v,h,S,w,x,b,_);this.params=M;var k=e.subStart;this.subStart=k,this.endPoint=h;var C=M[5]%(2*Math.PI);u.isNumberEqual(C,2*Math.PI)&&(C=0);var A=M[6]%(2*Math.PI);u.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=M[3]*Math.cos(C-P)+M[1],e=M[4]*Math.sin(C-P)+M[2];return[t-k.x,e-k.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(C+t+P)+M[1],n=M[4]*Math.sin(C+t-P)+M[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var i=this.command,r=this.params,a=this.box;if(a&&!c.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return c.line(r[0].x,r[0].y,r[1].x,r[1].y,n,t,e);case"SQ":case"Q":return c.quadraticline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,n,t,e);case"C":return c.cubicline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y,n,t,e);case"A":var o=r,s=o[1],u=o[2],l=o[3],h=o[4],f=o[5],d=o[6],v=o[7],y=o[8],m=l>h?l:h,x=l>h?1:l/h,b=l>h?h/l:1;o=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return g.translate(_,_,[-s,-u]),g.rotate(_,_,-v),g.scale(_,_,[1/x,1/b]),p.transformMat3(o,o,_),c.arcline(0,0,m,f,f+d,1-y,n,o[0],o[1])}return!1},draw:function(t){var e,n,i,r=this.command,a=this.params;switch(r){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],i=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,i.x,i.y);break;case"A":var o=a,s=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7],g=o[8],d=c>l?c:l,v=c>l?1:c/l,y=c>l?l/c:1;t.translate(s,u),t.rotate(p),t.scale(v,y),t.arc(0,0,d,h,h+f,1-g),t.scale(1/v,1/y),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,i,r,a=t/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-a,maxX:Math.max(o[0].x,o[1].x)+a,minY:Math.min(o[0].y,o[1].y)-a,maxY:Math.max(o[0].y,o[1].y)+a};break;case"SQ":case"Q":for(i=0,r=(n=h.extrema(o[0].x,o[1].x,o[2].x)).length;i<r;i++)n[i]=h.at(o[0].x,o[1].x,o[2].x,n[i]);for(n.push(o[0].x,o[2].x),i=0,r=(e=h.extrema(o[0].y,o[1].y,o[2].y)).length;i<r;i++)e[i]=h.at(o[0].y,o[1].y,o[2].y,e);e.push(o[0].y,o[2].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"C":for(i=0,r=(n=l.extrema(o[0].x,o[1].x,o[2].x,o[3].x)).length;i<r;i++)n[i]=l.at(o[0].x,o[1].x,o[2].x,o[3].x,n[i]);for(i=0,r=(e=l.extrema(o[0].y,o[1].y,o[2].y,o[3].y)).length;i<r;i++)e[i]=l.at(o[0].y,o[1].y,o[2].y,o[3].y,e[i]);n.push(o[0].x,o[3].x),e.push(o[0].y,o[3].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"A":var s=o,u=s[1],c=s[2],p=s[3],g=s[4],d=s[5],v=s[6],y=s[7],m=s[8],x=d,b=d+v,_=f.xExtrema(y,p,g),S=1/0,w=-1/0,M=[x,b];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var k=_+i;1===m?x<k&&k<b&&M.push(k):b<k&&k<x&&M.push(k)}for(i=0,r=M.length;i<r;i++){var C=f.xAt(y,p,g,u,M[i]);C<S&&(S=C),C>w&&(w=C)}var A=f.yExtrema(y,p,g),P=1/0,O=-1/0,T=[x,b];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var I=A+i;1===m?x<I&&I<b&&T.push(I):b<I&&I<x&&T.push(I)}for(i=0,r=T.length;i<r;i++){var L=f.yAt(y,p,g,c,T[i]);L<P&&(P=L),L>O&&(O=L)}this.box={minX:S-a,maxX:w+a,minY:P-a,maxY:O+a}}}}),t.exports=v},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){var i=n(13),r=Array.prototype.indexOf;t.exports=function(t,e){return!!i(t)&&r.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){t.exports={mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var a=n(43),o=n(8),s=a.mat3,u=a.vec3,c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();o(this,n,e),this.init()}return r(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),r(t,[{key:"init",value:function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)}},{key:"_swapDim",value:function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(t,e){var n=this[e],i=n.start;return i+t*(n.end-i)}},{key:"invertDim",value:function(t,e){var n=this[e],i=n.start;return(t-i)/(n.end-i)}},{key:"convertPoint",value:function(t){return t}},{key:"invertPoint",value:function(t){return t}},{key:"applyMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=[t,e,n];return u.transformMat3(r,r,i),r}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=s.invert([],i),a=[t,e,n];return u.transformMat3(a,a,r),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return s.translate(e,e,[-n.x,-n.y]),s.rotate(e,e,t),s.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,i=this.center;return s.translate(n,n,[-i.x,-i.y]),s.scale(n,n,[t,e]),s.translate(n,n,[i.x,i.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return s.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=c},function(t,e,n){var i=n(0),r={splitPoints:function(t){var e=[],n=t.x,r=t.y;return r=i.isArray(r)?r:[r],i.each(r,function(t,r){var a={x:i.isArray(n)?n[r]:n,y:t};e.push(a)}),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),i.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),i.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=r},,function(t,e,n){var i="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},r=n(4);t.exports=function t(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return e;var n=void 0;if(r(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===i(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else{n={};for(var s in e)"object"===i(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s]}return n}},function(t,e,n){function i(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&&r(c)?(r(t[u])||(t[u]={}),n<s?i(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 r=n(26),a=n(4),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 r=t[0],a=1;a<e;a++)i(r,t[a]);return r}},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){var i=n(49),r=n(13),a=n(10);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(i(e)||i(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var l=!0,h=0;h<u.length&&(l=t(e[u[h]],n[u[h]]));h++);return l}return!1}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){var i=n(183);i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=r=t},e.toRadian=function(t){return t*a},e.equals=function(t,e){return Math.abs(t-e)<=i*Math.max(1,Math.abs(t),Math.abs(e))};var i=e.EPSILON=1e-6,r=e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,a=(e.RANDOM=Math.random,Math.PI/180)},function(t,e,n){var i;!function(e){"use strict";function r(){}function a(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}function s(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&s(t.listener)}var u=r.prototype,c=e.EventEmitter;u.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},u.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},u.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},u.addListener=function(t,e){if(!s(e))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(t),r="object"==typeof e;for(n in i)i.hasOwnProperty(n)&&-1===a(i[n],e)&&i[n].push(r?e:{listener:e,once:!1});return this},u.on=o("addListener"),u.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},u.once=o("addOnceListener"),u.defineEvent=function(t){return this.getListeners(t),this},u.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},u.removeListener=function(t,e){var n,i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&-1!==(n=a(r[i],e))&&r[i].splice(n,1);return this},u.off=o("removeListener"),u.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},u.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},u.manipulateListeners=function(t,e,n){var i,r,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)a.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?a.call(this,i,r):o.call(this,i,r));return this},u.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if(t instanceof RegExp)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},u.removeAllListeners=o("removeEvent"),u.emitEvent=function(t,e){var n,i,r,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},u.trigger=o("emitEvent"),u.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},u.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},u._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},u._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return e.EventEmitter=c,r},void 0!==(i=function(){return r}.call(e,n,e,t))&&(t.exports=i)}(this||{})},function(t,e,n){var i=n(36),r=n(103),a=n(56),o=n(37);t.exports={line:function(t,e,n,r,a,o,s){var u=i.box(t,e,n,r,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=i.pointDistance(t,e,n,r,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,i){var r=t.length-1;if(r<1)return!1;for(var a=0;a<r;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,i))return!0}return!1},cubicline:function(t,e,n,i,r,o,s,u,c,l,h){return a.pointDistance(t,e,n,i,r,o,s,u,l,h)<=c/2},quadraticline:function(t,e,n,i,a,o,s,u,c){return r.pointDistance(t,e,n,i,a,o,u,c)<=s/2},arcline:function(t,e,n,i,r,a,s,u,c){return o.pointDistance(t,e,n,i,r,a,u,c)<=s/2},rect:function(t,e,n,i,r,a){return t<=r&&r<=t+n&&e<=a&&a<=e+i},circle:function(t,e,n,i,r){return Math.pow(i-t,2)+Math.pow(r-e,2)<=Math.pow(n,2)},box:function(t,e,n,i,r,a){return t<=r&&r<=e&&n<=a&&a<=i}}},function(t,e,n){function i(t,e,n,i,r){var a=1-r;return a*a*(a*i+3*r*n)+r*r*(r*t+3*a*e)}function r(t,e,n,r,a,o,u,c,l,h,f){var p,g,d,v,y,m,x,b,_=.005,S=1/0,w=[l,h];for(g=0;g<1;g+=.05)d=[i(t,n,a,u,g),i(e,r,o,c,g)],(v=s.squaredDistance(w,d))<S&&(p=g,S=v);S=1/0;for(var M=0;M<32&&!(_<1e-4);M++)b=p+_,d=[i(t,n,a,u,x=p-_),i(e,r,o,c,x)],v=s.squaredDistance(w,d),x>=0&&v<S?(p=x,S=v):(m=[i(t,n,a,u,b),i(e,r,o,c,b)],y=s.squaredDistance(w,m),b<=1&&y<S?(p=b,S=y):_*=.5);return f&&(f.x=i(t,n,a,u,p),f.y=i(e,r,o,c,p)),Math.sqrt(S)}function a(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}var o=n(1),s=o.vec2;t.exports={at:i,derivativeAt:function(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)},projectPoint:function(t,e,n,i,a,o,s,u,c,l){var h={};return r(t,e,n,i,a,o,s,u,c,l,h),h},pointDistance:r,extrema:function(t,e,n,i){var r,a,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,l=3*n-3*i,h=[];if(o.isNumberEqual(u,0))o.isNumberEqual(c,0)||(r=-l/c)>=0&&r<=1&&h.push(r);else{var f=c*c-4*u*l;o.isNumberEqual(f,0)?h.push(-c/(2*u)):f>0&&(a=(-c-(s=Math.sqrt(f)))/(2*u),(r=(-c+s)/(2*u))>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h},len:function(t,e,n,i,r,s,u,c,l){o.isNil(l)&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,d=0;d<12;d++){var v=h*f[d]+h,y=a(v,t,n,r,u),m=a(v,e,i,s,c),x=y*y+m*m;g+=p[d]*Math.sqrt(x)}return h*g}}},function(t,e,n){var i=n(1),r=n(6),a=n(27),o=n(39),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},s.ATTRS={path:null,lineWidth:1},i.extend(s,r),i.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},_getPath:function(){var t,e=this._attrs,n=e.x,r=e.y,a=e.radius||e.r,o=e.symbol||"circle";return(t=i.isFunction(o)?o:s.Symbols[o])?t(n,r,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n=a.parsePath(this._getPath());t.beginPath();var i;e=[];for(var r=0;r<n.length;r++){var s=n[r];i=new o(s,i,r===n.length-1),e.push(i),i.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){function i(t,e){function n(t,e){if(1===t.length)i.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&i.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];n(a,e)}}var i=[],r=[];return t.length&&n(t,e),{left:i,right:r.reverse()}}function r(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}function a(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),s=o(e)[0],u=1;u<=n;u++)a*=u,0===(i=Math.floor(t.length*a))?r.unshift([s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]);return r}function o(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var s=n(81),u="\t\n\v\f\r \u2028\u2029",c=new RegExp("([a-z])["+u+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+u+"]*,?["+u+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+u+"]*,?["+u+"]*","ig"),h=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(c,function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(l,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else for(;a.length>=e[o]&&(n.push([i].concat(a.splice(0,e[o]))),e[o]););}),n},f=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},p=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),u=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,u,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},g=function(t){if(!(t=h(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(o=r=+t[0][1],s=a=+t[0][2],u++,i[0]=["M",r,a]);for(var c,l,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=u,v=t.length;d<v;d++){if(i.push(c=[]),l=t[d],(e=l[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+r,c[7]=+l[7]+a;break;case"V":c[1]=+l[1]+a;break;case"H":c[1]=+l[1]+r;break;case"R":for(var y=2,m=(n=[r,a].concat(l.slice(1))).length;y<m;y++)n[y]=+n[y]+r,n[++y]=+n[y]+a;i.pop(),i=i.concat(f(n,g));break;case"O":i.pop(),(n=p(r,a,l[1],l[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(p(r,a,l[1],l[2],l[3])),c=["U"].concat(i[i.length-1].slice(-2));break;case"M":o=+l[1]+r,s=+l[2]+a;break;default:for(var x=1,b=l.length;x<b;x++)c[x]=+l[x]+(x%2?r:a)}else if("R"===e)n=[r,a].concat(l.slice(1)),i.pop(),i=i.concat(f(n,g)),c=["R"].concat(l.slice(-2));else if("O"===e)i.pop(),(n=p(r,a,l[1],l[2])).push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(p(r,a,l[1],l[2],l[3])),c=["U"].concat(i[i.length-1].slice(-2));else for(var _=0,S=l.length;_<S;_++)c[_]=l[_];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":r=+o,a=+s;break;case"H":r=c[1];break;case"V":a=c[1];break;case"M":o=c[c.length-2],s=c[c.length-1];break;default:r=c[c.length-2],a=c[c.length-1]}}return i},d=function(t,e,n,i){return[t,e,n,i,n,i]},v=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]},y=function(t,e){var n,i=g(t),r=e&&g(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",l="",h=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,a,o,s,u,c,l){i===r&&(i+=1);var h,f,p,g,d,v=120*Math.PI/180,y=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)f=l[0],p=l[1],g=l[2],d=l[3];else{e=(h=x(e,n,-y)).x,n=h.y,u=(h=x(u,c,-y)).x,c=h.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,S=b*b/(i*i)+_*_/(r*r);S>1&&(i*=S=Math.sqrt(S),r*=S);var w=i*i,M=r*r,k=(o===s?-1:1)*Math.sqrt(Math.abs((w*M-w*_*_-M*b*b)/(w*_*_+M*b*b)));g=k*i*_/r+(e+u)/2,d=k*-r*b/i+(n+c)/2,f=Math.asin(((n-d)/r).toFixed(9)),p=Math.asin(((c-d)/r).toFixed(9)),f=e<g?Math.PI-f:f,p=u<g?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var C=p-f;if(Math.abs(C)>v){var A=p,P=u,O=c;p=f+v*(s&&p>f?1:-1),m=t(u=g+i*Math.cos(p),c=d+r*Math.sin(p),i,r,a,0,s,P,O,[p,A,g,d])}C=p-f;var T=Math.cos(f),I=Math.sin(f),L=Math.cos(p),R=Math.sin(p),D=Math.tan(C/4),E=4/3*i*D,j=4/3*r*D,F=[e,n],B=[e+E*I,n-j*T],N=[u+E*R,c-j*L],Y=[u,c];if(B[0]=2*F[0]-B[0],B[1]=2*F[1]-B[1],l)return[B,N,Y].concat(m);for(var z=[],H=0,V=(m=[B,N,Y].concat(m).join().split(",")).length;H<V;H++)z[H]=H%2?x(m[H-1],m[H],y).y:x(m[H],m[H+1],y).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(v(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(v(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(d(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(d(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(d(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(d(e.x,e.y,e.X,e.Y))}return t},f=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},p=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(l=s[y-1])),i[y]=h(i[y],a,l),"A"!==s[y]&&"C"===c&&(s[y]="C"),f(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(u[y]=c,y&&(l=u[y-1])),r[y]=h(r[y],o,l),"A"!==u[y]&&"C"===c&&(u[y]="C"),f(r,y)),p(i,r,a,o,y),p(r,i,o,a,y);var m=i[y],x=r&&r[y],b=m.length,_=r&&x.length;a.x=m[b-2],a.y=m[b-1],a.bx=parseFloat(m[b-4])||a.x,a.by=parseFloat(m[b-3])||a.y,o.bx=r&&(parseFloat(x[_-4])||o.x),o.by=r&&(parseFloat(x[_-3])||o.y),o.x=r&&x[_-2],o.y=r&&x[_-1]}return r?[i,r]:i},m=/,?([a-z]),?/gi,x=function(t){return t.join(",").replace(m,"$1")},b=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},_=function(t,e,n,i,r,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var g=c*l[p]+c,d=b(g,t,n,r,o),v=b(g,e,i,a,s),y=d*d+v*v;f+=h[p]*Math.sqrt(y)}return c*f},S=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var c=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,l=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=x,a},k=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:M(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e,n,i,r,a,o,u){s.isArray(t)||(t=[t,e,n,i,r,a,o,u]);var c=function(t,e,n,i,r,a,o,s){for(var u,c,l,h,f=[],p=[[],[]],g=0;g<2;++g)if(0===g?(c=6*t-12*n+6*r,u=-3*t+9*n-9*r+3*o,l=3*n-3*t):(c=6*e-12*i+6*a,u=-3*e+9*i-9*a+3*s,l=3*i-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;(h=-l/c)>0&&h<1&&f.push(h)}else{var d=c*c-4*l*u,v=Math.sqrt(d);if(!(d<0)){var y=(-c+v)/(2*u);y>0&&y<1&&f.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&f.push(m)}}for(var x,b=f.length,_=b;b--;)x=1-(h=f[b]),p[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*r+h*h*h*o,p[1][b]=x*x*x*e+3*x*x*h*i+3*x*h*h*a+h*h*h*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}}.apply(null,t);return k(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,i,r,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(r-2*n+t),d=e+2*u*(i-e)+f*(a-2*i+e),v=n+2*u*(r-n)+f*(o-2*r+n),y=i+2*u*(a-i)+f*(s-2*a+i);return{x:l*t+3*h*u*n+3*c*u*u*r+p*o,y:l*e+3*h*u*i+3*c*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*i},end:{x:c*r+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},P=function(t,e,n){if(!function(t,e){return t=k(t),e=k(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(C(t),C(e)))return n?0:[];for(var i=~~(_.apply(0,t)/8),r=~~(_.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<i+1;c++){var l=A.apply(0,t.concat(c/i));a.push({x:l.x,y:l.y,t:c/i})}for(var h=0;h<r+1;h++){var f=A.apply(0,e.concat(h/r));o.push({x:f.x,y:f.y,t:h/r})}for(var p=0;p<i;p++)for(var g=0;g<r;g++){var d=a[p],v=a[p+1],y=o[g],m=o[g+1],x=Math.abs(v.x-d.x)<.001?"y":"x",b=Math.abs(m.x-y.x)<.001?"y":"x",M=S(d.x,d.y,v.x,v.y,y.x,y.y,m.x,m.y);if(M){if(s[M.x.toFixed(4)]===M.y.toFixed(4))continue;s[M.x.toFixed(4)]=M.y.toFixed(4);var P=d.t+Math.abs((M[x]-d[x])/(v[x]-d[x]))*(v.t-d.t),O=y.t+Math.abs((M[b]-y[b])/(m[b]-y[b]))*(m.t-y.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?u++:u.push({x:M.x,y:M.y,t1:P,t2:O}))}}return u},O=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/n,u=0;u<n-1;u++){var c=i(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)r.push(a)}return r},T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return s.each(t,function(t,i){if(t!==e[i])return n=!1,!1}),n};t.exports={parsePathString:h,parsePathArray:x,pathTocurve:y,pathToAbsolute:g,catmullRomToBezier:f,rectPath:M,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<i-n;o++)t.push(t[0]);return t}for(var s=0;s<i;s++){var u=Math.floor(r*s);a[u]=(a[u]||0)+1}var c=a.reduce(function(e,i,r){return r===n?e.concat(t[n]):e.concat(O(t[r],t[r+1],i))},[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c},fillPathByDiff:function(t,e){var n=function(t,e){var n,i,a=t.length,o=e.length,s=0;if(0===a||0===o)return null;for(var u=[],c=0;c<=a;c++)u[c]=[],u[c][0]={min:c};for(var l=0;l<=o;l++)u[0][l]={min:l};for(var h=1;h<=a;h++){n=t[h-1];for(var f=1;f<=o;f++){i=e[f-1],s=T(n,i)?0:1;var p=u[h-1][f].min+1,g=u[h][f-1].min+1,d=u[h-1][f-1].min+s;u[h][f]=r(p,g,d)}}return u}(t,e),i=t.length,a=e.length,o=[],s=1,u=1;if(n[i][a]!==i){for(var c=1;c<=i;c++){var l=n[c][c].min;u=c;for(var h=s;h<=a;h++)n[c][h].min<l&&(l=n[c][h].min,u=h);s=u,n[c][s].type&&o.push({index:c-1,type:n[c][s].type})}for(var f=o.length-1;f>=0;f--)s=o[f].index,"add"===o[f].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}var p=a-(i=t.length);if(i<a)for(var g=0;g<p;g++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=o(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],2)}t[i]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[i]=e[i]}return t},intersection:function(t,e){return function(t,e,n){t=y(t),e=y(e);for(var i,r,a,o,s,u,c,l,h,f,p=n?0:[],g=0,d=t.length;g<d;g++){var v=t[g];if("M"===v[0])i=s=v[1],r=u=v[2];else{"C"===v[0]?(i=(h=[i,r].concat(v.slice(1)))[6],r=h[7]):(h=[i,r,i,r,s,u,s,u],i=s,r=u);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(a=(f=[a,o].concat(b.slice(1)))[6],o=f[7]):(f=[a,o,a,o,c,l,c,l],a=c,o=l);var _=P(h,f,n);if(n)p+=_;else{for(var S=0,w=_.length;S<w;S++)_[S].segment1=g,_[S].segment2=m,_[S].bez1=h,_[S].bez2=f;p=p.concat(_)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";function i(){return m||(_(r),m=b.now()+x)}function r(){m=0}function a(){this._call=this._time=this._next=null}function o(t,e,n){var i=new a;return i.restart(t,e,n),i}function s(){i(),++p;for(var t,e=h;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function u(){m=(y=b.now())+x,p=g=0;try{s()}finally{p=0,function(){var t,e,n=h,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);f=t,l(i)}(),m=0}}function c(){var t=b.now(),e=t-y;e>v&&(x-=e,y=t)}function l(t){if(!p){g&&(g=clearTimeout(g));t-m>24?(t<1/0&&(g=setTimeout(u,t-b.now()-x)),d&&(d=clearInterval(d))):(d||(y=b.now(),d=setInterval(c,v)),p=1,_(u))}}e.b=i,e.a=a,e.c=o,e.d=s;var h,f,p=0,g=0,d=0,v=1e3,y=0,m=0,x=0,b="object"==typeof performance&&performance.now?performance:Date,_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=o.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?i():+n)+(null==e?0:+e),this._next||f===this||(f?f._next=this:h=this,f=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},function(t,e,n){"use strict";var i=n(17),r=n(118),a=n(121),o=n(122),s=n(40),u=n(123),c=n(124),l=n(120);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(l.a)(e):("number"===h?s.a:"string"===h?(n=Object(i.a)(e))?(e=n,r.a):c.a:e instanceof i.a?r.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function i(){}function r(){return this.rgb().formatHex()}function a(){return this.rgb().formatRgb()}function o(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=C.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?s(e):3===n?new h(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new h(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new h(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=A.exec(t))?new h(e[1],e[2],e[3],1):(e=P.exec(t))?new h(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?u(e[1],e[2],e[3],e[4]):(e=T.exec(t))?u(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=I.exec(t))?d(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?d(e[1],e[2]/100,e[3]/100,e[4]):R.hasOwnProperty(t)?s(R[t]):"transparent"===t?new h(NaN,NaN,NaN,0):null}function s(t){return new h(t>>16&255,t>>8&255,255&t,1)}function u(t,e,n,i){return i<=0&&(t=e=n=NaN),new h(t,e,n,i)}function c(t){return t instanceof i||(t=o(t)),t?(t=t.rgb(),new h(t.r,t.g,t.b,t.opacity)):new h}function l(t,e,n,i){return 1===arguments.length?c(t):new h(t,e,n,null==i?1:i)}function h(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function f(){return"#"+g(this.r)+g(this.g)+g(this.b)}function p(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function g(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function d(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new m(t,e,n,i)}function v(t){if(t instanceof m)return new m(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=o(t)),!t)return new m;if(t instanceof m)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),s=Math.max(e,n,r),u=NaN,c=s-a,l=(s+a)/2;return c?(u=e===s?(n-r)/c+6*(n<r):n===s?(r-e)/c+2:(e-n)/c+4,c/=l<.5?s+a:2-s-a,u*=60):c=l>0&&l<1?0:u,new m(u,c,l,t.opacity)}function y(t,e,n,i){return 1===arguments.length?v(t):new m(t,e,n,null==i?1:i)}function m(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function x(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=i,n.d(e,"d",function(){return _}),n.d(e,"c",function(){return S}),e.e=o,e.h=c,e.g=l,e.b=h,e.f=y;var b=n(62),_=.7,S=1/_,w="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",k="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\("+[w,w,w]+"\\)$"),P=new RegExp("^rgb\\("+[k,k,k]+"\\)$"),O=new RegExp("^rgba\\("+[w,w,w,M]+"\\)$"),T=new RegExp("^rgba\\("+[k,k,k,M]+"\\)$"),I=new RegExp("^hsl\\("+[M,k,k]+"\\)$"),L=new RegExp("^hsla\\("+[M,k,k,M]+"\\)$"),R={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(b.a)(i,o,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:r,formatHex:r,formatHsl:function(){return v(this).formatHsl()},formatRgb:a,toString:a}),Object(b.a)(h,l,Object(b.b)(i,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new h(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new h(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f,formatHex:f,formatRgb:p,toString:p})),Object(b.a)(m,y,Object(b.b)(i,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new m(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new m(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new h(x(t>=240?t-240:t+120,r,i),x(t,r,i),x(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function i(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}e.a=i,e.b=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],o=t[r+1],s=r>0?t[r-1]:2*a-o,u=r<e-1?t[r+2]:2*o-a;return i((n-r/e)*e,s,a,o,u)}}},function(t,e,n){var i=n(2),r=n(13);t.exports=function(t,e){if(!r(t))return t;var n=[];return i(t,function(t,i){e(t,i)&&n.push(t)}),n}},function(t,e,n){var i=n(5),r=n(4),a=n(2);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];i(u)||(r(u)||(u=[u]),a(u,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e,n){var i=n(16).Group,r=n(22).Label,a=n(7),o=n(0),s=["line","point","path"],u=function t(e){t.superclass.constructor.call(this,e)};o.extend(u,i),o.augment(u,{getDefaultCfg:function(){return{label:a.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},_renderUI:function(){u.superclass._renderUI.call(this),this.initLabelsCfg();var t=this.addGroup(),e=this.addGroup({elCls:"x-line-group"}),n=this.get("labelRenderer");this.set("labelsGroup",t),this.set("lineGroup",e),this.get("labelRenderer").set("group",t),n.set("group",t),n.set("lineGroup",e)},initLabelsCfg:function(){var t=new r,e=this.getDefaultLabelCfg(),n=this.get("labelCfg");o.deepMix(e,n.globalCfg||n.cfg),t.set("config",!1),e.labelLine&&t.set("labelLine",e.labelLine),t.set("coord",this.get("coord")),this.set("labelRenderer",t),this.set("label",e)},getDefaultLabelCfg:function(){var t=this.get("labelCfg").cfg||this.get("labelCfg").globalCfg,e=this.get("geomType"),n=this.get("viewTheme")||a;return"polygon"===e||t&&t.offset<0&&-1===o.indexOf(s,e)?o.deepMix({},this.get("label"),n.innerLabels,t):o.deepMix({},this.get("label"),n.label,t)},getLabelsItems:function(t,e){var n=this,i=[],r=n.get("geom"),a=n.get("coord");n._getLabelCfgs(t,e);var s=n.get("labelItemCfgs");return o.each(t,function(t,e){var u=t._origin,c=s[e];if(c){o.isArray(c.text)||(c.text=[c.text]);var l=c.text.length;o.each(c.text,function(e,s){if(o.isNil(e)||""===e)i.push(null);else{var h=n.getLabelPoint(c,t,s);(h=o.mix({},c,h)).textAlign||(h.textAlign=n.getLabelAlign(h,s,l)),r&&(h._id=r._getShapeId(u)+"-glabel-"+s+"-"+h.text),h.coord=a,i.push(h)}})}else i.push(null)}),i},adjustItems:function(t){return o.each(t,function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))}),t},drawLines:function(t){var e=this;o.each(t,function(t){t&&t.offset>0&&e.lineToLabel(t)})},lineToLabel:function(){},getLabelPoint:function(t,e,n){function i(e,n){return o.isArray(e)&&(e=1===t.text.length?e.length<=2?e[e.length-1]:function(t){var e=0;return o.each(t,function(t){e+=t}),e/t.length}(e):e[n]),e}var r=this.get("coord"),a=t.text.length,s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var u=function(t,e){if(o.isNumber(t)&&o.isNumber(e))return[t,e];for(var n,i,r=-1,a=0,s=0,u=t.length-1,c=0;++r<t.length;)n=u,u=r,c+=i=t[n]*e[u]-t[u]*e[n],a+=(t[n]+t[u])*i,s+=(e[n]+e[u])*i;return c*=3,[a/c,s/c]}(e.x,e.y);s.x=u[0],s.y=u[1]}else s.x=i(e.x,n),s.y=i(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var c=-1/0;e.nextPoints.forEach(function(t){(t=r.convert(t)).x>c&&(c=t.x)}),s.x=(s.x+c)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=r.convert(t),(o.isArray(t.x)&&!e.x.includes(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)}),t.position&&this.setLabelPosition(s,e,n,t.position);var l=this.getLabelOffset(t,n,a);return t.offsetX&&(l.x+=t.offsetX),t.offsetY&&(l.y+=t.offsetY),this.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=l.x,s.y+=l.y,s.color=e.color,s},setLabelPosition:function(){},transLabelPoint:function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},getOffsetVector:function(t){var e=t.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(e,0):n.applyMatrix(0,e)},getDefaultOffset:function(t){var e=0,n=this.get("coord"),i=this.getOffsetVector(t);e=n.isTransposed?i[0]:i[1];var r=this.get("yScale");if(r&&t.point){t.point[r.field]<0&&(e*=-1)}return e},getLabelOffset:function(t,e,n){var i=this.getDefaultOffset(t),r=this.get("coord").isTransposed,a=r?"x":"y",o=r?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?i*o:i*o*-1,s},getLabelAlign:function(t,e,n){var i="center";if(this.get("coord").isTransposed){var r=this.getDefaultOffset(t);i=r<0?"right":0===r?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},_getLabelValue:function(t,e){o.isArray(e)||(e=[e]);var n=[];return o.each(e,function(e){var i=t[e.field];if(o.isArray(i)){var r=[];o.each(i,function(t){r.push(e.getText(t))}),i=r}else i=e.getText(i);(o.isNil(i)||""===i)&&n.push(null),n.push(i)}),n},_getLabelCfgs:function(t){var e=this,n=this.get("labelCfg"),i=n.scales,r=this.get("label"),s=e.get("viewTheme")||a,u=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),o.each(t,function(t,a){var c={},l=t._origin,h=e._getLabelValue(l,i);if(n.callback){var f=i.map(function(t){return l[t.field]});c=n.callback.apply(null,[].concat(f,[t,a]))}if(c||0===c){if(o.isString(c)||o.isNumber(c)?c={text:c}:(c.text=c.content||h[0],delete c.content),c=o.mix({},r,n.globalCfg||{},c),t.point=l,c.point=l,c.htmlTemplate&&(c.useHtml=!0,c.text=c.htmlTemplate.call(null,c.text,t,a),delete c.htmlTemplate),c.formatter&&(c.text=c.formatter.call(null,c.text,t,a),delete c.formatter),c.label){var p=c.label;delete c.label,c=o.mix(c,p)}if(c.textStyle){delete c.textStyle.offset;var g=c.textStyle;o.isFunction(g)&&(c.textStyle=g.call(null,c.text,t,a))}c.labelLine&&(c.labelLine=o.mix({},r.labelLine,c.labelLine)),c.textStyle=o.mix({},r.textStyle,s.label.textStyle,c.textStyle),delete c.items,u.push(c)}else u.push(null)}),this.set("labelItemCfgs",u)},showLabels:function(t,e){var n=this.get("labelRenderer"),i=this.getLabelsItems(t,e);e=[].concat(e);var r=this.get("type");i=this.adjustItems(i,e),this.drawLines(i),n.set("items",i.filter(function(t,n){return!!t||(e.splice(n,1),!1)})),r&&(n.set("shapes",e),n.set("type",r),n.set("points",t)),n.set("canvas",this.get("canvas")),n.draw()},destroy:function(){this.get("labelRenderer").destroy(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=n(54),s=n(3),u=function(t){function e(e){var n,i=r(n=t.call(this)||this),a={visible:!0},o=i.getDefaultCfg();return i._attrs=a,s.deepMix(a,o,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(157),s=n(329),u=n(14).FONT_FAMILY,c=a.Event,l=a.Group,h=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:u},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},n._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-8},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},n.beforeRender=function(){var e=this.get("items");a.isArray(e)&&!a.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},n._renderSlider=function(){var t=new l,e=new l,n=new l,i=this._calStartPoint(),r=this.get("group").addGroup(s,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});r.translate(i.x,i.y),this.set("slider",r);this._renderSliderShape().attr("clip",r.get("middleHandleElement")),this._renderTrigger()},n._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:a.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),r=this.get("triggerAttr"),o=a.mix({},r),s=a.mix({},r),u=a.mix({text:this._formatItemValue(t.value)+""},i),c=a.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,c)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,c))},n._addVerticalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),r=this.get("width"),o=i.addShape("rect",{attrs:a.mix({x:r/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),s=i.addShape("text",{attrs:a.mix(n,{x:r+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._addHorizontalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),r=i.addShape("rect",{attrs:a.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),o=i.addShape("text",{attrs:a.mix(n,{x:"min"===t?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";r.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",r),this.set(t+"TextElement",o)},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i);t._updateElement(a,o);var s=new c("itemfilter",e,!0,!0);s.range=[a,o],t.emit("itemfilter",s)})}this.get("hoverable")&&(this.get("group").on("mousemove",a.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",a.wrapBehavior(this,"_onMouseLeave")))},n._updateElement=function(t,e){var n=this.get("minTextElement"),i=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),i.attr("text",this._formatItemValue(e)+"")},n._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},n._onMouseMove=function(t){var e,n=this.get("height"),i=this.get("width"),r=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var u=this.get("titleGap"),c=this.get("titleShape");c&&(u+=c.getBBox().maxY-c.getBBox().minY);var l=t.clientY||t.event.clientY;l=l-a.y-this.get("group").attr("matrix")[7]+o.y-s+u,e=r[0].value+(1-l/n)*(r[r.length-1].value-r[0].value)}else{var h=t.clientX||t.event.clientX;h=h-a.x-this.get("group").attr("matrix")[6],e=r[0].value+h/i*(r[r.length-1].value-r[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},n.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),i=this.get("items");if(!(t<i[0].value||t>i[i.length-1].value)){var r,o=this.get("height"),s=this.get("width"),u=this.get("titleShape"),c=this.get("titleGap"),l=[],h=(t-i[0].value)/(i[i.length-1].value-i[0].value);if("vertical"===this.get("layout")){var f=0,p=0;"color-legend"===this.get("type")&&(f=c,u&&(f+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=c-15,u&&(f+=u.getBBox().height)),p+=10),l=[[p,(h=(1-h)*o)+f],[p-10,h+f-5],[p-10,h+f+5]],r=a.mix({},{x:s+this.get("textOffset")/2+p,y:h+f,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var g=0,d=0;"color-legend"===this.get("type")&&(g=c,u&&(g+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?g-=7:(g=c,u||(g-=7)),d+=10),l=[[(h*=s)+d,g],[h+d-5,g-10],[h+d+5,g-10]],r=a.mix({},{x:h-5,y:o+this.get("textOffset")+g,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=a.mix(r,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v})).set("id","hoverText"),e?e.attr(a.mix({points:l},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:a.mix({points:l},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},n.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},e}(o);t.exports=h},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(67),o=n(3),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},n.isContentChange=function(t,e){var n=this.get("titleContent"),i=this.get("items"),r=!(t===n&&i.length===e.length);return r||o.each(e,function(t,e){var n=i[e];for(var a in t)if(t.hasOwnProperty(a)&&!o.isObject(t[a])&&t[a]!==n[a]){r=!0;break}if(r)return!1}),r},n.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},n.setPosition=function(t,e){this.set("x",t),this.set("y",e)},n.render=function(){},n.clear=function(){},n.show=function(){this.set("visible",!0)},n.hide=function(){this.set("visible",!1)},e}(a);t.exports=s},,function(t,e,n){var i=n(10),r=n(80);t.exports={toTimeStamp:function(t){return i(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r(t)&&(t=t.getTime()),t}}},,function(t,e,n){t.exports={Position:n(294),Color:n(295),Shape:n(296),Size:n(297),Opacity:n(298),ColorUtil:n(148)}},function(t,e,n){var i=n(75),r=n(18);r.Linear=n(33),r.Identity=n(176),r.Cat=n(77),r.Time=n(177),r.TimeCat=n(179),r.Log=n(180),r.Pow=n(181);var a=function(t){if(r.hasOwnProperty(t)){var e=i(t);r[e]=function(e){return new r[t](e)}}};for(var o in r)a(o);var s=["cat","timeCat"];r.isCategory=function(t){return s.indexOf(t)>=0},t.exports=r},function(t,e,n){var i=n(24);t.exports=function(t){var e=i(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){function n(t,e){var n=t.length;if(0===n)return NaN;var i=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var r=1;r<t.length&&!(e<t[r]);r++)i=t[r];return i}function i(t,e){var n=t.length;if(0===n)return NaN;var i;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var r=1;r<t.length;r++)if(e<=t[r]){i=t[r];break}return i}var r=12,a={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var i=1;if(0!==t){t<0&&(i=-1);var o=function(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>r&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}(t*=i);i*=o,t/=o}t="floor"===n?a.snapFloor(e,t):"ceil"===n?a.snapCeiling(e,t):a.snapTo(e,t);var s=parseFloat((t*i).toPrecision(r));if(Math.abs(i)<1&&s.toString().length>r){s=t/parseInt(1/i)*(i>0?1:-1)}return s},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 r=n(t,e),a=i(t,e);if(isNaN(r)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-r)<Math.abs(a-e)?r:a},snapFloor:function(t,e){return n(t,e)},snapCeiling:function(t,e){return i(t,e)},fixedBase:function(t,e){var n=e.toString(),i=n.indexOf("."),r=n.indexOf("e-");if(i<0&&r<0)return Math.round(t);var a=r>=0?parseInt(n.substr(r+2),10):n.substr(i+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=a},function(t,e,n){var i=n(18),r=n(78),a=n(2),o=n(9),s=n(10),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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.values,e=this.tickCount;if(a(t,function(e,n){t[n]=e.toString()}),!this.ticks){var n=t;if(e){n=r({maxCount:e,data:t,isRounding:this.isRounding}).ticks}this.ticks=n}},n.getText=function(e){return-1===this.values.indexOf(e)&&o(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&&o(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax();return(s(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(i-n)},n.invert=function(t){if(s(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var i=(t-e)/(n-e),r=Math.round(i*(this.values.length-1))%this.values.length;return r=r||0,this.values[r]},e}(i);i.Cat=u,t.exports=u},function(t,e,n){var i=n(2);t.exports=function(t){var e,n={},r=[],a=t.isRounding,o=function(t){var e=[];return i(t,function(t){e=e.concat(t)}),e}(t.data),s=o.length,u=t.maxCount||8;if(a?2===(e=function(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}(s-1,u-1)+1)?e=u:e<u-4&&(e=u-4):e=u,!a&&s<=e+e/2)r=[].concat(o);else{for(var c=parseInt(s/(e-1),10),l=o.map(function(t,e){return e%c==0?o.slice(e,e+c):null}).filter(function(t){return t}),h=1,f=l.length;h<f&&(a?h*c<s-c:h<e-1);h++)r.push(l[h][0]);if(o.length){r.unshift(o[0]);var p=o[s-1];-1===r.indexOf(p)&&r.push(p)}}return n.categories=o,n.ticks=r,n}},function(t,e,n){var i;!function(r){"use strict";function a(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}function o(t){return function(e,n,i){var r=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(e.month=r)}}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var u={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,h=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,p=function(){},g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],v=a(d,3),y=a(g,3);u.i18n={dayNamesShort:y,dayNames:g,monthNamesShort:v,monthNames:d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[l,p],ddd:[h,p],MMM:[h,o("monthNamesShort")],MMMM:[h,o("monthNames")],a:[h,function(t,e,n){var i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,i=(e+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),t.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,u.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var i=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var r=[];return e=(e=u.masks[e]||e||u.masks.default).replace(f,function(t,e){return r.push(e),"??"}),(e=e.replace(c,function(e){return e in m?m[e](t,i):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return r.shift()})},u.parse=function(t,e,n){var i=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var r=!0,a={};if(e.replace(c,function(e){if(x[e]){var n=x[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,i),t=t.substr(o+e.length),e}):r=!1}return x[e]?"":e.slice(1,e.length-1)}),!r)return!1;var o=new Date;!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0);var s;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):s=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),s},void 0!==t&&t.exports?t.exports=u:void 0!==(i=function(){return u}.call(e,n,e,t))&&(t.exports=i)}()},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Date")}},function(t,e,n){t.exports={isFunction:n(11),isObject:n(25),isBoolean:n(82),isNil:n(5),isString:n(10),isArray:n(4),isNumber:n(9),isEmpty:n(83),uniqueId:n(86),clone:n(47),deepMix:n(48),assign:n(8),merge:n(48),upperFirst:n(87),each:n(2),isEqual:n(50),toArray:n(34),extend:n(88),augment:n(89),remove:n(90),isNumberEqual:n(35),toRadian:n(91),toDegree:n(92),mod:n(93),clamp:n(51),createDom:n(94),modifyCSS:n(95),requestAnimationFrame:n(96),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Boolean")}},function(t,e,n){var i=n(5),r=n(13),a=n(84),o=n(85),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(i(t))return!0;if(r(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var i=n(24);t.exports=function(t){var e=i(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var i=n(11),r=n(8);t.exports=function(t,e,n,a){i(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},s=o(e.prototype,t);return t.prototype=r(s,t.prototype),t.superclass=o(e.prototype,e),r(s,n),r(t,a),t}},function(t,e,n){var i=n(11),r=n(34),a=n(8);t.exports=function(t){for(var e=r(arguments),n=1;n<e.length;n++){var o=e[n];i(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){var n=Array.prototype,i=n.splice,r=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=r.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=document.createElement("table"),i=document.createElement("tr"),r=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:i,th:i,"*":document.createElement("div")};t.exports=function(t){var e=r.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){var i=n(184),r=n(51);i.angle=function(t,e){var n=i.dot(t,e)/(i.length(t)*i.length(e));return Math.acos(r(n,-1,1))},i.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},i.angleTo=function(t,e,n){var r=i.angle(t,e),a=i.direction(t,e)>=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r},i.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=i},function(t,e,n){var i=n(185);t.exports=i},function(t,e,n){var i=n(47),r=n(2),a=n(52);t.exports=function(t,e){return t=i(t),r(e,function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}}),t}},function(t,e,n){var i=n(1),r=function(t,e,n,i){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};i.augment(r,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return i.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=r},function(t,e,n){function i(t,e,n){for(var i,r=t.length-1;r>=0;r--){var a=t[r];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?i=a.getShape(e,n):a.isHit(e,n)&&(i=a)),i)break}return i}function r(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&r(e),t._cfg={},a.merge(t._cfg,e._cfg),a.merge(t._cfg,t.CFG)}}var a=n(1),o=n(102),s=n(189),u={},c="_INDEX",l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(l,o),a.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return r(this.constructor),a.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=u[t];if(i||(i=a.upperFirst(t),u[t]=i),e.attrs&&n){var r=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(r.fontFamily=r.fontFamily?r.fontFamily:o)}}e.canvas=n,e.type=t;var c=new s[i](e);return this.add(c),c},addGroup:function(t,e){var n,i=this.get("canvas");if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(a.isObject(t))t.canvas=i,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return a.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var i=t,r=i.get("parent");r&&r.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.get("children");r.length>0?a.each(r,function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],c=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(u),r.apply(c);var l=Math.min(o[0],s[0],u[0],c[0]),h=Math.max(o[0],s[0],u[0],c[0]),f=Math.min(o[1],s[1],u[1],c[1]),p=Math.max(o[1],s[1],u[1],c[1]);l<t&&(t=l),h>e&&(e=h),f<n&&(n=f),p>i&&(i=p)}}):(t=0,e=0,n=0,i=0);var o={minX:t,minY:n,maxX:e,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return a.each(t,function(t,e){return t[c]=e,t}),t.sort(function(t){return function(e,n){var i=t(e,n);return 0===i?e[c]-n[c]:i}}(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(a.isString(t))return this.findById(t);var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},getShape:function(t,e){var n,r=this._attrs.clip,a=this._cfg.children;if(r){var o=[t,e,1];r.invert(o,this.get("canvas")),r.isPointInPath(o[0],o[1])&&(n=i(a,t,e))}else n=i(a,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new l;return a.each(t,function(t){e.add(t.clone())}),e}}),t.exports=l},function(t,e,n){var i=n(1),r=n(186),a=n(187),o=n(188),s=n(54),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},i.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},i.augment(u,r,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,r=n.parent,a=n.el;return r&&i.remove(r.get("children"),this),a&&(e?r&&r._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);n.splice(r,1),n.push(this),i&&(i.parentNode.removeChild(i),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);if(n.splice(r,1),n.unshift(this),i){var a=i.parentNode;a.removeChild(i),a.insertBefore(i,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,i.isNil(e)||e.sort();var n=this._cfg.el;if(n){var r=e._cfg.children,a=r.indexOf(this),o=n.parentNode;o.removeChild(n),a===r.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return i.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function i(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function r(t,e,n,r,a,s,u,c,l){var h,f,p,g,d,v,y,m=.005,x=1/0,b=[u,c];for(d=0;d<1;d+=.05)p=[i(t,n,a,d),i(e,r,s,d)],(f=o.squaredDistance(b,p))<x&&(h=d,x=f);for(x=1/0,y=0;y<32&&!(m<1e-4);y++){var _=h-m,S=h+m;p=[i(t,n,a,_),i(e,r,s,_)],f=o.squaredDistance(b,p),_>=0&&f<x?(h=_,x=f):(g=[i(t,n,a,S),i(e,r,s,S)],v=o.squaredDistance(b,g),S<=1&&v<x?(h=S,x=v):m*=.5)}return l&&(l.x=i(t,n,a,h),l.y=i(e,r,s,h)),Math.sqrt(x)}var a=n(1),o=a.vec2;t.exports={at:i,projectPoint:function(t,e,n,i,a,o,s,u){var c={};return r(t,e,n,i,a,o,s,u,c),c},pointDistance:r,extrema:function(t,e,n){var i=t+n-2*e;if(a.isNumberEqual(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,i,r){return e*Math.cos(t)*Math.cos(r)-n*Math.sin(t)*Math.sin(r)+i},yAt:function(t,e,n,i,r){return e*Math.sin(t)*Math.cos(r)+n*Math.cos(t)*Math.sin(r)+i},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function i(t,e,n){return t+e*Math.cos(n)}function r(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(6),s=n(37),u=n(38),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(c,o),a.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,i,r,a,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=t.clockwise,u=Math.PI/180;s&&(u*=-1);var c=[],l=i(e,o,a+u),h=r(n,o,a+u),f=i(e,o,a),p=r(n,o,a);return c.push([l,h]),c.push([f,p]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=t.clockwise,u=Math.PI/180,c=[];s&&(u*=-1);var l=i(e,o,a+u),h=r(n,o,a+u),f=i(e,o,a),p=r(n,o,a);return c.push([f,p]),c.push([l,h]),c},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,i,r,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();u.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var i=this.getEndTangent();u.addEndArrow(t,e,i[0][0],i[0][1],i[1][0],i[1][1])}}}),t.exports=c},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rx,r=t.ry,a=this.getHitLineWidth(),o=i+a/2,s=r+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,l=[1,0,0,0,1,0,0,0,1];i.mat3.scale(l,l,[u,c]),i.mat3.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(37),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},i.extend(o,r),i.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rs,r=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),l=a.box(e,n,i,o,s,u),h=a.box(e,n,r,o,s,u),f=c/2;return{minX:Math.min(l.minX,h.minX)-f,minY:Math.min(l.minY,h.minY)-f,maxX:Math.max(l.maxX,h.maxX)+f,maxY:Math.max(l.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*r+n,y:Math.sin(o)*r+i},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+i},h={x:Math.cos(s)*r+n,y:Math.sin(s)*r+i};(t=t||self.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,i,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,i,r,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},i.extend(a,r),i.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!i.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&i.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var r=new Image;r.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",r);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},r.src=n,r.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&i.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h))return void t.drawImage(f,n,r,o,s);if(!(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h)))return void t.drawImage(f,u,c,l,h,n,r,o,s)}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(s,r),i.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,i=t.x2,r=t.y2,a=this.getHitLineWidth();return o.box(e,n,i,r,a)},createPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,i),t.lineTo(r,a)},afterPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,r,o,n,i),e.endArrow&&a.addEndArrow(t,e,n,i,r,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(6),a=n(39),o=n(27),s=n(38),u=n(58),c=n(56),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(l,r),i.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(i.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=o.parsePath(t),r=[];if(i.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var s=n.length,u=0;u<n.length;u++){var c=n[u];e=new a(c,e,u===s-1),r.push(e)}this.setSilent("segments",r),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,r=-1/0,a=1/0,o=-1/0;return i.each(t,function(t){t.getBBox(e);var i=t.box;i&&(i.minX<n&&(n=i.minX),i.maxX>r&&(r=i.maxX),i.minY<a&&(a=i.minY),i.maxY>o&&(o=i.maxY))}),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:r,maxY:o}},_setTcache:function(){var t,e,n,r,a=0,o=0,s=[],u=this._cfg.curve;u&&(i.each(u,function(t,e){n=u[e+1],r=t.length,n&&(a+=c.len(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),i.each(u,function(i,l){n=u[l+1],r=i.length,n&&((t=[])[0]=o/a,e=c.len(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))}),this._cfg.tCache=s)},_calculateCurve:function(){var t=this._attrs.path;this._cfg.curve=u.pathTocurve(t)},getStartTangent:function(){var t,e,n,r,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,r=[],i.isFunction(n)){var o=n();r.push([t.x-o[0],t.y-o[1]]),r.push([t.x,t.y])}else r.push([e.x,e.y]),r.push([t.x,t.y]);return r},getEndTangent:function(){var t,e,n,r,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,r=[],i.isFunction(n)){var s=n();r.push([e.x-s[0],e.y-s[1]]),r.push([e.x,e.y])}else r.push([t.x,t.y]),r.push([e.x,e.y]);return r},getPoint:function(t){var e,n,r=this._cfg.tCache;r||(this._calculateCurve(),this._setTcache(),r=this._cfg.tCache);var a=this._cfg.curve;if(!r)return a?{x:a[0][1],y:a[0][2]}:null;i.each(r,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)});var o=a[n];if(i.isNil(o)||i.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this.get("segments");if(i.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,r=0;r<n;r++)e[r].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),r=e.path;if(t=t||this.get("context"),i.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==r[r.length-1]&&"Z"!==r[r.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=l},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,r=1/0,a=-1/0,o=-1/0;i.each(t,function(t){var e=t[0],i=t[1];e<n&&(n=e),e>a&&(a=e),i<r&&(r=i),i>o&&(o=i)});var s=e/2;return{minX:n-s,minY:r-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),i.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},i.extend(s,r),i.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var r=1/0,a=1/0,o=-1/0,s=-1/0;i.each(n,function(t){var e=t[0],n=t[1];e<r&&(r=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)});var u=e/2;return{minX:r-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t,e,n=this._attrs.points,r=0,a=0,s=[];n&&0!==n.length&&(i.each(n,function(t,e){n[e+1]&&(r+=o.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),r<=0||(i.each(n,function(i,u){n[u+1]&&((t=[])[0]=a/r,e=o.len(i[0],i[1],n[u+1][0],n[u+1][1]),a+=e,t[1]=a/r,s.push(t))}),this.tCache=s))},createPath:function(t){var e,n,i=this._attrs.points;if(!(i.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(i[0][0],i[0][1]),n=1,e=i.length-1;n<e;n++)t.lineTo(i[n][0],i[n][1]);t.lineTo(i[e][0],i[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,i=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[i-1][0],n[i-1][1],n[i][0],n[i][1])},getPoint:function(t){var e,n,r=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),i.each(a,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}),{x:o.at(r[n][0],r[n+1][0],e),y:o.at(r[n][1],r[n+1][1],e)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(27).parseRadius,a=n(6),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},i.extend(o,a),i.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,i,a,o);else{var u=r(s);t.moveTo(n+u.r1,i),t.lineTo(n+a-u.r2,i),0!==u.r2&&t.arc(n+a-u.r2,i+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+a,i+o-u.r3),0!==u.r3&&t.arc(n+a-u.r3,i+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,i+o),0!==u.r4&&t.arc(n+u.r4,i+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,i+u.r1),0!==u.r1&&t.arc(n+u.r1,i+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,a=t.fontVariant;t.font=[r,a,i,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(i.isString(e)&&-1!==e.indexOf("\n")){var r=(n=e.split("\n")).length;t.lineCount=r}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this._getSpaceingY()*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,i=t.y,r=this.measureText();if(!r)return{minX:n,minY:i,maxX:n,maxY:i};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),c={x:n,y:i-a};o&&("end"===o||"right"===o?c.x-=r:"center"===o&&(c.x-=r/2)),s&&("top"===s?c.y+=a:"middle"===s&&(c.y+=a/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+r+l,maxY:c.y+a+l}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var r=e.text;if(r){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;i.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(r,o,s),t.globalAlpha=1}if(this.hasFill()){var c=e.fillOpacity;i.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!0):t.fillText(r,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,r=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,l=this.getBBox(),h=l.maxY-l.minY;i.each(r,function(i,r){n=c+r*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(i,u,n):t.strokeText(i,u,n)})},measureText:function(){var t,e=this._attrs,n=e.text,r=e.font,a=e.textArr,o=0;if(!i.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=r,a?i.each(a,function(e){t=s.measureText(e).width,o<t&&(o=t),s.restore()}):(o=s.measureText(n).width,s.restore()),o}}}),t.exports=a},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=Math.PI/180,r=180/Math.PI},function(t,e,n){"use strict";function i(t){return function(e){var n,i,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(e[n]),o[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return o=t(o),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=u(t),i+""}}}n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c});var r=n(17),a=n(63),o=n(119),s=n(28);e.a=function t(e){function n(t,e){var n=i((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),a=i(t.g,e.g),o=i(t.b,e.b),u=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}var i=Object(s.b)(e);return n.gamma=t,n}(1);var u=i(a.b),c=i(o.a)},function(t,e,n){"use strict";var i=n(63);e.a=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),a=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return Object(i.a)((n-r/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var i=n(60);e.a=function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=Object(i.a)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(i){return n.setTime(t+e*i),n}}},function(t,e,n){"use strict";var i=n(60);e.a=function(t,e){var n,r={},a={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=Object(i.a)(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}}},function(t,e,n){"use strict";var i=n(40),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(r.source,"g");e.a=function(t,e){var n,o,s,u=r.lastIndex=a.lastIndex=0,c=-1,l=[],h=[];for(t+="",e+="";(n=r.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,h.push({i:c,x:Object(i.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,i=0;i<e;++i)l[(n=h[i]).i]=n.x(t);return l.join("")})}},function(t,e,n){var i=n(0),r=n(292),a={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},path:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},area:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},edge:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=r.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=r.appear.fanIn)):e=t.isRect?t.isTransposed?r.appear.scaleInX:r.appear.scaleInY:r.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?r.enter.fadeIn:r.enter.zoomIn},leave:function(){return r.leave.fadeOut},update:function(t){if("theta"===t.type)return r.update.fanIn}},point:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},schema:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return r.appear.fadeIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-ticks":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid-rect":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(){return r.leave.fadeIn}},labelLine:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}}};o.Action=r,o.defaultCfg=a,o.getAnimation=function(t,e,n){var r=this[t];if(r){var a=r[n];if(i.isFunction(a))return a(e)}return!1},o.getAnimateCfg=function(t,e){var n=a[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?i.deepMix({},n,this[t].cfg[e]):n},o.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=o},function(t,e,n){var i=n(2),r=n(8),a=n(230),o=n(239),s=n(250),u=n(253),c=n(257),l=n(43),h=n(266),f=n(270),p=n(276),g=n(280),d={DOMUtil:a,DomUtil:a,MatrixUtil:l,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:c,matrixUtil:l,objectUtil:h,stringUtil:p,pathUtil:f,typeUtil:g,augment:n(89),clone:n(47),debounce:n(286),deepMix:n(48),each:i,extend:n(88),filter:n(64),group:n(143),groupBy:n(145),groupToMap:n(144),indexOf:n(287),isEmpty:n(83),isEqual:n(50),isEqualWith:n(288),map:n(289),mix:r,pick:n(290),throttle:n(291),toArray:n(34),toString:n(24),uniqueId:n(86)};i([a,o,s,u,c,l,h,f,p,g],function(t){r(d,t)}),t.exports=d},function(t,e,n){var i=n(128),r=n(5);t.exports=function(t,e){var n=i(e),a=n.length;if(r(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var i=n(2),r=n(11),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return i(t,function(n,i){r(t)&&"prototype"===i||e.push(i)}),e};t.exports=a},function(t,e,n){var i=n(13),r=Array.prototype.splice;t.exports=function(t,e){if(!i(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,r.call(t,s,1))}return t}},function(t,e,n){var i=n(2),r=n(41);t.exports=function(t){var e=[];return i(t,function(t){r(e,t)||e.push(t)}),e}},function(t,e,n){var i=n(4),r=n(11),a=n(2);t.exports=function(t,e){if(i(t)){var n=t[0],o=void 0;o=r(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=r(e)?e(t):t[e])>o&&(n=t,o=s)}),n}}},function(t,e){t.exports=parseInt},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var i=n(2),r=n(11),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i(t,function(n,i){r(t)&&"prototype"===i||e.push(n)}),e};t.exports=a},function(t,e,n){var i=n(136);t.exports=function(t,e,n,r,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,r-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-r],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=i,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var i=n(138),r=function(t,e,n,i){return[t,e,n,i,n,i]},a=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]};t.exports=function(t,e){var n=i(t),o=e&&i(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],l=[],h="",f="",p=void 0,g=function(t,e,n){var i=void 0,o=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,a,o,s,u,c,l){i===r&&(i+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],g=void 0,d=void 0,v=void 0,y=void 0,m=void 0,x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)d=l[0],v=l[1],y=l[2],m=l[3];else{e=(g=x(e,n,-f)).x,n=g.y,u=(g=x(u,c,-f)).x,c=g.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,S=b*b/(i*i)+_*_/(r*r);S>1&&(i*=S=Math.sqrt(S),r*=S);var w=i*i,M=r*r,k=(o===s?-1:1)*Math.sqrt(Math.abs((w*M-w*_*_-M*b*b)/(w*_*_+M*b*b)));y=k*i*_/r+(e+u)/2,m=k*-r*b/i+(n+c)/2,d=Math.asin(((n-m)/r).toFixed(9)),v=Math.asin(((c-m)/r).toFixed(9)),d=e<y?Math.PI-d:d,v=u<y?Math.PI-v:v,d<0&&(d=2*Math.PI+d),v<0&&(v=2*Math.PI+v),s&&d>v&&(d-=2*Math.PI),!s&&v>d&&(v-=2*Math.PI)}var C=v-d;if(Math.abs(C)>h){var A=v,P=u,O=c;v=d+h*(s&&v>d?1:-1),p=t(u=y+i*Math.cos(v),c=m+r*Math.sin(v),i,r,a,0,s,P,O,[v,A,y,m])}C=v-d;var T=Math.cos(d),I=Math.sin(d),L=Math.cos(v),R=Math.sin(v),D=Math.tan(C/4),E=4/3*i*D,j=4/3*r*D,F=[e,n],B=[e+E*I,n-j*T],N=[u+E*R,c-j*L],Y=[u,c];if(B[0]=2*F[0]-B[0],B[1]=2*F[1]-B[1],l)return[B,N,Y].concat(p);for(var z=[],H=0,V=(p=[B,N,Y].concat(p).join().split(",")).length;H<V;H++)z[H]=H%2?x(p[H-1],p[H],f).y:x(p[H],p[H+1],f).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,o=2*e.y-e.by):(i=e.x,o=e.y),t=["C",i,o].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(a(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(a(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(r(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(r(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(r(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(r(e.x,e.y,e.X,e.Y))}return t},d=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",o&&(l[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),p=Math.max(n.length,o&&o.length||0)}},v=function(t,e,i,r,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],p=Math.max(n.length,o&&o.length||0))};p=Math.max(n.length,o&&o.length||0);for(var y=0;y<p;y++){n[y]&&(h=n[y][0]),"C"!==h&&(c[y]=h,y&&(f=c[y-1])),n[y]=g(n[y],s,f),"A"!==c[y]&&"C"===h&&(c[y]="C"),d(n,y),o&&(o[y]&&(h=o[y][0]),"C"!==h&&(l[y]=h,y&&(f=l[y-1])),o[y]=g(o[y],u,f),"A"!==l[y]&&"C"===h&&(l[y]="C"),d(o,y)),v(n,o,s,u,y),v(o,n,u,s,y);var m=n[y],x=o&&o[y],b=m.length,_=o&&x.length;s.x=m[b-2],s.y=m[b-1],s.bx=parseFloat(m[b-4])||s.x,s.by=parseFloat(m[b-3])||s.y,u.bx=o&&(parseFloat(x[_-4])||u.x),u.by=o&&(parseFloat(x[_-3])||u.y),u.x=o&&x[_-2],u.y=o&&x[_-1]}return o?[n,o]:n}},function(t,e,n){function i(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),u=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,u,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a}var r=n(139),a=n(140);t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,c=0,l=void 0,h=void 0;"M"===t[0][0]&&(s=n=+t[0][1],u=o=+t[0][2],c++,e[0]=["M",n,o]);for(var f,p,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=c,v=t.length;d<v;d++){if(e.push(f=[]),p=t[d],(l=p[0])!==l.toUpperCase())switch(f[0]=l.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+n,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+n;break;case"R":for(var y=2,m=(h=[n,o].concat(p.slice(1))).length;y<m;y++)h[y]=+h[y]+n,h[++y]=+h[y]+o;e.pop(),e=e.concat(a(h,g));break;case"O":e.pop(),(h=i(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(i(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+p[1]+n,u=+p[2]+o;break;default:for(var x=1,b=p.length;x<b;x++)f[x]=+p[x]+(x%2?n:o)}else if("R"===l)h=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(a(h,g)),f=["R"].concat(p.slice(-2));else if("O"===l)e.pop(),(h=i(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);else if("U"===l)e.pop(),e=e.concat(i(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var _=0,S=p.length;_<S;_++)f[_]=p[_];if("O"!==(l=l.toUpperCase()))switch(f[0]){case"Z":n=+s,o=+u;break;case"H":n=f[1];break;case"V":o=f[1];break;case"M":s=f[f.length-2],u=f[f.length-1];break;default:n=f[f.length-2],o=f[f.length-1]}}return e}},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},i="\t\n\v\f\r \u2028\u2029",r=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(t).replace(r,function(t,n,r){var o=[],s=n.toLowerCase();if(r.replace(a,function(t,e){e&&o.push(+e)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=e[s]&&(i.push([n].concat(o.splice(0,e[s]))),e[s]););}),i}},function(t,e){t.exports=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var i=n(24);t.exports=function(t){return i(t).toLowerCase()}},function(t,e,n){var i=n(24);t.exports=function(t){return i(t).toUpperCase()}},function(t,e,n){var i=n(144);t.exports=function(t,e){if(!e)return[t];var n=i(t,e),r=[];for(var a in n)r.push(n[a]);return r}},function(t,e,n){var i=n(11),r=n(4),a=n(145);t.exports=function(t,e){if(!e)return{0:t};if(!i(e)){var n=r(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return a(t,e)}},function(t,e,n){var i=n(2),r=n(4),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!r(t))return t;var n={},o=null;return i(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return o.isEqualWith(t,e,function(t,e){return t===e})}var o=n(0),s=n(293),u=n(16).Canvas,c=o.DomUtil,l=n(7),h=n(358),f=n(165),p=n(167),g=n(166),d=n(168),v=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:l.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:l.renderer,views:[]})},n.init=function(){var e=this.get("viewTheme");this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var n=new f.Tooltip({chart:this,viewTheme:e,options:{}});this.set("tooltipController",n);var i=new f.Legend({chart:this,viewTheme:e});this.set("legendController",i),this.set("_id","chart"),this.emit("afterinit")},n._isAutoPadding=function(){var t=this.get("padding");return o.isArray(t)?t.includes("auto"):"auto"===t},n._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot").getBBox(),n=this.get("backPlot"),i=g(n,d(this.get("plotRange"))),r=p(e,i),a=[0-r.minY,r.maxX-this.get("width"),r.maxY-this.get("height"),0-r.minX],s=o.toAllPadding(t),u=0;u<s.length;u++)if("auto"===s[u]){var c=Math.max(0,a[u]);s[u]=c+this.get("autoPaddingAppend")}return s},n._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),i=this.get("height");if(o.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var r=c.createDom('<div style="position:relative;"></div>');t.appendChild(r),this.set("wrapperEl",r),this.get("forceFit")&&(n=c.getWidth(t,n),this.set("width",n));var a=this.get("renderer"),s=new u({containerDOM:r,width:n,height:i,pixelRatio:"svg"===a?1:this.get("pixelRatio"),renderer:a});this.set("canvas",s)},n._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:0}),i=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",i)},n._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(h,{padding:this.get("padding"),plotBackground:o.mix({},e.plotBackground,this.get("plotBackground")),background:o.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",o.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(o.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options").legends;if(o.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),i=[];o.each(n,function(t){var n=t.get("view"),r=t.getAttrsForLegend();o.each(r,function(r){var a=r.type,s=r.getScale(a);if(s.field&&"identity"!==s.type&&!function(t,e){var n=!1;return o.each(t,function(t){var i=[].concat(t.values),r=[].concat(e.values);t.type!==e.type||t.field!==e.field||i.sort().toString()!==r.sort().toString()||(n=!0)}),n}(i,s)){i.push(s);var u=n.getFilteredOutValues(s.field);e.addLegend(s,r,t,u)}})});var r=this.getYScales();0===i.length&&r.length>1&&e.addMixedLegend(r,n)}e.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(o.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},n.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return o.each(e,function(e){t=t.concat(e.get("geoms"))}),t},n.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=c.getWidth(t,e);if(0!==n&&n!==e){var i=this.get("height");this.changeSize(n,i)}return this}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");a(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},n.changeWidth=function(t){return this.changeSize(t,this.get("height"))},n.changeHeight=function(t){return this.changeSize(this.get("width"),t)},n.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),o.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=o.mix({},this._getSharedOptions(),t.options);var e=new s(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},n.removeView=function(t){var e=this.get("views");o.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return o.each(["scales","coord","axes"],function(n){e[n]=o.cloneDeep(t[n])}),e},n.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},n.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var i={};return!1===t?n.legends=!1:o.isObject(t)?i=t:o.isString(t)?i[t]=e:i=e,o.mix(n.legends,i),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:o.isObject(t)?o.mix(n.tooltip,t):o.mix(n.tooltip,e),this},n.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;){e.shift().destroy()}t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},n.clearInner=function(){var e=this.get("views");o.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var i=this.get("legendController");i&&i.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");a(n.get("padding"),e)||(n.set("padding",e),n.repaint())}var i=this.get("middlePlot");if(this.get("limitInPlot")&&!i.attr("clip")){var r=o.getClipByRange(this.get("plotRange"));i.attr("clip",r)}t.prototype.render.call(this),this._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},n.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),i="";if("svg"===e){var r=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(r,o.documentElement);var s=(new XMLSerializer).serializeToString(o);i="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(i=n.toDataURL("image/png"));return i},n.downloadImage=function(t){var e=this,n=document.createElement("a"),i=e.get("renderer"),r=(t||"chart")+("svg"===i?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==i){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var l=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(l,r):n.addEventListener("click",function(){n.download=r,n.href=window.URL.createObjectURL(l)})}else n.addEventListener("click",function(){n.download=r,n.href=t});var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)},16)},n.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){this.get("tooltipController").showTooltip(t,e)}return this},n.lockTooltip=function(){return this.get("tooltipController").lockTooltip(),this},n.unlockTooltip=function(){return this.get("tooltipController").unlockTooltip(),this},n.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},n.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return o.each(e,function(e){var i=e.get("geoms");o.each(i,function(e){var i=e.get("dataArray"),r=[];o.each(i,function(n){var i=e.findPoint(t,n);if(i){var a=e.getTipItems(i);r=r.concat(a)}}),n=n.concat(r)})}),n},n.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",o.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(s);t.exports=v},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(54),o=n(0),s=function(t){function e(e){var n,i={visible:!0},r=(n=t.call(this)||this).getDefaultCfg();return n._attrs=i,o.assign(i,r,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},n.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(a);t.exports=s},function(t,e,n){function i(t,e,n,i){return t[i]+(e[i]-t[i])*n}function r(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){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 s=n(9),u=n(10),c=n(2),l=/rgba?\(([\s.,0-9]+)\)/,h={},f=null,p={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;f||(f=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}());var e;if(h[t])e=h[t];else{f.style.color=t,e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color");e=r(l.exec(e)[1].split(/\s*,\s*/)),h[t]=e}return e},rgb2arr:o,gradient:function(t){var e=[];return u(t)&&(t=t.split("-")),c(t,function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){(isNaN(e)||!s(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,a=Math.floor(n*e),o=n*e-a,u=t[a],c=a===n?u:t[a+1];return r([i(u,c,o,0),i(u,c,o,1),i(u,c,o,2)])}(e,t)}}};t.exports=p},function(t,e,n){var i=n(2),r={values:n(65)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];if(this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),i(n,function(n){var i=r.values(t,n);i.sort(function(t,e){return t-e}),e[n]=i}),!this.yField&&this.isAdjust("y")){var a=[0,1];e.y=a}return e},adjustData:function(t,e){var n=this,r=n._getDimValues(e);i(t,function(e,a){i(r,function(i,r){n.adjustDim(r,i,e,t.length,a)})})},getAdjustRange:function(t,e,n){var i,r,a=n.indexOf(e),o=n.length;return!this.yField&&this.isAdjust("y")?(i=0,r=1):o>1?(i=0===a?n[0]:n[a-1],r=a===o-1?n[o-1]:n[a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==o-1?r-=(r-e)/2:r+=(e-n[o-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},groupData:function(t,e){var n={};return i(t,function(t){var i=t[e];void 0===i&&(i=t[e]=0),n[i]||(n[i]=[]),n[i].push(t)}),n}}},function(t,e,n){var i={default:n(151),dark:n(306)};t.exports=i},function(t,e){var n,i,r='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:r,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:r}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:r}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:r}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:r},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:r,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={listStyleType:"none",cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:r},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(i={useHtml:!0,crosshairs:!1,offset:15,marker:{symbol:"circle",activeSymbol:"circle"}},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={listStyleType:"none",marginBottom:"4px",padding:0,marginTop:0,marginLeft:0,marginRight:0},i["g2-tooltip-marker"]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.6},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:r,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:r}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=a},function(t,e,n){var i=n(20).Group,r=n(3),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{getDefaultCfg:function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},_renderUI:function(){a.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},_precessItems:function(t){var e,n=this;r.each(t,function(t,i){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,i),e=t})},_drawGridLines:function(t,e){var n,i,a,o,s=this,u=this.get("type"),c=t.length;"line"===u||"polygon"===u?r.each(t,function(t,l){s.get("hideFirstLine")&&0===l||s.get("hideLastLine")&&l===c-1||(o=t.points,i=[],"line"===u?(i.push(["M",o[0].x,o[0].y]),i.push(["L",o[o.length-1].x,o[o.length-1].y])):r.each(o,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])}),a=s._drawZeroLine(u,l)?r.mix({},s.get("zeroLineStyle"),{path:i}):r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}):r.each(t,function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===c-1||(o=t.points,i=[],r.each(o,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])}),a=r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})},_drawZeroLine:function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},_drawAlternativeBg:function(t,e,n){var i,a,o,s=this.get("alternateColor");r.isString(s)?a=s:r.isArray(s)&&(a=s[0],o=s[1]),n%2==0?o&&(i=this._getBackItem(e.points,t.points,o)):a&&(i=this._getBackItem(e.points,t.points,a));var u=this.addShape("Path",{attrs:i});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},_getBackItem:function(t,e,n){var i=[],a=this.get("type");if("line"===a)i.push(["M",t[0].x,t[0].y]),i.push(["L",t[t.length-1].x,t[t.length-1].y]),i.push(["L",e[e.length-1].x,e[e.length-1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]);else if("polygon"===a){r.each(t,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)i.push(["L",e[o].x,e[o].y]);i.push(["Z"])}else{var s=t[0].flag;r.each(t,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;u>=0;u--){var c=e[u],l=c.radius;u===e.length-1?i.push(["M",c.x,c.y]):i.push(["A",l,l,0,0,1===s?0:1,c.x,c.y])}}return{fill:n,path:i}}}),t.exports=a},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=a.DomUtil,s=n(32),u={scatter:n(309),map:n(310),treemap:n(311)},c=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},n.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},n.destroy=function(){var e=this.get("group"),n=this.get("container");e.destroy||e.destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),t.prototype.destroy.call(this)},n.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},n._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),i=n.length;a.each(e,function(e,r){if(r<i){var a=n[r];t.changeLabel(a,e)}else{var o=t._addLabel(e,r);o&&(o._id=e._id,o.set("coord",e.coord))}});for(var r=i-1;r>=e.length;r--)n[r].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},n.draw=function(){this._dryDraw(),this.get("canvas").draw()},n.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},n.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},n.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},n.drawLines=function(){var t=this;"boolean"==typeof t.get("labelLine")&&t.set("labelLine",{});var e=t.get("lineGroup");!e||e.get("destroyed")?(e=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",e)):e.clear(),a.each(t.get("items"),function(n){t.lineToLabel(n,e)})},n.lineToLabel=function(t,e){if(this.get("config")||t.labelLine){var n=t.labelLine||this.get("labelLine"),i=void 0===t.capture?this.get("capture"):t.capture,r=n.path;if(r&&a.isFunction(n.path)&&(r=n.path(t)),!r){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};r=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var u=e.addShape("path",{attrs:a.mix({path:r,fill:null,stroke:s},n),capture:i});u.name=this.get("name"),u._id=t._id&&t._id.replace("glabel","glabelline"),u.set("coord",this.get("coord"))}},n._adjustLabels=function(){var t=this.get("type"),e=this.getLabels(),n=this.get("shapes"),i=u[t];"default"!==t&&i&&i(e,n)},n.getLabels=function(){var t=this.get("container");return t?a.toArray(t.childNodes):this.get("group").get("children")},n._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},n._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},i=this.get("formatter"),r=this.get("htmlTemplate");if(!a.isObject(t)){var o=t;(t={}).text=o}a.isFunction(n)&&(n=n(t.text,t,e)),i&&(t.text=i(t.text,t,e)),r&&(t.useHtml=!0,a.isFunction(r)&&(t.text=r(t.text,t,e))),a.isNil(t.text)&&(t.text=""),t.text=t.text+"";return a.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},n._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},n.initHtmlContainer=function(){var t=this.get("container");if(t)a.isString(t)&&(t=document.getElementById(t))&&this.set("container",t);else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=o.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},n._createText=function(t){var e,n=a.deepMix({},t),i=this.get("container"),r=void 0===n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var o=this.get("name"),s=n.point,u=this.get("group");delete n.point;var c=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(c=n.textStyle.rotate,delete n.textStyle.rotate),n=a.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),e=u.addShape("text",{attrs:n,capture:r}),c&&(Math.abs(c)>2*Math.PI&&(c=c/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",c],["t",n.x,n.y]])),e.setSilent("origin",s||n),e.name=o,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}i||(i=this.initHtmlContainer());var l=this._createDom(n);i.appendChild(l),this._setCustomPosition(n,l)},n._createDom=function(t){var e=this.get("itemTpl"),n=a.substitute(e,{text:t.text});return o.createDom(n)},n._setCustomPosition=function(t,e){var n=t.textAlign||"left",i=t.y,r=t.x,a=o.getOuterWidth(e);i-=o.getOuterHeight(e)/2,"center"===n?r-=a/2:"right"===n&&(r-=a),e.style.top=parseInt(i,10)+"px",e.style.left=parseInt(r,10)+"px"},e}(s);t.exports=c},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.floor(t.minX),r=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=i;s<r;s++)if(n[s]){if(s===i||s===r-1){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]=[];return e},e.fillGap=function(t){for(var e=this.bitmap,n=Math.floor(t.minX),i=Math.ceil(t.maxX)-1,r=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,o=n;o<=i;o++){for(var s=r;s<a;s+=8)e[o]||(e[o]=[]),e[o][s]=!0;e[o][a]=!0}for(var u=r;u<=a;u++)e[n][u]=!0,e[i][u]=!0},t}();t.exports=n},function(t,e,n){var i=n(3);t.exports={getFirstScale:function(t){var e;return i.each(t,function(t){if(t)return e=t,!1}),e}}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){var n=null,i=e instanceof h||"legendGroup"===e.name?e.get("value"):e;return s.each(t,function(t){if(t.value===i)return n=t,!1}),n}function o(t,e){return t.findBy(function(t){return t.name===e})}var s=n(3),u=n(157),c=n(14).FONT_FAMILY,l=s.Event,h=s.Group,f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{type:"category-legend",items:null,itemGap:5,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c},_wordSpaceing:8,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0,highlight:!1,activeOpacity:.7,inactiveOpacity:1})},n.render=function(){t.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()},n._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",s.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",s.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",s.wrapBehavior(this,"_onClick"))},n._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},n.activate=function(t){var e=this,n=this,i=void 0;n.get("itemsGroup").get("children").forEach(function(r){if(i=o(r,"legend-marker")){var a=r.get("checked");e.get("highlight")?r.get("value")===t&&a?i.attr("stroke","#333"):i.attr("stroke",null):r.get("value")===t&&i.attr("fillOpacity",n.get("activeOpacity"))}}),this.get("canvas").draw()},n.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup").get("children"),i=void 0,r=this.get("unCheckColor");n.forEach(function(n){if(i=o(n,"legend-marker"))if(t.get("highlight")){var a=i.get("oriStroke"),s=n.get("checked");a=a&&!s?r:"",i.attr("stroke",a)}else i.attr("fillOpacity",e.get("inactiveOpacity"))}),this.get("canvas").draw()},n._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),i=new l("itemhover",t,!0,!0);i.item=a(n,e),i.checked=e.get("checked"),i.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",i)}else this.deactivate(),this.emit("itemunhover",t);this.get("canvas").draw()},n._onMouseleave=function(t){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var i=e.get("checked"),r=this.get("selectedMode"),u=a(n,e),c=new l("itemclick",t,!0,!0);if(c.item=u,c.currentTarget=e,c.appendInfo=t.currentTarget.get("appendInfo"),c.checked="single"===r||!i,!this.get("allowAllCanceled")&&i&&1===this.getCheckedCount())return void this.emit("clicklastitem",c);var h=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,g=void 0,d=void 0;if("single"===r){var v=this.get("itemsGroup").get("children");s.each(v,function(t){p=o(t,"legend-marker"),g=o(t,"legend-text"),d=o(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",h),p.attr("stroke")&&p.attr("stroke",h),g.attr("fill",h),p.setSilent("checked",!1),g.setSilent("checked",!1),d.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&u&&u.marker&&p.attr("fill",u.marker.fill),p.attr("stroke")&&u&&u.marker&&p.attr("stroke",u.marker.stroke),g.attr("fill",f),p.setSilent("checked",!0),g.setSilent("checked",!0),d.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=o(e,"legend-marker"),g=o(e,"legend-text"),d=o(e,"legend-item"),p.attr("fill")&&u&&u.marker&&p.attr("fill",i?h:u.marker.fill),p.attr("stroke")&&u&&u.marker&&p.attr("stroke",i?h:u.marker.stroke),g.attr("fill",i?h:f),e.setSilent("checked",!i),p.setSilent("checked",!i),g.setSilent("checked",!i),d.setSilent("checked",!i);this.emit("itemclick",c)}this.get("canvas").draw()},n._renderItems=function(){var t=this,e=this.get("items");if(this.get("reversed")&&e.reverse(),s.each(e,function(e,n){t._addItem(e,n)}),this.get("highlight")){var n=void 0;this.get("itemsGroup").get("children").forEach(function(t){(n=o(t,"legend-marker")).get("oriStroke")||(n.attr("stroke")?n.set("oriStroke",n.attr("stroke")):n.set("oriStroke",""))})}},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),i=this.get("itemWidth"),r=n.get("children"),a=0;return"horizontal"===t&&s.each(r,function(t){a+=(i||t.getBBox().width)+e}),a},n._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),i=this.get("itemsGroup"),r=this.get("titleShape"),a=i.get("children"),o=e;return r&&(o+=r.getBBox().height),"vertical"===n&&s.each(a,function(e){o+=e.getBBox().height+t}),o},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this._getNextY(),r=this.get("unCheckColor"),a=e.addGroup({x:n,y:i,value:t.value,checked:t.checked});a.set("viewId",this.get("viewId"));var o=this.get("textStyle"),u=this.get("_wordSpaceing"),l=0;if(t.marker){var h=s.mix({},t.marker,{x:t.marker.radius+n,y:i});t.checked||(h.fill&&(h.fill=r),h.stroke&&(h.stroke=r));var f=a.addShape("marker",{type:"marker",attrs:h});f.attr("cursor","pointer"),f.name="legend-marker",l+=f.getBBox().width+u}var p=s.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c},o,{x:l+n,y:i,text:this._formatItemValue(t.value)});t.checked||s.mix(p,{fill:r});var g=a.addShape("text",{attrs:p});g.attr("cursor","pointer"),g.name="legend-text",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"));var d=a.getBBox(),v=this.get("itemWidth"),y=a.addShape("rect",{attrs:{x:n,y:i-d.height/2,fill:"#fff",fillOpacity:0,width:v||d.width,height:d.height}});return y.attr("cursor","pointer"),y.setSilent("origin",t),y.name="legend-item",this.get("appendInfo")&&y.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),i=this.get("itemGap"),r=this.get("itemMarginBottom"),a=this.get("titleShape")?this.get("titleGap"):0,o=0,u=0,c=void 0,l=void 0,h=void 0,f=this.get("itemWidth");t.getBBox().width>n&&s.each(e,function(t){h=t.getBBox(),c=f||h.width,l=h.height+r,n-u<c&&(o++,u=0),t.move(u,o*l+a),u+=c+i})},n._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),i=this.get("maxLength"),r=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleGap"),u=e?e.getBBox().height+o:0,c=this.get("itemWidth"),l=u,h=void 0,f=void 0,p=void 0,g=0,d=0;t.getBBox().height>i&&s.each(n,function(t){p=t.getBBox(),h=p.width,f=p.height,c?g=c+r:h>g&&(g=h+r),i-l<f?(l=u,d+=g,t.move(d,u)):t.move(d,l),l+=f+a})},n._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},n.getWidth=function(){return t.prototype.getWidth.call(this)},n.getHeight=function(){return t.prototype.getHeight.call(this)},n.move=function(e,n){t.prototype.move.call(this,e,n)},e}(u);t.exports=f},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(32),s=n(14).FONT_FAMILY,u=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{container:null,title:null,formatter:null,hoverable:!0,titleGap:15,position:[0,0],offset:[0,0],offsetX:null,offsetY:null}},n._init=function(){var t=this.get("group"),e=this.get("container");this.set("canvas",e.get("canvas"));var n=this.get("position");t||(t=e.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",t)},n._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");if(!a.isArray(e)){e="vertical"===this.get("layout")?[e,0]:[0,e]}n&&(e[0]=n),i&&(e[1]=i);var r=this.get("group").getBBox();this.move(-r.minX+t[0]+e[0],-r.minY+t[1]+e[1])},n.beforeRender=function(){var t=this.get("group").addGroup();this.set("itemsGroup",t)},n.render=function(){this._renderTitle()},n._renderTitle=function(){var t=this.get("title"),e=this.get("titleGap");if(e=e||0,t&&t.text){var n=this.get("group").addShape("text",{attrs:a.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:s},t)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}},n.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return a.filter(t,function(t){return t.get("checked")}).length},n.setItems=function(t){this.set("items",t),this.clear(),this.render()},n.addItem=function(t){this.get("items").push(t),this.clear(),this.render()},n.clear=function(){this.get("itemsGroup").clear();this.get("group").clear(),this.beforeRender()},n.destroy=function(){var e=this.get("group");e&&e.destroy(),this._attrs={},this.removeAllListeners(),t.prototype.destroy.call(this)},n.getWidth=function(){return this.get("group").getBBox().width},n.getHeight=function(){return this.get("group").getBBox().height},n.move=function(t,e){this.get("group").move(t,e)},n.draw=function(){this.get("canvas").draw()},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return t.getElementsByClassName(e)[0]}function o(t,e){var n=t.className;return u.isNil(n)?t:(n=n.split(" ")).indexOf(e)>-1?t:t.parentNode?t.parentNode.className===p?t.parentNode:o(t.parentNode,e):null}function s(t,e){var n=null,i=e instanceof f?e.get("value"):e;return u.each(t,function(t){if(t.value===i)return n=t,!1}),n}var u=n(3),c=n(156),l=n(14).FONT_FAMILY,h=u.DomUtil,f=u.Group,p="g2-legend",g="g2-legend-list",d="g2-legend-list-item",v="g2-legend-marker",y=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return u.mix({},e,{type:"category-legend",container:null,containerTpl:'<div class="'+p+'"><h4 class="g2-legend-title"></h4><ul class="'+g+'"></ul></div>',itemTpl:'<li class="'+d+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+v+'" style="background-color:{color};"></i><span class="g2-legend-text">{value}</span></li>',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:l},abridgeText:!1,tipTpl:'<div class="textTip"></div>',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},n._init=function(){},n.beforeRender=function(){},n.render=function(){this._renderHTML()},n._bindEvents=function(){var t=this,e=a(this.get("legendWrapper"),g);this.get("hoverable")&&(e.onmousemove=function(e){return t._onMousemove(e)},e.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(e.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,i=n.className;if(!((i=i.split(" ")).indexOf(p)>-1||i.indexOf(g)>-1)){var r=o(n,d),a=s(e,r.getAttribute("data-value"));a?(this.deactivate(),this.activate(r.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:r,checked:a.checked})):a||(this.deactivate(),this.emit("itemunhover",t))}},n._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this,n=a(this.get("legendWrapper"),g),i=this.get("unCheckColor"),r=this.get("items"),c=this.get("selectedMode"),l=n.childNodes,h=t.target,f=h.className;if(!((f=f.split(" ")).indexOf(p)>-1||f.indexOf(g)>-1)){var y=o(h,d),m=a(y,"g2-legend-text"),x=a(y,v),b=s(r,y.getAttribute("data-value"));if(b){var _=y.className,S=y.getAttribute("data-color");if("single"===c)b.checked=!0,u.each(l,function(t){if(t!==y){a(t,v).style.backgroundColor=i,t.className=t.className.replace("checked","unChecked"),t.style.color=i;s(r,t.getAttribute("data-value")).checked=!1}else m&&(m.style.color=e.get("textStyle").fill),x&&(x.style.backgroundColor=S),y.className=_.replace("unChecked","checked")});else{var w=-1!==_.indexOf("checked"),M=0;if(u.each(l,function(t){-1!==t.className.indexOf("checked")&&M++}),!this.get("allowAllCanceled")&&w&&1===M)return void this.emit("clicklastitem",{item:b,currentTarget:y,checked:"single"===c||b.checked});b.checked=!b.checked,w?(x&&(x.style.backgroundColor=i),y.className=_.replace("checked","unChecked"),y.style.color=i):(x&&(x.style.backgroundColor=S),y.className=_.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:b,currentTarget:y,checked:"single"===c||b.checked})}}},n.activate=function(t){var e=this,n=this,i=n.get("items"),r=s(i,t);a(n.get("legendWrapper"),g).childNodes.forEach(function(t){var o=a(t,v),u=s(i,t.getAttribute("data-value"));if(e.get("highlight")){if(u===r&&u.checked)return void(o.style.border="1px solid #333")}else u===r?o.style.opacity=n.get("activeOpacity"):u.checked&&(o.style.opacity=n.get("inactiveOpacity"))})},n.deactivate=function(){var t=this,e=this;a(e.get("legendWrapper"),g).childNodes.forEach(function(n){var i=a(n,v);t.get("highlight")?i.style.border="1px solid #fff":i.style.opacity=e.get("inactiveOpacity")})},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),i=this.get("containerTpl"),r=h.createDom(i),o=a(r,"g2-legend-title"),s=a(r,g),c=this.get("unCheckColor"),f=u.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:l,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:l},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"==typeof e&&e.constructor===String){var y=e.replace("#","");(e=document.getElementById(y)).appendChild(r)}else{var m=this.get("position"),x={};x="left"===m||"right"===m?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},h.modifyCSS(r,u.mix({},f.CONTAINER_CLASS,x,this.get(p))),e.appendChild(r)}h.modifyCSS(s,u.mix({},f.LIST_CLASS,this.get(g))),o&&(n&&n.text?(o.innerHTML=n.text,h.modifyCSS(o,u.mix({},f.TITLE_CLASS,this.get("g2-legend-title"),n))):r.removeChild(o));var b=this.get("items"),_=this.get("itemTpl"),S=this.get("position"),w=this.get("layout"),M="right"===S||"left"===S||"vertical"===w?"block":"inline-block",k=u.mix({},f.LIST_ITEM_CLASS,{display:M},this.get(d)),C=u.mix({},f.MARKER_CLASS,this.get(v));if(u.each(b,function(e,n){var i,o=e.checked,l=t._formatItemValue(e.value),f=e.marker.fill||e.marker.stroke,p=o?f:c;i=u.isFunction(_)?_(l,p,o,n):_;var g=u.substitute(i,u.mix({},e,{index:n,checked:o?"checked":"unChecked",value:l,color:p,originColor:f,originValue:e.value.replace(/\"/g,""")})),d=h.createDom(g);d.style.color=t.get("textStyle").fill;var y=a(d,v),m=a(d,"g2-legend-text");if(h.modifyCSS(d,k),y&&h.modifyCSS(y,C),o||(d.style.color=c,y&&(y.style.backgroundColor=c)),s.appendChild(d),t.get("abridgeText")){var x=l,b=d.offsetWidth,S=t.get("textStyle").fontSize;isNaN(S)&&(-1!==S.indexOf("pt")?S=1*parseFloat(S.substr(0,S.length-2))/72*96:-1!==S.indexOf("px")&&(S=parseFloat(S.substr(0,S.length-2))));var w=S*x.length,M=Math.floor(b/S);b<2*S?x="":b<w&&M>1&&(x=x.substr(0,M-1)+"..."),m.innerText=x,d.addEventListener("mouseover",function(){var t=a(r.parentNode,"textTip");t.style.display="block",t.style.left=d.offsetLeft+d.offsetWidth+"px",t.style.top=d.offsetTop+15+"px",t.innerText=l}),d.addEventListener("mouseout",function(){a(r.parentNode,"textTip").style.display="none"})}}),this.get("abridgeText")){var A=this.get("tipTpl"),P=h.createDom(A),O=this.get("tipStyle");h.modifyCSS(P,O),r.parentNode.appendChild(P),P.addEventListener("mouseover",function(){P.style.display="none"})}this.set("legendWrapper",r)},n._adjustPositionOffset=function(){if(!1!==this.get("autoPosition")){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");n&&(e[0]=n),i&&(e[1]=i);var r=this.get("legendWrapper");r.style.left=t[0]+"px",r.style.top=t[1]+"px",r.style.marginLeft=e[0]+"px",r.style.marginTop=e[1]+"px"}},n.getWidth=function(){return h.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return h.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(h.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},n.destroy=function(){var e=this.get("legendWrapper");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(c);t.exports=y},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(32),o=n(3),s=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init_(),n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},n._init_=function(){var t,e=this.get("plot");t="rect"===this.type?e.addGroup({zIndex:0}):e.addGroup(),this.set("container",t)},n._addLineShape=function(t,e){var n=this.get("container").addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,n),n},n._renderHorizontalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style")),i=o.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(i,"X")},n._renderVerticalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style")),i=o.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(i,"Y")},n._renderBackground=function(t,e){var n=o.mix(this.get("rectStyle"),this.get("style")),i=this.get("container"),r=o.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),a=i.addShape("rect",{attrs:r,capture:!1});return this.set("crosshairsRectShape",a),a},n._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),i=this.get("isTransposed"),r=t[0],a=t[t.length-1],s=i?"y":"x",u=i?"height":"width",c=r[s];if(t.length>1&&r[s]>a[s]&&(c=a[s]),this.get("width"))n.attr(s,c-this.get("crosshairs").width/2),n.attr(u,this.get("width"));else if(o.isArray(r.point[s])&&!r.size){var l=r.point[s][1]-r.point[s][0];n.attr(s,r.point[s][0]),n.attr(u,l)}else e=3*r.size/4,n.attr(s,c-e),1===t.length?n.attr(u,3*r.size/2):n.attr(u,Math.abs(a[s]-r[s])+2*e)},n.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},n.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},n.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},n.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},n.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},n.setPosition=function(t,e,n){var i=this.get("crossLineShapeX"),r=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");r&&!r.get("destroyed")&&r.move(t,0),i&&!i.get("destroyed")&&i.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},e}(a);t.exports=s},function(t,e){var n={_calcTooltipPosition:function(t,e,n,i,r,a){var o=0,s=0,u=20;if(a){var c=a.getBBox();o=c.width,s=c.height,t=c.x,e=c.y,u=5}switch(n){case"inside":t=t+o/2-i/2,e=e+s/2-r/2;break;case"top":t=t+o/2-i/2,e=e-r-u;break;case"left":t=t-i-u,e=e+s/2-r/2;break;case"right":t=t+o+u,e=e+s/2-r/2;break;case"bottom":default:t=t+o/2-i/2,e=e+s+u}return[t,e]},_constraintPositionInBoundary:function(t,e,n,i,r,a){return t+n+20>r?t=(t-=n+20)<0?0:t:t+20<0?t=20:t+=20,e+i+20>a?e=(e-=i+20)<0?0:e:e+20<0?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,i,r,a){return t+n>r.tr.x&&(t-=a?n+1:n+40),t<r.tl.x&&(t=r.tl.x),a||(e+i>r.bl.y&&(e-=i+40),e<r.tl.y&&(e=r.tl.y)),[t,e]}};t.exports=n},function(t,e,n){var i=n(3),r={setMarkers:function(t,e){var n=this.get("markerGroup"),r=this.get("frontPlot");n?n.clear():(n=r.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),i.each(t,function(t){var r=i.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y});t.marker&&t.marker.activeSymbol&&(r.symbol=t.marker.activeSymbol),n.addShape("marker",{color:t.color,attrs:r})}),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}};t.exports=r},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=n(20),s=n(159),u=n(161),c=n(160),l=n(69),h=n(3),f=n(14).FONT_FAMILY,p=h.DomUtil,g=h.MatrixUtil,d=function(t){function e(e){var n;n=t.call(this,e)||this,h.assign(r(n),c),h.assign(r(n),u);var i=n.get("crosshairs");if(i){var a="rect"===i.type?n.get("backPlot"):n.get("frontPlot"),o=new s(h.mix({plot:a,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));o.hide(),n.set("crosshairGroup",o)}return n._init_(),n.get("items")&&n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return h.mix({},e,{boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},titleStyle:{fontFamily:f,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:f,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:f,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},padding:{top:20,right:20,bottom:20,left:20},itemGap:10,animationDuration:200})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot"),n=e.addGroup({capture:!1});this.set("markerGroup",n);var i=e.addGroup();i.hide(),this.set("container",i);var r=i.addShape("rect",{attrs:h.mix({},this.get("boardStyle"))});this.set("board",r);var a=this.get("titleStyle");if(this.get("showTitle")){var o=i.addShape("text",{attrs:h.mix({x:t.left,y:t.top},a)});this.set("titleShape",o),o.name="tooltip-title"}var s=i.addGroup();s.move(t.left,t.top+a.lineHeight+a.padding),this.set("itemsGroup",s)},n.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),i=t.get("showTitle"),r=t.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(a&&i&&a.attr("text",r),o){var c=t.get("itemGap"),l=0;h.each(s,function(e){var n=t._addItem(e);n.move(0,l),o.add(n);var i=n.getBBox().height;l+=i+c})}var f=e.getBBox(),p=f.width+u.right,g=f.height+u.bottom;n.attr("width",p),n.attr("height",g),t._alignToRight(p)},n.clear=function(){var t=this.get("titleShape"),e=this.get("itemsGroup"),n=this.get("board");t.text="",e.clear(),n.attr("width",0),n.attr("height",0)},n.show=function(){this.get("container").show();var e=this.get("crosshairGroup");e&&e.show();var n=this.get("markerGroup");n&&n.show(),t.prototype.show.call(this),this.get("canvas").draw()},n.hide=function(){this.get("container").hide();var e=this.get("crosshairGroup");e&&e.hide();var n=this.get("markerGroup");n&&n.hide(),t.prototype.hide.call(this),this.get("canvas").draw()},n.destroy=function(){var e=this.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var i=this.get("markerGroup");i&&i.remove(),t.prototype.destroy.call(this),e.remove()},n.setPosition=function(e,n,i){var r,a=this.get("container"),o=this.get("canvas").get("el"),s=p.getWidth(o),u=p.getHeight(o),c=a.getBBox(),l=c.width,f=c.height,d=e,v=n;if(this.get("position")){var y=c.width,m=c.height;e=(r=this._calcTooltipPosition(e,n,this.get("position"),y,m,i))[0],n=r[1]}else e=(r=this._constraintPositionInBoundary(e,n,l,f,s,u))[0],n=r[1];if(this.get("inPlot")){var x=this.get("plotRange");e=(r=this._constraintPositionInPlot(e,n,l,f,x,this.get("enterable")))[0],n=r[1]}var b=this.get("markerItems");h.isEmpty(b)||(d=b[0].x,v=b[0].y);var _=g.transform([1,0,0,0,1,0,0,0,1],[["t",e,n]]);a.stopAnimate(),a.animate({matrix:_},this.get("animationDuration"));var S=this.get("crosshairGroup");if(S){var w=this.get("items");S.setPosition(d,v,w)}t.prototype.setPosition.call(this,e,n)},n._addItem=function(t){var e=new o.Group,n=this.get("markerStyle").radius;if(t.marker){var i=h.mix({},t.marker,{x:t.marker.radius/2,y:0,symbol:t.marker.activeSymbol||t.marker.symbol});e.addShape("marker",{attrs:i}),n=t.marker.radius}var r=this.get("nameStyle");e.addShape("text",{attrs:h.mix({x:n+r.padding,y:0,text:t.name},r)});var a=this.get("valueStyle");return e.addShape("text",{attrs:h.mix({x:e.getBBox().width+a.padding,y:0,text:t.value},a)}),e},n._alignToRight=function(t){var e=this,n=this.get("itemsGroup").get("children");h.each(n,function(n){var i=n.get("children")[2],r=i.getBBox().width,a=t-r-2*e.get("padding").right;i.attr("x",a)})},e}(l);t.exports=d},function(t,e,n){var i=n(66),r=n(23),a=n(0),o=function t(e){t.superclass.constructor.call(this,e)};a.extend(o,i),a.augment(o,{getPointRauis:function(t,e){return r.getPointRadius(t,e)},getCirclePoint:function(t,e,n){var i=this.get("coord"),r=i.getCenter(),a=this._isEmitLabels(),o=this.getPointRauis(i,n);if(0===o)return null;if(i.isTransposed&&o>e&&!a){t+=2*Math.asin(e/(2*o))}else o+=e;return{x:r.x+o*Math.cos(t),y:r.y+o*Math.sin(t),angle:t,r:o}},getArcPoint:function(t,e){var n;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},getPointAngle:function(t){var e=this.get("coord");return r.getPointAngle(e,t)},getMiddlePoint:function(t){var e=this.get("coord"),n=t.length,i={x:0,y:0};return a.each(t,function(t){i.x+=t.x,i.y+=t.y}),i.x/=n,i.y/=n,i=e.convert(i)},_isToMiddle:function(t){return t.x.length>2},getLabelPoint:function(t,e,n){var i,r=t.text[n],a=1;this._isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),i=this.getArcPoint(e,n));var o=this.getDefaultOffset(t);o*=a;var s=this.getPointAngle(i),u=this.getCirclePoint(s,o,i);if(u?(u.text=r,u.angle=s,u.color=e.color):u={text:""},t.autoRotate||void 0===t.autoRotate){var c=u.textStyle?u.textStyle.rotate:null;c||(c=u.rotate||this.getLabelRotate(s,o,e)),u.rotate=c}return u.start={x:i.x,y:i.y},u},_isEmitLabels:function(){return this.get("label").labelEmit},getLabelRotate:function(t){var e;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},getLabelAlign:function(t){var e,n=this.get("coord");if(this._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=this.getDefaultOffset(t);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e}}),t.exports=o},function(t,e){t.exports={toFront:function(t){var e=t.get("parent").get("children").indexOf(t);t.set("_originIndex",e),t.toFront()},resetZIndex:function(t){var e=t.get("parent"),n=t.get("_originIndex"),i=e.get("children"),r=i.indexOf(t);n>=0&&n!==r&&(i.splice(r,1),i.splice(n,0,t))}}},function(t,e,n){t.exports={Scale:n(343),Coord:n(344),Axis:n(349),Guide:n(350),Legend:n(353),Tooltip:n(355),Event:n(356)}},function(t,e,n){function i(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return a.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]}}var r=n(16),a=n(0),o=n(167);t.exports=function(t,e){var n=e;return a.each(t.get("children"),function(t){t instanceof r.Group&&a.each(t.get("children"),function(t){if(t instanceof r.Group&&t.get("children").length||t instanceof r.Path)n=o(n,t.getBBox());else if(t instanceof r.Text){var e=function(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},r={x:e.maxX,y:e.maxY},a=t.attr("matrix");return n=i(n,a),r=i(r,a),{minX:n.x,minY:n.y,maxX:r.x,maxY:r.y}}(t);n=o(n,e)}})}),n}},function(t,e){t.exports=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}},function(t,e){t.exports=function(t){return{minX:t.tl.x,minY:t.tl.y,maxX:t.br.x,maxY:t.br.y}}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);n.d(e,"now",function(){return i.b}),n.d(e,"timer",function(){return i.c}),n.d(e,"timerFlush",function(){return i.d});var r=n(192);n.d(e,"timeout",function(){return r.a});var a=n(193);n.d(e,"interval",function(){return a.a})},,function(t,e,n){var i=n(74),r=n(16),a=n(125),o=n(146),s=n(7),u=n(19),c=n(0),l={version:s.version,Animate:a,Chart:o,Global:s,Scale:i,Shape:u,Util:c,G:r,DomUtil:c.DomUtil,MatrixUtil:c.MatrixUtil,PathUtil:c.PathUtil};l.track=function(){console.warn("G2 tracks nothing ;-)")},"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+l.version+"'s reference is 'window.G2_3'"):window.G2=l),t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(194);n.d(e,"easeLinear",function(){return i.a});var r=n(195);n.d(e,"easeQuad",function(){return r.b}),n.d(e,"easeQuadIn",function(){return r.a}),n.d(e,"easeQuadOut",function(){return r.c}),n.d(e,"easeQuadInOut",function(){return r.b});var a=n(196);n.d(e,"easeCubic",function(){return a.b}),n.d(e,"easeCubicIn",function(){return a.a}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.b});var o=n(197);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var s=n(198);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var u=n(199);n.d(e,"easeExp",function(){return u.b}),n.d(e,"easeExpIn",function(){return u.a}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.b});var c=n(200);n.d(e,"easeCircle",function(){return c.b}),n.d(e,"easeCircleIn",function(){return c.a}),n.d(e,"easeCircleOut",function(){return c.c}),n.d(e,"easeCircleInOut",function(){return c.b});var l=n(201);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var h=n(202);n.d(e,"easeBack",function(){return h.b}),n.d(e,"easeBackIn",function(){return h.a}),n.d(e,"easeBackOut",function(){return h.c}),n.d(e,"easeBackInOut",function(){return h.b});var f=n(203);n.d(e,"easeElastic",function(){return f.c}),n.d(e,"easeElasticIn",function(){return f.a}),n.d(e,"easeElasticOut",function(){return f.c}),n.d(e,"easeElasticInOut",function(){return f.b})},,function(t,e,n){var i=n(5),r=n(9),a=n(76),o=[1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[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=i(t.minLimit)?-1/0:t.minLimit,d=i(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,y=v,m=t.snapArray?t.snapArray:p?o:s;if(e===g&&n===d&&p&&(u=(n-e)/(y-1)),i(e)&&(e=0),i(n)&&(n=0),Math.abs(n-e)<1e-12&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),i(u)){var x=(n-e)/(v-1);u=a.snapFactorTo(x,m,"ceil"),f!==h&&((y=parseInt((n-e)/u,10))>f&&(y=f),y<h&&(y=h),u=a.snapFactorTo((n-e)/(y-1),m))}if(r(c)&&u<c&&(u=c),t.interval||f!==h){n=Math.min(a.snapMultiple(n,u,"ceil"),d),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);for(var b=null;e>g&&g>-1/0&&(null===b||e<b);)b=e,e=a.fixedBase(e-u,u)}else{v=parseInt(v,10);var _,S=(n+e)/2,w=a.snapMultiple(S,u,"ceil"),M=Math.floor((v-2)/2),k=w+M*u;_=v%2==0?w-M*u:w-(M+1)*u;for(var C=null;k<n&&(null===C||k>C);)C=k,k=a.fixedBase(k+u,u);for(var A=null;_>e&&(null===A||_<A);)A=_,_=a.fixedBase(_-u,u);n=k,e=_}n=Math.min(n,d),e=Math.max(e,g),l.push(e);for(var P=1;P<y;P++){var O=a.fixedBase(u*P+e,u);O<n&&l.push(O)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:y,ticks:l}}},function(t,e,n){var i=n(18),r=n(9),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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&&r(t)?t:this.range[0]},n.invert=function(){return this.value},e}(i);i.Identity=a,t.exports=a},function(t,e,n){var i=n(79),r=n(2),a=n(5),o=n(10),s=n(18),u=n(33),c=n(178),l=n(71),h=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},n.init=function(){var e=this,n=e.values;if(n&&n.length){var i=[],o=1/0,s=o,u=0;r(n,function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);o>n?(s=o,o=n):s>n&&(s=n),u<n&&(u=n),i.push(n)}),n.length>1&&(e.minTickInterval=s-o),(a(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(a(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,i=this.tickInterval;return c({min:t,max:e,minCount:n,maxCount:n,interval:i,minInterval:this.minTickInterval}).ticks},n.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):i.format(t,this.mask)},n.scale=function(e){return o(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},n.translate=function(t){return this._toTimeStamp(t)},n._toTimeStamp=function(t){return l.toTimeStamp(t)},e}(u);s.Time=h,t.exports=h},function(t,e,n){function i(t){return new Date(t).getFullYear()}function r(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function o(t,e){return new Date(t,e,1).getTime()}var s=n(76),u=n(5),c=[1,2,4,6,8,12],l=36e5,h=864e5;t.exports=function(t){var e,n=t.minInterval,f=[],p=t.min,g=t.max,d=t.interval;if(g===p&&(g=p+h),u(d)){var v=g-p,y=h,m=365*y;d=parseInt(v/(t.maxCount||6),10),n&&n>d&&(d=n);var x=d/m,b=i(p);if(x>.51){for(var _=Math.ceil(x),S=i(g),w=b;w<=S+_;w+=_)f.push(r(w));d=null}else if(x>.0834){for(var M=Math.ceil(x/.0834),k=a(p),C=function(t,e){var n=i(t),r=i(e),o=a(t);return 12*(r-n)+(a(e)-o)%12}(p,g),A=0;A<=C+M;A+=M)f.push(o(b,A+k));d=null}else if(d>.5*y){var P=new Date(p),O=P.getFullYear(),T=P.getMonth(p),I=P.getDate(),L=Math.ceil(d/y),R=function(t,e){return Math.ceil((e-t)/h)}(p,g);d=L*y;for(var D=0;D<R+L;D+=L)f.push(new Date(O,T,I+D).getTime())}else if(d>l){var E=new Date(p),j=E.getFullYear(),F=E.getMonth(p),B=E.getDate(),N=E.getHours(),Y=s.snapTo(c,Math.ceil(d/l)),z=function(t,e){return Math.ceil((e-t)/l)}(p,g);d=Y*l;for(var H=0;H<=z+Y;H+=Y)f.push(new Date(j,F,B,N+H).getTime())}else if(d>6e4){var V=function(t,e){return Math.ceil((e-t)/6e4)}(p,g),W=Math.ceil(d/6e4);d=6e4*W;for(var G=0;G<=V+W;G+=W)f.push(p+6e4*G)}else{d<1e3&&(d=1e3),p=1e3*Math.floor(p/1e3);var X=Math.ceil((g-p)/1e3),q=Math.ceil(d/1e3);d=1e3*q;for(var U=0;U<X+q;U+=q)f.push(p+1e3*U)}}if(!f.length){p=1e3*Math.floor(p/1e3),e=((g=1e3*Math.ceil(g/1e3))-p)/d;for(var Z=0;Z<=e;Z++)f.push(s.fixedBase(d*Z+p,d))}return{max:g,min:p,interval:d,ticks:f,count:f.length}}},function(t,e,n){var i=n(18),r=n(77),a=n(79),o=n(78),s=n(71),u=n(2),c=n(9),l=n(25),h=n(10),f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;u(e,function(n,i){e[i]=t._toTimeStamp(n)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},n.calculateTicks=function(){var t,e=this.tickCount;if(e){t=o({maxCount:e,data:this.values,isRounding:this.isRounding}).ticks}else t=this.values;return t},n.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=c(t)&&t<this.values.length?t:NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax(),r=this.translate(t);return e=1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0,n+e*(i-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var i=this.formatter;return e=parseInt(e,10),e=i?i(e):a.format(e,this.mask)},n.getTicks=function(){var t=this,e=this.ticks,n=[];return u(e,function(e){var i;i=l(e)?e:{text:h(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(i)}),n},n._toTimeStamp=function(t){return s.toTimeStamp(t)},e}(r);i.TimeCat=f,t.exports=f},function(t,e,n){function i(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var r=n(2),a=n(18),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this.base;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=i(e,this.max);if(this.min>0)t=Math.floor(i(e,this.min));else{var a=this.values,o=this.max;r(a,function(t){t>0&&t<o&&(o=t)}),o===this.max&&(o=this.max/e),o>1&&(o=1),t=Math.floor(i(e,o)),this._minTick=t,this.positiveMin=o}for(var s=n-t,u=this.tickCount,c=Math.ceil(s/u),l=[],h=t;h<n+c;h+=c)l.push(Math.pow(e,h));return 0===this.min&&l.unshift(0),l},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,a=this.positiveMin;a&&(n=1*a/r);return t<a?t/a/(i(r,e)-i(r,n)):(i(r,t)-i(r,n))/(i(r,e)-i(r,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e,n=this.base,r=i(n,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=i(n,s/n)))*o;if(t<u)return t/u*s}else e=i(n,this.min);var c=(t-a)/o*(r-e)+e;return Math.pow(n,c)},e}(n(33));a.Log=o,t.exports=o},function(t,e,n){function i(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var r=n(18),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},n.calculateTicks=function(){var t,e=this.exponent,n=Math.ceil(i(e,this.max));if((t=this.min>=0?Math.floor(i(e,this.min)):0)>n){var r=n;n=t,t=r}for(var a=n-t,o=this.tickCount,s=Math.ceil(a/o),u=[],c=t;c<n+s;c+=s)u.push(Math.pow(c,e));return u},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(i(r,t)-i(r,n))/(i(r,e)-i(r,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=i(n,this.max),a=i(n,this.min),o=e*(r-a)+a;return Math.pow(o,n)},e}(n(33));r.Pow=a,t.exports=a},function(t,e,n){var i=n(1),r=n(100),a=n(101),o=n(191),s=n(217),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},i.extend(u,a),i.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!i.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,i){var a=new r(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=i,a.target=i,a},_triggerEvent:function(t,e){var n,i=this.getPointByClient(e.clientX,e.clientY),r=this.getShape(i.x,i.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==r){var s=this._getEventObj("mouseleave",e,i,o);(n=this.getEmitter(o,e))&&n.emit("mouseleave",s),a.style.cursor="default"}if(r){var u=this._getEventObj("mousemove",e,i,r);if((n=this.getEmitter(r,e))&&n.emit("mousemove",u),o!==r){var c=this._getEventObj("mouseenter",e,i,r);n&&n.emit("mouseenter",c,e)}}else{var l=this._getEventObj("mousemove",e,i,this);this.emit("mousemove",l)}this.set("preShape",r)}else{var h=this._getEventObj(t,e,i,r||this);(n=this.getEmitter(r,e))&&n!==this&&n.emit(t,h),this.emit(t,h)}r&&!r.get("destroyed")&&(a.style.cursor=r.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");i.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){i.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){i.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){i.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",i.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),i.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),i=this.get("widthStyle"),r=this.get("heightStyle");t.style.width=i,t.style.height=r,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),i=t*n,r=e*n;this.set("widthCanvas",i),this.set("heightCanvas",r),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),i=this.get("pixelRatio")||1,r=n.getBoundingClientRect();return{x:(t-r.left)*i,y:(e-r.top)*i}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+n.left,clientY:e/i+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){"use strict";function i(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1],g=n[2],d=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*i+p*o+g*c,t[1]=f*r+p*s+g*l,t[2]=f*a+p*u+g*h,t[3]=d*i+v*o+y*c,t[4]=d*r+v*s+y*l,t[5]=d*a+v*u+y*h,t[6]=m*i+x*o+b*c,t[7]=m*r+x*s+b*l,t[8]=m*a+x*u+b*h,t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new a.ARRAY_TYPE(9);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new a.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.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[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,r,o,s,u,c){var l=new a.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,i,r,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=l*o-s*c,f=-l*a+s*u,p=c*a-o*u,g=n*h+i*f+r*p;return g?(g=1/g,t[0]=h*g,t[1]=(-l*i+r*c)*g,t[2]=(s*i-r*o)*g,t[3]=f*g,t[4]=(l*n-r*u)*g,t[5]=(-s*n+r*a)*g,t[6]=p*g,t[7]=(-c*n+i*u)*g,t[8]=(o*n-i*a)*g,t):null},e.adjoint=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=o*l-s*c,t[1]=r*c-i*l,t[2]=i*s-r*o,t[3]=s*u-a*l,t[4]=n*l-r*u,t[5]=r*a-n*s,t[6]=a*c-o*u,t[7]=i*u-n*c,t[8]=n*o-i*a,t},e.determinant=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*r+o*s)+i*(u*r-a*s)},e.multiply=i,e.translate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*i+p*o+c,t[7]=f*r+p*s+l,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*i+f*o,t[1]=p*r+f*s,t[2]=p*a+f*u,t[3]=p*o-f*i,t[4]=p*s-f*r,t[5]=p*u-f*a,t[6]=c,t[7]=l,t[8]=h,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,u=r+r,c=n*o,l=i*o,h=i*s,f=r*o,p=r*s,g=r*u,d=a*o,v=a*s,y=a*u;return t[0]=1-h-g,t[3]=l-y,t[6]=f+v,t[1]=l+y,t[4]=1-c-g,t[7]=p-d,t[2]=f-v,t[5]=p+d,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],g=e[12],d=e[13],v=e[14],y=e[15],m=n*s-i*o,x=n*u-r*o,b=n*c-a*o,_=i*u-r*s,S=i*c-a*s,w=r*c-a*u,M=l*d-h*g,k=l*v-f*g,C=l*y-p*g,A=h*v-f*d,P=h*y-p*d,O=f*y-p*v,T=m*O-x*P+b*A+_*C-S*k+w*M;return T?(T=1/T,t[0]=(s*O-u*P+c*A)*T,t[1]=(u*C-o*O-c*k)*T,t[2]=(o*P-s*C+c*M)*T,t[3]=(r*P-i*O-a*A)*T,t[4]=(n*O-r*C+a*k)*T,t[5]=(i*C-n*P-a*M)*T,t[6]=(d*w-v*S+y*_)*T,t[7]=(v*b-g*w-y*x)*T,t[8]=(g*S-d*b+y*m)*T,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=r,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},e.exactEquals=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[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=e[0],p=e[1],g=e[2],d=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-f)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=a.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(r-g)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(o-d)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-v)<=a.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-y)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=a.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-x)<=a.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(h-b)<=a.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.mul=i,e.sub=r},function(t,e,n){"use strict";function i(){var t=new h.ARRAY_TYPE(2);return h.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function o(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function s(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function u(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function c(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function l(t){var e=t[0],n=t[1];return e*e+n*n}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=i,e.clone=function(t){var e=new h.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new h.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=r,e.multiply=a,e.divide=o,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.distance=s,e.squaredDistance=u,e.length=c,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*h.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},e.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},e.rotate=function(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));var s=r*r+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*r+i*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1];return Math.abs(n-r)<=h.EPSILON*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-a)<=h.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))};var h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.len=c,e.sub=r,e.mul=a,e.div=o,e.dist=s,e.sqrDist=u,e.sqrLen=l,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,u=void 0;for(n||(n=2),i||(i=0),u=r?Math.min(r*n+i,e.length):e.length,s=i;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e,n){"use strict";function i(){var t=new g.ARRAY_TYPE(3);return g.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function r(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function a(t,e,n){var i=new g.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function l(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function h(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function f(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=i,e.clone=function(t){var e=new g.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=r,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},e.distance=c,e.squaredDistance=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=p,e.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=r*u-a*s,t[1]=a*o-i*u,t[2]=i*s-r*o,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},e.hermite=function(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+i[0]*c+r[0]*l,t[1]=e[1]*s+n[1]*u+i[1]*c+r[1]*l,t[2]=e[2]*s+n[2]*u+i[2]*c+r[2]*l,t},e.bezier=function(t,e,n,i,r,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*c+n[0]*l+i[0]*h+r[0]*f,t[1]=e[1]*c+n[1]*l+i[1]*h+r[1]*f,t[2]=e[2]*c+n[2]*l+i[2]*h+r[2]*f,t},e.random=function(t,e){e=e||1;var n=2*g.RANDOM()*Math.PI,i=2*g.RANDOM()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],l=r*c-a*u,h=a*s-i*c,f=i*u-r*s,p=r*f-a*h,g=a*l-i*f,d=i*h-r*l,v=2*o;return l*=v,h*=v,f*=v,p*=2,g*=2,d*=2,t[0]=s+l+p,t[1]=u+h+g,t[2]=c+f+d,t},e.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),i=a(e[0],e[1],e[2]);f(n,n),f(i,i);var r=p(n,i);return r>1?0:r<-1?Math.PI:Math.acos(r)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=g.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=g.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=g.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))};var g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.sub=o,e.mul=s,e.div=u,e.dist=c,e.sqrDist=l,e.len=r,e.sqrLen=h,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,u=void 0;for(n||(n=3),i||(i=0),u=r?Math.min(r*n+i,e.length):e.length,s=i;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},function(t,e,n){var i=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(i.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(i.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function r(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){i(e)||(r(e)?(t[0]*=e[0],t[4]*=e[4]):o.mat3.multiply(t,t,e))}var o=n(1);t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return o.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return o.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return o.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,i=this.get("y")||0;return this.translate(t-n,e-i),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",o.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),o.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var i=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){o.mat3.multiply(i,t.attr("matrix"),i)}),i},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){a(t,e.getTotalMatrix())}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(r(e))t[0]/=e[0],t[1]/=e[4];else{var n=o.mat3.invert([],e);n&&o.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var i=n(1),r={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,o,s){void 0===s&&(s=0);this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var c=this.get("animators")||[];u._timer||u.initTimer(),i.isNumber(o)&&(s=o,o=null),i.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var l=function(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=i.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=i.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;r[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}(t,this),h={fromAttrs:function(t,e){var n={},i=e._attrs;for(var r in t.attrs)n[r]=i[r];return n}(l,this),toAttrs:l.attrs,fromMatrix:i.clone(this.getMatrix()),toMatrix:l.matrix,duration:e,easing:n,callback:o,delay:s,startTime:u.getTime(),id:i.uniqueId()};c.length>0?c=function(t,e){var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,function(e,a){i.each(t,function(t){n<t.startTime+t.duration&&r.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])})}),e.toMatrix&&i.each(t,function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix}),t}(c,h):u.addAnimator(this),c.push(h),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return i.each(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var i=n(6);i.Arc=n(105),i.Circle=n(106),i.Dom=n(107),i.Ellipse=n(108),i.Fan=n(109),i.Image=n(110),i.Line=n(111),i.Marker=n(57),i.Path=n(112),i.Polygon=n(113),i.Polyline=n(114),i.Rect=n(115),i.Text=n(116),t.exports=i},function(t,e,n){function i(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var r=n(1),a=n(55),o={arc:n(37),ellipse:n(104),line:n(36)},s=r.createDom('<canvas width="500" height="500"></canvas>').getContext("2d"),u={arc:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(i,r,o,s,u,c,l,t,e)},circle:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(i,r,o,t,e)||a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e):u?a.circle(i,r,o,t,e):!!c&&a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,i=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,l=n.ry,h=this.getHitLineWidth(),f=c>l?c:l,p=c>l?1:c/l,g=c>l?l/c:1,d=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[p,g]),r.mat3.translate(v,v,[s,u]);var y=r.mat3.invert([],v);return r.vec3.transformMat3(d,d,y),i&&o?a.circle(0,0,f,d[0],d[1])||a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1]):i?a.circle(0,0,f,d[0],d[1]):!!o&&a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1])},fan:function(t,e){function n(){var t=o.arc.nearAngle(x,d,v,y);if(r.isNumberEqual(x,t)){var e=r.vec2.squaredLength(m);if(p*p<=e&&e<=g*g)return!0}return!1}function i(){var n=s.getHitLineWidth(),i={x:Math.cos(d)*p+h,y:Math.sin(d)*p+f},r={x:Math.cos(d)*g+h,y:Math.sin(d)*g+f},o={x:Math.cos(v)*p+h,y:Math.sin(v)*p+f},u={x:Math.cos(v)*g+h,y:Math.sin(v)*g+f};return!!(a.line(i.x,i.y,r.x,r.y,n,t,e)||a.line(o.x,o.y,u.x,u.y,n,t,e)||a.arcline(h,f,p,d,v,y,n,t,e)||a.arcline(h,f,g,d,v,y,n,t,e))}var s=this,u=s.hasFill(),c=s.hasStroke(),l=s._attrs,h=l.x,f=l.y,p=l.rs,g=l.re,d=l.startAngle,v=l.endAngle,y=l.clockwise,m=[t-h,e-f],x=r.vec2.angleTo([1,0],m);return u&&c?n()||i():u?n():!!c&&i()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var i=n.x,r=n.y,o=n.width,s=n.height;return a.rect(i,r,o,s,t,e)},line:function(t,e){var n=this._attrs,i=n.x1,r=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(i,r,o,s,u,t,e)},path:function(t,e){function n(){if(!r.isEmpty(o)){for(var n=a.getHitLineWidth(),i=0,s=o.length;i<s;i++)if(o[i].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?i(t,e,a)||n():s?i(t,e,a):!!u&&n()},marker:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(i,r,o+s/2,t,e)},polygon:function(t,e){function n(){var n=r._attrs.points;if(n.length<2)return!1;var i=r.getHitLineWidth(),o=n.slice(0);return n.length>=3&&o.push(n[0]),a.polyline(o,i,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var i=n.points;if(i.length<2)return!1;var r=n.lineWidth;return a.polyline(i,r,t,e)}return!1},rect:function(t,e){function n(){var n=r._attrs,i=n.x,o=n.y,s=n.width,u=n.height,c=n.radius,l=r.getHitLineWidth();if(0===c){var h=l/2;return a.line(i-h,o,i+s+h,o,l,t,e)||a.line(i+s,o-h,i+s,o+u+h,l,t,e)||a.line(i+s+h,o+u,i-h,o+u,l,t,e)||a.line(i,o+u+h,i,o-h,l,t,e)}return a.line(i+c,o,i+s-c,o,l,t,e)||a.line(i+s,o+c,i+s,o+u-c,l,t,e)||a.line(i+s-c,o+u,i+c,o+u,l,t,e)||a.line(i,o+u-c,i,o+c,l,t,e)||a.arcline(i+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(i+s-c,o+u-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(i+c,o+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(i+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=u[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function i(t,e,n){var i=e.startTime;if(n<i+e.delay||e.isPaused)return!1;var o,u=e.duration,h=e.easing;if(n=n-i-e.delay,e.toAttrs.repeat)o=n%u/u,o=s[h](o);else{if(!((o=n/u)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;o=s[h](o)}return function(t,e,n){var i={},o=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var h;for(var f in o)if(!r.isEqual(s[f],o[f]))if("path"===f){var p=o[f],g=s[f];p.length>g.length?(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.fillPathByDiff(g,p),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),i[f]=[];for(var d=0;d<p.length;d++){for(var v=p[d],y=g[d],m=[],x=0;x<v.length;x++)r.isNumber(v[x])&&y&&r.isNumber(y[x])?(h=c(y[x],v[x]),m.push(h(n))):m.push(v[x]);i[f].push(m)}}else h=c(s[f],o[f]),i[f]=h(n);if(u){var b=l(e.fromMatrix,u)(n);t.setMatrix(b)}t.attr(i)}}(t,e,o),!1}var r=n(1),a=n(58),o=n(170),s=n(173),u=n(204),c=u.interpolate,l=u.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};r.augment(h,{initTimer:function(){var t,e,n,r=this,a=this,s=!1;a._timer=o.timer(function(o){if(a._current=o,r._animators.length>0){for(var u=r._animators.length-1;u>=0;u--)if((t=r._animators[u]).get("destroyed"))a.removeAnimator(u);else{if(!t.get("pause").isPaused)for(var c=(e=t.get("animators")).length-1;c>=0;c--)n=e[c],(s=i(t,n,o))&&(e.splice(c,1),s=!1,n.callback&&n.callback());0===e.length&&a.removeAnimator(u)}r.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";var i=n(59);e.a=function(t,e,n){var r=new i.a;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r}},function(t,e,n){"use strict";var i=n(59);e.a=function(t,e,n){var r=new i.a,a=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Object(i.b)():+n,r.restart(function i(o){o+=a,r.restart(i,a+=e,n),t(o)},e,n),r)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return a});var i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),r=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*r)},e.c=function(t){return Math.sin(t*r)},e.b=function(t){return(1-Math.cos(i*t))/2};var i=Math.PI,r=i/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";function i(t){return(t=+t)<r?p*t*t:t<o?p*(t-=a)*t+s:t<c?p*(t-=u)*t+l:p*(t-=h)*t+f}e.a=function(t){return 1-i(1-t)},e.c=i,e.b=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2};var r=4/11,a=6/11,o=8/11,s=.75,u=9/11,c=10/11,l=.9375,h=21/22,f=63/64,p=1/r/r},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return a});var i=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),r=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o});var i=2*Math.PI,r=function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((a-t)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3),a=function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3),o=function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((a-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((a+t)/n))/2}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(60);n.d(e,"interpolate",function(){return i.a});var r=n(121);n.d(e,"interpolateArray",function(){return r.a});var a=n(63);n.d(e,"interpolateBasis",function(){return a.b});var o=n(119);n.d(e,"interpolateBasisClosed",function(){return o.a});var s=n(122);n.d(e,"interpolateDate",function(){return s.a});var u=n(40);n.d(e,"interpolateNumber",function(){return u.a});var c=n(123);n.d(e,"interpolateObject",function(){return c.a});var l=n(207);n.d(e,"interpolateRound",function(){return l.a});var h=n(124);n.d(e,"interpolateString",function(){return h.a});var f=n(208);n.d(e,"interpolateTransformCss",function(){return f.a}),n.d(e,"interpolateTransformSvg",function(){return f.b});var p=n(211);n.d(e,"interpolateZoom",function(){return p.a});var g=n(118);n.d(e,"interpolateRgb",function(){return g.a}),n.d(e,"interpolateRgbBasis",function(){return g.b}),n.d(e,"interpolateRgbBasisClosed",function(){return g.c});var d=n(212);n.d(e,"interpolateHsl",function(){return d.a}),n.d(e,"interpolateHslLong",function(){return d.b});var v=n(213);n.d(e,"interpolateLab",function(){return v.a});var y=n(214);n.d(e,"interpolateHcl",function(){return y.a}),n.d(e,"interpolateHclLong",function(){return y.b});var m=n(215);n.d(e,"interpolateCubehelix",function(){return m.b}),n.d(e,"interpolateCubehelixLong",function(){return m.a});var x=n(216);n.d(e,"quantize",function(){return x.a})},function(t,e,n){"use strict";function i(t){if(t instanceof a)return new a(t.l,t.a,t.b,t.opacity);if(t instanceof f)return p(t);t instanceof d.b||(t=Object(d.h)(t));var e,n,i=c(t.r),r=c(t.g),s=c(t.b),u=o((.2225045*i+.7168786*r+.0606169*s)/m);return i===r&&r===s?e=n=u:(e=o((.4360747*i+.3850649*r+.1430804*s)/y),n=o((.0139322*i+.0971045*r+.7141733*s)/x)),new a(116*u-16,500*(e-u),200*(u-n),t.opacity)}function r(t,e,n,r){return 1===arguments.length?i(t):new a(t,e,n,null==r?1:r)}function a(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function o(t){return t>w?Math.pow(t,1/3):t/S+b}function s(t){return t>_?t*t*t:S*(t-b)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof f)return new f(t.h,t.c,t.l,t.opacity);if(t instanceof a||(t=i(t)),0===t.a&&0===t.b)return new f(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*v.b;return new f(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function h(t,e,n,i){return 1===arguments.length?l(t):new f(t,e,n,null==i?1:i)}function f(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function p(t){if(isNaN(t.h))return new a(t.l,0,0,t.opacity);var e=t.h*v.a;return new a(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.a=r,e.b=h;var g=n(62),d=n(61),v=n(117),y=.96422,m=1,x=.82521,b=4/29,_=6/29,S=3*_*_,w=_*_*_;Object(g.a)(a,r,Object(g.b)(d.a,{brighter:function(t){return new a(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new a(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=y*s(e),t=m*s(t),n=x*s(n),new d.b(u(3.1338561*e-1.6168667*t-.4906146*n),u(-.9787684*e+1.9161415*t+.033454*n),u(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(g.a)(f,h,Object(g.b)(d.a,{brighter:function(t){return new f(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new f(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}))},function(t,e,n){"use strict";function i(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof r)return new r(t.h,t.s,t.l,t.opacity);t instanceof o.b||(t=Object(o.h)(t));var e=t.r/255,n=t.g/255,i=t.b/255,a=(d*i+p*e-g*n)/(d+p-g),u=i-a,c=(f*(n-a)-l*u)/h,v=Math.sqrt(c*c+u*u)/(f*a*(1-a)),y=v?Math.atan2(c,u)*s.b-120:NaN;return new r(y<0?y+360:y,v,a,t.opacity)}(t):new r(t,e,n,null==i?1:i)}function r(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}e.a=i;var a=n(62),o=n(61),s=n(117),u=-.14861,c=1.78277,l=-.29227,h=-.90649,f=1.97294,p=f*h,g=f*c,d=c*l-h*u;Object(a.a)(r,i,Object(a.b)(o.a,{brighter:function(t){return t=null==t?o.c:Math.pow(o.c,t),new r(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o.d:Math.pow(o.d,t),new r(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new o.b(255*(e+n*(u*i+c*r)),255*(e+n*(l*i+h*r)),255*(e+n*(f*i)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function i(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],c=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(r.a)(t,a)},{i:c-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,c),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r.a)(t,n)},{i:u-2,x:Object(r.a)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,c),o=s=null,function(t){for(var e,n=-1,i=c.length;++n<i;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(40),a=n(209),o=i(a.a,"px, ","px)","deg)"),s=i(a.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(i||(i=document.createElement("DIV"),r=document.documentElement,a=document.defaultView),i.style.transform=t,t=a.getComputedStyle(r.appendChild(i),null).getPropertyValue("transform"),r.removeChild(i),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var i,r,a,o,s=n(210)},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var i=180/Math.PI,r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,r,a,o){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*i,skewX:Math.atan(c)*i,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";function i(t){return((t=Math.exp(t))+1/t)/2}var r=Math.SQRT2;e.a=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],c=e[0],l=e[1],h=e[2],f=c-o,p=l-s,g=f*f+p*p;if(g<1e-12)a=Math.log(h/u)/r,n=function(t){return[o+t*f,s+t*p,u*Math.exp(r*t*a)]};else{var d=Math.sqrt(g),v=(h*h-u*u+4*g)/(2*u*2*d),y=(h*h-u*u-4*g)/(2*h*2*d),m=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(y*y+1)-y);a=(x-m)/r,n=function(t){var e=t*a,n=i(m),c=u/(2*d)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(r*e+m)-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*f,s+c*p,u*n/i(r*e+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";function i(t){return function(e,n){var i=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=Object(a.a)(e.s,n.s),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var r=n(17),a=n(28);e.a=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(r.a)((t=Object(i.e)(t)).l,(e=Object(i.e)(e)).l),a=Object(r.a)(t.a,e.a),o=Object(r.a)(t.b,e.b),s=Object(r.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}};var i=n(17),r=n(28)},function(t,e,n){"use strict";function i(t){return function(e,n){var i=t((e=Object(r.c)(e)).h,(n=Object(r.c)(n)).h),o=Object(a.a)(e.c,n.c),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var r=n(17),a=n(28);e.a=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";function i(t){return function e(n){function i(e,i){var o=t((e=Object(r.b)(e)).h,(i=Object(r.b)(i)).h),s=Object(a.a)(e.s,i.s),u=Object(a.a)(e.l,i.l),c=Object(a.a)(e.opacity,i.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,i.gamma=e,i}(1)}n.d(e,"a",function(){return o});var r=n(17),a=n(28);e.b=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t(i/(e-1));return n}},function(t,e,n){t.exports={canvas:n(218),svg:n(221)}},function(t,e,n){t.exports={painter:n(219)}},function(t,e,n){var i=n(1),r=n(220),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=i.uniqueId("canvas_"),n=i.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()}),n.beforeDraw();try{n._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var i=0;i<e.length;i++)n=e[i],e[i].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=r.parseStyle(s,t,e)),"strokeStyle"===o&&(s=r.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?i.isArray(s)?e.setLineDash(s):i.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function i(t,e){var n=t.match(l);r.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var r=n(1),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,u=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,h={};t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(a),r.each(t,function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a,o,u=s.exec(t),c=r.mod(r.toRadian(parseFloat(u[1])),2*Math.PI),l=u[2],h=e.getBBox();c>=0&&c<.5*Math.PI?(a={x:h.minX,y:h.minY},o={x:h.maxX,y:h.maxY}):.5*Math.PI<=c&&c<Math.PI?(a={x:h.maxX,y:h.minY},o={x:h.minX,y:h.maxY}):Math.PI<=c&&c<1.5*Math.PI?(a={x:h.maxX,y:h.maxY},o={x:h.minX,y:h.minY}):(a={x:h.minX,y:h.maxY},o={x:h.maxX,y:h.minY});var f=Math.tan(c),p=f*f,g=(o.x-a.x+f*(o.y-a.y))/(p+1)+a.x,d=f*(o.x-a.x+f*(o.y-a.y))/(p+1)+a.y,v=n.createLinearGradient(a.x,a.y,g,d);return i(l,v),v}(t,e,n);if("r"===t[0])return function(t,e,n){var r=u.exec(t),a=parseFloat(r[1]),o=parseFloat(r[2]),s=parseFloat(r[3]),c=r[4];if(0===s){var h=c.match(l);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,g=f.maxY-f.minY,d=Math.sqrt(p*p+g*g)/2,v=n.createRadialGradient(f.minX+p*a,f.minY+g*o,s*d,f.minX+p/2,f.minY+g/2,d);return i(c,v),v}(t,e,n);if("p"===t[0])return function(t,e,n){function i(){r=n.createPattern(a,s),e.setSilent("pattern",r),e.setSilent("patternSource",t)}if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,a,o=c.exec(t),s=o[1],u=o[2];switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return a=new Image,u.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=u,a.complete?i():(a.onload=i,a.src=a.src),r}(t,e,n)}return t}},numberToColor:function(t){var e=h[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,h[t]=e}return e}}},function(t,e,n){t.exports={painter:n(222),getShape:n(229)}},function(t,e,n){var i=n(1),r=n(27).parseRadius,a=n(57),o=n(223),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function t(t){if(!t)return null;var e=i.uniqueId("canvas_"),n=i.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{t.resetMatrix(),n._drawGroup(t,!1)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this._drawChildren(t,!1)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(i.each(n.tobeRemoved,function(t){t.parentNode&&t.parentNode.removeChild(t)}),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t,e))},e._drawChildren=function(t,e){var n,i=t._cfg.children;if(i){if(t._cfg.el&&!e){var r=t._cfg.el.childNodes.length+1;0!==r&&r!==i.length&&(e=!0)}for(var a=0;a<i.length;a++)(n=i[a]).isGroup?this._drawGroup(n,e):this._drawShape(n,e)}},e._drawShape=function(t,e){var n=t._attrs,i=t._cfg,r=i.el;i.removed||i.destroyed?r&&r.parentNode.removeChild(i.el):(e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null),!r&&i.parent&&(this._createDom(t),this._updateShape(t)),r=i.el,!1!==i.visible?(i.visible&&r.hasAttribute("visibility")&&r.removeAttribute("visibility"),i.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):r.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e));for(var r in e)e[r]!==n[r]&&this._setAttribute(t,r,e[r]);t._cfg.attrs=i.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},e._setAttribute=function(t,e,n){var r=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==r&&"rect"!==r||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(r)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===r&&"points"===e)return n&&0!==n.length||(n=""),i.isArray(n)&&(n=(n=n.map(function(t){return t[0]+","+t[1]})).join(" ")),void o.setAttribute("points",n);if("path"===e&&i.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var c=null;c="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t._cfg[e]=c}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t){var e=s[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var i=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=i,t._cfg.parent&&t._cfg.parent.get("el").appendChild(i),t._cfg.attrs={},"text"===t.type?(i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||i.setAttribute("stroke","none"),n.fill||n.fillStyle||i.setAttribute("fill","none")),i},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),i.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var u=r(s);i.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;return[["M "+(e+u.r1)+","+n],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e._formatPath=function(t){return~(t=t.map(function(t){return t.join(" ")}).join("")).indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,r=t._cfg.el;if(i.isString(e))r.setAttribute("href",e);else if(e instanceof Image)n.width||(r.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(r.setAttribute("height",e.height),t._attrs.height=e.height),r.setAttribute("href",e.src);else if(e instanceof HTMLElement&&i.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())r.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(r.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(r.setAttribute("height",e.height),t._attrs.height=e.height),r.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,r=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;i.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,g=n.re,d=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+d.x+","+d.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+g+","+g+",0,"+f+","+h+","+l.x+","+l.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),r.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,i=t._cfg.el;this._setFont(t);for(var r in e)if(e[r]!==n[r]){if("text"===r){this._setText(t,""+e[r]);continue}if("fillStyle"===r||"strokeStyle"===r){this._setColor(t,r,e[r]);continue}if("matrix"===r){this._setTransform(t);continue}u[r]&&i.setAttribute(u[r],e[r])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,i=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),i&&+i<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+i/12,+i/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,r=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";i.each(o,function(t,e){0===e?"alphabetic"===r?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===r?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===r?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===r?u+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===r&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var i=this.context.addClip(e);n.setAttribute("clip-path","url(#"+i+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var i=t._cfg.el,r=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=r.find("gradient",n);a||(a=r.addGradient(n)),i.setAttribute(u[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=r.find("pattern",n);o||(o=r.addPattern(n)),i.setAttribute(u[e],"url(#"+o+")")}else i.setAttribute(u[e],n);else i.setAttribute(u[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,i={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(i.dx||i.dy||i.blur||i.color){var r=this.context.find("filter",i);r||(r=this.context.addShadow(i,this)),e.setAttribute("filter","url(#"+r+")")}else e.removeAttribute("filter")},t}();t.exports=h},function(t,e,n){var i=n(1),r=n(224),a=n(225),o=n(226),s=n(227),u=n(228),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=i.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},e.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new o(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),i.id},e.addGradient=function(t){var e=new r(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){function i(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),r.each(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var r=n(1),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,o,s=a.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var l=Math.tan(u),h=l*l,f=(o.x-n.x+l*(o.y-n.y))/(h+1)+n.x,p=l*(o.x-n.x+l*(o.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=i(c)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),a=parseFloat(n[2]),s=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",a),e.setAttribute("r",s),e.innerHTML=i(u)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var i=n(1),r={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return i.each(a,function(t,n){e.setAttribute(n,t)}),this.el=e,this.id=i.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return i.each(Object.keys(r),function(t){if(r[t]!==e[t])return n=!1,!1}),n},e.update=function(t,e){var n=this.cfg;return n[r[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var i=n(1),r=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=i.uniqueId("marker_");n.setAttribute("id",r);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=r,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,r=this.cfg.path,a=this.cfg.d;i.isArray(r)&&(r=r.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",r),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=i.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){function e(){console.log(u.width,u.height),n.setAttribute("width",u.width),n.setAttribute("height",u.height)}var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var a=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(a);var o=i.uniqueId("pattern_");n.id=o,this.el=n,this.id=o,this.cfg=t;var s=r.exec(t)[2];a.setAttribute("href",s);var u=new Image;return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?e():(u.onload=e,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,i){var r=i.target||i.srcElement;if(!n[r.tagName]){for(var a=r.parentNode;a&&!n[a.tagName];)a=a.parentNode;r=a}return this._cfg.el===r?this:this.find(function(t){return t._cfg&&t._cfg.el===r})}},function(t,e,n){t.exports={addEventListener:n(231),createDom:n(94),getBoundingClientRect:n(232),getHeight:n(233),getOuterHeight:n(234),getOuterWidth:n(235),getRatio:n(236),getStyle:n(237),getWidth:n(238),modifyCSS:n(95),requestAnimationFrame:n(96)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),i=document.documentElement.clientTop,r=document.documentElement.clientLeft;return{top:n.top-i,bottom:n.bottom-i,left:n.left-r,right:n.right-r}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),i=parseFloat(this.getStyle(t,"borderTopWidth"))||0,r=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+i+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+r+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),i=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,r=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+i+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+r+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var i=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return i(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={contains:n(41),difference:n(240),find:n(241),firstValue:n(242),flatten:n(243),flattenDeep:n(244),getRange:n(245),merge:n(42),pull:n(90),pullAt:n(129),reduce:n(246),remove:n(247),sortBy:n(248),union:n(249),uniq:n(130),valuesOfKey:n(65)}},function(t,e,n){var i=n(64),r=n(41);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(t,function(t){return!r(e,t)})}},function(t,e,n){var i=n(11),r=n(26),a=n(127);t.exports=function(t,e){var n=void 0;if(i(e)&&(n=e),r(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o<t.length;o+=1)if(n(t[o]))return t[o];return null}},function(t,e,n){var i=n(5),r=n(4);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!i(o)){n=r(o)?o[0]:o;break}}return n}},function(t,e,n){var i=n(4),r=n(2);t.exports=function(t){if(!i(t))return t;var e=[];return r(t,function(t){i(t)?r(t,function(t){e.push(t)}):e.push(t)}),e}},function(t,e,n){var i=n(4);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(i(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n}},function(t,e,n){var i=n(64),r=n(4);t.exports=function(t){if(!(t=i(t,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(r(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e,n){var i=n(4),r=n(26),a=n(2);t.exports=function(t,e,n){if(!i(t)&&!r(t))return t;var o=n;return a(t,function(t,n){o=e(o,t,n)}),o}},function(t,e,n){var i=n(13),r=n(129);t.exports=function(t,e){var n=[];if(!i(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return r(t,o),n}},function(t,e,n){var i=n(10),r=n(11),a=n(4);t.exports=function(t,e){var n=void 0;if(r(e))n=function(t,n){return e(t)-e(n)};else{var o=[];i(e)?o.push(e):a(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var i=o[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var i=n(2),r=n(34),a=n(130);t.exports=function(){var t=[],e=r(arguments);return i(e,function(e){t=t.concat(e)}),a(t)}},function(t,e,n){t.exports={getWrapBehavior:n(251),wrapBehavior:n(252)}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var i=n(254);t.exports={number2color:i,numberToColor:i,parsePath:n(255),parseRadius:n(256)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var i=t.toString(16),r=i.length;r<6;r++)i="0"+i;e="#"+i,n[t]=e}return e}},function(t,e,n){var i=n(4),r=n(10),a=n(2),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return t=t||[],i(t)?t:r(t)?(t=t.match(o),a(t,function(e,n){if((e=e.match(s))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}a(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){var i=n(4);t.exports=function(t){var e=0,n=0,r=0,a=0;return i(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}}},function(t,e,n){var i=n(35);t.exports={clamp:n(51),fixedBase:n(258),isDecimal:n(259),isEven:n(260),isInteger:n(261),isNegative:n(262),isNumberEqual:i,isOdd:n(263),isPositive:n(264),maxBy:n(131),minBy:n(265),mod:n(93),snapEqual:i,toDegree:n(92),toInt:n(132),toInteger:n(132),toRadian:n(91)}},function(t,e){t.exports=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%1!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2==0}},function(t,e,n){var i=n(9),r=Number.isInteger?Number.isInteger:function(t){return i(t)&&t%1==0};t.exports=r},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t<0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t>0}},function(t,e,n){var i=n(4),r=n(11),a=n(2);t.exports=function(t,e){if(i(t)){var n=t[0],o=void 0;o=r(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=r(e)?e(t):t[e])<o&&(n=t,o=s)}),n}}},function(t,e,n){t.exports={forIn:n(267),has:n(133),hasKey:n(268),hasValue:n(269),keys:n(128),isMatch:n(127),values:n(134)}},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(133)},function(t,e,n){var i=n(41),r=n(134);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){var i=n(271),r=n(138),a=n(137),o=n(140);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(272),fillPathByDiff:n(273),formatPath:n(275),intersection:i,pathIntersection:i,parsePathArray:n(136),parsePathString:n(139),pathToAbsolute:r,path2absolute:r,pathTocurve:a,path2curve:a,rectPath:n(135)}},function(t,e,n){var i=n(4),r=n(135),a=n(137),o=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},s=function(t,e,n,i,r,a,s,u,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var d=l*h[g]+l,v=o(d,t,n,r,s),y=o(d,e,i,a,u),m=v*v+y*y;p+=f[g]*Math.sqrt(m)}return l*p},u=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var c=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,l=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},l=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:r(t,e,n,i),vb:[t,e,n,i].join(" ")}},h=function(t,e,n,r,a,o,s,u){i(t)||(t=[t,e,n,r,a,o,s,u]);var c=function(t,e,n,i,r,a,o,s){for(var u=[],c=[[],[]],l=void 0,h=void 0,f=void 0,p=void 0,g=0;g<2;++g)if(0===g?(h=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*o,f=3*n-3*t):(h=6*e-12*i+6*a,l=-3*e+9*i-9*a+3*s,f=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var d=h*h-4*f*l,v=Math.sqrt(d);if(!(d<0)){var y=(-h+v)/(2*l);y>0&&y<1&&u.push(y);var m=(-h-v)/(2*l);m>0&&m<1&&u.push(m)}}for(var x=u.length,b=x,_=void 0;x--;)_=1-(p=u[x]),c[0][x]=_*_*_*t+3*_*_*p*n+3*_*p*p*r+p*p*p*o,c[1][x]=_*_*_*e+3*_*_*p*i+3*_*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}}.apply(null,t);return l(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},f=function(t,e,n,i,r,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(r-2*n+t),d=e+2*u*(i-e)+f*(a-2*i+e),v=n+2*u*(r-n)+f*(o-2*r+n),y=i+2*u*(a-i)+f*(s-2*a+i);return{x:l*t+3*h*u*n+3*c*u*u*r+p*o,y:l*e+3*h*u*i+3*c*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*i},end:{x:c*r+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},p=function(t,e,n){if(!function(t,e){return t=l(t),e=l(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(h(t),h(e)))return n?0:[];for(var i=~~(s.apply(0,t)/8),r=~~(s.apply(0,e)/8),a=[],o=[],p={},g=n?0:[],d=0;d<i+1;d++){var v=f.apply(0,t.concat(d/i));a.push({x:v.x,y:v.y,t:d/i})}for(var y=0;y<r+1;y++){var m=f.apply(0,e.concat(y/r));o.push({x:m.x,y:m.y,t:y/r})}for(var x=0;x<i;x++)for(var b=0;b<r;b++){var _=a[x],S=a[x+1],w=o[b],M=o[b+1],k=Math.abs(S.x-_.x)<.001?"y":"x",C=Math.abs(M.x-w.x)<.001?"y":"x",A=u(_.x,_.y,S.x,S.y,w.x,w.y,M.x,M.y);if(A){if(p[A.x.toFixed(4)]===A.y.toFixed(4))continue;p[A.x.toFixed(4)]=A.y.toFixed(4);var P=_.t+Math.abs((A[k]-_[k])/(S[k]-_[k]))*(S.t-_.t),O=w.t+Math.abs((A[C]-w[C])/(M[C]-w[C]))*(M.t-w.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?g++:g.push({x:A.x,y:A.y,t1:P,t2:O}))}}return g};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var i=void 0,r=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,g=void 0,d=n?0:[],v=0,y=t.length;v<y;v++){var m=t[v];if("M"===m[0])i=u=m[1],r=c=m[2];else{"C"===m[0]?(i=(f=[i,r].concat(m.slice(1)))[6],r=f[7]):(f=[i,r,i,r,u,c,u,c],i=u,r=c);for(var x=0,b=e.length;x<b;x++){var _=e[x];if("M"===_[0])o=l=_[1],s=h=_[2];else{"C"===_[0]?(o=(g=[o,s].concat(_.slice(1)))[6],s=g[7]):(g=[o,s,o,s,l,h,l,h],o=l,s=h);var S=p(f,g,n);if(n)d+=S;else{for(var w=0,M=S.length;w<M;w++)S[w].segment1=v,S[w].segment2=x,S[w].bez1=f,S[w].bez2=g;d=d.concat(S)}}}}}return d}(t,e)}},function(t,e){function n(t,e){function n(t,e){if(1===t.length)i.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&i.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];n(a,e)}}var i=[],r=[];return t.length&&n(t,e),{left:i,right:r.reverse()}}function i(t,e,i){if(1===i)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,i){var r=[[t[1],t[2]]];i=i||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/i,u=0;u<i-1;u++){var c=n(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,i));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=i-1;o++)r.push(a)}return r}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(var u=0;u<r;u++){var c=Math.floor(a*u);o[c]=(o[c]||0)+1}var l=o.reduce(function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}},function(t,e,n){function i(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var r=n(274);t.exports=function(t,e){var n=function(t,e){var n=t.length,a=e.length,o=void 0,s=void 0,u=0;if(0===n||0===a)return null;for(var c=[],l=0;l<=n;l++)c[l]=[],c[l][0]={min:l};for(var h=0;h<=a;h++)c[0][h]={min:h};for(var f=1;f<=n;f++){o=t[f-1];for(var p=1;p<=a;p++){s=e[p-1],u=r(o,s)?0:1;var g=c[f-1][p].min+1,d=c[f][p-1].min+1,v=c[f-1][p-1].min+u;c[f][p]=i(g,d,v)}}return c}(t,e),a=t.length,o=e.length,s=[],u=1,c=1;if(n[a][o]!==a){for(var l=1;l<=a;l++){var h=n[l][l].min;c=l;for(var f=u;f<=o;f++)n[l][f].min<h&&(h=n[l][f].min,c=f);u=c,n[l][u].type&&s.push({index:l-1,type:n[l][u].type})}for(var p=s.length-1;p>=0;p--)u=s[p].index,"add"===s[p].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(var g=0;g<o-a;g++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){var i=n(2);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return i(t,function(t,i){if(t!==e[i])return n=!1,!1}),n}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,i){for(var r=[].concat(t),a=void 0,o=1/(i+1),s=n(e)[0],u=1;u<=i;u++)o*=u,0===(a=Math.floor(t.length*o))?r.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):r.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return r}t.exports=function(t,e){if(t.length<=1)return t;for(var r=void 0,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(r=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(r[0]);break;case"L":t[a]=["L"].concat(r[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=r[0][0],t[a][7]=r[0][1];break;case"Q":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["Q"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],2)}t[a]=["C"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["S"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var i={lc:n(277),lowerCase:n(141),lowerFirst:n(75),substitute:n(278),uc:n(279),upperCase:n(142),upperFirst:n(87)};t.exports=i},function(t,e,n){t.exports=n(141)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}},function(t,e,n){t.exports=n(142)},function(t,e,n){var i=n(12),r={getType:n(84),isArray:n(4),isArrayLike:n(13),isBoolean:n(82),isFunction:n(11),isNil:n(5),isNull:n(281),isNumber:n(9),isObject:n(25),isObjectLike:n(49),isPlainObject:n(26),isPrototype:n(85),isType:i,isUndefined:n(282),isString:n(10),isRegExp:n(283),isDate:n(80),isArguments:n(284),isError:n(285)};t.exports=r},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"RegExp")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Arguments")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Error")}},function(t,e){t.exports=function(t,e,n){var i=void 0;return function(){var r=this,a=arguments,o=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(r,a)},e),o&&t.apply(r,a)}}},function(t,e,n){var i=n(13);t.exports=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,a=0;a<t.length;a++)if(t[a]===e){r=a;break}return r}},function(t,e,n){var i=n(11),r=n(50);t.exports=function(t,e,n){return i(n)?!!n(t,e):r(t,e)}},function(t,e,n){var i=n(2),r=n(13);t.exports=function(t,e){if(!r(t))return t;var n=[];return i(t,function(t,i){n.push(e(t,i))}),n}},function(t,e,n){var i=n(2),r=n(26),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!r(t))return{};var n={};return i(e,function(e){a.call(t,e)&&(n[e]=t[e])}),n}},function(t,e){t.exports=function(t,e,n){var i=void 0,r=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),i=null,o=t.apply(r,a),i||(r=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,a=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),s=c,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(u,l)),o};return c.cancel=function(){clearTimeout(i),s=0,i=r=a=null},c}},function(t,e,n){function i(t,e){var n,i,r=function(t){if(f.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return f.each(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r}),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}(t.points||t.get("origin").points),a=e.startAngle,o=e.endAngle-a;return e.isTransposed?(n=r.maxY*o,i=r.minY*o):(n=r.maxX*o,i=r.minX*o),n+=a,i+=a,{startAngle:i,endAngle:n}}function r(t,e,n){var i={};return t.delay&&(i.delay=f.isFunction(t.delay)?t.delay(e,n):t.delay),i.easing=f.isFunction(t.easing)?t.easing(e,n):t.easing,i.duration=f.isFunction(t.duration)?t.duration(e,n):t.duration,i.callback=t.callback,i}function a(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minX+o.maxX)/2,c=[u,n=s[0].y-s[1].y<=0?o.maxY:o.minY,1];t.apply(c),t.attr("transform",[["t",-u,-n],["s",1,.01],["t",u,n]]);var l={transform:[["t",-u,-n],["s",1,100],["t",u,n]]},h=r(e,a,i);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function o(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minY+o.maxY)/2,c=[n=s[0].y-s[1].y>0?o.maxX:o.minX,u,1];t.apply(c),t.attr({transform:[["t",-n,-u],["s",.01,1],["t",n,u]]});var l={transform:[["t",-n,-u],["s",100,1],["t",n,u]]},h=r(e,a,i);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function s(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[i,a,1];t.apply(c),t.attr({transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]});var l={transform:[["t",-i,-a],["s",100,100],["t",i,a]]},h=r(e,s,o);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function u(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a=g.pathToAbsolute(t.attr("path"));t.attr("path",[a[0]]);var o={path:a},s=r(e,i,n);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function c(t,e,n,i,a){var o,s=function(t){var e,n,i,r,a,o=t.start,s=t.end,u=t.getWidth(),c=t.getHeight();return t.isPolar?(r=t.getRadius(),i=t.getCenter(),e=t.startAngle,n=t.endAngle,(a=new p.Fan({attrs:{x:i.x,y:i.y,rs:0,re:r+200,startAngle:e,endAngle:e}})).endState={endAngle:n}):(a=new p.Rect({attrs:{x:o.x-200,y:s.y-200,width:t.isTransposed?u+400:0,height:t.isTransposed?0:c+400}}),t.isTransposed?a.endState={height:c+400}:a.endState={width:u+400}),a.isClip=!0,a}(n),u=t.get("canvas"),c=t._id,l=t.get("index");i?(s.attr("startAngle",i),s.attr("endAngle",i),o={endAngle:a}):o=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var h=r(e,l,c);s.animate(o,h.duration,h.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())},h.delay)}function l(t,e){var n=t._id,i=t.get("index"),a=f.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=f.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},u=r(e,i,n);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function h(t,e,n){var r=i(t,n),a=r.endAngle;c(t,e,n,r.startAngle,a)}var f=n(0),p=n(16),g=f.PathUtil;t.exports={enter:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},i=t._id,a=r(e,t.get("index"),i);t.animate(n,a.duration,a.easing,function(){t.remove()},a.delay)},zoomOut:function(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[i,a,1];t.apply(c);var l={transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]},h=r(e,s,o);t.animate(l,h.duration,h.easing,function(){t.remove()},h.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a={path:[g.pathToAbsolute(t.attr("path"))[0]]},o=r(e,i,n);t.animate(a,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,i={fillOpacity:0,strokeOpacity:0},a=r(e,t.get("index"),n);t.animate(i,a.duration,a.easing,function(){t.remove()},a.delay)}},appear:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},update:{fadeIn:l,fanIn:h,lineSlideLeft:function(t,e,n){if("line"===t.name){var i=t.get("canvas"),a=t.get("cacheShape"),o=t._id,s=t.get("index"),u=new p.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",i);var c=g.pathToAbsolute(a.attrs.path),l=g.pathToAbsolute(t.attr("path")),h=c[1][1]-c[0][1],f=c[c.length-1][1]+h,d=l[l.length-1][2],v=c.concat([["L",f,d]]);t.apply([0,0,1]),t.attr("clip",u),t.attr("path",v);var y={transform:[["t",-h,0]]},m=r(e,s,o);t.animate(y,m.duration,m.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",l),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},m.delay)}},areaSlideLeft:function(t,e,n){if("area"===t.name){var i=t.get("canvas"),a=t.get("cacheShape"),o=t._id,s=t.get("index"),u=new p.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",i);var c=g.pathToAbsolute(a.attrs.path),l=g.pathToAbsolute(t.attr("path")),h=c[1][1]-c[0][1],f=Math.floor(c.length/2),d=c[f-1][1]+h,v=l[f-1][2],y=[].concat(c.slice(0,f),[["L",d,v],["L",d,l[f][2]]],c.slice(f));t.apply([0,0,1]),t.attr("clip",u),t.attr("path",y);var m={transform:[["t",-h,0]]},x=r(e,s,o);t.animate(m,x.duration,x.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",l),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},x.delay)}}}}},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e,n){var i=(t-e)/(n-e);return i>=0&&i<=1}function s(t,e){var n=!1;if(t){if("theta"===t.type){var i=t.start,r=t.end;n=o(e.x,i.x,r.x)&&o(e.y,i.y,r.y)}else{var a=t.invert(e);n=a.x>=0&&a.y>=0&&a.x<=1&&a.y<=1}}return n}var u=n(147),c=n(21),l=n(0),h=n(165),f=n(7),p=n(150),g=n(357),d={};l.each(c,function(t,e){var n=l.lowerFirst(e);d[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var v=function(t){function e(e){var n,i=r(n=t.call(this,e)||this);return i._setTheme(),l.each(c,function(t,e){var n=l.lowerFirst(e);i[n]=function(e){void 0===e&&(e={}),e.viewTheme=i.get("viewTheme");var n=new t(e);return i.addGeom(n),n}}),i.init(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:f.animate,visible:!0}},n._setTheme=function(){var t=this.get("theme"),e={},n={};l.isObject(t)?n=t:-1!==l.indexOf(Object.keys(p),t)&&(n=p[t]),l.deepMix(e,f,n),this.set("viewTheme",e)},n.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},n._initOptions=function(){var t=this,e=l.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||l.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&l.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var i=t.get("coordController");i&&i.reset(e.coord),this.set("options",e)},n._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),l.each(t,function(t,n){if(e[n])if(l.isObject(t)&&t.field)if("label"===t)e[n](t.field,t.callback,t.cfg);else{var i;l.each(t,function(t,e){"field"!==e&&(i=t)}),e[n](t.field,i)}else e[n](t)}))},n._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=this.get("canvas"),i=new h.Scale({viewTheme:e,defs:t.scales}),r=new h.Coord(t.coord);this.set("scaleController",i),this.set("coordController",r);var a=new h.Axis({canvas:n,viewTheme:e});this.set("axisController",a);var o=new h.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",o)},n._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},n._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),i=this.get("_id"),r=0;r<t.length;r++){var a=t[r];a.set("data",e),a.set("coord",n),a.set("_id",i+"-geom"+r),a.set("keyFields",this.get("keyFields")),a.init()}},n._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++){t[e].clear()}},n._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;){t.shift().destroy()}},n._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var i=t[n];i.setCoord(e),i.paint()}this.emit("afterdrawgeoms")},n.isShapeInView=function(t){var e=this.get("_id"),n=t._id;if(n)return n.split("-")[0]===e;for(var i=t;i;){if(i.get("viewId")===e)return!0;i=i.get("parent")}return!1},n.getViewRegion=function(){var t,e,n=this.get("parent");if(n){var i=n.getViewRegion(),r=this._getViewRegion(i.start,i.end);t=r.start,e=r.end}else t=this.get("start"),e=this.get("end");return{start:t,end:e}},n._getViewRegion=function(t,e){var n=this.get("start"),i=this.get("end"),r=n.x,a=1-i.y,o=i.x,s=1-n.y,u=this.get("padding"),c=l.toAllPadding(u),h=c[0],f=c[1],p=c[2],g=c[3];return{start:{x:r*(e.x-t.x)+t.x+g,y:a*(e.y-t.y)+t.y-p},end:{x:o*(e.x-t.x)+t.x-f,y:s*(e.y-t.y)+t.y+h}}},n._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},n._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),i=this.getYScales(),r=this.get("_id");e.createAxis(n,i,r)}},n._renderGuides=function(){var t=this.get("guideController");if(!l.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},n._bindEvents=function(){var t=new h.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},n._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},n._getScales=function(t){for(var e=this.get("geoms"),n={},i=0;i<e.length;i++){var r=e[i],a="x"===t?r.getXScale():r.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},n._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var i=t[n];if("interval"===i.get("type")){var r=i.getYScale(),a=r.field,o=r.min,s=r.max,u=r.type;e[a]&&e[a].min||"time"===u||(o>0?r.change({min:0}):s<=0&&r.change({max:0}))}}},n._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),i=this.getYScales(),r=[];n&&r.push(n),r=r.concat(i);var a=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!l.isNil(e)&&!l.isNil(n)&&n-e<2*Math.PI)}(t),o=this.get("scaleController").defs;l.each(r,function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!o[n.field]||!o[n.field].range)){var i,r=n.values.length;if(1===r)i=[.5,1];else{var s=0;i=a?t.isTransposed?[(s=1/r*e.widthRatio.multiplePie)/2,1-s/2]:[0,1-1/r]:[s=1/r*1/2,1-s]}n.range=i}})},n.getXScale=function(){var t=this.get("geoms"),e=null;return l.isEmpty(t)||(e=t[0].getXScale()),e},n.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var i=t[n].getYScale();i&&-1===l.indexOf(e,i)&&e.push(i)}return e},n.getXY=function(t){var e,n,i=this.get("coord"),r=this._getScales("x"),a=this._getScales("y");for(var o in t)r[o]&&(e=r[o].scale(t[o])),a[o]&&(n=a[o].scale(t[o]));return l.isNil(e)||l.isNil(n)?null:i.convert({x:e,y:n})},n.getSnapRecords=function(t){var e=this.get("geoms"),n=[];return l.each(e,function(e){var i,r=e.get("dataArray");l.each(r,function(r){(i=e.findPoint(t,r))&&n.push(i)})}),n},n.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},n.removeGeom=function(t){var e=this.get("geoms");l.Array.remove(e,t),t.destroy()},n.createScale=function(t,e){var n=this.get("scales"),i=this.get("parent"),r=n[t];if(!e){var a=this.get("filteredData"),o=this._getFieldsForLegend();e=a.length&&!o.includes(t)?a:this.get("data")}var s=this.get("scaleController");if(r){if(r.sync){var u=s.createScale(t,e);this._syncScale(r,u)}}else{if((r=s.createScale(t,e)).sync&&i){var c=i.createScale(t,e);r=this._getSyncScale(c,r)}n[t]=r}return r},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return l.each(e,function(e){var n=e.getFieldsForLegend();t=t.concat(n)}),l.uniq(t)},n._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},n._syncScale=function(t,e){var n=l.union(t.values,e.values);if(e.isLinear){var i=Math.max(t.max,e.max),r=Math.min(t.min,e.min);t.max===i&&t.min===r||t.change({min:r,max:i,values:n})}n.length!==t.values.length&&t.change({values:n})},n.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},n.getFilteredOutValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(function(){return!n[t].apply(n,arguments)}):[]},n.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e,this.get("scaleController").filters=n.filters},n._getFilters=function(){return this.get("options").filters},n.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter(function(t){var n=!0;return l.each(e,function(e,i){if(e&&!(n=e(t[i],t)))return!1}),n})),t},n.axis=function(t,e){var n=this.get("options");if(!1===t)n.axes=!1;else{n.axes||(n.axes={});n.axes[t]=e}return this},n.guide=function(){return this.get("guideController")},n._getKeyFields=function(t){var e=[];l.each(t,function(t,n){t.key&&e.push(n)}),this.set("keyFields",e)},n.scale=function(t,e){var n=this.get("options").scales;return l.isObject(t)?l.mix(n,t):n[t]=e,this._getKeyFields(n),this},n.tooltip=function(t){return this.set("tooltipEnable",t),this},n.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},n.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},n.getViewsByPoint=function(t){var e=[],n=this.get("views");return s(this.get("coord"),t)&&e.push(this),l.each(n,function(n){n.get("visible")&&s(n.get("coord"),t)&&e.push(n)}),e},n.eachShape=function(t){var e=this,n=e.get("views"),i=e.get("canvas");l.each(n,function(e){e.eachShape(t)});var r=this.get("geoms");return l.each(r,function(n){var i=n.getShapes();l.each(i,function(i){var r=i.get("origin");if(l.isArray(r)){var a=r.map(function(t){return t._origin});t(a,i,n,e)}else{var o=r._origin;t(o,i,n,e)}})}),i.draw(),this},n.filterShape=function(t){return this.eachShape(function(e,n,i,r){t(e,n,i,r)?n.show():n.hide()}),this},n.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner");this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")},n.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},n.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},n.resetCoord=function(){this._createCoord()},n.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},n.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},n._initData=function(t){var e=this.get("dataView");e&&(e.off("change",l.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",l.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},n._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},n.beforeRender=function(){var t=this.get("views");l.each(t,function(t){t.beforeRender()}),this.initView()},n.drawComponents=function(){var t=this.get("views");l.each(t,function(t){t.drawComponents()}),this._renderAxes(),this._renderGuides()},n.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var i=this.get("isUpdate");l.each(e,function(t){g.execAnimation(t,i)}),g.execAnimation(this,i)}else n.draw()}},n.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},n.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},n.paint=function(){var t=this.get("views");l.each(t,function(t){t.paint()});var e=this.get("data");l.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},n.changeVisible=function(t,e){var n=this.get("geoms");if(l.each(n,function(e){e.changeVisible(t,!0)}),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),!e){this.get("canvas").draw()}},n.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},n.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",l.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},e}(u);t.exports=v},function(t,e,n){var i=n(5),r=n(4),a=n(2),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.mapping=function(t,e){var n,o,s,u=this.scales,c=this.coord,l=u[0],h=u[1];if(i(t)||i(e))return[];if(r(e)&&r(t)){n=[],o=[];for(var f=0,p=0,g=t.length,d=e.length;f<g&&p<d;f++,p++)s=c.convertPoint({x:l.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),o.push(s.y)}else if(r(e))t=l.scale(t),o=[],a(e,function(e){e=h.scale(e),s=c.convertPoint({x:t,y:e}),n&&n!==s.x?(r(n)||(n=[n]),n.push(s.x)):n=s.x,o.push(s.y)});else if(r(t))e=h.scale(e),n=[],a(t,function(t){t=l.scale(t),s=c.convertPoint({x:t,y:e}),o&&o!==s.y?(r(o)||(o=[o]),o.push(s.y)):o=s.y,n.push(s.x)});else{t=l.scale(t),e=h.scale(e);var v=c.convertPoint({x:t,y:e});n=v.x,o=v.y}return[n,o]},e}(n(29));t.exports=o},function(t,e,n){var i=n(10),r=n(148),a=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["color"],n.type="color",n.gradient=null,i(n.values)&&(n.linear=!0),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=r.gradient(n),this.gradient=e}return e(t)},e}(n(29));t.exports=a},function(t,e,n){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}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(29));t.exports=i},function(t,e,n){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 function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=i},function(t,e,n){var i=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["opacity"],n.type="opacity",n.gradient=null,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=i},function(t,e,n){var i=n(8),r=n(30),a=n(300),o=n(301),s=n(149),u=n(302),c=n(303);i(r.prototype,s),i(a.prototype,s,u),i(o.prototype,c),r.Jitter=n(304),r.Symmetric=n(305),r.Dodge=a,r.Stack=o,t.exports=r},function(t,e,n){var i=n(30),r=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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 i=t.pre,r=t.next,a=r-i,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(i+r)/2+(.5*(a-n*o-(n-1)*s)+((e+1)*o+e*s)-.5*o-.5*a)},n.processAdjust=function(t){var e=this,n=t.length,i=e.xField;r(t,function(t,r){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[i],c={pre:1===o?u-1:u-.5,next:1===o?u+1:u+.5},l=e.getDodgeOffset(c,r,n);s[i]=l}})},e}(i);i.Dodge=a,t.exports=a},function(t,e,n){var i=n(4),r=n(5),a=n(30),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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.xField,n=this.yField,a=t.length,o={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var s=0;s<a;s++)for(var u=t[s],c=0,l=u.length;c<l;c++){var h=u[c],f=h[e]||0,p=h[n],g=f.toString();if(p=i(p)?p[1]:p,!r(p)){var d=p>=0?"positive":"negative";o[d][g]||(o[d][g]=0),h[n]=[o[d][g],p+o[d][g]],o[d][g]+=p}}},e}(a);a.Stack=o,t.exports=o},function(t,e,n){var i={merge:n(42),values:n(65)},r=n(143),a=n(2);t.exports={processAdjust:function(t){var e=i.merge(t),n=this.dodgeBy,a=t;n&&(a=r(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.adjDataArray,n=this.cacheMap,r=n[t];return r||(r={},a(e,function(e,n){var o=i.values(e,t);o.length||o.push(0),a(o,function(t){r[t]||(r[t]=[]),r[t].push(n)})}),n[t]=r),r},adjustDim:function(t,e,n,i,r){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,function(n,i){i=parseFloat(i);var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,i,e),a(n,function(e){var n=e[t],i=s[n],a=i.indexOf(r);e[t]=o.getDodgeOffset(u,a,i.length)})})}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",i=this.height,r={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;a<o;a++)for(var s=t[a],u=0,c=s.length;u<c;u++){var l=s[u],h=2*(l.size||this.size)/i,f=l[e];r[f]||(r[f]=h/2),l[n]=r[f],r[f]+=h}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){var i=n(2),r=n(8),a={merge:n(42)},o=n(30),s=n(149),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},n.processAdjust=function(t){var e=a.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},n.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},n._adjustGroup=function(t,e,n,r){var a=this,o=a.getAdjustRange(e,n,r);i(t,function(t){t[e]=a.getAdjustOffset(o.pre,o.next)})},n.adjustDim=function(t,e,n){var r=this,a=r.groupData(n,t);i(a,function(n,i){i=parseFloat(i),r._adjustGroup(n,t,i,e)})},e}(o);r(u.prototype,s),o.Jitter=u,t.exports=u},function(t,e,n){var i=n(2),r=n(131),a=n(4),o={merge:n(42)},s=n(30),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},n._getMax=function(t){var e=this.mergeData,n=r(e,function(e){var n=e[t];return a(n)?Math.max.apply(null,n):n})[t];return a(n)?Math.max.apply(null,n):n},n._getXValuesMax=function(){var t=this.yField,e=this.xField,n={},r=this.mergeData;return i(r,function(i){var r=i[e],o=i[t],s=a(o)?Math.max.apply(null,o):o;n[r]=n[r]||0,n[r]<s&&(n[r]=s)}),n},n.processAdjust=function(t){var e=o.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},n._processSymmetric=function(t){var e,n=this.xField,r=this.yField,o=this._getMax(r),s=t[0][0];s&&a(s[r])&&(e=this._getXValuesMax()),i(t,function(t){i(t,function(t){var s,u=t[r];if(a(u)){var c=t[n],l=e[c];s=(o-l)/2;var h=[];i(u,function(t){h.push(s+t)}),t[r]=h}else s=(o-u)/2,t[r]=[s,u+s]})})},e}(s);s.Symmetric=u,t.exports=u},function(t,e,n){var i,r,a=n(0),o=n(151),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(i={},i["g2-legend"]={color:"#D9D9D9"},i),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(r={},r["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},r),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=s},function(t,e,n){var i=n(66),r=n(163),a=n(337),o=n(338),s={getLabelsClass:function(t,e){var n=i;return"polar"===t?n=r:"theta"===t?n=a:"interval"!==e&&"polygon"!==e||(n=o),n}};t.exports=s},function(t,e,n){var i=n(31);i.Base=i,i.Circle=n(312),i.Grid=n(152),i.Helix=n(313),i.Line=n(314),i.Polyline=n(315),t.exports=i},function(t,e,n){function i(t,e,n,i){var r=t.getBBox(),a=r.width,o=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=o/2,s.textAlign="left";break;case 1:s.y-=o/2,s.textAlign="right";break;case 2:s.y+=o/2,s.textAlign="right";break;case 3:s.y+=o/2,s.textAlign="left";break;case 5:s.y-=o/2;break;case 6:s.y+=o/2;break;case 7:s.x+=a/2,s.textAlign="left";break;case 8:s.x-=a/2,s.textAlign="right"}return t.attr(s),t.getBBox()}var r=n(154);t.exports=function(t){for(var e,n,a,o,s,u=new r,c=[],l=0;l<t.length;l++){a=(n=t[l]).attr("x"),o=n.attr("y"),s=!1;for(var h=0;h<8;h++)if(e=i(n,a,o,h),u.hasGap(e)){u.fillGap(e),s=!0;break}s||c.push(n)}for(var f=0;f<c.length;f++)c[f].remove();return s}},function(t,e,n){function i(t,e){var n,i=t.attr("x"),r=t.attr("y"),o=t.getBBox(),s=Math.sqrt(o.width*o.width+o.height*o.height),u=1,c=0,l=0,h=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]};if(e.hasGap(o))return e.fillGap(o),!0;for(var f=!1,p=0;Math.min(Math.abs(c),Math.abs(l))<s&&p<a;)if(n=h(u+=-1),c=~~n[0],l=~~n[1],t.attr({x:i+c,y:r+l}),p++,e.hasGap(t.getBBox())){e.fillGap(o),f=!0;break}return f}var r=n(154),a=20;t.exports=function(t){for(var e,n=new r,a=[],o=0;o<t.length;o++)i(e=t[o],n)||a.push(e);for(var s=0;s<a.length;s++)a[s].remove()}},function(t,e){t.exports=function(t,e){for(var n,i,r=[],a=0;a<t.length;a++)n=t[a].getBBox(),i=e[a].getBBox(),n.width>i.width||n.height>i.height?r.push(t[a]):n.width*n.height>i.width*i.height&&r.push(t[a]);for(var o=0;o<r.length;o++)r[o].remove()}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil.vec2,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},n.parseTick=function(t,e,n){return{text:t,value:e/n}},n._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},n.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(!a.isNil(t)){var r=s.length(i);s.scale(i,i,t/r)}return i},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},n.getTextAnchor=function(t){var e;return a.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},n.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),u=[];if(Math.abs(o-a)===2*Math.PI)u=[["M",e,n],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];else{var c=this._getCirclePoint(a),l=this._getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;if(s){var p=this.getSideVector(s*i,c),g=this.getSideVector(s*i,l),d={x:p[0]+e,y:p[1]+n},v={x:g[0]+e,y:g[1]+n};u=[["M",d.x,d.y],["L",c.x,c.y],["A",i,r,0,h,f,l.x,l.y],["L",v.x,v.y],["A",i*s,r*s,0,h,Math.abs(f-1),d.x,d.y]]}else u=[["M",e,n],["L",c.x,c.y],["A",i,r,0,h,f,l.x,l.y],["L",e,n]]}return u},n.addLabel=function(e,n,i){var r=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,r),t.prototype.addLabel.call(this,e,n,i)},n.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelRenderer");if(e&&t.length>12){var n=this.get("radius"),i=this.get("startAngle"),r=this.get("endAngle")-i,o=r/(t.length-1),s=Math.sin(o/2)*n*2,u=this.getMaxLabelWidth(e);a.each(e.get("group").get("children"),function(e,n){var a=t[n].value*r+i,o=a%(2*Math.PI);u<s?(o<=0&&(a+=Math.PI),o>Math.PI&&(a-=Math.PI),a-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?a-=Math.PI:o<Math.PI/2*-1&&(a+=Math.PI),e.rotateAtStart(a)})}},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil,u=a.PathUtil,c=s.vec2,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{inner:0,type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},n.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=u.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},n._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},n.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(t){var r=c.length(i);c.scale(i,i,t/r)}return i},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},e}(o);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(31),o=n(3),s=o.MatrixUtil.vec2,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},n._getAvgLabelLength=function(t){var e=t.get("group").get("children");return e[1].attr("x")-e[0].attr("x")},n._getAvgLabelHeightSpace=function(t){var e=t.get("group").get("children");return e[1].attr("y")-e[0].attr("y")},n.getSideVector=function(t){var e=this.get("isVertical"),n=this.get("factor");if(!o.isNumber(t))return[0,0];var i=this.get("start"),r=this.get("end"),a=this.getAxisVector(),u=s.normalize([],a),c=!1;(e&&i.y<r.y||!e&&i.x>r.x)&&(c=!0);var l=s.vertical([],u,c);return s.scale([],l,t*n)},n.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},n.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},n.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),i=n.x-e.x,r=n.y-e.y;return{x:e.x+i*t,y:e.y+r*t}},n.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(o.isNil(n)){n=20;var i=this.get("labelsGroup");if(i){n+=this.getMaxLabelWidth(i)+(this.get("label").offset||this.get("_labelOffset"))}}var r=t.textStyle,a=o.mix({},r);if(t.text){var u=this.getAxisVector();if(t.autoRotate&&o.isNil(r.rotate)){var c=0;if(!o.snapEqual(u[1],0)){var l=[u[0],u[1]];c=s.angleTo(l,[1,0],!0)}a.rotate=c*(180/Math.PI)}else o.isNil(r.rotate)||(a.rotate=r.rotate/180*Math.PI);var h,f=this.getSideVector(n),p=t.position;h="start"===p?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===p?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:e.x+f[0],y:e.y+f[1]},a.x=h.x,a.y=h.y,a.text=t.text;var g=this.get("group").addShape("Text",{zIndex:2,attrs:a});g.name="axis-title",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this.get("labelRenderer"),e=this.get("title");if(t){var n=t.get("group").get("children"),i=this.get("label").offset,r=e?e.offset:48;if(r<0)return;var a,s,u=this.getAxisVector();if(o.snapEqual(u[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>r-i-12&&(a=-1*Math.acos((r-i-12)/s));else if(o.snapEqual(u[1],0)&&n.length>1){var c=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>c&&(a=Math.asin(1.25*(r-i-12)/s))}if(a){var l=this.get("factor");o.each(n,function(t){t.rotateAtStart(a),o.snapEqual(u[1],0)&&(l>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},n.autoHideLabels=function(){var t,e,n=this.get("labelRenderer");if(n){var i=n.get("group").get("children"),r=this.getAxisVector();if(i.length<2)return;if(o.snapEqual(r[0],0)){var a=this.getMaxLabelHeight(n)+8,s=Math.abs(this._getAvgLabelHeightSpace(n));a>s&&(t=a,e=s)}else if(o.snapEqual(r[1],0)&&i.length>1){var u=this.getMaxLabelWidth(n)+8,c=Math.abs(this._getAvgLabelLength(n));u>c&&(t=u,e=c)}if(t&&e){var l=Math.ceil(t/e);o.each(i,function(t,e){e%l!=0&&t.attr("text","")})}}},e}(a);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil,u=a.PathUtil,c=s.vec2,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),i=[];i.push(e.x),i.push(e.y),a.each(t,function(t){i.push(t.x),i.push(t.y)}),i.push(n.x),i.push(n.y);var r=u.catmullRomToBezier(i);return r.unshift(["M",e.x,e.y]),r},n.getTickPoint=function(t,e){return this.get("tickPoints")[e]},n.getTickEnd=function(t,e,n){var i=this.get("tickLine"),r=e||i.length,a=this.getSideVector(r,t,n);return{x:t.x+a[0],y:t.y+a[1]}},n.getSideVector=function(t,e,n){var i;if(0===n){if((i=this.get("start")).x===e.x&&i.y===e.y)return[0,0]}else{i=this.get("tickPoints")[n-1]}var r=[e.x-i.x,e.y-i.y],a=c.normalize([],r),o=c.vertical([],a,!1);return c.scale([],o,t)},e}(o);t.exports=l},function(t,e,n){t.exports={Guide:n(15),Arc:n(317),DataMarker:n(318),DataRegion:n(319),Html:n(320),Image:n(321),Line:n(322),Region:n(323),Text:n(324)}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){var n,i=t.x-e.x,r=t.y-e.y;return 0===r?n=i<0?u/2:270*u/180:i>=0&&r>0?n=2*u-c(i/r):i<=0&&r<0?n=u-c(i/r):i>0&&r<0?n=u+c(-i/r):i<0&&r>0&&(n=c(i/-r)),n}var o=n(3),s=n(15),u=Math.PI,c=Math.atan,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end"));if(n&&i){var r,s=t.getCenter(),c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),l=a(n,s),h=a(i,s);if(h<l&&(h+=2*u),o.isNumberEqual(n.x,i.x)&&o.isNumberEqual(n.y,i.y)&&(this.get("start")[0]!==this.get("end")[0]||this.get("start")[1]!==this.get("end")[1]))r=[["M",n.x,n.y],["A",c,c,0,1,1,2*s.x-n.x,2*s.y-n.y],["A",c,c,0,1,1,n.x,n.y]];else{var f=(h-l)%(2*u)>u?1:0;r=[["M",n.x,n.y],["A",c,c,0,f,1,i.x,i.y]]}var p=e.addShape("path",{zIndex:this.get("zIndex"),attrs:o.mix({path:r},this.get("style"))});p.name="guide-arc",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo")),this.set("el",p)}},e}(s);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=e.addGroup();i.name="guide-data-marker";var r,a,o=this._getElementPosition(n),s=this.get("display");if(s.line){var u=o.line;r=this._drawLine(u,i)}if(s.text&&this.get("content")){var c=o.text;a=this._drawText(c,i)}if(s.point){var l=o.point;this._drawPoint(l,i)}if(this.get("autoAdjust")){var h=i.getBBox(),f=h.minX,p=h.minY,g=h.maxX,d=h.maxY,v=t.start,y=t.end;if(a){f<=v.x&&a.attr("textAlign","start"),g>=y.x&&a.attr("textAlign","end");var m=this.get("direction");if("upward"===m&&p<=y.y||"upward"!==m&&d>=v.y){var x,b;"upward"===m&&p<=y.y?(x="top",b=1):(x="bottom",b=-1),a.attr("textBaseline",x);var _=0;if(this.get("display").line){_=this.get("lineLength");var S=[["M",n.x,n.y],["L",n.x,n.y+_*b]];r.attr("path",S)}var w=n.y+(_+2)*b;a.attr("y",w)}}}this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo")),this.set("el",i)}},n._getElementPosition=function(t){var e=t.x,n=t.y,i=this.get("display").line?this.get("lineLength"):0,r=this.get("direction");this.get("style").text.textBaseline="upward"===r?"bottom":"top";var a="upward"===r?-1:1;return{point:{x:e,y:n},line:[{x:e,y:n},{x:e,y:i*a+n}],text:{x:e,y:(i+2)*a+n}}},n._drawLine=function(t,e){var n=this.get("style").line,i=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]];return e.addShape("path",{attrs:a.mix({path:i},n)})},n._drawText=function(t,e){var n=this.get("style").text;return e.addShape("text",{attrs:a.mix({text:this.get("content")},n,t)})},n._drawPoint=function(t,e){var n=this.get("style").point;return e.addShape("circle",{attrs:a.mix({},n,t)})},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(155),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},n.render=function(t,e,n){var i=this.get("lineLength")||0,r=this._getRegionData(t,n);if(r.length){var o=this._getBBox(r),s=[];s.push(["M",r[0].x,o.yMin-i]);for(var u=0,c=r.length;u<c;u++){var l=["L",r[u].x,r[u].y];s.push(l)}s.push(["L",r[r.length-1].x,o.yMin-i]);var h=this.get("style"),f=h.region,p=h.text,g=e.addGroup();g.name="guide-data-region",g.addShape("path",{attrs:a.mix({path:s},f)});var d=this.get("content");d&&g.addShape("Text",{attrs:a.mix({x:(o.xMin+o.xMax)/2,y:o.yMin-i,text:d},p)}),this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),this.set("el",g)}},n._getRegionData=function(t,e){for(var n,i=this.get("start"),r=this.get("end"),s=o.getFirstScale(this.get("xScales")).field,u=o.getFirstScale(this.get("yScales")).field,c=a.isArray(i)?i[0]:i[s],l=a.isArray(r)?r[0]:r[s],h=[],f=0,p=e.length;f<p;f++){var g=e[f];if(g[s]===c&&(n=f),f>=n){var d=this.parsePoint(t,[g[s],g[u]]);d&&h.push(d)}if(g[s]===l)break}return h},n._getBBox=function(t){for(var e=[],n=[],i=0;i<t.length;i++)e.push(t[i].x),n.push(t[i].y);var r=a.arrayUtil.getRange(e),o=a.arrayUtil.getRange(n);return{xMin:r.min,xMax:r.max,yMin:o.min,yMax:o.max}},e}(n(15));t.exports=s},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=a.DomUtil,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=e.get("canvas").get("el").parentNode,r=o.createDom('<div class="g-guide"></div>');i.appendChild(r);var s=this.get("htmlContent")||this.get("html");if(a.isFunction(s)){s=s(this.get("xScales"),this.get("yScales"))}var u=o.createDom(s);r.appendChild(u),o.modifyCSS(r,{position:"absolute"}),this._setDomPosition(r,u,n),this.set("el",r)}},n._setDomPosition=function(t,e,n){var i=this.get("alignX"),r=this.get("alignY"),a=o.getOuterWidth(e),s=o.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===i&&"top"===r?u.x-=Math.round(a/2):"middle"===i&&"bottom"===r?(u.x-=Math.round(a/2),u.y-=Math.round(s)):"left"===i&&"bottom"===r?u.y-=Math.round(s):"left"===i&&"middle"===r?u.y-=Math.round(s/2):"left"===i&&"top"===r?(u.x=n.x,u.y=n.y):"right"===i&&"bottom"===r?(u.x-=Math.round(a),u.y-=Math.round(s)):"right"===i&&"middle"===r?(u.x-=Math.round(a),u.y-=Math.round(s/2)):"right"===i&&"top"===r?u.x-=Math.round(a):(u.x-=Math.round(a/2),u.y-=Math.round(s/2));var c=this.get("offsetX");c&&(u.x+=c);var l=this.get("offsetY");l&&(u.y+=l),o.modifyCSS(t,{top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.get("zIndex")})},n.clear=function(){var t=this.get("el");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(n(15));t.exports=s},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start"));if(n){var i={x:n.x,y:n.y};if(i.img=this.get("src"),this.get("end")){var r=this.parsePoint(t,this.get("end"));if(!r)return;i.width=r.x-n.x,i.height=r.y-n.y}else i.width=this.get("width")||32,i.height=this.get("height")||32;this.get("offsetX")&&(i.x+=this.get("offsetX")),this.get("offsetY")&&(i.y+=this.get("offsetY"));var a=e.addShape("Image",{zIndex:1,attrs:i});a.name="guide-image",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)}},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(15),s=a.MatrixUtil.vec2,u=n(14).FONT_FAMILY,c=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:u},content:null}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end"));if(n&&i){var r=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,i,r);var a=this.get("text");a&&a.content&&this._drawText(n,i,r),this.set("el",r)}},n._drawLines=function(t,e,n){var i=[["M",t.x,t.y],["L",e.x,e.y]],r=n.addShape("Path",{attrs:a.mix({path:i},this.get("lineStyle"))});r.name="guide-line",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var i,r=this.get("text"),o=r.position,u=r.style||{};((i="start"===o?0:"center"===o?.5:a.isString(o)&&-1!==o.indexOf("%")?parseInt(o,10)/100:a.isNumber(o)?o:1)>1||i<0)&&(i=1);var c={x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i};if(r.offsetX&&(c.x+=r.offsetX),r.offsetY&&(c.y+=r.offsetY),c.text=r.content,c=a.mix({},c,u),r.autoRotate&&a.isNil(u.rotate)){var l=s.angleTo([e.x-t.x,e.y-t.y],[1,0],1);c.rotate=l}else a.isNil(u.rotate)||(c.rotate=u.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:c});h.name="guide-line-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"))},e}(o);t.exports=c},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},n.render=function(t,e){var n=this.get("style"),i=this._getPath(t);if(i.length){var r=e.addShape("path",{zIndex:this.get("zIndex"),attrs:a.mix({path:i},n)});r.name="guide-region",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("el",r)}},n._getPath=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));if(!e||!n)return[];return[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]]},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=a.mix({},this.get("style")),r=this.get("offsetX"),o=this.get("offsetY");r&&(n.x+=r),o&&(n.y+=o),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:this.get("zIndex"),attrs:a.mix({text:this.get("content")},i,n)});s.name="guide-text",this.get("appendInfo")&&s.setSilent("appendInfo",this.get("appendInfo")),this.set("el",s)}},e}(n(15));t.exports=o},function(t,e,n){var i=n(153);t.exports=i},function(t,e,n){t.exports={Category:n(156),CatHtml:n(158),CatPageHtml:n(327),Color:n(328),Size:n(330),CircleSize:n(331)}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return t.getElementsByClassName(e)[0]}var o=n(3),s=n(158),u=n(14).FONT_FAMILY,c=o.DomUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:u,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'<div class="g2-slip" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;vertical-align:middle;">1</p><p class="next-pagenum" style = "display:inline-block;vertical-align:middle;"">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',slipWidth:65,legendOverflow:"unset"})},n.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},n._renderFlipPage=function(){var t=this.get("legendWrapper"),e=a(t,"g2-legend-list"),n=this.get("position"),i=this.get("layout"),r="right"===n||"left"===n||"vertical"===i,s=r?"block":"inline-block",u=t.offsetHeight;if(t.scrollHeight>u){var l=this.get("slipTpl"),h=c.createDom(l),f=a(h,"g2-caret-up"),p=a(h,"g2-caret-down");c.modifyCSS(f,this.get("caretStyle")),c.modifyCSS(f,{fill:"rgba(0,0,0,0.25)"}),c.modifyCSS(p,this.get("caretStyle"));var g=a(h,"cur-pagenum"),d=a(h,"next-pagenum"),v=this.get("pageNumStyle");if(c.modifyCSS(g,o.mix({},v,{paddingLeft:"10px"})),c.modifyCSS(d,o.mix({},v,{opacity:.3,paddingRight:"10px"})),c.modifyCSS(h,o.mix({},this.get("slipDomStyle"),r?{top:u+"px"}:{right:0,top:"50%",transform:"translate(0, -50%)"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(h),!r){var y=Math.max(t.offsetWidth-10-h.offsetWidth,0);c.modifyCSS(e,{maxWidth:y+"px"})}for(var m=e.childNodes,x=0,b=1,_=[],S=0;S<m.length;S++)m[S].style.display=s,(x=m[S].offsetTop+m[S].offsetHeight)>u&&(b++,_.forEach(function(t){t.style.display="none"}),_=[]),_.push(m[S]);d.innerText="/"+b,m.forEach(function(t){t.style.display=s,(x=t.offsetTop+t.offsetHeight)>u&&(t.style.display="none")}),f.addEventListener("click",function(){if(m[0].style.display!==s){var t=-1;m.forEach(function(e,n){e.style.display===s&&(t=-1===t?n:t,e.style.display="none")});for(var e=t-1;e>=0&&(m[e].style.display=s,x=m[t-1].offsetTop+m[t-1].offsetHeight,m[e].style.display="none",x<=u);e--)m[e].style.display=s;var n=Number.parseInt(g.innerText,10)-1;f.style.fill=1===n?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",p.style.fill="rgba(0,0,0,0.65)",g.innerText=n}}),p.addEventListener("click",function(){if(m[m.length-1].style.display!==s){var t=-1;m.forEach(function(e,n){e.style.display===s&&(t=n,e.style.display="none")});for(var e=t+1;e<m.length&&(m[e].style.display=s,x=m[e].offsetTop+m[e].offsetHeight,m[e].style.display="none",x<=u);e++)m[e].style.display=s;var n=Number.parseInt(g.innerText,10)+1;p.style.fill=n===b?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",f.style.fill="rgba(0,0,0,0.65)",g.innerText=n}}),this.set("slipDom",h)}},n.destroy=function(){var e=this.get("slipDom");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(s);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(73).ColorUtil,o=n(3),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"color-legend",layout:"vertical",triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},isSegment:!1})},n._setPercentage=function(){var t=this.get("items");if(!t[0].percentage){var e=t[0].value,n=t[t.length-1].value;o.each(t,function(t){t.percentage=(t.value-e)/(n-e)})}},n._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider").get("backgroundElement"),n=this.get("width"),i=this.get("height"),r=this.get("layout"),s=this.get("items"),u="";return"vertical"===r?(u+="l (90) ",o.each(s,function(e){t=a.toRGB(e.color),u+=1-e.percentage+":"+t+" "})):(u+="l (0) ",o.each(s,function(e){t=a.toRGB(e.color),u+=e.percentage+":"+t+" "})),this._addMiddleBar(e,"Rect",{x:0,y:0,width:n,height:i,fill:u,strokeOpacity:0})},n._renderUnslidable=function(){this._setPercentage();var t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var n,i=this.get("width"),r=this.get("height"),s=this.get("layout"),u=this.get("items"),c="",l=[],h=this.get("group").addGroup(),f=u.length;if("vertical"===s){c+="l (90) ";for(var p=0;p<f;p+=1){if(0!==p&&p!==f-1&&(l.push(["M",0,r-u[p].percentage*r]),l.push(["L",i,r-u[p].percentage*r])),n=a.toRGB(u[p].color),c+=1-u[p].percentage+":"+n+" ",this.get("isSegment")&&p>0){var g=a.toRGB(u[p-1].color);c+=1-u[p].percentage+":"+g+" "}h.addShape("text",{attrs:o.mix({},{x:i+this.get("textOffset")/2,y:r-u[p].percentage*r,text:this._formatItemValue(u[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{c+="l (0) ";for(var d=0;d<f;d+=1){if(0!==d&&d!==f-1&&(l.push(["M",u[d].percentage*i,0]),l.push(["L",u[d].percentage*i,r])),n=a.toRGB(u[d].color),this.get("isSegment")&&d>0){var v=a.toRGB(u[d-1].color);c+=u[d].percentage+":"+v+" "}c+=u[d].percentage+":"+n+" ",h.addShape("text",{attrs:o.mix({},{x:u[d].percentage*i,y:r+5+this.get("textOffset"),text:this._formatItemValue(u[d].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:i,height:r,fill:c,strokeOpacity:0}}),h.addShape("path",{attrs:o.mix({path:l},this.get("lineStyle"))}),h.move(0,e)},e}(n(68));t.exports=s},function(t,e,n){var i=n(3),r=i.DomUtil,a=i.Group,o=function t(e){t.superclass.constructor.call(this,e)};i.extend(o,a),i.augment(o,{getDefaultCfg:function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},_beforeRenderUI:function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),i=this.get("maxHandleElement"),r=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,i]),this.set("middleHandleElement",r),e.set("zIndex",0),r.set("zIndex",1),n.set("zIndex",2),i.set("zIndex",2),r.attr("cursor","move"),n.attr("cursor",a),i.attr("cursor",a),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,i=e[1]/100,r=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:r*n,y:0,width:(i-n)*r,height:a}),o.translate(n*r,a),s.translate(i*r,a)):(u.attr({x:0,y:a*(1-i),width:r,height:(i-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-i)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",i.wrapBehavior(this,"_onMouseDown"))},_isElement:function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){return n.get("children").indexOf(t)>-1}return!1},_getRange:function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},_updateStatus:function(t,e){var n="x"===t?this.get("width"):this.get("height");t=i.upperFirst(t);var r,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),c="vertical"===this.get("layout")?-1:1,l=e["page"+t],h=(l-o)/n*100*c;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]))),this._isElement(s,"middleHandleElement")&&(r=u[1]-u[0],a[0]=this._getRange(h,a[0]),a[1]=a[0]+r,a[1]>100&&(a[1]=100,a[0]=a[1]-r)),this.emit("sliderchange",{range:a}),this.set("page"+t,l),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,i=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[i[0],i[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=r.addEventListener(t,"mousemove",i.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(t,"mouseup",i.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=r.addEventListener(t,"mouseleave",i.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(t){if(!this._mouseOutArea(t)){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)}},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},_mouseOutArea:function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),i=n.getBBox(),r=n.attr("matrix")[6],a=n.attr("matrix")[7],o=r+i.width,s=a+i.height,u=t.clientX-e.x,c=t.clientY-e.y;return u<r||u>o||c<a||c>s}}),t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n=this.get("width"),i=this.get("height"),r=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[n-4,i]]:[[0,r+i/2],[0,r+i/2-4],[n,r-i/2],[n,r+i/2]];return this._addMiddleBar(t,"Polygon",a.mix({points:s},o))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),i=this.get("frontMiddleBarStyle"),r="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]];this.get("group").addGroup().addShape("Polygon",{attrs:a.mix({points:r},i)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,o),this._addText(e+10,3,s)):(this._addText(0,n,o),this._addText(e,n,s))},n._addText=function(t,e,n){var i=this.get("group").addGroup(),r=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:a.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},r)}):(e+=s+this.get("textOffset")-20,o||(e+=10),i.addShape("text",{attrs:a.mix({x:t,y:e,text:0===n?"0":n},r)}))},e}(n(68));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),i="vertical"===e?this.get("height"):2,r=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[0,i]]:[[0,r+i],[0,r-i],[5+n-4,r-i],[5+n-4,r+i]];return this._addMiddleBar(t,"Polygon",a.mix({points:s},o))},n._addHorizontalTrigger=function(t,e,n,i){var r=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=r.addShape("circle",{attrs:a.mix({x:0,y:o,r:i},e)}),u=r.addShape("text",{attrs:a.mix(n,{x:0,y:o+i+10,textAlign:"center",textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._addVerticalTrigger=function(t,e,n,i){var r=this.get("slider").get(t+"HandleElement"),o=r.addShape("circle",{attrs:a.mix({x:0,y:0,r:i},e)}),s=r.addShape("text",{attrs:a.mix(n,{x:i+10,y:0,textAlign:"start",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),r=this.get("triggerAttr"),o=a.mix({},r),s=a.mix({},r),u=a.mix({text:this._formatItemValue(t.value)+""},i),c=a.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,c,16)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,c,16))},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i),s=5+n[0]/100*11,u=5+n[1]/100*11;t._updateElement(a,o,s,u);var c=new Event("itemfilter",e,!0,!0);c.range=[a,o],t.emit("itemfilter",c)})}},n._updateElement=function(e,n,i,r){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");s.attr("r",i),u.attr("r",r);if("vertical"===this.get("layout"))a.attr("x",i+10),o.attr("x",r+10);else{var c=-this.get("height")/2;a.attr("y",c+i+10),o.attr("y",c+r+10)}},n._addCircle=function(t,e,n,i,r){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),l=this.get("titleGap");c&&(l+=c.getBBox().height),o.addShape("circle",{attrs:a.mix({x:t,y:e+l,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:a.mix({x:r+20+this.get("textOffset"),y:e+l,text:0===i?"0":i},u)}):o.addShape("text",{attrs:a.mix({x:t,y:e+l+r+13+this.get("textOffset"),text:0===i?"0":i},u)})},n._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var i=this._formatItemValue(t),r=this._formatItemValue(e),a=t<5?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,i,2*o),this._addCircle(o,2*o+16+a,o,r,2*o)):(this._addCircle(o,o,a,i,2*o),this._addCircle(2*o+16+a,o,o,r,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(n(68));t.exports=o},function(t,e,n){var i=n(69);i.Html=n(333),i.Canvas=n(162),i.Mini=n(335),t.exports=i},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t){return function(){var e,n=o(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=o(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return a(t)}(this,e)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return t.getElementsByClassName(e)[0]}var u=n(20),c=n(69),l=n(3),h=l.DomUtil,f=n(334),p=n(159),g=n(160),d=n(161),v=u.Marker,y=function(t){function e(e){var n;n=t.call(this,e)||this,l.assign(a(n),g),l.assign(a(n),d);var i=f;n.style=function(t,e){return Object.keys(t).forEach(function(n){e[n]&&(t[n]=l.mix(t[n],e[n]))}),t}(i,e),n._init_(),n.get("items")&&n.render();var r=n.get("crosshairs");if(r){var o="rect"===r.type?n.get("backPlot"):n.get("frontPlot"),s=new p(l.mix({plot:o,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));s.hide(),n.set("crosshairGroup",s)}return n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);r(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{containerTpl:' <div class="g2-tooltip"> <div class="g2-tooltip-title"></div><ul class="g2-tooltip-list"></ul></div>',itemTpl:'<li data-index={index}>\n <svg viewBox="0 0 5 5" class="g2-tooltip-marker"></svg>\n {name}<span class="g2-tooltip-value">{value}</span></li>',htmlContent:null,follow:!0,enterable:!1})},n._init_=function(){var t,e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(e)){var i=e.replace("#","");t=document.getElementById(i)}else t=h.createDom(e),h.modifyCSS(t,this.style["g2-tooltip"]),n.appendChild(t),n.style.position="relative";this.set("container",t)}},n.render=function(){if(this.clear(),this.get("htmlContent")){var t=this.get("canvas").get("el").parentNode,e=this._getHtmlContent();t.appendChild(e),this.set("container",e)}else this._renderTpl()},n._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),i=t.get("container"),r=s(i,"g2-tooltip-title"),a=s(i,"g2-tooltip-list"),o=t.get("items");r&&e&&(h.modifyCSS(r,t.style["g2-tooltip-title"]),r.innerHTML=n),a&&(h.modifyCSS(a,t.style["g2-tooltip-list"]),l.each(o,function(e,n){a.appendChild(t._addItem(e,n))}))},n.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=s(t,"g2-tooltip-title"),n=s(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")}},n.show=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var i=this.get("markerGroup");i&&i.show(),t.prototype.show.call(this),this.get("canvas").draw()}},n.hide=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var i=this.get("markerGroup");i&&i.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},n.destroy=function(){var e=this.get("container"),n=this.get("containerTpl");e&&!/^\#/.test(n)&&e.parentNode.removeChild(e);var i=this.get("crosshairGroup");i&&i.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this)},n._getMarkerSvg=function(t){var e,n=t.marker||{},i=n.activeSymbol||n.symbol;l.isFunction(i)?e=i:l.isString(i)&&(e=v.Symbols[i]);return'<path d="'+(e=l.isFunction(e)?e:v.Symbols.circle)(2.5,2.5,2.5).reduce(function(t,e){return""+t+e[0]+e.slice(1).join(",")},"")+'" fill="'+(n.fill||"none")+'" stroke="'+(n.stroke||"none")+'" />'},n._addItem=function(t,e){var n=this.get("itemTpl"),r=l.substitute(n,l.mix({index:e},t)),a=h.createDom(r);h.modifyCSS(a,this.style["g2-tooltip-list-item"]);var o=s(a,"g2-tooltip-marker");if(o){h.modifyCSS(o,i({},this.style["g2-tooltip-marker"],{borderRadius:"unset"}));var u=this._getMarkerSvg(t);o.innerHTML=u}var c=s(a,"g2-tooltip-value");return c&&h.modifyCSS(c,this.style["g2-tooltip-value"]),a},n._getHtmlContent=function(){var t=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return h.createDom(t)},n.setPosition=function(e,n,i){var r,a=this.get("container"),o=this.get("canvas").get("el"),s=h.getWidth(o),u=h.getHeight(o),c=a.clientWidth,f=a.clientHeight,p=e,g=n,d=this.get("prePosition")||{x:0,y:0};if(c||(a.style.display="block",c=a.clientWidth,f=a.clientHeight,a.style.display="none"),this.get("enterable")?(r=[e,n-=a.clientHeight/2],d&&e-d.x>0?e-=a.clientWidth+1:e+=1):this.get("position")?(e=(r=this._calcTooltipPosition(e,n,this.get("position"),c,f,i))[0],n=r[1]):(e=(r=this._constraintPositionInBoundary(e,n,c,f,s,u))[0],n=r[1]),this.get("inPlot")){var v=this.get("plotRange");e=(r=this._constraintPositionInPlot(e,n,c,f,v,this.get("enterable")))[0],n=r[1]}var y=this.get("markerItems");l.isEmpty(y)||(p=y[0].x,g=y[0].y),this.set("prePosition",r);this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var m=this.get("crosshairGroup");if(m){var x=this.get("items");m.setPosition(p,g,x)}t.prototype.setPosition.call(this,e,n)},e}(c);t.exports=y},function(t,e,n){var i,r=n(14).FONT_FAMILY,a=(i={crosshairs:!1,offset:15},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={marginBottom:"4px"},i["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i);t.exports=a},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(162),s=n(14).FONT_FAMILY,u=a.DomUtil,c=a.MatrixUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:s,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot").addGroup();this.set("container",e);var n=e.addShape("rect",{attrs:a.mix({},this.get("boardStyle"))});this.set("board",n);var i=e.addShape("path",{attrs:{fill:this.get("boardStyle").fill}});this.set("triangleShape",i);var r=e.addGroup();r.move(t.left,t.top);var o=r.addShape("text",{attrs:a.mix({},this.get("valueStyle"))});this.set("valueShape",o)},n.render=function(){this.clear();var t=this.get("board"),e=this.get("valueShape"),n=this.get("padding"),i=this.get("items")[0];e&&e.attr("text",i.value);var r=e?e.getBBox():{width:80,height:30},a=n.left+r.width+n.right,o=n.top+r.height+n.bottom;t.attr("width",a),t.attr("height",o),this._centerTriangleShape()},n.clear=function(){this.get("valueShape").attr("text","")},n.setPosition=function(t,e,n){var i=this.get("container"),r=this.get("plotRange"),a=i.getBBox(),o=a.width,s=a.height;if(t-=o/2,n&&("point"===n.name||"interval"===n.name)){e=n.getBBox().y}if(e-=s,this.get("inPlot"))t<r.tl.x?(t=r.tl.x,this._leftTriangleShape()):t+o/2>r.tr.x?(t=r.tr.x-o,this._rightTriangleShape()):this._centerTriangleShape(),e<r.tl.y?e=r.tl.y:e+s>r.bl.y&&(e=r.bl.y-s);else{var l=this.get("canvas").get("el"),h=u.getWidth(l),f=u.getHeight(l);t<0?(t=0,this._leftTriangleShape()):t+o/2>h?(t=h-o,this._rightTriangleShape()):this._centerTriangleShape(),e<0?e=0:e+s>f&&(e=f-s)}var p=c.transform([1,0,0,0,1,0,0,0,1],[["t",t,e]]);i.stopAnimate(),i.animate({matrix:p},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",o),t.move(r/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox().height,r=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",r),t.move(0,i-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",o),t.move(r-e-1,a-4)},e}(o);t.exports=l},function(t,e,n){var i=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var r=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);for(var u,c,l,h=function(t,e,n,r){var a,o,s,u,c=[],l=!!r;if(l){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,f=t.length;h<f;h++){var p=t[h];s=i.min([],s,p),u=i.max([],u,p)}s=i.min([],s,r[0]),u=i.max([],u,r[1])}for(var g=0,d=t.length;g<d;g++){var v=t[g];if(n)a=t[g?g-1:d-1],o=t[(g+1)%d];else{if(0===g||g===d-1){c.push(v);continue}a=t[g-1],o=t[g+1]}var y=[];y=i.sub(y,o,a),y=i.scale(y,y,e);var m=i.distance(v,a),x=i.distance(v,o),b=m+x;0!==b&&(m/=b,x/=b);var _=i.scale([],y,-m),S=i.scale([],y,x),w=i.add([],v,_),M=i.add([],v,S);l&&(w=i.max([],w,s),w=i.min([],w,u),M=i.max([],M,s),M=i.min([],M,u)),c.push(w),c.push(M)}return n&&c.push(c.shift()),c}(a,.4,r,n),f=a.length,p=[],g=0;g<f-1;g++)u=h[2*g],c=h[2*g+1],l=a[g+1],p.push(["C",u[0],u[1],c[0],c[1],l[0],l[1]]);return r&&(u=h[f],c=h[f+1],l=a[0],p.push(["C",u[0],u[1],c[0],c[1],l[0],l[1]])),p}}},function(t,e,n){function i(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var r=n(0),a=n(163),o=n(23),s=n(7),u=function t(e){t.superclass.constructor.call(this,e)};r.extend(u,a),r.augment(u,{getDefaultCfg:function(){return{label:s.thetaLabels}},getDefaultOffset:function(t){return t.offset||0},adjustItems:function(t){var e=t[0]?t[0].offset:0;return e>0&&(t=this._distribute(t,e)),u.superclass.adjustItems.call(this,t)},_distribute:function(t,e){var n=this.get("coord"),i=n.getRadius(),r=this.get("label").labelHeight,a=n.getCenter(),o=2*(i+e)+2*r,s={start:n.start,end:n.end},u=this.get("geom");if(u){var c=u.get("view");s=c.getViewRegion()}var l=[[],[]];return t.forEach(function(t){t&&("right"===t.textAlign?l[0].push(t):l[1].push(t))}),l.forEach(function(t,e){var n=parseInt(o/r,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,i,r){var a,o=!0,s=n.start,u=n.end,c=Math.min(s.y,u.y),l=Math.abs(s.y-u.y),h=0,f=Number.MIN_VALUE,p=t.map(function(t){return t.y>h&&(h=t.y),t.y<f&&(f=t.y),{size:e,targets:[t.y-c]}});for(f-=c,h-c>l&&(l=h-c);o;)for(p.forEach(function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),l-t.size)}),o=!1,a=p.length;a--;)if(a>0){var g=p[a-1],d=p[a];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),g.pos+g.size>l&&(g.pos=l-g.size),p.splice(a,1),o=!0)}a=0,p.forEach(function(n){var i=c+e/2;n.targets.forEach(function(){t[a].y=n.pos+i,i+=e,a++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var a=Math.sqrt(e-n);t.x=r?i.x+a:i.x-a}})}(t,r,s,a,e)}),l[0].concat(l[1])},lineToLabel:function(t){var e=this.get("coord"),n=e.getRadius(),r=t.offset,a=t.orignAngle||t.angle,o=e.getCenter(),s=i(o,a,n+2.5),u=i(o,a,n+r/2);t.labelLine||(t.labelLine=this.get("label").labelLine||{}),t.labelLine.path=["M"+s.x,s.y+" Q"+u.x,u.y+" "+t.x,t.y].join(",")},getLabelRotate:function(t,e){var n;return e<0&&((n=180*t/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},getLabelAlign:function(t){var e,n=this.get("coord").getCenter();e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right";return this.getDefaultOffset(t)<=0&&(e="right"===e?"left":"right"),e},getArcPoint:function(t){return t},getPointAngle:function(t){var e=this.get("coord"),n={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var i={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(i);var a,s=o.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)a=s;else{var u=o.getPointAngle(e,i);s>=u&&(u+=2*Math.PI),a=s+(u-s)/2}return a},getCirclePoint:function(t,e){var n=this.get("coord"),r=n.getCenter(),a=n.getRadius()+e,o=i(r,t,a);return o.angle=t,o.r=a,o}}),t.exports=u},function(t,e,n){var i=n(0),r=n(66),a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{setLabelPosition:function(t,e,n,r){i.isFunction(r)&&(r=r(t.text,e._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(e.points[0]),u=a.convertPoint(e.points[2]),c=(s.x-u.x)/2*(o?-1:1),l=(s.y-u.y)/2*(o?-1:1);switch(r){case"right":o?(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"center"):(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=c,t.y-=l,t.textAlign=t.textAlign||"center"):(t.x+=c,t.y+=l,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*c,t.textAlign=t.textAlign||"left"):(t.y+=2*l,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=c:t.y+=l,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=o?t.textAlign||"left":t.textAlign||"center"}}}),t.exports=a},function(t,e,n){function i(t){return t.alias||t.field}var r=n(0),a=n(7).defaultColor,o={_getIntervalSize:function(t){var e=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=i.isTransposed?"y":"x";if(r.isArray(t[a])){e=e<Math.abs(t[a][1]-t[a][0])?null:e}}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:r.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),i=this.getXScale(),r=n.invert(t).x;return this.isInCircle()&&r>(1+i.rangeMax())/2&&(r=i.rangeMin()),e=i.invert(r),i.isCategory&&(e=i.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),i=e.field,r=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),u={};return u[i]=o,u[r]=s,u},_getScale:function(t){var e=this.get("scales"),n=null;return r.each(e,function(e){if(e.field===t)return n=e,!1}),n},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();r.each(e,function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1});var n=this.getXScale(),i=this.getYScale();return!t&&i&&"..y"===i.field?n:t||i||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e,n=this.getAttr("position").getFields();return r.each(n,function(t){if(!t.includes(".."))return e=t,!1}),this._getScale(e)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),a=i.field,o=n.invert(e).y;o=i.invert(o);var s=t[t.length-1];return r.each(t,function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1}),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,i=e.translate(n[0]),a=i;r.each(n,function(t){(t=e.translate(t))<i&&(i=t),t>a&&(a=t)});var o=n.length;t=(a-i)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,i=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,c=null;if(r.indexOf(["heatmap","point"],i)>-1){var l=n.get("coord").invert(t),h=a.invert(l.x),f=o.invert(l.y),p=1/0;return r.each(e,function(t){var e=Math.pow(t._origin[s]-h,2)+Math.pow(t._origin[u]-f,2);e<p&&(p=e,c=t)}),c}var g=e[0],d=e[e.length-1];if(!g)return c;var v=n._getScaleValueByPoint(t),y=g._origin[s],m=g._origin[u],x=d._origin[s],b=o.isLinear&&r.isArray(m);if(r.isArray(y))r.each(e,function(t){var e=t._origin;if(a.translate(e[s][0])<=v&&a.translate(e[s][1])>=v){if(!b)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}}),r.isArray(c)&&(c=this._filterValue(c,t));else{var _;if(a.isLinear||"timeCat"===a.type){if((v>a.translate(x)||v<a.translate(y))&&(v>a.max||v<a.min))return null;for(var S,w=0,M=e.length-1;w<=M;){S=Math.floor((w+M)/2);var k=e[S]._origin[s];if(n._snapEqual(k,v,a))return e[S];a.translate(k)<=a.translate(v)?(w=S+1,d=e[S],_=e[S+1]):(0===M&&(d=e[0]),M=S-1)}}else r.each(e,function(t,i){var o=t._origin;if(n._snapEqual(o[s],v,a)){if(!b)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}else a.translate(o[s])<=v&&(d=t,_=e[i+1])}),r.isArray(c)&&(c=this._filterValue(c,t));d&&_&&Math.abs(a.translate(d._origin[s])-v)>Math.abs(a.translate(_._origin[s])-v)&&(d=_)}var C=n.getXDistance();return!c&&Math.abs(a.translate(d._origin[s])-v)<=C/2&&(c=d),c},getTipTitle:function(t,e){var n="",i=this._getTipTitleScale(e);if(i){var r=t[i.field];n=i.getText(r)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(t[a.field])+", "+o.getText(t[o.field])+" )"}return n},getTipValue:function(t,e){var n,i=e.field,a=t.key;if(n=t[i],r.isArray(n)){var o=[];r.each(n,function(t){o.push(e.getText(t))}),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e,n,a=this._getGroupScales();if(a.length&&r.each(a,function(t){return n=t,!1}),n){var o=n.field;e=n.getText(t[o])}else{e=i(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,i){if(!r.isNil(n)&&""!==n){var o={title:l,point:t,name:e||l,value:n,color:t.color||a,marker:!0};o.size=u._getIntervalSize(t),f.push(r.mix({},o,i))}}var o,s,u=this,c=t._origin,l=u.getTipTitle(c,e),h=u.get("tooltipCfg"),f=[];if(h){var p=h.fields,g=h.cfg,d=[];if(r.each(p,function(t){d.push(c[t])}),g){r.isFunction(g)&&(g=g.apply(null,d));var v=r.mix({},{point:t,title:l,color:t.color||a,marker:!0},g);v.size=u._getIntervalSize(t),f.push(v)}else r.each(p,function(t){if(!r.isNil(c[t])){var e=u._getScale(t);o=i(e),s=e.getText(c[t]),n(o,s)}})}else{var y=u._getTipValueScale();r.isNil(c[y.field])||(s=u.getTipValue(c,y),n(o=u.getTipName(c),s))}return f},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(t=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&r.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=o},function(t,e,n){function i(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,i){if(!function(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isEqual(n,i)}(e,t[i]))return n=!0,!1}),n}function r(t,e){var n={};return a.each(t,function(t,i){var r=e.attr(i);a.isArray(r)&&(r=a.cloneDeep(r)),n[i]=r}),n}var a=n(0),o=n(164),s={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",a.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",a.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",a.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),i=n.shape||this.getDefaultValue("shape");a.isArray(i)&&(i=i[0]);var s=this.get("shapeFactory"),u=a.mix({},t.attr(),{origin:n}),c=s.getActiveCfg(i,u);e.style&&a.mix(c,e.style);var l=r(c,t);t.setSilent("_originActiveAttrs",l),e.animate?t.animate(c,300):t.attr(c),o.toFront(t)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(i(n,t)){var r=e.get("view").get("canvas"),o=e.get("activedOptions");o&&o.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&e._setActiveShape(t)})),e.set("activeShapes",t),r.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var i=this.get("activeShapes");a.each(i,function(t){var e=t.get("_originActiveAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent("_originActiveAttrs",null)});if(this.get("preHighlightShapes")){var r=t.get("children");a.each(r,function(t){var e=t.get("_originActiveAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent("_originActiveAttrs",null))})}this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=[];if(this.get("shapeContainer")){var n=this.getXScale().field,i=this.getShapes(),r=this._getOriginByPoint(t);a.each(i,function(t){var i=t.get("origin");if(t.get("visible")&&i){i._origin[n]===r[n]&&e.push(t)}})}return e},getSingleShapeByPoint:function(t){var e,n=this.get("shapeContainer"),i=n.get("canvas").get("pixelRatio");if(n&&(e=n.getShape(t.x*i,t.y*i)),e&&e.get("origin"))return e},highlightShapes:function(t,e){a.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(i(n,t)){n&&this.clearActivedShapes();var s=this.getShapes(),u=this.get("activedOptions"),c=u&&u.animate,l=u&&u.style;a.each(s,function(n){var i={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(i,l,e),o.toFront(n)):(a.mix(i,{fillOpacity:.3,opacity:.3}),o.resetZIndex(n));var s=r(i,n);n.setSilent("_originActiveAttrs",s),c?n.animate(i,300):n.attr(i)}),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=s},function(t,e,n){function i(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}var r=n(0),a=n(164),o={_isAllowSelect:function(){var t=this.get("allowSelect");if(!r.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===e&&"theta"===i},_onClick:function(t){if(this._isAllowSelect()){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",r.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",r.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),i=this.get("selectedOptions")||{},o=!1!==i.animate,s=n.get("canvas");t.set("selected",e);var u=t.get("origin");if(e){var c=u.shape||this.getDefaultValue("shape");r.isArray(c)&&(c=c[0]);var l=this.get("shapeFactory"),h=r.mix({geom:this,point:u},i),f=l.getSelectedCfg(c,h);r.mix(f,h.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return r.each(t,function(t,i){"transform"===i&&(i="matrix");var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a}),n}(f,t))),i.toFront&&a.toFront(t),o?t.animate(f,300):(t.attr(f),s.draw())}else{var p=t.get("_originAttrs");i.toFront&&a.resetZIndex(t),t.set("_originAttrs",null),o?t.animate(p,300):(t.attr(p),s.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},a=!1!==n.cancelable;if("multiple"===n.mode)-1===r.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):a&&(r.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];a&&(t=i(o,t)?null:t),i(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();r.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return r.each(n,function(n){var i=n.get("origin");i&&i._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return r.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=o},function(t,e,n){var i=n(0);t.exports=function(t){return i.isArray(t)?t:i.isString(t)?t.split("*"):[t]}},function(t,e,n){var i=n(74),r=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o={LINEAR:"linear",CAT:"cat",TIME:"time"},s=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},r.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,i=null;return(n.scales[t]||e[t])&&(i=r.mix({},n.scales[t]),r.each(e[t],function(t,e){r.isNil(t)?delete i[e]:i[e]=t}),this.filters[t]&&(delete i.min,delete i.max)),i},e._getDefaultType=function(t,e){var n=o.LINEAR,i=r.Array.firstValue(e,t);return r.isArray(i)&&(i=i[0]),a.test(i)?n=o.TIME:r.isString(i)&&(n=o.CAT),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=r.Array.values(n,e);if(a.values=o,!i.isCategory(t)&&"time"!==t){var s=r.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this._getDef(t),o=e||[],s=r.Array.firstValue(o,t);if(r.isNumber(t)||r.isNil(s)&&!a)n=i.identity({value:t,field:t.toString(),values:[t]});else{var u;a&&(u=a.type),u=u||this._getDefaultType(t,o);var c=this._getScaleCfg(u,t,o);a&&r.mix(c,a),n=i[u](c)}return n},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(345),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},i.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){var e=this.actions;i.each(e,function(e){var n=e[0];t[n](e[1],e[2])})},e.hasAction=function(t){var e=this.actions,n=!1;return i.each(e,function(e){if(t===e[0])return n=!0,!1}),n},e.createCoord=function(t,e){var n,a,o=this.type,s=this.cfg,u=i.mix({start:t,end:e},s);return"theta"===o?(n=r.Polar,this.hasAction("transpose")||this.transpose(),(a=new n(u)).type=o):a=new(n=r[i.upperFirst(o||"")]||r.Rect)(u),this._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){"use strict";var i=n(44);i.Cartesian=n(346),i.Rect=i.Cartesian,i.Polar=n(347),i.Helix=n(348),t.exports=i},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(8),h=n(44),f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,h),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return l({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},i={start:t.y,end:e.y};this.x=n,this.y=i}},{key:"convertPoint",value:function(t){var e,n;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}}}]),e}();t.exports=f},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(43),h=n(35),f=n(8),p=n(44),g=l.mat3,d=l.vec2,v=l.vec3,y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,p),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),o(e,[{key:"_init",value:function(){for(var t=this.radius,e=this.innerRadius,n=this.center,i=this.startAngle,r=this.endAngle;r<i;)r+=2*Math.PI;this.endAngle=r;var a,o,s=this.getOneBox(),u=s.maxX-s.minX,c=s.maxY-s.minY,l=Math.abs(s.minX)/u,h=Math.abs(s.minY)/c,f=this.width,p=this.height;p/c>f/u?(a=f/u,o={x:n.x-(.5-l)*f,y:n.y-(.5-h)*a*c}):(a=p/c,o={x:n.x-(.5-l)*a*u,y:n.y-(.5-h)*p}),t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var g={start:i,end:r},d={start:e*t,end:t};this.x=g,this.y=d,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,i=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),i=this.convertDim(i,"y"),{x:e.x+Math.cos(n)*i,y:e.y+Math.sin(n)*i}}},{key:"invertPoint",value:function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=this.x,r=[1,0,0,0,1,0,0,0,1];g.rotate(r,r,i.start);var a=[1,0,0];v.transformMat3(a,a,r),a=[a[0],a[1]];var o=d.angleTo(a,n,i.end<i.start);h(o,2*Math.PI)&&(o=0);var s=d.length(n),u=o/(i.end-i.start);u=i.end-i.start>0?u:-u;var c=this.invertDim(s,"y"),l={};return l.x=this.isTransposed?c:u,l.y=this.isTransposed?u:c,l}}]),e}();t.exports=y},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(43),h=n(35),f=n(8),p=n(44),g=l.vec2,d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,p),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.width,e=this.height,n=this.radius,i=this.innerRadius,r=this.startAngle,a=this.endAngle,o=(a-r)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-i)/o),c=u/(2*Math.PI),l={start:r,end:a},h={start:i*s,end:i*s+.99*u};this.a=c,this.d=u,this.x=l,this.y=h}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,i=this.a,r=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=i*a,s=this.convertDim(n,"y");return{x:r.x+Math.cos(a)*(o+s),y:r.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,i=this.d+this.y.start,r=g.subtract([],[t.x,t.y],[e.x,e.y]),a=g.angleTo(r,[1,0],!0),o=a*n;g.length(r)<o&&(o=g.length(r));var s=n*(a=2*Math.floor((g.length(r)-o)/i)*Math.PI+a),u=g.length(r)-s;u=h(u,0)?0:u;var c=this.invertDim(a,"x"),l=this.invertDim(u,"y");c=h(c,0)?0:c,l=h(l,0)?0:l;var f={};return f.x=this.isTransposed?l:c,f.y=this.isTransposed?c:l,f}}]),e}();t.exports=d},function(t,e,n){function i(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),t.includes("%")&&(e=parseInt(t,10)/100),e}var r=n(0),a=n(22).Axis,o=r.MatrixUtil.vec2,s=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e._getMiddleValue=function(t,e,n,i){if(0===t&&!i)return 0;if(1===t)return 1;var r=e[n+1].value;return i||1!==r?(t+r)/2:1},e._getLineRange=function(t,e,n,r){var a,o,s,u=e.field,c=this.options,l="";if(c[u]&&c[u].position&&(l=c[u].position),"x"===n){var h="top"===l?1:0;a={x:0,y:h=i(l,h)},o={x:1,y:h},s=!1}else{if(r){var f="left"===l?0:1;a={x:f=i(l,f),y:0},o={x:f,y:1}}else{var p="right"===l?1:0;a={x:p=i(l,p),y:0},o={x:p,y:1}}s=!0}return a=t.convert(a),o=t.convert(o),{start:a,end:o,isVertical:s}},e._getLineCfg=function(t,e,n,i){var r,a=this._getLineRange(t,e,n,i),o=a.isVertical,s=a.start,u=a.end,c=t.center;return t.isTransposed&&(o=!o),r=o&&s.x>c.x||!o&&s.y>c.y?1:-1,{isVertical:o,factor:r,start:s,end:u}},e._getCircleCfg=function(t){var e,n={},i=t.x,r=t.y,a=r.start>r.end;e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1},e=t.convert(e);var s,u=t.circleCentre,c=[e.x-u.x,e.y-u.y],l=[1,0],h=(s=e.y>u.y?o.angle(c,l):-1*o.angle(c,l))+(i.end-i.start);return n.startAngle=s,n.endAngle=h,n.center=u,n.radius=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,i=t.x.start<0?-1:1;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:i,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,i){var r="",a=this.options;if(a[i]&&a[i].position)r=a[i].position;else{var o=t.type;t.isRect?"x"===e?r="bottom":"y"===e&&(r=n?"right":"left"):r="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return r},e._getAxisDefaultCfg=function(t,e,n,i){var a=this.viewTheme,o={},s=this.options,u=e.field;if(o=r.deepMix({},a.axis[i],o,s[u]),o.viewTheme=a,o.title){var c=r.isPlainObject(o.title)?o.title:{};c.text=c.text||e.alias||u,r.deepMix(o,{title:c})}return o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o},e._getAxisCfg=function(t,e,n,i,a,o){void 0===a&&(a="");var s=this,u=s._getAxisPosition(t,i,a,e.field),c=s._getAxisDefaultCfg(t,e,i,u);if(!r.isEmpty(c.grid)&&n){var l=[],h=[],f=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],i=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==i.value&&e.push({value:1})}return e}(n.getTicks());if(f.length){var p=function(t,e,n){var i=[];return t.length<1?i:(t.length>=2&&e&&n&&i.push({text:"",tickValue:"",value:0}),0!==t[0].value&&i.push({text:"",tickValue:"",value:0}),1!==(i=i.concat(t))[i.length-1].value&&i.push({text:"",tickValue:"",value:1}),i)}(c.ticks,e.isLinear,"center"===c.grid.align);r.each(p,function(n,u){h.push(n.tickValue);var g=[],d=n.value;if("center"===c.grid.align&&(d=s._getMiddleValue(d,p,u,e.isLinear)),!r.isNil(d)){var v=t.x,y=t.y;r.each(f,function(e){var n="x"===i?d:e.value,r="x"===i?e.value:d,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;y.start>y.end&&(r=1-r),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}g.push(a)}),l.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:g})}})}c.grid.items=l,c.grid.tickValues=h}return c.type=e.type,c},e._getHelixCfg=function(t){for(var e={},n=t.a,i=t.startAngle,r=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=i,e.endAngle=r,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,i,o,s,u){var c,l,h=this.container,f=this.canvas;"cartesian"===t.type?(c=a.Line,l=this._getLineCfg(t,e,i,u)):"helix"===t.type&&"x"===i?(c=a.Helix,l=this._getHelixCfg(t)):"x"===i?(c=a.Circle,l=this._getCircleCfg(t)):(c=a.Line,l=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,i,u,o);p=r.mix({},p,l),"y"===i&&s&&"circle"===s.get("type")&&(p.circle=s),p._id=o+"-"+i,r.isNil(u)||(p._id=o+"-"+i+u),r.mix(p,{canvas:f,group:h.addGroup({viewId:o})});var g=new c(p);return g.render(),this.axes.push(g),g},e.createAxis=function(t,e,n){var i=this,a=this.coord,o=a.type;if("theta"!==o&&("polar"!==o||!a.isTransposed)){var s;t&&!i._isHide(t.field)&&(s=i._drawAxis(a,t,e[0],"x",n)),r.isEmpty(e)||"helix"===o||r.each(e,function(e,r){i._isHide(e.field)||i._drawAxis(a,e,t,"y",n,s,r)})}},e.changeVisible=function(t){var e=this.axes;r.each(e,function(e){e.set("visible",t)})},e.clear=function(){var t=this.axes;r.each(t,function(t){t.destroy()}),this.axes=[]},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(351),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,i.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach(function(e){var o=e.type,u=i.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=i.upperFirst(o);var c=new r[o](u);t.guides.push(c)}),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,r=n&&n.get("data"),a=e._creatGuides();i.each(a,function(i){var a;a=i.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,i.render(t,a,r,n)})},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){var e=this.guides;i.each(e,function(e){e.changeVisible(t)})},e.reset=function(){var t=this.guides;i.each(t,function(t){t.clear()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){var i=n(22).Guide,r=n(352);i.RegionFilter=r,t.exports=i},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(0),o=n(15),s=n(20).Path,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},n.render=function(t,e,n,i){var r=this,a=e.addGroup();a.name="guide-region-filter",i.once("afterpaint",function(){if(!a.get("destroyed")){r._drawShapes(i,a);var e=r._drawClip(t);a.attr({clip:e}),r.set("clip",e),r.get("appendInfo")&&a.setSilent("appendInfo",r.get("appendInfo")),r.set("el",a)}})},n._drawShapes=function(t,e){var n=this,i=[];return t.getAllGeoms().map(function(t){var r=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&r.map(function(t){var r=t.type,o=a.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(r,{attrs:o});return i.push(s),t}),t}),i},n._drawClip=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end")),i=[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]];return new s({attrs:{path:i,opacity:1}})},n._adjustDisplay=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},n._geomFilter=function(t){var e=this.get("apply");return!e||a.contains(e,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(o);t.exports=u},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=n(0),a=n(22).Legend,o=n(354),s=n(19),u=n(166),c=n(168),l=n(7),h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,f=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"],p=function(){function t(t){this.options={},r.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,r.each(t,function(t){r.each(t,function(t){t.destroy()})}),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=u(e,c(this.chart.get("plotRange")));var n=this.plotRange;t.maxX-t.minX<n.br.x-n.tl.x&&t.maxY-t.minY<n.br.y-n.tl.y&&(t={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=t}return t},e._isFieldInView=function(t,e,n){var i=!1,a=n.get("scales")[t];return a&&a.values&&(i=r.inArray(a.values,e)),i},e._bindClickEvent=function(t,e,n){var i=this,a=i.chart,o=a.get("views"),s=e.field,u=i.options;t.on("itemclick",function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var c=e.item,l=e.checked,h="single"===t.get("selectedMode"),f=c.dataValue;l?(r.Array.remove(n,f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return h?t===f:!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return h?t===f:!r.inArray(n,t)})})):h||(n.push(f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return!r.inArray(n,t)})})),u.onClick&&u.onClick(e),a.set("keepLegend",!0),a.set("keepPadding",!0),a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}})},e._bindClickEventForMix=function(t){var e=this.chart.getAllGeoms();t.on("itemclick",function(t){var n=t.item.field;t.checked?r.each(e,function(t){t.getYScale().field===n&&t.show()}):r.each(e,function(t){t.getYScale().field===n&&t.hide()})})},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var i=e.get("labelCfg");if(i&&i.fields&&i.fields.length>0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,c=t.get("origin")._origin,l=e.get("labelContainer").get("labelsGroup").get("children");r.each(l,function(e){var i=e.get("origin")||[];i[s]===c[s]&&i[u]===c[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},e._bindFilterEvent=function(t,e){var n=this,i=this.chart,a=e.field;t.on("itemfilter",function(t){var e=t.range;i.filterShape(function(t,i,o){if(!r.isNil(t[a])){var s=t[a]>=e[0]&&t[a]<=e[1];return n._filterLabels(i,o,s),s}return!0});for(var o=i.getAllGeoms()||[],s=function(t){var n=o[t];"heatmap"===n.get("type")&&h(function(){n.drawWithRange(e)})},u=0;u<o.length;u++)s(u)})},e._getShapeData=function(t){var e=t.get("origin");return r.isArray(e)&&(e=e[0]),e._origin},e._bindHoverEvent=function(t,e){var n=this,i=n.chart,a=i.getAllGeoms(),o=n.options,s=i.get("canvas");t.on("itemhover",function(t){var i=t.item.value,u=n.pre;if(u){if(u===i)return}else r.each(a,function(a){var u=a.get("shapeContainer"),c=a.getShapes(),l=[];if(e){var h=a.get("scales")[e];r.each(c,function(t){var a=n._getShapeData(t);a&&function(t,e,n){return!r.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}(a[e],i,h)&&l.push(t)})}else a.getYScale().field===i&&(l=c);r.isEmpty(l)||(t.shapes=l,t.geom=a,o.onHover?(o.onHover(t),u.sort(),s.draw()):a.setShapesActived(l))}),n.pre=i}),t.on("itemunhover",function(t){n.pre=null,o.onUnhover&&o.onUnhover(t),r.each(a,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())})})},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var i=!0;return n=t.invert(n),r.each(e,function(e){if(t.getText(e)===t.getText(n))return i=!1,!1}),i},e._alignLegend=function(t,e,n,i){var r=this.viewTheme,a=this.container.get("canvas"),o=a.get("width"),s=a.get("height"),u=this.totalRegion,c=this.plotRange,l=this.getBackRange(),h=t.get("offset")[0]||0,f=t.get("offset")[1]||0,p=t.getHeight(),g=t.getWidth(),d=r.legend.margin,v=r.legend.legendMargin,y=this.legends[i].length,m=i.split("-"),x=0,b=0,_=y>1?u:n;if("left"===m[0]||"right"===m[0])s=c.br.y,x=this._getXAlign(m[0],o,n,l,g,d),b=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+v:this._getYAlignVertical(m[1],s,_,l,0,d,a.get("height"));else if("top"===m[0]||"bottom"===m[0])if(b=this._getYAlignHorizontal(m[0],s,n,l,p,d),e){var S=e.getWidth();x=(e.get("x")||e.get("group").get("x"))+S+v}else x=this._getXAlign(m[1],o,_,l,0,d),"right"===m[1]&&(x=c.br.x-_.totalWidth);t.move(x+h,b+f)},e._getXAlign=function(t,e,n,i,r,a){var o=i.minX-r-a[3]<0?0:i.minX-r-a[3],s="left"===t?o:i.maxX+a[1];return"center"===t&&(s=(e-n.totalWidth)/2),s},e._getYAlignHorizontal=function(t,e,n,i,r,a){return"top"===t?i.minY-r-a[0]:i.maxY+a[2]},e._getYAlignVertical=function(t,e,n,i,r,a,o){var s="top"===t?i.minY-r-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,i=0,a=0;return r.each(t,function(t){var r=t.getWidth(),o=t.getHeight();e<r&&(e=r),i+=r,n<o&&(n=o),a+=o}),{maxWidth:e,totalWidth:i,maxHeight:n,totalHeight:a}},e._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,i=e.legend.legendMargin,a=[],o=0,s=0;return r.each(n,function(e){var n=t._getSubRegion(e);a.push(n),o+=n.totalWidth+i,s+=n.totalHeight+i}),{totalWidth:o,totalHeight:s,subs:a}},e._addCategoryLegend=function(t,e,n,u,c){var h=this,f=t.field,p=h.options,g=p[f];g&&(p=g);var d=h.legends;d[c]=d[c]||[];var v=h.container,y=[],m=t.getTicks(),x=!0,b=n.get("shapeType")||"point",_=n.getDefaultValue("shape")||"circle";p[f]&&p[f].marker?(_=p[f].marker,b="point",x=!1):p.marker&&(_=p.marker,b="point",x=!1);var S=h.chart,w=h.viewTheme,M=S.get("canvas"),k=h.plotRange,C=c.split("-"),A="right"===C[0]||"left"===C[0]?k.bl.y-k.tr.y:M.get("width");r.each(m,function(e){var i=e.text,a=e.value,o=t.invert(a),c={isInCircle:n.isInCircle()},f=!u||h._isFiltered(t,u,a),p=n.getAttr("color"),g=n.getAttr("shape");if(p)if(p.callback&&p.callback.length>1){var d=Array(p.callback.length-1).fill("");c.color=p.mapping.apply(p,[o].concat(d)).join("")||w.defaultColor}else c.color=p.mapping(o).join("")||w.defaultColor;if(x&&g)if(g.callback&&g.callback.length>1){var v=Array(g.callback.length-1).fill("");_=g.mapping.apply(g,[o].concat(v)).join("")}else _=g.mapping(o).join("");var m=s.getShapeFactory(b).getMarkerCfg(_,c);l.legendMarkerRadius&&(m.radius=l.legendMarkerRadius),r.isFunction(_)&&(m.symbol=_),y.push({value:i,dataValue:o,checked:f,marker:m})});var P=r.deepMix({},w.legend[C[0]],p[f]||p,{viewId:S.get("_id"),maxLength:A,items:y,container:v,position:[0,0]});P.title&&r.deepMix(P,{title:{text:t.alias||t.field}});var O;if(h._isTailLegend(p,n))P.chart=h.chart,P.geom=n,O=new o(P);else if(p.useHtml){var T=v.get("canvas").get("el");if(v=p.container,r.isString(v)&&/^\#/.test(v)){var I=v.replace("#","");v=document.getElementById(I)}v||(v=T.parentNode),P.container=v,void 0===P.legendStyle&&(P.legendStyle={}),P.legendStyle.CONTAINER_CLASS=i({},P.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===T.style.zIndex?1:parseInt(T.style.zIndex,10)+1}),p.flipPage?(P.legendStyle.CONTAINER_CLASS.height="right"===C[0]||"left"===C[0]?A+"px":"auto",P.legendStyle.CONTAINER_CLASS.width="right"!==C[0]&&"left"!==C[0]?A+"px":"auto",O=new a.CatPageHtml(P)):O=new a.CatHtml(P)}else O=new a.Category(P);return h._bindClickEvent(O,t,u),d[c].push(O),O},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",function(e){var i=!1;if(e.target){var a=e.target.get("origin");if(a){var o=a._origin||a[0]._origin,s=t.field;if(o){var u=o[s];r.each(n,function(t){r.each(t,function(t){i=!0,!t.destroyed&&t.activate(u)})})}}}i||r.each(n,function(t){r.each(t,function(t){!t.destroyed&&t.deactivate()})})})},e._addContinuousLegend=function(t,e,n){var i=this.legends;i[n]=i[n]||[];var o,s,u,c=this.container,l=t.field,h=t.getTicks(),f=[],p=this.viewTheme;r.each(h,function(n){var i=n.value,r=t.invert(i),a=e.mapping(r).join("");f.push({value:n.tickValue,attrValue:a,color:a,scaleValue:i}),0===i&&(s=!0),1===i&&(u=!0)}),s||f.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),u||f.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=this.options,d=n.split("-"),v=p.legend[d[0]];(g&&!1===g.slidable||g[l]&&!1===g[l].slidable)&&(v=r.mix({},v,p.legend.gradient));var y=r.deepMix({},v,g[l]||g,{items:f,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(y.title&&r.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type)o=new a.Color(y);else{if("size"!==e.type)return;o=g&&"circle"===g.sizeType?new a.CircleSize(y):new a.Size(y)}return this._bindFilterEvent(o,t),i[n].push(o),o},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(r.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var i=t.split("-");1===i.length?("left"===i[0]&&(n="left-bottom"),"right"===i[0]&&(n="right-bottom"),"top"===i[0]&&(n="top-center"),"bottom"===i[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,i){var r=this.options,a=t.field,o=r[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var u=r.position||s.defaultLegendPosition;u=this._adjustPosition(u,this._isTailLegend(r,n)),o&&o.position&&(u=this._adjustPosition(o.position,this._isTailLegend(o,n)));var c;(c=t.isLinear?this._addContinuousLegend(t,e,u):this._addCategoryLegend(t,e,n,i,u))&&(this._bindHoverEvent(c,a),r.reactive&&this._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,i=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var u=this.legends;u[s]=u[s]||[];var c=o.items;if(c){var h=e.getAllGeoms();r.each(c,function(t){var e=function(t,e){var n;return r.each(t,function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)}),n}(h,t.value);r.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||l.legendMarkerRadius||4.5:(t.marker={symbol:t.marker||"circle",radius:l.legendMarkerRadius||4.5},-1!==r.indexOf(f,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;r.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=r.lowerFirst(n.substr(6))),t.checked=!!r.isNil(t.checked)||t.checked,t.geom=e});var p,g=e.get("canvas"),d=this.plotRange,v=s.split("-"),y="right"===v[0]||"left"===v[0]?d.bl.y-d.tr.y:g.get("width"),m=r.deepMix({},n.legend[v[0]],o,{maxLength:y,items:c,container:i,position:[0,0]});if(o.useHtml){var x=o.container;if(/^\#/.test(i)){var b=x.replace("#","");x=document.getElementById(b)}else x||(x=i.get("canvas").get("el").parentNode);m.container=x,void 0===m.legendStyle&&(m.legendStyle={}),m.legendStyle.CONTAINER_CLASS||(m.legendStyle.CONTAINER_CLASS={height:"right"===v[0]||"left"===v[0]?y+"px":"auto",width:"right"!==v[0]&&"left"!==v[0]?y+"px":"auto",position:"absolute",overflow:"auto"}),p=o.flipPage?new a.CatPageHtml(m):new a.CatHtml(m)}else p=new a.Category(m);return u[s].push(p),p.on("itemclick",function(t){o.onClick&&o.onClick(t)}),this._bindHoverEvent(p),p}},e.addMixedLegend=function(t,e){var n=this.options,i=[];r.each(t,function(t){var a=t.alias||t.field,o=n[t.field];r.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0&&!1!==o){var n=e.get("shapeType")||"point",r=e.getDefaultValue("shape")||"circle",u=s.getShapeFactory(n),c={color:e.getDefaultValue("color")},h=u.getMarkerCfg(r,c);l.legendMarkerRadius&&(h.radius=l.legendMarkerRadius);var f={value:a,marker:h,field:t.field};i.push(f)}})});var a={custom:!0,items:i};this.options=r.deepMix({},a,this.options);var o=this.addCustomLegend();this._bindClickEventForMix(o)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var i=0;return r.each(e,function(e,a){var o=n.subs[i];r.each(e,function(n,i){var r=e[i-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,r,o,a)}),i++}),this},t}();t.exports=p},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(0),o=n(22),s=n(7),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this.get("unCheckColor"),r=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});r.translate(n,0),r.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=a.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(c.fill&&(c.fill=i),c.stroke&&(c.stroke=i));var l=r.addShape("marker",{type:"marker",attrs:c});l.attr("cursor","pointer"),l.name="legend-marker",u+=l.getBBox().width+s}var h=a.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||a.mix(h,{fill:i});var f=r.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=r.getBBox(),g=this.get("itemWidth"),d=r.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:g||p.width,height:p.height}});return d.attr("cursor","pointer"),d.setSilent("origin",t),d.name="legend-item",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo")),r.name="legendGroup",r},n._adjust=function(){if(this.get("geom")){this.get("group").attr("matrix")[7]=0;var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;a.each(e,function(e){var i=t[n],r=i[i.length-1].y;a.isArray(r)&&(r=r[1]);var o=e.getBBox().height,s=e.get("x"),u=r-o/2;e.translate(s,u),n++}),this.get("autoLayout")&&this._antiCollision(e)}},n.render=function(){var e=this;t.prototype.render.call(this);this.get("chart").once("afterpaint",function(){e._adjust()})},n._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},n._adjustDenote=function(t,e,n){var i=2*-s.legend.legendMargin;t.addShape("path",{attrs:{path:"M-2,"+e+"L"+i+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},n._antiCollision=function(t){if(void 0===t&&(t=[]),t.length){var e=this;t.sort(function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]});var n=!0,i=e.get("chart").get("plotRange"),r=i.tl.y,a=Math.abs(r-i.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,c=t.map(function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-r]}});s-=r;for(var l=0;n;){for(var h=0;h<c.length;h++){var f=c[h],p=(Math.min.apply(s,f.targets)+Math.max.apply(s,f.targets))/2;f.pos=Math.min(Math.max(s,p-f.size/2),a-f.size)}for(n=!1,l=c.length;l--;)if(l>0){var g=c[l-1],d=c[l];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),c.splice(l,1),n=!0)}}l=0;var v=this.get("itemsGroup").addGroup();c.forEach(function(n){var i=r+o;n.targets.forEach(function(){var r=t[l].attr("matrix")[7],a=n.pos+i-o/2;Math.abs(r-a)>o/2&&e._adjustDenote(v,a,r-e.get("group").attr("matrix")[7]/2),t[l].translate(0,-r),t[l].translate(0,a),i+=o,l++})})}},e}(o.Legend.Category);t.exports=u},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t,e){if(!t)return!1;return!!t.className&&(o.isNil(t.className.baseVal)?t.className:t.className.baseVal).includes(e)}function a(t){var e=[];return o.each(t,function(t){var n=function(t,e){var n=-1;return o.each(t,function(t,i){var r=!0;for(var a in e)if(e.hasOwnProperty(a)&&!f.includes(a)&&!o.isObject(e[a])&&e[a]!==t[a]){r=!1;break}if(r)return n=i,!1}),n}(e,t);-1===n?e.push(t):e[n]=t}),e}var o=n(0),s=n(19),u=n(22).Tooltip,c=o.MatrixUtil.vec2,l=["line","area","path","areaStack"],h=["line","area"],f=["marker","showMarker"],p=function(){function t(t){o.assign(this,t),this.timeStamp=0,this.locked=!1}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),i=n.getPointByClient(t.clientX,t.clientY),r=n.get("pixelRatio");i.x=i.x/r,i.y=i.y/r;var a=e.getViewsByPoint(i);return i.views=a,i},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options.triggerOn;return e&&"mousemove"!==e?"click"===e?t="plotclick":"none"===e&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,i=o.mix({},e.tooltip),r=t.getAllGeoms().filter(function(t){return t.get("visible")}),a=[];o.each(r,function(t){var e=t.get("type"),n=t.get("adjusts"),i=!1;n&&o.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return i=!0,!1}),-1!==o.indexOf(a,e)||i||a.push(e)});var s,u=!(!r.length||!r[0].get("coord"))&&r[0].get("coord").isTransposed;if(r.length&&r[0].get("coord")&&"cartesian"===r[0].get("coord").type)if("interval"===a[0]&&!1!==n.shared){var c=o.mix({},e.tooltipCrosshairsRect);c.isTransposed=u,s={zIndex:0,crosshairs:c}}else if(o.indexOf(h,a[0])>-1){var l=o.mix({},e.tooltipCrosshairsLine);l.isTransposed=u,s={crosshairs:l}}return o.mix(i,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,o.wrapBehavior(this,"onMouseMove")),t.on("plotleave",o.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,o.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",o.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,i){var r=this.tooltip,s=this.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=a(e),this.prePoint=t;var u=this.chart,c=this.viewTheme,l=o.isArray(t.x)?t.x[t.x.length-1]:t.x,h=o.isArray(t.y)?t.y[t.y.length-1]:t.y;r.get("visible")||u.emit("tooltip:show",{x:l,y:h,tooltip:r});var f=e[0],p=f.title||f.name;r.isContentChange(p,e)&&(u.emit("tooltip:change",{tooltip:r,x:l,y:h,items:e}),p=e[0].title||e[0].name,r.setContent(p,e),o.isEmpty(n)?(r.clearMarkers(),r.set("markerItems",[])):!0===this.options.hideMarkers?r.set("markerItems",n):r.setMarkers(n,c.tooltipMarker));i===this._getCanvas()&&"mini"===r.get("type")?r.hide():(r.setPosition(l,h,i),r.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!o.isEmpty(t.views)&&!this.locked){var e=this.timeStamp,n=+new Date,i={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(i,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&!this.locked&&(t&&t.toElement&&(r(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,i=!1;n&&n!==document.body;){if(r(n,e)){i=!0;break}n=n.parentNode}return i}(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t.viewTheme,i=t._getCanvas(),r=t._getDefaultTooltipCfg(),a=t.options;(a=o.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:i,frontPlot:e.get("frontPlot"),viewTheme:n.tooltip,backPlot:e.get("backPlot")},r,a)).crosshairs&&"rect"===a.crosshairs.type&&(a.zIndex=0),a.visible=!1;var s;"mini"===a.type?(a.crosshairs=!1,a.position="top",s=new u.Mini(a)):s=a.useHtml?new u.Html(a):new u.Canvas(a),t.tooltip=s;var c=t._getTriggerEvent(),l=s.get("container");s.get("enterable")||"plotmove"!==c||l&&(l.onmousemove=function(n){var i=t._normalizeEvent(n);e.emit(c,i)}),l&&(l.onmouseleave=function(){t.locked||t.hideTooltip()}),t._bindEvent()}},e._formatMarkerOfItem=function(t,e,n){var i=this.options,r=n.point;if(r&&r.x&&r.y){var a=o.isArray(r.x)?r.x[r.x.length-1]:r.x,s=o.isArray(r.y)?r.y[r.y.length-1]:r.y;r=t.applyMatrix(a,s,1),n.x=r[0],n.y=r[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||i.hasOwnProperty("useHtml")&&!i.useHtml||(n.color=n.color.split(" ")[1].substring(2));var u=this._getItemMarker(e,n);if(n.marker=u,-1!==o.indexOf(l,e.get("type")))return n}return null},e.lockTooltip=function(){this.locked=!0},e.unlockTooltip=function(){this.locked=!1},e.showTooltip=function(t,e,n){var i=this,r=this;if(!o.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var a=r.options,s=[],u=[];if(o.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),c=e.get("coord");o.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var l=e.get("dataArray");if(e.isShareTooltip()||!1===a.shared&&o.inArray(["area","line","path","polygon"],n)){var h=e.getXScale(),f=e.getAttr("color"),p=f?f.field:void 0;if("interval"===n&&h.field===p&&e.hasAdjust("dodge")){var g=o.find(l,function(n){return!!e.findPoint(t,n)});o.each(g,function(t){var n=e.getTipItems(t,a.title);o.each(n,function(t){var n=r._formatMarkerOfItem(c,e,t);n&&s.push(n)}),u=u.concat(n)})}else o.each(l,function(n){var i=e.findPoint(t,n);if(i){var l=e.getTipItems(i,a.title);o.each(l,function(t){var n=r._formatMarkerOfItem(c,e,t);n&&s.push(n)}),u=u.concat(l)}})}else{var d=e.get("shapeContainer"),v=d.get("canvas").get("pixelRatio"),y=d.getShape(t.x*v,t.y*v);y&&y.get("visible")&&y.get("origin")&&(u=e.getTipItems(y.get("origin"),a.title)),o.each(u,function(t){var n=i._formatMarkerOfItem(c,e,t);n&&s.push(n)})}}}),o.each(u,function(t){var e=t.point,n=o.isArray(e.x)?e.x[e.x.length-1]:e.x,i=o.isArray(e.y)?e.y[e.y.length-1]:e.y;e=c.applyMatrix(n,i,1),t.x=e[0],t.y=e[1]})}),u.length){var l=u[0];if(!u.every(function(t){return t.title===l.title})){var h=l,f=1/0;u.forEach(function(e){var n=c.distance([t.x,t.y],[e.x,e.y]);n<f&&(f=n,h=e)}),u=u.filter(function(t){return t.title===h.title}),s=s.filter(function(t){return t.title===h.title})}if(!1===a.shared&&u.length>1){var p=u[0],g=Math.abs(t.y-p.y);o.each(u,function(e){Math.abs(t.y-e.y)<=g&&(p=e,g=Math.abs(t.y-e.y))}),p&&p.x&&p.y&&(s=[p]),u=[p]}r._setTooltip(t,u,s,n)}else r.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=this.options.marker||this.viewTheme.tooltip.marker;if(o.isFunction(n)){var r=t.get("shapeType")||"point",a=t.getDefaultValue("shape")||"circle",u=s.getShapeFactory(r),c={color:e.color};return n(u.getMarkerCfg(a,c),e)}return i({fill:e.color},n)},t}();t.exports=p},function(t,e,n){function i(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isNil(n)&&a.isNil(i)?a.isEqual(t,e):a.isEqual(n,i)}function r(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),o=function(){function t(t){this.view=null,this.canvas=null,a.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},i=e.getViewsByPoint(n);return n.views=i,n},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var i=this.view;if(i.isShapeInView(t)){var r=t.name+":"+e;n.view=i,n.appendInfo=t.get("appendInfo"),i.emit(r,n);var a=i.get("parent");a&&a.emit(r,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var a=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=a,r(o),e.emit("mousemove",o),this._triggerShapeEvent(a,"mousemove",o),n&&!i(n,a)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=a,r(s),this._triggerShapeEvent(n,"mouseleave",s)}if(a&&!i(n,a)){var u=this._getShapeEventObj(t);u.shape=a,u.fromShape=n,r(u),this._triggerShapeEvent(a,"mouseenter",u)}this.currentShape=a;var c=this._getPointInfo(t),l=this.curViews||[];0===l.length&&c.views.length&&e.emit("plotenter",this._getEventObj(t,c,c.views)),l.length&&0===c.views.length&&e.emit("plotleave",this._getEventObj(t,c,l)),c.views.length&&((o=this._getEventObj(t,c,c.views)).shape=a,r(o),e.emit("plotmove",o)),this.curViews=c.views},e.onOut=function(t){var e=this.view,n=this._getPointInfo(t),i=this.curViews||[],r=this._getEventObj(t,n,i);!this.curViews||0===this.curViews.length||r.toElement&&"CANVAS"===r.toElement.tagName||(e.emit("plotleave",r),this.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("click",i),this._triggerShapeEvent(n,t.type,i),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!a.isEmpty(s)){var u=this._getEventObj(t,o,s);if(this.currentShape){var c=this.currentShape;u.shape=c,r(u)}"dblclick"===t.type?(e.emit("plotdblclick",u),e.emit("dblclick",i)):e.emit("plotclick",u)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchstart",i),this._triggerShapeEvent(n,"touchstart",i),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchmove",i),this._triggerShapeEvent(n,"touchmove",i),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){function i(t,e){var n=[];if(!1===t.get("animate"))return[];var r=t.get("children");return s.each(r,function(t){if(t.isGroup)n=n.concat(i(t,e));else if(t.isShape&&t._id){var r=t._id;(r=r.split("-")[0])===e&&n.push(t)}}),n}function r(t,e,n,i){return i?u.Action[n][i]:u.getAnimation(t,e,n)}function a(t,e,n){var i=u.getAnimateCfg(t,e);return n&&n[e]?s.deepMix({},i,n[e]):i}function o(t,e,n,i){var o,u,l=!1;if(i){var h=[],f=[];s.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),h.push(e),delete t[e._id]):f.push(e)}),s.each(t,function(t){var e=t.name,i=t.coord,h=t._id,f=t.attrs,p=t.index,g=t.type;if(u=a(e,"leave",t.animateCfg),o=r(e,i,"leave",u.animation),s.isFunction(o)){var d=n.addShape(g,{attrs:f,index:p});if(d._id=h,d.name=e,i&&"label"!==e){var v=d.getMatrix(),y=c.multiply([],v,i.matrix);d.setMatrix(y)}l=!0,o(d,u,i)}}),s.each(h,function(t){var e=t.name,n=t.get("coord"),i=t.get("cacheShape").attrs;if(!s.isEqual(i,t.attr())){if(u=a(e,"update",t.get("animateCfg")),o=r(e,n,"update",u.animation),s.isFunction(o))o(t,u,n);else{var c=s.cloneDeep(t.attr());t.attr(i),t.animate(c,u.duration,u.easing,function(){t.setSilent("cacheShape",null)})}l=!0}}),s.each(f,function(t){var e=t.name,n=t.get("coord");u=a(e,"enter",t.get("animateCfg")),o=r(e,n,"enter",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)})}else s.each(e,function(t){var e=t.name,n=t.get("coord");u=a(e,"appear",t.get("animateCfg")),o=r(e,n,"appear",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)});return l}var s=n(0),u=n(125),c=s.MatrixUtil.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),r=t.get("backPlot"),a=t.get("_id"),u=t.get("canvas"),c=u.get(a+"caches")||[];0===c.length&&(e=!1);var l=i(n,a),h=i(r,a),f=l.concat(h);u.setSilent(a+"caches",function(t){var e={};return s.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:s.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}(f));(e?o(c,f,u,e):o(c,l,u,e))||u.draw()}}},function(t,e,n){var i=n(0),r=n(16).Group,a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{getDefaultCfg:function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBackground(),this._renderPlotBackground()},_renderBackground:function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},r=this.get("backgroundShape");r?r.attr(n):(r=this.addShape("rect",{attrs:i.mix(n,t)}),this.set("backgroundShape",r))}},_renderPlotBackground:function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,r=e.br.y-e.tr.y,a=e.tl,o={x:a.x,y:a.y,width:n,height:r},s=this.get("plotBackShape");s?s.attr(o):(t.image?(o.img=t.image,s=this.addShape("image",{attrs:o})):(i.mix(o,t),s=this.addShape("rect",{attrs:o})),this.set("plotBackShape",s))}},_convert:function(t,e){if(i.isString(t))if("auto"===t)t=0;else if(t.includes("%")){var n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*r:t*a}return t},_calculateRange:function(){var t=this.get("plotRange");i.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=i.toAllPadding(e),s=this._convert(o[0],!1),u=this._convert(o[1],!0),c=this._convert(o[2],!1),l=this._convert(o[3],!0),h=Math.min(l,r-u),f=Math.max(l,r-u),p=Math.min(a-c,s),g=Math.max(a-c,s);t.tl={x:h,y:p},t.tr={x:f,y:p},t.bl={x:h,y:g},t.br={x:f,y:g},t.cc={x:(f+h)/2,y:(g+p)/2},this.set("plotRange",t)},repaint:function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this}}),t.exports=a},function(t,e,n){var i=n(7),r=n(0),a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||i;if(!t){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,u=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var c=function(t,e){var n=t.length;r.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var i=t[1]-t[0],a=2;a<n;a++){var o=t[a]-t[a-1];i>o&&(i=o)}return i}(s,o);n=(o.max-o.min)/c,s.length>n&&(n=s.length)}else n=s.length;var l=o.range,h=1/n,f=1;if(this.isInCircle()?f=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(h*=l[1]-l[0]),f=e.widthRatio.column),h*=f,this.hasAdjust("dodge")){var p=this._getDodgeCfg(u),g=p.dodgeCount,d=p.dodgeRatio;h/=g,d>0&&(h=d*h/f)}t=h,this.set("defaultSize",t)}return t},_getDodgeCfg:function(t){var e,n,i=this.get("adjusts"),a=t.length;if(r.each(i,function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)}),e){var o=r.Array.merge(t);a=r.Array.values(o,e).length}return{dodgeCount:a,dodgeRatio:n}},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),i=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return n&&i&&(r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))),r},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_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=r.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var i=n(0),r=n(7);t.exports={splitData:function(t){var e=this.get("viewTheme")||r;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale().field;return i.each(t,function(t){n=t._origin?t._origin[s]:t[s],e.connectNulls?i.isNil(n)||o.push(t):i.isArray(n)&&i.isNil(n[0])||i.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}}},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=n(21),s=n(360),u=n(0),c=function(t){function e(e){var n;return n=t.call(this,e)||this,u.assign(r(n),s),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);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.hasStack(),n},n.draw=function(t,e,n,i){var r=this,a=this.splitData(t),o=this.getDrawCfg(t[0]);r._applyViewThemeShapeStyle(o,o.shape,n),o.origin=t,u.each(a,function(t,a){if(!u.isEmpty(t)){o.splitedIndex=a,o.points=t;var s=n.drawShape(o.shape,o,e);r.appendShapeInfo(s,i+a)}})},e}(o);o.Path=c,t.exports=c},,,,,,function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var s=n(21),u=n(0),c=n(359);n(368);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,u.assign(r(n),c),n}o(e,t);i(e);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}(s),h=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(l),f=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(l),p=function(t){function e(){return t.apply(this,arguments)||this}o(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(l);l.Stack=h,l.Dodge=f,l.Symmetric=p,s.Interval=l,s.IntervalStack=h,s.IntervalDodge=f,s.IntervalSymmetric=p,t.exports=l},function(t,e,n){function i(t,e){var n=t.x,i=t.y,r=t.y0,a=t.size,o=r,s=i;f.isArray(i)&&(s=i[1],o=i[0]);var u,c;f.isArray(n)?(u=n[0],c=n[1]):(u=n-a/2,c=n+a/2);var l=[];return l.push({x:u,y:o},{x:u,y:s}),e?l.push({x:c,y:(s+o)/2}):l.push({x:c,y:s},{x:c,y:o}),l}function r(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var a=t[0];return e.push(["L",a.x,a.y]),e.push(["z"]),e}function a(t){var e=v.shape.interval,n=f.mix({},e,t.style);return d.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function o(t){var e=v.shape.hollowInterval,n=f.mix({},e,t.style);return d.addStrokeAttrs(n,t),n}function s(t,e){var n=[],i=t.points,r=t.nextPoints;return f.isNil(r)?e?n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[2].x,i[2].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),n}function u(t,e){var n,i=e.geom.get("coord"),r=e.point;if(i&&"theta"===i.type){var a=function(t,e){var n,i,r,a,o=e.getRadius(),s=o*e.innerRadius;return!f.isArray(t.x)&&f.isArray(t.y)&&(t.x=[t.x,t.x]),f.isArray(t.x)?(r={x:t.x[0],y:t.y[0]},a={x:t.x[1],y:t.y[1]},n=g.getPointAngle(e,r),(i=g.getPointAngle(e,a))<=n&&(i+=2*Math.PI)):(a=t,n=e.startAngle,i=g.getPointAngle(e,a)),{r:o,ir:s,startAngle:n,endAngle:i}}(r,i),o=(a.endAngle-a.startAngle)/2+a.startAngle;n={transform:[["t",7.5*Math.cos(o),7.5*Math.sin(o)]]}}return f.mix({},n)}function c(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function l(t,e,n,i,r,a,o){for(var s=2*Math.ceil(2*t/n*4),u=[];i<2*-Math.PI;)i+=2*Math.PI;for(;i>0;)i-=2*Math.PI;var l=a-t+(i=i/Math.PI/2*n)-2*t;u.push(["M",l,e]);for(var h=0,f=0;f<s;++f){var p=c(f*n/4,f%4,n,r);u.push(["C",p[0][0]+l,-p[0][1]+e,p[1][0]+l,-p[1][1]+e,p[2][0]+l,-p[2][1]+e]),f===s-1&&(h=p[2][0])}return u.push(["L",h+l,o+t]),u.push(["L",l,o+t]),u.push(["L",l,e]),u}function h(t,e,n,i,r,a,o,s){for(var u=o.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,f=0;f<i;f++){var p=a.addShape("path",{attrs:{path:l(s,u.minY+h*n,c/4,0,c/64,t,e),fill:r[f],clip:o}});"canvas"===v.renderer&&p.animate({transform:[["t",c/2,0]],repeat:!0},5e3-300*f)}}var f=n(0),p=n(19),g=n(23),d=n(45),v=n(7),y=n(16),m=f.PathUtil,x=p.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){if(!t||f.inArray(["rect","funnel","pyramid"],t)){return{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}}return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return i(t)},getSelectedCfg:function(t,e){return u(0,e)}});p.registerShape("interval","rect",{draw:function(t,e){var n=a(t),i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","hollowRect",{draw:function(t,e){var n=o(t),i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,i=t.y0,r=[];return f.isArray(n)?f.each(n,function(t,n){r.push({x:f.isArray(e)?e[n]:e,y:t})}):r.push({x:e,y:n},{x:e,y:i}),r}(t)},draw:function(t,e){var n=o(t);n.lineWidth=t.size||1;var i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"line",radius:5},e)}}),p.registerShape("interval","tick",{getPoints:function(t){return function(t){var e=t.x,n=f.isArray(t.y)?t.y[1]:t.y,i=f.isArray(t.y)?t.y[0]:t.y0,r=t.size,a=[];return a.push({x:e-r/2,y:n},{x:e+r/2,y:n},{x:e,y:n},{x:e,y:i},{x:e-r/2,y:i},{x:e+r/2,y:i}),a}(t)},draw:function(t,e){var n=o(t);n.lineWidth||(n.lineWidth=2);var i=function(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"tick",radius:5},e)}}),p.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,i(t)},draw:function(t,e){var n=a(t),i=s(t,!0);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,i(t,!0)},draw:function(t,e){var n=a(t),i=s(t,!1);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,i=1/0;f.each(t.points,function(t){t.x<i&&(i=t.x),n+=t.x});var r=n/t.points.length,s=this.parsePoint({x:r,y:.5}),u=this.parsePoint({x:i,y:.5}),c=s.x-u.x,l=Math.min(c,u.y),p=a(t),g=new y.Circle({attrs:{x:s.x,y:s.y,r:l}});return h(s.x,s.y,t.y/(2*s.y),1,[p.fill],e,g,4*l),e.addShape("circle",{attrs:f.mix(o(t),{x:s.x,y:s.y,r:l+l/8})})}});var b={};p.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=f.mix({},a(t)),i=t.shape[1],r=0,s=1/0;f.each(t.points,function(t){t.x<s&&(s=t.x),r+=t.x});var u,c=r/t.points.length,l=this.parsePoint({x:c,y:.5}),p=this.parsePoint({x:s,y:.5}),g=l.x-p.x,d=Math.min(g,p.y);if(b[i])u=b[i];else{var v=m.parsePathString(i);b[i]=u={segments:v}}var y=[];n.rotate&&(y.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var x=e.addShape("path",{attrs:f.mix(n,{fillOpacity:0,path:u.segments})}),_=f.cloneDeep(x.getBBox()),S=_.maxX-_.minX,w=_.maxY-_.minY,M=2*d/Math.max(S,w);x.transform(y.concat([["s",M,M]]));var k=M*S/2,C=M*w/2;x.transform([["t",l.x-k,l.y-C]]),h(l.x,l.y,t.y/(2*l.y),1,[n.fill],e,x,4*p.y);var A=e.addShape("path",{attrs:f.mix(o(t),{path:u.segments})});return A.transform(y.concat([["s",M,M],["t",l.x-k,l.y-C]])),A}}),p.registerShape("interval","top-line",{draw:function(t,e){var n=a(t),i=t.style||{},o=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],s={stroke:i.stroke||"white",lineWidth:i.lineWidth||1,path:this.parsePath(o)},u=r(t.points);u=this.parsePath(u),delete n.stroke;var c=e.addShape("path",{attrs:f.mix(n,{zIndex:0,path:u})});return e.addShape("path",{zIndex:1,attrs:s}),c},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=x},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var o=n(21),s=n(361);n(370);var u=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(s),c=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Stack=c,o.Line=u,o.LineStack=c,t.exports=u},function(t,e,n){function i(t){var e=g.shape.line,n=l.mix({},e,t.style);return f.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function r(t){var e=g.shape.line,n=l.mix({lineWidth:2,radius:6},e,t.style);return f.addStrokeAttrs(n,t),n}function a(t,e,n,i){var r;if(e){var a=i.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),r=h.getSplinePath(t,!1,a)}else r=h.getLinePath(t,!1),n&&r.push(["Z"]);return r}function o(t,e){var n=t.points,i=t.isInCircle,r=n[0];return l.isArray(r.y)?function(t,e,n,i){for(var r=[],o=i.isStack,s=[],u=0;u<t.length;u++){var c=t[u],l=f.splitPoints(c);s.push(l[0]),r.push(l[1])}var h=a(r,e,n,i),p=a(s,e,n,i);return o?h:h.concat(p)}(n,e,i,t):a(n,e,i,t)}function s(t,e){return function(t){var e=[];return l.each(t,function(t,n){var i=0===n?["M",t.x,t.y]:["L",t.x,t.y];e.push(i)}),e}(function(t,e){var n=[];return l.each(t,function(i,r){var a=t[r+1];n.push(i),a&&(n=n.concat(e(i,a)))}),n}(t.points,e))}function u(t,e){return l.mix({symbol:e?function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}},r(t))}function c(t,e){return l.mix({symbol:e},r(t))}var l=n(0),h=n(23),f=n(45),p=n(19),g=n(7),d=[1,1],v=[5.5,1],y=p.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return f.splitPoints(t)},drawShape:function(t,e,n){var i,r=this.getShape(t);return(i=1===e.points.length&&g.showSinglePoint?function(t,e,n){var i=e.points[0];return n.addShape("circle",{attrs:l.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}(0,e,n):r.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i}});p.registerShape("line","line",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return u(t)}}),p.registerShape("line","dot",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:r,lineDash:d})})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=d,e}}),p.registerShape("line","dash",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix({path:r,lineDash:v},n)})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=e.lineDash||v,e}}),p.registerShape("line","smooth",{draw:function(t,e){var n=i(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var a=o(t,!0);return e.addShape("path",{attrs:l.mix(n,{path:a})})},getMarkerCfg:function(t){return u(t,!0)}}),p.registerShape("line","hv",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vh",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]})}}),p.registerShape("line","hvh",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[],i=(e.x-t.x)/2+t.x;return n.push({x:i,y:t.y}),n.push({x:i,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vhv",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[],i=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:i}),n.push({x:e.x,y:i}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]})}}),y.spline=y.smooth,t.exports=y},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var o=n(21),s=n(0);n(372);var u=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,i){var r=this,a=t.shape,o=r.getDrawCfg(t);r._applyViewThemeShapeStyle(o,a,n);var u;if(s.isArray(t.y)){var c=r.hasStack();s.each(t.y,function(t,s){o.y=t,o.yIndex=s,c&&0===s||(u=n.drawShape(a,o,e),r.appendShapeInfo(u,i+s))})}else s.isNil(t.y)||(u=n.drawShape(a,o,e),r.appendShapeInfo(u,i))},e}(o),c=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(u),l=function(t){function e(){return t.apply(this,arguments)||this}a(e,t);i(e);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Jitter=c,u.Stack=l,o.Point=u,o.PointJitter=c,o.PointStack=l,t.exports=u},function(t,e,n){function i(t){var e=s.shape.point,n=a.mix({},e,t.style);return o.addFillAttrs(n,t),a.isNumber(t.size)&&(n.radius=t.size),n}function r(t){var e=s.shape.hollowPoint,n=a.mix({},e,t.style);return o.addStrokeAttrs(n,t),a.isNumber(t.size)&&(n.radius=t.size),n}var a=n(0),o=n(45),s=n(7),u=n(19),c=n(16).Marker,l=a.PathUtil,h=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],f=Math.sqrt(3);a.mix(c.Symbols,{hexagon:function(t,e,n){var i=n/2*f;return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var p=u.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,i=e.radius;return n=t&&(0===t.indexOf("hollow")||-1!==a.indexOf(h,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,{radius:i+1,shadowBlur:i,shadowColor:n,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return o.splitPoints(t)}});u.registerShape("point","rect",{draw:function(t,e){var n=i(t),r=function(t){var e=t.points[0].x,n=t.points[0].y,i=t.size[0],r=t.size[1];return[["M",e-.5*i,n-.5*r],["L",e+.5*i,n-.5*r],["L",e+.5*i,n+.5*r],["L",e-.5*i,n+.5*r],["z"]]}(t);r=this.parsePath(r);return e.addShape("path",{attrs:a.mix(n,{path:r})})},getMarkerCfg:function(t){var e=i(t);return e.symbol="rect",e.radius=4.5,e}}),a.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],function(t){u.registerShape("point",t,{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}}),u.registerShape("point","hollow"+a.upperFirst(t),{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}})}),a.each(h,function(t){u.registerShape("point",t,{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}})}),u.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var g={};u.registerShape("point","path",{draw:function(t,e){var n,o=a.mix({},r(t),i(t)),s=t.shape[1],u=t.size||10;if(g[s])n=g[s];else{var c=l.parsePathString(s),h=a.flatten(c).filter(function(t){return a.isNumber(t)});g[s]=n={range:Math.max.apply(null,h)-Math.min.apply(null,h),segments:c}}var f=u/n.range,p=[];o.rotate&&(p.push(["r",o.rotate/180*Math.PI]),delete o.rotate);var d=e.addShape("path",{attrs:a.mix(o,{path:n.segments})});return p.push(["s",f,f],["t",t.x,t.y]),d.transform(p),d}}),t.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(172);n(367),n(369),n(371),t.exports=i}])});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2_3=e():t.G2_3=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=506)}([function(t,e,n){var i=n(126),r=n(16),a=i.mix({},i,{assign:i.mix,merge:i.deepMix,cloneDeep:i.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:i.isNumberEqual,remove:i.pull,inArray:i.contains,toAllPadding:function(t){var e=0,n=0,i=0,r=0;return a.isNumber(t)||a.isString(t)?e=n=i=r=t:a.isArray(t)?(e=t[0],i=a.isNil(t[1])?t[0]:t[1],r=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?i:t[3]):a.isObject(t)&&(e=t.top||0,i=t.right||0,r=t.bottom||0,n=t.left||0),[e,i,r,n]},getClipByRange:function(t){var e=t.tl,n=t.br;return new r.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}})}});a.Array={groupToMap:i.groupToMap,group:i.group,merge:i.merge,values:i.valuesOfKey,getRange:i.getRange,firstValue:i.firstValue,remove:i.pull},t.exports=a},function(t,e,n){var i=n(81),r={};i.merge(r,i,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var i={};r.each(e,function(e){r.augment(t,e);var a=e[n];a&&r.merge(i,a)}),t[n]=r.merge(i,t[n])}}}),t.exports=r},function(t,e,n){var i=n(25),r=n(4);t.exports=function(t,e){if(t)if(r(t))for(var n=0,a=t.length;n<a&&!1!==e(t[n],n);n++);else if(i(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){var i=n(20),r=n(126),a=r.mix({assign:r.mix,isFinite:isFinite,isNaN:isNaN,Group:i.Group,Event:i.Event},r);t.exports=a},function(t,e,n){var i=n(12),r=Array.isArray?Array.isArray:function(t){return i(t,"Array")};t.exports=r},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){var i=n(1),r=n(190),a=n(102),o=n(55),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={},i.extend(s,a);var u={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};i.augment(s,r,{isShape:!0,drawInner:function(t){var e=this._attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var r=e.fillOpacity;i.isNil(r)||1===r?t.fill():(t.globalAlpha=r,t.fill(),t.globalAlpha=n)}if(this.hasStroke()){if(this._attrs.lineWidth>0){var a=e.strokeOpacity;i.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}this.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var i=this.getBBox();if(i&&!o.box(i.minX,i.maxX,i.minY,i.maxY,n[0],n[1]))return!1}var r=this._attrs.clip;return r?(r.invert(n,this.get("canvas")),!!r.isPointInPath(n[0],n[1])&&this.isPointInPath(n[0],n[1])):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this._attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this._cfg.totalMatrix=null,this._cfg.region=null},clearBBox:function(){this._cfg.box=null,this._cfg.region=null},getBBox:function(){var t=this._cfg.box;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._cfg.box=t),t},clone:function(){var t=null,e=this._attrs,n={};return i.each(e,function(t,r){u[r]&&i.isArray(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)i.isArray(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}),t=new this.constructor({attrs:n}),t._cfg.zIndex=this._cfg.zIndex,t}}),t.exports=s},function(t,e,n){var i=n(0),r=n(150),a={version:"3.5.15",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){r[t]=e},setTheme:function(t){var e={};e=i.isObject(t)?t:-1!==i.indexOf(Object.keys(r),t)?r[t]:r.default,i.deepMix(a,e)}};a.setTheme("default"),t.exports=a},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,i,r){return e&&n(t,e),i&&n(t,i),r&&n(t,r),t}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Number")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"String")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Function")}},function(t,e){var n={}.toString;t.exports=function(t,e){return n.call(t)==="[object "+e+"]"}},function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e){t.exports={FONT_FAMILY:'"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"'}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(155),s=["min","max","median","start","end"],u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{xScales:null,yScales:null,el:null})},n.render=function(){},n.clear=function(){var t=this.get("el");t&&t.remove(),this.set("el",null)},n.destroy=function(){this.clear(),t.prototype.destroy.call(this)},n.changeVisible=function(t){this.set("visible",t);var e=this.get("el");e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},n.parsePoint=function(t,e){var n=this.get("xScales"),i=this.get("yScales");a.isFunction(e)&&(e=e(n,i));var r,s;if(a.isArray(e)&&a.isString(e[0])&&-1!==e[0].indexOf("%"))return this._parsePercentPoint(t,e);if(a.isArray(e))r=this._getNormalizedValue(e[0],o.getFirstScale(n)),s=this._getNormalizedValue(e[1],o.getFirstScale(i));else for(var u in e){var c=e[u];n[u]&&(r=this._getNormalizedValue(c,n[u])),i[u]&&(s=this._getNormalizedValue(c,i[u],"y"))}return a.isNil(r)||a.isNil(s)||isNaN(r)||isNaN(s)?null:t.convert({x:r,y:s})},n._getNormalizedValue=function(t,e){var n;if(-1!==a.indexOf(s,t)){var i;"start"===t?n=0:"end"===t?n=1:"median"===t?(i=e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2,n=e.scale(i)):(i=e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(i))}else n=e.scale(t);return n},n._parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,i=parseFloat(e[1])/100,r=t.start,a=t.end,o={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)};return{x:t.width*n+o.x,y:t.height*i+o.y}},e}(n(32));t.exports=u},function(t,e,n){var i=n(20);t.exports=i},function(t,e,n){"use strict";var i=n(61);n.d(e,"a",function(){return i.e}),n.d(e,"f",function(){return i.g}),n.d(e,"d",function(){return i.f});var r=n(205);n.d(e,"e",function(){return r.a}),n.d(e,"c",function(){return r.b});var a=n(206);n.d(e,"b",function(){return a.a})},function(t,e,n){var i=n(8),r=n(2),a=n(25),o=n(5),s=function(){function t(t){this._initDefaultCfg(),i(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 r(e,function(e){var i;i=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(i)}),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 r(t,function(e,i){n[i]=t[i]}),new e(n)},e.change=function(t){return this.ticks=null,i(this,t),this.init(),this},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(23),a=i.PathUtil,o={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=a.parsePathString(t),t=n.isPolar&&!1!==e?r.convertPolarPath(n,t):r.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return i.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){i.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var i=this.defaultShapeType;n=this.getShape(i)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var i=this.getShape(t).draw(e,n);return i&&(i.setSilent("origin",e.origin),i._id=e.yIndex?e._id+e.yIndex:e._id,i.name=this.name),i}};o.registerFactory=function(t,e){var n=i.upperFirst(t),r=i.assign({},u,e);return o[n]=r,r.name=t,r},o.registerShape=function(t,e,n){var r=i.upperFirst(t),a=o[r],u=i.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){t=t||"point";return this[i.upperFirst(t)]},t.exports=o},function(t,e,n){t.exports={Canvas:n(182),Group:n(101),Shape:n(6),Arc:n(105),Circle:n(106),Dom:n(107),Ellipse:n(108),Fan:n(109),Image:n(110),Line:n(111),Marker:n(57),Path:n(112),Polygon:n(113),Polyline:n(114),Rect:n(115),Text:n(116),PathSegment:n(39),PathUtil:n(58),Event:n(100),version:"3.3.6"}},function(t,e,n){function i(t){return(s.isString(t)||s.isPlainObject(t))&&(t=[t]),s.each(t,function(e,n){s.isObject(e)||(t[n]={type:e})}),t}var r=n(73),a=n(299),o=n(147),s=n(0),u=n(7),c=n(307),l=n(19),h=n(339),f=n(340),p=n(341),g=n(342),d=["color","shape","size"],v=function(t){function e(e){var n;return n=t.call(this,e)||this,n.viewTheme=n.get("viewTheme"),s.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),h,f,p),n.get("container")&&n._initContainer(),n._initOptions(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},n._initOptions=function(){var t=this.get("adjusts");t&&(t=i(t),this.set("adjusts",t))},n._createScale=function(t,e){var n=this.get("scales"),i=n[t];return i||(i=this.get("view").createScale(t,e),n[t]=i),i},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,i){var r={};r.field=e,n?s.isFunction(n)?r.callback=n:r.values=n:"color"!==t&&(r.values=i),this._setAttrOptions(t,r)},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){var n=this.viewTheme||u;return this._createAttrOption("color",t,e,n.colors),this},n.size=function(t,e){var n=this.viewTheme||u;return this._createAttrOption("size",t,e,n.sizes),this},n.shape=function(t,e){var n=this.viewTheme||u,i=this.get("type"),r=n.shapes[i]||[];return this._createAttrOption("shape",t,e,r),this},n.opacity=function(t,e){var n=this.viewTheme||u;return this._createAttrOption("opacity",t,e,n.opacities),this},n.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),s.isObject(t)&&(e=t,t=null);var i;return t&&(i=g(t)),n.fields=i,n.style=e,this},n.label=function(t,e,n){var i=this.get("labelCfg");i||(i={},this.set("labelCfg",i));var r;return t&&(r=g(t)),i.fields=r,s.isFunction(e)?(n||(n={}),i.callback=e):s.isObject(e)&&(n=e),i.globalCfg=n,this},n.tooltip=function(t,e){var n=this.get("tooltipCfg");if(n||(n={}),!1===t)this.set("tooltipCfg",!1);else{var i;t&&(i=g(t)),n.fields=i,n.cfg=e}return this.set("tooltipCfg",n),this},n.animate=function(t){return this.set("animateCfg",t),this},n.active=function(t,e){return!1===t?this.set("allowActive",!1):s.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},n.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=i(t)),this.set("adjusts",t)),this},n.select=function(t,e){return!1===t?this.set("allowSelect",!1):s.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},n.hasAdjust=function(t){var e=this.get("adjusts");if(!t)return!1;var n=!1;return s.each(e,function(e){if(e.type===t)return n=!0,!1}),n},n.hasStack=function(){var t=this.get("isStacked");return s.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},n.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},n._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),i=n&&n.get("_id");t=e.addGroup({viewId:i,visible:this.get("visible")}),this.set("shapeContainer",t)}},n.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;s.each(e,function(e){t._createScale(e)})}var n=t._processData();t.get("adjusts")&&t._adjust(n),t.set("dataArray",n)},n._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),i=this.viewTheme||u,a=!1;for(var o in e)if(e.hasOwnProperty(o)){var c=e[o],l=s.upperFirst(o),h=g(c.field);"position"===o&&(c.coord=n,1===h.length&&"theta"===n.type&&(h.unshift("1"),a=!0));for(var f=[],p=0;p<h.length;p++){var d=h[p],v=this._createScale(d);"color"===o&&s.isNil(c.values)&&(v.values.length<=8?c.values=a?i.colors_pie:i.colors:v.values.length<=16?c.values=a?i.colors_pie_16:i.colors_16:c.values=i.colors_24,s.isNil(c.values)&&(c.values=i.colors)),f.push(v)}if("theta"===n.type&&"position"===o&&f.length>1){var y=f[1],m=Math.max.apply(null,y.values);isFinite(m)||(m=1),y.change({nice:!1,min:0,max:m})}c.scales=f;var x=new r[l](c);t[o]=x}},n._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),i=0;i<n.length;i++){var r=n[i],a=this._saveOrigin(r);e.push(this._numberic(a))}return e},n._groupData=function(t){var e=this._getGroupScales().map(function(t){return t.field});return s.Array.group(t,e)},n._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r={};for(var a in i)r[a]=i[a];r._origin=i,e.push(r)}return e},n._numberic=function(t){for(var e=this.getAttr("position").scales,n=[],i=0;i<t.length;i++){for(var r=t[i],a=!0,o=0;o<Math.min(2,e.length);o++){var s=e[o];if(s.isCategory){var u=s.field;r[u]=s.translate(r[u]),Number.isNaN(r[u])&&(a=!1)}}a&&n.push(r)}return n},n._getGroupScales=function(){var t=this.get("groupScales");if(!t){t=[];var e=this.get("attrs");s.each(e,function(e){if(d.includes(e.type)){var n=e.scales;s.each(n,function(e){e.isCategory&&-1===s.indexOf(t,e)&&t.push(e)})}}),this.set("groupScales",t)}return t},n._updateStackRange=function(t,e,n){for(var i=s.Array.merge(n),r=e.min,a=e.max,o=0;o<i.length;o++){var u=i[o];if(s.isArray(u[t])){var c=Math.min.apply(null,u[t]),l=Math.max.apply(null,u[t]);c<r&&(r=c),l>a&&(a=l)}}(r<e.min||a>e.max)&&e.change({min:r,max:a})},n._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),i=this.viewTheme||u,r=e.getYScale(),o=e.getXScale(),c=o.field,l=r?r.field:null;s.each(n,function(n){var u=s.mix({xField:c,yField:l},n),h=s.upperFirst(n.type);if("Dodge"===h){var f=[];if(o.isCategory||o.isIdentity)f.push("x");else{if(r)throw new Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}u.adjustNames=f,u.dodgeRatio=u.dodgeRatio||i.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!r){u.height=p.getHeight();var g=e.getDefaultValue("size")||3;u.size=g}!p.isTransposed&&s.isNil(u.reverseOrder)&&(u.reverseOrder=!0)}new a[h](u).processAdjust(t),"Stack"===h&&r&&e._updateStackRange(l,r,t)})}},n.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},n.paint=function(){var t=this.get("dataArray"),e=[],n=this.getShapeFactory();n.setCoord(this.get("coord")),this.set("shapeFactory",n);var i=this.get("shapeContainer");this._beforeMapping(t);for(var r=0;r<t.length;r++){var a=t[r],o=r;a=this._mapping(a),e.push(a),this.draw(a,i,n,o)}this.get("labelCfg")&&this._addLabels(s.union.apply(null,e),i.get("children")),this.get("sortable")?this.set("dataArray",e):this._sort(e)},n._sort=function(t){var e=this.getXScale(),n=e.field;s.each(t,function(t){t.sort(function(t,i){return e.translate(t._origin[n])-e.translate(i._origin[n])})}),this.set("dataArray",t)},n._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),i=n.field;s.each(t,function(t){t.sort(function(t,e){return n.translate(t[i])-n.translate(e[i])})})}e.get("generatePoints")&&(s.each(t,function(t){e._generatePoints(t)}),s.each(t,function(e,n){var i=t[n+1];i&&(e[0].nextPoints=i[0].points)}))},n._addLabels=function(t,e){var n=this,i=n.get("type"),r=n.get("viewTheme")||u,a=n.get("coord"),o=c.getLabelsClass(a.type,i),l=n.get("container"),h=s.map(n.get("labelCfg").fields,function(t){return n._createScale(t)}),f=l.addGroup(o,{_id:this.get("_id"),labelCfg:s.mix({scales:h},n.get("labelCfg")),coord:a,geom:n,geomType:i,yScale:n.getYScale(),viewTheme:r,visible:n.get("visible")});f.showLabels(t,e),n.set("labelContainer",f)},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._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),i=0;i<t.length;i++){var r=t[i],a=this.createShapePointsCfg(r),o=n?this._getAttrValues(n,r):null,s=e.getShapePoints(o,a);r.points=s}},n.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this._normalizeValues(t[n.field],n);return e=i?this._normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},n._normalizeValues=function(t,e){var n=[];if(s.isArray(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},n._mapping=function(t){for(var e=this.get("attrs"),n=[],i=0;i<t.length;i++){var r=t[i],a={};a._origin=r._origin,a.points=r.points,a.nextPoints=r.nextPoints;for(var o in e)if(e.hasOwnProperty(o)){var u=e[o],c=u.names,l=this._getAttrValues(u,r);if(c.length>1)for(var h=0;h<l.length;h++){var f=l[h];a[c[h]]=s.isArray(f)&&1===f.length?f[0]:f}else a[c[0]]=1===l.length?l[0]:l}n.push(a)}return n},n._getAttrValues=function(t,e){for(var n=t.scales,i=[],r=0;r<n.length;r++){var a=n[r],o=a.field;"identity"===a.type?i.push(a.value):i.push(e[o])}return t.mapping.apply(t,i)},n.getAttrValue=function(t,e){var n=this.getAttr(t),i=null;if(n){i=this._getAttrValues(n,e)[0]}return i},n.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var i=n.getScale(t);"identity"===i.type&&(e=i.value)}return e},n.draw=function(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];this.drawPoint(a,e,n,i+r)}},n.getCallbackCfg=function(t,e,n){if(!t)return e;var i={},r=t.map(function(t){return n[t]});return s.each(e,function(t,e){s.isFunction(t)?i[e]=t.apply(null,r):i[e]=t}),i},n._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)s.each(n,function(n){e+="-"+t[n]});else{var i,r=this.get("type"),a=this.getXScale(),o=this.getYScale(),u=a.field||"x",c=o.field||"y",l=t[c];i=a.isIdentity?a.value:t[u],e+="interval"===r||"schema"===r?"-"+i:"line"===r||"area"===r||"path"===r?"-"+r:"-"+i+"-"+l;var h=this._getGroupScales();s.isEmpty(h)||s.each(h,function(n){var i=n.field;"identity"!==n.type&&(e+="-"+t[i])})}return e},n.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t._origin)),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t._origin)),e},n.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},n._applyViewThemeShapeStyle=function(t,e,n){var i=this.viewTheme||u,r=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(r="hollow"+s.upperFirst(r)):n.defaultShapeType.indexOf("hollow")>-1&&(r="hollow"+s.upperFirst(r));var a=i.shape[r]||{};t.style=s.mix({},a,t.style)},n.drawPoint=function(t,e,n,i){var r=t.shape,a=this.getDrawCfg(t);this._applyViewThemeShapeStyle(a,r,n);var o=n.drawShape(r,a,e);this.appendShapeInfo(o,i)},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.getShapes=function(){var t=[],e=this.get("shapeContainer").get("children");return s.each(e,function(e){e.get("origin")&&t.push(e)}),t},n.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return s.each(t,function(t){d.includes(t.type)&&e.push(t)}),e},n.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return s.each(d,function(n){var i=e[n];i&&i.field&&s.isString(i.field)&&(t=t.concat(i.field.split("*")))}),s.uniq(t)},n.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var i=this.get("labelContainer");if(i&&i.set("visible",t),!e&&n){n.get("canvas").draw()}},n.reset=function(){this.set("attrOptions",{}),this.clearInner()},n.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},n.clear=function(){this.clearInner(),this.set("scales",{})},n.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},n.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},n.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(o);t.exports=v},function(t,e,n){t.exports={Axis:n(308),Component:n(67),Guide:n(316),Label:n(325),Legend:n(326),Tooltip:n(332)}},function(t,e,n){function i(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function r(t,e){for(var n=t.length,i=[t[0]],r=1;r<n;r+=2){var a=e.convertPoint({x:t[r],y:t[r+1]});i.push(a.x,a.y)}return i}var a=n(0),o=n(336),s={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],i=0,r=t.length;i<r;i++){var a=t[i];0===i?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var i=[],r=t[0],u=null;if(t.length<=2)return s.getLinePath(t,e);a.each(t,function(t){u&&u.x===t.x&&u.y===t.y||(i.push(t.x),i.push(t.y),u=t)}),n=n||[[0,0],[1,1]];var c=o.catmullRom2bezier(i,e,n);return c.unshift(["M",r.x,r.y]),c},getPointRadius:function(t,e){return i(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return a.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(r(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n,o,s,u,c=[];return a.each(e,function(a,l){switch(a[0].toLowerCase()){case"m":case"c":case"q":c.push(r(a,t));break;case"l":n=e[l-1],o=a,s=t.isTransposed,(u=s?n[n.length-2]===o[1]:n[n.length-1]===o[2])?c=c.concat(function(t,e,n){var r=n.isTransposed,a=n.startAngle,o=n.endAngle,s={x:t[1],y:t[2]},u={x:e[1],y:e[2]},c=[],l=r?"y":"x",h=Math.abs(u[l]-s[l])*(o-a),f=u[l]>=s[l]?1:0,p=h>Math.PI?1:0,g=n.convertPoint(u),d=i(n,g);if(d>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},y=n.convertPoint(v);c.push(["A",d,d,0,p,f,y.x,y.y]),c.push(["A",d,d,0,p,f,g.x,g.y])}else c.push(["A",d,d,0,p,f,g.x,g.y]);return c}(n,o,t)):c.push(r(a,t));break;case"z":default:c.push(a)}}),function(t){a.each(t,function(e,n){if("a"===e[0].toLowerCase()){var i=t[n-1],r=t[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}})}(c),c}};t.exports=s},function(t,e,n){var i=n(5);t.exports=function(t){return i(t)?"":t.toString()}},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){var i=n(49),r=n(12);t.exports=function(t){if(!i(t)||!r(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 i=n(1),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,r=0,a=0;return i.isArray(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}},parsePath:function(t){return t=t||[],i.isArray(t)?t:i.isString(t)?(t=t.match(r),i.each(t,function(e,n){if((e=e.match(a))[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}i.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){"use strict";function i(t,e){return function(n){return t+n*e}}function r(t,e){var n=e-t;return n?i(t,n):Object(a.a)(isNaN(t)?e:t)}e.c=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(t){return 1==(t=+t)?r:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Object(a.a)(isNaN(e)?n:e)}},e.a=r;var a=n(120)},function(t,e,n){function i(t,e){return r(e)?e:t.invert(t.scale(e))}var r=n(10),a=n(4),o=n(5),s=n(8),u=n(2),c=function(){function t(t){var e=this;this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null;var n=null,i=this.callback;if(t.callback){var r=t.callback;n=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=r.apply(void 0,n);return o(s)&&(s=i.apply(e,n)),s}}s(this,t),n&&s(this,{callback:n})}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 i=t.scale(e);return this.getLinearValue(i)},e.getLinearValue=function(t){var e=this.values,n=e.length-1,i=Math.floor(n*t),r=n*t-i,a=e[i];return a+((i===n?a:e[i+1])-a)*r},e.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r++)i.push(e[r]);return i},e.getFields=function(){var t=this.scales,e=[];return u(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,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=i;if(e){for(var o=0,s=i.length;o<s;o++)i[o]=this._toOriginParam(i[o],t[o]);a=e.apply(this,i)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var r=0,o=t.length;r<o;r++)n.push(i(e,t[r]))}else n=i(e,t);return n},t}();t.exports=c},function(t,e,n){var i=n(8),r=function(){function t(t){this._initDefaultCfg(),i(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}();t.exports=r},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(32),o=n(3),s=n(152),u=n(153),c=n(14).FONT_FAMILY,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{offset:0,offsetX:0,offsetY:0,textStyle:{},autoRotate:!0,autoHide:!1,formatter:null},labelItems:[],title:{autoRotate:!0,textStyle:{}},autoPaint:!0})},n.beforeRender=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.set("title",o.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c,textAlign:"center"},offset:48},t)),e&&this.set("label",o.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c},offset:10},e)),n&&this.set("grid",o.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},n.render=function(){this.beforeRender();this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),o.isNil(this.get("title"))||this.renderTitle(),this.get("group").sort()},n.renderLabels=function(){var t=this.get("group"),e=this.get("label"),n=new u({name:"axis-label"});this.set("labelRenderer",n),n.set("labelCfg",e);o.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],function(t){e[t]&&n.set(t,e[t])}),n.set("coord",this.get("coord")),n.set("group",t.addGroup()),n.set("canvas",this.get("canvas"))},n._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var i=t[n];o.isObject(i)||(t[n]=this.parseTick(i,n,e))}return this.set("ticks",t),t},n._addTickItem=function(t,e,n,i){void 0===i&&(i="");var r=this.get("tickItems"),a=this.get("subTickItems"),o=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:o.x,y2:o.y};r||(r=[]),a||(a=[]),"sub"===i?a.push(s):r.push(s),this.set("tickItems",r),this.set("subTickItems",a)},n._renderLine=function(){var t,e=this.get("line");if(e){t=this.getLinePath(),e=o.mix({path:t},e);var n=this.get("group").addShape("path",{attrs:e});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},n._processCatTicks=function(){var t=this.get("label"),e=this.get("tickLine"),n=this.get("ticks");n=this._parseTicks(n);for(var i=this._getNormalizedTicks(n),r=0;r<i.length;r+=3){var a=this.getTickPoint(i[r]),o=this.getTickPoint(i[r+1]),s=this.getTickPoint(i[r+2]),u=Math.floor(r/3),c=n[u];e&&(0===u&&this._addTickItem(u,o,e.length),this._addTickItem(u,s,e.length)),t&&this.addLabel(c,a,u)}},n._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],i=0;i<t.length;i++){var r=t[i],a=r.value,s=r.value-e,u=r.value+e;n.push(a,s,u)}var c=o.arrayUtil.getRange(n);return n.map(function(t){return(t-c.min)/(c.max-c.min)})},n.addLabel=function(t,e,n){var i=this.get("labelItems"),r=this.get("labelRenderer"),a=o.deepMix({},this.get("label"));if(r){var s=this.get("_labelOffset");o.isNil(this.get("label").offset)||(s=this.get("label").offset);var u=this.getSideVector(s,e,n);e={x:e.x+u[0]+a.offsetX,y:e.y+u[1]+a.offsetY},a.text=t.text,a.x=e.x,a.y=e.y,a.point=e,a.textAlign=this.getTextAnchor(u),e.rotate&&(a.rotate=e.rotate),i.push(a)}},n._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),i=t.get("tickLine"),r=t.get("ticks");if(r=t._parseTicks(r),o.each(r,function(n,r){var a=t.getTickPoint(n.value,r);i&&t._addTickItem(r,a,i.length),e&&t.addLabel(n,a,r)}),n){var a=t.get("subTickLine");o.each(r,function(e,o){if(o>0){var s=e.value-r[o-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var c={text:"",value:o?r[o-1].value+u*s:u*s},l=t.getTickPoint(c.value),h=void 0;h=a&&a.length?a.length:parseInt(.6*i.length,10),t._addTickItem(u-1,l,h,"sub")}}})}},n._addTickLine=function(t,e){var n=o.mix({},e),i=[];o.each(t,function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])}),delete n.length,n.path=i;var r=this.get("group").addShape("path",{attrs:n});r.name="axis-ticks",r._id=this.get("_id")+"-ticks",r.set("coord",this.get("coord")),this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo"))},n._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!o.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!o.isEmpty(e)){var i=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,i)}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");var e=this.get("group");this.set("gridGroup",e.addGroup(s,t))}},n._renderLabels=function(){var t=this.get("labelRenderer"),e=this.get("labelItems");t&&(t.set("items",e),t._dryDraw())},n.paint=function(){var t=this.get("tickLine"),e=!0;t&&t.hasOwnProperty("alignWithLabel")&&(e=t.alignWithLabel),this._renderLine();var n=this.get("type");("cat"===n||"timeCat"===n)&&!1===e?this._processCatTicks():this._processTicks(),this._renderTicks(),this._renderGrid(),this._renderLabels();var i=this.get("label");i&&i.autoRotate&&this.autoRotateLabels(),i&&i.autoHide&&this.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){return Math.abs(t[1]/t[0])>=1?"center":t[0]>0?"start":"end"},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox().width;n<e&&(n=e)}),n},n.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox().height;n<e&&(n=e)}),n},n.destroy=function(){if(!this.destroyed){var e=this.get("gridGroup");e&&e.remove();var n=this.get("labelRenderer");n&&n.destroy();this.get("group").destroy(),t.prototype.destroy.call(this)}},n.clear=function(){var t=this.get("group");if(!t.get("destroyed")&&t.get("children").length){var e=this.get("gridGroup");e&&e.clear();var n=this.get("labelRenderer");n&&n.clear();this.get("group").clear()}},n.autoRotateLabels=function(){},n.autoHideLabels=function(){},n.renderTitle=function(){},n.getLinePath=function(){},n.getTickPoint=function(){},n.getTickEnd=function(){},n.getSideVector=function(){},e}(a);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{_id:null,canvas:null,container:null,group:null,capture:!1,coord:null,offset:[0,0],plotRange:null,position:[0,0],visible:!0,zIndex:1}},n._init=function(){},n.clear=function(){},n.destroy=function(){t.prototype.destroy.call(this)},n.beforeRender=function(){},n.render=function(){},n.afterRender=function(){},n.beforeDraw=function(){},n.draw=function(){},n.afterDraw=function(){},n.show=function(){},n.hide=function(){},n.setOffset=function(){},n.setPosition=function(){},n.setVisible=function(){},n.setZIndex=function(){},e}(n(67));t.exports=a},function(t,e,n){var i=n(5),r=n(2),a=n(18),o=n(175),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);this.type="linear",this.isLinear=!0,this.nice=!1,this.min=null,this.minLimit=null,this.max=null,this.maxLimit=null,this.tickCount=null,this.tickInterval=null,this.minTickInterval=null,this.snapArray=null},n.init=function(){if(this.ticks){var t=this.ticks,e=this.translate(t[0]),n=this.translate(t[t.length-1]);(i(this.min)||this.min>e)&&(this.min=e),(i(this.max)||this.max<n)&&(this.max=n)}else this.min=this.translate(this.min),this.max=this.translate(this.max),this.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,i=this.maxLimit,r=this.tickCount,a=this.tickInterval,s=this.minTickInterval,u=this.snapArray;if(1===r)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 o({min:t,max:e,minLimit:n,maxLimit:i,minCount:r,maxCount:r,interval:a,minTickInterval:s,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=[];r(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}(a);a.Linear=s,t.exports=s},function(t,e,n){var i=n(13);t.exports=function(t){return i(t)?Array.prototype.slice.call(t):[]}},function(t,e){t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-5;return Math.abs(t-e)<n}},function(t,e,n){var i=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,r,a,o){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];i.normalize(u,u);var c=[a-t,o-e];return Math.abs(i.dot(c,u))},box:function(t,e,n,i,r){var a=r/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,i)-a,maxX:s+a,maxY:Math.max(e,i)+a}},len:function(t,e,n,i){return Math.sqrt((n-t)*(n-t)+(i-e)*(i-e))}}},function(t,e,n){function i(t,e,n,i){return{x:Math.cos(i)*n+t,y:Math.sin(i)*n+e}}function r(t,e,n,i){var r,a;return i?t<e?(r=e-t,a=2*Math.PI-n+t):t>n&&(r=2*Math.PI-t+e,a=t-n):(r=t-e,a=n-t),r>a?n:e}function a(t,e,n,i){var a=0;return n-e>=2*Math.PI&&(a=2*Math.PI),e=s.mod(e,2*Math.PI),n=s.mod(n,2*Math.PI)+a,t=s.mod(t,2*Math.PI),i?e>=n?t>n&&t<e?t:r(t,n,e,!0):t<e||t>n?t:r(t,e,n):e<=n?e<t&&t<n?t:r(t,e,n,!0):t>e||t<n?t:r(t,n,e)}function o(t,e,n,i,r,o,u,c,l){var h=[u,c],f=[t,e],p=s.vec2.subtract([],h,f),g=s.vec2.angleTo([1,0],p);g=a(g,i,r,o);var d=[n*Math.cos(g)+t,n*Math.sin(g)+e];l&&(l.x=d[0],l.y=d[1]);return s.vec2.distance(d,h)}var s=n(1);t.exports={nearAngle:a,projectPoint:function(t,e,n,i,r,a,s,u){var c={};return o(t,e,n,i,r,a,s,u,c),c},pointDistance:o,box:function(t,e,n,r,o,u){var c=Math.PI/2,l=Math.PI,h=3*Math.PI/2,f=[],p=a(0,r,o,u);0===p&&f.push(i(t,e,n,0)),(p=a(c,r,o,u))===c&&f.push(i(t,e,n,c)),(p=a(l,r,o,u))===l&&f.push(i(t,e,n,l)),(p=a(h,r,o,u))===h&&f.push(i(t,e,n,h)),f.push(i(t,e,n,r)),f.push(i(t,e,n,o));var g=1/0,d=-1/0,v=1/0,y=-1/0;return s.each(f,function(t){g>t.x&&(g=t.x),d<t.x&&(d=t.x),v>t.y&&(v=t.y),y<t.y&&(y=t.y)}),{minX:g,minY:v,maxX:d,maxY:y}}}},function(t,e,n){function i(t,e,n,i,r,a,o){var p,g,d,v,y,m,x;if(!e.fill){var b=e.arrowLength||h,_=e.arrowAngle?e.arrowAngle*s/180:f;x=l(i-a,n-r),y=Math.abs(e.lineWidth*c(x))/2,m=Math.abs(e.lineWidth*u(x))/2,o&&(y=-y,m=-m),p=r+b*c(x+_/2),g=a+b*u(x+_/2),d=r+b*c(x-_/2),v=a+b*u(x-_/2),t.beginPath(),t.moveTo(p-y,g-m),t.lineTo(r-y,a-m),t.lineTo(d-y,v-m),t.moveTo(r-y,a-m),t.lineTo(r+y,a+m),t.moveTo(r,a),t.stroke()}}function r(t,e,n,i,r,s,u){var c=u?e.startArrow:e.endArrow,l=c.d,h=0,f=r-n,p=s-i,g=Math.atan(f/p);0===p&&f<0?h=Math.PI:f>0&&p>0?h=Math.PI/2-g:f<0&&p<0?h=-Math.PI/2-g:f>=0&&p<0?h=-g-Math.PI/2:f<=0&&p>0&&(h=Math.PI/2-g);var d=function(t){var e,n=[],i=a.parsePath(t.path);if(!Array.isArray(i)||0===i.length||"M"!==i[0][0]&&"m"!==i[0][0])return!1;for(var r=i.length,s=0;s<i.length;s++){var u=i[s];e=new o(u,e,s===r-1),n.push(e)}return n}(c);if(d){l&&(u?(r+=Math.sin(Math.abs(g))*l,s=s+Math.cos(Math.abs(g))*l-.5*t.lineWidth):(r-=Math.sin(Math.abs(g))*l,s=s-Math.cos(Math.abs(g))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(r,s),t.rotate(h);for(var v=0;v<d.length;v++)d[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var a=n(27),o=n(39),s=Math.PI,u=Math.sin,c=Math.cos,l=Math.atan2,h=10,f=s/3;t.exports={addStartArrow:function(t,e,n,a,o,s){"object"==typeof e.startArrow?r(t,e,n,a,o,s,!0):e.startArrow&&i(t,e,n,a,o,s,!0)},addEndArrow:function(t,e,n,a,o,s){"object"==typeof e.endArrow?r(t,e,n,a,o,s,!1):e.endArrow&&i(t,e,n,a,o,s,!1)}}},function(t,e,n){function i(t,e,n){return{x:n.x+t,y:n.y+e}}function r(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e))}function s(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}var u=n(1),c=n(55),l=n(56),h=n(103),f=n(104),p=u.vec3,g=u.mat3,d=["m","l","c","a","q","h","v","t","s","z"],v=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};u.augment(v,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,c,l,h,f=d.indexOf(n)>=0,p=f?n.toUpperCase():n,g=t,v=e.endPoint,y=g[1],m=g[2];switch(p){default:break;case"M":h=f?i(y,m,v):{x:y,y:m},this.command="M",this.params=[v,h],this.subStart=h,this.endPoint=h;break;case"L":h=f?i(y,m,v):{x:y,y:m},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"H":h=f?i(y,0,v):{x:y,y:v.y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"V":h=f?i(0,y,v):{x:v.x,y:y},this.command="L",this.params=[v,h],this.subStart=e.subStart,this.endPoint=h,this.endTangent=function(){return[h.x-v.x,h.y-v.y]},this.startTangent=function(){return[v.x-h.x,v.y-h.y]};break;case"Q":f?(a=i(y,m,v),c=i(g[3],g[4],v)):(a={x:y,y:m},c={x:g[3],y:g[4]}),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"T":c=f?i(y,m,v):{x:y,y:m},"Q"===e.command?(a=r(e.params[1],v),this.command="Q",this.params=[v,a,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-a.x,c.y-a.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="TL",this.params=[v,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-v.x,c.y-v.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"C":f?(a=i(y,m,v),c=i(g[3],g[4],v),l=i(g[5],g[6],v)):(a={x:y,y:m},c={x:g[3],y:g[4]},l={x:g[5],y:g[6]}),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]};break;case"S":f?(c=i(y,m,v),l=i(g[3],g[4],v)):(c={x:y,y:m},l={x:g[3],y:g[4]}),"C"===e.command?(a=r(e.params[2],v),this.command="C",this.params=[v,a,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-a.x,v.y-a.y]}):(this.command="SQ",this.params=[v,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[v.x-c.x,v.y-c.y]});break;case"A":var x=y,b=m,_=g[3],S=g[4],w=g[5];h=f?i(g[6],g[7],v):{x:g[6],y:g[7]},this.command="A";var M=function(t,e,n,i,r,a,c){var l=u.mod(u.toRadian(c),2*Math.PI),h=t.x,f=t.y,p=e.x,g=e.y,d=Math.cos(l)*(h-p)/2+Math.sin(l)*(f-g)/2,v=-1*Math.sin(l)*(h-p)/2+Math.cos(l)*(f-g)/2,y=d*d/(r*r)+v*v/(a*a);y>1&&(r*=Math.sqrt(y),a*=Math.sqrt(y));var m=r*r*(v*v)+a*a*(d*d),x=Math.sqrt((r*r*(a*a)-m)/m);n===i&&(x*=-1),isNaN(x)&&(x=0);var b=x*r*v/a,_=x*-a*d/r,S=(h+p)/2+Math.cos(l)*b-Math.sin(l)*_,w=(f+g)/2+Math.sin(l)*b+Math.cos(l)*_,M=s([1,0],[(d-b)/r,(v-_)/a]),k=[(d-b)/r,(v-_)/a],C=[(-1*d-b)/r,(-1*v-_)/a],A=s(k,C);return o(k,C)<=-1&&(A=Math.PI),o(k,C)>=1&&(A=0),0===i&&A>0&&(A-=2*Math.PI),1===i&&A<0&&(A+=2*Math.PI),[t,S,w,r,a,M,A,l,i]}(v,h,S,w,x,b,_);this.params=M;var k=e.subStart;this.subStart=k,this.endPoint=h;var C=M[5]%(2*Math.PI);u.isNumberEqual(C,2*Math.PI)&&(C=0);var A=M[6]%(2*Math.PI);u.isNumberEqual(A,2*Math.PI)&&(A=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=M[3]*Math.cos(C-P)+M[1],e=M[4]*Math.sin(C-P)+M[2];return[t-k.x,e-k.y]},this.endTangent=function(){var t=M[6];t-2*Math.PI<1e-4&&(t=0);var e=M[3]*Math.cos(C+t+P)+M[1],n=M[4]*Math.sin(C+t-P)+M[2];return[v.x-e,v.y-n]};break;case"Z":this.command="Z",this.params=[v,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var i=this.command,r=this.params,a=this.box;if(a&&!c.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return c.line(r[0].x,r[0].y,r[1].x,r[1].y,n,t,e);case"SQ":case"Q":return c.quadraticline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,n,t,e);case"C":return c.cubicline(r[0].x,r[0].y,r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y,n,t,e);case"A":var o=r,s=o[1],u=o[2],l=o[3],h=o[4],f=o[5],d=o[6],v=o[7],y=o[8],m=l>h?l:h,x=l>h?1:l/h,b=l>h?h/l:1;o=[t,e,1];var _=[1,0,0,0,1,0,0,0,1];return g.translate(_,_,[-s,-u]),g.rotate(_,_,-v),g.scale(_,_,[1/x,1/b]),p.transformMat3(o,o,_),c.arcline(0,0,m,f,f+d,1-y,n,o[0],o[1])}return!1},draw:function(t){var e,n,i,r=this.command,a=this.params;switch(r){default:break;case"M":t.moveTo(a[1].x,a[1].y);break;case"TL":case"L":t.lineTo(a[1].x,a[1].y);break;case"SQ":case"Q":e=a[1],n=a[2],t.quadraticCurveTo(e.x,e.y,n.x,n.y);break;case"C":e=a[1],n=a[2],i=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,i.x,i.y);break;case"A":var o=a,s=o[1],u=o[2],c=o[3],l=o[4],h=o[5],f=o[6],p=o[7],g=o[8],d=c>l?c:l,v=c>l?1:c/l,y=c>l?l/c:1;t.translate(s,u),t.rotate(p),t.scale(v,y),t.arc(0,0,d,h,h+f,1-g),t.scale(1/v,1/y),t.rotate(-p),t.translate(-s,-u);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,i,r,a=t/2,o=this.params;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(o[0].x,o[1].x)-a,maxX:Math.max(o[0].x,o[1].x)+a,minY:Math.min(o[0].y,o[1].y)-a,maxY:Math.max(o[0].y,o[1].y)+a};break;case"SQ":case"Q":for(i=0,r=(n=h.extrema(o[0].x,o[1].x,o[2].x)).length;i<r;i++)n[i]=h.at(o[0].x,o[1].x,o[2].x,n[i]);for(n.push(o[0].x,o[2].x),i=0,r=(e=h.extrema(o[0].y,o[1].y,o[2].y)).length;i<r;i++)e[i]=h.at(o[0].y,o[1].y,o[2].y,e);e.push(o[0].y,o[2].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"C":for(i=0,r=(n=l.extrema(o[0].x,o[1].x,o[2].x,o[3].x)).length;i<r;i++)n[i]=l.at(o[0].x,o[1].x,o[2].x,o[3].x,n[i]);for(i=0,r=(e=l.extrema(o[0].y,o[1].y,o[2].y,o[3].y)).length;i<r;i++)e[i]=l.at(o[0].y,o[1].y,o[2].y,o[3].y,e[i]);n.push(o[0].x,o[3].x),e.push(o[0].y,o[3].y),this.box={minX:Math.min.apply(Math,n)-a,maxX:Math.max.apply(Math,n)+a,minY:Math.min.apply(Math,e)-a,maxY:Math.max.apply(Math,e)+a};break;case"A":var s=o,u=s[1],c=s[2],p=s[3],g=s[4],d=s[5],v=s[6],y=s[7],m=s[8],x=d,b=d+v,_=f.xExtrema(y,p,g),S=1/0,w=-1/0,M=[x,b];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var k=_+i;1===m?x<k&&k<b&&M.push(k):b<k&&k<x&&M.push(k)}for(i=0,r=M.length;i<r;i++){var C=f.xAt(y,p,g,u,M[i]);C<S&&(S=C),C>w&&(w=C)}var A=f.yExtrema(y,p,g),P=1/0,O=-1/0,T=[x,b];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var I=A+i;1===m?x<I&&I<b&&T.push(I):b<I&&I<x&&T.push(I)}for(i=0,r=T.length;i<r;i++){var L=f.yAt(y,p,g,c,T[i]);L<P&&(P=L),L>O&&(O=L)}this.box={minX:S-a,maxX:w+a,minY:P-a,maxY:O+a}}}}),t.exports=v},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return t+e*n}}},function(t,e,n){var i=n(13),r=Array.prototype.indexOf;t.exports=function(t,e){return!!i(t)&&r.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){t.exports={mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var a=n(43),o=n(8),s=a.mat3,u=a.vec3,c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=this.getDefaultCfg();o(this,n,e),this.init()}return r(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),r(t,[{key:"init",value:function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)}},{key:"_swapDim",value:function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}}},{key:"getCenter",value:function(){return this.center}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"convertDim",value:function(t,e){var n=this[e],i=n.start;return i+t*(n.end-i)}},{key:"invertDim",value:function(t,e){var n=this[e],i=n.start;return(t-i)/(n.end-i)}},{key:"convertPoint",value:function(t){return t}},{key:"invertPoint",value:function(t){return t}},{key:"applyMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=[t,e,n];return u.transformMat3(r,r,i),r}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this.matrix,r=s.invert([],i),a=[t,e,n];return u.transformMat3(a,a,r),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}}},{key:"invert",value:function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})}},{key:"rotate",value:function(t){var e=this.matrix,n=this.center;return s.translate(e,e,[-n.x,-n.y]),s.rotate(e,e,t),s.translate(e,e,[n.x,n.y]),this}},{key:"reflect",value:function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this}},{key:"scale",value:function(t,e){var n=this.matrix,i=this.center;return s.translate(n,n,[-i.x,-i.y]),s.scale(n,n,[t,e]),s.translate(n,n,[i.x,i.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return s.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}();t.exports=c},function(t,e,n){var i=n(0),r={splitPoints:function(t){var e=[],n=t.x,r=t.y;return r=i.isArray(r)?r:[r],i.each(r,function(t,r){var a={x:i.isArray(n)?n[r]:n,y:t};e.push(a)}),e},addFillAttrs:function(t,e){e.color&&(t.fill=e.color),i.isNumber(e.opacity)&&(t.opacity=t.fillOpacity=e.opacity)},addStrokeAttrs:function(t,e){e.color&&(t.stroke=e.color),i.isNumber(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity)}};t.exports=r},,function(t,e,n){var i="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},r=n(4);t.exports=function t(e){if("object"!==(void 0===e?"undefined":i(e))||null===e)return e;var n=void 0;if(r(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===i(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else{n={};for(var s in e)"object"===i(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s]}return n}},function(t,e,n){function i(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&&r(c)?(r(t[u])||(t[u]={}),n<s?i(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 r=n(26),a=n(4),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 r=t[0],a=1;a<e;a++)i(r,t[a]);return r}},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){var i=n(49),r=n(13),a=n(10);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;s<e.length&&(o=t(e[s],n[s]));s++);return o}if(i(e)||i(n)){var u=Object.keys(e),c=Object.keys(n);if(u.length!==c.length)return!1;for(var l=!0,h=0;h<u.length&&(l=t(e[u[h]],n[u[h]]));h++);return l}return!1}},function(t,e){t.exports=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){var i=n(183);i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=function(t){e.ARRAY_TYPE=r=t},e.toRadian=function(t){return t*a},e.equals=function(t,e){return Math.abs(t-e)<=i*Math.max(1,Math.abs(t),Math.abs(e))};var i=e.EPSILON=1e-6,r=e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,a=(e.RANDOM=Math.random,Math.PI/180)},function(t,e,n){var i;!function(e){"use strict";function r(){}function a(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function o(t){return function(){return this[t].apply(this,arguments)}}function s(t){return"function"==typeof t||t instanceof RegExp||!(!t||"object"!=typeof t)&&s(t.listener)}var u=r.prototype,c=e.EventEmitter;u.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp){e={};for(n in i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n])}else e=i[t]||(i[t]=[]);return e},u.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},u.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},u.addListener=function(t,e){if(!s(e))throw new TypeError("listener must be a function");var n,i=this.getListenersAsObject(t),r="object"==typeof e;for(n in i)i.hasOwnProperty(n)&&-1===a(i[n],e)&&i[n].push(r?e:{listener:e,once:!1});return this},u.on=o("addListener"),u.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},u.once=o("addOnceListener"),u.defineEvent=function(t){return this.getListeners(t),this},u.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},u.removeListener=function(t,e){var n,i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&-1!==(n=a(r[i],e))&&r[i].splice(n,1);return this},u.off=o("removeListener"),u.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},u.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},u.manipulateListeners=function(t,e,n){var i,r,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)a.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?a.call(this,i,r):o.call(this,i,r));return this},u.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"===n)delete i[t];else if(t instanceof RegExp)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},u.removeAllListeners=o("removeEvent"),u.emitEvent=function(t,e){var n,i,r,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),r=0;r<n.length;r++)!0===(i=n[r]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},u.trigger=o("emitEvent"),u.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},u.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},u._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},u._getEvents=function(){return this._events||(this._events={})},r.noConflict=function(){return e.EventEmitter=c,r},void 0!==(i=function(){return r}.call(e,n,e,t))&&(t.exports=i)}(this||{})},function(t,e,n){var i=n(36),r=n(103),a=n(56),o=n(37);t.exports={line:function(t,e,n,r,a,o,s){var u=i.box(t,e,n,r,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var c=i.pointDistance(t,e,n,r,o,s);return!isNaN(c)&&c<=a/2},polyline:function(t,e,n,i){var r=t.length-1;if(r<1)return!1;for(var a=0;a<r;a++){var o=t[a][0],s=t[a][1],u=t[a+1][0],c=t[a+1][1];if(this.line(o,s,u,c,e,n,i))return!0}return!1},cubicline:function(t,e,n,i,r,o,s,u,c,l,h){return a.pointDistance(t,e,n,i,r,o,s,u,l,h)<=c/2},quadraticline:function(t,e,n,i,a,o,s,u,c){return r.pointDistance(t,e,n,i,a,o,u,c)<=s/2},arcline:function(t,e,n,i,r,a,s,u,c){return o.pointDistance(t,e,n,i,r,a,u,c)<=s/2},rect:function(t,e,n,i,r,a){return t<=r&&r<=t+n&&e<=a&&a<=e+i},circle:function(t,e,n,i,r){return Math.pow(i-t,2)+Math.pow(r-e,2)<=Math.pow(n,2)},box:function(t,e,n,i,r,a){return t<=r&&r<=e&&n<=a&&a<=i}}},function(t,e,n){function i(t,e,n,i,r){var a=1-r;return a*a*(a*i+3*r*n)+r*r*(r*t+3*a*e)}function r(t,e,n,r,a,o,u,c,l,h,f){var p,g,d,v,y,m,x,b,_=.005,S=1/0,w=[l,h];for(g=0;g<1;g+=.05)d=[i(t,n,a,u,g),i(e,r,o,c,g)],(v=s.squaredDistance(w,d))<S&&(p=g,S=v);S=1/0;for(var M=0;M<32&&!(_<1e-4);M++)b=p+_,d=[i(t,n,a,u,x=p-_),i(e,r,o,c,x)],v=s.squaredDistance(w,d),x>=0&&v<S?(p=x,S=v):(m=[i(t,n,a,u,b),i(e,r,o,c,b)],y=s.squaredDistance(w,m),b<=1&&y<S?(p=b,S=y):_*=.5);return f&&(f.x=i(t,n,a,u,p),f.y=i(e,r,o,c,p)),Math.sqrt(S)}function a(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}var o=n(1),s=o.vec2;t.exports={at:i,derivativeAt:function(t,e,n,i,r){var a=1-r;return 3*(((e-t)*a+2*(n-e)*r)*a+(i-n)*r*r)},projectPoint:function(t,e,n,i,a,o,s,u,c,l){var h={};return r(t,e,n,i,a,o,s,u,c,l,h),h},pointDistance:r,extrema:function(t,e,n,i){var r,a,s,u=3*t-9*e+9*n-3*i,c=6*e-12*n+6*i,l=3*n-3*i,h=[];if(o.isNumberEqual(u,0))o.isNumberEqual(c,0)||(r=-l/c)>=0&&r<=1&&h.push(r);else{var f=c*c-4*u*l;o.isNumberEqual(f,0)?h.push(-c/(2*u)):f>0&&(a=(-c-(s=Math.sqrt(f)))/(2*u),(r=(-c+s)/(2*u))>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h},len:function(t,e,n,i,r,s,u,c,l){o.isNil(l)&&(l=1);for(var h=(l=l>1?1:l<0?0:l)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],g=0,d=0;d<12;d++){var v=h*f[d]+h,y=a(v,t,n,r,u),m=a(v,e,i,s,c),x=y*y+m*m;g+=p[d]*Math.sqrt(x)}return h*g}}},function(t,e,n){var i=n(1),r=n(6),a=n(27),o=n(39),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},s.ATTRS={path:null,lineWidth:1},i.extend(s,r),i.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.radius,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},_getPath:function(){var t,e=this._attrs,n=e.x,r=e.y,a=e.radius||e.r,o=e.symbol||"circle";return(t=i.isFunction(o)?o:s.Symbols[o])?t(n,r,a):(console.warn(o+" marker is not supported."),null)},createPath:function(t){var e=this._cfg.segments;if(!e||this._cfg.hasUpdate){var n=a.parsePath(this._getPath());t.beginPath();var i;e=[];for(var r=0;r<n.length;r++){var s=n[r];i=new o(s,i,r===n.length-1),e.push(i),i.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var u=0;u<e.length;u++)e[u].draw(t)}}}),t.exports=s},function(t,e,n){function i(t,e){function n(t,e){if(1===t.length)i.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&i.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];n(a,e)}}var i=[],r=[];return t.length&&n(t,e),{left:i,right:r.reverse()}}function r(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}function a(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),s=o(e)[0],u=1;u<=n;u++)a*=u,0===(i=Math.floor(t.length*a))?r.unshift([s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[s[0]*a+t[i][0]*(1-a),s[1]*a+t[i][1]*(1-a)]);return r}function o(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var s=n(81),u="\t\n\v\f\r \u2028\u2029",c=new RegExp("([a-z])["+u+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+u+"]*,?["+u+"]*)+)","ig"),l=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+u+"]*,?["+u+"]*","ig"),h=function(t){if(!t)return null;if(typeof t==typeof[])return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(c,function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(l,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else for(;a.length>=e[o]&&(n.push([i].concat(a.splice(0,e[o]))),e[o]););}),n},f=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},p=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),u=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,u,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},g=function(t){if(!(t=h(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(o=r=+t[0][1],s=a=+t[0][2],u++,i[0]=["M",r,a]);for(var c,l,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=u,v=t.length;d<v;d++){if(i.push(c=[]),l=t[d],(e=l[0])!==e.toUpperCase())switch(c[0]=e.toUpperCase(),c[0]){case"A":c[1]=l[1],c[2]=l[2],c[3]=l[3],c[4]=l[4],c[5]=l[5],c[6]=+l[6]+r,c[7]=+l[7]+a;break;case"V":c[1]=+l[1]+a;break;case"H":c[1]=+l[1]+r;break;case"R":for(var y=2,m=(n=[r,a].concat(l.slice(1))).length;y<m;y++)n[y]=+n[y]+r,n[++y]=+n[y]+a;i.pop(),i=i.concat(f(n,g));break;case"O":i.pop(),(n=p(r,a,l[1],l[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(p(r,a,l[1],l[2],l[3])),c=["U"].concat(i[i.length-1].slice(-2));break;case"M":o=+l[1]+r,s=+l[2]+a;break;default:for(var x=1,b=l.length;x<b;x++)c[x]=+l[x]+(x%2?r:a)}else if("R"===e)n=[r,a].concat(l.slice(1)),i.pop(),i=i.concat(f(n,g)),c=["R"].concat(l.slice(-2));else if("O"===e)i.pop(),(n=p(r,a,l[1],l[2])).push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(p(r,a,l[1],l[2],l[3])),c=["U"].concat(i[i.length-1].slice(-2));else for(var _=0,S=l.length;_<S;_++)c[_]=l[_];if("O"!==(e=e.toUpperCase()))switch(c[0]){case"Z":r=+o,a=+s;break;case"H":r=c[1];break;case"V":a=c[1];break;case"M":o=c[c.length-2],s=c[c.length-1];break;default:r=c[c.length-2],a=c[c.length-1]}}return i},d=function(t,e,n,i){return[t,e,n,i,n,i]},v=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]},y=function(t,e){var n,i=g(t),r=e&&g(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],u=[],c="",l="",h=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,a,o,s,u,c,l){i===r&&(i+=1);var h,f,p,g,d,v=120*Math.PI/180,y=Math.PI/180*(+a||0),m=[],x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)f=l[0],p=l[1],g=l[2],d=l[3];else{e=(h=x(e,n,-y)).x,n=h.y,u=(h=x(u,c,-y)).x,c=h.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,S=b*b/(i*i)+_*_/(r*r);S>1&&(i*=S=Math.sqrt(S),r*=S);var w=i*i,M=r*r,k=(o===s?-1:1)*Math.sqrt(Math.abs((w*M-w*_*_-M*b*b)/(w*_*_+M*b*b)));g=k*i*_/r+(e+u)/2,d=k*-r*b/i+(n+c)/2,f=Math.asin(((n-d)/r).toFixed(9)),p=Math.asin(((c-d)/r).toFixed(9)),f=e<g?Math.PI-f:f,p=u<g?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var C=p-f;if(Math.abs(C)>v){var A=p,P=u,O=c;p=f+v*(s&&p>f?1:-1),m=t(u=g+i*Math.cos(p),c=d+r*Math.sin(p),i,r,a,0,s,P,O,[p,A,g,d])}C=p-f;var T=Math.cos(f),I=Math.sin(f),L=Math.cos(p),D=Math.sin(p),R=Math.tan(C/4),E=4/3*i*R,F=4/3*r*R,j=[e,n],B=[e+E*I,n-F*T],N=[u+E*D,c-F*L],Y=[u,c];if(B[0]=2*j[0]-B[0],B[1]=2*j[1]-B[1],l)return[B,N,Y].concat(m);for(var z=[],H=0,V=(m=[B,N,Y].concat(m).join().split(",")).length;H<V;H++)z[H]=H%2?x(m[H-1],m[H],y).y:x(m[H],m[H+1],y).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(v(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(v(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(d(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(d(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(d(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(d(e.x,e.y,e.X,e.Y))}return t},f=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",r&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},p=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(l=s[y-1])),i[y]=h(i[y],a,l),"A"!==s[y]&&"C"===c&&(s[y]="C"),f(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(u[y]=c,y&&(l=u[y-1])),r[y]=h(r[y],o,l),"A"!==u[y]&&"C"===c&&(u[y]="C"),f(r,y)),p(i,r,a,o,y),p(r,i,o,a,y);var m=i[y],x=r&&r[y],b=m.length,_=r&&x.length;a.x=m[b-2],a.y=m[b-1],a.bx=parseFloat(m[b-4])||a.x,a.by=parseFloat(m[b-3])||a.y,o.bx=r&&(parseFloat(x[_-4])||o.x),o.by=r&&(parseFloat(x[_-3])||o.y),o.x=r&&x[_-2],o.y=r&&x[_-1]}return r?[i,r]:i},m=/,?([a-z]),?/gi,x=function(t){return t.join(",").replace(m,"$1")},b=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},_=function(t,e,n,i,r,a,o,s,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var g=c*l[p]+c,d=b(g,t,n,r,o),v=b(g,e,i,a,s),y=d*d+v*v;f+=h[p]*Math.sqrt(y)}return c*f},S=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var c=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,l=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=x,a},k=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:M(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e,n,i,r,a,o,u){s.isArray(t)||(t=[t,e,n,i,r,a,o,u]);var c=function(t,e,n,i,r,a,o,s){for(var u,c,l,h,f=[],p=[[],[]],g=0;g<2;++g)if(0===g?(c=6*t-12*n+6*r,u=-3*t+9*n-9*r+3*o,l=3*n-3*t):(c=6*e-12*i+6*a,u=-3*e+9*i-9*a+3*s,l=3*i-3*e),Math.abs(u)<1e-12){if(Math.abs(c)<1e-12)continue;(h=-l/c)>0&&h<1&&f.push(h)}else{var d=c*c-4*l*u,v=Math.sqrt(d);if(!(d<0)){var y=(-c+v)/(2*u);y>0&&y<1&&f.push(y);var m=(-c-v)/(2*u);m>0&&m<1&&f.push(m)}}for(var x,b=f.length,_=b;b--;)x=1-(h=f[b]),p[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*r+h*h*h*o,p[1][b]=x*x*x*e+3*x*x*h*i+3*x*h*h*a+h*h*h*s;return p[0][_]=t,p[1][_]=e,p[0][_+1]=o,p[1][_+1]=s,p[0].length=p[1].length=_+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}}.apply(null,t);return k(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},A=function(t,e,n,i,r,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(r-2*n+t),d=e+2*u*(i-e)+f*(a-2*i+e),v=n+2*u*(r-n)+f*(o-2*r+n),y=i+2*u*(a-i)+f*(s-2*a+i);return{x:l*t+3*h*u*n+3*c*u*u*r+p*o,y:l*e+3*h*u*i+3*c*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*i},end:{x:c*r+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},P=function(t,e,n){if(!function(t,e){return t=k(t),e=k(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(C(t),C(e)))return n?0:[];for(var i=~~(_.apply(0,t)/8),r=~~(_.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],c=0;c<i+1;c++){var l=A.apply(0,t.concat(c/i));a.push({x:l.x,y:l.y,t:c/i})}for(var h=0;h<r+1;h++){var f=A.apply(0,e.concat(h/r));o.push({x:f.x,y:f.y,t:h/r})}for(var p=0;p<i;p++)for(var g=0;g<r;g++){var d=a[p],v=a[p+1],y=o[g],m=o[g+1],x=Math.abs(v.x-d.x)<.001?"y":"x",b=Math.abs(m.x-y.x)<.001?"y":"x",M=S(d.x,d.y,v.x,v.y,y.x,y.y,m.x,m.y);if(M){if(s[M.x.toFixed(4)]===M.y.toFixed(4))continue;s[M.x.toFixed(4)]=M.y.toFixed(4);var P=d.t+Math.abs((M[x]-d[x])/(v[x]-d[x]))*(v.t-d.t),O=y.t+Math.abs((M[b]-y[b])/(m[b]-y[b]))*(m.t-y.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?u++:u.push({x:M.x,y:M.y,t1:P,t2:O}))}}return u},O=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/n,u=0;u<n-1;u++){var c=i(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)r.push(a)}return r},T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return s.each(t,function(t,i){if(t!==e[i])return n=!1,!1}),n};t.exports={parsePathString:h,parsePathArray:x,pathTocurve:y,pathToAbsolute:g,catmullRomToBezier:f,rectPath:M,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<i-n;o++)t.push(t[0]);return t}for(var s=0;s<i;s++){var u=Math.floor(r*s);a[u]=(a[u]||0)+1}var c=a.reduce(function(e,i,r){return r===n?e.concat(t[n]):e.concat(O(t[r],t[r+1],i))},[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c},fillPathByDiff:function(t,e){var n=function(t,e){var n,i,a=t.length,o=e.length,s=0;if(0===a||0===o)return null;for(var u=[],c=0;c<=a;c++)u[c]=[],u[c][0]={min:c};for(var l=0;l<=o;l++)u[0][l]={min:l};for(var h=1;h<=a;h++){n=t[h-1];for(var f=1;f<=o;f++){i=e[f-1],s=T(n,i)?0:1;var p=u[h-1][f].min+1,g=u[h][f-1].min+1,d=u[h-1][f-1].min+s;u[h][f]=r(p,g,d)}}return u}(t,e),i=t.length,a=e.length,o=[],s=1,u=1;if(n[i][a]!==i){for(var c=1;c<=i;c++){var l=n[c][c].min;u=c;for(var h=s;h<=a;h++)n[c][h].min<l&&(l=n[c][h].min,u=h);s=u,n[c][s].type&&o.push({index:c-1,type:n[c][s].type})}for(var f=o.length-1;f>=0;f--)s=o[f].index,"add"===o[f].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}var p=a-(i=t.length);if(i<a)for(var g=0;g<p;g++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t},formatPath:function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=o(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],2)}t[i]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=a(n,t[i-1],1)}t[i]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[i]=e[i]}return t},intersection:function(t,e){return function(t,e,n){t=y(t),e=y(e);for(var i,r,a,o,s,u,c,l,h,f,p=n?0:[],g=0,d=t.length;g<d;g++){var v=t[g];if("M"===v[0])i=s=v[1],r=u=v[2];else{"C"===v[0]?(i=(h=[i,r].concat(v.slice(1)))[6],r=h[7]):(h=[i,r,i,r,s,u,s,u],i=s,r=u);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])a=c=b[1],o=l=b[2];else{"C"===b[0]?(a=(f=[a,o].concat(b.slice(1)))[6],o=f[7]):(f=[a,o,a,o,c,l,c,l],a=c,o=l);var _=P(h,f,n);if(n)p+=_;else{for(var S=0,w=_.length;S<w;S++)_[S].segment1=g,_[S].segment2=m,_[S].bez1=h,_[S].bez2=f;p=p.concat(_)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";function i(){return m||(_(r),m=b.now()+x)}function r(){m=0}function a(){this._call=this._time=this._next=null}function o(t,e,n){var i=new a;return i.restart(t,e,n),i}function s(){i(),++p;for(var t,e=h;e;)(t=m-e._time)>=0&&e._call.call(null,t),e=e._next;--p}function u(){m=(y=b.now())+x,p=g=0;try{s()}finally{p=0,function(){var t,e,n=h,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);f=t,l(i)}(),m=0}}function c(){var t=b.now(),e=t-y;e>v&&(x-=e,y=t)}function l(t){if(!p){g&&(g=clearTimeout(g));t-m>24?(t<1/0&&(g=setTimeout(u,t-b.now()-x)),d&&(d=clearInterval(d))):(d||(y=b.now(),d=setInterval(c,v)),p=1,_(u))}}e.b=i,e.a=a,e.c=o,e.d=s;var h,f,p=0,g=0,d=0,v=1e3,y=0,m=0,x=0,b="object"==typeof performance&&performance.now?performance:Date,_="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=o.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?i():+n)+(null==e?0:+e),this._next||f===this||(f?f._next=this:h=this,f=this),this._call=t,this._time=n,l()},stop:function(){this._call&&(this._call=null,this._time=1/0,l())}}},function(t,e,n){"use strict";var i=n(17),r=n(118),a=n(121),o=n(122),s=n(40),u=n(123),c=n(124),l=n(120);e.a=function(t,e){var n,h=typeof e;return null==e||"boolean"===h?Object(l.a)(e):("number"===h?s.a:"string"===h?(n=Object(i.a)(e))?(e=n,r.a):c.a:e instanceof i.a?r.a:e instanceof Date?o.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function i(){}function r(){return this.rgb().formatHex()}function a(){return this.rgb().formatRgb()}function o(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=C.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?s(e):3===n?new h(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new h(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new h(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=A.exec(t))?new h(e[1],e[2],e[3],1):(e=P.exec(t))?new h(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?u(e[1],e[2],e[3],e[4]):(e=T.exec(t))?u(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=I.exec(t))?d(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?d(e[1],e[2]/100,e[3]/100,e[4]):D.hasOwnProperty(t)?s(D[t]):"transparent"===t?new h(NaN,NaN,NaN,0):null}function s(t){return new h(t>>16&255,t>>8&255,255&t,1)}function u(t,e,n,i){return i<=0&&(t=e=n=NaN),new h(t,e,n,i)}function c(t){return t instanceof i||(t=o(t)),t?(t=t.rgb(),new h(t.r,t.g,t.b,t.opacity)):new h}function l(t,e,n,i){return 1===arguments.length?c(t):new h(t,e,n,null==i?1:i)}function h(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function f(){return"#"+g(this.r)+g(this.g)+g(this.b)}function p(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function g(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function d(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new m(t,e,n,i)}function v(t){if(t instanceof m)return new m(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=o(t)),!t)return new m;if(t instanceof m)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),s=Math.max(e,n,r),u=NaN,c=s-a,l=(s+a)/2;return c?(u=e===s?(n-r)/c+6*(n<r):n===s?(r-e)/c+2:(e-n)/c+4,c/=l<.5?s+a:2-s-a,u*=60):c=l>0&&l<1?0:u,new m(u,c,l,t.opacity)}function y(t,e,n,i){return 1===arguments.length?v(t):new m(t,e,n,null==i?1:i)}function m(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function x(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=i,n.d(e,"d",function(){return _}),n.d(e,"c",function(){return S}),e.e=o,e.h=c,e.g=l,e.b=h,e.f=y;var b=n(62),_=.7,S=1/_,w="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",k="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C=/^#([0-9a-f]{3,8})$/,A=new RegExp("^rgb\\("+[w,w,w]+"\\)$"),P=new RegExp("^rgb\\("+[k,k,k]+"\\)$"),O=new RegExp("^rgba\\("+[w,w,w,M]+"\\)$"),T=new RegExp("^rgba\\("+[k,k,k,M]+"\\)$"),I=new RegExp("^hsl\\("+[M,k,k]+"\\)$"),L=new RegExp("^hsla\\("+[M,k,k,M]+"\\)$"),D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(b.a)(i,o,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:r,formatHex:r,formatHsl:function(){return v(this).formatHsl()},formatRgb:a,toString:a}),Object(b.a)(h,l,Object(b.b)(i,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new h(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new h(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f,formatHex:f,formatRgb:p,toString:p})),Object(b.a)(m,y,Object(b.b)(i,{brighter:function(t){return t=null==t?S:Math.pow(S,t),new m(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?_:Math.pow(_,t),new m(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new h(x(t>=240?t-240:t+120,r,i),x(t,r,i),x(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function i(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}e.a=i,e.b=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],o=t[r+1],s=r>0?t[r-1]:2*a-o,u=r<e-1?t[r+2]:2*o-a;return i((n-r/e)*e,s,a,o,u)}}},function(t,e,n){var i=n(2),r=n(13);t.exports=function(t,e){if(!r(t))return t;var n=[];return i(t,function(t,i){e(t,i)&&n.push(t)}),n}},function(t,e,n){var i=n(5),r=n(4),a=n(2);t.exports=function(t,e){for(var n=[],o={},s=0;s<t.length;s++){var u=t[s][e];i(u)||(r(u)||(u=[u]),a(u,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e,n){var i=n(16).Group,r=n(22).Label,a=n(7),o=n(0),s=["line","point","path"],u=function t(e){t.superclass.constructor.call(this,e)};o.extend(u,i),o.augment(u,{getDefaultCfg:function(){return{label:a.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},_renderUI:function(){u.superclass._renderUI.call(this),this.initLabelsCfg();var t=this.addGroup(),e=this.addGroup({elCls:"x-line-group"}),n=this.get("labelRenderer");this.set("labelsGroup",t),this.set("lineGroup",e),this.get("labelRenderer").set("group",t),n.set("group",t),n.set("lineGroup",e)},initLabelsCfg:function(){var t=new r,e=this.getDefaultLabelCfg(),n=this.get("labelCfg");o.deepMix(e,n.globalCfg||n.cfg),t.set("config",!1),e.labelLine&&t.set("labelLine",e.labelLine),t.set("coord",this.get("coord")),this.set("labelRenderer",t),this.set("label",e)},getDefaultLabelCfg:function(){var t=this.get("labelCfg").cfg||this.get("labelCfg").globalCfg,e=this.get("geomType"),n=this.get("viewTheme")||a;return"polygon"===e||t&&t.offset<0&&-1===o.indexOf(s,e)?o.deepMix({},this.get("label"),n.innerLabels,t):o.deepMix({},this.get("label"),n.label,t)},getLabelsItems:function(t,e){var n=this,i=[],r=n.get("geom"),a=n.get("coord");n._getLabelCfgs(t,e);var s=n.get("labelItemCfgs");return o.each(t,function(t,e){var u=t._origin,c=s[e];if(c){o.isArray(c.text)||(c.text=[c.text]);var l=c.text.length;o.each(c.text,function(e,s){if(o.isNil(e)||""===e)i.push(null);else{var h=n.getLabelPoint(c,t,s);(h=o.mix({},c,h)).textAlign||(h.textAlign=n.getLabelAlign(h,s,l)),r&&(h._id=r._getShapeId(u)+"-glabel-"+s+"-"+h.text),h.coord=a,i.push(h)}})}else i.push(null)}),i},adjustItems:function(t){return o.each(t,function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))}),t},drawLines:function(t){var e=this;o.each(t,function(t){t&&t.offset>0&&e.lineToLabel(t)})},lineToLabel:function(){},getLabelPoint:function(t,e,n){function i(e,n){return o.isArray(e)&&(e=1===t.text.length?e.length<=2?e[e.length-1]:function(t){var e=0;return o.each(t,function(t){e+=t}),e/t.length}(e):e[n]),e}var r=this.get("coord"),a=t.text.length,s={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var u=function(t,e){if(o.isNumber(t)&&o.isNumber(e))return[t,e];for(var n,i,r=-1,a=0,s=0,u=t.length-1,c=0;++r<t.length;)n=u,u=r,c+=i=t[n]*e[u]-t[u]*e[n],a+=(t[n]+t[u])*i,s+=(e[n]+e[u])*i;return c*=3,[a/c,s/c]}(e.x,e.y);s.x=u[0],s.y=u[1]}else s.x=i(e.x,n),s.y=i(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var c=-1/0;e.nextPoints.forEach(function(t){(t=r.convert(t)).x>c&&(c=t.x)}),s.x=(s.x+c)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=r.convert(t),(o.isArray(t.x)&&!e.x.includes(t.x)||o.isNumber(t.x)&&e.x!==t.x)&&(s.x=(s.x+t.x)/2)}),t.position&&this.setLabelPosition(s,e,n,t.position);var l=this.getLabelOffset(t,n,a);return t.offsetX&&(l.x+=t.offsetX),t.offsetY&&(l.y+=t.offsetY),this.transLabelPoint(s),s.start={x:s.x,y:s.y},s.x+=l.x,s.y+=l.y,s.color=e.color,s},setLabelPosition:function(){},transLabelPoint:function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},getOffsetVector:function(t){var e=t.offset||0,n=this.get("coord");return n.isTransposed?n.applyMatrix(e,0):n.applyMatrix(0,e)},getDefaultOffset:function(t){var e=0,n=this.get("coord"),i=this.getOffsetVector(t);e=n.isTransposed?i[0]:i[1];var r=this.get("yScale");if(r&&t.point){t.point[r.field]<0&&(e*=-1)}return e},getLabelOffset:function(t,e,n){var i=this.getDefaultOffset(t),r=this.get("coord").isTransposed,a=r?"x":"y",o=r?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?i*o:i*o*-1,s},getLabelAlign:function(t,e,n){var i="center";if(this.get("coord").isTransposed){var r=this.getDefaultOffset(t);i=r<0?"right":0===r?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},_getLabelValue:function(t,e){o.isArray(e)||(e=[e]);var n=[];return o.each(e,function(e){var i=t[e.field];if(o.isArray(i)){var r=[];o.each(i,function(t){r.push(e.getText(t))}),i=r}else i=e.getText(i);(o.isNil(i)||""===i)&&n.push(null),n.push(i)}),n},_getLabelCfgs:function(t){var e=this,n=this.get("labelCfg"),i=n.scales,r=this.get("label"),s=e.get("viewTheme")||a,u=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),o.each(t,function(t,a){var c={},l=t._origin,h=e._getLabelValue(l,i);if(n.callback){var f=i.map(function(t){return l[t.field]});c=n.callback.apply(null,[].concat(f,[t,a]))}if(c||0===c){if(o.isString(c)||o.isNumber(c)?c={text:c}:(c.text=c.content||h[0],delete c.content),c=o.mix({},r,n.globalCfg||{},c),t.point=l,c.point=l,c.htmlTemplate&&(c.useHtml=!0,c.text=c.htmlTemplate.call(null,c.text,t,a),delete c.htmlTemplate),c.formatter&&(c.text=c.formatter.call(null,c.text,t,a),delete c.formatter),c.label){var p=c.label;delete c.label,c=o.mix(c,p)}if(c.textStyle){delete c.textStyle.offset;var g=c.textStyle;o.isFunction(g)&&(c.textStyle=g.call(null,c.text,t,a))}c.labelLine&&(c.labelLine=o.mix({},r.labelLine,c.labelLine)),c.textStyle=o.mix({},r.textStyle,s.label.textStyle,c.textStyle),delete c.items,u.push(c)}else u.push(null)}),this.set("labelItemCfgs",u)},showLabels:function(t,e){var n=this.get("labelRenderer"),i=this.getLabelsItems(t,e);e=[].concat(e);var r=this.get("type");i=this.adjustItems(i,e),this.drawLines(i),n.set("items",i.filter(function(t,n){return!!t||(e.splice(n,1),!1)})),r&&(n.set("shapes",e),n.set("type",r),n.set("points",t)),n.set("canvas",this.get("canvas")),n.draw()},destroy:function(){this.get("labelRenderer").destroy(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=n(54),s=n(3),u=function(t){function e(e){var n,i=r(n=t.call(this)||this),a={visible:!0},o=i.getDefaultCfg();return i._attrs=a,s.deepMix(a,o,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(157),s=n(329),u=n(14).FONT_FAMILY,c=a.Event,l=a.Group,h=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:20,height:156,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",stroke:"#fff",lineWidth:5,fontFamily:u},hoverTextStyle:{fill:"rgba(0,0,0,0.25)"},slidable:!0,triggerAttr:{fill:"#fff",shadowBlur:10,shadowColor:"rgba(0,0,0,0.65)",radius:2},_range:[0,100],middleBackgroundStyle:{fill:"#D9D9D9"},textOffset:4,lineStyle:{lineWidth:1,stroke:"#fff"},pointerStyle:{fill:"rgb(230, 230, 230)"}})},n._calStartPoint=function(){var t={x:10,y:this.get("titleGap")-8},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},n.beforeRender=function(){var e=this.get("items");a.isArray(e)&&!a.isEmpty(e)&&(t.prototype.beforeRender.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n.render=function(){t.prototype.render.call(this),this.get("slidable")?this._renderSlider():this._renderUnslidable()},n._renderSlider=function(){var t=new l,e=new l,n=new l,i=this._calStartPoint(),r=this.get("group").addGroup(s,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});r.translate(i.x,i.y),this.set("slider",r);this._renderSliderShape().attr("clip",r.get("middleHandleElement")),this._renderTrigger()},n._addMiddleBar=function(t,e,n){return t.addShape(e,{attrs:a.mix({},n,this.get("middleBackgroundStyle"))}),t.addShape(e,{attrs:n})},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),r=this.get("triggerAttr"),o=a.mix({},r),s=a.mix({},r),u=a.mix({text:this._formatItemValue(t.value)+""},i),c=a.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,c)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,c))},n._addVerticalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),r=this.get("width"),o=i.addShape("rect",{attrs:a.mix({x:r/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),s=i.addShape("text",{attrs:a.mix(n,{x:r+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._addHorizontalTrigger=function(t,e,n){var i=this.get("slider").get(t+"HandleElement"),r=i.addShape("rect",{attrs:a.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),o=i.addShape("text",{attrs:a.mix(n,{x:"min"===t?-12:12,y:4+this.get("textOffset")+10,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),s="vertical"===this.get("layout")?"ns-resize":"ew-resize";r.attr("cursor",s),o.attr("cursor",s),this.set(t+"ButtonElement",r),this.set(t+"TextElement",o)},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i);t._updateElement(a,o);var s=new c("itemfilter",e,!0,!0);s.range=[a,o],t.emit("itemfilter",s)})}this.get("hoverable")&&(this.get("group").on("mousemove",a.wrapBehavior(this,"_onMouseMove")),this.get("group").on("mouseleave",a.wrapBehavior(this,"_onMouseLeave")))},n._updateElement=function(t,e){var n=this.get("minTextElement"),i=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),i.attr("text",this._formatItemValue(e)+"")},n._onMouseLeave=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},n._onMouseMove=function(t){var e,n=this.get("height"),i=this.get("width"),r=this.get("items"),a=this.get("canvas").get("el").getBoundingClientRect(),o=this.get("group").getBBox();if("vertical"===this.get("layout")){var s=5;"color-legend"===this.get("type")&&(s=30);var u=this.get("titleGap"),c=this.get("titleShape");c&&(u+=c.getBBox().maxY-c.getBBox().minY);var l=t.clientY||t.event.clientY;l=l-a.y-this.get("group").attr("matrix")[7]+o.y-s+u,e=r[0].value+(1-l/n)*(r[r.length-1].value-r[0].value)}else{var h=t.clientX||t.event.clientX;h=h-a.x-this.get("group").attr("matrix")[6],e=r[0].value+h/i*(r[r.length-1].value-r[0].value)}e=e.toFixed(2),this.activate(e),this.emit("mousehover",{value:e})},n.activate=function(t){if(t){var e=this.get("group").findById("hoverPointer"),n=this.get("group").findById("hoverText"),i=this.get("items");if(!(t<i[0].value||t>i[i.length-1].value)){var r,o=this.get("height"),s=this.get("width"),u=this.get("titleShape"),c=this.get("titleGap"),l=[],h=(t-i[0].value)/(i[i.length-1].value-i[0].value);if("vertical"===this.get("layout")){var f=0,p=0;"color-legend"===this.get("type")&&(f=c,u&&(f+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=c-15,u&&(f+=u.getBBox().height)),p+=10),l=[[p,(h=(1-h)*o)+f],[p-10,h+f-5],[p-10,h+f+5]],r=a.mix({},{x:s+this.get("textOffset")/2+p,y:h+f,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var g=0,d=0;"color-legend"===this.get("type")&&(g=c,u&&(g+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?g-=7:(g=c,u||(g-=7)),d+=10),l=[[(h*=s)+d,g],[h+d-5,g-10],[h+d+5,g-10]],r=a.mix({},{x:h-5,y:o+this.get("textOffset")+g,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=a.mix(r,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v})).set("id","hoverText"),e?e.attr(a.mix({points:l},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:a.mix({points:l},this.get("pointerStyle"))})).set("id","hoverPointer"),this.get("canvas").draw()}}},n.deactivate=function(){var t=this.get("group").findById("hoverPointer");t&&t.destroy();var e=this.get("group").findById("hoverText");e&&e.destroy(),this.get("canvas").draw()},e}(o);t.exports=h},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(67),o=n(3),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{x:0,y:0,items:null,titleContent:null,showTitle:!0,plotRange:null,offset:10,timeStamp:0,inPlot:!0,crosshairs:null})},n.isContentChange=function(t,e){var n=this.get("titleContent"),i=this.get("items"),r=!(t===n&&i.length===e.length);return r||o.each(e,function(t,e){var n=i[e];for(var a in t)if(t.hasOwnProperty(a)&&!o.isObject(t[a])&&t[a]!==n[a]){r=!0;break}if(r)return!1}),r},n.setContent=function(t,e){var n=(new Date).valueOf();return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this.render(),this},n.setPosition=function(t,e){this.set("x",t),this.set("y",e)},n.render=function(){},n.clear=function(){},n.show=function(){this.set("visible",!0)},n.hide=function(){this.set("visible",!1)},e}(a);t.exports=s},,function(t,e,n){var i=n(10),r=n(80);t.exports={toTimeStamp:function(t){return i(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r(t)&&(t=t.getTime()),t}}},,function(t,e,n){t.exports={Position:n(294),Color:n(295),Shape:n(296),Size:n(297),Opacity:n(298),ColorUtil:n(148)}},function(t,e,n){var i=n(75),r=n(18);r.Linear=n(33),r.Identity=n(176),r.Cat=n(77),r.Time=n(177),r.TimeCat=n(179),r.Log=n(180),r.Pow=n(181);var a=function(t){if(r.hasOwnProperty(t)){var e=i(t);r[e]=function(e){return new r[t](e)}}};for(var o in r)a(o);var s=["cat","timeCat"];r.isCategory=function(t){return s.indexOf(t)>=0},t.exports=r},function(t,e,n){var i=n(24);t.exports=function(t){var e=i(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e){function n(t,e){var n=t.length;if(0===n)return NaN;var i=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var r=1;r<t.length&&!(e<t[r]);r++)i=t[r];return i}function i(t,e){var n=t.length;if(0===n)return NaN;var i;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var r=1;r<t.length;r++)if(e<=t[r]){i=t[r];break}return i}var r=12,a={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var i=1;if(0!==t){t<0&&(i=-1);var o=function(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>r&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}(t*=i);i*=o,t/=o}t="floor"===n?a.snapFloor(e,t):"ceil"===n?a.snapCeiling(e,t):a.snapTo(e,t);var s=parseFloat((t*i).toPrecision(r));if(Math.abs(i)<1&&s.toString().length>r){s=t/parseInt(1/i)*(i>0?1:-1)}return s},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 r=n(t,e),a=i(t,e);if(isNaN(r)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(o<=e)return o}return Math.abs(e-r)<Math.abs(a-e)?r:a},snapFloor:function(t,e){return n(t,e)},snapCeiling:function(t,e){return i(t,e)},fixedBase:function(t,e){var n=e.toString(),i=n.indexOf("."),r=n.indexOf("e-");if(i<0&&r<0)return Math.round(t);var a=r>=0?parseInt(n.substr(r+2),10):n.substr(i+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=a},function(t,e,n){var i=n(18),r=n(78),a=n(2),o=n(9),s=n(10),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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.values,e=this.tickCount;if(a(t,function(e,n){t[n]=e.toString()}),!this.ticks){var n=t;if(e){n=r({maxCount:e,data:t,isRounding:this.isRounding}).ticks}this.ticks=n}},n.getText=function(e){return-1===this.values.indexOf(e)&&o(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&&o(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax();return(s(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(i-n)},n.invert=function(t){if(s(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),t>n&&(t=n);var i=(t-e)/(n-e),r=Math.round(i*(this.values.length-1))%this.values.length;return r=r||0,this.values[r]},e}(i);i.Cat=u,t.exports=u},function(t,e,n){var i=n(2);t.exports=function(t){var e,n={},r=[],a=t.isRounding,o=function(t){var e=[];return i(t,function(t){e=e.concat(t)}),e}(t.data),s=o.length,u=t.maxCount||8;if(a?2===(e=function(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}(s-1,u-1)+1)?e=u:e<u-4&&(e=u-4):e=u,!a&&s<=e+e/2)r=[].concat(o);else{for(var c=parseInt(s/(e-1),10),l=o.map(function(t,e){return e%c==0?o.slice(e,e+c):null}).filter(function(t){return t}),h=1,f=l.length;h<f&&(a?h*c<s-c:h<e-1);h++)r.push(l[h][0]);if(o.length){r.unshift(o[0]);var p=o[s-1];-1===r.indexOf(p)&&r.push(p)}}return n.categories=o,n.ticks=r,n}},function(t,e,n){var i;!function(r){"use strict";function a(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}function o(t){return function(e,n,i){var r=i[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(e.month=r)}}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var u={},c=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,l=/\d\d?/,h=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,f=/\[([^]*?)\]/gm,p=function(){},g=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"],v=a(d,3),y=a(g,3);u.i18n={dayNamesShort:y,dayNames:g,monthNamesShort:v,monthNames:d,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return s(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},x={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[l,p],ddd:[h,p],MMM:[h,o("monthNamesShort")],MMMM:[h,o("monthNames")],a:[h,function(t,e,n){var i=e.toLowerCase();i===n.amPm[0]?t.isPm=!1:i===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,i=(e+"").match(/([\+\-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),t.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,u.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var i=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");var r=[];return e=(e=u.masks[e]||e||u.masks.default).replace(f,function(t,e){return r.push(e),"??"}),(e=e.replace(c,function(e){return e in m?m[e](t,i):e.slice(1,e.length-1)})).replace(/\?\?/g,function(){return r.shift()})},u.parse=function(t,e,n){var i=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var r=!0,a={};if(e.replace(c,function(e){if(x[e]){var n=x[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,i),t=t.substr(o+e.length),e}):r=!1}return x[e]?"":e.slice(1,e.length-1)}),!r)return!1;var o=new Date;!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0);var s;return null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,s=new Date(Date.UTC(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):s=new Date(a.year||o.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),s},void 0!==t&&t.exports?t.exports=u:void 0!==(i=function(){return u}.call(e,n,e,t))&&(t.exports=i)}()},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Date")}},function(t,e,n){t.exports={isFunction:n(11),isObject:n(25),isBoolean:n(82),isNil:n(5),isString:n(10),isArray:n(4),isNumber:n(9),isEmpty:n(83),uniqueId:n(86),clone:n(47),deepMix:n(48),assign:n(8),merge:n(48),upperFirst:n(87),each:n(2),isEqual:n(50),toArray:n(34),extend:n(88),augment:n(89),remove:n(90),isNumberEqual:n(35),toRadian:n(91),toDegree:n(92),mod:n(93),clamp:n(51),createDom:n(94),modifyCSS:n(95),requestAnimationFrame:n(96),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(52),vec2:n(97),vec3:n(98),transform:n(99)}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Boolean")}},function(t,e,n){var i=n(5),r=n(13),a=n(84),o=n(85),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(i(t))return!0;if(r(t))return!t.length;var e=a(t);if("Map"===e||"Set"===e)return!t.size;if(o(t))return!Object.keys(t).length;for(var n in t)if(s.call(t,n))return!1;return!0}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){var n=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}();t.exports=n},function(t,e,n){var i=n(24);t.exports=function(t){var e=i(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var i=n(11),r=n(8);t.exports=function(t,e,n,a){i(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var i=new n;return i.constructor=e,i},s=o(e.prototype,t);return t.prototype=r(s,t.prototype),t.superclass=o(e.prototype,e),r(s,n),r(t,a),t}},function(t,e,n){var i=n(11),r=n(34),a=n(8);t.exports=function(t){for(var e=r(arguments),n=1;n<e.length;n++){var o=e[n];i(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){var n=Array.prototype,i=n.splice,r=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;n<e.length;n++)for(var o=e[n],s=-1;(s=r.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=document.createElement("table"),i=document.createElement("tr"),r=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:i,th:i,"*":document.createElement("div")};t.exports=function(t){var e=r.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}},function(t,e){t.exports=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e){t.exports=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){var i=n(184),r=n(51);i.angle=function(t,e){var n=i.dot(t,e)/(i.length(t)*i.length(e));return Math.acos(r(n,-1,1))},i.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},i.angleTo=function(t,e,n){var r=i.angle(t,e),a=i.direction(t,e)>=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r},i.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},t.exports=i},function(t,e,n){var i=n(185);t.exports=i},function(t,e,n){var i=n(47),r=n(2),a=n(52);t.exports=function(t,e){return t=i(t),r(e,function(e){switch(e[0]){case"t":a.translate(t,t,[e[1],e[2]]);break;case"s":a.scale(t,t,[e[1],e[2]]);break;case"r":a.rotate(t,t,e[1]);break;case"m":a.multiply(t,t,e[1]);break;default:return!1}}),t}},function(t,e,n){var i=n(1),r=function(t,e,n,i){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=i,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};i.augment(r,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return i.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=r},function(t,e,n){function i(t,e,n){for(var i,r=t.length-1;r>=0;r--){var a=t[r];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?i=a.getShape(e,n):a.isHit(e,n)&&(i=a)),i)break}return i}function r(t){if(!t._cfg&&t!==l){var e=t.superclass.constructor;e&&!e._cfg&&r(e),t._cfg={},a.merge(t._cfg,e._cfg),a.merge(t._cfg,t.CFG)}}var a=n(1),o=n(102),s=n(189),u={},c="_INDEX",l=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(l,o),a.augment(l,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return r(this.constructor),a.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var i=u[t];if(i||(i=a.upperFirst(t),u[t]=i),e.attrs&&n){var r=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(r.fontFamily=r.fontFamily?r.fontFamily:o)}}e.canvas=n,e.type=t;var c=new s[i](e);return this.add(c),c},addGroup:function(t,e){var n,i=this.get("canvas");if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=i,e.parent=this,n=new t(e)):n=new t({canvas:i,parent:this}),this.add(n);else if(a.isObject(t))t.canvas=i,n=new l(t),this.add(n);else{if(void 0!==t)return!1;n=new l,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),i=this.getBBox();return a.merge(e,{x:i.minX-t[3],y:i.minY-t[0],width:i.width+t[1]+t[3],height:i.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),l.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e._setCfgProperty(t)}),e._cfg.children=n.concat(t);else{var i=t,r=i.get("parent");r&&r.removeChild(i,!1),e._setCfgProperty(i),n.push(i)}return e},_setCfgProperty:function(t){var e=this._cfg;t.set("parent",this),t.set("canvas",e.canvas),e.timeline&&t.set("timeline",e.timeline)},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},getBBox:function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.get("children");r.length>0?a.each(r,function(r){if(r.get("visible")){if(r.isGroup&&0===r.get("children").length)return;var a=r.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],c=[a.maxX,a.maxY,1];r.apply(o),r.apply(s),r.apply(u),r.apply(c);var l=Math.min(o[0],s[0],u[0],c[0]),h=Math.max(o[0],s[0],u[0],c[0]),f=Math.min(o[1],s[1],u[1],c[1]),p=Math.max(o[1],s[1],u[1],c[1]);l<t&&(t=l),h>e&&(e=h),f<n&&(n=f),p>i&&(i=p)}}):(t=0,e=0,n=0,i=0);var o={minX:t,minY:n,maxX:e,maxY:i};return o.x=o.minX,o.y=o.minY,o.width=o.maxX-o.minX,o.height=o.maxY-o.minY,o},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return a.each(t,function(t,e){return t[c]=e,t}),t.sort(function(t){return function(e,n){var i=t(e,n);return 0===i?e[c]-n[c]:i}}(function(t,e){return t.get("zIndex")-e.get("zIndex")})),this},findById:function(t){return this.find(function(e){return e.get("id")===t})},find:function(t){if(a.isString(t))return this.findById(t);var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.find&&(n=e.find(t)),n)return!1}),n},findAll:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},findBy:function(t){var e=this.get("children"),n=null;return a.each(e,function(e){if(t(e)?n=e:e.findBy&&(n=e.findBy(t)),n)return!1}),n},findAllBy:function(t){var e=this.get("children"),n=[],i=[];return a.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(i=e.findAllBy(t),n=n.concat(i))}),n},getShape:function(t,e){var n,r=this._attrs.clip,a=this._cfg.children;if(r){var o=[t,e,1];r.invert(o,this.get("canvas")),r.isPointInPath(o[0],o[1])&&(n=i(a,t,e))}else n=i(a,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},clear:function(t){for(var e=this._cfg.children,n=e.length-1;n>=0;n--)e[n].remove(!0,t);return this._cfg.children=[],this},destroy:function(){this.get("destroyed")||(this.clear(),l.superclass.destroy.call(this))},clone:function(){var t=this._cfg.children,e=new l;return a.each(t,function(t){e.add(t.clone())}),e}}),t.exports=l},function(t,e,n){var i=n(1),r=n(186),a=n(187),o=n(188),s=n(54),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},i.assign(this._cfg,this.getDefaultCfg(),t),this.initAttrs(this._cfg.attrs),this._cfg.attrs={},this.initTransform(),this.init()};u.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},i.augment(u,r,a,s,o,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1)},getParent:function(){return this._cfg.parent},getDefaultCfg:function(){return{}},set:function(t,e){return"zIndex"===t&&this._beforeSetZIndex&&this._beforeSetZIndex(e),"loading"===t&&this._beforeSetLoading&&this._beforeSetLoading(e),this._cfg[t]=e,this},setSilent:function(t,e){this._cfg[t]=e},get:function(t){return this._cfg[t]},show:function(){return this._cfg.visible=!0,this},hide:function(){return this._cfg.visible=!1,this},remove:function(t,e){var n=this._cfg,r=n.parent,a=n.el;return r&&i.remove(r.get("children"),this),a&&(e?r&&r._cfg.tobeRemoved.push(a):a.parentNode.removeChild(a)),(t||void 0===t)&&this.destroy(),this},destroy:function(){this.get("destroyed")||(this._attrs=null,this.removeEvent(),this._cfg={destroyed:!0})},toFront:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);n.splice(r,1),n.push(this),i&&(i.parentNode.removeChild(i),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,i=t.el,r=n.indexOf(this);if(n.splice(r,1),n.unshift(this),i){var a=i.parentNode;a.removeChild(i),a.insertBefore(i,a.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,i.isNil(e)||e.sort();var n=this._cfg.el;if(n){var r=e._cfg.children,a=r.indexOf(this),o=n.parentNode;o.removeChild(n),a===r.length-1?o.appendChild(n):o.insertBefore(n,o.childNodes[a])}return t},_setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this._cfg.zIndex=t,this._beforeSetZIndex(t)},clone:function(){return i.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function i(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function r(t,e,n,r,a,s,u,c,l){var h,f,p,g,d,v,y,m=.005,x=1/0,b=[u,c];for(d=0;d<1;d+=.05)p=[i(t,n,a,d),i(e,r,s,d)],(f=o.squaredDistance(b,p))<x&&(h=d,x=f);for(x=1/0,y=0;y<32&&!(m<1e-4);y++){var _=h-m,S=h+m;p=[i(t,n,a,_),i(e,r,s,_)],f=o.squaredDistance(b,p),_>=0&&f<x?(h=_,x=f):(g=[i(t,n,a,S),i(e,r,s,S)],v=o.squaredDistance(b,g),S<=1&&v<x?(h=S,x=v):m*=.5)}return l&&(l.x=i(t,n,a,h),l.y=i(e,r,s,h)),Math.sqrt(x)}var a=n(1),o=a.vec2;t.exports={at:i,projectPoint:function(t,e,n,i,a,o,s,u){var c={};return r(t,e,n,i,a,o,s,u,c),c},pointDistance:r,extrema:function(t,e,n){var i=t+n-2*e;if(a.isNumberEqual(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}}},function(t,e){t.exports={xAt:function(t,e,n,i,r){return e*Math.cos(t)*Math.cos(r)-n*Math.sin(t)*Math.sin(r)+i},yAt:function(t,e,n,i,r){return e*Math.sin(t)*Math.cos(r)+n*Math.cos(t)*Math.sin(r)+i},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}},function(t,e,n){function i(t,e,n){return t+e*Math.cos(n)}function r(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(6),s=n(37),u=n(38),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(c,o),a.augment(c,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,i,r,a,o);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},getStartTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.startAngle,o=t.r,s=t.clockwise,u=Math.PI/180;s&&(u*=-1);var c=[],l=i(e,o,a+u),h=r(n,o,a+u),f=i(e,o,a),p=r(n,o,a);return c.push([l,h]),c.push([f,p]),c},getEndTangent:function(){var t=this._attrs,e=t.x,n=t.y,a=t.endAngle,o=t.r,s=t.clockwise,u=Math.PI/180,c=[];s&&(u*=-1);var l=i(e,o,a+u),h=r(n,o,a+u),f=i(e,o,a),p=r(n,o,a);return c.push([f,p]),c.push([l,h]),c},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;(t=t||self.get("context")).beginPath(),t.arc(n,i,r,a,o,s)},afterPath:function(t){var e=this._attrs;if(t=t||this.get("context"),e.startArrow){var n=this.getStartTangent();u.addStartArrow(t,e,n[0][0],n[0][1],n[1][0],n[1][1])}if(e.endArrow){var i=this.getEndTangent();u.addEndArrow(t,e,i[0][0],i[0][1],i[1][0],i[1][1])}}}),t.exports=c},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.r,r=this.getHitLineWidth()/2+i;return{minX:e-r,minY:n-r,maxX:e+r,maxY:n+r}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rx,r=t.ry,a=this.getHitLineWidth(),o=i+a/2,s=r+a/2;return{minX:e-o,minY:n-s,maxX:e+o,maxY:n+s}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.rx,o=e.ry;t=t||self.get("context");var s=a>o?a:o,u=a>o?1:a/o,c=a>o?o/a:1,l=[1,0,0,0,1,0,0,0,1];i.mat3.scale(l,l,[u,c]),i.mat3.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(37),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},i.extend(o,r),i.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.rs,r=t.re,o=t.startAngle,s=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),l=a.box(e,n,i,o,s,u),h=a.box(e,n,r,o,s,u),f=c/2;return{minX:Math.min(l.minX,h.minX)-f,minY:Math.min(l.minY,h.minY)-f,maxX:Math.max(l.maxX,h.maxX)+f,maxY:Math.max(l.maxY,h.maxY)+f}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,r=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(o)*r+n,y:Math.sin(o)*r+i},l={x:Math.cos(o)*a+n,y:Math.sin(o)*a+i},h={x:Math.cos(s)*r+n,y:Math.sin(s)*r+i};(t=t||self.get("context")).beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,i,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,i,r,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},i.extend(a,r),i.augment(a,{type:"image",isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs;this._cfg.attrs&&this._cfg.attrs.img===t.img||this._setAttrImg();var e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},_beforeSetLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this._cfg.loading=!1,e.draw()),t},_setAttrImg:function(){var t=this,e=t._attrs,n=e.img;if(!i.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&i.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",Number(n.getAttribute("width"))),e.height||t.attr("height",Number(n.getAttribute("height"))),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var r=new Image;r.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",r);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},r.src=n,r.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading")?this.set("toDraw",!0):(this._drawImage(t),this._cfg.hasUpdate=!1)},_drawImage:function(t){var e=this._attrs,n=e.x,r=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,c=e.sy,l=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&((f=new Image).src=a),f instanceof Image||f instanceof HTMLElement&&i.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h))return void t.drawImage(f,n,r,o,s);if(!(i.isNil(u)||i.isNil(c)||i.isNil(l)||i.isNil(h)))return void t.drawImage(f,u,c,l,h,n,r,o,s)}}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(s,r),i.augment(s,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=t.x1,n=t.y1,i=t.x2,r=t.y2,a=this.getHitLineWidth();return o.box(e,n,i,r,a)},createPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,a=e.y2;(t=t||self.get("context")).beginPath(),t.moveTo(n,i),t.lineTo(r,a)},afterPath:function(t){var e=this._attrs,n=e.x1,i=e.y1,r=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,r,o,n,i),e.endArrow&&a.addEndArrow(t,e,n,i,r,o)},getPoint:function(t){var e=this._attrs;return{x:o.at(e.x1,e.x2,t),y:o.at(e.y1,e.y2,t)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(6),a=n(39),o=n(27),s=n(38),u=n(58),c=n(56),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(l,r),i.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){if(i.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e,n=o.parsePath(t),r=[];if(i.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var s=n.length,u=0;u<n.length;u++){var c=n[u];e=new a(c,e,u===s-1),r.push(e)}this.setSilent("segments",r),this.setSilent("tCache",null),this.setSilent("box",null)}},calculateBox:function(){var t=this.get("segments");if(!t)return null;var e=this.getHitLineWidth(),n=1/0,r=-1/0,a=1/0,o=-1/0;return i.each(t,function(t){t.getBBox(e);var i=t.box;i&&(i.minX<n&&(n=i.minX),i.maxX>r&&(r=i.maxX),i.minY<a&&(a=i.minY),i.maxY>o&&(o=i.maxY))}),n===1/0||a===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:n,minY:a,maxX:r,maxY:o}},_setTcache:function(){var t,e,n,r,a=0,o=0,s=[],u=this._cfg.curve;u&&(i.each(u,function(t,e){n=u[e+1],r=t.length,n&&(a+=c.len(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),i.each(u,function(i,l){n=u[l+1],r=i.length,n&&((t=[])[0]=o/a,e=c.len(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e,t[1]=o/a,s.push(t))}),this._cfg.tCache=s)},_calculateCurve:function(){var t=this._attrs.path;this._cfg.curve=u.pathTocurve(t)},getStartTangent:function(){var t,e,n,r,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,r=[],i.isFunction(n)){var o=n();r.push([t.x-o[0],t.y-o[1]]),r.push([t.x,t.y])}else r.push([e.x,e.y]),r.push([t.x,t.y]);return r},getEndTangent:function(){var t,e,n,r,a=this.get("segments"),o=a.length;if(o>1)if(t=a[o-2].endPoint,e=a[o-1].endPoint,n=a[o-1].endTangent,r=[],i.isFunction(n)){var s=n();r.push([e.x-s[0],e.y-s[1]]),r.push([e.x,e.y])}else r.push([t.x,t.y]),r.push([e.x,e.y]);return r},getPoint:function(t){var e,n,r=this._cfg.tCache;r||(this._calculateCurve(),this._setTcache(),r=this._cfg.tCache);var a=this._cfg.curve;if(!r)return a?{x:a[0][1],y:a[0][2]}:null;i.each(r,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)});var o=a[n];if(i.isNil(o)||i.isNil(n))return null;var s=o.length,u=a[n+1];return{x:c.at(o[s-2],u[1],u[3],u[5],1-e),y:c.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this.get("segments");if(i.isArray(e)){(t=t||this.get("context")).beginPath();for(var n=e.length,r=0;r<n;r++)e[r].draw(t)}},afterPath:function(t){var e=this._attrs,n=this.get("segments"),r=e.path;if(t=t||this.get("context"),i.isArray(n)&&1!==n.length&&(e.startArrow||e.endArrow)&&"z"!==r[r.length-1]&&"Z"!==r[r.length-1]&&!e.fill){var a=this.getStartTangent();s.addStartArrow(t,e,a[0][0],a[0][1],a[1][0],a[1][1]);var o=this.getEndTangent();s.addEndArrow(t,e,o[0][0],o[0][1],o[1][0],o[1][1])}}}),t.exports=l},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this._attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var n=1/0,r=1/0,a=-1/0,o=-1/0;i.each(t,function(t){var e=t[0],i=t[1];e<n&&(n=e),e>a&&(a=e),i<r&&(r=i),i>o&&(o=i)});var s=e/2;return{minX:n-s,minY:r-s,maxX:a+s,maxY:o+s}},createPath:function(t){var e=this._attrs.points;e.length<2||((t=t||this.get("context")).beginPath(),i.each(e,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var i=n(1),r=n(6),a=n(38),o=n(36),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},i.extend(s,r),i.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this._attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var r=1/0,a=1/0,o=-1/0,s=-1/0;i.each(n,function(t){var e=t[0],n=t[1];e<r&&(r=e),e>o&&(o=e),n<a&&(a=n),n>s&&(s=n)});var u=e/2;return{minX:r-u,minY:a-u,maxX:o+u,maxY:s+u}},_setTcache:function(){var t,e,n=this._attrs.points,r=0,a=0,s=[];n&&0!==n.length&&(i.each(n,function(t,e){n[e+1]&&(r+=o.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),r<=0||(i.each(n,function(i,u){n[u+1]&&((t=[])[0]=a/r,e=o.len(i[0],i[1],n[u+1][0],n[u+1][1]),a+=e,t[1]=a/r,s.push(t))}),this.tCache=s))},createPath:function(t){var e,n,i=this._attrs.points;if(!(i.length<2)){for((t=t||this.get("context")).beginPath(),t.moveTo(i[0][0],i[0][1]),n=1,e=i.length-1;n<e;n++)t.lineTo(i[n][0],i[n][1]);t.lineTo(i[e][0],i[e][1])}},getStartTangent:function(){var t=this.__attrs.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},getEndTangent:function(){var t=this.__attrs.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},afterPath:function(t){var e=this._attrs,n=e.points,i=n.length-1;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,n[1][0],n[1][1],n[0][0],n[0][1]),e.endArrow&&a.addEndArrow(t,e,n[i-1][0],n[i-1][1],n[i][0],n[i][1])},getPoint:function(t){var e,n,r=this._attrs.points,a=this.tCache;return a||(this._setTcache(),a=this.tCache),i.each(a,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}),{x:o.at(r[n][0],r[n+1][0],e),y:o.at(r[n][1],r[n+1][1],e)}}}),t.exports=s},function(t,e,n){var i=n(1),r=n(27).parseRadius,a=n(6),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},i.extend(o,a),i.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this._attrs,e=t.x,n=t.y,i=t.width,r=t.height,a=this.getHitLineWidth()/2;return{minX:e-a,minY:n-a,maxX:e+i+a,maxY:n+r+a}},createPath:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.width,o=e.height,s=e.radius;if((t=t||this.get("context")).beginPath(),0===s)t.rect(n,i,a,o);else{var u=r(s);t.moveTo(n+u.r1,i),t.lineTo(n+a-u.r2,i),0!==u.r2&&t.arc(n+a-u.r2,i+u.r2,u.r2,-Math.PI/2,0),t.lineTo(n+a,i+o-u.r3),0!==u.r3&&t.arc(n+a-u.r3,i+o-u.r3,u.r3,0,Math.PI/2),t.lineTo(n+u.r4,i+o),0!==u.r4&&t.arc(n+u.r4,i+o-u.r4,u.r4,Math.PI/2,Math.PI),t.lineTo(n,i+u.r1),0!==u.r1&&t.arc(n+u.r1,i+u.r1,u.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=o},function(t,e,n){var i=n(1),r=n(6),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},i.extend(a,r),i.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){var t=this._attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this._attrs.x,-1*this._attrs.y],["s",+t/12,+t/12],["t",this._attrs.x,this._attrs.y]])},_assembleFont:function(){var t=this._attrs,e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,a=t.fontVariant;t.font=[r,a,i,e+"px",n].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(i.isString(e)&&-1!==e.indexOf("\n")){var r=(n=e.split("\n")).length;t.lineCount=r}t.textArr=n},_getTextHeight:function(){var t=this._attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this._getSpaceingY()*(e-1)}return n},isHitBox:function(){return!1},calculateBox:function(){var t=this._attrs,e=this._cfg;e.attrs&&!e.hasUpdate||(this._assembleFont(),this._setAttrText()),t.textArr||this._setAttrText();var n=t.x,i=t.y,r=this.measureText();if(!r)return{minX:n,minY:i,maxX:n,maxY:i};var a=this._getTextHeight(),o=t.textAlign,s=t.textBaseline,u=this.getHitLineWidth(),c={x:n,y:i-a};o&&("end"===o||"right"===o?c.x-=r:"center"===o&&(c.x-=r/2)),s&&("top"===s?c.y+=a:"middle"===s&&(c.y+=a/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+r+l,maxY:c.y+a+l}},_getSpaceingY:function(){var t=this._attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},drawInner:function(t){var e=this._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=e.font;var r=e.text;if(r){var a=e.textArr,o=e.x,s=e.y;if(t.beginPath(),this.hasStroke()){var u=e.strokeOpacity;i.isNil(u)||1===u||(t.globalAlpha=u),a?this._drawTextArr(t,!1):t.strokeText(r,o,s),t.globalAlpha=1}if(this.hasFill()){var c=e.fillOpacity;i.isNil(c)||1===c||(t.globalAlpha=c),a?this._drawTextArr(t,!0):t.fillText(r,o,s)}n.hasUpdate=!1}},_drawTextArr:function(t,e){var n,r=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,c=this._attrs.y,l=this.getBBox(),h=l.maxY-l.minY;i.each(r,function(i,r){n=c+r*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(i,u,n):t.strokeText(i,u,n)})},measureText:function(){var t,e=this._attrs,n=e.text,r=e.font,a=e.textArr,o=0;if(!i.isNil(n)){var s=document.createElement("canvas").getContext("2d");return s.save(),s.font=r,a?i.each(a,function(e){t=s.measureText(e).width,o<t&&(o=t),s.restore()}):(o=s.measureText(n).width,s.restore()),o}}}),t.exports=a},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=Math.PI/180,r=180/Math.PI},function(t,e,n){"use strict";function i(t){return function(e){var n,i,a=e.length,o=new Array(a),s=new Array(a),u=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(e[n]),o[n]=i.r||0,s[n]=i.g||0,u[n]=i.b||0;return o=t(o),s=t(s),u=t(u),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=u(t),i+""}}}n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c});var r=n(17),a=n(63),o=n(119),s=n(28);e.a=function t(e){function n(t,e){var n=i((t=Object(r.f)(t)).r,(e=Object(r.f)(e)).r),a=i(t.g,e.g),o=i(t.b,e.b),u=Object(s.a)(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=a(e),t.b=o(e),t.opacity=u(e),t+""}}var i=Object(s.b)(e);return n.gamma=t,n}(1);var u=i(a.b),c=i(o.a)},function(t,e,n){"use strict";var i=n(63);e.a=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),a=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],u=t[(r+2)%e];return Object(i.a)((n-r/e)*e,a,o,s,u)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var i=n(60);e.a=function(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=Object(i.a)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(i){return n.setTime(t+e*i),n}}},function(t,e,n){"use strict";var i=n(60);e.a=function(t,e){var n,r={},a={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?r[n]=Object(i.a)(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}}},function(t,e,n){"use strict";var i=n(40),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(r.source,"g");e.a=function(t,e){var n,o,s,u=r.lastIndex=a.lastIndex=0,c=-1,l=[],h=[];for(t+="",e+="";(n=r.exec(t))&&(o=a.exec(e));)(s=o.index)>u&&(s=e.slice(u,s),l[c]?l[c]+=s:l[++c]=s),(n=n[0])===(o=o[0])?l[c]?l[c]+=o:l[++c]=o:(l[++c]=null,h.push({i:c,x:Object(i.a)(n,o)})),u=a.lastIndex;return u<e.length&&(s=e.slice(u),l[c]?l[c]+=s:l[++c]=s),l.length<2?h[0]?function(t){return function(e){return t(e)+""}}(h[0].x):function(t){return function(){return t}}(e):(e=h.length,function(t){for(var n,i=0;i<e;++i)l[(n=h[i]).i]=n.x(t);return l.join("")})}},function(t,e,n){var i=n(0),r=n(292),a={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},o={line:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},path:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},area:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},edge:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=r.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=r.appear.fanIn)):e=t.isRect?t.isTransposed?r.appear.scaleInX:r.appear.scaleInY:r.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?r.enter.fadeIn:r.enter.zoomIn},leave:function(){return r.leave.fadeOut},update:function(t){if("theta"===t.type)return r.update.fanIn}},point:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},schema:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return r.appear.fadeIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-ticks":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid-rect":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(){return r.leave.fadeIn}},labelLine:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}}};o.Action=r,o.defaultCfg=a,o.getAnimation=function(t,e,n){var r=this[t];if(r){var a=r[n];if(i.isFunction(a))return a(e)}return!1},o.getAnimateCfg=function(t,e){var n=a[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?i.deepMix({},n,this[t].cfg[e]):n},o.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=o},function(t,e,n){var i=n(2),r=n(8),a=n(230),o=n(239),s=n(250),u=n(253),c=n(257),l=n(43),h=n(266),f=n(270),p=n(276),g=n(280),d={DOMUtil:a,DomUtil:a,MatrixUtil:l,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:c,matrixUtil:l,objectUtil:h,stringUtil:p,pathUtil:f,typeUtil:g,augment:n(89),clone:n(47),debounce:n(286),deepMix:n(48),each:i,extend:n(88),filter:n(64),group:n(143),groupBy:n(145),groupToMap:n(144),indexOf:n(287),isEmpty:n(83),isEqual:n(50),isEqualWith:n(288),map:n(289),mix:r,pick:n(290),throttle:n(291),toArray:n(34),toString:n(24),uniqueId:n(86)};i([a,o,s,u,c,l,h,f,p,g],function(t){r(d,t)}),t.exports=d},function(t,e,n){var i=n(128),r=n(5);t.exports=function(t,e){var n=i(e),a=n.length;if(r(t))return!a;for(var o=0;o<a;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){var i=n(2),r=n(11),a=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return i(t,function(n,i){r(t)&&"prototype"===i||e.push(i)}),e};t.exports=a},function(t,e,n){var i=n(13),r=Array.prototype.splice;t.exports=function(t,e){if(!i(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,r.call(t,s,1))}return t}},function(t,e,n){var i=n(2),r=n(41);t.exports=function(t){var e=[];return i(t,function(t){r(e,t)||e.push(t)}),e}},function(t,e,n){var i=n(4),r=n(11),a=n(2);t.exports=function(t,e){if(i(t)){var n=t[0],o=void 0;o=r(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=r(e)?e(t):t[e])>o&&(n=t,o=s)}),n}}},function(t,e){t.exports=parseInt},function(t,e){t.exports=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){var i=n(2),r=n(11),a=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return i(t,function(n,i){r(t)&&"prototype"===i||e.push(n)}),e};t.exports=a},function(t,e,n){var i=n(136);t.exports=function(t,e,n,r,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,r-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-r],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=i,o}},function(t,e){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},function(t,e,n){var i=n(138),r=function(t,e,n,i){return[t,e,n,i,n,i]},a=function(t,e,n,i,r,a){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*a+2/3*i,r,a]};t.exports=function(t,e){var n=i(t),o=e&&i(e),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],l=[],h="",f="",p=void 0,g=function(t,e,n){var i=void 0,o=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,a,o,s,u,c,l){i===r&&(i+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],g=void 0,d=void 0,v=void 0,y=void 0,m=void 0,x=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)d=l[0],v=l[1],y=l[2],m=l[3];else{e=(g=x(e,n,-f)).x,n=g.y,u=(g=x(u,c,-f)).x,c=g.y,e===u&&n===c&&(u+=1,c+=1);var b=(e-u)/2,_=(n-c)/2,S=b*b/(i*i)+_*_/(r*r);S>1&&(i*=S=Math.sqrt(S),r*=S);var w=i*i,M=r*r,k=(o===s?-1:1)*Math.sqrt(Math.abs((w*M-w*_*_-M*b*b)/(w*_*_+M*b*b)));y=k*i*_/r+(e+u)/2,m=k*-r*b/i+(n+c)/2,d=Math.asin(((n-m)/r).toFixed(9)),v=Math.asin(((c-m)/r).toFixed(9)),d=e<y?Math.PI-d:d,v=u<y?Math.PI-v:v,d<0&&(d=2*Math.PI+d),v<0&&(v=2*Math.PI+v),s&&d>v&&(d-=2*Math.PI),!s&&v>d&&(v-=2*Math.PI)}var C=v-d;if(Math.abs(C)>h){var A=v,P=u,O=c;v=d+h*(s&&v>d?1:-1),p=t(u=y+i*Math.cos(v),c=m+r*Math.sin(v),i,r,a,0,s,P,O,[v,A,y,m])}C=v-d;var T=Math.cos(d),I=Math.sin(d),L=Math.cos(v),D=Math.sin(v),R=Math.tan(C/4),E=4/3*i*R,F=4/3*r*R,j=[e,n],B=[e+E*I,n-F*T],N=[u+E*D,c-F*L],Y=[u,c];if(B[0]=2*j[0]-B[0],B[1]=2*j[1]-B[1],l)return[B,N,Y].concat(p);for(var z=[],H=0,V=(p=[B,N,Y].concat(p).join().split(",")).length;H<V;H++)z[H]=H%2?x(p[H-1],p[H],f).y:x(p[H],p[H+1],f).x;return z}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,o=2*e.y-e.by):(i=e.x,o=e.y),t=["C",i,o].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(a(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(a(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(r(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(r(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(r(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(r(e.x,e.y,e.X,e.Y))}return t},d=function(t,e){if(t[e].length>7){t[e].shift();for(var i=t[e];i.length;)c[e]="A",o&&(l[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),p=Math.max(n.length,o&&o.length||0)}},v=function(t,e,i,r,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",r.x,r.y]),i.bx=0,i.by=0,i.x=t[a][1],i.y=t[a][2],p=Math.max(n.length,o&&o.length||0))};p=Math.max(n.length,o&&o.length||0);for(var y=0;y<p;y++){n[y]&&(h=n[y][0]),"C"!==h&&(c[y]=h,y&&(f=c[y-1])),n[y]=g(n[y],s,f),"A"!==c[y]&&"C"===h&&(c[y]="C"),d(n,y),o&&(o[y]&&(h=o[y][0]),"C"!==h&&(l[y]=h,y&&(f=l[y-1])),o[y]=g(o[y],u,f),"A"!==l[y]&&"C"===h&&(l[y]="C"),d(o,y)),v(n,o,s,u,y),v(o,n,u,s,y);var m=n[y],x=o&&o[y],b=m.length,_=o&&x.length;s.x=m[b-2],s.y=m[b-1],s.bx=parseFloat(m[b-4])||s.x,s.by=parseFloat(m[b-3])||s.y,u.bx=o&&(parseFloat(x[_-4])||u.x),u.by=o&&(parseFloat(x[_-3])||u.y),u.x=o&&x[_-2],u.y=o&&x[_-1]}return o?[n,o]:n}},function(t,e,n){function i(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),u=t+n*Math.cos(-r*o);a=[["M",s,e+n*Math.sin(-i*o)],["A",n,n,0,+(r-i>180),0,u,e+n*Math.sin(-r*o)]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a}var r=n(139),a=n(140);t.exports=function(t){if(!(t=r(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,c=0,l=void 0,h=void 0;"M"===t[0][0]&&(s=n=+t[0][1],u=o=+t[0][2],c++,e[0]=["M",n,o]);for(var f,p,g=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=c,v=t.length;d<v;d++){if(e.push(f=[]),p=t[d],(l=p[0])!==l.toUpperCase())switch(f[0]=l.toUpperCase(),f[0]){case"A":f[1]=p[1],f[2]=p[2],f[3]=p[3],f[4]=p[4],f[5]=p[5],f[6]=+p[6]+n,f[7]=+p[7]+o;break;case"V":f[1]=+p[1]+o;break;case"H":f[1]=+p[1]+n;break;case"R":for(var y=2,m=(h=[n,o].concat(p.slice(1))).length;y<m;y++)h[y]=+h[y]+n,h[++y]=+h[y]+o;e.pop(),e=e.concat(a(h,g));break;case"O":e.pop(),(h=i(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(i(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));break;case"M":s=+p[1]+n,u=+p[2]+o;break;default:for(var x=1,b=p.length;x<b;x++)f[x]=+p[x]+(x%2?n:o)}else if("R"===l)h=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(a(h,g)),f=["R"].concat(p.slice(-2));else if("O"===l)e.pop(),(h=i(n,o,p[1],p[2])).push(h[0]),e=e.concat(h);else if("U"===l)e.pop(),e=e.concat(i(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var _=0,S=p.length;_<S;_++)f[_]=p[_];if("O"!==(l=l.toUpperCase()))switch(f[0]){case"Z":n=+s,o=+u;break;case"H":n=f[1];break;case"V":o=f[1];break;case"M":s=f[f.length-2],u=f[f.length-1];break;default:n=f[f.length-2],o=f[f.length-1]}}return e}},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},i="\t\n\v\f\r \u2028\u2029",r=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");t.exports=function(t){if(!t)return null;if((void 0===t?"undefined":n(t))===n([]))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(t).replace(r,function(t,n,r){var o=[],s=n.toLowerCase();if(r.replace(a,function(t,e){e&&o.push(+e)}),"m"===s&&o.length>2&&(i.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&i.push([n,o[0]]),"r"===s)i.push([n].concat(o));else for(;o.length>=e[s]&&(i.push([n].concat(o.splice(0,e[s]))),e[s]););}),i}},function(t,e){t.exports=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n}},function(t,e,n){var i=n(24);t.exports=function(t){return i(t).toLowerCase()}},function(t,e,n){var i=n(24);t.exports=function(t){return i(t).toUpperCase()}},function(t,e,n){var i=n(144);t.exports=function(t,e){if(!e)return[t];var n=i(t,e),r=[];for(var a in n)r.push(n[a]);return r}},function(t,e,n){var i=n(11),r=n(4),a=n(145);t.exports=function(t,e){if(!e)return{0:t};if(!i(e)){var n=r(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return a(t,e)}},function(t,e,n){var i=n(2),r=n(4),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!r(t))return t;var n={},o=null;return i(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e,n){function i(t,e){return r.isEqualWith(t,e,function(t,e){return t===e})}var r=n(0),a=n(293),o=n(16).Canvas,s=r.DomUtil,u=n(7),c=n(358),l=n(165),h=n(167),f=n(166),p=n(168),g=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,backPlot:null,frontPlot:null,plotBackground:null,padding:u.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:u.renderer,views:[]})},n.init=function(){var e=this.get("viewTheme");this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var n=new l.Tooltip({chart:this,viewTheme:e,options:{}});this.set("tooltipController",n);var i=new l.Legend({chart:this,viewTheme:e});this.set("legendController",i),this.set("_id","chart"),this.emit("afterinit")},n._isAutoPadding=function(){var t=this.get("padding");return r.isArray(t)?t.includes("auto"):"auto"===t},n._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot").getBBox(),n=this.get("backPlot"),i=f(n,p(this.get("plotRange"))),a=h(e,i),o=[0-a.minY,a.maxX-this.get("width"),a.maxY-this.get("height"),0-a.minX],s=r.toAllPadding(t),u=0;u<s.length;u++)if("auto"===s[u]){var c=Math.max(0,o[u]);s[u]=c+this.get("autoPaddingAppend")}return s},n._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),i=this.get("height");if(r.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var a=s.createDom('<div style="position:relative;"></div>');t.appendChild(a),this.set("wrapperEl",a),this.get("forceFit")&&(n=s.getWidth(t,n),this.set("width",n));var u=this.get("renderer"),c=new o({containerDOM:a,width:n,height:i,pixelRatio:"svg"===u?1:this.get("pixelRatio"),renderer:u});this.set("canvas",c)},n._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:0}),i=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",i)},n._initPlotBack=function(){var t=this.get("canvas"),e=this.get("viewTheme"),n=t.addGroup(c,{padding:this.get("padding"),plotBackground:r.mix({},e.plotBackground,this.get("plotBackground")),background:r.mix({},e.background,this.get("background"))});this.set("plot",n),this.set("plotRange",n.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",r.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(r.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options").legends;if(r.isNil(t)||!1!==t){var e=this.get("legendController");if(e.options=t||{},e.plotRange=this.get("plotRange"),t&&t.custom)e.addCustomLegend();else{var n=this.getAllGeoms(),i=[];r.each(n,function(t){var n=t.get("view"),a=t.getAttrsForLegend();r.each(a,function(a){var o=a.type,s=a.getScale(o);if(s.field&&"identity"!==s.type&&!function(t,e){var n=!1;return r.each(t,function(t){var i=[].concat(t.values),r=[].concat(e.values);t.type!==e.type||t.field!==e.field||i.sort().toString()!==r.sort().toString()||(n=!0)}),n}(i,s)){i.push(s);var u=n.getFilteredOutValues(s.field);e.addLegend(s,a,t,u)}})});var a=this.getYScales();0===i.length&&a.length>1&&e.addMixedLegend(a,n)}e.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(r.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},n.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return r.each(e,function(e){t=t.concat(e.get("geoms"))}),t},n.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=s.getWidth(t,e);if(0!==n&&n!==e){var i=this.get("height");this.changeSize(n,i)}return this}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");i(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},n.changeWidth=function(t){return this.changeSize(t,this.get("height"))},n.changeHeight=function(t){return this.changeSize(this.get("width"),t)},n.view=function(t){(t=t||{}).theme=this.get("theme"),t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),r.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=r.mix({},this._getSharedOptions(),t.options);var e=new a(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},n.removeView=function(t){var e=this.get("views");r.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return r.each(["scales","coord","axes"],function(n){e[n]=r.cloneDeep(t[n])}),e},n.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},n.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var i={};return!1===t?n.legends=!1:r.isObject(t)?i=t:r.isString(t)?i[t]=e:i=e,r.mix(n.legends,i),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:r.isObject(t)?r.mix(n.tooltip,t):r.mix(n.tooltip,e),this},n.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;){e.shift().destroy()}t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},n.clearInner=function(){var e=this.get("views");r.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var i=this.get("legendController");i&&i.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");i(n.get("padding"),e)||(n.set("padding",e),n.repaint())}var a=this.get("middlePlot");if(this.get("limitInPlot")&&!a.attr("clip")){var o=r.getClipByRange(this.get("plotRange"));a.attr("clip",o)}t.prototype.render.call(this),this._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},n.toDataURL=function(){var t=this.get("canvas"),e=this.get("renderer"),n=t.get("el"),i="";if("svg"===e){var r=n.cloneNode(!0),a=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",a);o.replaceChild(r,o.documentElement);var s=(new XMLSerializer).serializeToString(o);i="data:image/svg+xml;charset=utf8,"+encodeURIComponent(s)}else"canvas"===e&&(i=n.toDataURL("image/png"));return i},n.downloadImage=function(t){var e=this,n=document.createElement("a"),i=e.get("renderer"),r=(t||"chart")+("svg"===i?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==i){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,c=new Uint8Array(u);u--;)c[u]=s.charCodeAt(u);var l=new Blob([c],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(l,r):n.addEventListener("click",function(){n.download=r,n.href=window.URL.createObjectURL(l)})}else n.addEventListener("click",function(){n.download=r,n.href=t});var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),n.dispatchEvent(h)},16)},n.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){this.get("tooltipController").showTooltip(t,e)}return this},n.lockTooltip=function(){return this.get("tooltipController").lockTooltip(),this},n.unlockTooltip=function(){return this.get("tooltipController").unlockTooltip(),this},n.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},n.getTooltipItems=function(t){var e=this.getViewsByPoint(t),n=[];return r.each(e,function(e){var i=e.get("geoms");r.each(i,function(e){var i=e.get("dataArray"),a=[];r.each(i,function(n){var i=e.findPoint(t,n);if(i){var r=e.getTipItems(i);a=a.concat(r)}}),n=n.concat(a)})}),n},n.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",r.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(a);t.exports=g},function(t,e,n){var i=n(54),r=n(0),a=function(t){function e(e){var n,i={visible:!0},a=(n=t.call(this)||this).getDefaultCfg();return n._attrs=i,r.assign(i,a,e),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{}},n.get=function(t){return this._attrs[t]},n.set=function(t,e){this._attrs[t]=e},n.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},n.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},n.changeVisible=function(){},n.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},e}(i);t.exports=a},function(t,e,n){function i(t,e,n,i){return t[i]+(e[i]-t[i])*n}function r(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){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 s=n(9),u=n(10),c=n(2),l=/rgba?\(([\s.,0-9]+)\)/,h={},f=null,p={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;f||(f=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}());var e;if(h[t])e=h[t];else{f.style.color=t,e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color");e=r(l.exec(e)[1].split(/\s*,\s*/)),h[t]=e}return e},rgb2arr:o,gradient:function(t){var e=[];return u(t)&&(t=t.split("-")),c(t,function(t){-1===t.indexOf("#")&&(t=p.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){(isNaN(e)||!s(e)||e<0)&&(e=0),e>1&&(e=1);var n=t.length-1,a=Math.floor(n*e),o=n*e-a,u=t[a],c=a===n?u:t[a+1];return r([i(u,c,o,0),i(u,c,o,1),i(u,c,o,2)])}(e,t)}}};t.exports=p},function(t,e,n){var i=n(2),r={values:n(65)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e={},n=[];if(this.xField&&this.isAdjust("x")&&n.push(this.xField),this.yField&&this.isAdjust("y")&&n.push(this.yField),i(n,function(n){var i=r.values(t,n);i.sort(function(t,e){return t-e}),e[n]=i}),!this.yField&&this.isAdjust("y")){var a=[0,1];e.y=a}return e},adjustData:function(t,e){var n=this,r=n._getDimValues(e);i(t,function(e,a){i(r,function(i,r){n.adjustDim(r,i,e,t.length,a)})})},getAdjustRange:function(t,e,n){var i,r,a=n.indexOf(e),o=n.length;return!this.yField&&this.isAdjust("y")?(i=0,r=1):o>1?(i=0===a?n[0]:n[a-1],r=a===o-1?n[o-1]:n[a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==o-1?r-=(r-e)/2:r+=(e-n[o-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},groupData:function(t,e){var n={};return i(t,function(t){var i=t[e];void 0===i&&(i=t[e]=0),n[i]||(n[i]=[]),n[i].push(t)}),n}}},function(t,e,n){var i={default:n(151),dark:n(306)};t.exports=i},function(t,e){var n,i,r='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:r,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:16,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},bottom:{position:"bottom",title:null,label:{offset:16,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0}},left:{position:"left",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:8,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,textBaseline:"middle",fontFamily:r}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:8,textStyle:{fill:"#545454",fontSize:12,lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:16,fontFamily:r}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4,alignWithLabel:!0},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF",alignWithLabel:!0}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:r}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:r}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:r}},thetaLabels:{labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,legendStyle:{LIST_CLASS:{textAlign:"left"}},textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:0,fontFamily:r},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},top:{position:"top",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:[0,6],layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:r},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:r,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={listStyleType:"none",cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:r},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(i={useHtml:!0,crosshairs:!1,offset:15,marker:{symbol:"circle",activeSymbol:"circle"}},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={listStyleType:"none",marginBottom:"4px",padding:0,marginTop:0,marginLeft:0,marginRight:0},i["g2-tooltip-marker"]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i),tooltipMarker:{symbol:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,radius:4},tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:"#1890FF",radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:"#1890FF",radius:3},interval:{lineWidth:0,fill:"#1890FF",fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:"#1890FF",fillOpacity:.6},polygon:{lineWidth:0,fill:"#1890FF",fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:"#1890FF",fillOpacity:0,lineWidth:2},line:{stroke:"#1890FF",lineWidth:2,fill:null},edge:{stroke:"#1890FF",lineWidth:1,fill:null},schema:{stroke:"#1890FF",lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:"rgba(0, 0, 0, .65)",lineDash:[2,2],lineWidth:1},text:{position:"start",autoRotate:!0,style:{fill:"rgba(0, 0, 0, .45)",fontSize:12,textAlign:"start",fontFamily:r,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:r}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"},dataRegion:{style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}},dataMarker:{top:!0,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"rgba(0, 0, 0, .65)",opacity:1,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0}},pixelRatio:null};t.exports=a},function(t,e,n){var i=n(20).Group,r=n(3),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{getDefaultCfg:function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1,hightLightZero:!1,zeroLineStyle:{stroke:"#595959",lineDash:[0,0]}}},_renderUI:function(){a.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},_precessItems:function(t){var e,n=this;r.each(t,function(t,i){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,i),e=t})},_drawGridLines:function(t,e){var n,i,a,o,s=this,u=this.get("type"),c=t.length;"line"===u||"polygon"===u?r.each(t,function(t,l){s.get("hideFirstLine")&&0===l||s.get("hideLastLine")&&l===c-1||(o=t.points,i=[],"line"===u?(i.push(["M",o[0].x,o[0].y]),i.push(["L",o[o.length-1].x,o[o.length-1].y])):r.each(o,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])}),a=s._drawZeroLine(u,l)?r.mix({},s.get("zeroLineStyle"),{path:i}):r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}):r.each(t,function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===c-1||(o=t.points,i=[],r.each(o,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])}),a=r.mix({},e,{path:i}),(n=s.addShape("path",{attrs:a})).name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))})},_drawZeroLine:function(t,e){var n=this.get("tickValues");return!("line"!==t||!n||0!==n[e]||!this.get("hightLightZero"))},_drawAlternativeBg:function(t,e,n){var i,a,o,s=this.get("alternateColor");r.isString(s)?a=s:r.isArray(s)&&(a=s[0],o=s[1]),n%2==0?o&&(i=this._getBackItem(e.points,t.points,o)):a&&(i=this._getBackItem(e.points,t.points,a));var u=this.addShape("Path",{attrs:i});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},_getBackItem:function(t,e,n){var i=[],a=this.get("type");if("line"===a)i.push(["M",t[0].x,t[0].y]),i.push(["L",t[t.length-1].x,t[t.length-1].y]),i.push(["L",e[e.length-1].x,e[e.length-1].y]),i.push(["L",e[0].x,e[0].y]),i.push(["Z"]);else if("polygon"===a){r.each(t,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)i.push(["L",e[o].x,e[o].y]);i.push(["Z"])}else{var s=t[0].flag;r.each(t,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;u>=0;u--){var c=e[u],l=c.radius;u===e.length-1?i.push(["M",c.x,c.y]):i.push(["A",l,l,0,0,1===s?0:1,c.x,c.y])}}return{fill:n,path:i}}}),t.exports=a},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=a.DomUtil,s=n(32),u={scatter:n(309),map:n(310),treemap:n(311)},c=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>',labelLine:!1,lineGroup:null,shapes:null,config:!0,capture:!0})},n.clear=function(){var e=this.get("group"),n=this.get("container");e&&!e.get("destroyed")&&e.clear(),n&&(n.innerHTML=""),t.prototype.clear.call(this)},n.destroy=function(){var e=this.get("group"),n=this.get("container");e.destroy||e.destroy(),n&&n.parentNode&&n.parentNode.removeChild(n),t.prototype.destroy.call(this)},n.render=function(){this.clear(),this._init(),this.beforeDraw(),this.draw(),this.afterDraw()},n._dryDraw=function(){var t=this,e=t.get("items"),n=t.getLabels(),i=n.length;a.each(e,function(e,r){if(r<i){var a=n[r];t.changeLabel(a,e)}else{var o=t._addLabel(e,r);o&&(o._id=e._id,o.set("coord",e.coord))}});for(var r=i-1;r>=e.length;r--)n[r].remove();t._adjustLabels(),!t.get("labelLine")&&t.get("config")||t.drawLines()},n.draw=function(){this._dryDraw(),this.get("canvas").draw()},n.changeLabel=function(t,e){if(t)if(t.tagName){var n=this._createDom(e);t.innerHTML=n.innerHTML,this._setCustomPosition(e,t)}else t._id=e._id,t.attr("text",e.text),t.attr("x")===e.x&&t.attr("y")===e.y||(t.resetMatrix(),e.textStyle.rotate&&(t.rotateAtStart(e.textStyle.rotate),delete e.textStyle.rotate),t.attr(e))},n.show=function(){var t=this.get("group"),e=this.get("container");t&&t.show(),e&&(e.style.opacity=1)},n.hide=function(){var t=this.get("group"),e=this.get("container");t&&t.hide(),e&&(e.style.opacity=0)},n.drawLines=function(){var t=this;"boolean"==typeof t.get("labelLine")&&t.set("labelLine",{});var e=t.get("lineGroup");!e||e.get("destroyed")?(e=t.get("group").addGroup({elCls:"x-line-group"}),t.set("lineGroup",e)):e.clear(),a.each(t.get("items"),function(n){t.lineToLabel(n,e)})},n.lineToLabel=function(t,e){if(this.get("config")||t.labelLine){var n=t.labelLine||this.get("labelLine"),i=void 0===t.capture?this.get("capture"):t.capture,r=n.path;if(r&&a.isFunction(n.path)&&(r=n.path(t)),!r){var o=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};r=[["M",o.x,o.y],["L",t.x,t.y]]}var s=t.color;s||(s=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var u=e.addShape("path",{attrs:a.mix({path:r,fill:null,stroke:s},n),capture:i});u.name=this.get("name"),u._id=t._id&&t._id.replace("glabel","glabelline"),u.set("coord",this.get("coord"))}},n._adjustLabels=function(){var t=this.get("type"),e=this.getLabels(),n=this.get("shapes"),i=u[t];"default"!==t&&i&&i(e,n)},n.getLabels=function(){var t=this.get("container");return t?a.toArray(t.childNodes):this.get("group").get("children")},n._addLabel=function(t,e){var n=t;return this.get("config")&&(n=this._getLabelCfg(t,e)),this._createText(n)},n._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},i=this.get("formatter"),r=this.get("htmlTemplate");if(!a.isObject(t)){var o=t;(t={}).text=o}a.isFunction(n)&&(n=n(t.text,t,e)),i&&(t.text=i(t.text,t,e)),r&&(t.useHtml=!0,a.isFunction(r)&&(t.text=r(t.text,t,e))),a.isNil(t.text)&&(t.text=""),t.text=t.text+"";return a.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},n._init=function(){if(!this.get("group")){var t=this.get("canvas").addGroup({id:"label-group"});this.set("group",t)}},n.initHtmlContainer=function(){var t=this.get("container");if(t)a.isString(t)&&(t=document.getElementById(t))&&this.set("container",t);else{var e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;t=o.createDom(e),n.style.position="relative",n.appendChild(t),this.set("container",t)}return t},n._createText=function(t){var e,n=a.deepMix({},t),i=this.get("container"),r=void 0===n.capture?this.get("capture"):n.capture;if(!n.useHtml&&!n.htmlTemplate){var o=this.get("name"),s=n.point,u=this.get("group");delete n.point;var c=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(c=n.textStyle.rotate,delete n.textStyle.rotate),n=a.mix({x:n.x,y:n.y,textAlign:n.textAlign,text:n.text},n.textStyle)),e=u.addShape("text",{attrs:n,capture:r}),c&&(Math.abs(c)>2*Math.PI&&(c=c/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",c],["t",n.x,n.y]])),e.setSilent("origin",s||n),e.name=o,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}i||(i=this.initHtmlContainer());var l=this._createDom(n);i.appendChild(l),this._setCustomPosition(n,l)},n._createDom=function(t){var e=this.get("itemTpl"),n=a.substitute(e,{text:t.text});return o.createDom(n)},n._setCustomPosition=function(t,e){var n=t.textAlign||"left",i=t.y,r=t.x,a=o.getOuterWidth(e);i-=o.getOuterHeight(e)/2,"center"===n?r-=a/2:"right"===n&&(r-=a),e.style.top=parseInt(i,10)+"px",e.style.left=parseInt(r,10)+"px"},e}(s);t.exports=c},function(t,e){var n=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.floor(t.minX),r=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=i;s<r;s++)if(n[s]){if(s===i||s===r-1){for(var u=a;u<=o;u++)if(n[s][u]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]=[];return e},e.fillGap=function(t){for(var e=this.bitmap,n=Math.floor(t.minX),i=Math.ceil(t.maxX)-1,r=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,o=n;o<=i;o++){for(var s=r;s<a;s+=8)e[o]||(e[o]=[]),e[o][s]=!0;e[o][a]=!0}for(var u=r;u<=a;u++)e[n][u]=!0,e[i][u]=!0},t}();t.exports=n},function(t,e,n){var i=n(3);t.exports={getFirstScale:function(t){var e;return i.each(t,function(t){if(t)return e=t,!1}),e}}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){var n=null,i=e instanceof h||"legendGroup"===e.name?e.get("value"):e;return s.each(t,function(t){if(t.value===i)return n=t,!1}),n}function o(t,e){return t.findBy(function(t){return t.name===e})}var s=n(3),u=n(157),c=n(14).FONT_FAMILY,l=s.Event,h=s.Group,f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{type:"category-legend",items:null,itemGap:5,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c},_wordSpaceing:8,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0,highlight:!1,activeOpacity:.7,inactiveOpacity:1})},n.render=function(){t.prototype.render.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems()},n._bindEvents=function(){this.get("hoverable")&&(this.get("group").on("mousemove",s.wrapBehavior(this,"_onMousemove")),this.get("group").on("mouseleave",s.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.get("group").on("click",s.wrapBehavior(this,"_onClick"))},n._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},n.activate=function(t){var e=this,n=this,i=void 0;n.get("itemsGroup").get("children").forEach(function(r){if(i=o(r,"legend-marker")){var a=r.get("checked");e.get("highlight")?r.get("value")===t&&a?i.attr("stroke","#333"):i.attr("stroke",null):r.get("value")===t&&i.attr("fillOpacity",n.get("activeOpacity"))}}),this.get("canvas").draw()},n.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup").get("children"),i=void 0,r=this.get("unCheckColor");n.forEach(function(n){if(i=o(n,"legend-marker"))if(t.get("highlight")){var a=i.get("oriStroke"),s=n.get("checked");a=a&&!s?r:"",i.attr("stroke",a)}else i.attr("fillOpacity",e.get("inactiveOpacity"))}),this.get("canvas").draw()},n._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),i=new l("itemhover",t,!0,!0);i.item=a(n,e),i.checked=e.get("checked"),i.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",i)}else this.deactivate(),this.emit("itemunhover",t);this.get("canvas").draw()},n._onMouseleave=function(t){this.deactivate(),this.get("canvas").draw(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var i=e.get("checked"),r=this.get("selectedMode"),u=a(n,e),c=new l("itemclick",t,!0,!0);if(c.item=u,c.currentTarget=e,c.appendInfo=t.currentTarget.get("appendInfo"),c.checked="single"===r||!i,!this.get("allowAllCanceled")&&i&&1===this.getCheckedCount())return void this.emit("clicklastitem",c);var h=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,g=void 0,d=void 0;if("single"===r){var v=this.get("itemsGroup").get("children");s.each(v,function(t){p=o(t,"legend-marker"),g=o(t,"legend-text"),d=o(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",h),p.attr("stroke")&&p.attr("stroke",h),g.attr("fill",h),p.setSilent("checked",!1),g.setSilent("checked",!1),d.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&u&&u.marker&&p.attr("fill",u.marker.fill),p.attr("stroke")&&u&&u.marker&&p.attr("stroke",u.marker.stroke),g.attr("fill",f),p.setSilent("checked",!0),g.setSilent("checked",!0),d.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=o(e,"legend-marker"),g=o(e,"legend-text"),d=o(e,"legend-item"),p.attr("fill")&&u&&u.marker&&p.attr("fill",i?h:u.marker.fill),p.attr("stroke")&&u&&u.marker&&p.attr("stroke",i?h:u.marker.stroke),g.attr("fill",i?h:f),e.setSilent("checked",!i),p.setSilent("checked",!i),g.setSilent("checked",!i),d.setSilent("checked",!i);this.emit("itemclick",c)}this.get("canvas").draw()},n._renderItems=function(){var t=this,e=this.get("items");if(this.get("reversed")&&e.reverse(),s.each(e,function(e,n){t._addItem(e,n)}),this.get("highlight")){var n=void 0;this.get("itemsGroup").get("children").forEach(function(t){(n=o(t,"legend-marker")).get("oriStroke")||(n.attr("stroke")?n.set("oriStroke",n.attr("stroke")):n.set("oriStroke",""))})}},n._formatItemValue=function(t){var e=this.get("formatter")||this.get("itemFormatter");return e&&(t=e.call(this,t)),t},n._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),i=this.get("itemWidth"),r=n.get("children"),a=0;return"horizontal"===t&&s.each(r,function(t){a+=(i||t.getBBox().width)+e}),a},n._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),i=this.get("itemsGroup"),r=this.get("titleShape"),a=i.get("children"),o=e;return r&&(o+=r.getBBox().height),"vertical"===n&&s.each(a,function(e){o+=e.getBBox().height+t}),o},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),i=this._getNextY(),r=this.get("unCheckColor"),a=e.addGroup({x:n,y:i,value:t.value,checked:t.checked});a.set("viewId",this.get("viewId"));var o=this.get("textStyle"),u=this.get("_wordSpaceing"),l=0;if(t.marker){var h=s.mix({},t.marker,{x:t.marker.radius+n,y:i});t.checked||(h.fill&&(h.fill=r),h.stroke&&(h.stroke=r));var f=a.addShape("marker",{type:"marker",attrs:h});f.attr("cursor","pointer"),f.name="legend-marker",l+=f.getBBox().width+u}var p=s.mix({},{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c},o,{x:l+n,y:i,text:this._formatItemValue(t.value)});t.checked||s.mix(p,{fill:r});var g=a.addShape("text",{attrs:p});g.attr("cursor","pointer"),g.name="legend-text",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"));var d=a.getBBox(),v=this.get("itemWidth"),y=a.addShape("rect",{attrs:{x:n,y:i-d.height/2,fill:"#fff",fillOpacity:0,width:v||d.width,height:d.height}});return y.attr("cursor","pointer"),y.setSilent("origin",t),y.name="legend-item",this.get("appendInfo")&&y.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),i=this.get("itemGap"),r=this.get("itemMarginBottom"),a=this.get("titleShape")?this.get("titleGap"):0,o=0,u=0,c=void 0,l=void 0,h=void 0,f=this.get("itemWidth");t.getBBox().width>n&&s.each(e,function(t){h=t.getBBox(),c=f||h.width,l=h.height+r,n-u<c&&(o++,u=0),t.move(u,o*l+a),u+=c+i})},n._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),i=this.get("maxLength"),r=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleGap"),u=e?e.getBBox().height+o:0,c=this.get("itemWidth"),l=u,h=void 0,f=void 0,p=void 0,g=0,d=0;t.getBBox().height>i&&s.each(n,function(t){p=t.getBBox(),h=p.width,f=p.height,c?g=c+r:h>g&&(g=h+r),i-l<f?(l=u,d+=g,t.move(d,u)):t.move(d,l),l+=f+a})},n._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},n.getWidth=function(){return t.prototype.getWidth.call(this)},n.getHeight=function(){return t.prototype.getHeight.call(this)},n.move=function(e,n){t.prototype.move.call(this,e,n)},e}(u);t.exports=f},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(32),s=n(14).FONT_FAMILY,u=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){return{container:null,title:null,formatter:null,hoverable:!0,titleGap:15,position:[0,0],offset:[0,0],offsetX:null,offsetY:null}},n._init=function(){var t=this.get("group"),e=this.get("container");this.set("canvas",e.get("canvas"));var n=this.get("position");t||(t=e.addGroup({x:0-n[0],y:0-n[1]})),this.set("group",t)},n._adjustPositionOffset=function(){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");if(!a.isArray(e)){e="vertical"===this.get("layout")?[e,0]:[0,e]}n&&(e[0]=n),i&&(e[1]=i);var r=this.get("group").getBBox();this.move(-r.minX+t[0]+e[0],-r.minY+t[1]+e[1])},n.beforeRender=function(){var t=this.get("group").addGroup();this.set("itemsGroup",t)},n.render=function(){this._renderTitle()},n._renderTitle=function(){var t=this.get("title"),e=this.get("titleGap");if(e=e||0,t&&t.text){var n=this.get("group").addShape("text",{attrs:a.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:s},t)});n.name="legend-title",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",n)}},n.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return a.filter(t,function(t){return t.get("checked")}).length},n.setItems=function(t){this.set("items",t),this.clear(),this.render()},n.addItem=function(t){this.get("items").push(t),this.clear(),this.render()},n.clear=function(){this.get("itemsGroup").clear();this.get("group").clear(),this.beforeRender()},n.destroy=function(){var e=this.get("group");e&&e.destroy(),this._attrs={},this.removeAllListeners(),t.prototype.destroy.call(this)},n.getWidth=function(){return this.get("group").getBBox().width},n.getHeight=function(){return this.get("group").getBBox().height},n.move=function(t,e){this.get("group").move(t,e)},n.draw=function(){this.get("canvas").draw()},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return t.getElementsByClassName(e)[0]}function o(t,e){var n=t.className;return u.isNil(n)?t:(n=n.split(" ")).indexOf(e)>-1?t:t.parentNode?t.parentNode.className===p?t.parentNode:o(t.parentNode,e):null}function s(t,e){var n=null,i=e instanceof f?e.get("value"):e;return u.each(t,function(t){if(t.value===i)return n=t,!1}),n}var u=n(3),c=n(156),l=n(14).FONT_FAMILY,h=u.DomUtil,f=u.Group,p="g2-legend",g="g2-legend-list",d="g2-legend-list-item",v="g2-legend-marker",y=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return u.mix({},e,{type:"category-legend",container:null,containerTpl:'<div class="'+p+'"><h4 class="g2-legend-title"></h4><ul class="'+g+'"></ul></div>',itemTpl:'<li class="'+d+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+v+'" style="background-color:{color};"></i><span class="g2-legend-text">{value}</span></li>',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:l},abridgeText:!1,tipTpl:'<div class="textTip"></div>',tipStyle:{display:"none",fontSize:"12px",backgroundColor:"#fff",position:"absolute",width:"auto",height:"auto",padding:"3px",boxShadow:"2px 2px 5px #888"},autoPosition:!0})},n._init=function(){},n.beforeRender=function(){},n.render=function(){this._renderHTML()},n._bindEvents=function(){var t=this,e=a(this.get("legendWrapper"),g);this.get("hoverable")&&(e.onmousemove=function(e){return t._onMousemove(e)},e.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(e.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,i=n.className;if(!((i=i.split(" ")).indexOf(p)>-1||i.indexOf(g)>-1)){var r=o(n,d),a=s(e,r.getAttribute("data-value"));a?(this.deactivate(),this.activate(r.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:r,checked:a.checked})):a||(this.deactivate(),this.emit("itemunhover",t))}},n._onMouseleave=function(t){this.deactivate(),this.emit("itemunhover",t)},n._onClick=function(t){var e=this,n=a(this.get("legendWrapper"),g),i=this.get("unCheckColor"),r=this.get("items"),c=this.get("selectedMode"),l=n.childNodes,h=t.target,f=h.className;if(!((f=f.split(" ")).indexOf(p)>-1||f.indexOf(g)>-1)){var y=o(h,d),m=a(y,"g2-legend-text"),x=a(y,v),b=s(r,y.getAttribute("data-value"));if(b){var _=y.className,S=y.getAttribute("data-color");if("single"===c)b.checked=!0,u.each(l,function(t){if(t!==y){a(t,v).style.backgroundColor=i,t.className=t.className.replace("checked","unChecked"),t.style.color=i;s(r,t.getAttribute("data-value")).checked=!1}else m&&(m.style.color=e.get("textStyle").fill),x&&(x.style.backgroundColor=S),y.className=_.replace("unChecked","checked")});else{var w=-1!==_.indexOf("checked"),M=0;if(u.each(l,function(t){-1!==t.className.indexOf("checked")&&M++}),!this.get("allowAllCanceled")&&w&&1===M)return void this.emit("clicklastitem",{item:b,currentTarget:y,checked:"single"===c||b.checked});b.checked=!b.checked,w?(x&&(x.style.backgroundColor=i),y.className=_.replace("checked","unChecked"),y.style.color=i):(x&&(x.style.backgroundColor=S),y.className=_.replace("unChecked","checked"),y.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:b,currentTarget:y,checked:"single"===c||b.checked})}}},n.activate=function(t){var e=this,n=this,i=n.get("items"),r=s(i,t);a(n.get("legendWrapper"),g).childNodes.forEach(function(t){var o=a(t,v),u=s(i,t.getAttribute("data-value"));if(e.get("highlight")){if(u===r&&u.checked)return void(o.style.border="1px solid #333")}else u===r?o.style.opacity=n.get("activeOpacity"):u.checked&&(o.style.opacity=n.get("inactiveOpacity"))})},n.deactivate=function(){var t=this,e=this;a(e.get("legendWrapper"),g).childNodes.forEach(function(n){var i=a(n,v);t.get("highlight")?i.style.border="1px solid #fff":i.style.opacity=e.get("inactiveOpacity")})},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),i=this.get("containerTpl"),r=h.createDom(i),o=a(r,"g2-legend-title"),s=a(r,g),c=this.get("unCheckColor"),f=u.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:l,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:l},LIST_CLASS:{listStyleType:"none",margin:0,padding:0,textAlign:"center"},LIST_ITEM_CLASS:{cursor:"pointer",marginBottom:"5px",marginRight:"24px"},MARKER_CLASS:{width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"4px",verticalAlign:"middle"}},this.get("legendStyle"));if(/^\#/.test(e)||"string"==typeof e&&e.constructor===String){var y=e.replace("#","");(e=document.getElementById(y)).appendChild(r)}else{var m=this.get("position"),x={};x="left"===m||"right"===m?{maxHeight:(this.get("maxLength")||e.offsetHeight)+"px"}:{maxWidth:(this.get("maxLength")||e.offsetWidth)+"px"},h.modifyCSS(r,u.mix({},f.CONTAINER_CLASS,x,this.get(p))),e.appendChild(r)}h.modifyCSS(s,u.mix({},f.LIST_CLASS,this.get(g))),o&&(n&&n.text?(o.innerHTML=n.text,h.modifyCSS(o,u.mix({},f.TITLE_CLASS,this.get("g2-legend-title"),n))):r.removeChild(o));var b=this.get("items"),_=this.get("itemTpl"),S=this.get("position"),w=this.get("layout"),M="right"===S||"left"===S||"vertical"===w?"block":"inline-block",k=u.mix({},f.LIST_ITEM_CLASS,{display:M},this.get(d)),C=u.mix({},f.MARKER_CLASS,this.get(v));if(u.each(b,function(e,n){var i,o=e.checked,l=t._formatItemValue(e.value),f=e.marker.fill||e.marker.stroke,p=o?f:c;i=u.isFunction(_)?_(l,p,o,n):_;var g=u.substitute(i,u.mix({},e,{index:n,checked:o?"checked":"unChecked",value:l,color:p,originColor:f,originValue:e.value.replace(/\"/g,""")})),d=h.createDom(g);d.style.color=t.get("textStyle").fill;var y=a(d,v),m=a(d,"g2-legend-text");if(h.modifyCSS(d,k),y&&h.modifyCSS(y,C),o||(d.style.color=c,y&&(y.style.backgroundColor=c)),s.appendChild(d),t.get("abridgeText")){var x=l,b=d.offsetWidth,S=t.get("textStyle").fontSize;isNaN(S)&&(-1!==S.indexOf("pt")?S=1*parseFloat(S.substr(0,S.length-2))/72*96:-1!==S.indexOf("px")&&(S=parseFloat(S.substr(0,S.length-2))));var w=S*x.length,M=Math.floor(b/S);b<2*S?x="":b<w&&M>1&&(x=x.substr(0,M-1)+"..."),m.innerText=x,d.addEventListener("mouseover",function(){var t=a(r.parentNode,"textTip");t.style.display="block",t.style.left=d.offsetLeft+d.offsetWidth+"px",t.style.top=d.offsetTop+15+"px",t.innerText=l}),d.addEventListener("mouseout",function(){a(r.parentNode,"textTip").style.display="none"})}}),this.get("abridgeText")){var A=this.get("tipTpl"),P=h.createDom(A),O=this.get("tipStyle");h.modifyCSS(P,O),r.parentNode.appendChild(P),P.addEventListener("mouseover",function(){P.style.display="none"})}this.set("legendWrapper",r)},n._adjustPositionOffset=function(){if(!1!==this.get("autoPosition")){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),i=this.get("offsetY");n&&(e[0]=n),i&&(e[1]=i);var r=this.get("legendWrapper");r.style.left=t[0]+"px",r.style.top=t[1]+"px",r.style.marginLeft=e[0]+"px",r.style.marginTop=e[1]+"px"}},n.getWidth=function(){return h.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return h.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(h.modifyCSS(this.get("legendWrapper"),{left:e+"px",top:n+"px"}),this.set("x",e),this.set("y",n))},n.destroy=function(){var e=this.get("legendWrapper");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(c);t.exports=y},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(32),o=n(3),s=function(t){function e(e){var n;return(n=t.call(this,e)||this)._init_(),n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:null,plot:null,plotRange:null,rectStyle:{fill:"#CCD6EC",opacity:.3},lineStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},isTransposed:!1})},n._init_=function(){var t,e=this.get("plot");t="rect"===this.type?e.addGroup({zIndex:0}):e.addGroup(),this.set("container",t)},n._addLineShape=function(t,e){var n=this.get("container").addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,n),n},n._renderHorizontalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style")),i=o.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addLineShape(i,"X")},n._renderVerticalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style")),i=o.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addLineShape(i,"Y")},n._renderBackground=function(t,e){var n=o.mix(this.get("rectStyle"),this.get("style")),i=this.get("container"),r=o.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),a=i.addShape("rect",{attrs:r,capture:!1});return this.set("crosshairsRectShape",a),a},n._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),i=this.get("isTransposed"),r=t[0],a=t[t.length-1],s=i?"y":"x",u=i?"height":"width",c=r[s];if(t.length>1&&r[s]>a[s]&&(c=a[s]),this.get("width"))n.attr(s,c-this.get("crosshairs").width/2),n.attr(u,this.get("width"));else if(o.isArray(r.point[s])&&!r.size){var l=r.point[s][1]-r.point[s][0];n.attr(s,r.point[s][0]),n.attr(u,l)}else e=3*r.size/4,n.attr(s,c-e),1===t.length?n.attr(u,3*r.size/2):n.attr(u,Math.abs(a[s]-r[s])+2*e)},n.render=function(){var t=this.get("canvas"),e=this.get("plotRange"),n=this.get("isTransposed");switch(this.clear(),this.get("type")){case"x":this._renderHorizontalLine(t,e);break;case"y":this._renderVerticalLine(t,e);break;case"cross":this._renderHorizontalLine(t,e),this._renderVerticalLine(t,e);break;case"rect":this._renderBackground(t,e);break;default:n?this._renderHorizontalLine(t,e):this._renderVerticalLine(t,e)}},n.show=function(){var e=this.get("container");t.prototype.show.call(this),e.show()},n.hide=function(){var e=this.get("container");t.prototype.hide.call(this),e.hide()},n.clear=function(){var e=this.get("container");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.prototype.clear.call(this),e.clear()},n.destroy=function(){var e=this.get("container");t.prototype.destroy.call(this),e.remove()},n.setPosition=function(t,e,n){var i=this.get("crossLineShapeX"),r=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");r&&!r.get("destroyed")&&r.move(t,0),i&&!i.get("destroyed")&&i.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},e}(a);t.exports=s},function(t,e){var n={_calcTooltipPosition:function(t,e,n,i,r,a){var o=0,s=0,u=20;if(a){var c=a.getBBox();o=c.width,s=c.height,t=c.x,e=c.y,u=5}switch(n){case"inside":t=t+o/2-i/2,e=e+s/2-r/2;break;case"top":t=t+o/2-i/2,e=e-r-u;break;case"left":t=t-i-u,e=e+s/2-r/2;break;case"right":t=t+o+u,e=e+s/2-r/2;break;case"bottom":default:t=t+o/2-i/2,e=e+s+u}return[t,e]},_constraintPositionInBoundary:function(t,e,n,i,r,a){return t+n+20>r?t=(t-=n+20)<0?0:t:t+20<0?t=20:t+=20,e+i+20>a?e=(e-=i+20)<0?0:e:e+20<0?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,i,r,a){return t+n>r.tr.x&&(t-=a?n+1:n+40),t<r.tl.x&&(t=r.tl.x),a||(e+i>r.bl.y&&(e-=i+40),e<r.tl.y&&(e=r.tl.y)),[t,e]}};t.exports=n},function(t,e,n){var i=n(3),r={setMarkers:function(t,e){var n=this.get("markerGroup"),r=this.get("frontPlot");n?n.clear():(n=r.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),i.each(t,function(t){var r=i.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y});t.marker&&t.marker.activeSymbol&&(r.symbol=t.marker.activeSymbol),n.addShape("marker",{color:t.color,attrs:r})}),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}};t.exports=r},function(t,e,n){function i(t){return function(){var e,n=a(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=a(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return r(t)}(this,e)}}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var o=n(20),s=n(159),u=n(161),c=n(160),l=n(69),h=n(3),f=n(14).FONT_FAMILY,p=h.DomUtil,g=h.MatrixUtil,d=function(t){function e(e){var n;n=t.call(this,e)||this,h.assign(r(n),c),h.assign(r(n),u);var i=n.get("crosshairs");if(i){var a="rect"===i.type?n.get("backPlot"):n.get("frontPlot"),o=new s(h.mix({plot:a,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));o.hide(),n.set("crosshairGroup",o)}return n._init_(),n.get("items")&&n.render(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return h.mix({},e,{boardStyle:{x:0,y:0,width:100,height:100,fill:"rgba(255, 255, 255, 0.9)",radius:4,stroke:"#e2e2e2",lineWidth:1},titleStyle:{fontFamily:f,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:f,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:f,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:30},padding:{top:20,right:20,bottom:20,left:20},itemGap:10,animationDuration:200})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot"),n=e.addGroup({capture:!1});this.set("markerGroup",n);var i=e.addGroup();i.hide(),this.set("container",i);var r=i.addShape("rect",{attrs:h.mix({},this.get("boardStyle"))});this.set("board",r);var a=this.get("titleStyle");if(this.get("showTitle")){var o=i.addShape("text",{attrs:h.mix({x:t.left,y:t.top},a)});this.set("titleShape",o),o.name="tooltip-title"}var s=i.addGroup();s.move(t.left,t.top+a.lineHeight+a.padding),this.set("itemsGroup",s)},n.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),i=t.get("showTitle"),r=t.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(a&&i&&a.attr("text",r),o){var c=t.get("itemGap"),l=0;h.each(s,function(e){var n=t._addItem(e);n.move(0,l),o.add(n);var i=n.getBBox().height;l+=i+c})}var f=e.getBBox(),p=f.width+u.right,g=f.height+u.bottom;n.attr("width",p),n.attr("height",g),t._alignToRight(p)},n.clear=function(){var t=this.get("titleShape"),e=this.get("itemsGroup"),n=this.get("board");t.text="",e.clear(),n.attr("width",0),n.attr("height",0)},n.show=function(){this.get("container").show();var e=this.get("crosshairGroup");e&&e.show();var n=this.get("markerGroup");n&&n.show(),t.prototype.show.call(this),this.get("canvas").draw()},n.hide=function(){this.get("container").hide();var e=this.get("crosshairGroup");e&&e.hide();var n=this.get("markerGroup");n&&n.hide(),t.prototype.hide.call(this),this.get("canvas").draw()},n.destroy=function(){var e=this.get("container"),n=this.get("crosshairGroup");n&&n.destroy();var i=this.get("markerGroup");i&&i.remove(),t.prototype.destroy.call(this),e.remove()},n.setPosition=function(e,n,i){var r,a=this.get("container"),o=this.get("canvas").get("el"),s=p.getWidth(o),u=p.getHeight(o),c=a.getBBox(),l=c.width,f=c.height,d=e,v=n;if(this.get("position")){var y=c.width,m=c.height;e=(r=this._calcTooltipPosition(e,n,this.get("position"),y,m,i))[0],n=r[1]}else e=(r=this._constraintPositionInBoundary(e,n,l,f,s,u))[0],n=r[1];if(this.get("inPlot")){var x=this.get("plotRange");e=(r=this._constraintPositionInPlot(e,n,l,f,x,this.get("enterable")))[0],n=r[1]}var b=this.get("markerItems");h.isEmpty(b)||(d=b[0].x,v=b[0].y);var _=g.transform([1,0,0,0,1,0,0,0,1],[["t",e,n]]);a.stopAnimate(),a.animate({matrix:_},this.get("animationDuration"));var S=this.get("crosshairGroup");if(S){var w=this.get("items");S.setPosition(d,v,w)}t.prototype.setPosition.call(this,e,n)},n._addItem=function(t){var e=new o.Group,n=this.get("markerStyle").radius;if(t.marker){var i=h.mix({},t.marker,{x:t.marker.radius/2,y:0,symbol:t.marker.activeSymbol||t.marker.symbol});e.addShape("marker",{attrs:i}),n=t.marker.radius}var r=this.get("nameStyle");e.addShape("text",{attrs:h.mix({x:n+r.padding,y:0,text:t.name},r)});var a=this.get("valueStyle");return e.addShape("text",{attrs:h.mix({x:e.getBBox().width+a.padding,y:0,text:t.value},a)}),e},n._alignToRight=function(t){var e=this,n=this.get("itemsGroup").get("children");h.each(n,function(n){var i=n.get("children")[2],r=i.getBBox().width,a=t-r-2*e.get("padding").right;i.attr("x",a)})},e}(l);t.exports=d},function(t,e,n){var i=n(66),r=n(23),a=n(0),o=function t(e){t.superclass.constructor.call(this,e)};a.extend(o,i),a.augment(o,{getPointRauis:function(t,e){return r.getPointRadius(t,e)},getCirclePoint:function(t,e,n){var i=this.get("coord"),r=i.getCenter(),a=this._isEmitLabels(),o=this.getPointRauis(i,n);if(0===o)return null;if(i.isTransposed&&o>e&&!a){t+=2*Math.asin(e/(2*o))}else o+=e;return{x:r.x+o*Math.cos(t),y:r.y+o*Math.sin(t),angle:t,r:o}},getArcPoint:function(t,e){var n;return e=e||0,n=a.isArray(t.x)||a.isArray(t.y)?{x:a.isArray(t.x)?t.x[e]:t.x,y:a.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},getPointAngle:function(t){var e=this.get("coord");return r.getPointAngle(e,t)},getMiddlePoint:function(t){var e=this.get("coord"),n=t.length,i={x:0,y:0};return a.each(t,function(t){i.x+=t.x,i.y+=t.y}),i.x/=n,i.y/=n,i=e.convert(i)},_isToMiddle:function(t){return t.x.length>2},getLabelPoint:function(t,e,n){var i,r=t.text[n],a=1;this._isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(a=-1),i=this.getArcPoint(e,n));var o=this.getDefaultOffset(t);o*=a;var s=this.getPointAngle(i),u=this.getCirclePoint(s,o,i);if(u?(u.text=r,u.angle=s,u.color=e.color):u={text:""},t.autoRotate||void 0===t.autoRotate){var c=u.textStyle?u.textStyle.rotate:null;c||(c=u.rotate||this.getLabelRotate(s,o,e)),u.rotate=c}return u.start={x:i.x,y:i.y},u},_isEmitLabels:function(){return this.get("label").labelEmit},getLabelRotate:function(t){var e;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:e<-90&&(e+=180)),e/180*Math.PI},getLabelAlign:function(t){var e,n=this.get("coord");if(this._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=this.getDefaultOffset(t);e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e}}),t.exports=o},function(t,e){t.exports={toFront:function(t){var e=t.get("parent").get("children").indexOf(t);t.set("_originIndex",e),t.toFront()},resetZIndex:function(t){var e=t.get("parent"),n=t.get("_originIndex"),i=e.get("children"),r=i.indexOf(t);n>=0&&n!==r&&(i.splice(r,1),i.splice(n,0,t))}}},function(t,e,n){t.exports={Scale:n(343),Coord:n(344),Axis:n(349),Guide:n(350),Legend:n(353),Tooltip:n(355),Event:n(356)}},function(t,e,n){function i(t,e,n){void 0===n&&(n=1);var i=[t.x,t.y,n];return a.vec3.transformMat3(i,i,e),{x:i[0],y:i[1]}}var r=n(16),a=n(0),o=n(167);t.exports=function(t,e){var n=e;return a.each(t.get("children"),function(t){t instanceof r.Group&&a.each(t.get("children"),function(t){if(t instanceof r.Group&&t.get("children").length||t instanceof r.Path)n=o(n,t.getBBox());else if(t instanceof r.Text){var e=function(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},r={x:e.maxX,y:e.maxY},a=t.attr("matrix");return n=i(n,a),r=i(r,a),{minX:n.x,minY:n.y,maxX:r.x,maxY:r.y}}(t);n=o(n,e)}})}),n}},function(t,e){t.exports=function(t,e){return{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}}},function(t,e){t.exports=function(t){return{minX:t.tl.x,minY:t.tl.y,maxX:t.br.x,maxY:t.br.y}}},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(59);n.d(e,"now",function(){return i.b}),n.d(e,"timer",function(){return i.c}),n.d(e,"timerFlush",function(){return i.d});var r=n(192);n.d(e,"timeout",function(){return r.a});var a=n(193);n.d(e,"interval",function(){return a.a})},,function(t,e,n){var i=n(74),r=n(16),a=n(125),o=n(146),s=n(7),u=n(19),c=n(0),l={version:s.version,Animate:a,Chart:o,Global:s,Scale:i,Shape:u,Util:c,G:r,DomUtil:c.DomUtil,MatrixUtil:c.MatrixUtil,PathUtil:c.PathUtil};l.track=function(){console.warn("G2 tracks nothing ;-)")},"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+l.version+"'s reference is 'window.G2_3'"):window.G2=l),t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(194);n.d(e,"easeLinear",function(){return i.a});var r=n(195);n.d(e,"easeQuad",function(){return r.b}),n.d(e,"easeQuadIn",function(){return r.a}),n.d(e,"easeQuadOut",function(){return r.c}),n.d(e,"easeQuadInOut",function(){return r.b});var a=n(196);n.d(e,"easeCubic",function(){return a.b}),n.d(e,"easeCubicIn",function(){return a.a}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.b});var o=n(197);n.d(e,"easePoly",function(){return o.b}),n.d(e,"easePolyIn",function(){return o.a}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.b});var s=n(198);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var u=n(199);n.d(e,"easeExp",function(){return u.b}),n.d(e,"easeExpIn",function(){return u.a}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.b});var c=n(200);n.d(e,"easeCircle",function(){return c.b}),n.d(e,"easeCircleIn",function(){return c.a}),n.d(e,"easeCircleOut",function(){return c.c}),n.d(e,"easeCircleInOut",function(){return c.b});var l=n(201);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var h=n(202);n.d(e,"easeBack",function(){return h.b}),n.d(e,"easeBackIn",function(){return h.a}),n.d(e,"easeBackOut",function(){return h.c}),n.d(e,"easeBackInOut",function(){return h.b});var f=n(203);n.d(e,"easeElastic",function(){return f.c}),n.d(e,"easeElasticIn",function(){return f.a}),n.d(e,"easeElasticOut",function(){return f.c}),n.d(e,"easeElasticInOut",function(){return f.b})},,function(t,e,n){var i=n(5),r=n(9),a=n(76),o=[1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],s=[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=i(t.minLimit)?-1/0:t.minLimit,d=i(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,y=v,m=t.snapArray?t.snapArray:p?o:s;if(e===g&&n===d&&p&&(u=(n-e)/(y-1)),i(e)&&(e=0),i(n)&&(n=0),Math.abs(n-e)<1e-12&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!u&&n-e>=1&&(u=1)),i(u)){var x=(n-e)/(v-1);u=a.snapFactorTo(x,m,"ceil"),f!==h&&((y=parseInt((n-e)/u,10))>f&&(y=f),y<h&&(y=h),u=a.snapFactorTo((n-e)/(y-1),m))}if(r(c)&&u<c&&(u=c),t.interval||f!==h){n=Math.min(a.snapMultiple(n,u,"ceil"),d),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);for(var b=null;e>g&&g>-1/0&&(null===b||e<b);)b=e,e=a.fixedBase(e-u,u)}else{v=parseInt(v,10);var _,S=(n+e)/2,w=a.snapMultiple(S,u,"ceil"),M=Math.floor((v-2)/2),k=w+M*u;_=v%2==0?w-M*u:w-(M+1)*u;for(var C=null;k<n&&(null===C||k>C);)C=k,k=a.fixedBase(k+u,u);for(var A=null;_>e&&(null===A||_<A);)A=_,_=a.fixedBase(_-u,u);n=k,e=_}n=Math.min(n,d),e=Math.max(e,g),l.push(e);for(var P=1;P<y;P++){var O=a.fixedBase(u*P+e,u);O<n&&l.push(O)}return l[l.length-1]<n&&l.push(n),{min:e,max:n,interval:u,count:y,ticks:l}}},function(t,e,n){var i=n(18),r=n(9),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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&&r(t)?t:this.range[0]},n.invert=function(){return this.value},e}(i);i.Identity=a,t.exports=a},function(t,e,n){var i=n(79),r=n(2),a=n(5),o=n(10),s=n(18),u=n(33),c=n(178),l=n(71),h=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},n.init=function(){var e=this,n=e.values;if(n&&n.length){var i=[],o=1/0,s=o,u=0;r(n,function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);o>n?(s=o,o=n):s>n&&(s=n),u<n&&(u=n),i.push(n)}),n.length>1&&(e.minTickInterval=s-o),(a(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(a(e.max)||e._toTimeStamp(e.max)<u)&&(e.max=u)}t.prototype.init.call(this)},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,i=this.tickInterval;return c({min:t,max:e,minCount:n,maxCount:n,interval:i,minInterval:this.minTickInterval}).ticks},n.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):i.format(t,this.mask)},n.scale=function(e){return o(e)&&(e=this.translate(e)),t.prototype.scale.call(this,e)},n.translate=function(t){return this._toTimeStamp(t)},n._toTimeStamp=function(t){return l.toTimeStamp(t)},e}(u);s.Time=h,t.exports=h},function(t,e,n){function i(t){return new Date(t).getFullYear()}function r(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function o(t,e){return new Date(t,e,1).getTime()}var s=n(76),u=n(5),c=[1,2,4,6,8,12],l=36e5,h=864e5;t.exports=function(t){var e,n=t.minInterval,f=[],p=t.min,g=t.max,d=t.interval;if(g===p&&(g=p+h),u(d)){var v=g-p,y=h,m=365*y;d=parseInt(v/(t.maxCount||6),10),n&&n>d&&(d=n);var x=d/m,b=i(p);if(x>.51){for(var _=Math.ceil(x),S=i(g),w=b;w<=S+_;w+=_)f.push(r(w));d=null}else if(x>.0834){for(var M=Math.ceil(x/.0834),k=a(p),C=function(t,e){var n=i(t),r=i(e),o=a(t);return 12*(r-n)+(a(e)-o)%12}(p,g),A=0;A<=C+M;A+=M)f.push(o(b,A+k));d=null}else if(d>.5*y){var P=new Date(p),O=P.getFullYear(),T=P.getMonth(p),I=P.getDate(),L=Math.ceil(d/y),D=function(t,e){return Math.ceil((e-t)/h)}(p,g);d=L*y;for(var R=0;R<D+L;R+=L)f.push(new Date(O,T,I+R).getTime())}else if(d>l){var E=new Date(p),F=E.getFullYear(),j=E.getMonth(p),B=E.getDate(),N=E.getHours(),Y=s.snapTo(c,Math.ceil(d/l)),z=function(t,e){return Math.ceil((e-t)/l)}(p,g);d=Y*l;for(var H=0;H<=z+Y;H+=Y)f.push(new Date(F,j,B,N+H).getTime())}else if(d>6e4){var V=function(t,e){return Math.ceil((e-t)/6e4)}(p,g),W=Math.ceil(d/6e4);d=6e4*W;for(var G=0;G<=V+W;G+=W)f.push(p+6e4*G)}else{d<1e3&&(d=1e3),p=1e3*Math.floor(p/1e3);var X=Math.ceil((g-p)/1e3),q=Math.ceil(d/1e3);d=1e3*q;for(var U=0;U<X+q;U+=q)f.push(p+1e3*U)}}if(!f.length){p=1e3*Math.floor(p/1e3),e=((g=1e3*Math.ceil(g/1e3))-p)/d;for(var Z=0;Z<=e;Z++)f.push(s.fixedBase(d*Z+p,d))}return{max:g,min:p,interval:d,ticks:f,count:f.length}}},function(t,e,n){var i=n(18),r=n(77),a=n(79),o=n(78),s=n(71),u=n(2),c=n(9),l=n(25),h=n(10),f=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;u(e,function(n,i){e[i]=t._toTimeStamp(n)}),this.sortable&&e.sort(function(t,e){return t-e}),t.ticks||(t.ticks=this.calculateTicks())},n.calculateTicks=function(){var t,e=this.tickCount;if(e){t=o({maxCount:e,data:this.values,isRounding:this.isRounding}).ticks}else t=this.values;return t},n.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=c(t)&&t<this.values.length?t:NaN),e},n.scale=function(t){var e,n=this.rangeMin(),i=this.rangeMax(),r=this.translate(t);return e=1===this.values.length||isNaN(r)?r:r>-1?r/(this.values.length-1):0,n+e*(i-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var i=this.formatter;return e=parseInt(e,10),e=i?i(e):a.format(e,this.mask)},n.getTicks=function(){var t=this,e=this.ticks,n=[];return u(e,function(e){var i;i=l(e)?e:{text:h(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(i)}),n},n._toTimeStamp=function(t){return s.toTimeStamp(t)},e}(r);i.TimeCat=f,t.exports=f},function(t,e,n){function i(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var r=n(2),a=n(18),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this.base;if(this.min<0)throw new Error("The minimum value must be greater than zero!");var n=i(e,this.max);if(this.min>0)t=Math.floor(i(e,this.min));else{var a=this.values,o=this.max;r(a,function(t){t>0&&t<o&&(o=t)}),o===this.max&&(o=this.max/e),o>1&&(o=1),t=Math.floor(i(e,o)),this._minTick=t,this.positiveMin=o}for(var s=n-t,u=this.tickCount,c=Math.ceil(s/u),l=[],h=t;h<n+c;h+=c)l.push(Math.pow(e,h));return 0===this.min&&l.unshift(0),l},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,a=this.positiveMin;a&&(n=1*a/r);return t<a?t/a/(i(r,e)-i(r,n)):(i(r,t)-i(r,n))/(i(r,e)-i(r,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e,n=this.base,r=i(n,this.max),a=this.rangeMin(),o=this.rangeMax()-a,s=this.positiveMin;if(s){if(0===t)return 0;var u=1/(r-(e=i(n,s/n)))*o;if(t<u)return t/u*s}else e=i(n,this.min);var c=(t-a)/o*(r-e)+e;return Math.pow(n,c)},e}(n(33));a.Log=o,t.exports=o},function(t,e,n){function i(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var r=n(18),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},n.calculateTicks=function(){var t,e=this.exponent,n=Math.ceil(i(e,this.max));if((t=this.min>=0?Math.floor(i(e,this.min)):0)>n){var r=n;n=t,t=r}for(var a=n-t,o=this.tickCount,s=Math.ceil(a/o),u=[],c=t;c<n+s;c+=s)u.push(Math.pow(c,e));return u},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(i(r,t)-i(r,n))/(i(r,e)-i(r,n))},n.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},n.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=i(n,this.max),a=i(n,this.min),o=e*(r-a)+a;return Math.pow(o,n)},e}(n(33));r.Pow=a,t.exports=a},function(t,e,n){var i=n(1),r=n(100),a=n(101),o=n(191),s=n(217),u=function t(e){t.superclass.constructor.call(this,e)};u.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas"},i.extend(u,a),i.augment(u,{init:function(){u.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!i.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,i){var a=new r(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=i,a.target=i,a},_triggerEvent:function(t,e){var n,i=this.getPointByClient(e.clientX,e.clientY),r=this.getShape(i.x,i.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==r){var s=this._getEventObj("mouseleave",e,i,o);(n=this.getEmitter(o,e))&&n.emit("mouseleave",s),a.style.cursor="default"}if(r){var u=this._getEventObj("mousemove",e,i,r);if((n=this.getEmitter(r,e))&&n.emit("mousemove",u),o!==r){var c=this._getEventObj("mouseenter",e,i,r);n&&n.emit("mouseenter",c,e)}}else{var l=this._getEventObj("mousemove",e,i,this);this.emit("mousemove",l)}this.set("preShape",r)}else{var h=this._getEventObj(t,e,i,r||this);(n=this.getEmitter(r,e))&&n!==this&&n.emit(t,h),this.emit(t,h)}r&&!r.get("destroyed")&&(a.style.cursor=r.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");i.each(["mouseout","mouseover","mousemove","mousedown","mouseleave","mouseup","click","dblclick"],function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){i.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){i.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){i.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",i.getRatio());var t=s[this.get("renderer")||"canvas"];this._cfg.renderer=t,this._cfg.canvas=this;var e=new o(this);this._cfg.timeline=e},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),i.modifyCSS(e,{position:"relative"})},_initPainter:function(){var t=this.get("containerDOM"),e=new this._cfg.renderer.painter(t);this._cfg.painter=e,this._cfg.canvasDOM=this._cfg.el=e.canvas,this.changeSize(this.get("width"),this.get("height"))},_resize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),i=this.get("widthStyle"),r=this.get("heightStyle");t.style.width=i,t.style.height=r,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),i=t*n,r=e*n;this.set("widthCanvas",i),this.set("heightCanvas",r),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByClient:function(t,e){var n=this.get("el"),i=this.get("pixelRatio")||1,r=n.getBoundingClientRect();return{x:(t-r.left)*i,y:(e-r.top)*i}},getClientByPoint:function(t,e){var n=this.get("el").getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+n.left,clientY:e/i+n.top}},draw:function(){this._cfg.painter.draw(this)},getShape:function(t,e,n){return 3===arguments.length&&this._cfg.renderer.getShape?this._cfg.renderer.getShape.call(this,t,e,n):u.superclass.getShape.call(this,t,e)},_drawSync:function(){this._cfg.painter.drawSync(this)},destroy:function(){var t=this._cfg,e=t.containerDOM,n=t.canvasDOM;n&&e&&e.removeChild(n),t.timeline.stop(),u.superclass.destroy.call(this)}}),t.exports=u},function(t,e,n){"use strict";function i(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1],g=n[2],d=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*i+p*o+g*c,t[1]=f*r+p*s+g*l,t[2]=f*a+p*u+g*h,t[3]=d*i+v*o+y*c,t[4]=d*r+v*s+y*l,t[5]=d*a+v*u+y*h,t[6]=m*i+x*o+b*c,t[7]=m*r+x*s+b*l,t[8]=m*a+x*u+b*h,t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=function(){var t=new a.ARRAY_TYPE(9);return a.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new a.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.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[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,r,o,s,u,c){var l=new a.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=r,l[5]=o,l[6]=s,l[7]=u,l[8]=c,l},e.set=function(t,e,n,i,r,a,o,s,u,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=c,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=l*o-s*c,f=-l*a+s*u,p=c*a-o*u,g=n*h+i*f+r*p;return g?(g=1/g,t[0]=h*g,t[1]=(-l*i+r*c)*g,t[2]=(s*i-r*o)*g,t[3]=f*g,t[4]=(l*n-r*u)*g,t[5]=(-s*n+r*a)*g,t[6]=p*g,t[7]=(-c*n+i*u)*g,t[8]=(o*n-i*a)*g,t):null},e.adjoint=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=o*l-s*c,t[1]=r*c-i*l,t[2]=i*s-r*o,t[3]=s*u-a*l,t[4]=n*l-r*u,t[5]=r*a-n*s,t[6]=a*c-o*u,t[7]=i*u-n*c,t[8]=n*o-i*a,t},e.determinant=function(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],u=t[7],c=t[8];return e*(c*a-o*u)+n*(-c*r+o*s)+i*(u*r-a*s)},e.multiply=i,e.translate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*i+p*o+c,t[7]=f*r+p*s+l,t[8]=f*a+p*u+h,t},e.rotate=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],u=e[5],c=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*i+f*o,t[1]=p*r+f*s,t[2]=p*a+f*u,t[3]=p*o-f*i,t[4]=p*s-f*r,t[5]=p*u-f*a,t[6]=c,t[7]=l,t[8]=h,t},e.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,u=r+r,c=n*o,l=i*o,h=i*s,f=r*o,p=r*s,g=r*u,d=a*o,v=a*s,y=a*u;return t[0]=1-h-g,t[3]=l-y,t[6]=f+v,t[1]=l+y,t[4]=1-c-g,t[7]=p-d,t[2]=f-v,t[5]=p+d,t[8]=1-c-h,t},e.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],u=e[6],c=e[7],l=e[8],h=e[9],f=e[10],p=e[11],g=e[12],d=e[13],v=e[14],y=e[15],m=n*s-i*o,x=n*u-r*o,b=n*c-a*o,_=i*u-r*s,S=i*c-a*s,w=r*c-a*u,M=l*d-h*g,k=l*v-f*g,C=l*y-p*g,A=h*v-f*d,P=h*y-p*d,O=f*y-p*v,T=m*O-x*P+b*A+_*C-S*k+w*M;return T?(T=1/T,t[0]=(s*O-u*P+c*A)*T,t[1]=(u*C-o*O-c*k)*T,t[2]=(o*P-s*C+c*M)*T,t[3]=(r*P-i*O-a*A)*T,t[4]=(n*O-r*C+a*k)*T,t[5]=(i*C-n*P-a*M)*T,t[6]=(d*w-v*S+y*_)*T,t[7]=(v*b-g*w-y*x)*T,t[8]=(g*S-d*b+y*m)*T,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=r,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t},e.exactEquals=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[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],u=t[5],c=t[6],l=t[7],h=t[8],f=e[0],p=e[1],g=e[2],d=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-f)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=a.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(r-g)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(g))&&Math.abs(o-d)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-v)<=a.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(u-y)<=a.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(c-m)<=a.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(l-x)<=a.EPSILON*Math.max(1,Math.abs(l),Math.abs(x))&&Math.abs(h-b)<=a.EPSILON*Math.max(1,Math.abs(h),Math.abs(b))};var a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.mul=i,e.sub=r},function(t,e,n){"use strict";function i(){var t=new h.ARRAY_TYPE(2);return h.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function a(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function o(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function s(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)}function u(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function c(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function l(t){var e=t[0],n=t[1];return e*e+n*n}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=void 0,e.create=i,e.clone=function(t){var e=new h.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new h.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=r,e.multiply=a,e.divide=o,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},e.distance=s,e.squaredDistance=u,e.length=c,e.squaredLength=l,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*h.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},e.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},e.rotate=function(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=n*n+i*i;o>0&&(o=1/Math.sqrt(o));var s=r*r+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*r+i*a)*o*s;return u>1?0:u<-1?Math.PI:Math.acos(u)},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],i=t[1],r=e[0],a=e[1];return Math.abs(n-r)<=h.EPSILON*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-a)<=h.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))};var h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.len=c,e.sub=r,e.mul=a,e.div=o,e.dist=s,e.sqrDist=u,e.sqrLen=l,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,u=void 0;for(n||(n=2),i||(i=0),u=r?Math.min(r*n+i,e.length):e.length,s=i;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},function(t,e,n){"use strict";function i(){var t=new g.ARRAY_TYPE(3);return g.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function r(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)}function a(t,e,n){var i=new g.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)}function l(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function h(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function f(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=void 0,e.create=i,e.clone=function(t){var e=new g.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=r,e.fromValues=a,e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=o,e.multiply=s,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},e.distance=c,e.squaredDistance=l,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=f,e.dot=p,e.cross=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=r*u-a*s,t[1]=a*o-i*u,t[2]=i*s-r*o,t},e.lerp=function(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t},e.hermite=function(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,c=o*(a-1),l=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+i[0]*c+r[0]*l,t[1]=e[1]*s+n[1]*u+i[1]*c+r[1]*l,t[2]=e[2]*s+n[2]*u+i[2]*c+r[2]*l,t},e.bezier=function(t,e,n,i,r,a){var o=1-a,s=o*o,u=a*a,c=s*o,l=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*c+n[0]*l+i[0]*h+r[0]*f,t[1]=e[1]*c+n[1]*l+i[1]*h+r[1]*f,t[2]=e[2]*c+n[2]*l+i[2]*h+r[2]*f,t},e.random=function(t,e){e=e||1;var n=2*g.RANDOM()*Math.PI,i=2*g.RANDOM()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},e.transformMat4=function(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],u=e[1],c=e[2],l=r*c-a*u,h=a*s-i*c,f=i*u-r*s,p=r*f-a*h,g=a*l-i*f,d=i*h-r*l,v=2*o;return l*=v,h*=v,f*=v,p*=2,g*=2,d*=2,t[0]=s+l+p,t[1]=u+h+g,t[2]=c+f+d,t},e.rotateX=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=a(t[0],t[1],t[2]),i=a(e[0],e[1],e[2]);f(n,n),f(i,i);var r=p(n,i);return r>1?0:r<-1?Math.PI:Math.acos(r)},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=g.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=g.EPSILON*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=g.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))};var g=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(53));e.sub=o,e.mul=s,e.div=u,e.dist=c,e.sqrDist=l,e.len=r,e.sqrLen=h,e.forEach=function(){var t=i();return function(e,n,i,r,a,o){var s=void 0,u=void 0;for(n||(n=3),i||(i=0),u=r?Math.min(r*n+i,e.length):e.length,s=i;s<u;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},function(t,e,n){var i=n(1);t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this._attrs={opacity:1,fillOpacity:1,strokeOpacity:1,matrix:[1,0,0,0,1,0,0,0,1]},this.attr(i.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){if(0===arguments.length)return this._attrs;if(i.isObject(t)){for(var n in t)this._setAttr(n,t[n]);return this.clearBBox(),this._cfg.hasUpdate=!0,this}return 2===arguments.length?(this._setAttr(t,e),this.clearBBox(),this._cfg.hasUpdate=!0,this):this._attrs[t]},_setAttr:function(t,e){var n=this._attrs;n[t]=e,"fill"!==t&&"stroke"!==t?"opacity"!==t?"clip"===t&&e?this._setClip(e):"path"===t&&this._afterSetAttrPath?this._afterSetAttrPath(e):"transform"!==t?"rotate"===t&&this.rotateAtStart(e):this.transform(e):n.globalAlpha=e:n[t+"Style"]=e},clearBBox:function(){this.setSilent("box",null)},hasFill:function(){return this.canFill&&this._attrs.fillStyle},hasStroke:function(){return this.canStroke&&this._attrs.strokeStyle},_setClip:function(t){t._cfg.renderer=this._cfg.renderer,t._cfg.canvas=this._cfg.canvas,t._cfg.parent=this._cfg.parent,t.hasFill=function(){return!0}}}},function(t,e,n){function i(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function r(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){i(e)||(r(e)?(t[0]*=e[0],t[4]*=e[4]):o.mat3.multiply(t,t,e))}var o=n(1);t.exports={initTransform:function(){},resetMatrix:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this._attrs.matrix;return o.mat3.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this._attrs.matrix;return o.mat3.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this._attrs.matrix;return o.mat3.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this._attrs.x||this._cfg.attrs.x,n=this._attrs.y||this._cfg.attrs.y;return Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,i=this.get("y")||0;return this.translate(t-n,e-i),this.set("x",t),this.set("y",e),this},transform:function(t){var e=this,n=this._attrs.matrix;return o.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",o.mat3.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),o.vec3.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var i=[1,0,0,0,1,0,0,0,1];return o.each(n,function(t){o.mat3.multiply(i,t.attr("matrix"),i)}),i},getTotalMatrix:function(){var t=this._cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this._cfg.parent;if(e){a(t,e.getTotalMatrix())}a(t,this.attr("matrix")),this._cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(r(e))t[0]/=e[0],t[1]/=e[4];else{var n=o.mat3.invert([],e);n&&o.vec3.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");i(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var i=n(1),r={delay:"delay",rotate:"rotate"},a={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,o,s){void 0===s&&(s=0);this.set("animating",!0);var u=this.get("timeline");u||(u=this.get("canvas").get("timeline"),this.setSilent("timeline",u));var c=this.get("animators")||[];u._timer||u.initTimer(),i.isNumber(o)&&(s=o,o=null),i.isFunction(n)?(o=n,n="easeLinear"):n=n||"easeLinear";var l=function(t,e){var n={matrix:null,attrs:{}},o=e._attrs;for(var s in t)if("transform"===s)n.matrix=i.transform(e.getMatrix(),t[s]);else if("rotate"===s)n.matrix=i.transform(e.getMatrix(),[["r",t[s]]]);else if("matrix"===s)n.matrix=t[s];else{if(a[s]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[s]))continue;r[s]||o[s]===t[s]||(n.attrs[s]=t[s])}return n}(t,this),h={fromAttrs:function(t,e){var n={},i=e._attrs;for(var r in t.attrs)n[r]=i[r];return n}(l,this),toAttrs:l.attrs,fromMatrix:i.clone(this.getMatrix()),toMatrix:l.matrix,duration:e,easing:n,callback:o,delay:s,startTime:u.getTime(),id:i.uniqueId()};c.length>0?c=function(t,e){var n=e.delay,r=Object.prototype.hasOwnProperty;return i.each(e.toAttrs,function(e,a){i.each(t,function(t){n<t.startTime+t.duration&&r.call(t.toAttrs,a)&&(delete t.toAttrs[a],delete t.fromAttrs[a])})}),e.toMatrix&&i.each(t,function(t){n<t.startTime+t.duration&&t.toMatrix&&delete t.toMatrix}),t}(c,h):u.addAnimator(this),c.push(h),this.setSilent("animators",c),this.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");i.each(e,function(e){t.attr(e.toAttrs),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this.get("timeline");return this.setSilent("pause",{isPaused:!0,pauseTime:t.getTime()}),this},resumeAnimate:function(){var t=this.get("timeline").getTime(),e=this.get("animators"),n=this.get("pause").pauseTime;return i.each(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null}),this.setSilent("pause",{isPaused:!1}),this.setSilent("animators",e),this}}},function(t,e,n){var i=n(6);i.Arc=n(105),i.Circle=n(106),i.Dom=n(107),i.Ellipse=n(108),i.Fan=n(109),i.Image=n(110),i.Line=n(111),i.Marker=n(57),i.Path=n(112),i.Polygon=n(113),i.Polyline=n(114),i.Rect=n(115),i.Text=n(116),t.exports=i},function(t,e,n){function i(t,e,n){return n.createPath(s),s.isPointInPath(t,e)}var r=n(1),a=n(55),o={arc:n(37),ellipse:n(104),line:n(36)},s=r.createDom('<canvas width="500" height="500"></canvas>').getContext("2d"),u={arc:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(i,r,o,s,u,c,l,t,e)},circle:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),c=this.hasStroke();return u&&c?a.circle(i,r,o,t,e)||a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e):u?a.circle(i,r,o,t,e):!!c&&a.arcline(i,r,o,0,2*Math.PI,!1,s,t,e)},dom:function(t,e){if(!this._cfg.el)return!1;var n=this._cfg.el.getBBox();return a.box(n.x,n.x+n.width,n.y,n.y+n.height,t,e)},ellipse:function(t,e){var n=this._attrs,i=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,c=n.rx,l=n.ry,h=this.getHitLineWidth(),f=c>l?c:l,p=c>l?1:c/l,g=c>l?l/c:1,d=[t,e,1],v=[1,0,0,0,1,0,0,0,1];r.mat3.scale(v,v,[p,g]),r.mat3.translate(v,v,[s,u]);var y=r.mat3.invert([],v);return r.vec3.transformMat3(d,d,y),i&&o?a.circle(0,0,f,d[0],d[1])||a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1]):i?a.circle(0,0,f,d[0],d[1]):!!o&&a.arcline(0,0,f,0,2*Math.PI,!1,h,d[0],d[1])},fan:function(t,e){function n(){var t=o.arc.nearAngle(x,d,v,y);if(r.isNumberEqual(x,t)){var e=r.vec2.squaredLength(m);if(p*p<=e&&e<=g*g)return!0}return!1}function i(){var n=s.getHitLineWidth(),i={x:Math.cos(d)*p+h,y:Math.sin(d)*p+f},r={x:Math.cos(d)*g+h,y:Math.sin(d)*g+f},o={x:Math.cos(v)*p+h,y:Math.sin(v)*p+f},u={x:Math.cos(v)*g+h,y:Math.sin(v)*g+f};return!!(a.line(i.x,i.y,r.x,r.y,n,t,e)||a.line(o.x,o.y,u.x,u.y,n,t,e)||a.arcline(h,f,p,d,v,y,n,t,e)||a.arcline(h,f,g,d,v,y,n,t,e))}var s=this,u=s.hasFill(),c=s.hasStroke(),l=s._attrs,h=l.x,f=l.y,p=l.rs,g=l.re,d=l.startAngle,v=l.endAngle,y=l.clockwise,m=[t-h,e-f],x=r.vec2.angleTo([1,0],m);return u&&c?n()||i():u?n():!!c&&i()},image:function(t,e){var n=this._attrs;if(this.get("toDraw")||!n.img)return!1;this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg();var i=n.x,r=n.y,o=n.width,s=n.height;return a.rect(i,r,o,s,t,e)},line:function(t,e){var n=this._attrs,i=n.x1,r=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(i,r,o,s,u,t,e)},path:function(t,e){function n(){if(!r.isEmpty(o)){for(var n=a.getHitLineWidth(),i=0,s=o.length;i<s;i++)if(o[i].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?i(t,e,a)||n():s?i(t,e,a):!!u&&n()},marker:function(t,e){var n=this._attrs,i=n.x,r=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(i,r,o+s/2,t,e)},polygon:function(t,e){function n(){var n=r._attrs.points;if(n.length<2)return!1;var i=r.getHitLineWidth(),o=n.slice(0);return n.length>=3&&o.push(n[0]),a.polyline(o,i,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},polyline:function(t,e){var n=this._attrs;if(this.hasStroke()){var i=n.points;if(i.length<2)return!1;var r=n.lineWidth;return a.polyline(i,r,t,e)}return!1},rect:function(t,e){function n(){var n=r._attrs,i=n.x,o=n.y,s=n.width,u=n.height,c=n.radius,l=r.getHitLineWidth();if(0===c){var h=l/2;return a.line(i-h,o,i+s+h,o,l,t,e)||a.line(i+s,o-h,i+s,o+u+h,l,t,e)||a.line(i+s+h,o+u,i-h,o+u,l,t,e)||a.line(i,o+u+h,i,o-h,l,t,e)}return a.line(i+c,o,i+s-c,o,l,t,e)||a.line(i+s,o+c,i+s,o+u-c,l,t,e)||a.line(i+s-c,o+u,i+c,o+u,l,t,e)||a.line(i,o+u-c,i,o+c,l,t,e)||a.arcline(i+s-c,o+c,c,1.5*Math.PI,2*Math.PI,!1,l,t,e)||a.arcline(i+s-c,o+u-c,c,0,.5*Math.PI,!1,l,t,e)||a.arcline(i+c,o+u-c,c,.5*Math.PI,Math.PI,!1,l,t,e)||a.arcline(i+c,o+c,c,Math.PI,1.5*Math.PI,!1,l,t,e)}var r=this,o=r.hasFill(),s=r.hasStroke();return o&&s?i(t,e,r)||n():o?i(t,e,r):!!s&&n()},text:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return a.box(n.minX,n.maxX,n.minY,n.maxY,t,e)}};t.exports={isPointInPath:function(t,e){var n=u[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function i(t,e,n){var i=e.startTime;if(n<i+e.delay||e.isPaused)return!1;var o,u=e.duration,h=e.easing;if(n=n-i-e.delay,e.toAttrs.repeat)o=n%u/u,o=s[h](o);else{if(!((o=n/u)<1))return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;o=s[h](o)}return function(t,e,n){var i={},o=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var h;for(var f in o)if(!r.isEqual(s[f],o[f]))if("path"===f){var p=o[f],g=s[f];p.length>g.length?(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.fillPathByDiff(g,p),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p):e.pathFormatted||(p=a.parsePathString(o[f]),g=a.parsePathString(s[f]),g=a.formatPath(g,p),e.fromAttrs.path=g,e.toAttrs.path=p,e.pathFormatted=!0),i[f]=[];for(var d=0;d<p.length;d++){for(var v=p[d],y=g[d],m=[],x=0;x<v.length;x++)r.isNumber(v[x])&&y&&r.isNumber(y[x])?(h=c(y[x],v[x]),m.push(h(n))):m.push(v[x]);i[f].push(m)}}else h=c(s[f],o[f]),i[f]=h(n);if(u){var b=l(e.fromMatrix,u)(n);t.setMatrix(b)}t.attr(i)}}(t,e,o),!1}var r=n(1),a=n(58),o=n(170),s=n(173),u=n(204),c=u.interpolate,l=u.interpolateArray,h=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};r.augment(h,{initTimer:function(){var t,e,n,r=this,a=this,s=!1;a._timer=o.timer(function(o){if(a._current=o,r._animators.length>0){for(var u=r._animators.length-1;u>=0;u--)if((t=r._animators[u]).get("destroyed"))a.removeAnimator(u);else{if(!t.get("pause").isPaused)for(var c=(e=t.get("animators")).length-1;c>=0;c--)n=e[c],(s=i(t,n,o))&&(e.splice(c,1),s=!1,n.callback&&n.callback());0===e.length&&a.removeAnimator(u)}r.canvas.draw()}})},addAnimator:function(t){this._animators.push(t)},removeAnimator:function(t){this._animators.splice(t,1)},isAnimating:function(){return!!this._animators.length},stop:function(){this._timer&&this._timer.stop()},stopAllAnimations:function(){this._animators.forEach(function(t){t.stopAnimate()}),this._animators=[],this.canvas.draw()},getTime:function(){return this._current}}),t.exports=h},function(t,e,n){"use strict";var i=n(59);e.a=function(t,e,n){var r=new i.a;return e=null==e?0:+e,r.restart(function(n){r.stop(),t(n+e)},e,n),r}},function(t,e,n){"use strict";var i=n(59);e.a=function(t,e,n){var r=new i.a,a=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?Object(i.b)():+n,r.restart(function i(o){o+=a,r.restart(i,a+=e,n),t(o)},e,n),r)}},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return a});var i=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),r=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),a=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*r)},e.c=function(t){return Math.sin(t*r)},e.b=function(t){return(1-Math.cos(i*t))/2};var i=Math.PI,r=i/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";function i(t){return(t=+t)<r?p*t*t:t<o?p*(t-=a)*t+s:t<c?p*(t-=u)*t+l:p*(t-=h)*t+f}e.a=function(t){return 1-i(1-t)},e.c=i,e.b=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2};var r=4/11,a=6/11,o=8/11,s=.75,u=9/11,c=10/11,l=.9375,h=21/22,f=63/64,p=1/r/r},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"b",function(){return a});var i=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),r=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),a=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"b",function(){return o});var i=2*Math.PI,r=function t(e,n){function r(t){return e*Math.pow(2,10*--t)*Math.sin((a-t)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3),a=function t(e,n){function r(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+a)/n)}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3),o=function t(e,n){function r(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((a-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((a+t)/n))/2}var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);return r.amplitude=function(e){return t(e,n*i)},r.period=function(n){return t(e,n)},r}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(60);n.d(e,"interpolate",function(){return i.a});var r=n(121);n.d(e,"interpolateArray",function(){return r.a});var a=n(63);n.d(e,"interpolateBasis",function(){return a.b});var o=n(119);n.d(e,"interpolateBasisClosed",function(){return o.a});var s=n(122);n.d(e,"interpolateDate",function(){return s.a});var u=n(40);n.d(e,"interpolateNumber",function(){return u.a});var c=n(123);n.d(e,"interpolateObject",function(){return c.a});var l=n(207);n.d(e,"interpolateRound",function(){return l.a});var h=n(124);n.d(e,"interpolateString",function(){return h.a});var f=n(208);n.d(e,"interpolateTransformCss",function(){return f.a}),n.d(e,"interpolateTransformSvg",function(){return f.b});var p=n(211);n.d(e,"interpolateZoom",function(){return p.a});var g=n(118);n.d(e,"interpolateRgb",function(){return g.a}),n.d(e,"interpolateRgbBasis",function(){return g.b}),n.d(e,"interpolateRgbBasisClosed",function(){return g.c});var d=n(212);n.d(e,"interpolateHsl",function(){return d.a}),n.d(e,"interpolateHslLong",function(){return d.b});var v=n(213);n.d(e,"interpolateLab",function(){return v.a});var y=n(214);n.d(e,"interpolateHcl",function(){return y.a}),n.d(e,"interpolateHclLong",function(){return y.b});var m=n(215);n.d(e,"interpolateCubehelix",function(){return m.b}),n.d(e,"interpolateCubehelixLong",function(){return m.a});var x=n(216);n.d(e,"quantize",function(){return x.a})},function(t,e,n){"use strict";function i(t){if(t instanceof a)return new a(t.l,t.a,t.b,t.opacity);if(t instanceof f)return p(t);t instanceof d.b||(t=Object(d.h)(t));var e,n,i=c(t.r),r=c(t.g),s=c(t.b),u=o((.2225045*i+.7168786*r+.0606169*s)/m);return i===r&&r===s?e=n=u:(e=o((.4360747*i+.3850649*r+.1430804*s)/y),n=o((.0139322*i+.0971045*r+.7141733*s)/x)),new a(116*u-16,500*(e-u),200*(u-n),t.opacity)}function r(t,e,n,r){return 1===arguments.length?i(t):new a(t,e,n,null==r?1:r)}function a(t,e,n,i){this.l=+t,this.a=+e,this.b=+n,this.opacity=+i}function o(t){return t>w?Math.pow(t,1/3):t/S+b}function s(t){return t>_?t*t*t:S*(t-b)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof f)return new f(t.h,t.c,t.l,t.opacity);if(t instanceof a||(t=i(t)),0===t.a&&0===t.b)return new f(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*v.b;return new f(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function h(t,e,n,i){return 1===arguments.length?l(t):new f(t,e,n,null==i?1:i)}function f(t,e,n,i){this.h=+t,this.c=+e,this.l=+n,this.opacity=+i}function p(t){if(isNaN(t.h))return new a(t.l,0,0,t.opacity);var e=t.h*v.a;return new a(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.a=r,e.b=h;var g=n(62),d=n(61),v=n(117),y=.96422,m=1,x=.82521,b=4/29,_=6/29,S=3*_*_,w=_*_*_;Object(g.a)(a,r,Object(g.b)(d.a,{brighter:function(t){return new a(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new a(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=y*s(e),t=m*s(t),n=x*s(n),new d.b(u(3.1338561*e-1.6168667*t-.4906146*n),u(-.9787684*e+1.9161415*t+.033454*n),u(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(g.a)(f,h,Object(g.b)(d.a,{brighter:function(t){return new f(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new f(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}))},function(t,e,n){"use strict";function i(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof r)return new r(t.h,t.s,t.l,t.opacity);t instanceof o.b||(t=Object(o.h)(t));var e=t.r/255,n=t.g/255,i=t.b/255,a=(d*i+p*e-g*n)/(d+p-g),u=i-a,c=(f*(n-a)-l*u)/h,v=Math.sqrt(c*c+u*u)/(f*a*(1-a)),y=v?Math.atan2(c,u)*s.b-120:NaN;return new r(y<0?y+360:y,v,a,t.opacity)}(t):new r(t,e,n,null==i?1:i)}function r(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}e.a=i;var a=n(62),o=n(61),s=n(117),u=-.14861,c=1.78277,l=-.29227,h=-.90649,f=1.97294,p=f*h,g=f*c,d=c*l-h*u;Object(a.a)(r,i,Object(a.b)(o.a,{brighter:function(t){return t=null==t?o.c:Math.pow(o.c,t),new r(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o.d:Math.pow(o.d,t),new r(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*s.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),i=Math.cos(t),r=Math.sin(t);return new o.b(255*(e+n*(u*i+c*r)),255*(e+n*(l*i+h*r)),255*(e+n*(f*i)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function i(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var u=[],c=[];return o=t(o),s=t(s),function(t,i,a,o,s,u){if(t!==a||i!==o){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(r.a)(t,a)},{i:c-2,x:Object(r.a)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,u,c),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:Object(r.a)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,u,c),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:Object(r.a)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,u,c),function(t,e,n,i,o,s){if(t!==n||e!==i){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r.a)(t,n)},{i:u-2,x:Object(r.a)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,u,c),o=s=null,function(t){for(var e,n=-1,i=c.length;++n<i;)u[(e=c[n]).i]=e.x(t);return u.join("")}}}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return s});var r=n(40),a=n(209),o=i(a.a,"px, ","px)","deg)"),s=i(a.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){return"none"===t?s.b:(i||(i=document.createElement("DIV"),r=document.documentElement,a=document.defaultView),i.style.transform=t,t=a.getComputedStyle(r.appendChild(i),null).getPropertyValue("transform"),r.removeChild(i),t=t.slice(7,-1).split(","),Object(s.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.b=function(t){return null==t?s.b:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,Object(s.a)(t.a,t.b,t.c,t.d,t.e,t.f)):s.b)};var i,r,a,o,s=n(210)},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var i=180/Math.PI,r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,r,a,o){var s,u,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*i,skewX:Math.atan(c)*i,scaleX:s,scaleY:u}}},function(t,e,n){"use strict";function i(t){return((t=Math.exp(t))+1/t)/2}var r=Math.SQRT2;e.a=function(t,e){var n,a,o=t[0],s=t[1],u=t[2],c=e[0],l=e[1],h=e[2],f=c-o,p=l-s,g=f*f+p*p;if(g<1e-12)a=Math.log(h/u)/r,n=function(t){return[o+t*f,s+t*p,u*Math.exp(r*t*a)]};else{var d=Math.sqrt(g),v=(h*h-u*u+4*g)/(2*u*2*d),y=(h*h-u*u-4*g)/(2*h*2*d),m=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(y*y+1)-y);a=(x-m)/r,n=function(t){var e=t*a,n=i(m),c=u/(2*d)*(n*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(r*e+m)-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*f,s+c*p,u*n/i(r*e+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";function i(t){return function(e,n){var i=t((e=Object(r.d)(e)).h,(n=Object(r.d)(n)).h),o=Object(a.a)(e.s,n.s),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var r=n(17),a=n(28);e.a=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";e.a=function(t,e){var n=Object(r.a)((t=Object(i.e)(t)).l,(e=Object(i.e)(e)).l),a=Object(r.a)(t.a,e.a),o=Object(r.a)(t.b,e.b),s=Object(r.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=a(e),t.b=o(e),t.opacity=s(e),t+""}};var i=n(17),r=n(28)},function(t,e,n){"use strict";function i(t){return function(e,n){var i=t((e=Object(r.c)(e)).h,(n=Object(r.c)(n)).h),o=Object(a.a)(e.c,n.c),s=Object(a.a)(e.l,n.l),u=Object(a.a)(e.opacity,n.opacity);return function(t){return e.h=i(t),e.c=o(t),e.l=s(t),e.opacity=u(t),e+""}}}n.d(e,"b",function(){return o});var r=n(17),a=n(28);e.a=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";function i(t){return function e(n){function i(e,i){var o=t((e=Object(r.b)(e)).h,(i=Object(r.b)(i)).h),s=Object(a.a)(e.s,i.s),u=Object(a.a)(e.l,i.l),c=Object(a.a)(e.opacity,i.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,i.gamma=e,i}(1)}n.d(e,"a",function(){return o});var r=n(17),a=n(28);e.b=i(a.c);var o=i(a.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t(i/(e-1));return n}},function(t,e,n){t.exports={canvas:n(218),svg:n(221)}},function(t,e,n){t.exports={painter:n(219)}},function(t,e,n){var i=n(1),r=n(220),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"],o=function(){function t(t){if(!t)return null;var e=i.uniqueId("canvas_"),n=i.createDom('<canvas id="'+e+'"></canvas>');return t.appendChild(n),this.type="canvas",this.canvas=n,this.context=n.getContext("2d"),this.toDraw=!1,this}var e=t.prototype;return e.beforeDraw=function(){var t=this.canvas;this.context&&this.context.clearRect(0,0,t.width,t.height)},e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()}),n.beforeDraw();try{n._drawGroup(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this.beforeDraw(),this._drawGroup(t)},e._drawGroup=function(t){if(!t._cfg.removed&&!t._cfg.destroyed&&t._cfg.visible){var e=t._cfg.children,n=null;this.setContext(t);for(var i=0;i<e.length;i++)n=e[i],e[i].isGroup?this._drawGroup(n):this._drawShape(n);this.restoreContext(t)}},e._drawShape=function(t){t._cfg.removed||t._cfg.destroyed||!t._cfg.visible||(this.setContext(t),t.drawInner(this.context),this.restoreContext(t),t._cfg.attrs=t._attrs,t._cfg.hasUpdate=!1)},e.setContext=function(t){var e=this.context,n=t._attrs.clip;e.save(),n&&(n.resetTransform(e),n.createPath(e),e.clip()),this.resetContext(t),t.resetTransform(e)},e.restoreContext=function(){this.context.restore()},e.resetContext=function(t){var e=this.context,n=t._attrs;if(!t.isGroup)for(var o in n)if(a.indexOf(o)>-1){var s=n[o];"fillStyle"===o&&(s=r.parseStyle(s,t,e)),"strokeStyle"===o&&(s=r.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?i.isArray(s)?e.setLineDash(s):i.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}();t.exports=o},function(t,e,n){function i(t,e){var n=t.match(l);r.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}var r=n(1),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,s=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,u=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,h={};t.exports={parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(a),r.each(t,function(e,n){if((e=e.match(o))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(r.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e,n){var a,o,u=s.exec(t),c=r.mod(r.toRadian(parseFloat(u[1])),2*Math.PI),l=u[2],h=e.getBBox();c>=0&&c<.5*Math.PI?(a={x:h.minX,y:h.minY},o={x:h.maxX,y:h.maxY}):.5*Math.PI<=c&&c<Math.PI?(a={x:h.maxX,y:h.minY},o={x:h.minX,y:h.maxY}):Math.PI<=c&&c<1.5*Math.PI?(a={x:h.maxX,y:h.maxY},o={x:h.minX,y:h.minY}):(a={x:h.minX,y:h.maxY},o={x:h.maxX,y:h.minY});var f=Math.tan(c),p=f*f,g=(o.x-a.x+f*(o.y-a.y))/(p+1)+a.x,d=f*(o.x-a.x+f*(o.y-a.y))/(p+1)+a.y,v=n.createLinearGradient(a.x,a.y,g,d);return i(l,v),v}(t,e,n);if("r"===t[0])return function(t,e,n){var r=u.exec(t),a=parseFloat(r[1]),o=parseFloat(r[2]),s=parseFloat(r[3]),c=r[4];if(0===s){var h=c.match(l);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,g=f.maxY-f.minY,d=Math.sqrt(p*p+g*g)/2,v=n.createRadialGradient(f.minX+p*a,f.minY+g*o,s*d,f.minX+p/2,f.minY+g/2,d);return i(c,v),v}(t,e,n);if("p"===t[0])return function(t,e,n){function i(){r=n.createPattern(a,s),e.setSilent("pattern",r),e.setSilent("patternSource",t)}if(e.get("patternSource")&&e.get("patternSource")===t)return e.get("pattern");var r,a,o=c.exec(t),s=o[1],u=o[2];switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return a=new Image,u.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=u,a.complete?i():(a.onload=i,a.src=a.src),r}(t,e,n)}return t}},numberToColor:function(t){var e=h[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,h[t]=e}return e}}},function(t,e,n){t.exports={painter:n(222),getShape:n(229)}},function(t,e,n){var i=n(1),r=n(27).parseRadius,a=n(57),o=n(223),s={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},u={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={left:"left",start:"left",center:"middle",right:"end",end:"end"},h=function(){function t(t){if(!t)return null;var e=i.uniqueId("canvas_"),n=i.createDom('<svg id="'+e+'"></svg>');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new o(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){function e(){n.animateHandler=i.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{t.resetMatrix(),n._drawGroup(t,!1)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n.toDraw=!1}n.toDraw=!1}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this._drawChildren(t,!1)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(!n.el&&n.attrs&&(e=!0),n.tobeRemoved&&(i.each(n.tobeRemoved,function(t){t.parentNode&&t.parentNode.removeChild(t)}),n.tobeRemoved=[]),this._drawShape(t,e),n.children&&n.children.length>0&&this._drawChildren(t,e))},e._drawChildren=function(t,e){var n,i=t._cfg.children;if(i){if(t._cfg.el&&!e){var r=t._cfg.el.childNodes.length+1;0!==r&&r!==i.length&&(e=!0)}for(var a=0;a<i.length;a++)(n=i[a]).isGroup?this._drawGroup(n,e):this._drawShape(n,e)}},e._drawShape=function(t,e){var n=t._attrs,i=t._cfg,r=i.el;i.removed||i.destroyed?r&&r.parentNode.removeChild(i.el):(e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null),!r&&i.parent&&(this._createDom(t),this._updateShape(t)),r=i.el,!1!==i.visible?(i.visible&&r.hasAttribute("visibility")&&r.removeAttribute("visibility"),i.hasUpdate&&this._updateShape(t),n.clip&&n.clip._cfg.hasUpdate&&this._updateShape(n.clip)):r.setAttribute("visibility","hidden"))},e._updateShape=function(t){var e=t._attrs,n=t._cfg.attrs;if(n)if(t._cfg.el||this._createDom(t),"clip"in e&&this._setClip(t,e.clip),("shadowOffsetX"in e||"shadowOffsetY"in e||"shadowBlur"in e||"shadowColor"in e)&&this._setShadow(t),"text"!==t.type){"fan"===t.type&&this._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",this._assembleMarker(e)),"rect"===t.type&&t._cfg.el.setAttribute("d",this._assembleRect(e));for(var r in e)e[r]!==n[r]&&this._setAttribute(t,r,e[r]);t._cfg.attrs=i.deepMix({},t._attrs),t._cfg.hasUpdate=!1}else this._updateText(t)},e._setAttribute=function(t,e,n){var r=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==r&&"rect"!==r||!~["x","y","radius","r"].indexOf(e))if(~["circle","ellipse"].indexOf(r)&&~["x","y"].indexOf(e))o.setAttribute("c"+e,parseInt(n,10));else{if("polygon"===r&&"points"===e)return n&&0!==n.length||(n=""),i.isArray(n)&&(n=(n=n.map(function(t){return t[0]+","+t[1]})).join(" ")),void o.setAttribute("points",n);if("path"===e&&i.isArray(n))o.setAttribute("d",this._formatPath(n));else if("img"!==e){if("transform"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("rotate"===e)return n?void this._setTransform(t):void o.removeAttribute("transform");if("matrix"!==e)if("fillStyle"!==e&&"strokeStyle"!==e){if("clip"!==e)if(~e.indexOf("Arrow"))if(e=u[e],n){var c=null;c="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+c+")"),t._cfg[e]=c}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),u[e]&&o.setAttribute(u[e],n)}else this._setColor(t,e,n);else this._setTransform(t)}else this._setImage(t,n)}},e._createDom=function(t){var e=s[t.type],n=t._attrs;if(!e)throw new Error("the type"+t.type+"is not supported by svg");var i=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=i,t._cfg.parent&&t._cfg.parent.get("el").appendChild(i),t._cfg.attrs={},"text"===t.type?(i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||i.setAttribute("stroke","none"),n.fill||n.fillStyle||i.setAttribute("fill","none")),i},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(Number(t.x))||isNaN(Number(t.y))||isNaN(Number(e)))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):a.Symbols[t.symbol||"circle"](t.x,t.y,e),i.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,a=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+a+",0 l 0,"+o+" l"+-a+" 0 z";var u=r(s);i.isArray(s)?1===s.length?u.r1=u.r2=u.r3=u.r4=s[0]:2===s.length?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):3===s.length?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;return[["M "+(e+u.r1)+","+n],["l "+(a-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-a)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]].join(" ")},e._formatPath=function(t){return~(t=t.map(function(t){return t.join(" ")}).join("")).indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,r=t._cfg.el;if(i.isString(e))r.setAttribute("href",e);else if(e instanceof Image)n.width||(r.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(r.setAttribute("height",e.height),t._attrs.height=e.height),r.setAttribute("href",e.src);else if(e instanceof HTMLElement&&i.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())r.setAttribute("href",e.toDataURL());else if(e instanceof ImageData){var a=document.createElement("canvas");a.setAttribute("width",e.width),a.setAttribute("height",e.height),a.getContext("2d").putImageData(e,0,0),n.width||(r.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(r.setAttribute("height",e.height),t._attrs.height=e.height),r.setAttribute("href",a.toDataURL())}},e._updateFan=function(t){function e(t,e,n){return{x:e*Math.cos(t)+n.x,y:e*Math.sin(t)+n.y}}var n=t._attrs,r=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;i.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var c=e(s,n.re,a),l=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,g=n.re,d=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+l.x+","+l.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+d.x+","+d.y),o.push("L "+c.x+" "+c.y)):(o.push("M "+a.x+","+a.y),o.push("L "+c.x+","+c.y)),o.push("A "+g+","+g+",0,"+f+","+h+","+l.x+","+l.y),n.rs>0?o.push("L "+v.x+","+v.y):o.push("Z"),r.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=t._attrs,n=t._cfg.attrs,i=t._cfg.el;this._setFont(t);for(var r in e)if(e[r]!==n[r]){if("text"===r){this._setText(t,""+e[r]);continue}if("fillStyle"===r||"strokeStyle"===r){this._setColor(t,r,e[r]);continue}if("matrix"===r){this._setTransform(t);continue}u[r]&&i.setAttribute(u[r],e[r])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,i=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",l[n.textAlign]||"left"),i&&+i<12&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+i/12,+i/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,r=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";i.each(o,function(t,e){0===e?"alphabetic"===r?u+='<tspan x="'+a+'" dy="'+-s+'em">'+t+"</tspan>":"top"===r?u+='<tspan x="'+a+'" dy="0.9em">'+t+"</tspan>":"middle"===r?u+='<tspan x="'+a+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===r?u+='<tspan x="'+a+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===r&&(u+='<tspan x="'+a+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+a+'" dy="1em">'+t+"</tspan>"}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(e)if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);var i=this.context.addClip(e);n.setAttribute("clip-path","url(#"+i+")")}else n.removeAttribute("clip-path")},e._setColor=function(t,e,n){var i=t._cfg.el,r=this.context;if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=r.find("gradient",n);a||(a=r.addGradient(n)),i.setAttribute(u[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=r.find("pattern",n);o||(o=r.addPattern(n)),i.setAttribute(u[e],"url(#"+o+")")}else i.setAttribute(u[e],n);else i.setAttribute(u[e],"none")},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,i={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(i.dx||i.dy||i.blur||i.color){var r=this.context.find("filter",i);r||(r=this.context.addShadow(i,this)),e.setAttribute("filter","url(#"+r+")")}else e.removeAttribute("filter")},t}();t.exports=h},function(t,e,n){var i=n(1),r=n(224),a=n(225),o=n(226),s=n(227),u=n(228),c=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs"),n=i.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}var e=t.prototype;return e.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},e.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},e.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},e.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new o(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),i.id},e.addGradient=function(t){var e=new r(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addArrow=function(t,e){var n=new o(t,e);return this.el.appendChild(n.el),n.id},e.addShadow=function(t){var e=new a(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addPattern=function(t){var e=new u(t);return this.el.appendChild(e.el),this.add(e),e.id},e.addClip=function(t){var e=new s(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();t.exports=c},function(t,e,n){function i(t){var e=t.match(s);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),r.each(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var r=n(1),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){function t(t){var e=null,n=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,o,s=a.exec(t),u=r.mod(r.toRadian(parseFloat(s[1])),2*Math.PI),c=s[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=u&&u<Math.PI?(n={x:1,y:0},o={x:0,y:1}):Math.PI<=u&&u<1.5*Math.PI?(n={x:1,y:1},o={x:0,y:0}):(n={x:0,y:1},o={x:1,y:0});var l=Math.tan(u),h=l*l,f=(o.x-n.x+l*(o.y-n.y))/(h+1)+n.x,p=l*(o.x-n.x+l*(o.y-n.y))/(h+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",f),e.setAttribute("y2",p),e.innerHTML=i(c)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),a=parseFloat(n[2]),s=parseFloat(n[3]),u=n[4];e.setAttribute("cx",r),e.setAttribute("cy",a),e.setAttribute("r",s),e.innerHTML=i(u)}(t,e=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=u},function(t,e,n){var i=n(1),r={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},a={x:"-40%",y:"-40%",width:"200%",height:"200%"},o=function(){function t(t){this.type="filter";var e=document.createElementNS("http://www.w3.org/2000/svg","filter");return i.each(a,function(t,n){e.setAttribute(n,t)}),this.el=e,this.id=i.uniqueId("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}var e=t.prototype;return e.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return i.each(Object.keys(r),function(t){if(r[t]!==e[t])return n=!1,!1}),n},e.update=function(t,e){var n=this.cfg;return n[r[t]]=e,this._parseShadow(n,this.el),this},e._parseShadow=function(t,e){var n='<feDropShadow \n dx="'+(t.dx||0)+'" \n dy="'+(t.dy||0)+'" \n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();t.exports=o},function(t,e,n){var i=n(1),r=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),r=i.uniqueId("marker_");n.setAttribute("id",r);var a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke","none"),a.setAttribute("fill",t.stroke||"#000"),n.appendChild(a),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=a,this.id=r,this.cfg=t["marker-start"===e?"startArrow":"endArrow"],this.stroke=t.stroke||"#000",!0===this.cfg?this._setDefaultPath(e,a):this._setMarker(t.lineWidth,a),this}var e=t.prototype;return e.match=function(){return!1},e._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L6,3 L0,6 L3,3Z"),n.setAttribute("refX",3),n.setAttribute("refY",3)},e._setMarker=function(t,e){var n=this.el,r=this.cfg.path,a=this.cfg.d;i.isArray(r)&&(r=r.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",r),n.appendChild(e),a&&n.setAttribute("refX",a/t)},e.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");this.el=e,this.id=i.uniqueId("clip_"),e.id=this.id;var n=t._cfg.el;return e.appendChild(n.cloneNode(!0)),this.cfg=t,this}var e=t.prototype;return e.match=function(){return!1},e.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();t.exports=r},function(t,e,n){var i=n(1),r=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=function(){function t(t){function e(){console.log(u.width,u.height),n.setAttribute("width",u.width),n.setAttribute("height",u.height)}var n=document.createElementNS("http://www.w3.org/2000/svg","pattern");n.setAttribute("patternUnits","userSpaceOnUse");var a=document.createElementNS("http://www.w3.org/2000/svg","image");n.appendChild(a);var o=i.uniqueId("pattern_");n.id=o,this.el=n,this.id=o,this.cfg=t;var s=r.exec(t)[2];a.setAttribute("href",s);var u=new Image;return s.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=s,u.complete?e():(u.onload=e,u.src=u.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();t.exports=a},function(t,e){var n={svg:"svg",circle:"circle",rect:"rect",text:"text",path:"path",foreignObject:"foreignObject",polygon:"polygon",ellipse:"ellipse",image:"image"};t.exports=function(t,e,i){var r=i.target||i.srcElement;if(!n[r.tagName]){for(var a=r.parentNode;a&&!n[a.tagName];)a=a.parentNode;r=a}return this._cfg.el===r?this:this.find(function(t){return t._cfg&&t._cfg.el===r})}},function(t,e,n){t.exports={addEventListener:n(231),createDom:n(94),getBoundingClientRect:n(232),getHeight:n(233),getOuterHeight:n(234),getOuterWidth:n(235),getRatio:n(236),getStyle:n(237),getWidth:n(238),modifyCSS:n(95),requestAnimationFrame:n(96)}},function(t,e){t.exports=function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e){t.exports=function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),i=document.documentElement.clientTop,r=document.documentElement.clientLeft;return{top:n.top-i,bottom:n.bottom-i,left:n.left-r,right:n.right-r}}return e||null}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e){t.exports=function(t,e){var n=this.getHeight(t,e),i=parseFloat(this.getStyle(t,"borderTopWidth"))||0,r=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+i+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+r+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),i=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,r=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+i+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+r+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var i=n(5);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return i(n)?null:n}}},function(t,e){t.exports=function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){t.exports={contains:n(41),difference:n(240),find:n(241),firstValue:n(242),flatten:n(243),flattenDeep:n(244),getRange:n(245),merge:n(42),pull:n(90),pullAt:n(129),reduce:n(246),remove:n(247),sortBy:n(248),union:n(249),uniq:n(130),valuesOfKey:n(65)}},function(t,e,n){var i=n(64),r=n(41);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return i(t,function(t){return!r(e,t)})}},function(t,e,n){var i=n(11),r=n(26),a=n(127);t.exports=function(t,e){var n=void 0;if(i(e)&&(n=e),r(e)&&(n=function(t){return a(t,e)}),n)for(var o=0;o<t.length;o+=1)if(n(t[o]))return t[o];return null}},function(t,e,n){var i=n(5),r=n(4);t.exports=function(t,e){for(var n=null,a=0;a<t.length;a++){var o=t[a][e];if(!i(o)){n=r(o)?o[0]:o;break}}return n}},function(t,e,n){var i=n(4),r=n(2);t.exports=function(t){if(!i(t))return t;var e=[];return r(t,function(t){i(t)?r(t,function(t){e.push(t)}):e.push(t)}),e}},function(t,e,n){var i=n(4);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(i(e))for(var r=0;r<e.length;r+=1)t(e[r],n);else n.push(e);return n}},function(t,e,n){var i=n(64),r=n(4);t.exports=function(t){if(!(t=i(t,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(r(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var a=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:a}}},function(t,e,n){var i=n(4),r=n(26),a=n(2);t.exports=function(t,e,n){if(!i(t)&&!r(t))return t;var o=n;return a(t,function(t,n){o=e(o,t,n)}),o}},function(t,e,n){var i=n(13),r=n(129);t.exports=function(t,e){var n=[];if(!i(t))return n;for(var a=-1,o=[],s=t.length;++a<s;){var u=t[a];e(u,a,t)&&(n.push(u),o.push(a))}return r(t,o),n}},function(t,e,n){var i=n(10),r=n(11),a=n(4);t.exports=function(t,e){var n=void 0;if(r(e))n=function(t,n){return e(t)-e(n)};else{var o=[];i(e)?o.push(e):a(e)&&(o=e),n=function(t,e){for(var n=0;n<o.length;n+=1){var i=o[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){var i=n(2),r=n(34),a=n(130);t.exports=function(){var t=[],e=r(arguments);return i(e,function(e){t=t.concat(e)}),a(t)}},function(t,e,n){t.exports={getWrapBehavior:n(251),wrapBehavior:n(252)}},function(t,e){t.exports=function(t,e){return t["_wrap_"+e]}},function(t,e){t.exports=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){var i=n(254);t.exports={number2color:i,numberToColor:i,parsePath:n(255),parseRadius:n(256)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var i=t.toString(16),r=i.length;r<6;r++)i="0"+i;e="#"+i,n[t]=e}return e}},function(t,e,n){var i=n(4),r=n(10),a=n(2),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return t=t||[],i(t)?t:r(t)?(t=t.match(o),a(t,function(e,n){if((e=e.match(s))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}a(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){var i=n(4);t.exports=function(t){var e=0,n=0,r=0,a=0;return i(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,{r1:e,r2:n,r3:r,r4:a}}},function(t,e,n){var i=n(35);t.exports={clamp:n(51),fixedBase:n(258),isDecimal:n(259),isEven:n(260),isInteger:n(261),isNegative:n(262),isNumberEqual:i,isOdd:n(263),isPositive:n(264),maxBy:n(131),minBy:n(265),mod:n(93),snapEqual:i,toDegree:n(92),toInt:n(132),toInteger:n(132),toRadian:n(91)}},function(t,e){t.exports=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%1!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2==0}},function(t,e,n){var i=n(9),r=Number.isInteger?Number.isInteger:function(t){return i(t)&&t%1==0};t.exports=r},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t<0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t%2!=0}},function(t,e,n){var i=n(9);t.exports=function(t){return i(t)&&t>0}},function(t,e,n){var i=n(4),r=n(11),a=n(2);t.exports=function(t,e){if(i(t)){var n=t[0],o=void 0;o=r(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=r(e)?e(t):t[e])<o&&(n=t,o=s)}),n}}},function(t,e,n){t.exports={forIn:n(267),has:n(133),hasKey:n(268),hasValue:n(269),keys:n(128),isMatch:n(127),values:n(134)}},function(t,e,n){t.exports=n(2)},function(t,e,n){t.exports=n(133)},function(t,e,n){var i=n(41),r=n(134);t.exports=function(t,e){return i(r(t),e)}},function(t,e,n){var i=n(271),r=n(138),a=n(137),o=n(140);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(272),fillPathByDiff:n(273),formatPath:n(275),intersection:i,pathIntersection:i,parsePathArray:n(136),parsePathString:n(139),pathToAbsolute:r,path2absolute:r,pathTocurve:a,path2curve:a,rectPath:n(135)}},function(t,e,n){var i=n(4),r=n(135),a=n(137),o=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},s=function(t,e,n,i,r,a,s,u,c){null===c&&(c=1);for(var l=(c=c>1?1:c<0?0:c)/2,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,g=0;g<12;g++){var d=l*h[g]+l,v=o(d,t,n,r,s),y=o(d,e,i,a,u),m=v*v+y*y;p+=f[g]*Math.sqrt(m)}return l*p},u=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var c=((t*i-e*n)*(r-o)-(t-n)*(r*s-a*o))/u,l=((t*i-e*n)*(a-s)-(e-i)*(r*s-a*o))/u,h=+c.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,o).toFixed(2)||h>+Math.max(r,o).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(a,s).toFixed(2)||f>+Math.max(a,s).toFixed(2)))return{x:c,y:l}}}},c=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},l=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:r(t,e,n,i),vb:[t,e,n,i].join(" ")}},h=function(t,e,n,r,a,o,s,u){i(t)||(t=[t,e,n,r,a,o,s,u]);var c=function(t,e,n,i,r,a,o,s){for(var u=[],c=[[],[]],l=void 0,h=void 0,f=void 0,p=void 0,g=0;g<2;++g)if(0===g?(h=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*o,f=3*n-3*t):(h=6*e-12*i+6*a,l=-3*e+9*i-9*a+3*s,f=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(h)<1e-12)continue;(p=-f/h)>0&&p<1&&u.push(p)}else{var d=h*h-4*f*l,v=Math.sqrt(d);if(!(d<0)){var y=(-h+v)/(2*l);y>0&&y<1&&u.push(y);var m=(-h-v)/(2*l);m>0&&m<1&&u.push(m)}}for(var x=u.length,b=x,_=void 0;x--;)_=1-(p=u[x]),c[0][x]=_*_*_*t+3*_*_*p*n+3*_*p*p*r+p*p*p*o,c[1][x]=_*_*_*e+3*_*_*p*i+3*_*p*p*a+p*p*p*s;return c[0][b]=t,c[1][b]=e,c[0][b+1]=o,c[1][b+1]=s,c[0].length=c[1].length=b+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}}.apply(null,t);return l(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},f=function(t,e,n,i,r,a,o,s,u){var c=1-u,l=Math.pow(c,3),h=Math.pow(c,2),f=u*u,p=f*u,g=t+2*u*(n-t)+f*(r-2*n+t),d=e+2*u*(i-e)+f*(a-2*i+e),v=n+2*u*(r-n)+f*(o-2*r+n),y=i+2*u*(a-i)+f*(s-2*a+i);return{x:l*t+3*h*u*n+3*c*u*u*r+p*o,y:l*e+3*h*u*i+3*c*u*u*a+p*s,m:{x:g,y:d},n:{x:v,y:y},start:{x:c*t+u*n,y:c*e+u*i},end:{x:c*r+u*o,y:c*a+u*s},alpha:90-180*Math.atan2(g-v,d-y)/Math.PI}},p=function(t,e,n){if(!function(t,e){return t=l(t),e=l(e),c(e,t.x,t.y)||c(e,t.x2,t.y)||c(e,t.x,t.y2)||c(e,t.x2,t.y2)||c(t,e.x,e.y)||c(t,e.x2,e.y)||c(t,e.x,e.y2)||c(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(h(t),h(e)))return n?0:[];for(var i=~~(s.apply(0,t)/8),r=~~(s.apply(0,e)/8),a=[],o=[],p={},g=n?0:[],d=0;d<i+1;d++){var v=f.apply(0,t.concat(d/i));a.push({x:v.x,y:v.y,t:d/i})}for(var y=0;y<r+1;y++){var m=f.apply(0,e.concat(y/r));o.push({x:m.x,y:m.y,t:y/r})}for(var x=0;x<i;x++)for(var b=0;b<r;b++){var _=a[x],S=a[x+1],w=o[b],M=o[b+1],k=Math.abs(S.x-_.x)<.001?"y":"x",C=Math.abs(M.x-w.x)<.001?"y":"x",A=u(_.x,_.y,S.x,S.y,w.x,w.y,M.x,M.y);if(A){if(p[A.x.toFixed(4)]===A.y.toFixed(4))continue;p[A.x.toFixed(4)]=A.y.toFixed(4);var P=_.t+Math.abs((A[k]-_[k])/(S[k]-_[k]))*(S.t-_.t),O=w.t+Math.abs((A[C]-w[C])/(M[C]-w[C]))*(M.t-w.t);P>=0&&P<=1&&O>=0&&O<=1&&(n?g++:g.push({x:A.x,y:A.y,t1:P,t2:O}))}}return g};t.exports=function(t,e){return function(t,e,n){t=a(t),e=a(e);for(var i=void 0,r=void 0,o=void 0,s=void 0,u=void 0,c=void 0,l=void 0,h=void 0,f=void 0,g=void 0,d=n?0:[],v=0,y=t.length;v<y;v++){var m=t[v];if("M"===m[0])i=u=m[1],r=c=m[2];else{"C"===m[0]?(i=(f=[i,r].concat(m.slice(1)))[6],r=f[7]):(f=[i,r,i,r,u,c,u,c],i=u,r=c);for(var x=0,b=e.length;x<b;x++){var _=e[x];if("M"===_[0])o=l=_[1],s=h=_[2];else{"C"===_[0]?(o=(g=[o,s].concat(_.slice(1)))[6],s=g[7]):(g=[o,s,o,s,l,h,l,h],o=l,s=h);var S=p(f,g,n);if(n)d+=S;else{for(var w=0,M=S.length;w<M;w++)S[w].segment1=v,S[w].segment2=x,S[w].bez1=f,S[w].bez2=g;d=d.concat(S)}}}}}return d}(t,e)}},function(t,e){function n(t,e){function n(t,e){if(1===t.length)i.push(t[0]),r.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&i.push(t[0]),o===t.length-2&&r.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];n(a,e)}}var i=[],r=[];return t.length&&n(t,e),{left:i,right:r.reverse()}}function i(t,e,i){if(1===i)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,i){var r=[[t[1],t[2]]];i=i||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,s=1/i,u=0;u<i-1;u++){var c=n(o,s/(1-s*u));a.push(c.left),o=c.right}return a.push(o),a.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,i));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=i-1;o++)r.push(a)}return r}t.exports=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(var u=0;u<r;u++){var c=Math.floor(a*u);o[c]=(o[c]||0)+1}var l=o.reduce(function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l}},function(t,e,n){function i(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var r=n(274);t.exports=function(t,e){var n=function(t,e){var n=t.length,a=e.length,o=void 0,s=void 0,u=0;if(0===n||0===a)return null;for(var c=[],l=0;l<=n;l++)c[l]=[],c[l][0]={min:l};for(var h=0;h<=a;h++)c[0][h]={min:h};for(var f=1;f<=n;f++){o=t[f-1];for(var p=1;p<=a;p++){s=e[p-1],u=r(o,s)?0:1;var g=c[f-1][p].min+1,d=c[f][p-1].min+1,v=c[f-1][p-1].min+u;c[f][p]=i(g,d,v)}}return c}(t,e),a=t.length,o=e.length,s=[],u=1,c=1;if(n[a][o]!==a){for(var l=1;l<=a;l++){var h=n[l][l].min;c=l;for(var f=u;f<=o;f++)n[l][f].min<h&&(h=n[l][f].min,c=f);u=c,n[l][u].type&&s.push({index:l-1,type:n[l][u].type})}for(var p=s.length-1;p>=0;p--)u=s[p].index,"add"===s[p].type?t.splice(u,0,[].concat(t[u])):t.splice(u,1)}if((a=t.length)<o)for(var g=0;g<o-a;g++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){var i=n(2);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return i(t,function(t,i){if(t!==e[i])return n=!1,!1}),n}},function(t,e){function n(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,i){for(var r=[].concat(t),a=void 0,o=1/(i+1),s=n(e)[0],u=1;u<=i;u++)o*=u,0===(a=Math.floor(t.length*o))?r.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):r.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return r}t.exports=function(t,e){if(t.length<=1)return t;for(var r=void 0,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(r=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(r[0]);break;case"L":t[a]=["L"].concat(r[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=r[0][0],t[a][7]=r[0][1];break;case"Q":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["Q"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(r[0]);break;case"C":if(r.length<3){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],2)}t[a]=["C"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(r.length<2){if(!(a>0)){t[a]=e[a];break}r=i(r,t[a-1],1)}t[a]=["S"].concat(r.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var i={lc:n(277),lowerCase:n(141),lowerFirst:n(75),substitute:n(278),uc:n(279),upperCase:n(142),upperFirst:n(87)};t.exports=i},function(t,e,n){t.exports=n(141)},function(t,e){t.exports=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}},function(t,e,n){t.exports=n(142)},function(t,e,n){var i=n(12),r={getType:n(84),isArray:n(4),isArrayLike:n(13),isBoolean:n(82),isFunction:n(11),isNil:n(5),isNull:n(281),isNumber:n(9),isObject:n(25),isObjectLike:n(49),isPlainObject:n(26),isPrototype:n(85),isType:i,isUndefined:n(282),isString:n(10),isRegExp:n(283),isDate:n(80),isArguments:n(284),isError:n(285)};t.exports=r},function(t,e){t.exports=function(t){return null===t}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"RegExp")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Arguments")}},function(t,e,n){var i=n(12);t.exports=function(t){return i(t,"Error")}},function(t,e){t.exports=function(t,e,n){var i=void 0;return function(){var r=this,a=arguments,o=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(r,a)},e),o&&t.apply(r,a)}}},function(t,e,n){var i=n(13);t.exports=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,a=0;a<t.length;a++)if(t[a]===e){r=a;break}return r}},function(t,e,n){var i=n(11),r=n(50);t.exports=function(t,e,n){return i(n)?!!n(t,e):r(t,e)}},function(t,e,n){var i=n(2),r=n(13);t.exports=function(t,e){if(!r(t))return t;var n=[];return i(t,function(t,i){n.push(e(t,i))}),n}},function(t,e,n){var i=n(2),r=n(26),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!r(t))return{};var n={};return i(e,function(e){a.call(t,e)&&(n[e]=t[e])}),n}},function(t,e){t.exports=function(t,e,n){var i=void 0,r=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),i=null,o=t.apply(r,a),i||(r=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,a=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),s=c,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(u,l)),o};return c.cancel=function(){clearTimeout(i),s=0,i=r=a=null},c}},function(t,e,n){function i(t,e){var n,i,r=function(t){if(f.isEmpty(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return f.each(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r}),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}(t.points||t.get("origin").points),a=e.startAngle,o=e.endAngle-a;return e.isTransposed?(n=r.maxY*o,i=r.minY*o):(n=r.maxX*o,i=r.minX*o),n+=a,i+=a,{startAngle:i,endAngle:n}}function r(t,e,n){var i={};return t.delay&&(i.delay=f.isFunction(t.delay)?t.delay(e,n):t.delay),i.easing=f.isFunction(t.easing)?t.easing(e,n):t.easing,i.duration=f.isFunction(t.duration)?t.duration(e,n):t.duration,i.callback=t.callback,i}function a(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minX+o.maxX)/2,c=[u,n=s[0].y-s[1].y<=0?o.maxY:o.minY,1];t.apply(c),t.attr("transform",[["t",-u,-n],["s",1,.01],["t",u,n]]);var l={transform:[["t",-u,-n],["s",1,100],["t",u,n]]},h=r(e,a,i);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function o(t,e){var n,i=t._id,a=t.get("index"),o=t.getBBox(),s=t.get("origin").points,u=(o.minY+o.maxY)/2,c=[n=s[0].y-s[1].y>0?o.maxX:o.minX,u,1];t.apply(c),t.attr({transform:[["t",-n,-u],["s",.01,1],["t",n,u]]});var l={transform:[["t",-n,-u],["s",100,1],["t",n,u]]},h=r(e,a,i);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function s(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[i,a,1];t.apply(c),t.attr({transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]});var l={transform:[["t",-i,-a],["s",100,100],["t",i,a]]},h=r(e,s,o);t.animate(l,h.duration,h.easing,h.callback,h.delay)}function u(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a=g.pathToAbsolute(t.attr("path"));t.attr("path",[a[0]]);var o={path:a},s=r(e,i,n);t.animate(o,s.duration,s.easing,s.callback,s.delay)}}function c(t,e,n,i,a){var o,s=function(t){var e,n,i,r,a,o=t.start,s=t.end,u=t.getWidth(),c=t.getHeight();return t.isPolar?(r=t.getRadius(),i=t.getCenter(),e=t.startAngle,n=t.endAngle,(a=new p.Fan({attrs:{x:i.x,y:i.y,rs:0,re:r+200,startAngle:e,endAngle:e}})).endState={endAngle:n}):(a=new p.Rect({attrs:{x:o.x-200,y:s.y-200,width:t.isTransposed?u+400:0,height:t.isTransposed?0:c+400}}),t.isTransposed?a.endState={height:c+400}:a.endState={width:u+400}),a.isClip=!0,a}(n),u=t.get("canvas"),c=t._id,l=t.get("index");i?(s.attr("startAngle",i),s.attr("endAngle",i),o={endAngle:a}):o=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var h=r(e,l,c);s.animate(o,h.duration,h.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())},h.delay)}function l(t,e){var n=t._id,i=t.get("index"),a=f.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=f.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:a,strokeOpacity:o},u=r(e,i,n);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function h(t,e,n){var r=i(t,n),a=r.endAngle;c(t,e,n,r.startAngle,a)}var f=n(0),p=n(16),g=f.PathUtil;t.exports={enter:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},i=t._id,a=r(e,t.get("index"),i);t.animate(n,a.duration,a.easing,function(){t.remove()},a.delay)},zoomOut:function(t,e,n){var i,a,o=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[i,a,1];t.apply(c);var l={transform:[["t",-i,-a],["s",.01,.01],["t",i,a]]},h=r(e,s,o);t.animate(l,h.duration,h.easing,function(){t.remove()},h.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,i=t.get("index"),a={path:[g.pathToAbsolute(t.attr("path"))[0]]},o=r(e,i,n);t.animate(a,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,i={fillOpacity:0,strokeOpacity:0},a=r(e,t.get("index"),n);t.animate(i,a.duration,a.easing,function(){t.remove()},a.delay)}},appear:{clipIn:c,zoomIn:s,pathIn:u,scaleInY:a,scaleInX:o,fanIn:h,fadeIn:l},update:{fadeIn:l,fanIn:h,lineSlideLeft:function(t,e,n){if("line"===t.name){var i=t.get("canvas"),a=t.get("cacheShape"),o=t._id,s=t.get("index"),u=new p.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",i);var c=g.pathToAbsolute(a.attrs.path),l=g.pathToAbsolute(t.attr("path")),h=c[1][1]-c[0][1],f=c[c.length-1][1]+h,d=l[l.length-1][2],v=c.concat([["L",f,d]]);t.apply([0,0,1]),t.attr("clip",u),t.attr("path",v);var y={transform:[["t",-h,0]]},m=r(e,s,o);t.animate(y,m.duration,m.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",l),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},m.delay)}},areaSlideLeft:function(t,e,n){if("area"===t.name){var i=t.get("canvas"),a=t.get("cacheShape"),o=t._id,s=t.get("index"),u=new p.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",i);var c=g.pathToAbsolute(a.attrs.path),l=g.pathToAbsolute(t.attr("path")),h=c[1][1]-c[0][1],f=Math.floor(c.length/2),d=c[f-1][1]+h,v=l[f-1][2],y=[].concat(c.slice(0,f),[["L",d,v],["L",d,l[f][2]]],c.slice(f));t.apply([0,0,1]),t.attr("clip",u),t.attr("path",y);var m={transform:[["t",-h,0]]},x=r(e,s,o);t.animate(m,x.duration,x.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",l),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},x.delay)}}}}},function(t,e,n){function i(t,e,n){var i=(t-e)/(n-e);return i>=0&&i<=1}function r(t,e){var n=!1;if(t){if("theta"===t.type){var r=t.start,a=t.end;n=i(e.x,r.x,a.x)&&i(e.y,r.y,a.y)}else{var o=t.invert(e);n=o.x>=0&&o.y>=0&&o.x<=1&&o.y<=1}}return n}var a=n(147),o=n(21),s=n(0),u=n(165),c=n(7),l=n(150),h=n(357),f={};s.each(o,function(t,e){var n=s.lowerFirst(e);f[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var p=function(t){function e(e){var n,i=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n=t.call(this,e)||this);return i._setTheme(),s.each(o,function(t,e){var n=s.lowerFirst(e);i[n]=function(e){void 0===e&&(e={}),e.viewTheme=i.get("viewTheme");var n=new t(e);return i.addGeom(n),n}}),i.init(),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,theme:null,parent:null,tooltipEnable:!0,animate:c.animate,visible:!0}},n._setTheme=function(){var t=this.get("theme"),e={},n={};s.isObject(t)?n=t:-1!==s.indexOf(Object.keys(l),t)&&(n=l[t]),s.deepMix(e,c,n),this.set("viewTheme",e)},n.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},n._initOptions=function(){var t=this,e=s.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||s.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&s.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var i=t.get("coordController");i&&i.reset(e.coord),this.set("options",e)},n._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),s.each(t,function(t,n){if(e[n])if(s.isObject(t)&&t.field)if("label"===t)e[n](t.field,t.callback,t.cfg);else{var i;s.each(t,function(t,e){"field"!==e&&(i=t)}),e[n](t.field,i)}else e[n](t)}))},n._initControllers=function(){var t=this.get("options"),e=this.get("viewTheme"),n=this.get("canvas"),i=new u.Scale({viewTheme:e,defs:t.scales}),r=new u.Coord(t.coord);this.set("scaleController",i),this.set("coordController",r);var a=new u.Axis({canvas:n,viewTheme:e});this.set("axisController",a);var o=new u.Guide({viewTheme:e,options:t.guides||[]});this.set("guideController",o)},n._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},n._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),i=this.get("_id"),r=0;r<t.length;r++){var a=t[r];a.set("data",e),a.set("coord",n),a.set("_id",i+"-geom"+r),a.set("keyFields",this.get("keyFields")),a.init()}},n._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++){t[e].clear()}},n._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;){t.shift().destroy()}},n._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var i=t[n];i.setCoord(e),i.paint()}this.emit("afterdrawgeoms")},n.isShapeInView=function(t){var e=this.get("_id"),n=t._id;if(n)return n.split("-")[0]===e;for(var i=t;i;){if(i.get("viewId")===e)return!0;i=i.get("parent")}return!1},n.getViewRegion=function(){var t,e,n=this.get("parent");if(n){var i=n.getViewRegion(),r=this._getViewRegion(i.start,i.end);t=r.start,e=r.end}else t=this.get("start"),e=this.get("end");return{start:t,end:e}},n._getViewRegion=function(t,e){var n=this.get("start"),i=this.get("end"),r=n.x,a=1-i.y,o=i.x,u=1-n.y,c=this.get("padding"),l=s.toAllPadding(c),h=l[0],f=l[1],p=l[2],g=l[3];return{start:{x:r*(e.x-t.x)+t.x+g,y:a*(e.y-t.y)+t.y-p},end:{x:o*(e.x-t.x)+t.x-f,y:u*(e.y-t.y)+t.y+h}}},n._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},n._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),i=this.getYScales(),r=this.get("_id");e.createAxis(n,i,r)}},n._renderGuides=function(){var t=this.get("guideController");if(!s.isEmpty(t.options)){var e=this.get("coord");t.view=this,t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},n._bindEvents=function(){var t=new u.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},n._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},n._getScales=function(t){for(var e=this.get("geoms"),n={},i=0;i<e.length;i++){var r=e[i],a="x"===t?r.getXScale():r.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},n._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var i=t[n];if("interval"===i.get("type")){var r=i.getYScale(),a=r.field,o=r.min,s=r.max,u=r.type;e[a]&&e[a].min||"time"===u||(o>0?r.change({min:0}):s<=0&&r.change({max:0}))}}},n._setCatScalesRange=function(){var t=this.get("coord"),e=this.get("viewTheme"),n=this.getXScale(),i=this.getYScales(),r=[];n&&r.push(n),r=r.concat(i);var a=t.isPolar&&function(t){var e=t.startAngle,n=t.endAngle;return!(!s.isNil(e)&&!s.isNil(n)&&n-e<2*Math.PI)}(t),o=this.get("scaleController").defs;s.each(r,function(n){if((n.isCategory||n.isIdentity)&&n.values&&(!o[n.field]||!o[n.field].range)){var i,r=n.values.length;if(1===r)i=[.5,1];else{var s=0;i=a?t.isTransposed?[(s=1/r*e.widthRatio.multiplePie)/2,1-s/2]:[0,1-1/r]:[s=1/r*1/2,1-s]}n.range=i}})},n.getXScale=function(){var t=this.get("geoms"),e=null;return s.isEmpty(t)||(e=t[0].getXScale()),e},n.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var i=t[n].getYScale();i&&-1===s.indexOf(e,i)&&e.push(i)}return e},n.getXY=function(t){var e,n,i=this.get("coord"),r=this._getScales("x"),a=this._getScales("y");for(var o in t)r[o]&&(e=r[o].scale(t[o])),a[o]&&(n=a[o].scale(t[o]));return s.isNil(e)||s.isNil(n)?null:i.convert({x:e,y:n})},n.getSnapRecords=function(t){var e=this.get("geoms"),n=[];return s.each(e,function(e){var i,r=e.get("dataArray");s.each(r,function(r){(i=e.findPoint(t,r))&&n.push(i)})}),n},n.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},n.removeGeom=function(t){var e=this.get("geoms");s.Array.remove(e,t),t.destroy()},n.createScale=function(t,e){var n=this.get("scales"),i=this.get("parent"),r=n[t];if(!e){var a=this.get("filteredData"),o=this._getFieldsForLegend();e=a.length&&!o.includes(t)?a:this.get("data")}var s=this.get("scaleController");if(r){if(r.sync){var u=s.createScale(t,e);this._syncScale(r,u)}}else{if((r=s.createScale(t,e)).sync&&i){var c=i.createScale(t,e);r=this._getSyncScale(c,r)}n[t]=r}return r},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return s.each(e,function(e){var n=e.getFieldsForLegend();t=t.concat(n)}),s.uniq(t)},n._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},n._syncScale=function(t,e){var n=s.union(t.values,e.values);if(e.isLinear){var i=Math.max(t.max,e.max),r=Math.min(t.min,e.min);t.max===i&&t.min===r||t.change({min:r,max:i,values:n})}n.length!==t.values.length&&t.change({values:n})},n.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},n.getFilteredOutValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(function(){return!n[t].apply(n,arguments)}):[]},n.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e,this.get("scaleController").filters=n.filters},n._getFilters=function(){return this.get("options").filters},n.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter(function(t){var n=!0;return s.each(e,function(e,i){if(e&&!(n=e(t[i],t)))return!1}),n})),t},n.axis=function(t,e){var n=this.get("options");if(!1===t)n.axes=!1;else{n.axes||(n.axes={});n.axes[t]=e}return this},n.guide=function(){return this.get("guideController")},n._getKeyFields=function(t){var e=[];s.each(t,function(t,n){t.key&&e.push(n)}),this.set("keyFields",e)},n.scale=function(t,e){var n=this.get("options").scales;return s.isObject(t)?s.mix(n,t):n[t]=e,this._getKeyFields(n),this},n.tooltip=function(t){return this.set("tooltipEnable",t),this},n.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},n.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},n.getViewsByPoint=function(t){var e=[],n=this.get("views");return r(this.get("coord"),t)&&e.push(this),s.each(n,function(n){n.get("visible")&&r(n.get("coord"),t)&&e.push(n)}),e},n.eachShape=function(t){var e=this,n=e.get("views"),i=e.get("canvas");s.each(n,function(e){e.eachShape(t)});var r=this.get("geoms");return s.each(r,function(n){var i=n.getShapes();s.each(i,function(i){var r=i.get("origin");if(s.isArray(r)){var a=r.map(function(t){return t._origin});t(a,i,n,e)}else{var o=r._origin;t(o,i,n,e)}})}),i.draw(),this},n.filterShape=function(t){return this.eachShape(function(e,n,i,r){t(e,n,i,r)?n.show():n.hide()}),this},n.clearInner=function(){this.set("scales",{}),this.emit("beforeclearinner");this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear(),this.emit("afterclearinner")},n.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},n.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},n.resetCoord=function(){this._createCoord()},n.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},n.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},n._initData=function(t){var e=this.get("dataView");e&&(e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",s.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},n._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},n.beforeRender=function(){var t=this.get("views");s.each(t,function(t){t.beforeRender()}),this.initView()},n.drawComponents=function(){var t=this.get("views");s.each(t,function(t){t.drawComponents()}),this._renderAxes(),this._renderGuides()},n.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var i=this.get("isUpdate");s.each(e,function(t){h.execAnimation(t,i)}),h.execAnimation(this,i)}else n.draw()}},n.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},n.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},n.paint=function(){var t=this.get("views");s.each(t,function(t){t.paint()});var e=this.get("data");s.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},n.changeVisible=function(t,e){var n=this.get("geoms");if(s.each(n,function(e){e.changeVisible(t,!0)}),this.get("axisController")&&this.get("axisController").changeVisible(t),this.get("guideController")&&this.get("guideController").changeVisible(t),!e){this.get("canvas").draw()}},n.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},n.destroy=function(){this._clearEvents();var e=this.get("dataView");e&&e.off("change",s.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},e}(a);t.exports=p},function(t,e,n){var i=n(5),r=n(4),a=n(2),o=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.mapping=function(t,e){var n,o,s,u=this.scales,c=this.coord,l=u[0],h=u[1];if(i(t)||i(e))return[];if(r(e)&&r(t)){n=[],o=[];for(var f=0,p=0,g=t.length,d=e.length;f<g&&p<d;f++,p++)s=c.convertPoint({x:l.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),o.push(s.y)}else if(r(e))t=l.scale(t),o=[],a(e,function(e){e=h.scale(e),s=c.convertPoint({x:t,y:e}),n&&n!==s.x?(r(n)||(n=[n]),n.push(s.x)):n=s.x,o.push(s.y)});else if(r(t))e=h.scale(e),n=[],a(t,function(t){t=l.scale(t),s=c.convertPoint({x:t,y:e}),o&&o!==s.y?(r(o)||(o=[o]),o.push(s.y)):o=s.y,n.push(s.x)});else{t=l.scale(t),e=h.scale(e);var v=c.convertPoint({x:t,y:e});n=v.x,o=v.y}return[n,o]},e}(n(29));t.exports=o},function(t,e,n){var i=n(10),r=n(148),a=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["color"],n.type="color",n.gradient=null,i(n.values)&&(n.linear=!0),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=r.gradient(n),this.gradient=e}return e(t)},e}(n(29));t.exports=a},function(t,e,n){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}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);return e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(n(29));t.exports=i},function(t,e,n){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 function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=i},function(t,e,n){var i=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["opacity"],n.type="opacity",n.gradient=null,n}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e}(n(29));t.exports=i},function(t,e,n){var i=n(8),r=n(30),a=n(300),o=n(301),s=n(149),u=n(302),c=n(303);i(r.prototype,s),i(a.prototype,s,u),i(o.prototype,c),r.Jitter=n(304),r.Symmetric=n(305),r.Dodge=a,r.Stack=o,t.exports=r},function(t,e,n){var i=n(30),r=n(2),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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 i=t.pre,r=t.next,a=r-i,o=a*this.dodgeRatio/n,s=this.marginRatio*o;return(i+r)/2+(.5*(a-n*o-(n-1)*s)+((e+1)*o+e*s)-.5*o-.5*a)},n.processAdjust=function(t){var e=this,n=t.length,i=e.xField;r(t,function(t,r){for(var a=0,o=t.length;a<o;a++){var s=t[a],u=s[i],c={pre:1===o?u-1:u-.5,next:1===o?u+1:u+.5},l=e.getDodgeOffset(c,r,n);s[i]=l}})},e}(i);i.Dodge=a,t.exports=a},function(t,e,n){var i=n(4),r=n(5),a=n(30),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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.xField,n=this.yField,a=t.length,o={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var s=0;s<a;s++)for(var u=t[s],c=0,l=u.length;c<l;c++){var h=u[c],f=h[e]||0,p=h[n],g=f.toString();if(p=i(p)?p[1]:p,!r(p)){var d=p>=0?"positive":"negative";o[d][g]||(o[d][g]=0),h[n]=[o[d][g],p+o[d][g]],o[d][g]+=p}}},e}(a);a.Stack=o,t.exports=o},function(t,e,n){var i={merge:n(42),values:n(65)},r=n(143),a=n(2);t.exports={processAdjust:function(t){var e=i.merge(t),n=this.dodgeBy,a=t;n&&(a=r(e,n)),this.cacheMap={},this.adjDataArray=a,this.mergeData=e,this.adjustData(a,e),this.adjDataArray=null,this.mergeData=null},getDistribution:function(t){var e=this.adjDataArray,n=this.cacheMap,r=n[t];return r||(r={},a(e,function(e,n){var o=i.values(e,t);o.length||o.push(0),a(o,function(t){r[t]||(r[t]=[]),r[t].push(n)})}),n[t]=r),r},adjustDim:function(t,e,n,i,r){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,function(n,i){i=parseFloat(i);var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,i,e),a(n,function(e){var n=e[t],i=s[n],a=i.indexOf(r);e[t]=o.getDodgeOffset(u,a,i.length)})})}}},function(t,e){t.exports={_initDefaultCfg:function(){this.xField=null,this.yField=null,this.height=null,this.size=10,this.reverseOrder=!1,this.adjustNames=["y"]},processOneDimStack:function(t){var e=this.xField,n=this.yField||"y",i=this.height,r={};this.reverseOrder&&(t=t.slice(0).reverse());for(var a=0,o=t.length;a<o;a++)for(var s=t[a],u=0,c=s.length;u<c;u++){var l=s[u],h=2*(l.size||this.size)/i,f=l[e];r[f]||(r[f]=h/2),l[n]=r[f],r[f]+=h}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){var i=n(2),r=n(8),a={merge:n(42)},o=n(30),s=n(149),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},n.processAdjust=function(t){var e=a.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},n.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},n._adjustGroup=function(t,e,n,r){var a=this,o=a.getAdjustRange(e,n,r);i(t,function(t){t[e]=a.getAdjustOffset(o.pre,o.next)})},n.adjustDim=function(t,e,n){var r=this,a=r.groupData(n,t);i(a,function(n,i){i=parseFloat(i),r._adjustGroup(n,t,i,e)})},e}(o);r(u.prototype,s),o.Jitter=u,t.exports=u},function(t,e,n){var i=n(2),r=n(131),a=n(4),o={merge:n(42)},s=n(30),u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},n._getMax=function(t){var e=this.mergeData,n=r(e,function(e){var n=e[t];return a(n)?Math.max.apply(null,n):n})[t];return a(n)?Math.max.apply(null,n):n},n._getXValuesMax=function(){var t=this.yField,e=this.xField,n={},r=this.mergeData;return i(r,function(i){var r=i[e],o=i[t],s=a(o)?Math.max.apply(null,o):o;n[r]=n[r]||0,n[r]<s&&(n[r]=s)}),n},n.processAdjust=function(t){var e=o.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},n._processSymmetric=function(t){var e,n=this.xField,r=this.yField,o=this._getMax(r),s=t[0][0];s&&a(s[r])&&(e=this._getXValuesMax()),i(t,function(t){i(t,function(t){var s,u=t[r];if(a(u)){var c=t[n],l=e[c];s=(o-l)/2;var h=[];i(u,function(t){h.push(s+t)}),t[r]=h}else s=(o-u)/2,t[r]=[s,u+s]})})},e}(s);s.Symmetric=u,t.exports=u},function(t,e,n){var i,r,a=n(0),o=n(151),s=a.deepMix({},o,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(i={},i["g2-legend"]={color:"#D9D9D9"},i),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(r={},r["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},r),tooltipCrosshairsRect:{type:"rect",rectStyle:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{lineStyle:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=s},function(t,e,n){var i=n(66),r=n(163),a=n(337),o=n(338),s={getLabelsClass:function(t,e){var n=i;return"polar"===t?n=r:"theta"===t?n=a:"interval"!==e&&"polygon"!==e||(n=o),n}};t.exports=s},function(t,e,n){var i=n(31);i.Base=i,i.Circle=n(312),i.Grid=n(152),i.Helix=n(313),i.Line=n(314),i.Polyline=n(315),t.exports=i},function(t,e,n){function i(t,e,n,i){var r=t.getBBox(),a=r.width,o=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=o/2,s.textAlign="left";break;case 1:s.y-=o/2,s.textAlign="right";break;case 2:s.y+=o/2,s.textAlign="right";break;case 3:s.y+=o/2,s.textAlign="left";break;case 5:s.y-=o/2;break;case 6:s.y+=o/2;break;case 7:s.x+=a/2,s.textAlign="left";break;case 8:s.x-=a/2,s.textAlign="right"}return t.attr(s),t.getBBox()}var r=n(154);t.exports=function(t){for(var e,n,a,o,s,u=new r,c=[],l=0;l<t.length;l++){a=(n=t[l]).attr("x"),o=n.attr("y"),s=!1;for(var h=0;h<8;h++)if(e=i(n,a,o,h),u.hasGap(e)){u.fillGap(e),s=!0;break}s||c.push(n)}for(var f=0;f<c.length;f++)c[f].remove();return s}},function(t,e,n){function i(t,e){var n,i=t.attr("x"),r=t.attr("y"),o=t.getBBox(),s=Math.sqrt(o.width*o.width+o.height*o.height),u=1,c=0,l=0,h=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]};if(e.hasGap(o))return e.fillGap(o),!0;for(var f=!1,p=0;Math.min(Math.abs(c),Math.abs(l))<s&&p<a;)if(n=h(u+=-1),c=~~n[0],l=~~n[1],t.attr({x:i+c,y:r+l}),p++,e.hasGap(t.getBBox())){e.fillGap(o),f=!0;break}return f}var r=n(154),a=20;t.exports=function(t){for(var e,n=new r,a=[],o=0;o<t.length;o++)i(e=t[o],n)||a.push(e);for(var s=0;s<a.length;s++)a[s].remove()}},function(t,e){t.exports=function(t,e){for(var n,i,r=[],a=0;a<t.length;a++)n=t[a].getBBox(),i=e[a].getBBox(),n.width>i.width||n.height>i.height?r.push(t[a]):n.width*n.height>i.width*i.height&&r.push(t[a]);for(var o=0;o<r.length;o++)r[o].remove()}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil.vec2,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},n.parseTick=function(t,e,n){return{text:t,value:e/n}},n._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},n.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(!a.isNil(t)){var r=s.length(i);s.scale(i,i,t/r)}return i},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},n.getTextAnchor=function(t){var e;return a.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},n.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=this.get("inner"),u=[];if(Math.abs(o-a)===2*Math.PI)u=[["M",e,n],["m",0,-r],["a",i,r,0,1,1,0,2*r],["a",i,r,0,1,1,0,-2*r],["z"]];else{var c=this._getCirclePoint(a),l=this._getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;if(s){var p=this.getSideVector(s*i,c),g=this.getSideVector(s*i,l),d={x:p[0]+e,y:p[1]+n},v={x:g[0]+e,y:g[1]+n};u=[["M",d.x,d.y],["L",c.x,c.y],["A",i,r,0,h,f,l.x,l.y],["L",v.x,v.y],["A",i*s,r*s,0,h,Math.abs(f-1),d.x,d.y]]}else u=[["M",e,n],["L",c.x,c.y],["A",i,r,0,h,f,l.x,l.y],["L",e,n]]}return u},n.addLabel=function(e,n,i){var r=this.get("label").offset||this.get("_labelOffset")||.001;n=this.getSidePoint(n,r),t.prototype.addLabel.call(this,e,n,i)},n.autoRotateLabels=function(){var t=this.get("ticks"),e=this.get("labelRenderer");if(e&&t.length>12){var n=this.get("radius"),i=this.get("startAngle"),r=this.get("endAngle")-i,o=r/(t.length-1),s=Math.sin(o/2)*n*2,u=this.getMaxLabelWidth(e);a.each(e.get("group").get("children"),function(e,n){var a=t[n].value*r+i,o=a%(2*Math.PI);u<s?(o<=0&&(a+=Math.PI),o>Math.PI&&(a-=Math.PI),a-=Math.PI/2,e.attr("textAlign","center")):o>Math.PI/2?a-=Math.PI:o<Math.PI/2*-1&&(a+=Math.PI),e.rotateAtStart(a)})}},e}(o);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil,u=a.PathUtil,c=s.vec2,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{inner:0,type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},n.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=u.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},n.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},n._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},n.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y];if(t){var r=c.length(i);c.scale(i,i,t/r)}return i},n.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},e}(o);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(31),o=n(3),s=o.MatrixUtil.vec2,u=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},n._getAvgLabelLength=function(t){var e=t.get("group").get("children");return e[1].attr("x")-e[0].attr("x")},n._getAvgLabelHeightSpace=function(t){var e=t.get("group").get("children");return e[1].attr("y")-e[0].attr("y")},n.getSideVector=function(t){var e=this.get("isVertical"),n=this.get("factor");if(!o.isNumber(t))return[0,0];var i=this.get("start"),r=this.get("end"),a=this.getAxisVector(),u=s.normalize([],a),c=!1;(e&&i.y<r.y||!e&&i.x>r.x)&&(c=!0);var l=s.vertical([],u,c);return s.scale([],l,t*n)},n.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},n.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},n.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},n.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),i=n.x-e.x,r=n.y-e.y;return{x:e.x+i*t,y:e.y+r*t}},n.renderTitle=function(){var t=this.get("title"),e=this.getTickPoint(.5),n=t.offset;if(o.isNil(n)){n=20;var i=this.get("labelsGroup");if(i){n+=this.getMaxLabelWidth(i)+(this.get("label").offset||this.get("_labelOffset"))}}var r=t.textStyle,a=o.mix({},r);if(t.text){var u=this.getAxisVector();if(t.autoRotate&&o.isNil(r.rotate)){var c=0;if(!o.snapEqual(u[1],0)){var l=[u[0],u[1]];c=s.angleTo(l,[1,0],!0)}a.rotate=c*(180/Math.PI)}else o.isNil(r.rotate)||(a.rotate=r.rotate/180*Math.PI);var h,f=this.getSideVector(n),p=t.position;h="start"===p?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===p?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:e.x+f[0],y:e.y+f[1]},a.x=h.x,a.y=h.y,a.text=t.text;var g=this.get("group").addShape("Text",{zIndex:2,attrs:a});g.name="axis-title",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this.get("labelRenderer"),e=this.get("title");if(t){var n=t.get("group").get("children"),i=this.get("label").offset,r=e?e.offset:48;if(r<0)return;var a,s,u=this.getAxisVector();if(o.snapEqual(u[0],0)&&e&&e.text)(s=this.getMaxLabelWidth(t))>r-i-12&&(a=-1*Math.acos((r-i-12)/s));else if(o.snapEqual(u[1],0)&&n.length>1){var c=Math.abs(this._getAvgLabelLength(t));(s=this.getMaxLabelWidth(t))>c&&(a=Math.asin(1.25*(r-i-12)/s))}if(a){var l=this.get("factor");o.each(n,function(t){t.rotateAtStart(a),o.snapEqual(u[1],0)&&(l>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},n.autoHideLabels=function(){var t,e,n=this.get("labelRenderer");if(n){var i=n.get("group").get("children"),r=this.getAxisVector();if(i.length<2)return;if(o.snapEqual(r[0],0)){var a=this.getMaxLabelHeight(n)+8,s=Math.abs(this._getAvgLabelHeightSpace(n));a>s&&(t=a,e=s)}else if(o.snapEqual(r[1],0)&&i.length>1){var u=this.getMaxLabelWidth(n)+8,c=Math.abs(this._getAvgLabelLength(n));u>c&&(t=u,e=c)}if(t&&e){var l=Math.ceil(t/e);o.each(i,function(t,e){e%l!=0&&t.attr("text","")})}}},e}(a);t.exports=u},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(31),s=a.MatrixUtil,u=a.PathUtil,c=s.vec2,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),i=[];i.push(e.x),i.push(e.y),a.each(t,function(t){i.push(t.x),i.push(t.y)}),i.push(n.x),i.push(n.y);var r=u.catmullRomToBezier(i);return r.unshift(["M",e.x,e.y]),r},n.getTickPoint=function(t,e){return this.get("tickPoints")[e]},n.getTickEnd=function(t,e,n){var i=this.get("tickLine"),r=e||i.length,a=this.getSideVector(r,t,n);return{x:t.x+a[0],y:t.y+a[1]}},n.getSideVector=function(t,e,n){var i;if(0===n){if((i=this.get("start")).x===e.x&&i.y===e.y)return[0,0]}else{i=this.get("tickPoints")[n-1]}var r=[e.x-i.x,e.y-i.y],a=c.normalize([],r),o=c.vertical([],a,!1);return c.scale([],o,t)},e}(o);t.exports=l},function(t,e,n){t.exports={Guide:n(15),Arc:n(317),DataMarker:n(318),DataRegion:n(319),Html:n(320),Image:n(321),Line:n(322),Region:n(323),Text:n(324)}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){var n,i=t.x-e.x,r=t.y-e.y;return 0===r?n=i<0?u/2:270*u/180:i>=0&&r>0?n=2*u-c(i/r):i<=0&&r<0?n=u-c(i/r):i>0&&r<0?n=u+c(-i/r):i<0&&r>0&&(n=c(i/-r)),n}var o=n(3),s=n(15),u=Math.PI,c=Math.atan,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end"));if(n&&i){var r,s=t.getCenter(),c=Math.sqrt((n.x-s.x)*(n.x-s.x)+(n.y-s.y)*(n.y-s.y)),l=a(n,s),h=a(i,s);if(h<l&&(h+=2*u),o.isNumberEqual(n.x,i.x)&&o.isNumberEqual(n.y,i.y)&&(this.get("start")[0]!==this.get("end")[0]||this.get("start")[1]!==this.get("end")[1]))r=[["M",n.x,n.y],["A",c,c,0,1,1,2*s.x-n.x,2*s.y-n.y],["A",c,c,0,1,1,n.x,n.y]];else{var f=(h-l)%(2*u)>u?1:0;r=[["M",n.x,n.y],["A",c,c,0,f,1,i.x,i.y]]}var p=e.addShape("path",{zIndex:this.get("zIndex"),attrs:o.mix({path:r},this.get("style"))});p.name="guide-arc",this.get("appendInfo")&&p.setSilent("appendInfo",this.get("appendInfo")),this.set("el",p)}},e}(s);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"dataMarker",zIndex:1,top:!0,position:null,style:{point:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2},line:{stroke:"#A3B1BF",lineWidth:1},text:{fill:"#000000",opacity:.65,fontSize:12,textAlign:"start"}},display:{point:!0,line:!0,text:!0},lineLength:20,direction:"upward",autoAdjust:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=e.addGroup();i.name="guide-data-marker";var r,a,o=this._getElementPosition(n),s=this.get("display");if(s.line){var u=o.line;r=this._drawLine(u,i)}if(s.text&&this.get("content")){var c=o.text;a=this._drawText(c,i)}if(s.point){var l=o.point;this._drawPoint(l,i)}if(this.get("autoAdjust")){var h=i.getBBox(),f=h.minX,p=h.minY,g=h.maxX,d=h.maxY,v=t.start,y=t.end;if(a){f<=v.x&&a.attr("textAlign","start"),g>=y.x&&a.attr("textAlign","end");var m=this.get("direction");if("upward"===m&&p<=y.y||"upward"!==m&&d>=v.y){var x,b;"upward"===m&&p<=y.y?(x="top",b=1):(x="bottom",b=-1),a.attr("textBaseline",x);var _=0;if(this.get("display").line){_=this.get("lineLength");var S=[["M",n.x,n.y],["L",n.x,n.y+_*b]];r.attr("path",S)}var w=n.y+(_+2)*b;a.attr("y",w)}}}this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo")),this.set("el",i)}},n._getElementPosition=function(t){var e=t.x,n=t.y,i=this.get("display").line?this.get("lineLength"):0,r=this.get("direction");this.get("style").text.textBaseline="upward"===r?"bottom":"top";var a="upward"===r?-1:1;return{point:{x:e,y:n},line:[{x:e,y:n},{x:e,y:i*a+n}],text:{x:e,y:(i+2)*a+n}}},n._drawLine=function(t,e){var n=this.get("style").line,i=[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]];return e.addShape("path",{attrs:a.mix({path:i},n)})},n._drawText=function(t,e){var n=this.get("style").text;return e.addShape("text",{attrs:a.mix({text:this.get("content")},n,t)})},n._drawPoint=function(t,e){var n=this.get("style").point;return e.addShape("circle",{attrs:a.mix({},n,t)})},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(155),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"dataRegion",start:null,end:null,content:"",style:{region:{lineWidth:0,fill:"#000000",opacity:.04},text:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:"rgba(0, 0, 0, .65)"}}})},n.render=function(t,e,n){var i=this.get("lineLength")||0,r=this._getRegionData(t,n);if(r.length){var o=this._getBBox(r),s=[];s.push(["M",r[0].x,o.yMin-i]);for(var u=0,c=r.length;u<c;u++){var l=["L",r[u].x,r[u].y];s.push(l)}s.push(["L",r[r.length-1].x,o.yMin-i]);var h=this.get("style"),f=h.region,p=h.text,g=e.addGroup();g.name="guide-data-region",g.addShape("path",{attrs:a.mix({path:s},f)});var d=this.get("content");d&&g.addShape("Text",{attrs:a.mix({x:(o.xMin+o.xMax)/2,y:o.yMin-i,text:d},p)}),this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),this.set("el",g)}},n._getRegionData=function(t,e){for(var n,i=this.get("start"),r=this.get("end"),s=o.getFirstScale(this.get("xScales")).field,u=o.getFirstScale(this.get("yScales")).field,c=a.isArray(i)?i[0]:i[s],l=a.isArray(r)?r[0]:r[s],h=[],f=0,p=e.length;f<p;f++){var g=e[f];if(g[s]===c&&(n=f),f>=n){var d=this.parsePoint(t,[g[s],g[u]]);d&&h.push(d)}if(g[s]===l)break}return h},n._getBBox=function(t){for(var e=[],n=[],i=0;i<t.length;i++)e.push(t[i].x),n.push(t[i].y);var r=a.arrayUtil.getRange(e),o=a.arrayUtil.getRange(n);return{xMin:r.min,xMax:r.max,yMin:o.min,yMax:o.max}},e}(n(15));t.exports=s},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=a.DomUtil,s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=e.get("canvas").get("el").parentNode,r=o.createDom('<div class="g-guide"></div>');i.appendChild(r);var s=this.get("htmlContent")||this.get("html");if(a.isFunction(s)){s=s(this.get("xScales"),this.get("yScales"))}var u=o.createDom(s);r.appendChild(u),o.modifyCSS(r,{position:"absolute"}),this._setDomPosition(r,u,n),this.set("el",r)}},n._setDomPosition=function(t,e,n){var i=this.get("alignX"),r=this.get("alignY"),a=o.getOuterWidth(e),s=o.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===i&&"top"===r?u.x-=Math.round(a/2):"middle"===i&&"bottom"===r?(u.x-=Math.round(a/2),u.y-=Math.round(s)):"left"===i&&"bottom"===r?u.y-=Math.round(s):"left"===i&&"middle"===r?u.y-=Math.round(s/2):"left"===i&&"top"===r?(u.x=n.x,u.y=n.y):"right"===i&&"bottom"===r?(u.x-=Math.round(a),u.y-=Math.round(s)):"right"===i&&"middle"===r?(u.x-=Math.round(a),u.y-=Math.round(s/2)):"right"===i&&"top"===r?u.x-=Math.round(a):(u.x-=Math.round(a/2),u.y-=Math.round(s/2));var c=this.get("offsetX");c&&(u.x+=c);var l=this.get("offsetY");l&&(u.y+=l),o.modifyCSS(t,{top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.get("zIndex")})},n.clear=function(){var t=this.get("el");t&&t.parentNode&&t.parentNode.removeChild(t)},e}(n(15));t.exports=s},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start"));if(n){var i={x:n.x,y:n.y};if(i.img=this.get("src"),this.get("end")){var r=this.parsePoint(t,this.get("end"));if(!r)return;i.width=r.x-n.x,i.height=r.y-n.y}else i.width=this.get("width")||32,i.height=this.get("height")||32;this.get("offsetX")&&(i.x+=this.get("offsetX")),this.get("offsetY")&&(i.y+=this.get("offsetY"));var a=e.addShape("Image",{zIndex:1,attrs:i});a.name="guide-image",this.get("appendInfo")&&a.setSilent("appendInfo",this.get("appendInfo")),this.set("el",a)}},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(15),s=a.MatrixUtil.vec2,u=n(14).FONT_FAMILY,c=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:u},content:null}})},n.render=function(t,e){var n=this.parsePoint(t,this.get("start")),i=this.parsePoint(t,this.get("end"));if(n&&i){var r=e.addGroup({viewId:e.get("viewId")});this._drawLines(n,i,r);var a=this.get("text");a&&a.content&&this._drawText(n,i,r),this.set("el",r)}},n._drawLines=function(t,e,n){var i=[["M",t.x,t.y],["L",e.x,e.y]],r=n.addShape("Path",{attrs:a.mix({path:i},this.get("lineStyle"))});r.name="guide-line",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var i,r=this.get("text"),o=r.position,u=r.style||{};((i="start"===o?0:"center"===o?.5:a.isString(o)&&-1!==o.indexOf("%")?parseInt(o,10)/100:a.isNumber(o)?o:1)>1||i<0)&&(i=1);var c={x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i};if(r.offsetX&&(c.x+=r.offsetX),r.offsetY&&(c.y+=r.offsetY),c.text=r.content,c=a.mix({},c,u),r.autoRotate&&a.isNil(u.rotate)){var l=s.angleTo([e.x-t.x,e.y-t.y],[1,0],1);c.rotate=l}else a.isNil(u.rotate)||(c.rotate=u.rotate*Math.PI/180);var h=n.addShape("Text",{attrs:c});h.name="guide-line-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"))},e}(o);t.exports=c},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},n.render=function(t,e){var n=this.get("style"),i=this._getPath(t);if(i.length){var r=e.addShape("path",{zIndex:this.get("zIndex"),attrs:a.mix({path:i},n)});r.name="guide-region",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("el",r)}},n._getPath=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end"));if(!e||!n)return[];return[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]]},e}(n(15));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null,top:!0})},n.render=function(t,e){var n=this.parsePoint(t,this.get("position"));if(n){var i=a.mix({},this.get("style")),r=this.get("offsetX"),o=this.get("offsetY");r&&(n.x+=r),o&&(n.y+=o),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:this.get("zIndex"),attrs:a.mix({text:this.get("content")},i,n)});s.name="guide-text",this.get("appendInfo")&&s.setSilent("appendInfo",this.get("appendInfo")),this.set("el",s)}},e}(n(15));t.exports=o},function(t,e,n){var i=n(153);t.exports=i},function(t,e,n){t.exports={Category:n(156),CatHtml:n(158),CatPageHtml:n(327),Color:n(328),Size:n(330),CircleSize:n(331)}},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return t.getElementsByClassName(e)[0]}var o=n(3),s=n(158),u=n(14).FONT_FAMILY,c=o.DomUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:u,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'<div class="g2-slip" ><svg viewBox="64 64 896 896" class="g2-caret-up" data-icon="left" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 0 0 0 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"></path></svg><p class="cur-pagenum" style = "display:inline-block;vertical-align:middle;">1</p><p class="next-pagenum" style = "display:inline-block;vertical-align:middle;"">/2</p><svg viewBox="64 64 896 896" class="g2-caret-down" data-icon="right" style = "display:inline-block;vertical-align:middle;" width="1em" height="1em" aria-hidden="true"><path d="M765.7 486.8L314.9 134.7A7.97 7.97 0 0 0 302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 0 0 0-50.4z"></path></svg></div>',slipWidth:65,legendOverflow:"unset"})},n.render=function(){t.prototype._renderHTML.call(this),this._renderFlipPage()},n._renderFlipPage=function(){var t=this.get("legendWrapper"),e=a(t,"g2-legend-list"),n=this.get("position"),i=this.get("layout"),r="right"===n||"left"===n||"vertical"===i,s=r?"block":"inline-block",u=t.offsetHeight;if(t.scrollHeight>u){var l=this.get("slipTpl"),h=c.createDom(l),f=a(h,"g2-caret-up"),p=a(h,"g2-caret-down");c.modifyCSS(f,this.get("caretStyle")),c.modifyCSS(f,{fill:"rgba(0,0,0,0.25)"}),c.modifyCSS(p,this.get("caretStyle"));var g=a(h,"cur-pagenum"),d=a(h,"next-pagenum"),v=this.get("pageNumStyle");if(c.modifyCSS(g,o.mix({},v,{paddingLeft:"10px"})),c.modifyCSS(d,o.mix({},v,{opacity:.3,paddingRight:"10px"})),c.modifyCSS(h,o.mix({},this.get("slipDomStyle"),r?{top:u+"px"}:{right:0,top:"50%",transform:"translate(0, -50%)"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(h),!r){var y=Math.max(t.offsetWidth-10-h.offsetWidth,0);c.modifyCSS(e,{maxWidth:y+"px"})}for(var m=e.childNodes,x=0,b=1,_=[],S=0;S<m.length;S++)m[S].style.display=s,(x=m[S].offsetTop+m[S].offsetHeight)>u&&(b++,_.forEach(function(t){t.style.display="none"}),_=[]),_.push(m[S]);d.innerText="/"+b,m.forEach(function(t){t.style.display=s,(x=t.offsetTop+t.offsetHeight)>u&&(t.style.display="none")}),f.addEventListener("click",function(){if(m[0].style.display!==s){var t=-1;m.forEach(function(e,n){e.style.display===s&&(t=-1===t?n:t,e.style.display="none")});for(var e=t-1;e>=0&&(m[e].style.display=s,x=m[t-1].offsetTop+m[t-1].offsetHeight,m[e].style.display="none",x<=u);e--)m[e].style.display=s;var n=Number.parseInt(g.innerText,10)-1;f.style.fill=1===n?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",p.style.fill="rgba(0,0,0,0.65)",g.innerText=n}}),p.addEventListener("click",function(){if(m[m.length-1].style.display!==s){var t=-1;m.forEach(function(e,n){e.style.display===s&&(t=n,e.style.display="none")});for(var e=t+1;e<m.length&&(m[e].style.display=s,x=m[e].offsetTop+m[e].offsetHeight,m[e].style.display="none",x<=u);e++)m[e].style.display=s;var n=Number.parseInt(g.innerText,10)+1;p.style.fill=n===b?"rgba(0,0,0,0.25)":"rgba(0,0,0,0.65)",f.style.fill="rgba(0,0,0,0.65)",g.innerText=n}}),this.set("slipDom",h)}},n.destroy=function(){var e=this.get("slipDom");e&&e.parentNode&&e.parentNode.removeChild(e),t.prototype.destroy.call(this)},e}(s);t.exports=l},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(73).ColorUtil,o=n(3),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"color-legend",layout:"vertical",triggerAttr:{fill:"#fff",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc",radius:3},isSegment:!1})},n._setPercentage=function(){var t=this.get("items");if(!t[0].percentage){var e=t[0].value,n=t[t.length-1].value;o.each(t,function(t){t.percentage=(t.value-e)/(n-e)})}},n._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider").get("backgroundElement"),n=this.get("width"),i=this.get("height"),r=this.get("layout"),s=this.get("items"),u="";return"vertical"===r?(u+="l (90) ",o.each(s,function(e){t=a.toRGB(e.color),u+=1-e.percentage+":"+t+" "})):(u+="l (0) ",o.each(s,function(e){t=a.toRGB(e.color),u+=e.percentage+":"+t+" "})),this._addMiddleBar(e,"Rect",{x:0,y:0,width:n,height:i,fill:u,strokeOpacity:0})},n._renderUnslidable=function(){this._setPercentage();var t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var n,i=this.get("width"),r=this.get("height"),s=this.get("layout"),u=this.get("items"),c="",l=[],h=this.get("group").addGroup(),f=u.length;if("vertical"===s){c+="l (90) ";for(var p=0;p<f;p+=1){if(0!==p&&p!==f-1&&(l.push(["M",0,r-u[p].percentage*r]),l.push(["L",i,r-u[p].percentage*r])),n=a.toRGB(u[p].color),c+=1-u[p].percentage+":"+n+" ",this.get("isSegment")&&p>0){var g=a.toRGB(u[p-1].color);c+=1-u[p].percentage+":"+g+" "}h.addShape("text",{attrs:o.mix({},{x:i+this.get("textOffset")/2,y:r-u[p].percentage*r,text:this._formatItemValue(u[p].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{c+="l (0) ";for(var d=0;d<f;d+=1){if(0!==d&&d!==f-1&&(l.push(["M",u[d].percentage*i,0]),l.push(["L",u[d].percentage*i,r])),n=a.toRGB(u[d].color),this.get("isSegment")&&d>0){var v=a.toRGB(u[d-1].color);c+=u[d].percentage+":"+v+" "}c+=u[d].percentage+":"+n+" ",h.addShape("text",{attrs:o.mix({},{x:u[d].percentage*i,y:r+5+this.get("textOffset"),text:this._formatItemValue(u[d].value)+""},this.get("textStyle"))})}}h.addShape("rect",{attrs:{x:0,y:0,width:i,height:r,fill:c,strokeOpacity:0}}),h.addShape("path",{attrs:o.mix({path:l},this.get("lineStyle"))}),h.move(0,e)},e}(n(68));t.exports=s},function(t,e,n){var i=n(3),r=i.DomUtil,a=i.Group,o=function t(e){t.superclass.constructor.call(this,e)};i.extend(o,a),i.augment(o,{getDefaultCfg:function(){return{range:null,middleAttr:{fill:"#fff",fillOpacity:0},backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},_beforeRenderUI:function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),i=this.get("maxHandleElement"),r=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,i]),this.set("middleHandleElement",r),e.set("zIndex",0),r.set("zIndex",1),n.set("zIndex",2),i.set("zIndex",2),r.attr("cursor","move"),n.attr("cursor",a),i.attr("cursor",a),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,i=e[1]/100,r=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix(),s.resetMatrix(),"horizontal"===t?(u.attr({x:r*n,y:0,width:(i-n)*r,height:a}),o.translate(n*r,a),s.translate(i*r,a)):(u.attr({x:0,y:a*(1-i),width:r,height:(i-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-i)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",i.wrapBehavior(this,"_onMouseDown"))},_isElement:function(t,e){var n=this.get(e);if(t===n)return!0;if(n.isGroup){return n.get("children").indexOf(t)>-1}return!1},_getRange:function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},_updateStatus:function(t,e){var n="x"===t?this.get("width"):this.get("height");t=i.upperFirst(t);var r,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),c="vertical"===this.get("layout")?-1:1,l=e["page"+t],h=(l-o)/n*100*c;a[1]<=a[0]?(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(h,a[0]),a[1]=this._getRange(h,a[0])):(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(h,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(h,a[1]))),this._isElement(s,"middleHandleElement")&&(r=u[1]-u[0],a[0]=this._getRange(h,a[0]),a[1]=a[0]+r,a[1]>100&&(a[1]=100,a[0]=a[1]-r)),this.emit("sliderchange",{range:a}),this.set("page"+t,l),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,i=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[i[0],i[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=r.addEventListener(t,"mousemove",i.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=r.addEventListener(t,"mouseup",i.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=r.addEventListener(t,"mouseleave",i.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(t){if(!this._mouseOutArea(t)){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)}},_onCanvasMouseUp:function(){this._removeDocumentEvents()},_removeDocumentEvents:function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},_mouseOutArea:function(t){var e=this.get("canvas").get("el").getBoundingClientRect(),n=this.get("parent"),i=n.getBBox(),r=n.attr("matrix")[6],a=n.attr("matrix")[7],o=r+i.width,s=a+i.height,u=t.clientX-e.x,c=t.clientY-e.y;return u<r||u>o||c<a||c>s}}),t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"size-legend",width:100,height:200,_unslidableElementStyle:{fill:"#4E7CCC",fillOpacity:1},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n=this.get("width"),i=this.get("height"),r=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[n-4,i]]:[[0,r+i/2],[0,r+i/2-4],[n,r-i/2],[n,r+i/2]];return this._addMiddleBar(t,"Polygon",a.mix({points:s},o))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),i=this.get("frontMiddleBarStyle"),r="vertical"===t?[[0,0],[e,0],[e,n],[e-4,n]]:[[0,n],[0,n-4],[e,0],[e,n]];this.get("group").addGroup().addShape("Polygon",{attrs:a.mix({points:r},i)});var o=this._formatItemValue(this.get("firstItem").value),s=this._formatItemValue(this.get("lastItem").value);"vertical"===this.get("layout")?(this._addText(e+10,n-3,o),this._addText(e+10,3,s)):(this._addText(0,n,o),this._addText(e,n,s))},n._addText=function(t,e,n){var i=this.get("group").addGroup(),r=this.get("textStyle"),o=this.get("titleShape"),s=this.get("titleGap");o&&(s+=o.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:a.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},r)}):(e+=s+this.get("textOffset")-20,o||(e+=10),i.addShape("text",{attrs:a.mix({x:t,y:e,text:0===n?"0":n},r)}))},e}(n(68));t.exports=o},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"size-circle-legend",width:100,height:200,_unslidableCircleStyle:{stroke:"rgb(99, 161, 248)",fill:"rgb(99, 161, 248)",fillOpacity:.3,lineWidth:1.5},triggerAttr:{fill:"white",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10,shadowColor:"#ccc"},frontMiddleBarStyle:{fill:"rgb(64, 141, 251)"}})},n._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("layout"),n="vertical"===e?2:this.get("width"),i="vertical"===e?this.get("height"):2,r=this.get("height")/2,o=this.get("frontMiddleBarStyle"),s="vertical"===e?[[0,0],[n,0],[n,i],[0,i]]:[[0,r+i],[0,r-i],[5+n-4,r-i],[5+n-4,r+i]];return this._addMiddleBar(t,"Polygon",a.mix({points:s},o))},n._addHorizontalTrigger=function(t,e,n,i){var r=this.get("slider").get(t+"HandleElement"),o=-this.get("height")/2,s=r.addShape("circle",{attrs:a.mix({x:0,y:o,r:i},e)}),u=r.addShape("text",{attrs:a.mix(n,{x:0,y:o+i+10,textAlign:"center",textBaseline:"middle"})}),c="vertical"===this.get("layout")?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._addVerticalTrigger=function(t,e,n,i){var r=this.get("slider").get(t+"HandleElement"),o=r.addShape("circle",{attrs:a.mix({x:0,y:0,r:i},e)}),s=r.addShape("text",{attrs:a.mix(n,{x:i+10,y:0,textAlign:"start",textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),s.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),i=this.get("textStyle"),r=this.get("triggerAttr"),o=a.mix({},r),s=a.mix({},r),u=a.mix({text:this._formatItemValue(t.value)+""},i),c=a.mix({text:this._formatItemValue(e.value)+""},i);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,c,16)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,c,16))},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,i=t.get("firstItem").value,r=t.get("lastItem").value,a=i+n[0]/100*(r-i),o=i+n[1]/100*(r-i),s=5+n[0]/100*11,u=5+n[1]/100*11;t._updateElement(a,o,s,u);var c=new Event("itemfilter",e,!0,!0);c.range=[a,o],t.emit("itemfilter",c)})}},n._updateElement=function(e,n,i,r){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");s.attr("r",i),u.attr("r",r);if("vertical"===this.get("layout"))a.attr("x",i+10),o.attr("x",r+10);else{var c=-this.get("height")/2;a.attr("y",c+i+10),o.attr("y",c+r+10)}},n._addCircle=function(t,e,n,i,r){var o=this.get("group").addGroup(),s=this.get("_unslidableCircleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),l=this.get("titleGap");c&&(l+=c.getBBox().height),o.addShape("circle",{attrs:a.mix({x:t,y:e+l,r:0===n?1:n},s)}),"vertical"===this.get("layout")?o.addShape("text",{attrs:a.mix({x:r+20+this.get("textOffset"),y:e+l,text:0===i?"0":i},u)}):o.addShape("text",{attrs:a.mix({x:t,y:e+l+r+13+this.get("textOffset"),text:0===i?"0":i},u)})},n._renderUnslidable=function(){var t=this.get("firstItem").value,e=this.get("lastItem").value;if(t>e){var n=e;e=t,t=n}var i=this._formatItemValue(t),r=this._formatItemValue(e),a=t<5?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,i,2*o),this._addCircle(o,2*o+16+a,o,r,2*o)):(this._addCircle(o,o,a,i,2*o),this._addCircle(2*o+16+a,o,o,r,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(n(68));t.exports=o},function(t,e,n){var i=n(69);i.Html=n(333),i.Canvas=n(162),i.Mini=n(335),t.exports=i},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t){return function(){var e,n=o(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=o(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return a(t)}(this,e)}}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(t,e){return t.getElementsByClassName(e)[0]}var u=n(20),c=n(69),l=n(3),h=l.DomUtil,f=n(334),p=n(159),g=n(160),d=n(161),v=u.Marker,y=function(t){function e(e){var n;n=t.call(this,e)||this,l.assign(a(n),g),l.assign(a(n),d);var i=f;n.style=function(t,e){return Object.keys(t).forEach(function(n){e[n]&&(t[n]=l.mix(t[n],e[n]))}),t}(i,e),n._init_(),n.get("items")&&n.render();var r=n.get("crosshairs");if(r){var o="rect"===r.type?n.get("backPlot"):n.get("frontPlot"),s=new p(l.mix({plot:o,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));s.hide(),n.set("crosshairGroup",s)}return n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);r(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{containerTpl:' <div class="g2-tooltip"> <div class="g2-tooltip-title"></div><ul class="g2-tooltip-list"></ul></div>',itemTpl:'<li data-index={index}>\n <svg viewBox="0 0 5 5" class="g2-tooltip-marker"></svg>\n {name}<span class="g2-tooltip-value">{value}</span></li>',htmlContent:null,follow:!0,enterable:!1})},n._init_=function(){var t,e=this.get("containerTpl"),n=this.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(e)){var i=e.replace("#","");t=document.getElementById(i)}else t=h.createDom(e),h.modifyCSS(t,this.style["g2-tooltip"]),n.appendChild(t),n.style.position="relative";this.set("container",t)}},n.render=function(){if(this.clear(),this.get("htmlContent")){var t=this.get("canvas").get("el").parentNode,e=this._getHtmlContent();t.appendChild(e),this.set("container",e)}else this._renderTpl()},n._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),i=t.get("container"),r=s(i,"g2-tooltip-title"),a=s(i,"g2-tooltip-list"),o=t.get("items");r&&e&&(h.modifyCSS(r,t.style["g2-tooltip-title"]),r.innerHTML=n),a&&(h.modifyCSS(a,t.style["g2-tooltip-list"]),l.each(o,function(e,n){a.appendChild(t._addItem(e,n))}))},n.clear=function(){var t=this.get("container");if(this.get("htmlContent"))t&&t.remove();else{var e=s(t,"g2-tooltip-title"),n=s(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")}},n.show=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="visible",e.style.display="block";var n=this.get("crosshairGroup");n&&n.show();var i=this.get("markerGroup");i&&i.show(),t.prototype.show.call(this),this.get("canvas").draw()}},n.hide=function(){var e=this.get("container");if(e&&!this.destroyed){e.style.visibility="hidden",e.style.display="none";var n=this.get("crosshairGroup");n&&n.hide();var i=this.get("markerGroup");i&&i.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},n.destroy=function(){var e=this.get("container"),n=this.get("containerTpl");e&&!/^\#/.test(n)&&e.parentNode.removeChild(e);var i=this.get("crosshairGroup");i&&i.destroy();var r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this)},n._getMarkerSvg=function(t){var e,n=t.marker||{},i=n.activeSymbol||n.symbol;l.isFunction(i)?e=i:l.isString(i)&&(e=v.Symbols[i]);return'<path d="'+(e=l.isFunction(e)?e:v.Symbols.circle)(2.5,2.5,2.5).reduce(function(t,e){return""+t+e[0]+e.slice(1).join(",")},"")+'" fill="'+(n.fill||"none")+'" stroke="'+(n.stroke||"none")+'" />'},n._addItem=function(t,e){var n=this.get("itemTpl"),r=l.substitute(n,l.mix({index:e},t)),a=h.createDom(r);h.modifyCSS(a,this.style["g2-tooltip-list-item"]);var o=s(a,"g2-tooltip-marker");if(o){h.modifyCSS(o,i({},this.style["g2-tooltip-marker"],{borderRadius:"unset"}));var u=this._getMarkerSvg(t);o.innerHTML=u}var c=s(a,"g2-tooltip-value");return c&&h.modifyCSS(c,this.style["g2-tooltip-value"]),a},n._getHtmlContent=function(){var t=this.get("htmlContent")(this.get("titleContent"),this.get("items"));return h.createDom(t)},n.setPosition=function(e,n,i){var r,a=this.get("container"),o=this.get("canvas").get("el"),s=h.getWidth(o),u=h.getHeight(o),c=a.clientWidth,f=a.clientHeight,p=e,g=n,d=this.get("prePosition")||{x:0,y:0};if(c||(a.style.display="block",c=a.clientWidth,f=a.clientHeight,a.style.display="none"),this.get("enterable")?(r=[e,n-=a.clientHeight/2],d&&e-d.x>0?e-=a.clientWidth+1:e+=1):this.get("position")?(e=(r=this._calcTooltipPosition(e,n,this.get("position"),c,f,i))[0],n=r[1]):(e=(r=this._constraintPositionInBoundary(e,n,c,f,s,u))[0],n=r[1]),this.get("inPlot")){var v=this.get("plotRange");e=(r=this._constraintPositionInPlot(e,n,c,f,v,this.get("enterable")))[0],n=r[1]}var y=this.get("markerItems");l.isEmpty(y)||(p=y[0].x,g=y[0].y),this.set("prePosition",r);this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var m=this.get("crosshairGroup");if(m){var x=this.get("items");m.setPosition(p,g,x)}t.prototype.setPosition.call(this,e,n)},e}(c);t.exports=y},function(t,e,n){var i,r=n(14).FONT_FAMILY,a=(i={crosshairs:!1,offset:15},i["g2-tooltip"]={position:"absolute",visibility:"hidden",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:r,lineHeight:"20px",padding:"10px 10px 6px 10px"},i["g2-tooltip-title"]={marginBottom:"4px"},i["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},i["g2-tooltip-list-item"]={marginBottom:"4px"},i["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},i);t.exports=a},function(t,e,n){function i(t){return function(){var e,n=r(t);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()){var i=r(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,e)}}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var a=n(3),o=n(162),s=n(14).FONT_FAMILY,u=a.DomUtil,c=a.MatrixUtil,l=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);i(e);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:s,fontSize:12,stroke:"#fff",lineWidth:2,fill:"black",textBaseline:"top",textAlign:"start"},padding:{top:5,right:5,bottom:0,left:5},triangleWidth:10,triangleHeight:4})},n._init_=function(){var t=this.get("padding"),e=this.get("frontPlot").addGroup();this.set("container",e);var n=e.addShape("rect",{attrs:a.mix({},this.get("boardStyle"))});this.set("board",n);var i=e.addShape("path",{attrs:{fill:this.get("boardStyle").fill}});this.set("triangleShape",i);var r=e.addGroup();r.move(t.left,t.top);var o=r.addShape("text",{attrs:a.mix({},this.get("valueStyle"))});this.set("valueShape",o)},n.render=function(){this.clear();var t=this.get("board"),e=this.get("valueShape"),n=this.get("padding"),i=this.get("items")[0];e&&e.attr("text",i.value);var r=e?e.getBBox():{width:80,height:30},a=n.left+r.width+n.right,o=n.top+r.height+n.bottom;t.attr("width",a),t.attr("height",o),this._centerTriangleShape()},n.clear=function(){this.get("valueShape").attr("text","")},n.setPosition=function(t,e,n){var i=this.get("container"),r=this.get("plotRange"),a=i.getBBox(),o=a.width,s=a.height;if(t-=o/2,n&&("point"===n.name||"interval"===n.name)){e=n.getBBox().y}if(e-=s,this.get("inPlot"))t<r.tl.x?(t=r.tl.x,this._leftTriangleShape()):t+o/2>r.tr.x?(t=r.tr.x-o,this._rightTriangleShape()):this._centerTriangleShape(),e<r.tl.y?e=r.tl.y:e+s>r.bl.y&&(e=r.bl.y-s);else{var l=this.get("canvas").get("el"),h=u.getWidth(l),f=u.getHeight(l);t<0?(t=0,this._leftTriangleShape()):t+o/2>h?(t=h-o,this._rightTriangleShape()):this._centerTriangleShape(),e<0?e=0:e+s>f&&(e=f-s)}var p=c.transform([1,0,0,0,1,0,0,0,1],[["t",t,e]]);i.stopAnimate(),i.animate({matrix:p},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]];t.attr("path",o),t.move(r/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox().height,r=[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]];t.attr("path",r),t.move(0,i-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),i=this.get("board").getBBox(),r=i.width,a=i.height,o=[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]];t.attr("path",o),t.move(r-e-1,a-4)},e}(o);t.exports=l},function(t,e,n){var i=n(0).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var r=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);for(var u,c,l,h=function(t,e,n,r){var a,o,s,u,c=[],l=!!r;if(l){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,f=t.length;h<f;h++){var p=t[h];s=i.min([],s,p),u=i.max([],u,p)}s=i.min([],s,r[0]),u=i.max([],u,r[1])}for(var g=0,d=t.length;g<d;g++){var v=t[g];if(n)a=t[g?g-1:d-1],o=t[(g+1)%d];else{if(0===g||g===d-1){c.push(v);continue}a=t[g-1],o=t[g+1]}var y=[];y=i.sub(y,o,a),y=i.scale(y,y,e);var m=i.distance(v,a),x=i.distance(v,o),b=m+x;0!==b&&(m/=b,x/=b);var _=i.scale([],y,-m),S=i.scale([],y,x),w=i.add([],v,_),M=i.add([],v,S);l&&(w=i.max([],w,s),w=i.min([],w,u),M=i.max([],M,s),M=i.min([],M,u)),c.push(w),c.push(M)}return n&&c.push(c.shift()),c}(a,.4,r,n),f=a.length,p=[],g=0;g<f-1;g++)u=h[2*g],c=h[2*g+1],l=a[g+1],p.push(["C",u[0],u[1],c[0],c[1],l[0],l[1]]);return r&&(u=h[f],c=h[f+1],l=a[0],p.push(["C",u[0],u[1],c[0],c[1],l[0],l[1]])),p}}},function(t,e,n){function i(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var r=n(0),a=n(163),o=n(23),s=n(7),u=function t(e){t.superclass.constructor.call(this,e)};r.extend(u,a),r.augment(u,{getDefaultCfg:function(){return{label:s.thetaLabels}},getDefaultOffset:function(t){return t.offset||0},adjustItems:function(t){var e=t[0]?t[0].offset:0;return e>0&&(t=this._distribute(t,e)),u.superclass.adjustItems.call(this,t)},_distribute:function(t,e){var n=this.get("coord"),i=n.getRadius(),r=this.get("label").labelHeight,a=n.getCenter(),o=2*(i+e)+2*r,s={start:n.start,end:n.end},u=this.get("geom");if(u){var c=u.get("view");s=c.getViewRegion()}var l=[[],[]];return t.forEach(function(t){t&&("right"===t.textAlign?l[0].push(t):l[1].push(t))}),l.forEach(function(t,e){var n=parseInt(o/r,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,i,r){var a,o=!0,s=n.start,u=n.end,c=Math.min(s.y,u.y),l=Math.abs(s.y-u.y),h=0,f=Number.MIN_VALUE,p=t.map(function(t){return t.y>h&&(h=t.y),t.y<f&&(f=t.y),{size:e,targets:[t.y-c]}});for(f-=c,h-c>l&&(l=h-c);o;)for(p.forEach(function(t){var e=(Math.min.apply(f,t.targets)+Math.max.apply(f,t.targets))/2;t.pos=Math.min(Math.max(f,e-t.size/2),l-t.size)}),o=!1,a=p.length;a--;)if(a>0){var g=p[a-1],d=p[a];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),g.pos+g.size>l&&(g.pos=l-g.size),p.splice(a,1),o=!0)}a=0,p.forEach(function(n){var i=c+e/2;n.targets.forEach(function(){t[a].y=n.pos+i,i+=e,a++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var a=Math.sqrt(e-n);t.x=r?i.x+a:i.x-a}})}(t,r,s,a,e)}),l[0].concat(l[1])},lineToLabel:function(t){var e=this.get("coord"),n=e.getRadius(),r=t.offset,a=t.orignAngle||t.angle,o=e.getCenter(),s=i(o,a,n+2.5),u=i(o,a,n+r/2);t.labelLine||(t.labelLine=this.get("label").labelLine||{}),t.labelLine.path=["M"+s.x,s.y+" Q"+u.x,u.y+" "+t.x,t.y].join(",")},getLabelRotate:function(t,e){var n;return e<0&&((n=180*t/Math.PI)>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},getLabelAlign:function(t){var e,n=this.get("coord").getCenter();e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right";return this.getDefaultOffset(t)<=0&&(e="right"===e?"left":"right"),e},getArcPoint:function(t){return t},getPointAngle:function(t){var e=this.get("coord"),n={x:r.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var i={x:r.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(i);var a,s=o.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)a=s;else{var u=o.getPointAngle(e,i);s>=u&&(u+=2*Math.PI),a=s+(u-s)/2}return a},getCirclePoint:function(t,e){var n=this.get("coord"),r=n.getCenter(),a=n.getRadius()+e,o=i(r,t,a);return o.angle=t,o.r=a,o}}),t.exports=u},function(t,e,n){var i=n(0),r=n(66),a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{setLabelPosition:function(t,e,n,r){i.isFunction(r)&&(r=r(t.text,e._origin,n));var a=this.get("coord"),o=a.isTransposed,s=a.convertPoint(e.points[0]),u=a.convertPoint(e.points[2]),c=(s.x-u.x)/2*(o?-1:1),l=(s.y-u.y)/2*(o?-1:1);switch(r){case"right":o?(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"center"):(t.x-=c,t.y+=l,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=c,t.y-=l,t.textAlign=t.textAlign||"center"):(t.x+=c,t.y+=l,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*c,t.textAlign=t.textAlign||"left"):(t.y+=2*l,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=c:t.y+=l,t.textAlign=t.textAlign||"center";break;case"top":t.textAlign=o?t.textAlign||"left":t.textAlign||"center"}}}),t.exports=a},function(t,e,n){function i(t){return t.alias||t.field}var r=n(0),a=n(7).defaultColor,o={_getIntervalSize:function(t){var e=null,n=this.get("type"),i=this.get("coord");if(i.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=i.isTransposed?"y":"x";if(r.isArray(t[a])){e=e<Math.abs(t[a][1]-t[a][0])?null:e}}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:r.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),i=this.getXScale(),r=n.invert(t).x;return this.isInCircle()&&r>(1+i.rangeMax())/2&&(r=i.rangeMin()),e=i.invert(r),i.isCategory&&(e=i.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),i=e.field,r=n.field,a=this.get("coord").invert(t),o=e.invert(a.x),s=n.invert(a.y),u={};return u[i]=o,u[r]=s,u},_getScale:function(t){var e=this.get("scales"),n=null;return r.each(e,function(e){if(e.field===t)return n=e,!1}),n},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();r.each(e,function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1});var n=this.getXScale(),i=this.getYScale();return!t&&i&&"..y"===i.field?n:t||i||n},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e,n=this.getAttr("position").getFields();return r.each(n,function(t){if(!t.includes(".."))return e=t,!1}),this._getScale(e)},_filterValue:function(t,e){var n=this.get("coord"),i=this.getYScale(),a=i.field,o=n.invert(e).y;o=i.invert(o);var s=t[t.length-1];return r.each(t,function(t){var e=t._origin;if(e[a][0]<=o&&e[a][1]>=o)return s=t,!1}),s},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,i=e.translate(n[0]),a=i;r.each(n,function(t){(t=e.translate(t))<i&&(i=t),t>a&&(a=t)});var o=n.length;t=(a-i)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,e){var n=this,i=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,c=null;if(r.indexOf(["heatmap","point"],i)>-1){var l=n.get("coord").invert(t),h=a.invert(l.x),f=o.invert(l.y),p=1/0;return r.each(e,function(t){var e=Math.pow(t._origin[s]-h,2)+Math.pow(t._origin[u]-f,2);e<p&&(p=e,c=t)}),c}var g=e[0],d=e[e.length-1];if(!g)return c;var v=n._getScaleValueByPoint(t),y=g._origin[s],m=g._origin[u],x=d._origin[s],b=o.isLinear&&r.isArray(m);if(r.isArray(y))r.each(e,function(t){var e=t._origin;if(a.translate(e[s][0])<=v&&a.translate(e[s][1])>=v){if(!b)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}}),r.isArray(c)&&(c=this._filterValue(c,t));else{var _;if(a.isLinear||"timeCat"===a.type){if((v>a.translate(x)||v<a.translate(y))&&(v>a.max||v<a.min))return null;for(var S,w=0,M=e.length-1;w<=M;){S=Math.floor((w+M)/2);var k=e[S]._origin[s];if(n._snapEqual(k,v,a))return e[S];a.translate(k)<=a.translate(v)?(w=S+1,d=e[S],_=e[S+1]):(0===M&&(d=e[0]),M=S-1)}}else r.each(e,function(t,i){var o=t._origin;if(n._snapEqual(o[s],v,a)){if(!b)return c=t,!1;r.isArray(c)||(c=[]),c.push(t)}else a.translate(o[s])<=v&&(d=t,_=e[i+1])}),r.isArray(c)&&(c=this._filterValue(c,t));d&&_&&Math.abs(a.translate(d._origin[s])-v)>Math.abs(a.translate(_._origin[s])-v)&&(d=_)}var C=n.getXDistance();return!c&&Math.abs(a.translate(d._origin[s])-v)<=C/2&&(c=d),c},getTipTitle:function(t,e){var n="",i=this._getTipTitleScale(e);if(i){var r=t[i.field];n=i.getText(r)}else if("heatmap"===this.get("type")){var a=this.getXScale(),o=this.getYScale();n="( "+a.getText(t[a.field])+", "+o.getText(t[o.field])+" )"}return n},getTipValue:function(t,e){var n,i=e.field,a=t.key;if(n=t[i],r.isArray(n)){var o=[];r.each(n,function(t){o.push(e.getText(t))}),n=o.join("-")}else n=e.getText(n,a);return n},getTipName:function(t){var e,n,a=this._getGroupScales();if(a.length&&r.each(a,function(t){return n=t,!1}),n){var o=n.field;e=n.getText(t[o])}else{e=i(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,i){if(!r.isNil(n)&&""!==n){var o={title:l,point:t,name:e||l,value:n,color:t.color||a,marker:!0};o.size=u._getIntervalSize(t),f.push(r.mix({},o,i))}}var o,s,u=this,c=t._origin,l=u.getTipTitle(c,e),h=u.get("tooltipCfg"),f=[];if(h){var p=h.fields,g=h.cfg,d=[];if(r.each(p,function(t){d.push(c[t])}),g){r.isFunction(g)&&(g=g.apply(null,d));var v=r.mix({},{point:t,title:l,color:t.color||a,marker:!0},g);v.size=u._getIntervalSize(t),f.push(v)}else r.each(p,function(t){if(!r.isNil(c[t])){var e=u._getScale(t);o=i(e),s=e.getText(c[t]),n(o,s)}})}else{var y=u._getTipValueScale();r.isNil(c[y.field])||(s=u.getTipValue(c,y),n(o=u.getTipName(c),s))}return f},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),i=this.get("view");if(t=i.get("parent")?i.get("parent").get("options"):i.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!r.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&r.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}};t.exports=o},function(t,e,n){function i(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,i){if(!function(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isEqual(n,i)}(e,t[i]))return n=!0,!1}),n}function r(t,e){var n={};return a.each(t,function(t,i){var r=e.attr(i);a.isArray(r)&&(r=a.cloneDeep(r)),n[i]=r}),n}var a=n(0),o=n(164),s={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",a.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",a.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",a.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",a.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),i=n.shape||this.getDefaultValue("shape");a.isArray(i)&&(i=i[0]);var s=this.get("shapeFactory"),u=a.mix({},t.attr(),{origin:n}),c=s.getActiveCfg(i,u);e.style&&a.mix(c,e.style);var l=r(c,t);t.setSilent("_originActiveAttrs",l),e.animate?t.animate(c,300):t.attr(c),o.toFront(t)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(i(n,t)){var r=e.get("view").get("canvas"),o=e.get("activedOptions");o&&o.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&e._setActiveShape(t)})),e.set("activeShapes",t),r.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var i=this.get("activeShapes");a.each(i,function(t){var e=t.get("_originActiveAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent("_originActiveAttrs",null)});if(this.get("preHighlightShapes")){var r=t.get("children");a.each(r,function(t){var e=t.get("_originActiveAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),o.resetZIndex(t),t.setSilent("_originActiveAttrs",null))})}this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=[];if(this.get("shapeContainer")){var n=this.getXScale().field,i=this.getShapes(),r=this._getOriginByPoint(t);a.each(i,function(t){var i=t.get("origin");if(t.get("visible")&&i){i._origin[n]===r[n]&&e.push(t)}})}return e},getSingleShapeByPoint:function(t){var e,n=this.get("shapeContainer"),i=n.get("canvas").get("pixelRatio");if(n&&(e=n.getShape(t.x*i,t.y*i)),e&&e.get("origin"))return e},highlightShapes:function(t,e){a.isArray(t)||(t=[t]);var n=this.get("activeShapes");if(i(n,t)){n&&this.clearActivedShapes();var s=this.getShapes(),u=this.get("activedOptions"),c=u&&u.animate,l=u&&u.style;a.each(s,function(n){var i={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(i,l,e),o.toFront(n)):(a.mix(i,{fillOpacity:.3,opacity:.3}),o.resetZIndex(n));var s=r(i,n);n.setSilent("_originActiveAttrs",s),c?n.animate(i,300):n.attr(i)}),this.set("preHighlightShapes",t),this.set("activeShapes",t)}}};t.exports=s},function(t,e,n){function i(t,e){if(r.isNil(t)||r.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return r.isEqual(n,i)}var r=n(0),a=n(164),o={_isAllowSelect:function(){var t=this.get("allowSelect");if(!r.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),i=n&&n.type;return"interval"===e&&"theta"===i},_onClick:function(t){if(this._isAllowSelect()){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",r.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",r.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),i=this.get("selectedOptions")||{},o=!1!==i.animate,s=n.get("canvas");t.set("selected",e);var u=t.get("origin");if(e){var c=u.shape||this.getDefaultValue("shape");r.isArray(c)&&(c=c[0]);var l=this.get("shapeFactory"),h=r.mix({geom:this,point:u},i),f=l.getSelectedCfg(c,h);r.mix(f,h.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",function(t,e){var n={};return r.each(t,function(t,i){"transform"===i&&(i="matrix");var a=e.attr(i);r.isArray(a)&&(a=r.cloneDeep(a)),n[i]=a}),n}(f,t))),i.toFront&&a.toFront(t),o?t.animate(f,300):(t.attr(f),s.draw())}else{var p=t.get("_originAttrs");i.toFront&&a.resetZIndex(t),t.set("_originAttrs",null),o?t.animate(p,300):(t.attr(p),s.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},a=!1!==n.cancelable;if("multiple"===n.mode)-1===r.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):a&&(r.Array.remove(e,t),this._setShapeStatus(t,!1));else{var o=e[0];a&&(t=i(o,t)?null:t),i(o,t)||(o&&this._setShapeStatus(o,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();r.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return r.each(n,function(n){var i=n.get("origin");i&&i._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return r.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=o},function(t,e,n){var i=n(0);t.exports=function(t){return i.isArray(t)?t:i.isString(t)?t.split("*"):[t]}},function(t,e,n){var i=n(74),r=n(0),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o={LINEAR:"linear",CAT:"cat",TIME:"time"},s=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},r.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,i=null;return(n.scales[t]||e[t])&&(i=r.mix({},n.scales[t]),r.each(e[t],function(t,e){r.isNil(t)?delete i[e]:i[e]=t}),this.filters[t]&&(delete i.min,delete i.max)),i},e._getDefaultType=function(t,e){var n=o.LINEAR,i=r.Array.firstValue(e,t);return r.isArray(i)&&(i=i[0]),a.test(i)?n=o.TIME:r.isString(i)&&(n=o.CAT),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=r.Array.values(n,e);if(a.values=o,!i.isCategory(t)&&"time"!==t){var s=r.Array.getRange(o);a.min=s.min,a.max=s.max,a.nice=!0}return"time"===t&&(a.nice=!1),a},e.createScale=function(t,e){var n,a=this._getDef(t),o=e||[],s=r.Array.firstValue(o,t);if(r.isNumber(t)||r.isNil(s)&&!a)n=i.identity({value:t,field:t.toString(),values:[t]});else{var u;a&&(u=a.type),u=u||this._getDefaultType(t,o);var c=this._getScaleCfg(u,t,o);a&&r.mix(c,a),n=i[u](c)}return n},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(345),a=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},i.mix(this,t),this.option=t||{}}var e=t.prototype;return e.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e._execActions=function(t){var e=this.actions;i.each(e,function(e){var n=e[0];t[n](e[1],e[2])})},e.hasAction=function(t){var e=this.actions,n=!1;return i.each(e,function(e){if(t===e[0])return n=!0,!1}),n},e.createCoord=function(t,e){var n,a,o=this.type,s=this.cfg,u=i.mix({start:t,end:e},s);return"theta"===o?(n=r.Polar,this.hasAction("transpose")||this.transpose(),(a=new n(u)).type=o):a=new(n=r[i.upperFirst(o||"")]||r.Rect)(u),this._execActions(a),a},e.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.reflect=function(t){return this.actions.push(["reflect",t]),this},e.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.transpose=function(){return this.actions.push(["transpose"]),this},t}();t.exports=a},function(t,e,n){"use strict";var i=n(44);i.Cartesian=n(346),i.Rect=i.Cartesian,i.Polar=n(347),i.Helix=n(348),t.exports=i},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(8),h=n(44),f=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,h),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return l({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},i={start:t.y,end:e.y};this.x=n,this.y=i}},{key:"convertPoint",value:function(t){var e,n;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}}},{key:"invertPoint",value:function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}}}]),e}();t.exports=f},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(43),h=n(35),f=n(8),p=n(44),g=l.mat3,d=l.vec2,v=l.vec3,y=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,p),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),o(e,[{key:"_init",value:function(){for(var t=this.radius,e=this.innerRadius,n=this.center,i=this.startAngle,r=this.endAngle;r<i;)r+=2*Math.PI;this.endAngle=r;var a,o,s=this.getOneBox(),u=s.maxX-s.minX,c=s.maxY-s.minY,l=Math.abs(s.minX)/u,h=Math.abs(s.minY)/c,f=this.width,p=this.height;p/c>f/u?(a=f/u,o={x:n.x-(.5-l)*f,y:n.y-(.5-h)*a*c}):(a=p/c,o={x:n.x-(.5-l)*a*u,y:n.y-(.5-h)*p}),t?t>0&&t<=1?t*=a:(t<=0||t>a)&&(t=a):t=a;var g={start:i,end:r},d={start:e*t,end:t};this.x=g,this.y=d,this.radius=t,this.circleCentre=o,this.center=o}},{key:"getCenter",value:function(){return this.circleCentre}},{key:"getOneBox",value:function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}}},{key:"getRadius",value:function(){return this.radius}},{key:"convertPoint",value:function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,i=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),i=this.convertDim(i,"y"),{x:e.x+Math.cos(n)*i,y:e.y+Math.sin(n)*i}}},{key:"invertPoint",value:function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=this.x,r=[1,0,0,0,1,0,0,0,1];g.rotate(r,r,i.start);var a=[1,0,0];v.transformMat3(a,a,r),a=[a[0],a[1]];var o=d.angleTo(a,n,i.end<i.start);h(o,2*Math.PI)&&(o=0);var s=d.length(n),u=o/(i.end-i.start);u=i.end-i.start>0?u:-u;var c=this.invertDim(s,"y"),l={};return l.x=this.isTransposed?c:u,l.y=this.isTransposed?u:c,l}}]),e}();t.exports=y},function(t,e,n){"use strict";function i(t){return(i="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)}function r(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=n(43),h=n(35),f=n(8),p=n(44),g=l.vec2,d=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=r(this,c(e).call(this,t)))._init(),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(e,p),o(e,[{key:"getDefaultCfg",value:function(){var t=u(c(e.prototype),"getDefaultCfg",this).call(this);return f({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),o(e,[{key:"_init",value:function(){var t=this.width,e=this.height,n=this.radius,i=this.innerRadius,r=this.startAngle,a=this.endAngle,o=(a-r)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-i)/o),c=u/(2*Math.PI),l={start:r,end:a},h={start:i*s,end:i*s+.99*u};this.a=c,this.d=u,this.x=l,this.y=h}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,i=this.a,r=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=i*a,s=this.convertDim(n,"y");return{x:r.x+Math.cos(a)*(o+s),y:r.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,i=this.d+this.y.start,r=g.subtract([],[t.x,t.y],[e.x,e.y]),a=g.angleTo(r,[1,0],!0),o=a*n;g.length(r)<o&&(o=g.length(r));var s=n*(a=2*Math.floor((g.length(r)-o)/i)*Math.PI+a),u=g.length(r)-s;u=h(u,0)?0:u;var c=this.invertDim(a,"x"),l=this.invertDim(u,"y");c=h(c,0)?0:c,l=h(l,0)?0:l;var f={};return f.x=this.isTransposed?l:c,f.y=this.isTransposed?c:l,f}}]),e}();t.exports=d},function(t,e,n){function i(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),t.includes("%")&&(e=parseInt(t,10)/100),e}var r=n(0),a=n(22).Axis,o=r.MatrixUtil.vec2,s=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],r.mix(this,t)}var e=t.prototype;return e._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e._getMiddleValue=function(t,e,n,i){if(0===t&&!i)return 0;if(1===t)return 1;var r=e[n+1].value;return i||1!==r?(t+r)/2:1},e._getLineRange=function(t,e,n,r){var a,o,s,u=e.field,c=this.options,l="";if(c[u]&&c[u].position&&(l=c[u].position),"x"===n){var h="top"===l?1:0;a={x:0,y:h=i(l,h)},o={x:1,y:h},s=!1}else{if(r){var f="left"===l?0:1;a={x:f=i(l,f),y:0},o={x:f,y:1}}else{var p="right"===l?1:0;a={x:p=i(l,p),y:0},o={x:p,y:1}}s=!0}return a=t.convert(a),o=t.convert(o),{start:a,end:o,isVertical:s}},e._getLineCfg=function(t,e,n,i){var r,a=this._getLineRange(t,e,n,i),o=a.isVertical,s=a.start,u=a.end,c=t.center;return t.isTransposed&&(o=!o),r=o&&s.x>c.x||!o&&s.y>c.y?1:-1,{isVertical:o,factor:r,start:s,end:u}},e._getCircleCfg=function(t){var e,n={},i=t.x,r=t.y,a=r.start>r.end;e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1},e=t.convert(e);var s,u=t.circleCentre,c=[e.x-u.x,e.y-u.y],l=[1,0],h=(s=e.y>u.y?o.angle(c,l):-1*o.angle(c,l))+(i.end-i.start);return n.startAngle=s,n.endAngle=h,n.center=u,n.radius=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,i=t.x.start<0?-1:1;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{factor:i,start:t.convert(e),end:t.convert(n)}},e._getAxisPosition=function(t,e,n,i){var r="",a=this.options;if(a[i]&&a[i].position)r=a[i].position;else{var o=t.type;t.isRect?"x"===e?r="bottom":"y"===e&&(r=n?"right":"left"):r="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return r},e._getAxisDefaultCfg=function(t,e,n,i){var a=this.viewTheme,o={},s=this.options,u=e.field;if(o=r.deepMix({},a.axis[i],o,s[u]),o.viewTheme=a,o.title){var c=r.isPlainObject(o.title)?o.title:{};c.text=c.text||e.alias||u,r.deepMix(o,{title:c})}return o.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&o.ticks.pop(),o.coord=t,o.label&&r.isNil(o.label.autoRotate)&&(o.label.autoRotate=!0),s.hasOwnProperty("xField")&&s.xField.hasOwnProperty("grid")&&"left"===o.position&&r.deepMix(o,s.xField),o},e._getAxisCfg=function(t,e,n,i,a,o){void 0===a&&(a="");var s=this,u=s._getAxisPosition(t,i,a,e.field),c=s._getAxisDefaultCfg(t,e,i,u);if(!r.isEmpty(c.grid)&&n){var l=[],h=[],f=function(t){var e=[];if(t.length>0){var n=(e=t.slice(0))[0],i=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==i.value&&e.push({value:1})}return e}(n.getTicks());if(f.length){var p=function(t,e,n){var i=[];return t.length<1?i:(t.length>=2&&e&&n&&i.push({text:"",tickValue:"",value:0}),0!==t[0].value&&i.push({text:"",tickValue:"",value:0}),1!==(i=i.concat(t))[i.length-1].value&&i.push({text:"",tickValue:"",value:1}),i)}(c.ticks,e.isLinear,"center"===c.grid.align);r.each(p,function(n,u){h.push(n.tickValue);var g=[],d=n.value;if("center"===c.grid.align&&(d=s._getMiddleValue(d,p,u,e.isLinear)),!r.isNil(d)){var v=t.x,y=t.y;r.each(f,function(e){var n="x"===i?d:e.value,r="x"===i?e.value:d,a=t.convert({x:n,y:r});if(t.isPolar){var o=t.circleCentre;y.start>y.end&&(r=1-r),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2))}g.push(a)}),l.push({_id:o+"-"+i+a+"-grid-"+n.tickValue,points:g})}})}c.grid.items=l,c.grid.tickValues=h}return c.type=e.type,c},e._getHelixCfg=function(t){for(var e={},n=t.a,i=t.startAngle,r=t.endAngle,a=[],o=0;o<=100;o++){var s=t.convert({x:o/100,y:0});a.push(s.x),a.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=i,e.endAngle=r,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,i,o,s,u){var c,l,h=this.container,f=this.canvas;"cartesian"===t.type?(c=a.Line,l=this._getLineCfg(t,e,i,u)):"helix"===t.type&&"x"===i?(c=a.Helix,l=this._getHelixCfg(t)):"x"===i?(c=a.Circle,l=this._getCircleCfg(t)):(c=a.Line,l=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,i,u,o);p=r.mix({},p,l),"y"===i&&s&&"circle"===s.get("type")&&(p.circle=s),p._id=o+"-"+i,r.isNil(u)||(p._id=o+"-"+i+u),r.mix(p,{canvas:f,group:h.addGroup({viewId:o})});var g=new c(p);return g.render(),this.axes.push(g),g},e.createAxis=function(t,e,n){var i=this,a=this.coord,o=a.type;if("theta"!==o&&("polar"!==o||!a.isTransposed)){var s;t&&!i._isHide(t.field)&&(s=i._drawAxis(a,t,e[0],"x",n)),r.isEmpty(e)||"helix"===o||r.each(e,function(e,r){i._isHide(e.field)||i._drawAxis(a,e,t,"y",n,s,r)})}},e.changeVisible=function(t){var e=this.axes;r.each(e,function(e){e.set("visible",t)})},e.clear=function(){var t=this.axes;r.each(t,function(t){t.destroy()}),this.axes=[]},t}();t.exports=s},function(t,e,n){var i=n(0),r=n(351),a=function(){function t(t){this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.view=null,this.viewTheme=null,this.frontGroup=null,this.backGroup=null,i.mix(this,t)}var e=t.prototype;return e._creatGuides=function(){var t=this,e=this.options,n=this.xScales,a=this.yScales,o=this.view,s=this.viewTheme;return this.backContainer&&o&&(this.backGroup=this.backContainer.addGroup({viewId:o.get("_id")})),this.frontContainer&&o&&(this.frontGroup=this.frontContainer.addGroup({viewId:o.get("_id")})),e.forEach(function(e){var o=e.type,u=i.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=i.upperFirst(o);var c=new r[o](u);t.guides.push(c)}),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(i.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,r=n&&n.get("data"),a=e._creatGuides();i.each(a,function(i){var a;a=i.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,i.render(t,a,r,n)})},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){var e=this.guides;i.each(e,function(e){e.changeVisible(t)})},e.reset=function(){var t=this.guides;i.each(t,function(t){t.clear()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}();t.exports=a},function(t,e,n){var i=n(22).Guide,r=n(352);i.RegionFilter=r,t.exports=i},function(t,e,n){var i=n(0),r=n(15),a=n(20).Path,o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{name:"regionFilter",zIndex:1,top:!0,start:null,end:null,color:null,apply:null,style:{opacity:1}})},n.render=function(t,e,n,i){var r=this,a=e.addGroup();a.name="guide-region-filter",i.once("afterpaint",function(){if(!a.get("destroyed")){r._drawShapes(i,a);var e=r._drawClip(t);a.attr({clip:e}),r.set("clip",e),r.get("appendInfo")&&a.setSilent("appendInfo",r.get("appendInfo")),r.set("el",a)}})},n._drawShapes=function(t,e){var n=this,r=[];return t.getAllGeoms().map(function(t){var a=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&a.map(function(t){var a=t.type,o=i.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(a,{attrs:o});return r.push(s),t}),t}),r},n._drawClip=function(t){var e=this.parsePoint(t,this.get("start")),n=this.parsePoint(t,this.get("end")),i=[["M",e.x,e.y],["L",n.x,e.y],["L",n.x,n.y],["L",e.x,n.y],["z"]];return new a({attrs:{path:i,opacity:1}})},n._adjustDisplay=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},n._geomFilter=function(t){var e=this.get("apply");return!e||i.contains(e,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(r);t.exports=o},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=n(0),a=n(22).Legend,o=n(354),s=n(19),u=n(166),c=n(168),l=n(7),h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,f=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"],p=function(){function t(t){this.options={},r.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,r.each(t,function(t){r.each(t,function(t){t.destroy()})}),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=u(e,c(this.chart.get("plotRange")));var n=this.plotRange;t.maxX-t.minX<n.br.x-n.tl.x&&t.maxY-t.minY<n.br.y-n.tl.y&&(t={minX:n.tl.x,minY:n.tl.y,maxX:n.br.x,maxY:n.br.y}),this.backRange=t}return t},e._isFieldInView=function(t,e,n){var i=!1,a=n.get("scales")[t];return a&&a.values&&(i=r.inArray(a.values,e)),i},e._bindClickEvent=function(t,e,n){var i=this,a=i.chart,o=a.get("views"),s=e.field,u=i.options;t.on("itemclick",function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var c=e.item,l=e.checked,h="single"===t.get("selectedMode"),f=c.dataValue;l?(r.Array.remove(n,f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return h?t===f:!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return h?t===f:!r.inArray(n,t)})})):h||(n.push(f),i._isFieldInView(s,f,a)&&a.filter(s,function(t){return!r.inArray(n,t)}),r.each(o,function(t){i._isFieldInView(s,f,t)&&t.filter(s,function(t){return!r.inArray(n,t)})})),u.onClick&&u.onClick(e),a.set("keepLegend",!0),a.set("keepPadding",!0),a.repaint(),a.set("keepPadding",!1),a.set("keepLegend",!1)}})},e._bindClickEventForMix=function(t){var e=this.chart.getAllGeoms();t.on("itemclick",function(t){var n=t.item.field;t.checked?r.each(e,function(t){t.getYScale().field===n&&t.show()}):r.each(e,function(t){t.getYScale().field===n&&t.hide()})})},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var i=e.get("labelCfg");if(i&&i.fields&&i.fields.length>0){var a=e.getXScale(),o=e.getYScale(),s=a.field,u=o.field,c=t.get("origin")._origin,l=e.get("labelContainer").get("labelsGroup").get("children");r.each(l,function(e){var i=e.get("origin")||[];i[s]===c[s]&&i[u]===c[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},e._bindFilterEvent=function(t,e){var n=this,i=this.chart,a=e.field;t.on("itemfilter",function(t){var e=t.range;i.filterShape(function(t,i,o){if(!r.isNil(t[a])){var s=t[a]>=e[0]&&t[a]<=e[1];return n._filterLabels(i,o,s),s}return!0});for(var o=i.getAllGeoms()||[],s=function(t){var n=o[t];"heatmap"===n.get("type")&&h(function(){n.drawWithRange(e)})},u=0;u<o.length;u++)s(u)})},e._getShapeData=function(t){var e=t.get("origin");return r.isArray(e)&&(e=e[0]),e._origin},e._bindHoverEvent=function(t,e){var n=this,i=n.chart,a=i.getAllGeoms(),o=n.options,s=i.get("canvas");t.on("itemhover",function(t){var i=t.item.value,u=n.pre;if(u){if(u===i)return}else r.each(a,function(a){var u=a.get("shapeContainer"),c=a.getShapes(),l=[];if(e){var h=a.get("scales")[e];r.each(c,function(t){var a=n._getShapeData(t);a&&function(t,e,n){return!r.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}(a[e],i,h)&&l.push(t)})}else a.getYScale().field===i&&(l=c);r.isEmpty(l)||(t.shapes=l,t.geom=a,o.onHover?(o.onHover(t),u.sort(),s.draw()):a.setShapesActived(l))}),n.pre=i}),t.on("itemunhover",function(t){n.pre=null,o.onUnhover&&o.onUnhover(t),r.each(a,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),s.draw())})})},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var i=!0;return n=t.invert(n),r.each(e,function(e){if(t.getText(e)===t.getText(n))return i=!1,!1}),i},e._alignLegend=function(t,e,n,i){var r=this.viewTheme,a=this.container.get("canvas"),o=a.get("width"),s=a.get("height"),u=this.totalRegion,c=this.plotRange,l=this.getBackRange(),h=t.get("offset")[0]||0,f=t.get("offset")[1]||0,p=t.getHeight(),g=t.getWidth(),d=r.legend.margin,v=r.legend.legendMargin,y=this.legends[i].length,m=i.split("-"),x=0,b=0,_=y>1?u:n;if("left"===m[0]||"right"===m[0])s=c.br.y,x=this._getXAlign(m[0],o,n,l,g,d),b=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+v:this._getYAlignVertical(m[1],s,_,l,0,d,a.get("height"));else if("top"===m[0]||"bottom"===m[0])if(b=this._getYAlignHorizontal(m[0],s,n,l,p,d),e){var S=e.getWidth();x=(e.get("x")||e.get("group").get("x"))+S+v}else x=this._getXAlign(m[1],o,_,l,0,d),"right"===m[1]&&(x=c.br.x-_.totalWidth);t.move(x+h,b+f)},e._getXAlign=function(t,e,n,i,r,a){var o=i.minX-r-a[3]<0?0:i.minX-r-a[3],s="left"===t?o:i.maxX+a[1];return"center"===t&&(s=(e-n.totalWidth)/2),s},e._getYAlignHorizontal=function(t,e,n,i,r,a){return"top"===t?i.minY-r-a[0]:i.maxY+a[2]},e._getYAlignVertical=function(t,e,n,i,r,a,o){var s="top"===t?i.minY-r-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,i=0,a=0;return r.each(t,function(t){var r=t.getWidth(),o=t.getHeight();e<r&&(e=r),i+=r,n<o&&(n=o),a+=o}),{maxWidth:e,totalWidth:i,maxHeight:n,totalHeight:a}},e._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,i=e.legend.legendMargin,a=[],o=0,s=0;return r.each(n,function(e){var n=t._getSubRegion(e);a.push(n),o+=n.totalWidth+i,s+=n.totalHeight+i}),{totalWidth:o,totalHeight:s,subs:a}},e._addCategoryLegend=function(t,e,n,u,c){var h=this,f=t.field,p=h.options,g=p[f];g&&(p=g);var d=h.legends;d[c]=d[c]||[];var v=h.container,y=[],m=t.getTicks(),x=!0,b=n.get("shapeType")||"point",_=n.getDefaultValue("shape")||"circle";p[f]&&p[f].marker?(_=p[f].marker,b="point",x=!1):p.marker&&(_=p.marker,b="point",x=!1);var S=h.chart,w=h.viewTheme,M=S.get("canvas"),k=h.plotRange,C=c.split("-"),A="right"===C[0]||"left"===C[0]?k.bl.y-k.tr.y:M.get("width");r.each(m,function(e){var i=e.text,a=e.value,o=t.invert(a),c={isInCircle:n.isInCircle()},f=!u||h._isFiltered(t,u,a),p=n.getAttr("color"),g=n.getAttr("shape");if(p)if(p.callback&&p.callback.length>1){var d=Array(p.callback.length-1).fill("");c.color=p.mapping.apply(p,[o].concat(d)).join("")||w.defaultColor}else c.color=p.mapping(o).join("")||w.defaultColor;if(x&&g)if(g.callback&&g.callback.length>1){var v=Array(g.callback.length-1).fill("");_=g.mapping.apply(g,[o].concat(v)).join("")}else _=g.mapping(o).join("");var m=s.getShapeFactory(b).getMarkerCfg(_,c);l.legendMarkerRadius&&(m.radius=l.legendMarkerRadius),r.isFunction(_)&&(m.symbol=_),y.push({value:i,dataValue:o,checked:f,marker:m})});var P=r.deepMix({},w.legend[C[0]],p[f]||p,{viewId:S.get("_id"),maxLength:A,items:y,container:v,position:[0,0]});P.title&&r.deepMix(P,{title:{text:t.alias||t.field}});var O;if(h._isTailLegend(p,n))P.chart=h.chart,P.geom=n,O=new o(P);else if(p.useHtml){var T=v.get("canvas").get("el");if(v=p.container,r.isString(v)&&/^\#/.test(v)){var I=v.replace("#","");v=document.getElementById(I)}v||(v=T.parentNode),P.container=v,void 0===P.legendStyle&&(P.legendStyle={}),P.legendStyle.CONTAINER_CLASS=i({},P.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===T.style.zIndex?1:parseInt(T.style.zIndex,10)+1}),p.flipPage?(P.legendStyle.CONTAINER_CLASS.height="right"===C[0]||"left"===C[0]?A+"px":"auto",P.legendStyle.CONTAINER_CLASS.width="right"!==C[0]&&"left"!==C[0]?A+"px":"auto",O=new a.CatPageHtml(P)):O=new a.CatHtml(P)}else O=new a.Category(P);return h._bindClickEvent(O,t,u),d[c].push(O),O},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",function(e){var i=!1;if(e.target){var a=e.target.get("origin");if(a){var o=a._origin||a[0]._origin,s=t.field;if(o){var u=o[s];r.each(n,function(t){r.each(t,function(t){i=!0,!t.destroyed&&t.activate(u)})})}}}i||r.each(n,function(t){r.each(t,function(t){!t.destroyed&&t.deactivate()})})})},e._addContinuousLegend=function(t,e,n){var i=this.legends;i[n]=i[n]||[];var o,s,u,c=this.container,l=t.field,h=t.getTicks(),f=[],p=this.viewTheme;r.each(h,function(n){var i=n.value,r=t.invert(i),a=e.mapping(r).join("");f.push({value:n.tickValue,attrValue:a,color:a,scaleValue:i}),0===i&&(s=!0),1===i&&(u=!0)}),s||f.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),u||f.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=this.options,d=n.split("-"),v=p.legend[d[0]];(g&&!1===g.slidable||g[l]&&!1===g[l].slidable)&&(v=r.mix({},v,p.legend.gradient));var y=r.deepMix({},v,g[l]||g,{items:f,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(y.title&&r.deepMix(y,{title:{text:t.alias||t.field}}),"color"===e.type)o=new a.Color(y);else{if("size"!==e.type)return;o=g&&"circle"===g.sizeType?new a.CircleSize(y):new a.Size(y)}return this._bindFilterEvent(o,t),i[n].push(o),o},e._isTailLegend=function(t,e){if(t.hasOwnProperty("attachLast")&&t.attachLast){var n=e.get("type");if("line"===n||"lineStack"===n||"area"===n||"areaStack"===n)return!0}return!1},e._adjustPosition=function(t,e){var n;if(e)n="right-top";else if(r.isArray(t))n=String(t[0])+"-"+String(t[1]);else{var i=t.split("-");1===i.length?("left"===i[0]&&(n="left-bottom"),"right"===i[0]&&(n="right-bottom"),"top"===i[0]&&(n="top-center"),"bottom"===i[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,i){var r=this.options,a=t.field,o=r[a],s=this.viewTheme;if(!1===o)return null;if(o&&o.custom)this.addCustomLegend(a);else{var u=r.position||s.defaultLegendPosition;u=this._adjustPosition(u,this._isTailLegend(r,n)),o&&o.position&&(u=this._adjustPosition(o.position,this._isTailLegend(o,n)));var c;(c=t.isLinear?this._addContinuousLegend(t,e,u):this._addCategoryLegend(t,e,n,i,u))&&(this._bindHoverEvent(c,a),r.reactive&&this._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this.chart,n=this.viewTheme,i=this.container,o=this.options;t&&(o=o[t]);var s=o.position||n.defaultLegendPosition;s=this._adjustPosition(s);var u=this.legends;u[s]=u[s]||[];var c=o.items;if(c){var h=e.getAllGeoms();r.each(c,function(t){var e=function(t,e){var n;return r.each(t,function(t){t.get("visible")&&t.getYScale().field===e&&(n=t)}),n}(h,t.value);r.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||l.legendMarkerRadius||4.5:(t.marker={symbol:t.marker||"circle",radius:l.legendMarkerRadius||4.5},-1!==r.indexOf(f,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;r.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=r.lowerFirst(n.substr(6))),t.checked=!!r.isNil(t.checked)||t.checked,t.geom=e});var p,g=e.get("canvas"),d=this.plotRange,v=s.split("-"),y="right"===v[0]||"left"===v[0]?d.bl.y-d.tr.y:g.get("width"),m=r.deepMix({},n.legend[v[0]],o,{maxLength:y,items:c,container:i,position:[0,0]});if(o.useHtml){var x=o.container;if(/^\#/.test(i)){var b=x.replace("#","");x=document.getElementById(b)}else x||(x=i.get("canvas").get("el").parentNode);m.container=x,void 0===m.legendStyle&&(m.legendStyle={}),m.legendStyle.CONTAINER_CLASS||(m.legendStyle.CONTAINER_CLASS={height:"right"===v[0]||"left"===v[0]?y+"px":"auto",width:"right"!==v[0]&&"left"!==v[0]?y+"px":"auto",position:"absolute",overflow:"auto"}),p=o.flipPage?new a.CatPageHtml(m):new a.CatHtml(m)}else p=new a.Category(m);return u[s].push(p),p.on("itemclick",function(t){o.onClick&&o.onClick(t)}),this._bindHoverEvent(p),p}},e.addMixedLegend=function(t,e){var n=this.options,i=[];r.each(t,function(t){var a=t.alias||t.field,o=n[t.field];r.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0&&!1!==o){var n=e.get("shapeType")||"point",r=e.getDefaultValue("shape")||"circle",u=s.getShapeFactory(n),c={color:e.getDefaultValue("color")},h=u.getMarkerCfg(r,c);l.legendMarkerRadius&&(h.radius=l.legendMarkerRadius);var f={value:a,marker:h,field:t.field};i.push(f)}})});var a={custom:!0,items:i};this.options=r.deepMix({},a,this.options);var o=this.addCustomLegend();this._bindClickEventForMix(o)},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var i=0;return r.each(e,function(e,a){var o=n.subs[i];r.each(e,function(n,i){var r=e[i-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,r,o,a)}),i++}),this},t}();t.exports=p},function(t,e,n){var i=n(0),r=n(22),a=n(7),o=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return i.mix({},e,{type:"tail-legend",layout:"vertical",autoLayout:!0})},n._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this.get("unCheckColor"),a=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});a.translate(n,0),a.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=i.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(c.fill&&(c.fill=r),c.stroke&&(c.stroke=r));var l=a.addShape("marker",{type:"marker",attrs:c});l.attr("cursor","pointer"),l.name="legend-marker",u+=l.getBBox().width+s}var h=i.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||i.mix(h,{fill:r});var f=a.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=a.getBBox(),g=this.get("itemWidth"),d=a.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:g||p.width,height:p.height}});return d.attr("cursor","pointer"),d.setSilent("origin",t),d.name="legend-item",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo")),a.name="legendGroup",a},n._adjust=function(){if(this.get("geom")){this.get("group").attr("matrix")[7]=0;var t=this.get("geom").get("dataArray"),e=this.get("itemsGroup").get("children"),n=0;i.each(e,function(e){var r=t[n],a=r[r.length-1].y;i.isArray(a)&&(a=a[1]);var o=e.getBBox().height,s=e.get("x"),u=a-o/2;e.translate(s,u),n++}),this.get("autoLayout")&&this._antiCollision(e)}},n.render=function(){var e=this;t.prototype.render.call(this);this.get("chart").once("afterpaint",function(){e._adjust()})},n._getPreviousY=function(t){return t.attr("matrix")[7]+t.getBBox().height},n._adjustDenote=function(t,e,n){var i=2*-a.legend.legendMargin;t.addShape("path",{attrs:{path:"M-2,"+e+"L"+i+","+(n+3),lineWidth:1,lineDash:[2,2],stroke:"#999999"}})},n._antiCollision=function(t){if(void 0===t&&(t=[]),t.length){var e=this;t.sort(function(t,e){return t.attr("matrix")[7]-e.attr("matrix")[7]});var n=!0,i=e.get("chart").get("plotRange"),r=i.tl.y,a=Math.abs(r-i.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,c=t.map(function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),e<s&&(s=e),{size:t.getBBox().height,targets:[e-r]}});s-=r;for(var l=0;n;){for(var h=0;h<c.length;h++){var f=c[h],p=(Math.min.apply(s,f.targets)+Math.max.apply(s,f.targets))/2;f.pos=Math.min(Math.max(s,p-f.size/2),a-f.size)}for(n=!1,l=c.length;l--;)if(l>0){var g=c[l-1],d=c[l];g.pos+g.size>d.pos&&(g.size+=d.size,g.targets=g.targets.concat(d.targets),c.splice(l,1),n=!0)}}l=0;var v=this.get("itemsGroup").addGroup();c.forEach(function(n){var i=r+o;n.targets.forEach(function(){var r=t[l].attr("matrix")[7],a=n.pos+i-o/2;Math.abs(r-a)>o/2&&e._adjustDenote(v,a,r-e.get("group").attr("matrix")[7]/2),t[l].translate(0,-r),t[l].translate(0,a),i+=o,l++})})}},e}(r.Legend.Category);t.exports=o},function(t,e,n){function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function r(t,e){if(!t)return!1;return!!t.className&&(o.isNil(t.className.baseVal)?t.className:t.className.baseVal).includes(e)}function a(t){var e=[];return o.each(t,function(t){var n=function(t,e){var n=-1;return o.each(t,function(t,i){var r=!0;for(var a in e)if(e.hasOwnProperty(a)&&!f.includes(a)&&!o.isObject(e[a])&&e[a]!==t[a]){r=!1;break}if(r)return n=i,!1}),n}(e,t);-1===n?e.push(t):e[n]=t}),e}var o=n(0),s=n(19),u=n(22).Tooltip,c=o.MatrixUtil.vec2,l=["line","area","path","areaStack"],h=["line","area","point"],f=["marker","showMarker"],p=function(){function t(t){o.assign(this,t),this.timeStamp=0,this.locked=!1}var e=t.prototype;return e._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),i=n.getPointByClient(t.clientX,t.clientY),r=n.get("pixelRatio");i.x=i.x/r,i.y=i.y/r;var a=e.getViewsByPoint(i);return i.views=a,i},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options.triggerOn;return e&&"mousemove"!==e?"click"===e?t="plotclick":"none"===e&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this.chart,e=this.viewTheme,n=this.options,i=o.mix({},e.tooltip),r=t.getAllGeoms().filter(function(t){return t.get("visible")}),a=[];o.each(r,function(t){var e=t.get("type"),n=t.get("adjusts"),i=!1;n&&o.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return i=!0,!1}),-1!==o.indexOf(a,e)||i||a.push(e)});var s,u=!(!r.length||!r[0].get("coord"))&&r[0].get("coord").isTransposed;if(r.length&&r[0].get("coord")&&"cartesian"===r[0].get("coord").type)if("interval"===a[0]&&!1!==n.shared){var c=o.mix({},e.tooltipCrosshairsRect);c.isTransposed=u,s={zIndex:0,crosshairs:c}}else if(o.indexOf(h,a[0])>-1){var l=o.mix({},e.tooltipCrosshairsLine);l.isTransposed=u,s={crosshairs:l}}return o.mix(i,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,o.wrapBehavior(this,"onMouseMove")),t.on("plotleave",o.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,o.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",o.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,i){var r=this.tooltip,s=this.prePoint;if(!s||s.x!==t.x||s.y!==t.y){e=a(e),this.prePoint=t;var u=this.chart,c=this.viewTheme,l=o.isArray(t.x)?t.x[t.x.length-1]:t.x,h=o.isArray(t.y)?t.y[t.y.length-1]:t.y;r.get("visible")||u.emit("tooltip:show",{x:l,y:h,tooltip:r});var f=e[0],p=f.title||f.name;r.isContentChange(p,e)&&(u.emit("tooltip:change",{tooltip:r,x:l,y:h,items:e}),p=e[0].title||e[0].name,r.setContent(p,e),o.isEmpty(n)?(r.clearMarkers(),r.set("markerItems",[])):!0===this.options.hideMarkers?r.set("markerItems",n):r.setMarkers(n,c.tooltipMarker));i===this._getCanvas()&&"mini"===r.get("type")?r.hide():(r.setPosition(l,h,i),r.show())}},e.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.onMouseMove=function(t){if(!o.isEmpty(t.views)&&!this.locked){var e=this.timeStamp,n=+new Date,i={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(i,t.views,t.shape),this.timeStamp=n)}},e.onMouseOut=function(t){var e=this.tooltip;e.get("visible")&&e.get("follow")&&!this.locked&&(t&&t.toElement&&(r(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,i=!1;n&&n!==document.body;){if(r(n,e)){i=!0;break}n=n.parentNode}return i}(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t.viewTheme,i=t._getCanvas(),r=t._getDefaultTooltipCfg(),a=t.options;(a=o.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:i,frontPlot:e.get("frontPlot"),viewTheme:n.tooltip,backPlot:e.get("backPlot")},r,a)).crosshairs&&"rect"===a.crosshairs.type&&(a.zIndex=0),a.visible=!1;var s;"mini"===a.type?(a.crosshairs=!1,a.position="top",s=new u.Mini(a)):s=a.useHtml?new u.Html(a):new u.Canvas(a),t.tooltip=s;var c=t._getTriggerEvent(),l=s.get("container");s.get("enterable")||"plotmove"!==c||l&&(l.onmousemove=function(n){var i=t._normalizeEvent(n);e.emit(c,i)}),l&&(l.onmouseleave=function(){t.locked||t.hideTooltip()}),t._bindEvent()}},e._formatMarkerOfItem=function(t,e,n){var i=this.options,r=n.point;if(r&&r.x&&r.y){var a=o.isArray(r.x)?r.x[r.x.length-1]:r.x,s=o.isArray(r.y)?r.y[r.y.length-1]:r.y;r=t.applyMatrix(a,s,1),n.x=r[0],n.y=r[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||i.hasOwnProperty("useHtml")&&!i.useHtml||(n.color=n.color.split(" ")[1].substring(2));var u=this._getItemMarker(e,n);if(n.marker=u,-1!==o.indexOf(l,e.get("type")))return n}return null},e.lockTooltip=function(){this.locked=!0},e.unlockTooltip=function(){this.locked=!1},e.showTooltip=function(t,e,n){var i=this,r=this;if(!o.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var a=r.options,s=[],u=[];if(o.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),c=e.get("coord");o.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var l=e.get("dataArray");if(e.isShareTooltip()||!1===a.shared&&o.inArray(["area","line","path","polygon"],n)){var h=e.getXScale(),f=e.getAttr("color"),p=f?f.field:void 0;if("interval"===n&&h.field===p&&e.hasAdjust("dodge")){var g=o.find(l,function(n){return!!e.findPoint(t,n)});o.each(g,function(t){var n=e.getTipItems(t,a.title);o.each(n,function(t){var n=r._formatMarkerOfItem(c,e,t);n&&s.push(n)}),u=u.concat(n)})}else o.each(l,function(n){var i=e.findPoint(t,n);if(i){var l=e.getTipItems(i,a.title);o.each(l,function(t){var n=r._formatMarkerOfItem(c,e,t);n&&s.push(n)}),u=u.concat(l)}})}else{var d=e.get("shapeContainer"),v=d.get("canvas").get("pixelRatio"),y=d.getShape(t.x*v,t.y*v);y&&y.get("visible")&&y.get("origin")&&(u=e.getTipItems(y.get("origin"),a.title)),o.each(u,function(t){var n=i._formatMarkerOfItem(c,e,t);n&&s.push(n)})}}}),o.each(u,function(t){var e=t.point,n=o.isArray(e.x)?e.x[e.x.length-1]:e.x,i=o.isArray(e.y)?e.y[e.y.length-1]:e.y;e=c.applyMatrix(n,i,1),t.x=e[0],t.y=e[1]})}),u.length){var l=u[0];if(!u.every(function(t){return t.title===l.title})){var h=l,f=1/0;u.forEach(function(e){var n=c.distance([t.x,t.y],[e.x,e.y]);n<f&&(f=n,h=e)}),u=u.filter(function(t){return t.title===h.title}),s=s.filter(function(t){return t.title===h.title})}if(!1===a.shared&&u.length>1){var p=u[0],g=Math.abs(t.y-p.y);o.each(u,function(e){Math.abs(t.y-e.y)<=g&&(p=e,g=Math.abs(t.y-e.y))}),p&&p.x&&p.y&&(s=[p]),u=[p]}r._setTooltip(t,u,s,n)}else r.hideTooltip()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e._getItemMarker=function(t,e){var n=this.options.marker||this.viewTheme.tooltip.marker;if(o.isFunction(n)){var r=t.get("shapeType")||"point",a=t.getDefaultValue("shape")||"circle",u=s.getShapeFactory(r),c={color:e.color};return n(u.getMarkerCfg(a,c),e)}return i({fill:e.color},n)},t}();t.exports=p},function(t,e,n){function i(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),i=e.get("origin");return a.isNil(n)&&a.isNil(i)?a.isEqual(t,e):a.isEqual(n,i)}function r(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),o=function(){function t(t){this.view=null,this.canvas=null,a.assign(this,t),this._init()}var e=t.prototype;return e._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},i=e.getViewsByPoint(n);return n.views=i,n},e._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},e._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var i=this.view;if(i.isShapeInView(t)){var r=t.name+":"+e;n.view=i,n.appendInfo=t.get("appendInfo"),i.emit(r,n);var a=i.get("parent");a&&a.emit(r,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this.view,n=this.currentShape;n&&n.get("destroyed")&&(n=null,this.currentShape=null);var a=this._getShape(t.x,t.y)||t.currentTarget,o=this._getShapeEventObj(t);if(o.shape=a,r(o),e.emit("mousemove",o),this._triggerShapeEvent(a,"mousemove",o),n&&!i(n,a)){var s=this._getShapeEventObj(t);s.shape=n,s.toShape=a,r(s),this._triggerShapeEvent(n,"mouseleave",s)}if(a&&!i(n,a)){var u=this._getShapeEventObj(t);u.shape=a,u.fromShape=n,r(u),this._triggerShapeEvent(a,"mouseenter",u)}this.currentShape=a;var c=this._getPointInfo(t),l=this.curViews||[];0===l.length&&c.views.length&&e.emit("plotenter",this._getEventObj(t,c,c.views)),l.length&&0===c.views.length&&e.emit("plotleave",this._getEventObj(t,c,l)),c.views.length&&((o=this._getEventObj(t,c,c.views)).shape=a,r(o),e.emit("plotmove",o)),this.curViews=c.views},e.onOut=function(t){var e=this.view,n=this._getPointInfo(t),i=this.curViews||[],r=this._getEventObj(t,n,i);!this.curViews||0===this.curViews.length||r.toElement&&"CANVAS"===r.toElement.tagName||(e.emit("plotleave",r),this.curViews=[])},e.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("click",i),this._triggerShapeEvent(n,t.type,i),this.currentShape=n;var o=this._getPointInfo(t),s=o.views;if(!a.isEmpty(s)){var u=this._getEventObj(t,o,s);if(this.currentShape){var c=this.currentShape;u.shape=c,r(u)}"dblclick"===t.type?(e.emit("plotdblclick",u),e.emit("dblclick",i)):e.emit("plotclick",u)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchstart",i),this._triggerShapeEvent(n,"touchstart",i),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,i=this._getShapeEventObj(t);i.shape=n,r(i),e.emit("touchmove",i),this._triggerShapeEvent(n,"touchmove",i),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,r(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=o},function(t,e,n){function i(t,e){var n=[];if(!1===t.get("animate"))return[];var r=t.get("children");return s.each(r,function(t){if(t.isGroup)n=n.concat(i(t,e));else if(t.isShape&&t._id){var r=t._id;(r=r.split("-")[0])===e&&n.push(t)}}),n}function r(t,e,n,i){return i?u.Action[n][i]:u.getAnimation(t,e,n)}function a(t,e,n){var i=u.getAnimateCfg(t,e);return n&&n[e]?s.deepMix({},i,n[e]):i}function o(t,e,n,i){var o,u,l=!1;if(i){var h=[],f=[];s.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),h.push(e),delete t[e._id]):f.push(e)}),s.each(t,function(t){var e=t.name,i=t.coord,h=t._id,f=t.attrs,p=t.index,g=t.type;if(u=a(e,"leave",t.animateCfg),o=r(e,i,"leave",u.animation),s.isFunction(o)){var d=n.addShape(g,{attrs:f,index:p});if(d._id=h,d.name=e,i&&"label"!==e){var v=d.getMatrix(),y=c.multiply([],v,i.matrix);d.setMatrix(y)}l=!0,o(d,u,i)}}),s.each(h,function(t){var e=t.name,n=t.get("coord"),i=t.get("cacheShape").attrs;if(!s.isEqual(i,t.attr())){if(u=a(e,"update",t.get("animateCfg")),o=r(e,n,"update",u.animation),s.isFunction(o))o(t,u,n);else{var c=s.cloneDeep(t.attr());t.attr(i),t.animate(c,u.duration,u.easing,function(){t.setSilent("cacheShape",null)})}l=!0}}),s.each(f,function(t){var e=t.name,n=t.get("coord");u=a(e,"enter",t.get("animateCfg")),o=r(e,n,"enter",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)})}else s.each(e,function(t){var e=t.name,n=t.get("coord");u=a(e,"appear",t.get("animateCfg")),o=r(e,n,"appear",u.animation),s.isFunction(o)&&(o(t,u,n),l=!0)});return l}var s=n(0),u=n(125),c=s.MatrixUtil.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),r=t.get("backPlot"),a=t.get("_id"),u=t.get("canvas"),c=u.get(a+"caches")||[];0===c.length&&(e=!1);var l=i(n,a),h=i(r,a),f=l.concat(h);u.setSilent(a+"caches",function(t){var e={};return s.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:s.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}(f));(e?o(c,f,u,e):o(c,l,u,e))||u.draw()}}},function(t,e,n){var i=n(0),r=n(16).Group,a=function t(e){t.superclass.constructor.call(this,e)};i.extend(a,r),i.augment(a,{getDefaultCfg:function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},_beforeRenderUI:function(){this._calculateRange()},_renderUI:function(){this._renderBackground(),this._renderPlotBackground()},_renderBackground:function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},r=this.get("backgroundShape");r?r.attr(n):(r=this.addShape("rect",{attrs:i.mix(n,t)}),this.set("backgroundShape",r))}},_renderPlotBackground:function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,r=e.br.y-e.tr.y,a=e.tl,o={x:a.x,y:a.y,width:n,height:r},s=this.get("plotBackShape");s?s.attr(o):(t.image?(o.img=t.image,s=this.addShape("image",{attrs:o})):(i.mix(o,t),s=this.addShape("rect",{attrs:o})),this.set("plotBackShape",s))}},_convert:function(t,e){if(i.isString(t))if("auto"===t)t=0;else if(t.includes("%")){var n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*r:t*a}return t},_calculateRange:function(){var t=this.get("plotRange");i.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),r=this.get("width")||n.get("width"),a=this.get("height")||n.get("height"),o=i.toAllPadding(e),s=this._convert(o[0],!1),u=this._convert(o[1],!0),c=this._convert(o[2],!1),l=this._convert(o[3],!0),h=Math.min(l,r-u),f=Math.max(l,r-u),p=Math.min(a-c,s),g=Math.max(a-c,s);t.tl={x:h,y:p},t.tr={x:f,y:p},t.bl={x:h,y:g},t.br={x:f,y:g},t.cc={x:(f+h)/2,y:(g+p)/2},this.set("plotRange",t)},repaint:function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this}}),t.exports=a},function(t,e,n){var i=n(7),r=n(0),a={getDefaultSize:function(){var t=this.get("defaultSize"),e=this.get("viewTheme")||i;if(!t){var n,a=this.get("coord"),o=this.getXScale(),s=o.values,u=this.get("dataArray");if(o.isLinear&&s.length>1){s.sort();var c=function(t,e){var n=t.length;r.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var i=t[1]-t[0],a=2;a<n;a++){var o=t[a]-t[a-1];i>o&&(i=o)}return i}(s,o);n=(o.max-o.min)/c,s.length>n&&(n=s.length)}else n=s.length;var l=o.range,h=1/n,f=1;if(this.isInCircle()?f=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(h*=l[1]-l[0]),f=e.widthRatio.column),h*=f,this.hasAdjust("dodge")){var p=this._getDodgeCfg(u),g=p.dodgeCount,d=p.dodgeRatio;h/=g,d>0&&(h=d*h/f)}t=h,this.set("defaultSize",t)}return t},_getDodgeCfg:function(t){var e,n,i=this.get("adjusts"),a=t.length;if(r.each(i,function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)}),e){var o=r.Array.merge(t);a=r.Array.values(o,e).length}return{dodgeCount:a,dodgeRatio:n}},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),i=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return n&&i&&(r=Math.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2))),r},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_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=r.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var n=this.getDefaultSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){var i=n(0),r=n(7);t.exports={splitData:function(t){var e=this.get("viewTheme")||r;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale().field;return i.each(t,function(t){n=t._origin?t._origin[s]:t[s],e.connectNulls?i.isNil(n)||o.push(t):i.isArray(n)&&i.isNil(n[0])||i.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}}},function(t,e,n){var i=n(21),r=n(360),a=n(0),o=function(t){function e(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),r),n}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(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.hasStack(),n},n.draw=function(t,e,n,i){var r=this,o=this.splitData(t),s=this.getDrawCfg(t[0]);r._applyViewThemeShapeStyle(s,s.shape,n),s.origin=t,a.each(o,function(t,o){if(!a.isEmpty(t)){s.splitedIndex=o,s.points=t;var u=n.drawShape(s.shape,s,e);r.appendShapeInfo(u,i+o)}})},e}(i);i.Path=o,t.exports=o},,,,,,function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(21),a=n(0),o=n(359);n(368);var s=function(t){function e(e){var n;return n=t.call(this,e)||this,a.assign(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n),o),n}i(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}(r),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s),c=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(s),l=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(s);s.Stack=u,s.Dodge=c,s.Symmetric=l,r.Interval=s,r.IntervalStack=u,r.IntervalDodge=c,r.IntervalSymmetric=l,t.exports=s},function(t,e,n){function i(t,e){var n=t.x,i=t.y,r=t.y0,a=t.size,o=r,s=i;f.isArray(i)&&(s=i[1],o=i[0]);var u,c;f.isArray(n)?(u=n[0],c=n[1]):(u=n-a/2,c=n+a/2);var l=[];return l.push({x:u,y:o},{x:u,y:s}),e?l.push({x:c,y:(s+o)/2}):l.push({x:c,y:s},{x:c,y:o}),l}function r(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var a=t[0];return e.push(["L",a.x,a.y]),e.push(["z"]),e}function a(t){var e=v.shape.interval,n=f.mix({},e,t.style);return d.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function o(t){var e=v.shape.hollowInterval,n=f.mix({},e,t.style);return d.addStrokeAttrs(n,t),n}function s(t,e){var n=[],i=t.points,r=t.nextPoints;return f.isNil(r)?e?n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[2].x,i[2].y],["Z"]):n.push(["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),n}function u(t,e){var n,i=e.geom.get("coord"),r=e.point;if(i&&"theta"===i.type){var a=function(t,e){var n,i,r,a,o=e.getRadius(),s=o*e.innerRadius;return!f.isArray(t.x)&&f.isArray(t.y)&&(t.x=[t.x,t.x]),f.isArray(t.x)?(r={x:t.x[0],y:t.y[0]},a={x:t.x[1],y:t.y[1]},n=g.getPointAngle(e,r),(i=g.getPointAngle(e,a))<=n&&(i+=2*Math.PI)):(a=t,n=e.startAngle,i=g.getPointAngle(e,a)),{r:o,ir:s,startAngle:n,endAngle:i}}(r,i),o=(a.endAngle-a.startAngle)/2+a.startAngle;n={transform:[["t",7.5*Math.cos(o),7.5*Math.sin(o)]]}}return f.mix({},n)}function c(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function l(t,e,n,i,r,a,o){for(var s=2*Math.ceil(2*t/n*4),u=[];i<2*-Math.PI;)i+=2*Math.PI;for(;i>0;)i-=2*Math.PI;var l=a-t+(i=i/Math.PI/2*n)-2*t;u.push(["M",l,e]);for(var h=0,f=0;f<s;++f){var p=c(f*n/4,f%4,n,r);u.push(["C",p[0][0]+l,-p[0][1]+e,p[1][0]+l,-p[1][1]+e,p[2][0]+l,-p[2][1]+e]),f===s-1&&(h=p[2][0])}return u.push(["L",h+l,o+t]),u.push(["L",l,o+t]),u.push(["L",l,e]),u}function h(t,e,n,i,r,a,o,s){for(var u=o.getBBox(),c=u.maxX-u.minX,h=u.maxY-u.minY,f=0;f<i;f++){var p=a.addShape("path",{attrs:{path:l(s,u.minY+h*n,c/4,0,c/64,t,e),fill:r[f],clip:o}});"canvas"===v.renderer&&p.animate({transform:[["t",c/2,0]],repeat:!0},5e3-300*f)}}var f=n(0),p=n(19),g=n(23),d=n(45),v=n(7),y=n(16),m=f.PathUtil,x=p.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){if(!t||f.inArray(["rect","funnel","pyramid"],t)){return{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}}return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return i(t)},getSelectedCfg:function(t,e){return u(0,e)}});p.registerShape("interval","rect",{draw:function(t,e){var n=a(t),i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","hollowRect",{draw:function(t,e){var n=o(t),i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),p.registerShape("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,i=t.y0,r=[];return f.isArray(n)?f.each(n,function(t,n){r.push({x:f.isArray(e)?e[n]:e,y:t})}):r.push({x:e,y:n},{x:e,y:i}),r}(t)},draw:function(t,e){var n=o(t);n.lineWidth=t.size||1;var i=r(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"line",radius:5},e)}}),p.registerShape("interval","tick",{getPoints:function(t){return function(t){var e=t.x,n=f.isArray(t.y)?t.y[1]:t.y,i=f.isArray(t.y)?t.y[0]:t.y0,r=t.size,a=[];return a.push({x:e-r/2,y:n},{x:e+r/2,y:n},{x:e,y:n},{x:e,y:i},{x:e-r/2,y:i},{x:e+r/2,y:i}),a}(t)},draw:function(t,e){var n=o(t);n.lineWidth||(n.lineWidth=2);var i=function(t){var e=[];return e.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]),e}(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=o(t);return f.mix({symbol:"tick",radius:5},e)}}),p.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,i(t)},draw:function(t,e){var n=a(t),i=s(t,!0);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,i(t,!0)},draw:function(t,e){var n=a(t),i=s(t,!1);return i=this.parsePath(i),e.addShape("path",{attrs:f.mix(n,{path:i})})},getMarkerCfg:function(t){var e=a(t);return f.mix({symbol:"square",radius:4},e)}}),p.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,i=1/0;f.each(t.points,function(t){t.x<i&&(i=t.x),n+=t.x});var r=n/t.points.length,s=this.parsePoint({x:r,y:.5}),u=this.parsePoint({x:i,y:.5}),c=s.x-u.x,l=Math.min(c,u.y),p=a(t),g=new y.Circle({attrs:{x:s.x,y:s.y,r:l}});return h(s.x,s.y,t.y/(2*s.y),1,[p.fill],e,g,4*l),e.addShape("circle",{attrs:f.mix(o(t),{x:s.x,y:s.y,r:l+l/8})})}});var b={};p.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=f.mix({},a(t)),i=t.shape[1],r=0,s=1/0;f.each(t.points,function(t){t.x<s&&(s=t.x),r+=t.x});var u,c=r/t.points.length,l=this.parsePoint({x:c,y:.5}),p=this.parsePoint({x:s,y:.5}),g=l.x-p.x,d=Math.min(g,p.y);if(b[i])u=b[i];else{var v=m.parsePathString(i);b[i]=u={segments:v}}var y=[];n.rotate&&(y.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var x=e.addShape("path",{attrs:f.mix(n,{fillOpacity:0,path:u.segments})}),_=f.cloneDeep(x.getBBox()),S=_.maxX-_.minX,w=_.maxY-_.minY,M=2*d/Math.max(S,w);x.transform(y.concat([["s",M,M]]));var k=M*S/2,C=M*w/2;x.transform([["t",l.x-k,l.y-C]]),h(l.x,l.y,t.y/(2*l.y),1,[n.fill],e,x,4*p.y);var A=e.addShape("path",{attrs:f.mix(o(t),{path:u.segments})});return A.transform(y.concat([["s",M,M],["t",l.x-k,l.y-C]])),A}}),p.registerShape("interval","top-line",{draw:function(t,e){var n=a(t),i=t.style||{},o=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],s={stroke:i.stroke||"white",lineWidth:i.lineWidth||1,path:this.parsePath(o)},u=r(t.points);u=this.parsePath(u),delete n.stroke;var c=e.addShape("path",{attrs:f.mix(n,{zIndex:0,path:u})});return e.addShape("path",{zIndex:1,attrs:s}),c},getMarkerCfg:function(t){var e=a(t),n=t.isInCircle;return f.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=x},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(21),a=n(361);n(370);var o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(a),s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Stack=s,r.Line=o,r.LineStack=s,t.exports=o},function(t,e,n){function i(t){var e=g.shape.line,n=l.mix({},e,t.style);return f.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function r(t){var e=g.shape.line,n=l.mix({lineWidth:2,radius:6},e,t.style);return f.addStrokeAttrs(n,t),n}function a(t,e,n,i){var r;if(e){var a=i.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),r=h.getSplinePath(t,!1,a)}else r=h.getLinePath(t,!1),n&&r.push(["Z"]);return r}function o(t,e){var n=t.points,i=t.isInCircle,r=n[0];return l.isArray(r.y)?function(t,e,n,i){for(var r=[],o=i.isStack,s=[],u=0;u<t.length;u++){var c=t[u],l=f.splitPoints(c);s.push(l[0]),r.push(l[1])}var h=a(r,e,n,i),p=a(s,e,n,i);return o?h:h.concat(p)}(n,e,i,t):a(n,e,i,t)}function s(t,e){return function(t){var e=[];return l.each(t,function(t,n){var i=0===n?["M",t.x,t.y]:["L",t.x,t.y];e.push(i)}),e}(function(t,e){var n=[];return l.each(t,function(i,r){var a=t[r+1];n.push(i),a&&(n=n.concat(e(i,a)))}),n}(t.points,e))}function u(t,e){return l.mix({symbol:e?function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}},r(t))}function c(t,e){return l.mix({symbol:e},r(t))}var l=n(0),h=n(23),f=n(45),p=n(19),g=n(7),d=[1,1],v=[5.5,1],y=p.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return f.splitPoints(t)},drawShape:function(t,e,n){var i,r=this.getShape(t);return(i=1===e.points.length&&g.showSinglePoint?function(t,e,n){var i=e.points[0];return n.addShape("circle",{attrs:l.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}(0,e,n):r.draw(e,n))&&(i.set("origin",e.origin),i._id=e.splitedIndex?e._id+e.splitedIndex:e._id,i.name=this.name),i}});p.registerShape("line","line",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return u(t)}}),p.registerShape("line","dot",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix(n,{path:r,lineDash:d})})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=d,e}}),p.registerShape("line","dash",{draw:function(t,e){var n=i(t),r=o(t,!1);return e.addShape("path",{attrs:l.mix({path:r,lineDash:v},n)})},getMarkerCfg:function(t){var e=u(t,!1);return e.lineDash=e.lineDash||v,e}}),p.registerShape("line","smooth",{draw:function(t,e){var n=i(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var a=o(t,!0);return e.addShape("path",{attrs:l.mix(n,{path:a})})},getMarkerCfg:function(t){return u(t,!0)}}),p.registerShape("line","hv",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vh",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]})}}),p.registerShape("line","hvh",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[],i=(e.x-t.x)/2+t.x;return n.push({x:i,y:t.y}),n.push({x:i,y:e.y}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]})}}),p.registerShape("line","vhv",{draw:function(t,e){var n=i(t),r=s(t,function(t,e){var n=[],i=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:i}),n.push({x:e.x,y:i}),n});return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return c(t,function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]})}}),y.spline=y.smooth,t.exports=y},function(t,e,n){function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var r=n(21),a=n(0);n(372);var o=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,i){var r=this,o=t.shape,s=r.getDrawCfg(t);r._applyViewThemeShapeStyle(s,o,n);var u;if(a.isArray(t.y)){var c=r.hasStack();a.each(t.y,function(t,a){s.y=t,s.yIndex=a,c&&0===a||(u=n.drawShape(o,s,e),r.appendShapeInfo(u,i+a))})}else a.isNil(t.y)||(u=n.drawShape(o,s,e),r.appendShapeInfo(u,i))},e}(r),s=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(o),u=function(t){function e(){return t.apply(this,arguments)||this}i(e,t);return e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(o);o.Jitter=s,o.Stack=u,r.Point=o,r.PointJitter=s,r.PointStack=u,t.exports=o},function(t,e,n){function i(t){var e=s.shape.point,n=a.mix({},e,t.style);return o.addFillAttrs(n,t),a.isNumber(t.size)&&(n.radius=t.size),n}function r(t){var e=s.shape.hollowPoint,n=a.mix({},e,t.style);return o.addStrokeAttrs(n,t),a.isNumber(t.size)&&(n.radius=t.size),n}var a=n(0),o=n(45),s=n(7),u=n(19),c=n(16).Marker,l=a.PathUtil,h=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],f=Math.sqrt(3);a.mix(c.Symbols,{hexagon:function(t,e,n){var i=n/2*f;return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}});var p=u.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,i=e.radius;return n=t&&(0===t.indexOf("hollow")||-1!==a.indexOf(h,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,{radius:i+1,shadowBlur:i,shadowColor:n,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return o.splitPoints(t)}});u.registerShape("point","rect",{draw:function(t,e){var n=i(t),r=function(t){var e=t.points[0].x,n=t.points[0].y,i=t.size[0],r=t.size[1];return[["M",e-.5*i,n-.5*r],["L",e+.5*i,n-.5*r],["L",e+.5*i,n+.5*r],["L",e-.5*i,n+.5*r],["z"]]}(t);r=this.parsePath(r);return e.addShape("path",{attrs:a.mix(n,{path:r})})},getMarkerCfg:function(t){var e=i(t);return e.symbol="rect",e.radius=4.5,e}}),a.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],function(t){u.registerShape("point",t,{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:a.mix(r,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=i(e);return n.symbol=t,n.radius=4.5,n}}),u.registerShape("point","hollow"+a.upperFirst(t),{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}})}),a.each(h,function(t){u.registerShape("point",t,{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:a.mix(i,{symbol:t,x:e.x,y:e.y})})},getMarkerCfg:function(e){var n=r(e);return n.symbol=t,n.radius=4.5,n}})}),u.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var g={};u.registerShape("point","path",{draw:function(t,e){var n,o=a.mix({},r(t),i(t)),s=t.shape[1],u=t.size||10;if(g[s])n=g[s];else{var c=l.parsePathString(s),h=a.flatten(c).filter(function(t){return a.isNumber(t)});g[s]=n={range:Math.max.apply(null,h)-Math.min.apply(null,h),segments:c}}var f=u/n.range,p=[];o.rotate&&(p.push(["r",o.rotate/180*Math.PI]),delete o.rotate);var d=e.addShape("path",{attrs:a.mix(o,{path:n.segments})});return p.push(["s",f,f],["t",t.x,t.y]),d.transform(p),d}}),t.exports=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var i=n(172);n(367),n(369),n(371),t.exports=i}])});
|