!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.BizCharts=e(require("react")):t.BizCharts=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=598)}([function(t,e,n){var r=n(208),i=n(18),a=r.mix({},r,{assign:r.mix,merge:r.deepMix,cloneDeep:r.clone,isFinite:isFinite,isNaN:isNaN,snapEqual:r.isNumberEqual,remove:r.pull,inArray:r.contains,toAllPadding:function(t){var e=0,n=0,r=0,i=0;return a.isNumber(t)||a.isString(t)?e=n=r=i=t:a.isArray(t)?(e=t[0],r=a.isNil(t[1])?t[0]:t[1],i=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]):a.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]},getClipByRange:function(t){var e=t.tl,n=t.br;return new i.Rect({attrs:{x:e.x,y:e.y,width:n.x-e.x,height:n.y-e.y}})}});a.Array={groupToMap:r.groupToMap,group:r.group,merge:r.merge,values:r.valuesOfKey,getRange:r.getRange,firstValue:r.firstValue,remove:r.pull},t.exports=a},function(t,e,n){var r=n(95),i={};r.merge(i,r,{isColorProp:function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},isGradientColor:function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)}),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(180),i={};r.merge(i,r,{mixin:function(t,e){var n=t.CFG?"CFG":"ATTRS";if(t&&e){t._mixins=e,t[n]=t[n]||{};var r={};i.each(e,function(e){i.augment(t,e);var a=e[n];a&&i.merge(r,a)}),t[n]=i.merge(r,t[n])}}}),t.exports=i},function(t,e,n){var r=n(33),i=n(5);t.exports=function(t,e){if(t){if(i(t))for(var n=0,a=t.length;a>n&&!1!==e(t[n],n);n++);else if(r(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}}},function(t,e,n){var r=n(52),i=n(208);t.exports=i.mix({assign:i.mix,isFinite:isFinite,isNaN:isNaN,Group:r.Group,Event:r.Event},i)},function(t,e,n){var r=n(19);t.exports=Array.isArray?Array.isArray:function(t){return r(t,"Array")}},function(t,e,n){var r=n(0),i=n(162),a={version:"3.5.19",renderer:"canvas",trackingInfo:{},animate:!0,widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{},registerTheme:function(t,e){i[t]=e},setTheme:function(t){var e={};e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(a,e)}};a.setTheme("default"),t.exports=a},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){function r(t){for(var e=[],n=0;t.length>n;n++)e.push(i.isArray(t[n])?[].concat(t[n]):t[n]);return e}var i=n(2),a=n(362),o=n(163),s=n(89),u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={},i.extend(u,o);var l={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};i.augment(u,a,{isShape:!0,drawInner:function(t){var e=this,n=e._attrs;e.createPath(t);var r=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;i.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=r)}if(e.hasStroke()){if(e._attrs.lineWidth>0){var o=n.strokeOpacity;i.isNil(o)||1===o||(t.globalAlpha=o),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!s.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[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&&(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=this,e=null,n=t._attrs,a={};return i.each(n,function(t,e){a[e]=l[e]&&i.isArray(n[e])?r(n[e]):n[e]}),e=new t.constructor({attrs:a}),e._cfg.zIndex=t._cfg.zIndex,e}}),t.exports=u},function(t,e,n){function r(t){for(var e=[],n=0;t.length>n;n++)e.push(i.isArray(t[n])?[].concat(t[n]):t[n]);return e}var i=n(1),a=n(384),o=n(181),s=n(94),u=["zIndex","capture","visible"],l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={},i.extend(l,o);var c={matrix:"matrix",path:"path",points:"points",lineDash:"lineDash"};i.augment(l,a,{isShape:!0,drawInner:function(t){var e=this,n=e._attrs;e.createPath(t);var r=t.globalAlpha;if(e.hasFill()){var a=n.fillOpacity;i.isNil(a)||1===a?t.fill():(t.globalAlpha=a,t.fill(),t.globalAlpha=r)}if(e.hasStroke()){if(e._attrs.lineWidth>0){var o=n.strokeOpacity;i.isNil(o)||1===o||(t.globalAlpha=o),t.stroke()}}e.afterPath(t)},afterPath:function(){},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var i=n.getBBox();if(i&&!s.box(i.minX,i.maxX,i.minY,i.maxY,r[0],r[1]))return!1}var a=n._attrs.clip;return a?(a.invert(r,n.get("canvas")),!!a.isPointInPath(r[0],r[1])&&n.isPointInPath(r[0],r[1])):n.isPointInPath(r[0],r[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&&(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=this,e=null,n=t._attrs,a={};return i.each(n,function(t,e){a[e]=c[e]&&i.isArray(n[e])?r(n[e]):n[e]}),e=new t.constructor({attrs:a}),i.each(u,function(n){e._cfg[n]=t._cfg[n]}),e}}),t.exports=l},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}t.exports=function(t,e,r,i){return e&&n(t,e),r&&n(t,r),i&&n(t,i),t}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Number")}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){return(c.isString(t)||c.isPlainObject(t))&&(t=[t]),c.each(t,function(e,n){c.isObject(e)||(t[n]={type:e})}),t}var s=n(78),u=n(258),l=n(150),c=n(0),h=n(6),f=n(325),p=n(13),d=n(331),g=n(329),v=n(330),y=n(344),m=["color","shape","size"];t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n.viewTheme=n.get("viewTheme"),c.assign(r(n),d,g,v),n.get("container")&&n._initContainer(),n._initOptions(),n}i(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=o(t),this.set("adjusts",t))},n._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},n._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},n._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?c.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},n.position=function(t){return this._setAttrOptions("position",{field:t}),this},n.color=function(t,e){return this._createAttrOption("color",t,e,(this.viewTheme||h).colors),this},n.size=function(t,e){return this._createAttrOption("size",t,e,(this.viewTheme||h).sizes),this},n.shape=function(t,e){return this._createAttrOption("shape",t,e,(this.viewTheme||h).shapes[this.get("type")]||[]),this},n.opacity=function(t,e){return this._createAttrOption("opacity",t,e,(this.viewTheme||h).opacities),this},n.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),c.isObject(t)&&(e=t,t=null);var r;return t&&(r=y(t)),n.fields=r,n.style=e,this},n.label=function(t,e,n){var r=this,i=r.get("labelCfg");i||(i={},r.set("labelCfg",i));var a;return t&&(a=y(t)),i.fields=a,c.isFunction(e)?(n||(n={}),i.callback=e):c.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 r;t&&(r=y(t)),n.fields=r,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):c.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):c.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,n=e.get("adjusts");if(!t)return!1;var r=!1;return c.each(n,function(e){if(e.type===t)return r=!0,!1}),r},n.hasStack=function(){var t=this.get("isStacked");return c.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,e=t.get("shapeContainer");if(!e){var n=t.get("container"),r=t.get("view");e=n.addGroup({viewId:r&&r.get("_id"),visible:t.get("visible")}),t.set("shapeContainer",e)}},n.init=function(){var t=this;if(t._initContainer(),t._initAttrs(),t.get("tooltipCfg")&&t.get("tooltipCfg").fields){var e=t.get("tooltipCfg").fields;c.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,e=t.get("attrs"),n=t.get("attrOptions"),r=t.get("coord"),i=t.viewTheme||h,a=!1;for(var o in n)if(n.hasOwnProperty(o)){var u=n[o],l=c.upperFirst(o),f=y(u.field);"position"===o&&(u.coord=r,1===f.length&&"theta"===r.type&&(f.unshift("1"),a=!0));for(var p=[],d=0;f.length>d;d++){var g=f[d],v=t._createScale(g);"color"===o&&c.isNil(u.values)&&(u.values=v.values.length>8?v.values.length>16?i.colors_24:a?i.colors_pie_16:i.colors_16:a?i.colors_pie:i.colors,c.isNil(u.values)&&(u.values=i.colors)),p.push(v)}if("theta"===r.type&&"position"===o&&p.length>1){var m=p[1],x=Math.max.apply(null,m.values);isFinite(x)||(x=1),m.change({nice:!1,min:0,max:x})}u.scales=p;var b=new s[l](u);e[o]=b}},n._processData=function(){for(var t=this,e=this.get("data"),n=[],r=this._groupData(e),i=0;r.length>i;i++){n.push(t._numberic(t._saveOrigin(r[i])))}return n},n._groupData=function(t){var e=this._getGroupScales(),n=e.map(function(t){return t.field});return c.Array.group(t,n)},n._saveOrigin=function(t){for(var e=[],n=0;t.length>n;n++){var r=t[n],i={};for(var a in r)i[a]=r[a];i._origin=r,e.push(i)}return e},n._numberic=function(t){for(var e=this.getAttr("position"),n=e.scales,r=[],i=0;t.length>i;i++){for(var a=t[i],o=!0,s=0;so;o++){var s=r[o];if(c.isArray(s[t])){var u=Math.min.apply(null,s[t]),l=Math.max.apply(null,s[t]);i>u&&(i=u),l>a&&(a=l)}}(e.min>i||a>e.max)&&e.change({min:i,max:a})},n._adjust=function(t){if(t&&t.length){var e=this,n=e.get("adjusts"),r=this.viewTheme||h,i=e.getYScale(),a=e.getXScale(),o=a.field,s=i?i.field:null;c.each(n,function(n){var l=c.mix({xField:o,yField:s},n),h=c.upperFirst(n.type);if("Dodge"===h){var f=[];if(a.isCategory||a.isIdentity)f.push("x");else{if(i)throw Error("dodge is not support linear attribute, please use category attribute!");f.push("y")}l.adjustNames=f,l.dodgeRatio=l.dodgeRatio||r.widthRatio.column}else if("Stack"===h){var p=e.get("coord");if(!i){l.height=p.getHeight();var d=e.getDefaultValue("size")||3;l.size=d}!p.isTransposed&&c.isNil(l.reverseOrder)&&(l.reverseOrder=!0)}new u[h](l).processAdjust(t),"Stack"===h&&i&&e._updateStackRange(s,i,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,e=t.get("dataArray"),n=[],r=t.getShapeFactory();r.setCoord(t.get("coord")),t.set("shapeFactory",r);var i=t.get("shapeContainer");t._beforeMapping(e);for(var a=0;e.length>a;a++){var o=e[a],s=a;o=t._mapping(o),n.push(o),t.draw(o,i,r,s)}t.get("labelCfg")&&t._addLabels(c.union.apply(null,n),i.get("children")),t.get("sortable")?t.set("dataArray",n):t._sort(n)},n._sort=function(t){var e=this,n=e.getXScale(),r=n.field;c.each(t,function(t){t.sort(function(t,e){return n.translate(t._origin[r])-n.translate(e._origin[r])})}),e.set("dataArray",t)},n._beforeMapping=function(t){var e=this;if(e.get("sortable")){var n=e.getXScale(),r=n.field;c.each(t,function(t){t.sort(function(t,e){return n.translate(t[r])-n.translate(e[r])})})}e.get("generatePoints")&&(c.each(t,function(t){e._generatePoints(t)}),c.each(t,function(e,n){var r=t[n+1];r&&(e[0].nextPoints=r[0].points)}))},n._addLabels=function(t,e){var n=this,r=n.get("type"),i=n.get("viewTheme")||h,a=n.get("coord"),o=f.getLabelsClass(a.type,r),s=n.get("container"),u=c.map(n.get("labelCfg").fields,function(t){return n._createScale(t)}),l=s.addGroup(o,{_id:this.get("_id"),labelCfg:c.mix({scales:u},n.get("labelCfg")),coord:a,geom:n,geomType:r,yScale:n.getYScale(),viewTheme:i,visible:n.get("visible")});l.showLabels(t,e),n.set("labelContainer",l)},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,n=e.getShapeFactory(),r=e.getAttr("shape"),i=0;t.length>i;i++){var a=t[i],o=e.createShapePointsCfg(a);a.points=n.getShapePoints(r?e._getAttrValues(r,a):null,o)}},n.createShapePointsCfg=function(t){var e,n=this.getXScale(),r=this.getYScale(),i=this._normalizeValues(t[n.field],n);return e=r?this._normalizeValues(t[r.field],r):t.y?t.y:.1,{x:i,y:e,y0:r?r.scale(this.getYMinValue()):void 0}},n.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return 0>e?n>0?0:n:e},n._normalizeValues=function(t,e){var n=[];if(c.isArray(t))for(var r=0;t.length>r;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},n._mapping=function(t){for(var e=this,n=e.get("attrs"),r=[],i=0;t.length>i;i++){var a=t[i],o={};o._origin=a._origin,o.points=a.points,o.nextPoints=a.nextPoints;for(var s in n)if(n.hasOwnProperty(s)){var u=n[s],l=u.names,h=e._getAttrValues(u,a);if(l.length>1)for(var f=0;h.length>f;f++){var p=h[f],d=l[f];o[d]=c.isArray(p)&&1===p.length?p[0]:p}else o[l[0]]=1===h.length?h[0]:h}r.push(o)}return r},n._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;n.length>i;i++){var a=n[i],o=a.field;r.push("identity"===a.type?a.value:e[o])}return t.mapping.apply(t,r)},n.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;if(n){r=this._getAttrValues(n,e)[0]}return r},n.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},n.draw=function(t,e,n,r){for(var i=this,a=0;t.length>a;a++){i.drawPoint(t[a],e,n,r+a)}},n.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map(function(t){return n[t]});return c.each(e,function(t,e){r[e]=c.isFunction(t)?t.apply(null,i):t}),r},n._getShapeId=function(t){var e=this.get("_id"),n=this.get("keyFields");if(n&&n.length>0)c.each(n,function(n){e+="-"+t[n]});else{var r,i=this.get("type"),a=this.getXScale(),o=this.getYScale(),s=a.field||"x",u=o.field||"y",l=t[u];r=a.isIdentity?a.value:t[s],e+="interval"===i||"schema"===i?"-"+r:"line"===i||"area"===i||"path"===i?"-"+i:"-"+r+"-"+l;var h=this._getGroupScales();c.isEmpty(h)||c.each(h,function(n){var r=n.field;"identity"!==n.type&&(e+="-"+t[r])})}return e},n.getDrawCfg=function(t){var e=this,n={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:e.isInCircle(),opacity:t.opacity},r=e.get("styleOptions");return r&&r.style&&(n.style=e.getCallbackCfg(r.fields,r.style,t._origin)),e.get("generatePoints")&&(n.points=t.points,n.nextPoints=t.nextPoints),e.get("animate")&&(n._id=e._getShapeId(t._origin)),n},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 r=this,i=r.viewTheme||h,a=n.name;e?e&&(e.indexOf("hollow")>-1||e.indexOf("liquid")>-1)&&(a="hollow"+c.upperFirst(a)):n.defaultShapeType.indexOf("hollow")>-1&&(a="hollow"+c.upperFirst(a)),t.style=c.mix({},i.shape[a]||{},t.style)},n.drawPoint=function(t,e,n,r){var i=this,a=t.shape,o=i.getDrawCfg(t);i._applyViewThemeShapeStyle(o,a,n),i.appendShapeInfo(n.drawShape(a,o,e),r)},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"),n=e.get("children");return c.each(n,function(e){e.get("origin")&&t.push(e)}),t},n.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return c.each(t,function(t){m.includes(t.type)&&e.push(t)}),e},n.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return c.each(m,function(n){var r=e[n];r&&r.field&&c.isString(r.field)&&(t=t.concat(r.field.split("*")))}),c.uniq(t)},n.changeVisible=function(t,e){this.set("visible",t);var n=this.get("shapeContainer");n&&n.set("visible",t);var r=this.get("labelContainer");if(r&&r.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}(l)},function(t,e,n){var r=n(0),i=n(27),a=r.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?i.convertPolarPath(n,t):i.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;r.isArray(t)&&(t=t[0]);var n=e[t]||e[e.defaultShapeType];return n._coord=e._coord,n},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){n=this.getShape(this.defaultShapeType)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t),i=r.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=r.upperFirst(t),i=r.assign({},u,e);return o[n]=i,i.name=t,i},o.registerShape=function(t,e,n){var i=r.upperFirst(t),a=o[i],u=r.assign({},s,n);return a[e]=u,u},o.getShapeFactory=function(t){var e=this;return t=t||"point",e[r.upperFirst(t)]},t.exports=o},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Function")}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"String")}},function(t,e,n){"use strict";var r=n(119);n.d(e,"f",function(){return r.h}),n.d(e,"e",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(493);n.d(e,"c",function(){return i.b}),n.d(e,"b",function(){return i.a});var a=n(492);n.d(e,"a",function(){return a.a})},function(t,e,n){"use strict";function r(t,e){var n=a(t,e);if(n.state>h)throw Error("too late; already scheduled");return n}function i(t,e){var n=a(t,e);if(n.state>d)throw Error("too late; already running");return n}function a(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function o(t,e,r){function i(t){r.state=f,r.timer.restart(a,r.delay,r.time),r.delay>t||a(t-r.delay)}function a(i){var h,v,m,x;if(r.state!==f)return s();for(h in c)if(x=c[h],x.name===r.name){if(x.state===d)return n.i(u.timeout)(a);x.state===g?(x.state=y,x.timer.stop(),x.on.call("interrupt",t,t.__data__,x.index,x.group),delete c[h]):e>+h&&(x.state=y,x.timer.stop(),x.on.call("cancel",t,t.__data__,x.index,x.group),delete c[h])}if(n.i(u.timeout)(function(){r.state===d&&(r.state=g,r.timer.restart(o,r.delay,r.time),o(i))}),r.state=p,r.on.call("start",t,t.__data__,r.index,r.group),r.state===p){for(r.state=d,l=Array(m=r.tween.length),h=0,v=-1;m>h;++h)(x=r.tween[h].value.call(t,t.__data__,r.index,r.group))&&(l[++v]=x);l.length=v+1}}function o(e){for(var n=r.duration>e?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=v,1),i=-1,a=l.length;++in;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(47),c=r(l),h=n(31),f=r(h),p=function(t){function e(t,n){i(this,e);var r=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.getParentInfo=function(){return{id:r.id,name:r.name}},r.name=n,r}return o(e,t),u(e,[{key:"getChildContext",value:function(){return{addElement:this.context.addElement,updateElement:this.context.updateElement,deleteElement:this.context.deleteElement,createId:this.context.createId,getParentInfo:this.getParentInfo,getViewId:this.context.getViewId}}},{key:"componentWillMount",value:function(){var t=this.context;this.id=t.createId(),t.addElement(this.name,this.id,this.props,t.getParentInfo(),t.getViewId())}},{key:"componentWillReceiveProps",value:function(t){this.context.updateElement(this.name,this.id,t,this.context.getParentInfo(),this.context.getViewId())}},{key:"componentWillUnmount",value:function(){this.context.deleteElement(this.name,this.id)}},{key:"render",value:function(){var t=this.props.children;return t?t.length&&(t=c.default.createElement("div",null,t)):t=null,t}}]),e}(l.Component);p.contextTypes={addElement:f.default.func,updateElement:f.default.func,deleteElement:f.default.func,createId:f.default.func,getParentInfo:f.default.func,getViewId:f.default.func},p.childContextTypes={addElement:f.default.func,updateElement:f.default.func,deleteElement:f.default.func,createId:f.default.func,getParentInfo:f.default.func,getViewId:f.default.func},p.generateBaseTypedComponent=s,e.default=p},function(t,e,n){function r(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;i>r;r++){var a=t[r];n.push(0===r?["M",a.x,a.y]:["L",a.x,a.y])}return e&&n.push(["Z"]),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 a(t,e){for(var n=t.length,r=[t[0]],i=1;n>i;i+=2){var a=e.convertPoint({x:t[i],y:t[i+1]});r.push(a.x,a.y)}return r}function o(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]},l=[],c=r?"y":"x",h=Math.abs(u[c]-s[c])*(o-a),f=s[c]>u[c]?0:1,p=h>Math.PI?1:0,d=n.convertPoint(u),g=i(n,d);if(g>=.5)if(h===2*Math.PI){var v={x:(u.x+s.x)/2,y:(u.y+s.y)/2},y=n.convertPoint(v);l.push(["A",g,g,0,p,f,y.x,y.y]),l.push(["A",g,g,0,p,f,d.x,d.y])}else l.push(["A",g,g,0,p,f,d.x,d.y]);return l}function s(t){u.each(t,function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}})}var u=n(0),l=n(345),c={getLinePath:function(t,e){return r(t,e)},getSplinePath:function(t,e,n){var r=[],i=t[0],a=null;if(2>=t.length)return c.getLinePath(t,e);u.each(t,function(t){a&&a.x===t.x&&a.y===t.y||(r.push(t.x),r.push(t.y),a=t)}),n=n||[[0,0],[1,1]];var o=l.catmullRom2bezier(r,e,n);return o.unshift(["M",i.x,i.y]),o},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 u.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(a(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n,r,i,l,c=[];return u.each(e,function(s,u){switch(s[0].toLowerCase()){case"m":case"c":case"q":c.push(a(s,t));break;case"l":n=e[u-1],r=s,i=t.isTransposed,l=i?n[n.length-2]===r[1]:n[n.length-1]===r[2],l?c=c.concat(o(n,r,t)):c.push(a(s,t));break;case"z":default:c.push(s)}}),s(c),c}};t.exports=c},function(t,e,n){var r=n(10),i=n(3),a=n(33),o=n(7);t.exports=function(){function t(t){this._initDefaultCfg(),r(this,t),this.init()}var e=t.prototype;return e._initDefaultCfg=function(){this.type="base",this.formatter=null,this.range=[0,1],this.ticks=null,this.values=[]},e.init=function(){},e.getTicks=function(){var t=this,e=t.ticks,n=[];return i(e,function(e){var r;r=a(e)?e:{text:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)}),n},e.getText=function(t,e){var n=this.formatter;return t=n?n(t,e):t,!o(t)&&t.toString||(t=""),""+t},e.rangeMin=function(){return this.range[0]},e.rangeMax=function(){var t=this.range;return t[t.length-1]},e.invert=function(t){return t},e.translate=function(t){return t},e.scale=function(t){return t},e.clone=function(){var t=this,e=t.constructor,n={};return i(t,function(e,r){n[r]=t[r]}),new e(n)},e.change=function(t){return this.ticks=null,r(this,t),this.init(),this},t}()},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function i(t){return n.i(o.selection)().transition(t)}function a(){return++C}e.b=r,e.a=i,e.c=a;var o=n(24),s=n(571),u=n(572),l=n(573),c=n(574),h=n(575),f=n(577),p=n(578),d=n(579),g=n(580),v=n(581),y=n(582),m=n(583),x=n(584),b=n(585),_=n(586),w=n(587),M=n(588),S=n(76),A=n(576),C=0,P=o.selection.prototype;r.prototype=i.prototype={constructor:r,select:v.a,selectAll:y.a,filter:f.a,merge:p.a,selection:m.a,transition:M.a,call:P.call,nodes:P.nodes,node:P.node,size:P.size,empty:P.empty,each:P.each,on:d.a,attr:s.a,attrTween:u.a,style:x.a,styleTween:b.a,text:_.a,textTween:w.a,remove:g.a,tween:S.a,delay:l.a,duration:c.a,ease:h.a,end:A.a}},function(t,e,n){var r=n(0),i=r.DomUtil,a=["start","process","end","reset"];t.exports=function(){function t(t,e){var n=this,i=n.getDefaultCfg();r.assign(n,i,t),n.view=n.chart=e,n.canvas=e.get("canvas"),n._bindEvents()}var e=t.prototype;return e.getDefaultCfg=function(){return{startEvent:"mousedown",processEvent:"mousemove",endEvent:"mouseup",resetEvent:"dblclick"}},e._start=function(t){var e=this;e.preStart&&e.preStart(t),e.start(t),e.onStart&&e.onStart(t)},e._process=function(t){var e=this;e.preProcess&&e.preProcess(t),e.process(t),e.onProcess&&e.onProcess(t)},e._end=function(t){var e=this;e.preEnd&&e.preEnd(t),e.end(t),e.onEnd&&e.onEnd(t)},e._reset=function(t){var e=this;e.preReset&&e.preReset(t),e.reset(t),e.onReset&&e.onReset(t)},e.start=function(){},e.process=function(){},e.end=function(){},e.reset=function(){},e._bindEvents=function(){var t=this,e=t.canvas,n=e.get("canvasDOM");t._clearEvents(),r.each(a,function(e){var a=r.upperFirst(e);t["_on"+a+"Listener"]=i.addEventListener(n,t[e+"Event"],r.wrapBehavior(t,"_"+e))})},e._clearEvents=function(){var t=this;r.each(a,function(e){var n="_on"+r.upperFirst(e)+"Listener";t[n]&&t[n].remove()})},e.destroy=function(){this._clearEvents()},t}()},function(t,e,n){t.exports=n(593)()},function(t,e,n){t.exports={Axis:n(271),Component:n(79),Guide:n(279),Label:n(283),Legend:n(289),Tooltip:n(294)}},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){"use strict";function r(t,e){return function(n){return t+n*e}}function i(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function a(t,e){var i=e-t;return i?r(t,i>180||-180>i?i-360*Math.round(i/360):i):n.i(u.a)(isNaN(t)?e:t)}function o(t){return 1==(t=+t)?s:function(e,r){return r-e?i(e,r,t):n.i(u.a)(isNaN(e)?r:e)}}function s(t,e){var i=e-t;return i?r(t,i):n.i(u.a)(isNaN(t)?e:t)}e.b=a,e.c=o,e.a=s;var u=n(242)},function(t,e,n){var r=n(10);t.exports=function(){function t(t){this._initDefaultCfg(),r(this,t)}var e=t.prototype;return e._initDefaultCfg=function(){this.adjustNames=["x","y"]},e.processAdjust=function(){},t}()},function(t,e,n){function r(t,e){return i(e)?e:t.invert(t.scale(e))}var i=n(15),a=n(5),o=n(7),s=n(10),u=n(3);t.exports=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,r=this.callback;if(t.callback){var i=t.callback;n=function(){for(var t=arguments.length,n=Array(t),a=0;t>a;a++)n[a]=arguments[a];var s=i.apply(void 0,n);return o(s)&&(s=r.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]}return this.getLinearValue(t.scale(e))},e.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,a=e[r];return a+((r===n?a:e[r+1])-a)*i},e.callback=function(t){var e=this,n=e.scales[0];return"identity"===n.type?n.value:e._getAttrValue(n,t)},e.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;n>i;i++)r.push(e[i]);return r},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,r=Array(n),i=0;n>i;i++)r[i]=arguments[i];var a=r;if(e){for(var o=0,s=r.length;s>o;o++)r[o]=this._toOriginParam(r[o],t[o]);a=e.apply(this,r)}return a=[].concat(a)},e._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(a(t)){n=[];for(var i=0,o=t.length;o>i;i++)n.push(r(e,t[i]))}else n=r(e,t);return n},t}()},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(38),o=n(4),s=n(138),u=n(140),l=n(21),c=l.FONT_FAMILY;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,e=t.get("title"),n=t.get("label"),r=t.get("grid");e&&t.set("title",o.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c,textAlign:"center"},offset:48},e)),n&&t.set("label",o.deepMix({autoRotate:!0,autoHide:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:c},offset:10},n)),r&&t.set("grid",o.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},r))},n.render=function(){var t=this;t.beforeRender(),t.get("label")&&t.renderLabels(),t.get("autoPaint")&&t.paint(),o.isNil(t.get("title"))||t.renderTitle(),t.get("group").sort()},n.renderLabels=function(){var t=this,e=t.get("group"),n=t.get("label"),r=new u({name:"axis-label"});t.set("labelRenderer",r),r.set("labelCfg",n),o.each(["formatter","htmlTemplate","labelLine","textStyle","useHtml"],function(t){n[t]&&r.set(t,n[t])}),r.set("coord",t.get("coord")),r.set("group",e.addGroup()),r.set("canvas",t.get("canvas"))},n._parseTicks=function(t){t=t||[];for(var e=t.length,n=0;e>n;n++){var r=t[n];o.isObject(r)||(t[n]=this.parseTick(r,n,e))}return this.set("ticks",t),t},n._addTickItem=function(t,e,n,r){void 0===r&&(r="");var i=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};i||(i=[]),a||(a=[]),"sub"===r?a.push(s):i.push(s),this.set("tickItems",i),this.set("subTickItems",a)},n._renderLine=function(){var t,e=this,n=e.get("line");if(n){t=e.getLinePath(),n=o.mix({path:t},n);var r=e.get("group"),i=r.addShape("path",{attrs:n});i.name="axis-line",e.get("appendInfo")&&i.setSilent("appendInfo",e.get("appendInfo")),e.set("lineShape",i)}},n._processCatTicks=function(){var t=this,e=t.get("label"),n=t.get("tickLine"),r=t.get("ticks");r=t._parseTicks(r);for(var i=t._getNormalizedTicks(r),a=0;i.length>a;a+=3){var o=t.getTickPoint(i[a]),s=t.getTickPoint(i[a+1]),u=t.getTickPoint(i[a+2]),l=Math.floor(a/3),c=r[l];n&&(0===l&&t._addTickItem(l,s,n.length),t._addTickItem(l,u,n.length)),e&&t.addLabel(c,o,l)}},n._getNormalizedTicks=function(t){var e=0;t.length>1&&(e=(t[1].value-t[0].value)/2);for(var n=[],r=0;t.length>r;r++){var i=t[r];n.push(i.value,i.value-e,i.value+e)}var a=o.arrayUtil.getRange(n);return n.map(function(t){return(t-a.min)/(a.max-a.min)})},n.addLabel=function(t,e,n){var r=this,i=r.get("labelItems"),a=r.get("labelRenderer"),s=o.deepMix({},r.get("label"));if(a){var u=r.get("_labelOffset");o.isNil(r.get("label").offset)||(u=r.get("label").offset);var l=r.getSideVector(u,e,n);e={x:e.x+l[0]+s.offsetX,y:e.y+l[1]+s.offsetY},s.text=t.text,s.x=e.x,s.y=e.y,s.point=e,s.textAlign=r.getTextAnchor(l),e.rotate&&(s.rotate=e.rotate),i.push(s)}},n._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),r=t.get("tickLine"),i=t.get("ticks");if(i=t._parseTicks(i),o.each(i,function(n,i){var a=t.getTickPoint(n.value,i);r&&t._addTickItem(i,a,r.length),e&&t.addLabel(n,a,i)}),n){var a=t.get("subTickLine");o.each(i,function(e,o){if(o>0){var s=e.value-i[o-1].value;s/=t.get("subTickCount")+1;for(var u=1;n>=u;u++){var l={text:"",value:o?i[o-1].value+u*s:u*s},c=t.getTickPoint(l.value),h=void 0;h=a&&a.length?a.length:parseInt(.6*r.length,10),t._addTickItem(u-1,c,h,"sub")}}})}},n._addTickLine=function(t,e){var n=this,r=o.mix({},e),i=[];o.each(t,function(t){i.push(["M",t.x1,t.y1]),i.push(["L",t.x2,t.y2])}),delete r.length,r.path=i;var a=n.get("group"),s=a.addShape("path",{attrs:r});s.name="axis-ticks",s._id=n.get("_id")+"-ticks",s.set("coord",n.get("coord")),n.get("appendInfo")&&s.setSilent("appendInfo",n.get("appendInfo"))},n._renderTicks=function(){var t=this,e=t.get("tickItems"),n=t.get("subTickItems");if(!o.isEmpty(e)){t._addTickLine(e,t.get("tickLine"))}if(!o.isEmpty(n)){t._addTickLine(n,t.get("subTickLine")||t.get("tickLine"))}},n._renderGrid=function(){var t=this.get("grid");if(t){t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo");this.set("gridGroup",this.get("group").addGroup(s,t))}},n._renderLabels=function(){var t=this,e=t.get("labelRenderer"),n=t.get("labelItems");e&&(e.set("items",n),e._dryDraw())},n.paint=function(){var t=this,e=t.get("tickLine"),n=!0;e&&e.hasOwnProperty("alignWithLabel")&&(n=e.alignWithLabel),t._renderLine();var r=t.get("type");"cat"!==r&&"timeCat"!==r||!1!==n?t._processTicks():t._processCatTicks(),t._renderTicks(),t._renderGrid(),t._renderLabels();var i=this.get("label");i&&i.autoRotate&&t.autoRotateLabels(),i&&i.autoHide&&t.autoHideLabels()},n.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},n.getTextAnchor=function(t){var e=Math.abs(t[1]/t[0]);return 1>e?t[0]>0?"start":"end":"center"},n.getMaxLabelWidth=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox(),r=e.width;r>n&&(n=r)}),n},n.getMaxLabelHeight=function(t){var e=t.getLabels(),n=0;return o.each(e,function(t){var e=t.getBBox(),r=e.height;r>n&&(n=r)}),n},n.destroy=function(){var e=this;if(!e.destroyed){var n=e.get("gridGroup");n&&n.remove();var r=this.get("labelRenderer");r&&r.destroy();e.get("group").destroy(),t.prototype.destroy.call(this)}},n.clear=function(){var t=this,e=t.get("group");if(!e.get("destroyed")&&e.get("children").length){var n=t.get("gridGroup");n&&n.clear();var r=this.get("labelRenderer");r&&r.clear();t.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)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(79);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);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}(a)},function(t,e,n){var r=n(2),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi,o={};t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if(e=e.match(a),e[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},numberToColor:function(t){var e=o[t];if(!e){for(var n=t.toString(16),r=n.length;6>r;r++)n="0"+n;e="#"+n,o[t]=e}return e}}},function(t,e,n){var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;t.exports={parseRadius:function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},parsePath:function(t){return t=t||[],r.isArray(t)?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if(e=e.match(a),e[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}}},function(t,e,n){function r(t,e,n,s){n=n||0,s=s||o;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&i(l)?(i(t[u])||(t[u]={}),s>n?r(t[u],l,n+1,s):t[u]=e[u]):a(l)?(t[u]=[],t[u]=t[u].concat(l)):void 0!==l&&(t[u]=l)}}var i=n(45),a=n(5),o=5;t.exports=function(){for(var t=Array(arguments.length),e=t.length,n=0;e>n;n++)t[n]=arguments[n];for(var i=t[0],a=1;e>a;a++)r(i,t[a]);return i}},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)180||-180>i?i-360*Math.round(i/360):i):n.i(u.a)(isNaN(t)?e:t)}function o(t){return 1==(t=+t)?s:function(e,r){return r-e?i(e,r,t):n.i(u.a)(isNaN(e)?r:e)}}function s(t,e){var i=e-t;return i?r(t,i):n.i(u.a)(isNaN(t)?e:t)}e.b=a,e.c=o,e.a=s;var u=n(235)},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var o=n(68),s=n(10),u=o.mat3,l=o.vec3;t.exports=function(){function t(e){r(this,t);var n=this.getDefaultCfg();s(this,n,e),this.init()}return a(t,[{key:"getDefaultCfg",value:function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}}}]),a(t,[{key:"init",value:function(){var t=this.start,e=this.end;this.center={x:(t.x+e.x)/2,y:(t.y+e.y)/2},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],r=n.start;return r+t*(n.end-r)}},{key:"invertDim",value:function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)}},{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,r=this.matrix,i=[t,e,n];return l.transformMat3(i,i,r),i}},{key:"invertMatrix",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=u.invert([],r),a=[t,e,n];return l.transformMat3(a,a,i),a}},{key:"convert",value:function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[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 u.translate(e,e,[-n.x,-n.y]),u.rotate(e,e,t),u.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,r=this.center;return u.translate(n,n,[-r.x,-r.y]),u.scale(n,n,[t,e]),u.translate(n,n,[r.x,r.y]),this}},{key:"translate",value:function(t,e){var n=this.matrix;return u.translate(n,n,[t,e]),this}},{key:"transpose",value:function(){return this.isTransposed=!this.isTransposed,this}}]),t}()},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){var n=!1;return s.each(t,function(t){var r=[].concat(t.values),i=[].concat(e.values);if(t.type===e.type&&t.field===e.field&&""+r.sort()==""+i.sort())return void(n=!0)}),n}function o(t,e){return s.isEqualWith(t,e,function(t,e){return t===e})}var s=n(0),u=n(310),l=n(18),c=l.Canvas,h=s.DomUtil,f=n(6),p=n(314),d=n(151),g=n(153),v=n(152),y=n(154);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.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:f.plotCfg.padding,background:null,autoPaddingAppend:5,limitInPlot:!1,renderer:f.renderer,views:[]})},n.init=function(){var e=this,n=e.get("viewTheme");e._initCanvas(),e._initPlot(),e._initEvents(),t.prototype.init.call(this),e.set("tooltipController",new d.Tooltip({chart:e,viewTheme:n,options:{}})),e.set("legendController",new d.Legend({chart:e,viewTheme:n})),e.set("_id","chart"),e.emit("afterinit")},n._isAutoPadding=function(){var t=this.get("padding");return s.isArray(t)?t.includes("auto"):"auto"===t},n._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot"),n=e.getBBox(),r=this.get("backPlot"),i=v(r,y(this.get("plotRange"))),a=g(n,i),o=[0-a.minY,a.maxX-this.get("width"),a.maxY-this.get("height"),0-a.minX],u=s.toAllPadding(t),l=0;u.length>l;l++)if("auto"===u[l]){var c=Math.max(0,o[l]);u[l]=c+this.get("autoPaddingAppend")}return u},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"),r=this.get("height");if(s.isString(t)){if(!(t=document.getElementById(t)))throw Error("Please specify the container for the chart!");this.set("container",t)}var i=h.createDom('
');t.appendChild(i),this.set("wrapperEl",i),this.get("forceFit")&&(n=h.getWidth(t,n),this.set("width",n));var a=this.get("renderer");this.set("canvas",new c({containerDOM:i,width:n,height:r,pixelRatio:"svg"===a?1:this.get("pixelRatio"),renderer:a}))},n._initPlot=function(){var t=this;t._initPlotBack();var e=t.get("canvas"),n=e.addGroup({zIndex:1}),r=e.addGroup({zIndex:0}),i=e.addGroup({zIndex:3});t.set("backPlot",n),t.set("middlePlot",r),t.set("frontPlot",i)},n._initPlotBack=function(){var t=this,e=t.get("canvas"),n=t.get("viewTheme"),r=e.addGroup(p,{padding:this.get("padding"),plotBackground:s.mix({},n.plotBackground,t.get("plotBackground")),background:s.mix({},n.background,t.get("background"))});t.set("plot",r),t.set("plotRange",r.get("plotRange"))},n._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",s.wrapBehavior(this,"_initForceFitEvent"))},n._initForceFitEvent=function(){var t=setTimeout(s.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},n._renderLegends=function(){var t=this.get("options"),e=t.legends;if(s.isNil(e)||!1!==e){var n=this.get("legendController");if(n.options=e||{},n.plotRange=this.get("plotRange"),e&&e.custom)n.addCustomLegend();else{var r=this.getAllGeoms(),i=[];s.each(r,function(t){var e=t.get("view"),r=t.getAttrsForLegend();s.each(r,function(r){var o=r.type,s=r.getScale(o);if(s.field&&"identity"!==s.type&&!a(i,s)){i.push(s);var u=e.getFilteredOutValues(s.field);n.addLegend(s,r,t,u)}})});var o=this.getYScales();0===i.length&&o.length>1&&n.addMixedLegend(o,r)}n.alignLegends()}},n._renderTooltips=function(){var t=this.get("options");if(s.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 s.each(e,function(e){t=t.concat(e.get("geoms"))}),t},n.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=t.get("container"),n=t.get("width"),r=h.getWidth(e,n);if(0!==r&&r!==n){t.changeSize(r,t.get("height"))}return t}},n.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");o(e,t.get("padding"))||(t.set("padding",e),t.repaint())},n.changeSize=function(t,e){var n=this;n.get("canvas").changeSize(t,e);var r=this.get("plot");return n.set("width",t),n.set("height",e),r.repaint(),this.set("keepPadding",!0),n.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),n},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||{},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"),s.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=s.mix({},this._getSharedOptions(),t.options);var e=new u(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");s.Array.remove(e,t),t.destroy()},n._getSharedOptions=function(){var t=this.get("options"),e={};return s.each(["scales","coord","axes"],function(n){e[n]=s.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 r={};return!1===t?n.legends=!1:s.isObject(t)?r=t:s.isString(t)?r[t]=e:r=e,s.mix(n.legends,r),this},n.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:s.isObject(t)?s.mix(n.tooltip,t):s.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");s.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}t.prototype.clearInner.call(this)},n.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},n.render=function(){var e=this;if(!e.get("keepPadding")&&e._isAutoPadding()){e.beforeRender(),e.drawComponents();var n=e._getAutoPadding(),r=e.get("plot");o(r.get("padding"),n)||(r.set("padding",n),r.repaint())}var i=e.get("middlePlot");if(e.get("limitInPlot")&&!i.attr("clip")){i.attr("clip",s.getClipByRange(e.get("plotRange")))}t.prototype.render.call(this),e._renderTooltips()},n.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},n.changeVisible=function(t){this.get("wrapperEl").style.display=t?"":"none"},n.toDataURL=function(){var t=this,e=t.get("canvas"),n=t.get("renderer"),r=e.get("el"),i="";if("svg"===n){var a=r.cloneNode(!0),o=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),s=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",o);s.replaceChild(a,s.documentElement);var u=(new XMLSerializer).serializeToString(s);i="data:image/svg+xml;charset=utf8,"+encodeURIComponent(u)}else"canvas"===n&&(i=r.toDataURL("image/png"));return i},n.downloadImage=function(t){var e=this,n=document.createElement("a"),r=e.get("renderer"),i=(t||"chart")+("svg"===r?".svg":".png");e.get("canvas").get("timeline").stopAllAnimations(),setTimeout(function(){var t=e.toDataURL();if(window.Blob&&window.URL&&"svg"!==r){for(var a=t.split(","),o=a[0].match(/:(.*?);/)[1],s=atob(a[1]),u=s.length,l=new Uint8Array(u);u--;)l[u]=s.charCodeAt(u);var c=new Blob([l],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(c,i):n.addEventListener("click",function(){n.download=i,n.href=window.URL.createObjectURL(c)})}else n.addEventListener("click",function(){n.download=i,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,n=e.getViewsByPoint(t),r=[];return s.each(n,function(e){var n=e.get("geoms");s.each(n,function(e){var n=e.get("dataArray"),i=[];s.each(n,function(n){var r=e.findPoint(t,n);if(r){var a=e.getTipItems(r);i=i.concat(a)}}),r=r.concat(i)})}),r},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",s.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(u)},function(t,e,n){var r=n(202),i=n(18),a=n(149),o=n(49),s=n(6),u=n(13),l=n(0),c={version:s.version,Animate:a,Chart:o,Global:s,Scale:r,Shape:u,Util:l,G:i,DomUtil:l.DomUtil,MatrixUtil:l.MatrixUtil,PathUtil:l.PathUtil};c.track=function(){console.warn("G2 tracks nothing ;-)")},"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+c.version+"'s reference is 'window.G2_3'"):window.G2=c),t.exports=c},function(t,e,n){var r=n(6),i=n(0),a=i.assign,o=i.isNil,s=i.isArray,u=i.cloneDeep,l=i.wrapBehavior,c=i.getWrapBehavior;t.exports=function(){function t(t){var e=this.getDefaultCfg();a(this,e,t),this.init()}var e=t.prototype;return e.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},e.init=function(){if(!this.chart)throw Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},e.initContainer=function(){this.group=this.chart.get("frontPlot").addGroup()},e.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;r.length>i;i++){var a=r[i],o=a.region,s=t.view({start:o.start,end:o.end,padding:this.padding});s.source(a.data),this.beforeProcessView(s,a),n&&n(s,a),this.afterProcessView(s,a),a.view=s}this.facets=r},e.beforeProcessView=function(){},e.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},e.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,a=s(i)?i:i.split("*").map(function(t){return t.trim()}),u=a[0],l=a[1];o(n.axes)&&(n.axes={});var c=n.axes;!1!==c&&(u&&!1!==c[u]&&(c[u]=c[u]||{},this.setXAxis(u,c,e)),l&&!1!==c[l]&&(c[l]=c[l]||{},this.setYAxis(l,c,e)))}},e.setXAxis=function(){},e.setYAxis=function(){},e.renderTitle=function(t,e){this.drawColTitle(t,e)},e.getScaleText=function(t,e,n){var r;if(t){var i=n.get("scales"),a=i[t];a||(a=n.createScale(t)),r=a.getText(e)}else r=e;return r},e.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=a({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},e.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=a({position:["100%","50%"],content:n},u(this.rowTitle));t.guide().text(r)},e.getFilter=function(t){return function(e){var n=!0;return t.forEach(function(t){var r=t.field,i=t.value,a=!0;!o(i)&&r&&(a=e[r]===i),n=n&&a}),n}},e.getFieldValues=function(t,e){for(var n=[],r={},i=0;e.length>i;i++){var a=e[i],s=a[t];o(s)||r[s]||(n.push(s),r[s]=!0)}return n},e.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+a}}},e.generateFacets=function(){return[]},e._bindEvent=function(){var t=this.chart;t.on("afterchangedata",l(this,"onDataChange")),t.on("beforeclear",l(this,"onClear")),t.on("beforedestroy",l(this,"destroy")),t.on("beforepaint",l(this,"onPaint")),t.on("setdata",l(this,"onDataChange"))},e._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",c(this,"onDataChange")),t.off("beforeclear",c(this,"onClear")),t.off("beforedestroy",c(this,"destroy")),t.off("beforepaint",c(this,"onPaint")),t.off("setdata",c(this,"onDataChange")))},e._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;t.length>n;n++){var r=t[n];e.removeView(r.view)}this.facets=null},e.onClear=function(){this.onRemove()},e.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;t.length>e;e++){var n=t[e],r=n.view;this.renderTitle(r,n)}},e.onDataChange=function(){this._clearFacets(),this.initViews()},e.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},e.destroy=function(){this.onRemove(),this.destroyed=!0},t}()},function(t,e,n){t.exports={Canvas:n(359),Group:n(164),Shape:n(8),Arc:n(166),Circle:n(167),Dom:n(168),Ellipse:n(169),Fan:n(170),Image:n(171),Line:n(172),Marker:n(87),Path:n(175),Polygon:n(176),Polyline:n(177),Rect:n(178),Text:n(179),PathSegment:n(56),PathUtil:n(90),Event:n(165),version:"3.3.6"}},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i,a;return r?e>t?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e<2*Math.PI||(a=2*Math.PI),e=u.mod(e,2*Math.PI),n=u.mod(n,2*Math.PI)+a,t=u.mod(t,2*Math.PI),r?n>e?e>t||t>n?t:i(t,e,n):t>n&&e>t?t:i(t,n,e,!0):e>n?t>e||n>t?t:i(t,n,e):t>e&&n>t?t:i(t,e,n,!0)}function o(t,e,n,r,i,o,s,l,c){var h=[s,l],f=[t,e],p=[1,0],d=u.vec2.subtract([],h,f),g=u.vec2.angleTo(p,d);g=a(g,r,i,o);var v=[n*Math.cos(g)+t,n*Math.sin(g)+e];return c&&(c.x=v[0],c.y=v[1]),u.vec2.distance(v,h)}function s(t,e,n,i,o,s){var l=Math.PI/2,c=Math.PI,h=3*Math.PI/2,f=[],p=a(0,i,o,s);0===p&&f.push(r(t,e,n,0)),p=a(l,i,o,s),p===l&&f.push(r(t,e,n,l)),p=a(c,i,o,s),p===c&&f.push(r(t,e,n,c)),p=a(h,i,o,s),p===h&&f.push(r(t,e,n,h)),f.push(r(t,e,n,i)),f.push(r(t,e,n,o));var d=1/0,g=-1/0,v=1/0,y=-1/0;return u.each(f,function(t){d>t.x&&(d=t.x),t.x>g&&(g=t.x),v>t.y&&(v=t.y),t.y>y&&(y=t.y)}),{minX:d,minY:v,maxX:g,maxY:y}}var u=n(2);t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,s,u){var l={};return o(t,e,n,r,i,a,s,u,l),l},pointDistance:o,box:s}},function(t,e,n){var r=n(2).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var l=[a-t,o-e];return Math.abs(r.dot(l,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r,i,a,o){var s,d,g,v,y,m,x;if(!e.fill){var b=e.arrowLength||f,_=e.arrowAngle?e.arrowAngle*u/180:p;x=h(r-a,n-i),y=Math.abs(e.lineWidth*c(x))/2,m=Math.abs(e.lineWidth*l(x))/2,o&&(y=-y,m=-m),s=i+b*c(x+_/2),d=a+b*l(x+_/2),g=i+b*c(x-_/2),v=a+b*l(x-_/2),t.beginPath(),t.moveTo(s-y,d-m),t.lineTo(i-y,a-m),t.lineTo(g-y,v-m),t.moveTo(i-y,a-m),t.lineTo(i+y,a+m),t.moveTo(i,a),t.stroke()}}function i(t){var e,n=[],r=o.parsePath(t.path);if(!Array.isArray(r)||0===r.length||"M"!==r[0][0]&&"m"!==r[0][0])return!1;for(var i=r.length,a=0;r.length>a;a++){e=new s(r[a],e,a===i-1),n.push(e)}return n}function a(t,e,n,r,a,o,s){var u=s?e.startArrow:e.endArrow,l=u.d,c=0,h=a-n,f=o-r,p=Math.atan(h/f);0===f&&0>h?c=Math.PI:h>0&&f>0?c=Math.PI/2-p:0>h&&0>f?c=-Math.PI/2-p:h>=0&&0>f?c=-p-Math.PI/2:0>=h&&f>0&&(c=Math.PI/2-p);var d=i(u);if(d){l&&(s?(a+=Math.sin(Math.abs(p))*l,o=o+Math.cos(Math.abs(p))*l-.5*t.lineWidth):(a-=Math.sin(Math.abs(p))*l,o=o-Math.cos(Math.abs(p))*l+.5*t.lineWidth)),t.save(),t.beginPath(),t.translate(a,o),t.rotate(c);for(var g=0;d.length>g;g++)d[g].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var o=n(39),s=n(56),u=Math.PI,l=Math.sin,c=Math.cos,h=Math.atan2,f=10,p=u/3;t.exports={addStartArrow:function(t,e,n,i,o,s){"object"==typeof e.startArrow?a(t,e,n,i,o,s,!0):e.startArrow&&r(t,e,n,i,o,s,!0)},addEndArrow:function(t,e,n,i,o,s){"object"==typeof e.endArrow?a(t,e,n,i,o,s,!1):e.endArrow&&r(t,e,n,i,o,s,!1)}}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(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[1]*e[0]>t[0]*e[1]?-1:1)*Math.acos(o(t,e))}function u(t,e,n,r,i,a,u){var c=l.mod(l.toRadian(u),2*Math.PI),h=t.x,f=t.y,p=e.x,d=e.y,g=Math.cos(c)*(h-p)/2+Math.sin(c)*(f-d)/2,v=-1*Math.sin(c)*(h-p)/2+Math.cos(c)*(f-d)/2,y=g*g/(i*i)+v*v/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var m=i*i*(v*v)+a*a*(g*g),x=Math.sqrt((i*i*(a*a)-m)/m);n===r&&(x*=-1),isNaN(x)&&(x=0);var b=x*i*v/a,_=x*-a*g/i,w=(h+p)/2+Math.cos(c)*b-Math.sin(c)*_,M=(f+d)/2+Math.sin(c)*b+Math.cos(c)*_,S=s([1,0],[(g-b)/i,(v-_)/a]),A=[(g-b)/i,(v-_)/a],C=[(-1*g-b)/i,(-1*v-_)/a],P=s(A,C);return o(A,C)>-1||(P=Math.PI),1>o(A,C)||(P=0),0===r&&P>0&&(P-=2*Math.PI),1===r&&0>P&&(P+=2*Math.PI),[t,w,M,i,a,S,P,c,r]}var l=n(2),c=n(89),h=n(88),f=n(174),p=n(173),d=l.vec3,g=l.mat3,v=["m","l","c","a","q","h","v","t","s","z"],y=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};l.augment(y,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,o,s,c,h=v.indexOf(n)>=0,f=h?n.toUpperCase():n,p=t,d=e.endPoint,g=p[1],y=p[2];switch(f){default:break;case"M":c=h?r(g,y,d):{x:g,y:y},this.command="M",this.params=[d,c],this.subStart=c,this.endPoint=c;break;case"L":c=h?r(g,y,d):{x:g,y:y},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"H":c=h?r(g,0,d):{x:g,y:d.y},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"V":c=h?r(0,g,d):{x:d.x,y:g},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"Q":h?(a=r(g,y,d),o=r(p[3],p[4],d)):(a={x:g,y:y},o={x:p[3],y:p[4]}),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]};break;case"T":o=h?r(g,y,d):{x:g,y:y},"Q"===e.command?(a=i(e.params[1],d),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]}):(this.command="TL",this.params=[d,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-d.x,o.y-d.y]},this.startTangent=function(){return[d.x-o.x,d.y-o.y]});break;case"C":h?(a=r(g,y,d),o=r(p[3],p[4],d),s=r(p[5],p[6],d)):(a={x:g,y:y},o={x:p[3],y:p[4]},s={x:p[5],y:p[6]}),this.command="C",this.params=[d,a,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]};break;case"S":h?(o=r(g,y,d),s=r(p[3],p[4],d)):(o={x:g,y:y},s={x:p[3],y:p[4]}),"C"===e.command?(a=i(e.params[2],d),this.command="C",this.params=[d,a,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]}):(this.command="SQ",this.params=[d,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-o.x,d.y-o.y]});break;case"A":var m=g,x=y,b=p[3],_=p[4],w=p[5];c=h?r(p[6],p[7],d):{x:p[6],y:p[7]},this.command="A";var M=u(d,c,_,w,m,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=c;var A=M[5]%(2*Math.PI);l.isNumberEqual(A,2*Math.PI)&&(A=0);var C=M[6]%(2*Math.PI);l.isNumberEqual(C,2*Math.PI)&&(C=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=M[3]*Math.cos(A-P)+M[1],e=M[4]*Math.sin(A-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];1e-4>t-2*Math.PI&&(t=0);var e=M[3]*Math.cos(A+t+P)+M[1],n=M[4]*Math.sin(A+t-P)+M[2];return[d.x-e,d.y-n]};break;case"Z":this.command="Z",this.params=[d,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,i=r.command,a=r.params,o=r.box;if(o&&!c.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return c.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return c.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return c.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var s=a,u=s[1],l=s[2],h=s[3],f=s[4],p=s[5],v=s[6],y=s[7],m=s[8],x=h>f?h:f,b=h>f?1:h/f,_=h>f?f/h:1;s=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return g.translate(w,w,[-u,-l]),g.rotate(w,w,-y),g.scale(w,w,[1/b,1/_]),d.transformMat3(s,s,w),c.arcline(0,0,x,p,p+v,1-m,n,s[0],s[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){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],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],l=s,c=u,h=o[3],f=o[4],p=o[5],d=o[6],g=o[7],v=o[8],y=h>f?h:f,m=h>f?1:h/f,x=h>f?f/h:1;t.translate(l,c),t.rotate(g),t.scale(m,x),t.arc(0,0,y,p,p+d,1-v),t.scale(1/m,1/x),t.rotate(-g),t.translate(-l,-c);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,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(n=f.extrema(o[0].x,o[1].x,o[2].x),r=0,i=n.length;i>r;r++)n[r]=f.at(o[0].x,o[1].x,o[2].x,n[r]);for(n.push(o[0].x,o[2].x),e=f.extrema(o[0].y,o[1].y,o[2].y),r=0,i=e.length;i>r;r++)e[r]=f.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(n=h.extrema(o[0].x,o[1].x,o[2].x,o[3].x),r=0,i=n.length;i>r;r++)n[r]=h.at(o[0].x,o[1].x,o[2].x,o[3].x,n[r]);for(e=h.extrema(o[0].y,o[1].y,o[2].y,o[3].y),r=0,i=e.length;i>r;r++)e[r]=h.at(o[0].y,o[1].y,o[2].y,o[3].y,e[r]);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],l=s[2],c=s[3],d=s[4],g=s[5],v=s[6],y=s[7],m=s[8],x=g,b=g+v,_=p.xExtrema(y,c,d),w=1/0,M=-1/0,S=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var A=_+r;1===m?A>x&&b>A&&S.push(A):A>b&&x>A&&S.push(A)}for(r=0,i=S.length;i>r;r++){var C=p.xAt(y,c,d,u,S[r]);w>C&&(w=C),C>M&&(M=C)}var P=p.yExtrema(y,c,d),k=1/0,T=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===m?O>x&&b>O&&I.push(O):O>b&&x>O&&I.push(O)}for(r=0,i=I.length;i>r;r++){var E=p.yAt(y,c,d,l,I[r]);k>E&&(k=E),E>T&&(T=E)}this.box={minX:w-a,maxX:M+a,minY:k-a,maxY:T+a}}}}),t.exports=y},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function i(t,e,n,r){var i,a;return r?e>t?(i=e-t,a=2*Math.PI-n+t):t>n&&(i=2*Math.PI-t+e,a=t-n):(i=t-e,a=n-t),i>a?n:e}function a(t,e,n,r){var a=0;return n-e<2*Math.PI||(a=2*Math.PI),e=u.mod(e,2*Math.PI),n=u.mod(n,2*Math.PI)+a,t=u.mod(t,2*Math.PI),r?n>e?e>t||t>n?t:i(t,e,n):t>n&&e>t?t:i(t,n,e,!0):e>n?t>e||n>t?t:i(t,n,e):t>e&&n>t?t:i(t,e,n,!0)}function o(t,e,n,r,i,o,s,l,c){var h=[s,l],f=[t,e],p=[1,0],d=u.vec2.subtract([],h,f),g=u.vec2.angleTo(p,d);g=a(g,r,i,o);var v=[n*Math.cos(g)+t,n*Math.sin(g)+e];return c&&(c.x=v[0],c.y=v[1]),u.vec2.distance(v,h)}function s(t,e,n,i,o,s){var l=Math.PI/2,c=Math.PI,h=3*Math.PI/2,f=[],p=a(0,i,o,s);0===p&&f.push(r(t,e,n,0)),p=a(l,i,o,s),p===l&&f.push(r(t,e,n,l)),p=a(c,i,o,s),p===c&&f.push(r(t,e,n,c)),p=a(h,i,o,s),p===h&&f.push(r(t,e,n,h)),f.push(r(t,e,n,i)),f.push(r(t,e,n,o));var d=1/0,g=-1/0,v=1/0,y=-1/0;return u.each(f,function(t){d>t.x&&(d=t.x),t.x>g&&(g=t.x),v>t.y&&(v=t.y),t.y>y&&(y=t.y)}),{minX:d,minY:v,maxX:g,maxY:y}}var u=n(1);t.exports={nearAngle:a,projectPoint:function(t,e,n,r,i,a,s,u){var l={};return o(t,e,n,r,i,a,s,u,l),l},pointDistance:o,box:s}},function(t,e,n){var r=n(1).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,i,a,o){var s=[n-t,i-e];if(r.exactEquals(s,[0,0]))return NaN;var u=[-s[1],s[0]];r.normalize(u,u);var l=[a-t,o-e];return Math.abs(r.dot(l,u))},box:function(t,e,n,r,i){var a=i/2,o=Math.min(t,n),s=Math.max(t,n);return{minX:o-a,minY:Math.min(e,r)-a,maxX:s+a,maxY:Math.max(e,r)+a}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){function r(t,e,n,r,i,a,o){var s,u,g,v,y,m,x;if(!e.fill){var b=e.arrowLength||p,_=e.arrowAngle?e.arrowAngle*l/180:d;x=f(r-a,n-i),y=Math.abs(e.lineWidth*h(x))/2,m=Math.abs(e.lineWidth*c(x))/2,o&&(y=-y,m=-m),s=i+b*h(x+_/2),u=a+b*c(x+_/2),g=i+b*h(x-_/2),v=a+b*c(x-_/2),t.beginPath(),t.moveTo(s-y,u-m),t.lineTo(i-y,a-m),t.lineTo(g-y,v-m),t.moveTo(i-y,a-m),t.lineTo(i+y,a+m),t.moveTo(i,a),t.stroke()}}function i(t){var e,n=[],r=s.parsePath(t.path);if(!Array.isArray(r)||0===r.length||"M"!==r[0][0]&&"m"!==r[0][0])return!1;for(var i=r.length,a=0;r.length>a;a++){e=new u(r[a],e,a===i-1),n.push(e)}return n}function a(t,e,n,r,i){var a=Math.atan2(r-e,n-t);return{dx:h(a)*i,dy:c(a)*i}}function o(t,e,n,r,a,o,s){var u=s?e.startArrow:e.endArrow,l=u.d,f=a-n,p=o-r,d=Math.atan2(p,f),g=i(u);if(g){l&&(a-=h(d)*l,o-=c(d)*l),t.save(),t.beginPath(),t.translate(a,o),t.rotate(d);for(var v=0;g.length>v;v++)g[v].draw(t);t.setTransform(1,0,0,1,0,0),t.fillStyle=t.strokeStyle,t.fill(),t.restore()}}var s=n(40),u=n(60),l=Math.PI,c=Math.sin,h=Math.cos,f=Math.atan2,p=10,d=l/3;t.exports={addStartArrow:function(t,e,n,i,a,s){"object"==typeof e.startArrow?o(t,e,n,i,a,s,!0):e.startArrow&&r(t,e,n,i,a,s,!0)},addEndArrow:function(t,e,n,i,a,s){"object"==typeof e.endArrow?o(t,e,n,i,a,s,!1):e.endArrow&&r(t,e,n,i,a,s,!1)},getShortenOffset:a}},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function i(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[1]*e[0]>t[0]*e[1]?-1:1)*Math.acos(o(t,e))}function u(t,e,n,r,i,a,u){var c=l.mod(l.toRadian(u),2*Math.PI),h=t.x,f=t.y,p=e.x,d=e.y,g=Math.cos(c)*(h-p)/2+Math.sin(c)*(f-d)/2,v=-1*Math.sin(c)*(h-p)/2+Math.cos(c)*(f-d)/2,y=g*g/(i*i)+v*v/(a*a);y>1&&(i*=Math.sqrt(y),a*=Math.sqrt(y));var m=i*i*(v*v)+a*a*(g*g),x=Math.sqrt((i*i*(a*a)-m)/m);n===r&&(x*=-1),isNaN(x)&&(x=0);var b=x*i*v/a,_=x*-a*g/i,w=(h+p)/2+Math.cos(c)*b-Math.sin(c)*_,M=(f+d)/2+Math.sin(c)*b+Math.cos(c)*_,S=s([1,0],[(g-b)/i,(v-_)/a]),A=[(g-b)/i,(v-_)/a],C=[(-1*g-b)/i,(-1*v-_)/a],P=s(A,C);return o(A,C)>-1||(P=Math.PI),1>o(A,C)||(P=0),0===r&&P>0&&(P-=2*Math.PI),1===r&&0>P&&(P+=2*Math.PI),[t,w,M,i,a,S,P,c,r]}var l=n(1),c=n(94),h=n(93),f=n(193),p=n(192),d=l.vec3,g=l.mat3,v=["m","l","c","a","q","h","v","t","s","z"],y=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};l.augment(y,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var a,o,s,c,h=v.indexOf(n)>=0,f=h?n.toUpperCase():n,p=t,d=e.endPoint,g=p[1],y=p[2];switch(f){default:break;case"M":c=h?r(g,y,d):{x:g,y:y},this.command="M",this.params=[d,c],this.subStart=c,this.endPoint=c;break;case"L":c=h?r(g,y,d):{x:g,y:y},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"H":c=h?r(g,0,d):{x:g,y:d.y},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"V":c=h?r(0,g,d):{x:d.x,y:g},this.command="L",this.params=[d,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-d.x,c.y-d.y]},this.startTangent=function(){return[d.x-c.x,d.y-c.y]};break;case"Q":h?(a=r(g,y,d),o=r(p[3],p[4],d)):(a={x:g,y:y},o={x:p[3],y:p[4]}),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]};break;case"T":o=h?r(g,y,d):{x:g,y:y},"Q"===e.command?(a=i(e.params[1],d),this.command="Q",this.params=[d,a,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-a.x,o.y-a.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]}):(this.command="TL",this.params=[d,o],this.subStart=e.subStart,this.endPoint=o,this.endTangent=function(){return[o.x-d.x,o.y-d.y]},this.startTangent=function(){return[d.x-o.x,d.y-o.y]});break;case"C":h?(a=r(g,y,d),o=r(p[3],p[4],d),s=r(p[5],p[6],d)):(a={x:g,y:y},o={x:p[3],y:p[4]},s={x:p[5],y:p[6]}),this.command="C",this.params=[d,a,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]};break;case"S":h?(o=r(g,y,d),s=r(p[3],p[4],d)):(o={x:g,y:y},s={x:p[3],y:p[4]}),"C"===e.command?(a=i(e.params[2],d),this.command="C",this.params=[d,a,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-a.x,d.y-a.y]}):(this.command="SQ",this.params=[d,o,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-o.x,s.y-o.y]},this.startTangent=function(){return[d.x-o.x,d.y-o.y]});break;case"A":var m=g,x=y,b=p[3],_=p[4],w=p[5];c=h?r(p[6],p[7],d):{x:p[6],y:p[7]},this.command="A";var M=u(d,c,_,w,m,x,b);this.params=M;var S=e.subStart;this.subStart=S,this.endPoint=c;var A=M[5]%(2*Math.PI);l.isNumberEqual(A,2*Math.PI)&&(A=0);var C=M[6]%(2*Math.PI);l.isNumberEqual(C,2*Math.PI)&&(C=0);var P=.001;this.startTangent=function(){0===w&&(P*=-1);var t=M[3]*Math.cos(A-P)+M[1],e=M[4]*Math.sin(A-P)+M[2];return[t-S.x,e-S.y]},this.endTangent=function(){var t=M[6];1e-4>t-2*Math.PI&&(t=0);var e=M[3]*Math.cos(A+t+P)+M[1],n=M[4]*Math.sin(A+t-P)+M[2];return[d.x-e,d.y-n]};break;case"Z":this.command="Z",this.params=[d,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,i=r.command,a=r.params,o=r.box;if(o&&!c.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(i){default:break;case"M":return!1;case"TL":case"L":case"Z":return c.line(a[0].x,a[0].y,a[1].x,a[1].y,n,t,e);case"SQ":case"Q":return c.quadraticline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,n,t,e);case"C":return c.cubicline(a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y,n,t,e);case"A":var s=a,u=s[1],l=s[2],h=s[3],f=s[4],p=s[5],v=s[6],y=s[7],m=s[8],x=h>f?h:f,b=h>f?1:h/f,_=h>f?f/h:1;s=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return g.translate(w,w,[-u,-l]),g.rotate(w,w,-y),g.scale(w,w,[1/b,1/_]),d.transformMat3(s,s,w),c.arcline(0,0,x,p,p+v,1-m,n,s[0],s[1])}return!1},draw:function(t){var e,n,r,i=this.command,a=this.params;switch(i){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],r=a[3],t.bezierCurveTo(e.x,e.y,n.x,n.y,r.x,r.y);break;case"A":var o=a,s=o[1],u=o[2],l=s,c=u,h=o[3],f=o[4],p=o[5],d=o[6],g=o[7],v=o[8],y=h>f?h:f,m=h>f?1:h/f,x=h>f?f/h:1;t.translate(l,c),t.rotate(g),t.scale(m,x),t.arc(0,0,y,p,p+d,1-v),t.scale(1/m,1/x),t.rotate(-g),t.translate(-l,-c);break;case"Z":t.closePath()}},shortenDraw:function(t,e,n){var r,i,a,o=this.command,s=this.params;switch(o){default:break;case"M":t.moveTo(s[1].x-e,s[1].y-n);break;case"TL":case"L":t.lineTo(s[1].x-e,s[1].y-n);break;case"SQ":case"Q":r=s[1],i=s[2],t.quadraticCurveTo(r.x,r.y,i.x-e,i.y-n);break;case"C":r=s[1],i=s[2],a=s[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,a.x-e,a.y-n);break;case"A":var u=s,l=u[1],c=u[2],h=l,f=c,p=u[3],d=u[4],g=u[5],v=u[6],y=u[7],m=u[8],x=p>d?p:d,b=p>d?1:p/d,_=p>d?d/p:1;t.translate(h,f),t.rotate(y),t.scale(b,_),t.arc(0,0,x,g,g+v,1-m),t.scale(1/b,1/_),t.rotate(-y),t.translate(-h,-f);break;case"Z":t.closePath()}},getBBox:function(t){var e,n,r,i,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(n=f.extrema(o[0].x,o[1].x,o[2].x),r=0,i=n.length;i>r;r++)n[r]=f.at(o[0].x,o[1].x,o[2].x,n[r]);for(n.push(o[0].x,o[2].x),e=f.extrema(o[0].y,o[1].y,o[2].y),r=0,i=e.length;i>r;r++)e[r]=f.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(n=h.extrema(o[0].x,o[1].x,o[2].x,o[3].x),r=0,i=n.length;i>r;r++)n[r]=h.at(o[0].x,o[1].x,o[2].x,o[3].x,n[r]);for(e=h.extrema(o[0].y,o[1].y,o[2].y,o[3].y),r=0,i=e.length;i>r;r++)e[r]=h.at(o[0].y,o[1].y,o[2].y,o[3].y,e[r]);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],l=s[2],c=s[3],d=s[4],g=s[5],v=s[6],y=s[7],m=s[8],x=g,b=g+v,_=p.xExtrema(y,c,d),w=1/0,M=-1/0,S=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var A=_+r;1===m?A>x&&b>A&&S.push(A):A>b&&x>A&&S.push(A)}for(r=0,i=S.length;i>r;r++){var C=p.xAt(y,c,d,u,S[r]);w>C&&(w=C),C>M&&(M=C)}var P=p.yExtrema(y,c,d),k=1/0,T=-1/0,I=[x,b];for(r=2*-Math.PI;r<=2*Math.PI;r+=Math.PI){var O=P+r;1===m?O>x&&b>O&&I.push(O):O>b&&x>O&&I.push(O)}for(r=0,i=I.length;i>r;r++){var E=p.yAt(y,c,d,l,I[r]);k>E&&(k=E),E>T&&(T=E)}this.box={minX:w-a,maxX:M+a,minY:k-a,maxY:T+a}}}}),t.exports=y},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(7),a=n(3),o=n(28),s=n(404),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this);var e=this;e.type="linear",e.isLinear=!0,e.nice=!1,e.min=null,e.minLimit=null,e.max=null,e.maxLimit=null,e.tickCount=null,e.tickInterval=null,e.minTickInterval=null,e.snapArray=null},n.init=function(){var t=this;if(t.ticks){var e=t.ticks,n=t.translate(e[0]),r=t.translate(e[e.length-1]);(i(t.min)||t.min>n)&&(t.min=n),(i(t.max)||r>t.max)&&(t.max=r)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},n.calculateTicks=function(){var t=this.min,e=this.max,n=this.minLimit,r=this.maxLimit,i=this.tickCount,a=this.tickInterval,o=this.minTickInterval,u=this.snapArray;if(1===i)throw Error("linear scale'tickCount should not be 1");if(t>e)throw Error("max: "+e+" should not be less than min: "+t);return s({min:t,max:e,minLimit:n,maxLimit:r,minCount:i,maxCount:i,interval:a,minTickInterval:o,snapArray:u}).ticks},n.initTicks=function(){var t=this,e=t.calculateTicks();if(t.nice)t.ticks=e,t.min=e[0],t.max=e[e.length-1];else{var n=[];a(e,function(e){t.min>e||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){return this.min+(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())*(this.max-this.min)},e}(o);o.Linear=u,t.exports=u},function(t,e,n){var r=n(15),i=n(225);t.exports={toTimeStamp:function(t){return r(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),i(t)&&(t=t.getTime()),t}}},function(t,e,n){var r=n(23),i=Array.prototype.indexOf;t.exports=function(t,e){return!!r(t)&&i.call(t,e)>-1}},function(t,e){t.exports=function(t){for(var e=[],n=0;t.length>n;n++)e=e.concat(t[n]);return e}},function(t,e,n){var r="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=n(5);t.exports=function t(e){if("object"!==(void 0===e?"undefined":r(e))||null===e)return e;var n=void 0;if(i(e)){n=[];for(var a=0,o=e.length;o>a;a++)n[a]="object"===r(e[a])&&null!=e[a]?t(e[a]):e[a]}else{n={};for(var s in e)n[s]="object"===r(e[s])&&null!=e[s]?t(e[s]):e[s]}return n}},function(t,e,n){var r=n(115),i=n(23),a=n(15);t.exports=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(a(e)||a(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var o=!0,s=0;e.length>s&&(o=t(e[s],n[s]));s++);return o}if(r(e)||r(n)){var u=Object.keys(e);if(u.length!==Object.keys(n).length)return!1;for(var l=!0,c=0;u.length>c&&(l=t(e[u[c]],n[u[c]]));c++);return l}return!1}},function(t,e){t.exports=function(t,e,n){return e>t?e:t>n?n:t}},function(t,e,n){t.exports={mat3:n(69),vec2:n(111),vec3:n(112),transform:n(110)}},function(t,e,n){var r=n(401);r.translate=function(t,e,n){var i=Array(9);return r.fromTranslation(i,n),r.multiply(t,i,e)},r.rotate=function(t,e,n){var i=Array(9);return r.fromRotation(i,n),r.multiply(t,i,e)},r.scale=function(t,e,n){var i=Array(9);return r.fromScaling(i,n),r.multiply(t,i,e)},t.exports=r},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t){return o.Util.isArray(t)?t.length:o.Util.isObject(t)?Object.keys(t).length:0}Object.defineProperty(e,"__esModule",{value:!0});var a="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},o=n(50);e.default=o.Util.mix({},o.Util,{shallowEqual:function(t,e){if(r(t,e))return!0;if("object"!==(void 0===t?"undefined":a(t))||null===t||"object"!==(void 0===e?"undefined":a(e))||null===e)return!1;if(o.Util.isArray(t)!==o.Util.isArray(e))return!1;if(i(t)!==i(e))return!1;var n=!0;return o.Util.each(t,function(t,i){return!!r(t,e[i])||(n=!1)}),n},without:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return o.Util.each(t,function(t,r){-1===o.Util.indexOf(e,r)&&(n[r]=t)}),n},length:i})},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){"use strict";e.a=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";function r(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===o.b&&e.documentElement.namespaceURI===o.b?e.createElement(t):e.createElementNS(n,t)}}function i(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var a=n(128),o=n(129);e.a=function(t){var e=n.i(a.a)(t);return(e.local?i:r)(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(134);n.d(e,"now",function(){return r.a}),n.d(e,"timer",function(){return r.b}),n.d(e,"timerFlush",function(){return r.c});var i=n(565);n.d(e,"timeout",function(){return i.a});var a=n(564);n.d(e,"interval",function(){return a.a})},function(t,e,n){"use strict";function r(t,e){var r,i;return function(){var a=n.i(o.e)(this,t),s=a.tween;if(s!==r){i=r=s;for(var u=0,l=i.length;l>u;++u)if(i[u].name===e){i=i.slice(),i.splice(u,1);break}}a.tween=i}}function i(t,e,r){var i,a;if("function"!=typeof r)throw Error();return function(){var s=n.i(o.e)(this,t),u=s.tween;if(u!==i){a=(i=u).slice();for(var l={name:e,value:r},c=0,h=a.length;h>c;++c)if(a[c].name===e){a[c]=l;break}c===h&&a.push(l)}s.tween=a}}function a(t,e,r){var i=t._id;return t.each(function(){var t=n.i(o.e)(this,i);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return n.i(o.f)(t,i).value[e]}}e.b=a;var o=n(17);e.a=function(t,e){var a=this._id;if(t+="",2>arguments.length){for(var s,u=n.i(o.f)(this.node(),a).tween,l=0,c=u.length;c>l;++l)if((s=u[l]).name===t)return s.value;return null}return this.each((null==e?r:i)(a,t,e))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.setTheme=e.track=e.Interactions=e.PathUtil=e.Animate=e.Shape=e.Util=e.G2=e.Facet=e.Label=e.Guide=e.View=e.Geom=e.Tooltip=e.Legend=e.Axis=e.Coord=e.Chart=void 0;var i=n(475);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(477);Object.defineProperty(e,"Coord",{enumerable:!0,get:function(){return r(a).default}});var o=n(473);Object.defineProperty(e,"Axis",{enumerable:!0,get:function(){return r(o).default}});var s=n(483);Object.defineProperty(e,"Legend",{enumerable:!0,get:function(){return r(s).default}});var u=n(484);Object.defineProperty(e,"Tooltip",{enumerable:!0,get:function(){return r(u).default}});var l=n(480);Object.defineProperty(e,"Geom",{enumerable:!0,get:function(){return r(l).default}});var c=n(485);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(c).default}});var h=n(481);Object.defineProperty(e,"Guide",{enumerable:!0,get:function(){return r(h).default}});var f=n(482);Object.defineProperty(e,"Label",{enumerable:!0,get:function(){return r(f).default}});var p=n(479);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return r(p).default}});var d=n(50),g=r(d),v=n(353),y=r(v),m=n(70),x=r(m),b=n(491),_=r(b);e.G2=g.default,e.Util=x.default,e.Shape=d.Shape,e.Animate=d.Animate,e.PathUtil=d.PathUtil,e.Interactions=y.default;var w=e.track=function(){},M=e.setTheme=function(t){var e=t;"string"==typeof t&&_.default[t]&&(e=_.default[t]),g.default.Global.setTheme(e)};e.default={G2:g.default,Util:x.default,Shape:d.Shape,Animate:d.Animate,PathUtil:d.PathUtil,track:w,setTheme:M,Interactions:y.default}},function(t,e,n){t.exports={Position:n(266),Color:n(264),Shape:n(267),Size:n(268),Opacity:n(265),ColorUtil:n(137)}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(135),s=n(4);t.exports=function(t){function e(e){var n;n=t.call(this)||this;var i=r(n),a={visible:!0},o=i.getDefaultCfg();return i._attrs=a,s.deepMix(a,o,e),n}i(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.changeVisible=function(){},n.destroy=function(){var t=this;t._attrs={},t.removeAllListeners(),t.destroyed=!0},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(142),s=n(292),u=n(21),l=u.FONT_FAMILY,c=a.Event,h=a.Group;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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:l},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){t.y+=e.getBBox().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 h,e=new h,n=new h,r=this._calStartPoint(),i=this.get("group"),a=i.addGroup(s,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});a.translate(r.x,r.y),this.set("slider",a),this._renderSliderShape().attr("clip",a.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"),r=this.get("textStyle"),i=this.get("triggerAttr"),o=a.mix({},i),s=a.mix({},i),u=a.mix({text:this._formatItemValue(t.value)+""},r),l=a.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",s,l)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",s,l))},n._addVerticalTrigger=function(t,e,n){var r=this.get("slider"),i=r.get(t+"HandleElement"),o=this.get("width"),s=i.addShape("rect",{attrs:a.mix({x:o/2-8-2,y:"min"===t?0:-8,width:18,height:8},e)}),u=i.addShape("text",{attrs:a.mix(n,{x:o+this.get("textOffset"),y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),l=this.get("layout"),c="vertical"===l?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._addHorizontalTrigger=function(t,e,n){var r=this.get("slider"),i=r.get(t+"HandleElement"),o=i.addShape("rect",{attrs:a.mix({x:"min"===t?-8:0,y:-8-this.get("height")/2,width:8,height:16},e)}),s=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"})}),u=this.get("layout"),l="vertical"===u?"ns-resize":"ew-resize";o.attr("cursor",l),s.attr("cursor",l),this.set(t+"ButtonElement",o),this.set(t+"TextElement",s)},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);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"),r=this.get("maxTextElement");e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.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"),r=this.get("width"),i=this.get("items"),a=this.get("canvas").get("el"),o=a.getBoundingClientRect(),s=this.get("group").getBBox();if("vertical"===this.get("layout")){var u=5;"color-legend"===this.get("type")&&(u=30);var l=this.get("titleGap"),c=this.get("titleShape");c&&(l+=c.getBBox().maxY-c.getBBox().minY);var h=t.clientY||t.event.clientY;h=h-o.y-this.get("group").attr("matrix")[7]+s.y-u+l,e=i[0].value+(1-h/n)*(i[i.length-1].value-i[0].value)}else{var f=t.clientX||t.event.clientX;f=f-o.x-this.get("group").attr("matrix")[6],e=i[0].value+f/r*(i[i.length-1].value-i[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"),r=this.get("items");if(t>=r[0].value&&r[r.length-1].value>=t){var i,o=this.get("height"),s=this.get("width"),u=this.get("titleShape"),l=this.get("titleGap"),c=[],h=(t-r[0].value)/(r[r.length-1].value-r[0].value);if("vertical"===this.get("layout")){var f=0,p=0;"color-legend"===this.get("type")&&(f=l,u&&(f+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?f-=13:(f=l-15,u&&(f+=u.getBBox().height)),p+=10),h=(1-h)*o,c=[[p,h+f],[p-10,h+f-5],[p-10,h+f+5]],i=a.mix({},{x:s+this.get("textOffset")/2+p,y:h+f,text:this._formatItemValue(t)+""},this.get("textStyle"),{textAlign:"start"})}else{var d=0,g=0;"color-legend"===this.get("type")&&(d=l,u&&(d+=u.getBBox().height)),this.get("slidable")&&("color-legend"===this.get("type")?d-=7:(d=l,u||(d-=7)),g+=10),h*=s,c=[[h+g,d],[h+g-5,d-10],[h+g+5,d-10]],i=a.mix({},{x:h-5,y:o+this.get("textOffset")+d,text:this._formatItemValue(t)+""},this.get("textStyle"))}var v=a.mix(i,this.get("hoverTextStyle"));n?n.attr(v):(n=this.get("group").addShape("text",{attrs:v}),n.set("id","hoverText")),e?e.attr(a.mix({points:c},this.get("pointerStyle"))):(e=this.get("group").addShape("Polygon",{attrs:a.mix({points:c},this.get("pointerStyle"))}),e.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)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(79),o=n(4);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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"),r=this.get("items"),i=!(t===n&&r.length===e.length);return i||o.each(e,function(t,e){var n=r[e];for(var a in t)if(t.hasOwnProperty(a)&&!o.isObject(t[a])&&t[a]!==n[a]){i=!0;break}if(i)return!1}),i},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)},function(t,e,n){function r(t){var e=0;return c.each(t,function(t){e+=t}),e/t.length}function i(t,e){if(c.isNumber(t)&&c.isNumber(e))return[t,e];for(var n,r,i=-1,a=0,o=0,s=t.length-1,u=0;++ie.offset&&-1===c.indexOf(h,n)?c.deepMix({},t.get("label"),r.innerLabels,e):c.deepMix({},t.get("label"),r.label,e)},getLabelsItems:function(t,e){var n=this,r=[],i=n.get("geom"),a=n.get("coord");n._getLabelCfgs(t,e);var o=n.get("labelItemCfgs");return c.each(t,function(t,e){var s=t._origin,u=o[e];if(!u)return void r.push(null);c.isArray(u.text)||(u.text=[u.text]);var l=u.text.length;c.each(u.text,function(e,o){if(c.isNil(e)||""===e)return void r.push(null);var h=n.getLabelPoint(u,t,o);h=c.mix({},u,h),h.textAlign||(h.textAlign=n.getLabelAlign(h,o,l)),i&&(h._id=i._getShapeId(s)+"-glabel-"+o+"-"+h.text),h.coord=a,r.push(h)})}),r},adjustItems:function(t){return c.each(t,function(t){t&&(t.offsetX&&(t.x+=t.offsetX),t.offsetY&&(t.y+=t.offsetY))}),t},drawLines:function(t){var e=this;c.each(t,function(t){t&&t.offset>0&&e.lineToLabel(t)})},lineToLabel:function(){},getLabelPoint:function(t,e,n){function a(e,n){return c.isArray(e)&&(e=1===t.text.length?e.length>2?r(e):e[e.length-1]:e[n]),e}var o=this,s=o.get("coord"),u=t.text.length,l={text:t.text[n]};if(e&&"polygon"===this.get("geomType")){var h=i(e.x,e.y);l.x=h[0],l.y=h[1]}else l.x=a(e.x,n),l.y=a(e.y,n);if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var f=-1/0;e.nextPoints.forEach(function(t){t=s.convert(t),t.x>f&&(f=t.x)}),l.x=(l.x+f)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=s.convert(t),(c.isArray(t.x)&&!e.x.includes(t.x)||c.isNumber(t.x)&&e.x!==t.x)&&(l.x=(l.x+t.x)/2)}),t.position&&o.setLabelPosition(l,e,n,t.position);var p=o.getLabelOffset(t,n,u);return t.offsetX&&(p.x+=t.offsetX),t.offsetY&&(p.y+=t.offsetY),o.transLabelPoint(l),l.start={x:l.x,y:l.y},l.x+=p.x,l.y+=p.y,l.color=e.color,l},setLabelPosition:function(){},transLabelPoint:function(t){var e=this,n=e.get("coord"),r=n.applyMatrix(t.x,t.y,1);t.x=r[0],t.y=r[1]},getOffsetVector:function(t){var e=this,n=t.offset||0,r=e.get("coord");return r.isTransposed?r.applyMatrix(n,0):r.applyMatrix(0,n)},getDefaultOffset:function(t){var e=this,n=0,r=e.get("coord"),i=e.getOffsetVector(t);n=r.isTransposed?i[0]:i[1];var a=this.get("yScale");if(a&&t.point){0>t.point[a.field]&&(n*=-1)}return n},getLabelOffset:function(t,e,n){var r=this,i=r.getDefaultOffset(t),a=r.get("coord"),o=a.isTransposed,s=o?"x":"y",u=o?1:-1,l={x:0,y:0};return l[s]=e>0||1===n?i*u:i*u*-1,l},getLabelAlign:function(t,e,n){var r=this,i="center";if(r.get("coord").isTransposed){var a=r.getDefaultOffset(t);i=0>a?"right":0===a?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},_getLabelValue:function(t,e){c.isArray(e)||(e=[e]);var n=[];return c.each(e,function(e){var r=t[e.field];if(c.isArray(r)){var i=[];c.each(r,function(t){i.push(e.getText(t))}),r=i}else r=e.getText(r);(c.isNil(r)||""===r)&&n.push(null),n.push(r)}),n},_getLabelCfgs:function(t){var e=this,n=this.get("labelCfg"),r=n.scales,i=this.get("label"),a=e.get("viewTheme")||l,o=[];n.globalCfg&&n.globalCfg.type&&e.set("type",n.globalCfg.type),c.each(t,function(t,s){var u={},l=t._origin,h=e._getLabelValue(l,r);if(n.callback){var f=r.map(function(t){return l[t.field]});u=n.callback.apply(null,[].concat(f,[t,s]))}if(!u&&0!==u)return void o.push(null);if(c.isString(u)||c.isNumber(u)?u={text:u}:(u.text=u.content||h[0],delete u.content),u=c.mix({},i,n.globalCfg||{},u),t.point=l,u.point=l,u.htmlTemplate&&(u.useHtml=!0,u.text=u.htmlTemplate.call(null,u.text,t,s),delete u.htmlTemplate),u.formatter&&(u.text=u.formatter.call(null,u.text,t,s),delete u.formatter),u.label){var p=u.label;delete u.label,u=c.mix(u,p)}if(u.textStyle){delete u.textStyle.offset;var d=u.textStyle;c.isFunction(d)&&(u.textStyle=d.call(null,u.text,t,s))}u.labelLine&&(u.labelLine=c.mix({},i.labelLine,u.labelLine)),u.textStyle=c.mix({},i.textStyle,a.label.textStyle,u.textStyle),delete u.items,o.push(u)}),this.set("labelItemCfgs",o)},showLabels:function(t,e){var n=this,r=n.get("labelRenderer"),i=n.getLabelsItems(t,e);e=[].concat(e);var a=n.get("type");i=n.adjustItems(i,e),n.drawLines(i),r.set("items",i.filter(function(t,n){return!!t||(e.splice(n,1),!1)})),a&&(r.set("shapes",e),r.set("type",a),r.set("points",t)),r.set("canvas",this.get("canvas")),r.draw()},destroy:function(){this.get("labelRenderer").destroy(),f.superclass.destroy.call(this)}}),t.exports=f},function(t,e,n){function r(t,e){var n=t.length;a.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var r=t[1]-t[0],i=2;n>i;i++){var o=t[i]-t[i-1];r>o&&(r=o)}return r}var i=n(6),a=n(0);t.exports={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();n=(o.max-o.min)/r(s,o),s.length>n&&(n=s.length)}else n=s.length;var l=o.range,c=1/n,h=1;if(this.isInCircle()?h=a.isTransposed&&n>1?e.widthRatio.multiplePie:e.widthRatio.rose:(o.isLinear&&(c*=l[1]-l[0]),h=e.widthRatio.column),c*=h,this.hasAdjust("dodge")){var f=this._getDodgeCfg(u),p=f.dodgeCount,d=f.dodgeRatio;c/=p,d>0&&(c=d*c/h)}t=c,this.set("defaultSize",t)}return t},_getDodgeCfg:function(t){var e,n,r=this.get("adjusts"),i=t.length;if(a.each(r,function(t){"dodge"===t.type&&(e=t.dodgeBy,n=t.dodgeRatio)}),e){var o=a.Array.merge(t);i=a.Array.values(o,e).length}return{dodgeCount:i,dodgeRatio:n}},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("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=a.isNil(e)?this.getDefaultSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(a.isNil(e)){e=this._toCoordSize(this.getDefaultSize())}return e}}},function(t,e,n){var r=n(85);t.exports=function(t,e){var n=r(t);if(n&&n[e])return n[e]}},function(t,e){t.exports=function(t){return(t.get("scaleController")||{}).defs}},function(t,e,n){var r=n(0),i=n(62);t.exports=function(t,e){var n,a=e.field,o=e.type,s=r.Array.values(t,a);return"linear"===o?(n=r.Array.getRange(s),n.min>e.min&&(n.min=e.min),e.max>n.max&&(n.max=e.max)):"timeCat"===o?(r.each(s,function(t,e){s[e]=i.toTimeStamp(t)}),s.sort(function(t,e){return t-e}),n=s):n=s,n}},function(t,e,n){var r=n(2),i=n(8),a=n(39),o=n(56),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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.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,r=t.radius,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return t=r.isFunction(o)?o:s.Symbols[o],t?t(n,i,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 r;e=[];for(var i=0;n.length>i;i++){r=new o(n[i],r,i===n.length-1),e.push(r),r.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var s=0;e.length>s;s++)e[s].draw(t)}}}),t.exports=s},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function a(t,e,n,i,a,o,s,u,l,h,f){var p,d,g,v,y,m,x,b,_=.005,w=1/0,M=[l,h];for(d=0;1>d;d+=.05)g=[r(t,n,a,s,d),r(e,i,o,u,d)],v=c.squaredDistance(M,g),w>v&&(p=d,w=v);w=1/0;for(var S=0;32>S&&1e-4<=_;S++)x=p-_,b=p+_,g=[r(t,n,a,s,x),r(e,i,o,u,x)],v=c.squaredDistance(M,g),x>=0&&w>v?(p=x,w=v):(m=[r(t,n,a,s,b),r(e,i,o,u,b)],y=c.squaredDistance(M,m),1>=b&&w>y?(p=b,w=y):_*=.5);return f&&(f.x=r(t,n,a,s,p),f.y=r(e,i,o,u,p)),Math.sqrt(w)}function o(t,e,n,r){var i,a,o,s=3*t-9*e+9*n-3*r,u=6*e-12*n+6*r,c=3*n-3*r,h=[];if(l.isNumberEqual(s,0))l.isNumberEqual(u,0)||0>(i=-c/u)||i>1||h.push(i);else{var f=u*u-4*s*c;l.isNumberEqual(f,0)?h.push(-u/(2*s)):f>0&&(o=Math.sqrt(f),i=(-u+o)/(2*s),a=(-u-o)/(2*s),0>i||i>1||h.push(i),0>a||a>1||h.push(a))}return h}function s(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}function u(t,e,n,r,i,a,o,u,c){l.isNil(c)&&(c=1),c=c>1?1:0>c?0:c;for(var h=c/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],d=0,g=0;12>g;g++){var v=h*f[g]+h,y=s(v,t,n,i,o),m=s(v,e,r,a,u),x=y*y+m*m;d+=p[g]*Math.sqrt(x)}return h*d}var l=n(2),c=l.vec2;t.exports={at:r,derivativeAt:i,projectPoint:function(t,e,n,r,i,o,s,u,l,c){var h={};return a(t,e,n,r,i,o,s,u,l,c,h),h},pointDistance:a,extrema:o,len:u}},function(t,e,n){var r=n(54),i=n(174),a=n(88),o=n(53);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var l=r.pointDistance(t,e,n,i,o,s);return!isNaN(l)&&a/2>=l},polyline:function(t,e,n,r){var i=t.length-1;if(1>i)return!1;for(var a=0;i>a;a++){if(this.line(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,l,c,h){return a.pointDistance(t,e,n,r,i,o,s,u,c,h)<=l/2},quadraticline:function(t,e,n,r,a,o,s,u,l){return i.pointDistance(t,e,n,r,a,o,u,l)<=s/2},arcline:function(t,e,n,r,i,a,s,u,l){return o.pointDistance(t,e,n,r,i,a,u,l)<=s/2},rect:function(t,e,n,r,i,a){return!(t>i||i>t+n||e>a||a>e+r)},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return!(t>i||i>e||n>a||a>r)}}},function(t,e,n){function r(t,e){function n(t,e){if(1===t.length)r.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;t.length-1>o;o++)0===o&&r.push(t[0]),o===t.length-2&&i.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 r=[],i=[];return t.length&&n(t,e),{left:r,right:i.reverse()}}function i(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;n-1>u;u++){var l=s/(1-s*u),c=r(o,l);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])),3>t.length||(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}function a(t,e,n){var r=null,i=n;return i>e&&(i=e,r="add"),i>t&&(i=t,r="del"),{type:r,min:i}}function o(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=s(e)[0],u=1;n>=u;u++)a*=u,r=Math.floor(t.length*a),0===r?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function s(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 u=n(180),l="\t\n\v\f\r   ᠎              \u2028\u2029",c=RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),h=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig"),f=function(t){if(!t)return null;if("object"==typeof t)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(t+"").replace(c,function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(h,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););}),n},p=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(6*a[1].x-a[0].x+a[2].x)/6,(6*a[1].y-a[0].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},d=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},g=function(t){if(!(t=f(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,s=a,u++,r[0]=["M",i,a]);for(var l,c,h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=u,v=t.length;v>g;g++){if(r.push(l=[]),c=t[g],(e=c[0])!==e.toUpperCase())switch(l[0]=e.toUpperCase()){case"A":l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=+c[6]+i,l[7]=+c[7]+a;break;case"V":l[1]=+c[1]+a;break;case"H":l[1]=+c[1]+i;break;case"R":n=[i,a].concat(c.slice(1));for(var y=2,m=n.length;m>y;y++)n[y]=+n[y]+i,n[++y]=+n[y]+a;r.pop(),r=r.concat(p(n,h));break;case"O":r.pop(),n=d(i,a,c[1],c[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(d(i,a,c[1],c[2],c[3])),l=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+c[1]+i,s=+c[2]+a;break;default:for(var x=1,b=c.length;b>x;x++)l[x]=+c[x]+(x%2?i:a)}else if("R"===e)n=[i,a].concat(c.slice(1)),r.pop(),r=r.concat(p(n,h)),l=["R"].concat(c.slice(-2));else if("O"===e)r.pop(),n=d(i,a,c[1],c[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(d(i,a,c[1],c[2],c[3])),l=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,w=c.length;w>_;_++)l[_]=c[_];if("O"!==(e=e.toUpperCase()))switch(l[0]){case"Z":i=+o,a=+s;break;case"H":i=l[1];break;case"V":a=l[1];break;case"M":o=l[l.length-2],s=l[l.length-1];break;default:i=l[l.length-2],a=l[l.length-1]}}return r},v=function(t,e,n,r){return[t,e,n,r,n,r]},y=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},m=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,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(c)f=c[0],p=c[1],d=c[2],g=c[3];else{h=x(e,n,-y),e=h.x,n=h.y,h=x(u,l,-y),u=h.x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var b=(e-u)/2,_=(n-l)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(w=Math.sqrt(w),r*=w,i*=w);var M=r*r,S=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*_*_-S*b*b)/(M*_*_+S*b*b)));d=A*r*_/i+(e+u)/2,g=A*-i*b/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=d>e?Math.PI-f:f,p=d>u?Math.PI-p:p,0>f&&(f=2*Math.PI+f),0>p&&(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 P=p,k=u,T=l;p=f+v*(s&&p>f?1:-1),u=d+r*Math.cos(p),l=g+i*Math.sin(p),m=t(u,l,r,i,a,0,s,k,T,[p,P,d,g])}C=p-f;var I=Math.cos(f),O=Math.sin(f),E=Math.cos(p),L=Math.sin(p),D=Math.tan(C/4),F=4/3*r*D,B=4/3*i*D,R=[e,n],j=[e+F*O,n-B*I],N=[u+F*L,l-B*E],z=[u,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],c)return[j,N,z].concat(m);m=[j,N,z].concat(m).join().split(",");for(var Y=[],G=0,X=m.length;X>G;G++)Y[G]=G%2?x(m[G-1],m[G],y).y:x(m[G],m[G+1],y).x;return Y},x=function(t,e){var n,r=g(t),i=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=[],l="",c="",h=function(t,e,n){var r,i;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(m.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].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(y(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(y(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(v(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(v(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(v(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(v(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",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.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(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var d=0;n>d;d++){r[d]&&(l=r[d][0]),"C"!==l&&(s[d]=l,d&&(c=s[d-1])),r[d]=h(r[d],a,c),"A"!==s[d]&&"C"===l&&(s[d]="C"),f(r,d),i&&(i[d]&&(l=i[d][0]),"C"!==l&&(u[d]=l,d&&(c=u[d-1])),i[d]=h(i[d],o,c),"A"!==u[d]&&"C"===l&&(u[d]="C"),f(i,d)),p(r,i,a,o,d),p(i,r,o,a,d);var x=r[d],b=i&&i[d],_=x.length,w=i&&b.length;a.x=x[_-2],a.y=x[_-1],a.bx=parseFloat(x[_-4])||a.x,a.by=parseFloat(x[_-3])||a.y,o.bx=i&&(parseFloat(b[w-4])||o.x),o.by=i&&(parseFloat(b[w-3])||o.y),o.x=i&&b[w-2],o.y=i&&b[w-1]}return i?[r,i]:r},b=/,?([a-z]),?/gi,_=function(t){return t.join(",").replace(b,"$1")},w=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},M=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1),u=u>1?1:0>u?0:u;for(var l=u/2,c=[-.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;12>p;p++){var d=l*c[p]+l,g=w(d,t,n,i,o),v=w(d,e,r,a,s),y=g*g+v*v;f+=h[p]*Math.sqrt(y)}return l*f},S=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;2>d;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),1e-12>Math.abs(u)){if(1e-12>Math.abs(l))continue;(h=-c/l)>0&&1>h&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(g>=0){var y=(-l+v)/(2*u);y>0&&1>y&&f.push(y);var m=(-l-v)/(2*u);m>0&&1>m&&f.push(m)}}for(var x,b=f.length,_=b;b--;)h=f[b],x=1-h,p[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*i+h*h*h*o,p[1][b]=x*x*x*e+3*x*x*h*r+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])}}},A=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),l=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var h=u/c,f=l/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},C=function(t,e,n){return!(t.x>e||e>t.x+t.width||t.y>n||n>t.y+t.height)},P=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=_,a},k=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:P(t,e,n,r),vb:[t,e,n,r].join(" ")}},T=function(t,e){return t=k(t),e=k(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)||(e.x2>t.x&&t.x>e.x||t.x2>e.x&&e.x>t.x)&&(e.y2>t.y&&t.y>e.y||t.y2>e.y&&e.y>t.y)},I=function(t,e,n,r,i,a,o,s){u.isArray(t)||(t=[t,e,n,r,i,a,o,s]);var l=S.apply(null,t);return k(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},O=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=c*t+3*h*u*n+3*l*u*u*i+p*o,g=c*e+3*h*u*r+3*l*u*u*a+p*s,v=t+2*u*(n-t)+f*(i-2*n+t),y=e+2*u*(r-e)+f*(a-2*r+e),m=n+2*u*(i-n)+f*(o-2*i+n),x=r+2*u*(a-r)+f*(s-2*a+r);return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:x},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(v-m,y-x)/Math.PI}},E=function(t,e,n){var r=I(t),i=I(e);if(!T(r,i))return n?0:[];for(var a=M.apply(0,t),o=M.apply(0,e),s=~~(a/8),u=~~(o/8),l=[],c=[],h={},f=n?0:[],p=0;s+1>p;p++){var d=O.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(var g=0;u+1>g;g++){var v=O.apply(0,e.concat(g/u));c.push({x:v.x,y:v.y,t:g/u})}for(var y=0;s>y;y++)for(var m=0;u>m;m++){var x=l[y],b=l[y+1],_=c[m],w=c[m+1],S=.001>Math.abs(b.x-x.x)?"y":"x",C=.001>Math.abs(w.x-_.x)?"y":"x",P=A(x.x,x.y,b.x,b.y,_.x,_.y,w.x,w.y);if(P){if(h[P.x.toFixed(4)]===P.y.toFixed(4))continue;h[P.x.toFixed(4)]=P.y.toFixed(4);var k=x.t+Math.abs((P[S]-x[S])/(b[S]-x[S]))*(b.t-x.t),E=_.t+Math.abs((P[C]-_[C])/(w[C]-_[C]))*(w.t-_.t);0>k||k>1||0>E||E>1||(n?f++:f.push({x:P.x,y:P.y,t1:k,t2:E}))}}return f},L=function(t,e,n){t=x(t),e=x(e);for(var r,i,a,o,s,u,l,c,h,f,p=n?0:[],d=0,g=t.length;g>d;d++){var v=t[d];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,m=e.length;m>y;y++){var b=e[y];if("M"===b[0])a=l=b[1],o=c=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var _=E(h,f,n);if(n)p+=_;else{for(var w=0,M=_.length;M>w;w++)_[w].segment1=d,_[w].segment2=y,_[w].bez1=h,_[w].bez2=f;p=p.concat(_)}}}}}return p},D=function(t,e){return L(t,e)},F=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(i(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;n-1>=o;o++)r.push(a)}return r},B=function(t,e){if(t.length!==e.length)return!1;var n=!0;return u.each(t,function(t,r){if(t!==e[r])return n=!1,!1}),n},R=function(t,e){var n,r,i=t.length,o=e.length,s=0;if(0===i||0===o)return null;for(var u=[],l=0;i>=l;l++)u[l]=[],u[l][0]={min:l};for(var c=0;o>=c;c++)u[0][c]={min:c};for(var h=1;i>=h;h++){n=t[h-1];for(var f=1;o>=f;f++){r=e[f-1],s=B(n,r)?0:1;u[h][f]=a(u[h-1][f].min+1,u[h][f-1].min+1,u[h-1][f-1].min+s)}}return u};t.exports={parsePathString:f,parsePathArray:_,pathTocurve:x,pathToAbsolute:g,catmullRomToBezier:p,rectPath:P,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;r-n>o;o++)t.push(t[0]);return t}for(var s=0;r>s;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var l=a.reduce(function(e,r,i){return e.concat(i===n?t[n]:F(t[i],t[i+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:function(t,e){var n=R(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;r>=u;u++){var l=n[u][u].min;s=u;for(var c=o;i>=c;c++)l>n[u][c].min&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(var h=a.length-1;h>=0;h--)o=a[h].index,"add"===a[h].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var f=i-r;if(i>r)for(var p=0;f>p;p++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t},formatPath:function(t,e){if(1>=t.length)return t;for(var n,r=0;e.length>r;r++)if(t[r][0]!==e[r][0])switch(n=s(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(2>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(3>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(2>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t},intersection:D}},function(t,e,n){var r=n(1),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var r=n(1),i=n(9),a=n(40),o=n(60),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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},s.ATTRS={path:null,lineWidth:1},r.extend(s,i),r.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,r=t.radius||t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},_getPath:function(){var t,e=this._attrs,n=e.x,i=e.y,a=e.radius||e.r,o=e.symbol||"circle";return t=r.isFunction(o)?o:s.Symbols[o],t?t(n,i,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 r;e=[];for(var i=0;n.length>i;i++){r=new o(n[i],r,i===n.length-1),e.push(r),r.draw(t)}this._cfg.segments=e,this._cfg.hasUpdate=!1}else{t.beginPath();for(var s=0;e.length>s;s++)e[s].draw(t)}}}),t.exports=s},function(t,e,n){function r(t,e,n,r,i){var a=1-i;return a*a*(a*r+3*i*n)+i*i*(i*t+3*a*e)}function i(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function a(t,e,n,i,a,o,s,u,l,h,f){var p,d,g,v,y,m,x,b,_=.005,w=1/0,M=[l,h];for(d=0;1>d;d+=.05)g=[r(t,n,a,s,d),r(e,i,o,u,d)],v=c.squaredDistance(M,g),w>v&&(p=d,w=v);w=1/0;for(var S=0;32>S&&1e-4<=_;S++)x=p-_,b=p+_,g=[r(t,n,a,s,x),r(e,i,o,u,x)],v=c.squaredDistance(M,g),x>=0&&w>v?(p=x,w=v):(m=[r(t,n,a,s,b),r(e,i,o,u,b)],y=c.squaredDistance(M,m),1>=b&&w>y?(p=b,w=y):_*=.5);return f&&(f.x=r(t,n,a,s,p),f.y=r(e,i,o,u,p)),Math.sqrt(w)}function o(t,e,n,r){var i,a,o,s=3*t-9*e+9*n-3*r,u=6*e-12*n+6*r,c=3*n-3*r,h=[];if(l.isNumberEqual(s,0))l.isNumberEqual(u,0)||0>(i=-c/u)||i>1||h.push(i);else{var f=u*u-4*s*c;l.isNumberEqual(f,0)?h.push(-u/(2*s)):f>0&&(o=Math.sqrt(f),i=(-u+o)/(2*s),a=(-u-o)/(2*s),0>i||i>1||h.push(i),0>a||a>1||h.push(a))}return h}function s(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}function u(t,e,n,r,i,a,o,u,c){l.isNil(c)&&(c=1),c=c>1?1:0>c?0:c;for(var h=c/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],d=0,g=0;12>g;g++){var v=h*f[g]+h,y=s(v,t,n,i,o),m=s(v,e,r,a,u),x=y*y+m*m;d+=p[g]*Math.sqrt(x)}return h*d}var l=n(1),c=l.vec2;t.exports={at:r,derivativeAt:i,projectPoint:function(t,e,n,r,i,o,s,u,l,c){var h={};return a(t,e,n,r,i,o,s,u,l,c,h),h},pointDistance:a,extrema:o,len:u}},function(t,e,n){var r=n(58),i=n(193),a=n(93),o=n(57);t.exports={line:function(t,e,n,i,a,o,s){var u=r.box(t,e,n,i,a);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,s))return!1;var l=r.pointDistance(t,e,n,i,o,s);return!isNaN(l)&&a/2>=l},polyline:function(t,e,n,r){var i=t.length-1;if(1>i)return!1;for(var a=0;i>a;a++){if(this.line(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,s,u,l,c,h){return a.pointDistance(t,e,n,r,i,o,s,u,c,h)<=l/2},quadraticline:function(t,e,n,r,a,o,s,u,l){return i.pointDistance(t,e,n,r,a,o,u,l)<=s/2},arcline:function(t,e,n,r,i,a,s,u,l){return o.pointDistance(t,e,n,r,i,a,u,l)<=s/2},rect:function(t,e,n,r,i,a){return!(t>i||i>t+n||e>a||a>e+r)},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,a){return!(t>i||i>e||n>a||a>r)}}},function(t,e,n){t.exports={isFunction:n(14),isObject:n(33),isBoolean:n(114),isNil:n(7),isString:n(15),isArray:n(5),isNumber:n(11),isEmpty:n(106),uniqueId:n(116),clone:n(65),deepMix:n(41),assign:n(10),merge:n(41),upperFirst:n(113),each:n(3),isEqual:n(66),toArray:n(43),extend:n(104),augment:n(100),remove:n(98),isNumberEqual:n(42),toRadian:n(109),toDegree:n(108),mod:n(107),clamp:n(67),createDom:n(101),modifyCSS:n(102),requestAnimationFrame:n(103),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(69),vec2:n(111),vec3:n(112),transform:n(110)}},function(t,e,n){function r(t,e){function n(t,e){if(1===t.length)r.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;t.length-1>o;o++)0===o&&r.push(t[0]),o===t.length-2&&i.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 r=[],i=[];return t.length&&n(t,e),{left:r,right:i.reverse()}}function i(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,u=0;n-1>u;u++){var l=s/(1-s*u),c=r(o,l);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])),3>t.length||(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}function a(t,e,n){var r=null,i=n;return i>e&&(i=e,r="add"),i>t&&(i=t,r="del"),{type:r,min:i}}function o(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=s(e)[0],u=1;n>=u;u++)a*=u,r=Math.floor(t.length*a),0===r?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function s(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 u=n(95),l="\t\n\v\f\r   ᠎              \u2028\u2029",c=RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),h=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig"),f=function(t){if(!t)return null;if("object"==typeof t)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(t+"").replace(c,function(t,r,i){var a=[],o=r.toLowerCase();if(i.replace(h,function(t,e){e&&a.push(+e)}),"m"===o&&a.length>2&&(n.push([r].concat(a.splice(0,2))),o="l",r="m"===r?"l":"L"),"o"===o&&1===a.length&&n.push([r,a[0]]),"r"===o)n.push([r].concat(a));else for(;a.length>=e[o]&&(n.push([r].concat(a.splice(0,e[o]))),e[o]););}),n},p=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(6*a[1].x-a[0].x+a[2].x)/6,(6*a[1].y-a[0].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},d=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},g=function(t){if(!(t=f(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,s=0,u=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,s=a,u++,r[0]=["M",i,a]);for(var l,c,h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=u,v=t.length;v>g;g++){if(r.push(l=[]),c=t[g],(e=c[0])!==e.toUpperCase())switch(l[0]=e.toUpperCase()){case"A":l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=+c[6]+i,l[7]=+c[7]+a;break;case"V":l[1]=+c[1]+a;break;case"H":l[1]=+c[1]+i;break;case"R":n=[i,a].concat(c.slice(1));for(var y=2,m=n.length;m>y;y++)n[y]=+n[y]+i,n[++y]=+n[y]+a;r.pop(),r=r.concat(p(n,h));break;case"O":r.pop(),n=d(i,a,c[1],c[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(d(i,a,c[1],c[2],c[3])),l=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+c[1]+i,s=+c[2]+a;break;default:for(var x=1,b=c.length;b>x;x++)l[x]=+c[x]+(x%2?i:a)}else if("R"===e)n=[i,a].concat(c.slice(1)),r.pop(),r=r.concat(p(n,h)),l=["R"].concat(c.slice(-2));else if("O"===e)r.pop(),n=d(i,a,c[1],c[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(d(i,a,c[1],c[2],c[3])),l=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,w=c.length;w>_;_++)l[_]=c[_];if("O"!==(e=e.toUpperCase()))switch(l[0]){case"Z":i=+o,a=+s;break;case"H":i=l[1];break;case"V":a=l[1];break;case"M":o=l[l.length-2],s=l[l.length-1];break;default:i=l[l.length-2],a=l[l.length-1]}}return r},v=function(t,e,n,r){return[t,e,n,r,n,r]},y=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},m=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h,f,p,d,g,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(c)f=c[0],p=c[1],d=c[2],g=c[3];else{h=x(e,n,-y),e=h.x,n=h.y,h=x(u,l,-y),u=h.x,l=h.y,e===u&&n===l&&(u+=1,l+=1);var b=(e-u)/2,_=(n-l)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(w=Math.sqrt(w),r*=w,i*=w);var M=r*r,S=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*_*_-S*b*b)/(M*_*_+S*b*b)));d=A*r*_/i+(e+u)/2,g=A*-i*b/r+(n+l)/2,f=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),f=d>e?Math.PI-f:f,p=d>u?Math.PI-p:p,0>f&&(f=2*Math.PI+f),0>p&&(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 P=p,k=u,T=l;p=f+v*(s&&p>f?1:-1),u=d+r*Math.cos(p),l=g+i*Math.sin(p),m=t(u,l,r,i,a,0,s,k,T,[p,P,d,g])}C=p-f;var I=Math.cos(f),O=Math.sin(f),E=Math.cos(p),L=Math.sin(p),D=Math.tan(C/4),F=4/3*r*D,B=4/3*i*D,R=[e,n],j=[e+F*O,n-B*I],N=[u+F*L,l-B*E],z=[u,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],c)return[j,N,z].concat(m);m=[j,N,z].concat(m).join().split(",");for(var Y=[],G=0,X=m.length;X>G;G++)Y[G]=G%2?x(m[G-1],m[G],y).y:x(m[G],m[G+1],y).x;return Y},x=function(t,e){var n,r=g(t),i=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=[],l="",c="",h=function(t,e,n){var r,i;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(m.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].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(y(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(y(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(v(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(v(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(v(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(v(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",i&&(u[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.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(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var d=0;n>d;d++){r[d]&&(l=r[d][0]),"C"!==l&&(s[d]=l,d&&(c=s[d-1])),r[d]=h(r[d],a,c),"A"!==s[d]&&"C"===l&&(s[d]="C"),f(r,d),i&&(i[d]&&(l=i[d][0]),"C"!==l&&(u[d]=l,d&&(c=u[d-1])),i[d]=h(i[d],o,c),"A"!==u[d]&&"C"===l&&(u[d]="C"),f(i,d)),p(r,i,a,o,d),p(i,r,o,a,d);var x=r[d],b=i&&i[d],_=x.length,w=i&&b.length;a.x=x[_-2],a.y=x[_-1],a.bx=parseFloat(x[_-4])||a.x,a.by=parseFloat(x[_-3])||a.y,o.bx=i&&(parseFloat(b[w-4])||o.x),o.by=i&&(parseFloat(b[w-3])||o.y),o.x=i&&b[w-2],o.y=i&&b[w-1]}return i?[r,i]:r},b=/,?([a-z]),?/gi,_=function(t){return t.join(",").replace(b,"$1")},w=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},M=function(t,e,n,r,i,a,o,s,u){null===u&&(u=1),u=u>1?1:0>u?0:u;for(var l=u/2,c=[-.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;12>p;p++){var d=l*c[p]+l,g=w(d,t,n,i,o),v=w(d,e,r,a,s),y=g*g+v*v;f+=h[p]*Math.sqrt(y)}return l*f},S=function(t,e,n,r,i,a,o,s){for(var u,l,c,h,f=[],p=[[],[]],d=0;2>d;++d)if(0===d?(l=6*t-12*n+6*i,u=-3*t+9*n-9*i+3*o,c=3*n-3*t):(l=6*e-12*r+6*a,u=-3*e+9*r-9*a+3*s,c=3*r-3*e),1e-12>Math.abs(u)){if(1e-12>Math.abs(l))continue;(h=-c/l)>0&&1>h&&f.push(h)}else{var g=l*l-4*c*u,v=Math.sqrt(g);if(g>=0){var y=(-l+v)/(2*u);y>0&&1>y&&f.push(y);var m=(-l-v)/(2*u);m>0&&1>m&&f.push(m)}}for(var x,b=f.length,_=b;b--;)h=f[b],x=1-h,p[0][b]=x*x*x*t+3*x*x*h*n+3*x*h*h*i+h*h*h*o,p[1][b]=x*x*x*e+3*x*x*h*r+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])}}},A=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),l=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var h=u/c,f=l/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},C=function(t,e,n){return!(t.x>e||e>t.x+t.width||t.y>n||n>t.y+t.height)},P=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=_,a},k=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:P(t,e,n,r),vb:[t,e,n,r].join(" ")}},T=function(t,e){return t=k(t),e=k(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)||(e.x2>t.x&&t.x>e.x||t.x2>e.x&&e.x>t.x)&&(e.y2>t.y&&t.y>e.y||t.y2>e.y&&e.y>t.y)},I=function(t,e,n,r,i,a,o,s){u.isArray(t)||(t=[t,e,n,r,i,a,o,s]);var l=S.apply(null,t);return k(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},O=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=c*t+3*h*u*n+3*l*u*u*i+p*o,g=c*e+3*h*u*r+3*l*u*u*a+p*s,v=t+2*u*(n-t)+f*(i-2*n+t),y=e+2*u*(r-e)+f*(a-2*r+e),m=n+2*u*(i-n)+f*(o-2*i+n),x=r+2*u*(a-r)+f*(s-2*a+r);return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:x},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(v-m,y-x)/Math.PI}},E=function(t,e,n){var r=I(t),i=I(e);if(!T(r,i))return n?0:[];for(var a=M.apply(0,t),o=M.apply(0,e),s=~~(a/8),u=~~(o/8),l=[],c=[],h={},f=n?0:[],p=0;s+1>p;p++){var d=O.apply(0,t.concat(p/s));l.push({x:d.x,y:d.y,t:p/s})}for(var g=0;u+1>g;g++){var v=O.apply(0,e.concat(g/u));c.push({x:v.x,y:v.y,t:g/u})}for(var y=0;s>y;y++)for(var m=0;u>m;m++){var x=l[y],b=l[y+1],_=c[m],w=c[m+1],S=.001>Math.abs(b.x-x.x)?"y":"x",C=.001>Math.abs(w.x-_.x)?"y":"x",P=A(x.x,x.y,b.x,b.y,_.x,_.y,w.x,w.y);if(P){if(h[P.x.toFixed(4)]===P.y.toFixed(4))continue;h[P.x.toFixed(4)]=P.y.toFixed(4);var k=x.t+Math.abs((P[S]-x[S])/(b[S]-x[S]))*(b.t-x.t),E=_.t+Math.abs((P[C]-_[C])/(w[C]-_[C]))*(w.t-_.t);0>k||k>1||0>E||E>1||(n?f++:f.push({x:P.x,y:P.y,t1:k,t2:E}))}}return f},L=function(t,e,n){t=x(t),e=x(e);for(var r,i,a,o,s,u,l,c,h,f,p=n?0:[],d=0,g=t.length;g>d;d++){var v=t[d];if("M"===v[0])r=s=v[1],i=u=v[2];else{"C"===v[0]?(h=[r,i].concat(v.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,s,u,s,u],r=s,i=u);for(var y=0,m=e.length;m>y;y++){var b=e[y];if("M"===b[0])a=l=b[1],o=c=b[2];else{"C"===b[0]?(f=[a,o].concat(b.slice(1)),a=f[6],o=f[7]):(f=[a,o,a,o,l,c,l,c],a=l,o=c);var _=E(h,f,n);if(n)p+=_;else{for(var w=0,M=_.length;M>w;w++)_[w].segment1=d,_[w].segment2=y,_[w].bez1=h,_[w].bez2=f;p=p.concat(_)}}}}}return p},D=function(t,e){return L(t,e)},F=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(i(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;n-1>=o;o++)r.push(a)}return r},B=function(t,e){if(t.length!==e.length)return!1;var n=!0;return u.each(t,function(t,r){if(t!==e[r])return n=!1,!1}),n},R=function(t,e){var n,r,i=t.length,o=e.length,s=0;if(0===i||0===o)return null;for(var u=[],l=0;i>=l;l++)u[l]=[],u[l][0]={min:l};for(var c=0;o>=c;c++)u[0][c]={min:c};for(var h=1;i>=h;h++){n=t[h-1];for(var f=1;o>=f;f++){r=e[f-1],s=B(n,r)?0:1;u[h][f]=a(u[h-1][f].min+1,u[h][f-1].min+1,u[h-1][f-1].min+s)}}return u};t.exports={parsePathString:f,parsePathArray:_,pathTocurve:x,pathToAbsolute:g,catmullRomToBezier:p,rectPath:P,fillPath:function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;r-n>o;o++)t.push(t[0]);return t}for(var s=0;r>s;s++){var u=Math.floor(i*s);a[u]=(a[u]||0)+1}var l=a.reduce(function(e,r,i){return e.concat(i===n?t[n]:F(t[i],t[i+1],r))},[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l},fillPathByDiff:function(t,e){var n=R(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i]!==r){for(var u=1;r>=u;u++){var l=n[u][u].min;s=u;for(var c=o;i>=c;c++)l>n[u][c].min&&(l=n[u][c].min,s=c);o=s,n[u][o].type&&a.push({index:u-1,type:n[u][o].type})}for(var h=a.length-1;h>=0;h--)o=a[h].index,"add"===a[h].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var f=i-r;if(i>r)for(var p=0;f>p;p++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t},formatPath:function(t,e){if(1>=t.length)return t;for(var n,r=0;e.length>r;r++)if(t[r][0]!==e[r][0])switch(n=s(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(2>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(3>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],2)}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(2>n.length){if(0>=r){t[r]=e[r];break}n=o(n,t[r-1],1)}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t},intersection:D}},function(t,e,n){"use strict";function r(t){e.ARRAY_TYPE=s=t}function i(t){return t*u}function a(t,e){return Math.abs(t-e)<=o*Math.max(1,Math.abs(t),Math.abs(e))}Object.defineProperty(e,"__esModule",{value:!0}),e.setMatrixArrayType=r,e.toRadian=i,e.equals=a;var o=e.EPSILON=1e-6,s=e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,u=(e.RANDOM=Math.random,Math.PI/180)},function(t,e){var n=Array.prototype,r=n.splice,i=n.indexOf,a=n.slice;t.exports=function(t){for(var e=a.call(arguments,1),n=0;e.length>n;n++)for(var o=e[n],s=-1;(s=i.call(t,o))>-1;)r.call(t,s,1);return t}},function(t,e,n){var r=n(7),i=n(5),a=n(3);t.exports=function(t,e){for(var n=[],o={},s=0;t.length>s;s++){var u=t[s],l=u[e];r(l)||(i(l)||(l=[l]),a(l,function(t){o[t]||(n.push(t),o[t]=!0)}))}return n}},function(t,e,n){var r=n(14),i=n(43),a=n(10);t.exports=function(t){for(var e=i(arguments),n=1;e.length>n;n++){var o=e[n];r(o)&&(o=o.prototype),a(t.prototype,o)}}},function(t,e){var n=document.createElement("table"),r=document.createElement("tr"),i=/^\s*<(\w+|!)[^>]*>/,a={tr:document.createElement("tbody"),tbody:n,thead:n,tfoot:n,td:r,th:r,"*":document.createElement("div")};t.exports=function(t){var e=i.test(t)&&RegExp.$1;e in a||(e="*");var n=a[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r}},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 r=n(14),i=n(10);t.exports=function(t,e,n,a){r(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 r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=i(s,t.prototype),t.superclass=o(e.prototype,e),i(s,n),i(t,a),t}},function(t,e,n){var r=n(3),i=n(23);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){e(t,r)&&n.push(t)}),n}},function(t,e,n){function r(t){if(i(t))return!0;if(a(t))return!t.length;var e=o(t);if("Map"===e||"Set"===e)return!t.size;if(s(t))return!Object.keys(t).length;for(var n in t)if(u.call(t,n))return!1;return!0}var i=n(7),a=n(23),o=n(224),s=n(226),u=Object.prototype.hasOwnProperty;t.exports=r},function(t,e){t.exports=function(t,e){return(t%e+e)%e}},function(t,e){var n=180/Math.PI;t.exports=function(t){return n*t}},function(t,e){var n=Math.PI/180;t.exports=function(t){return n*t}},function(t,e,n){var r=n(65),i=n(3),a=n(69);t.exports=function(t,e){return t=r(t),i(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 r=n(402),i=n(67);r.angle=function(t,e){var n=r.dot(t,e)/(r.length(t)*r.length(e));return Math.acos(i(n,-1,1))},r.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},r.angleTo=function(t,e,n){var i=r.angle(t,e),a=r.direction(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},r.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=r},function(t,e,n){t.exports=n(403)},function(t,e,n){var r=n(44);t.exports=function(t){var e=r(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Boolean")}},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){t.exports=function(){var t={};return function(e){return e=e||"g",t[e]?t[e]+=1:t[e]=1,e+t[e]}}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={Chart:"deleteChart",Coord:"deleteCoord",Geom:"deleteGeom",Axis:"deleteAxis",Tooltip:"deleteTooltip",Legend:"deleteLegend",Label:"deleteLabel",View:"deleteView",Guide:"deleteGuide",GuideLine:"deleteTypedGuide",GuideImage:"deleteTypedGuide",GuideText:"deleteTypedGuide",GuideRegion:"deleteTypedGuide",GuideHtml:"deleteTypedGuide",GuideArc:"deleteTypedGuide",GuideRegionFilter:"deleteTypedGuide",GuideDataMarker:"deleteTypedGuide",GuideDataRegion:"deleteTypedGuide",Facet:"deleteFacet"};e.default={merge:function(t,e,n,r){this.mergeDelete(t,e,n),this.mergeUpdate(t,r)},mergeDelete:function(t,e,n){var i=this;Object.keys(e).forEach(function(e){var a=r[n[e].name],o=t;n[e].viewId&&(o=t.views[n[e].viewId]),i[a]&&i[a](o,e,n[e].parentInfo.id)})},deleteAxis:function(t,e){t&&delete t.axises[e]},deleteTooltip:function(t){t&&delete t.tooltip},deleteCoord:function(t){t&&delete t.coord},deleteLegend:function(t,e){t&&delete t.legends[e]},deleteGuide:function(t){t&&delete t.guide},deleteGeom:function(t,e){t&&t.geoms&&delete t.geoms[e]},deleteLabel:function(t,e,n){t&&t.geoms&&t.geoms[n]&&delete t.geoms[n].label},deleteFacet:function(t){t&&delete t.facet},deleteTypedGuide:function(t,e){t&&t.guide&&delete t.guide.elements[e]},deleteView:function(t,e){t&&delete t.views[e]},mergeUpdate:function(t,e){this.mergeChart(t,e),this.mergeAxises(t,e),this.mergeCoord(t,e),this.mergeGeoms(t.geoms,e),this.mergeLegends(t.legends,e),this.mergeTooltip(t,e),this.mergeViews(t.views,e),this.mergeGuide(t.guide,e)},mergeChart:function(t,e){t.chart&&t.chart.updateProps&&(t.chart.props=t.chart.updateProps),e&&delete t.chart.g2Instance},mergeAxises:function(t,e){var n=t.axises;if(null!=!n)for(var r in n)n[r]&&n[r].updateProps&&(n[r].props=n[r].updateProps),e&&delete n[r].g2Instance},mergeTooltip:function(t,e){t.tooltip&&(e&&delete t.tooltip.g2Instance,t.tooltip.updateProps&&(t.tooltip.props=t.tooltip.updateProps))},mergeCoord:function(t,e){t.coord&&(e&&delete t.coord.g2Instance,t.coord.updateProps&&(t.coord.props=t.coord.updateProps))},mergeLegends:function(t,e){if(t)for(var n in t)if(t[n]){var r=t[n];e&&delete r.g2Instance,r.updateProps&&(r.props=r.updateProps)}},mergeGeoms:function(t,e){if(null!=t)for(var n in t)t[n]&&(e&&(delete t[n].g2Instance,t[n].label&&t[n].label.g2Instance&&(t[n].label.updateProps&&(t[n].label.props=t[n].label.updateProps),delete t[n].label.g2Instance)),t[n].updateProps&&(t[n].props=t[n].updateProps))},mergeGuide:function(t,e){if(null!=t){var n=t.elements;for(var r in n)n[r]&&(e&&delete n[r].g2Instance,n[r].updateProps&&(n[r].props=n[r].updateProps))}},mergeView:function(t,e){t&&(e&&t.g2Instance&&delete t.g2Instance,t.updateProps&&(t.props=t.updateProps),this.mergeCoord(t,e),this.mergeAxises(t,e),this.mergeGeoms(t.geoms,e),this.mergeGuide(t.guide,e))},mergeViews:function(t,e){if(null!=t)for(var n in t)t[n]&&this.mergeView(t[n],e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Prop=e.Util=void 0;var i=n(70),a=r(i),o=n(490),s=r(o);e.Util=a.default,e.Prop=s.default},function(t,e,n){"use strict";function r(){}function i(){return this.rgb().formatHex()}function a(){return y(this).formatHsl()}function o(){return this.rgb().formatRgb()}function s(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=P.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?u(e):3===n?new f(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?l(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?l(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=k.exec(t))?new f(e[1],e[2],e[3],1):(e=T.exec(t))?new f(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=I.exec(t))?l(e[1],e[2],e[3],e[4]):(e=O.exec(t))?l(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=E.exec(t))?v(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?v(e[1],e[2]/100,e[3]/100,e[4]):D.hasOwnProperty(t)?u(D[t]):"transparent"===t?new f(NaN,NaN,NaN,0):null}function u(t){return new f(t>>16&255,t>>8&255,255&t,1)}function l(t,e,n,r){return r>0||(t=e=n=NaN),new f(t,e,n,r)}function c(t){return t instanceof r||(t=s(t)),t?(t=t.rgb(),new f(t.r,t.g,t.b,t.opacity)):new f}function h(t,e,n,r){return 1===arguments.length?c(t):new f(t,e,n,null==r?1:r)}function f(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function p(){return"#"+g(this.r)+g(this.g)+g(this.b)}function d(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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>t?"0":"")+t.toString(16)}function v(t,e,n,r){return r>0?n>0&&1>n?e>0||(t=NaN):t=e=NaN:t=e=n=NaN,new x(t,e,n,r)}function y(t){if(t instanceof x)return new x(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=s(t)),!t)return new x;if(t instanceof x)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),o=Math.max(e,n,i),u=NaN,l=o-a,c=(o+a)/2;return l?(u=e===o?(n-i)/l+6*(i>n):n===o?(i-e)/l+2:(e-n)/l+4,l/=.5>c?o+a:2-o-a,u*=60):l=c>0&&1>c?0:u,new x(u,l,c,t.opacity)}function m(t,e,n,r){return 1===arguments.length?y(t):new x(t,e,n,null==r?1:r)}function x(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function b(t,e,n){return 255*(60>t?e+(n-e)*t/60:180>t?n:240>t?e+(n-e)*(240-t)/60:e)}e.c=r,n.d(e,"e",function(){return w}),n.d(e,"d",function(){return M}),e.h=s,e.b=c,e.g=h,e.a=f,e.f=m;var _=n(120),w=.7,M=1/w,S="\\s*([+-]?\\d+)\\s*",A="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P=/^#([0-9a-f]{3,8})$/,k=RegExp("^rgb\\("+[S,S,S]+"\\)$"),T=RegExp("^rgb\\("+[C,C,C]+"\\)$"),I=RegExp("^rgba\\("+[S,S,S,A]+"\\)$"),O=RegExp("^rgba\\("+[C,C,C,A]+"\\)$"),E=RegExp("^hsl\\("+[A,C,C]+"\\)$"),L=RegExp("^hsla\\("+[A,C,C,A]+"\\)$"),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};n.i(_.a)(r,s,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:i,formatHex:i,formatHsl:a,formatRgb:o,toString:o}),n.i(_.a)(f,h,n.i(_.b)(r,{brighter:function(t){return t=null==t?M:Math.pow(M,t),new f(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?w:Math.pow(w,t),new f(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return this.r>=-.5&&255.5>this.r&&this.g>=-.5&&255.5>this.g&&this.b>=-.5&&255.5>this.b&&this.opacity>=0&&1>=this.opacity},hex:p,formatHex:p,formatRgb:d,toString:d})),n.i(_.a)(x,m,n.i(_.b)(r,{brighter:function(t){return t=null==t?M:Math.pow(M,t),new x(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?w:Math.pow(w,t),new x(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(0>this.h),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(.5>n?n:1-n)*e,i=2*n-r;return new f(b(240>t?t+120:t-240,i,r),b(t,i,r),b(120>t?t+240:t-120,i,r),this.opacity)},displayable:function(){return(this.s>=0&&1>=this.s||isNaN(this.s))&&this.l>=0&&1>=this.l&&this.opacity>=0&&1>=this.opacity},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(502);n.d(e,"easeLinear",function(){return r.a});var i=n(504);n.d(e,"easeQuad",function(){return i.a}),n.d(e,"easeQuadIn",function(){return i.b}),n.d(e,"easeQuadOut",function(){return i.c}),n.d(e,"easeQuadInOut",function(){return i.a});var a=n(499);n.d(e,"easeCubic",function(){return a.a}),n.d(e,"easeCubicIn",function(){return a.b}),n.d(e,"easeCubicOut",function(){return a.c}),n.d(e,"easeCubicInOut",function(){return a.a});var o=n(503);n.d(e,"easePoly",function(){return o.a}),n.d(e,"easePolyIn",function(){return o.b}),n.d(e,"easePolyOut",function(){return o.c}),n.d(e,"easePolyInOut",function(){return o.a});var s=n(505);n.d(e,"easeSin",function(){return s.a}),n.d(e,"easeSinIn",function(){return s.b}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.a});var u=n(501);n.d(e,"easeExp",function(){return u.a}),n.d(e,"easeExpIn",function(){return u.b}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.a});var l=n(498);n.d(e,"easeCircle",function(){return l.a}),n.d(e,"easeCircleIn",function(){return l.b}),n.d(e,"easeCircleOut",function(){return l.c}),n.d(e,"easeCircleInOut",function(){return l.a});var c=n(497);n.d(e,"easeBounce",function(){return c.a}),n.d(e,"easeBounceIn",function(){return c.b}),n.d(e,"easeBounceOut",function(){return c.a}),n.d(e,"easeBounceInOut",function(){return c.c});var h=n(496);n.d(e,"easeBack",function(){return h.a}),n.d(e,"easeBackIn",function(){return h.b}),n.d(e,"easeBackOut",function(){return h.c}),n.d(e,"easeBackInOut",function(){return h.a});var f=n(500);n.d(e,"easeElastic",function(){return f.a}),n.d(e,"easeElasticIn",function(){return f.b}),n.d(e,"easeElasticOut",function(){return f.a}),n.d(e,"easeElasticInOut",function(){return f.c})},function(t,e,n){"use strict";function r(t,e,n,r,i){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)*r+o*i)/6}e.b=r,e.a=function(t){var e=t.length-1;return function(n){var i=n>0?1>n?Math.floor(n*e):(n=1,e-1):n=0,a=t[i],o=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*a-o,a,o,e-1>i?t[i+2]:2*o-a)}}},function(t,e,n){"use strict";var r=n(16),i=n(238),a=n(233),o=n(236),s=n(71),u=n(237),l=n(239),c=n(235);e.a=function(t,e){var h,f=typeof e;return null==e||"boolean"===f?n.i(c.a)(e):("number"===f?s.a:"string"===f?(h=n.i(r.f)(e))?(e=h,i.a):l.a:e instanceof r.f?i.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 r(t,e,n,r,i){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)*r+o*i)/6}e.b=r,e.a=function(t){var e=t.length-1;return function(n){var i=n>0?1>n?Math.floor(n*e):(n=1,e-1):n=0,a=t[i],o=t[i+1];return r((n-i/e)*e,i>0?t[i-1]:2*a-o,a,o,e-1>i?t[i+2]:2*o-a)}}},function(t,e,n){"use strict";var r=(n(127),n(240),n(124),n(241),n(243),n(517),n(520),n(72));n.d(e,"b",function(){return r.a});var i=(n(126),n(244),n(524),n(246));n.d(e,"d",function(){return i.a});var a=n(526);n.d(e,"a",function(){return a.a}),n.d(e,"e",function(){return a.b});var o=(n(528),n(245));n.d(e,"c",function(){return o.a});n(519),n(521),n(518),n(516),n(522),n(523)},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}e.a=r,e.b=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;r>n;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}},function(t,e,n){"use strict";var r=n(16),i=n(245),a=n(240),o=n(243),s=n(72),u=n(244),l=n(246),c=n(242),h=n(126);e.a=function(t,e){var f,p=typeof e;return null==e||"boolean"===p?n.i(c.a)(e):("number"===p?s.a:"string"===p?(f=n.i(r.f)(e))?(e=f,i.a):l.a:e instanceof r.f?i.a:e instanceof Date?o.a:n.i(h.a)(e)?h.b: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";var r=n(129);e.a=function(t){var e=t+="",n=e.indexOf(":");return 0>n||"xmlns"===(e=t.slice(0,n))||(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(t,e,n){return t=i(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function i(t,e,n){return function(r){var i=c;c=r;try{t.call(this,this.__data__,e,n)}finally{c=i}}}function a(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0>n||(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function o(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;a>r;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function s(t,e,n){var a=l.hasOwnProperty(t.type)?r:i;return function(r,i,o){var s,u=this.__on,l=a(e,i,o);if(u)for(var c=0,h=u.length;h>c;++c)if((s=u[c]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=l,s.capture=n),void(s.value=e);this.addEventListener(t.type,l,n),s={type:t.type,name:t.name,value:e,listener:l,capture:n},u?u.push(s):this.__on=[s]}}function u(t,e,n,r){var i=c;t.sourceEvent=c,c=t;try{return e.apply(n,r)}finally{c=i}}n.d(e,"a",function(){return c}),e.b=u;var l={},c=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(l={mouseenter:"mouseover",mouseleave:"mouseout"})}e.c=function(t,e,n){var r,i,u=a(t+""),l=u.length;{if(arguments.length>=2){for(c=e?s:o,null==n&&(n=!1),r=0;l>r;++r)this.each(c(u[r],e,n));return this}var c=this.node().__on;if(c)for(var h,f=0,p=c.length;p>f;++f)for(r=0,h=c[f];l>r;++r)if((i=u[r]).type===h.type&&i.name===h.name)return h.value}}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";var r=n(130);e.a=function(){for(var t,e=r.a;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(){return x||(w(i),x=_.now()+b)}function i(){x=0}function a(){this._call=this._time=this._next=null}function o(t,e,n){var r=new a;return r.restart(t,e,n),r}function s(){r(),++d;for(var t,e=f;e;)0>(t=x-e._time)||e._call.call(null,t),e=e._next;--d}function u(){x=(m=_.now())+b,d=g=0;try{s()}finally{d=0,c(),x=0}}function l(){var t=_.now(),e=t-m;e>y&&(b-=e,m=t)}function c(){for(var t,e,n=f,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:f=e);p=t,h(r)}function h(t){if(!d){g&&(g=clearTimeout(g));t-x>24?(1/0>t&&(g=setTimeout(u,t-_.now()-b)),v&&(v=clearInterval(v))):(v||(m=_.now(),v=setInterval(l,y)),d=1,w(u))}}e.a=r,e.d=a,e.b=o,e.c=s;var f,p,d=0,g=0,v=0,y=1e3,m=0,x=0,b=0,_="object"==typeof performance&&performance.now?performance:Date,w="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?r():+n)+(null==e?0:+e),this._next||p===this||(p?p._next=this:f=this,p=this),this._call=t,this._time=n,h()},stop:function(){this._call&&(this._call=null,this._time=1/0,h())}}},function(t,e,n){var r;!function(e){"use strict";function i(){}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=i.prototype,l=e.EventEmitter;u.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp){e={};for(n in r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n])}else e=r[t]||(r[t]=[]);return e},u.flattenListeners=function(t){var e,n=[];for(e=0;t.length>e;e+=1)n.push(t[e].listener);return n},u.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&(e={},e[t]=n),e||n},u.addListener=function(t,e){if(!s(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"==typeof e;for(n in r)r.hasOwnProperty(n)&&-1===a(r[n],e)&&r[n].push(i?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;t.length>e;e+=1)this.defineEvent(t[e]);return this},u.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=a(i[r],e))&&i[r].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 r,i,a=t?this.removeListener:this.addListener,o=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(r=n.length;r--;)a.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?a.call(this,r,i):o.call(this,r,i));return this},u.removeEvent=function(t){var e,n=typeof t,r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},u.removeAllListeners=o("removeEvent"),u.emitEvent=function(t,e){var n,r,i,a,o=this.getListenersAsObject(t);for(a in o)if(o.hasOwnProperty(a))for(n=o[a].slice(0),i=0;n.length>i;i++)r=n[i],!0===r.once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},u.trigger=o("emitEvent"),u.emit=function(t){return this.emitEvent(t,Array.prototype.slice.call(arguments,1))},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={})},i.noConflict=function(){return e.EventEmitter=l,i},void 0!==(r=function(){return i}.call(e,n,e,t))&&(t.exports=r)}(this||{})},function(t,e,n){var r=n(3),i={values:n(99)};t.exports={isAdjust:function(t){return this.adjustNames.indexOf(t)>=0},_getDimValues:function(t){var e=this,n={},a=[];if(e.xField&&e.isAdjust("x")&&a.push(e.xField),e.yField&&e.isAdjust("y")&&a.push(e.yField),r(a,function(e){var r=i.values(t,e);r.sort(function(t,e){return t-e}),n[e]=r}),!e.yField&&e.isAdjust("y")){n.y=[0,1]}return n},adjustData:function(t,e){var n=this,i=n._getDimValues(e);r(t,function(e,a){r(i,function(r,i){n.adjustDim(i,r,e,t.length,a)})})},getAdjustRange:function(t,e,n){var r,i,a=this,o=n.indexOf(e),s=n.length;return!a.yField&&a.isAdjust("y")?(r=0,i=1):s>1?(r=0===o?n[0]:n[o-1],i=o===s-1?n[s-1]:n[o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},groupData:function(t,e){var n={};return r(t,function(t){var r=t[e];void 0===r&&(r=t[e]=0),n[r]||(n[r]=[]),n[r].push(t)}),n}}},function(t,e,n){function r(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}function i(t,e,n,r){return t[r]+(e[r]-t[r])*n}function a(t){return"#"+o(t[0])+o(t[1])+o(t[2])}function o(t){return t=Math.round(t),t=t.toString(16),1===t.length&&(t="0"+t),t}function s(t,e){(isNaN(e)||!l(e)||0>e)&&(e=0),e>1&&(e=1);var n=t.length-1,r=Math.floor(n*e),o=n*e-r,s=t[r],u=r===n?s:t[r+1];return a([i(s,u,o,0),i(s,u,o,1),i(s,u,o,2)])}function u(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 l=n(11),c=n(15),h=n(3),f=/rgba?\(([\s.,0-9]+)\)/,p={},d=null,g={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;d||(d=r());var e;if(p[t])e=p[t];else{d.style.color=t,e=document.defaultView.getComputedStyle(d,"").getPropertyValue("color");e=a(f.exec(e)[1].split(/\s*,\s*/)),p[t]=e}return e},rgb2arr:u,gradient:function(t){var e=[];return c(t)&&(t=t.split("-")),h(t,function(t){-1===t.indexOf("#")&&(t=g.toRGB(t)),e.push(u(t))}),function(t){return s(e,t)}}};t.exports=g},function(t,e,n){var r=n(52),i=r.Group,a=n(4),o=function t(e){t.superclass.constructor.call(this,e)};a.extend(o,i),a.augment(o,{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(){o.superclass._renderUI.call(this),this._drawLines()},_drawLines:function(){var t=this,e=t.get("lineStyle"),n=t.get("items");n&&n.length&&(t._precessItems(n),t._drawGridLines(n,e))},_precessItems:function(t){var e,n=this;a.each(t,function(t,r){e&&n.get("alternateColor")&&n._drawAlternativeBg(t,e,r),e=t})},_drawGridLines:function(t,e){var n,r,i,o,s=this,u=this.get("type"),l=t.length;"line"===u||"polygon"===u?a.each(t,function(t,c){s.get("hideFirstLine")&&0===c||s.get("hideLastLine")&&c===l-1||(o=t.points,r=[],"line"===u?(r.push(["M",o[0].x,o[0].y]),r.push(["L",o[o.length-1].x,o[o.length-1].y])):a.each(o,function(t,e){r.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])}),i=s._drawZeroLine(u,c)?a.mix({},s.get("zeroLineStyle"),{path:r}):a.mix({},e,{path:r}),n=s.addShape("path",{attrs:i}),n.name="axis-grid",n._id=t._id,n.set("coord",s.get("coord")),s.get("appendInfo")&&n.setSilent("appendInfo",s.get("appendInfo")))}):a.each(t,function(t,u){s.get("hideFirstLine")&&0===u||s.get("hideLastLine")&&u===l-1||(o=t.points,r=[],a.each(o,function(t,e){var n=t.radius;r.push(0===e?["M",t.x,t.y]:["A",n,n,0,0,t.flag,t.x,t.y])}),i=a.mix({},e,{path:r}),n=s.addShape("path",{attrs:i}),n.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,r=n.get("tickValues");return!("line"!==t||!r||0!==r[e]||!n.get("hightLightZero"))},_drawAlternativeBg:function(t,e,n){var r,i,o,s=this,u=s.get("alternateColor");a.isString(u)?i=u:a.isArray(u)&&(i=u[0],o=u[1]),n%2==0?o&&(r=s._getBackItem(e.points,t.points,o)):i&&(r=s._getBackItem(e.points,t.points,i));var l=s.addShape("Path",{attrs:r});l.name="axis-grid-rect",l._id=t._id&&t._id.replace("grid","grid-rect"),l.set("coord",s.get("coord")),s.get("appendInfo")&&l.setSilent("appendInfo",s.get("appendInfo"))},_getBackItem:function(t,e,n){var r=[],i=this.get("type");if("line"===i)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===i){a.each(t,function(t,e){r.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])});for(var o=e.length-1;o>=0;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var s=t[0].flag;a.each(t,function(t,e){var n=t.radius;r.push(0===e?["M",t.x,t.y]:["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;u>=0;u--){var l=e[u],c=l.radius;r.push(u===e.length-1?["M",l.x,l.y]:["A",c,c,0,0,1===s?0:1,l.x,l.y])}}return{fill:n,path:r}}}),t.exports=o},function(t,e,n){var r=n(4);t.exports={getFirstScale:function(t){var e;return r.each(t,function(t){if(t)return e=t,!1}),e}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=a.DomUtil,s=n(38),u=n(285),l=n(286),c=n(284),h={scatter:u,map:l,treemap:c};t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{name:"label",type:"default",textStyle:null,formatter:null,items:null,useHtml:!1,containerTpl:'
',itemTpl:'
{text}
',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(),r=n.length;a.each(e,function(e,i){if(r>i){t.changeLabel(n[i],e)}else{var a=t._addLabel(e,i);a&&(a._id=e._id,a.set("coord",e.coord))}});for(var i=r-1;i>=e.length;i--)n[i].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){var n=this;if(n.get("config")||t.labelLine){var r=t.labelLine||n.get("labelLine"),i=void 0===t.capture?n.get("capture"):t.capture,o=r.path;if(o&&a.isFunction(r.path)&&(o=r.path(t)),!o){var s=t.start||{x:t.x-t._offset.x,y:t.y-t._offset.y};o=[["M",s.x,s.y],["L",t.x,t.y]]}var u=t.color;u||(u=t.textStyle&&t.textStyle.fill?t.textStyle.fill:"#000");var l=e.addShape("path",{attrs:a.mix({path:o,fill:null,stroke:u},r),capture:i});l.name=n.get("name"),l._id=t._id&&t._id.replace("glabel","glabelline"),l.set("coord",n.get("coord"))}},n._adjustLabels=function(){var t=this,e=t.get("type"),n=t.getLabels(),r=t.get("shapes"),i=h[e];"default"!==e&&i&&i(n,r)},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")||{},r=this.get("formatter"),i=this.get("htmlTemplate");if(!a.isObject(t)){var o=t;t={},t.text=o}return a.isFunction(n)&&(n=n(t.text,t,e)),r&&(t.text=r(t.text,t,e)),i&&(t.useHtml=!0,a.isFunction(i)&&(t.text=i(t.text,t,e))),a.isNil(t.text)&&(t.text=""),t.text=t.text+"",a.mix({},t,{textStyle:n},{x:t.x||0,y:t.y||0})},n._init=function(){if(!this.get("group")){this.set("group",this.get("canvas").addGroup({id:"label-group"}))}},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),r=this.get("container"),i=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 l=n.rotate;return n.textStyle&&(n.textStyle.rotate&&(l=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:i}),l&&(Math.abs(l)>2*Math.PI&&(l=l/180*Math.PI),e.transform([["t",-n.x,-n.y],["r",l],["t",n.x,n.y]])),e.setSilent("origin",s||n),e.name=o,this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),e}r||(r=this.initHtmlContainer());var c=this._createDom(n);r.appendChild(c),this._setCustomPosition(n,c)},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",r=t.y,i=t.x,a=o.getOuterWidth(e);r-=o.getOuterHeight(e)/2,"center"===n?i-=a/2:"right"===n&&(i-=a),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(i,10)+"px"},e}(s)},function(t,e){t.exports=function(){function t(){this.bitmap=[]}var e=t.prototype;return e.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.floor(t.minX),i=Math.ceil(t.maxX),a=Math.floor(t.minY),o=Math.ceil(t.maxY)-1,s=r;i>s;s++)if(n[s]){if(s===r||s===i-1){for(var u=a;o>=u;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),r=Math.ceil(t.maxX)-1,i=Math.floor(t.minY),a=Math.ceil(t.maxY)-1,o=n;r>=o;o++){for(var s=i;a>s;s+=8)e[o]||(e[o]=[]),e[o][s]=!0;e[o][a]=!0}for(var u=i;a>=u;u++)e[n][u]=!0,e[r][u]=!0},t}()},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(38),s=n(21),u=s.FONT_FAMILY;t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n._init(),n.beforeRender(),n.render(),n._adjustPositionOffset(),n._bindEvents(),n}r(e,t);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"),r=this.get("offsetY");if(!a.isArray(e)){e="vertical"===this.get("layout")?[e,0]:[0,e]}n&&(e[0]=n),r&&(e[1]=r);var i=this.get("group").getBBox();this.move(-i.minX+t[0]+e[0],-i.minY+t[1]+e[1])},n.beforeRender=function(){this.set("itemsGroup",this.get("group").addGroup())},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"),r=n.addShape("text",{attrs:a.mix({x:0,y:0-e,fill:"#333",textBaseline:"middle",fontFamily:u},t)});r.name="legend-title",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",r)}},n.getCheckedCount=function(){var t=this.get("itemsGroup"),e=t.get("children");return a.filter(e,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)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}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(" "),n.indexOf(e)>-1?t:t.parentNode?t.parentNode.className===d?t.parentNode:o(t.parentNode,e):null)}function s(t,e){var n=null,r=e instanceof p?e.get("value"):e;return u.each(t,function(t){if(t.value===r)return n=t,!1}),n}var u=n(4),l=n(144),c=n(21),h=c.FONT_FAMILY,f=u.DomUtil,p=u.Group,d="g2-legend",g="g2-legend-list",v="g2-legend-list-item",y="g2-legend-marker";t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return u.mix({},e,{type:"category-legend",container:null,containerTpl:'

    ',itemTpl:'
  • {value}
  • ',legendStyle:{},textStyle:{fill:"#333",fontSize:12,textAlign:"middle",textBaseline:"top",fontFamily:h},abridgeText:!1,tipTpl:'
    ',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=this.get("legendWrapper"),n=a(e,g);this.get("hoverable")&&(n.onmousemove=function(e){return t._onMousemove(e)},n.onmouseout=function(e){return t._onMouseleave(e)}),this.get("clickable")&&(n.onclick=function(e){return t._onClick(e)})},n._onMousemove=function(t){var e=this.get("items"),n=t.target,r=n.className;if(r=r.split(" "),-1>=r.indexOf(d)&&-1>=r.indexOf(g)){var i=o(n,v),a=s(e,i.getAttribute("data-value"));a?(this.deactivate(),this.activate(i.getAttribute("data-value")),this.emit("itemhover",{item:a,currentTarget:i,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=this.get("legendWrapper"),r=a(n,g),i=this.get("unCheckColor"),l=this.get("items"),c=this.get("selectedMode"),h=r.childNodes,f=t.target,p=f.className;if(p=p.split(" "),-1>=p.indexOf(d)&&-1>=p.indexOf(g)){var m=o(f,v),x=a(m,"g2-legend-text"),b=a(m,y),_=s(l,m.getAttribute("data-value"));if(_){var w=m.className,M=m.getAttribute("data-color");if("single"===c)_.checked=!0,u.each(h,function(t){if(t!==m){a(t,y).style.backgroundColor=i,t.className=t.className.replace("checked","unChecked"),t.style.color=i;s(l,t.getAttribute("data-value")).checked=!1}else x&&(x.style.color=e.get("textStyle").fill),b&&(b.style.backgroundColor=M),m.className=w.replace("unChecked","checked")});else{var S=-1!==w.indexOf("checked"),A=0;if(u.each(h,function(t){-1!==t.className.indexOf("checked")&&A++}),!this.get("allowAllCanceled")&&S&&1===A)return void this.emit("clicklastitem",{item:_,currentTarget:m,checked:"single"===c||_.checked});_.checked=!_.checked,S?(b&&(b.style.backgroundColor=i),m.className=w.replace("checked","unChecked"),m.style.color=i):(b&&(b.style.backgroundColor=M),m.className=w.replace("unChecked","checked"),m.style.color=this.get("textStyle").fill)}this.emit("itemclick",{item:_,currentTarget:m,checked:"single"===c||_.checked})}}},n.activate=function(t){var e=this,n=this,r=n.get("items"),i=s(r,t);a(n.get("legendWrapper"),g).childNodes.forEach(function(t){var o=a(t,y),u=s(r,t.getAttribute("data-value"));if(e.get("highlight")){if(u===i&&u.checked)return void(o.style.border="1px solid #333")}else u===i?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 r=a(n,y);t.get("highlight")?r.style.border="1px solid #fff":r.style.opacity=e.get("inactiveOpacity")})},n._renderHTML=function(){var t=this,e=this.get("container"),n=this.get("title"),r=this.get("containerTpl"),i=f.createDom(r),o=a(i,"g2-legend-title"),s=a(i,g),l=this.get("unCheckColor"),c=u.deepMix({},{CONTAINER_CLASS:{height:"auto",width:"auto",position:"absolute",overflowY:"auto",fontSize:"12px",fontFamily:h,lineHeight:"20px",color:"#8C8C8C"},TITLE_CLASS:{marginBottom:this.get("titleGap")+"px",fontSize:"12px",color:"#333",textBaseline:"middle",fontFamily:h},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 p=e.replace("#","");e=document.getElementById(p),e.appendChild(i)}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"},f.modifyCSS(i,u.mix({},c.CONTAINER_CLASS,x,this.get(d))),e.appendChild(i)}f.modifyCSS(s,u.mix({},c.LIST_CLASS,this.get(g))),o&&(n&&n.text?(o.innerHTML=n.text,f.modifyCSS(o,u.mix({},c.TITLE_CLASS,this.get("g2-legend-title"),n))):i.removeChild(o));var b=this.get("items"),_=this.get("itemTpl"),w=this.get("position"),M=this.get("layout"),S="right"===w||"left"===w||"vertical"===M?"block":"inline-block",A=u.mix({},c.LIST_ITEM_CLASS,{display:S},this.get(v)),C=u.mix({},c.MARKER_CLASS,this.get(y));if(u.each(b,function(e,n){var r,o=e.checked,c=t._formatItemValue(e.value),h=e.marker.fill||e.marker.stroke,p=o?h:l;r=u.isFunction(_)?_(c,p,o,n):_;var d=u.substitute(r,u.mix({},e,{index:n,checked:o?"checked":"unChecked",value:c,color:p,originColor:h,originValue:e.value.replace(/\"/g,""")})),g=f.createDom(d);g.style.color=t.get("textStyle").fill;var v=a(g,y),m=a(g,"g2-legend-text");if(f.modifyCSS(g,A),v&&f.modifyCSS(v,C),o||(g.style.color=l,v&&(v.style.backgroundColor=l)),s.appendChild(g),t.get("abridgeText")){var x=c,b=g.offsetWidth,w=t.get("textStyle").fontSize;isNaN(w)&&(-1!==w.indexOf("pt")?w=1*parseFloat(w.substr(0,w.length-2))/72*96:-1!==w.indexOf("px")&&(w=parseFloat(w.substr(0,w.length-2))));var M=w*x.length,S=Math.floor(b/w);2*w>b?x="":M>b&&S>1&&(x=x.substr(0,S-1)+"..."),m.innerText=x,g.addEventListener("mouseover",function(){var t=a(i.parentNode,"textTip");t.style.display="block",t.style.left=g.offsetLeft+g.offsetWidth+"px",t.style.top=g.offsetTop+15+"px",t.innerText=c}),g.addEventListener("mouseout",function(){a(i.parentNode,"textTip").style.display="none"})}}),this.get("abridgeText")){var P=this.get("tipTpl"),k=f.createDom(P),T=this.get("tipStyle");f.modifyCSS(k,T),i.parentNode.appendChild(k),k.addEventListener("mouseover",function(){k.style.display="none"})}this.set("legendWrapper",i)},n._adjustPositionOffset=function(){if(!1!==this.get("autoPosition")){var t=this.get("position"),e=this.get("offset"),n=this.get("offsetX"),r=this.get("offsetY");n&&(e[0]=n),r&&(e[1]=r);var i=this.get("legendWrapper");i.style.left=t[0]+"px",i.style.top=t[1]+"px",i.style.marginLeft=e[0]+"px",i.style.marginTop=e[1]+"px"}},n.getWidth=function(){return f.getOuterWidth(this.get("legendWrapper"))},n.getHeight=function(){return f.getOuterHeight(this.get("legendWrapper"))},n.move=function(e,n){/^\#/.test(this.get("container"))?t.prototype.move.call(this,e,n):(f.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}(l)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){var n=null,r=e instanceof f||"legendGroup"===e.name?e.get("value"):e;return s.each(t,function(t){if(t.value===r)return n=t,!1}),n}function o(t,e){return t.findBy(function(t){return t.name===e})}var s=n(4),u=n(142),l=n(21),c=l.FONT_FAMILY,h=s.Event,f=s.Group;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.get("itemsGroup"),i=r.get("children"),a=void 0;i.forEach(function(r){if(a=o(r,"legend-marker")){var i=r.get("checked");e.get("highlight")?r.get("value")===t&&i?a.attr("stroke","#333"):a.attr("stroke",null):r.get("value")===t&&a.attr("fillOpacity",n.get("activeOpacity"))}}),this.get("canvas").draw()},n.deactivate=function(){var t=this,e=this,n=e.get("itemsGroup"),r=n.get("children"),i=void 0,a=this.get("unCheckColor");r.forEach(function(n){if(i=o(n,"legend-marker"))if(t.get("highlight")){var r=i.get("oriStroke"),s=n.get("checked");r=r&&!s?a:"",i.attr("stroke",r)}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"),r=new h("itemhover",t,!0,!0);r.item=a(n,e),r.checked=e.get("checked"),r.currentTarget=t.currentTarget,this.deactivate(),this.activate(e.get("value")),this.emit("itemhover",r)}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 r=e.get("checked"),i=this.get("selectedMode"),u=a(n,e),l=new h("itemclick",t,!0,!0);if(l.item=u,l.currentTarget=e,l.appendInfo=t.currentTarget.get("appendInfo"),l.checked="single"===i||!r,!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return void this.emit("clicklastitem",l);var c=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,d=void 0,g=void 0;if("single"===i){var v=this.get("itemsGroup"),y=v.get("children");s.each(y,function(t){p=o(t,"legend-marker"),d=o(t,"legend-text"),g=o(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",c),p.attr("stroke")&&p.attr("stroke",c),d.attr("fill",c),p.setSilent("checked",!1),d.setSilent("checked",!1),g.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),d.attr("fill",f),p.setSilent("checked",!0),d.setSilent("checked",!0),g.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=o(e,"legend-marker"),d=o(e,"legend-text"),g=o(e,"legend-item"),p.attr("fill")&&u&&u.marker&&p.attr("fill",r?c:u.marker.fill),p.attr("stroke")&&u&&u.marker&&p.attr("stroke",r?c:u.marker.stroke),d.attr("fill",r?c:f),e.setSilent("checked",!r),p.setSilent("checked",!r),d.setSilent("checked",!r),g.setSilent("checked",!r);this.emit("itemclick",l)}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=this.get("itemsGroup"),r=n.get("children"),i=void 0;r.forEach(function(t){i=o(t,"legend-marker"),i.get("oriStroke")||(i.attr("stroke")?i.set("oriStroke",i.attr("stroke")):i.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"),r=this.get("itemWidth"),i=n.get("children"),a=0;return"horizontal"===t&&s.each(i,function(t){a+=(r||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"),r=this.get("itemsGroup"),i=this.get("titleShape"),a=r.get("children"),o=e;return i&&(o+=i.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(),r=this._getNextY(),i=this.get("unCheckColor"),a=e.addGroup({x:n,y:r,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:r});t.checked||(h.fill&&(h.fill=i),h.stroke&&(h.stroke=i));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:r,text:this._formatItemValue(t.value)});t.checked||s.mix(p,{fill:i});var d=a.addShape("text",{attrs:p});d.attr("cursor","pointer"),d.name="legend-text",this.get("appendInfo")&&d.setSilent("appendInfo",this.get("appendInfo"));var g=a.getBBox(),v=this.get("itemWidth"),y=a.addShape("rect",{attrs:{x:n,y:r-g.height/2,fill:"#fff",fillOpacity:0,width:v||g.width,height:g.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"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),a=this.get("titleShape")?this.get("titleGap"):0,o=0,u=0,l=void 0,c=void 0,h=void 0,f=this.get("itemWidth");t.getBBox().width>n&&s.each(e,function(t){h=t.getBBox(),l=f||h.width,c=h.height+i,l>n-u&&(o++,u=0),t.move(u,o*c+a),u+=l+r})},n._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),r=this.get("maxLength"),i=this.get("itemGap"),a=this.get("itemMarginBottom"),o=this.get("titleGap"),u=e?e.getBBox().height+o:0,l=this.get("itemWidth"),c=u,h=void 0,f=void 0,p=void 0,d=0,g=0;t.getBBox().height>r&&s.each(n,function(t){p=t.getBBox(),h=p.width,f=p.height,l?d=l+i:h>d&&(d=h+i),f>r-c?(c=u,g+=d,t.move(g,u)):t.move(g,c),c+=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)},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(52),s=n(146),u=n(147),l=n(148),c=n(81),h=n(4),f=n(21),p=f.FONT_FAMILY,d=h.DomUtil,g=h.MatrixUtil;t.exports=function(t){function e(e){var n;n=t.call(this,e)||this,h.assign(r(n),l),h.assign(r(n),u);var i=n.get("crosshairs");if(i){var a=n.get("rect"===i.type?"backPlot":"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}i(e,t);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:p,text:"",textBaseline:"top",fontSize:12,fill:"rgb(87, 87, 87)",lineHeight:20,padding:20},markerStyle:{radius:4},nameStyle:{fontFamily:p,fontSize:12,fill:"rgb(87, 87, 87)",textBaseline:"middle",textAlign:"start",padding:8},valueStyle:{fontFamily:p,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,e=t.get("padding"),n=t.get("frontPlot");t.set("markerGroup",n.addGroup({capture:!1}));var r=n.addGroup();r.hide(),t.set("container",r),t.set("board",r.addShape("rect",{attrs:h.mix({},t.get("boardStyle"))}));var i=t.get("titleStyle");if(t.get("showTitle")){var a=r.addShape("text",{attrs:h.mix({x:e.left,y:e.top},i)});t.set("titleShape",a),a.name="tooltip-title"}var o=r.addGroup();o.move(e.left,e.top+i.lineHeight+i.padding),t.set("itemsGroup",o)},n.render=function(){var t=this;t.clear();var e=t.get("container"),n=t.get("board"),r=t.get("showTitle"),i=t.get("titleContent"),a=this.get("titleShape"),o=this.get("itemsGroup"),s=t.get("items"),u=t.get("padding");if(a&&r&&a.attr("text",i),o){var l=t.get("itemGap"),c=0;h.each(s,function(e){var n=t._addItem(e);n.move(0,c),o.add(n);var r=n.getBBox().height;c+=r+l})}var f=e.getBBox(),p=f.width+u.right,d=f.height+u.bottom;n.attr("width",p),n.attr("height",d),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 r=this.get("markerGroup");r&&r.remove(),t.prototype.destroy.call(this),e.remove()},n.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=d.getWidth(o),u=d.getHeight(o),l=a.getBBox(),c=l.width,f=l.height,p=e,v=n;if(this.get("position")){var y=l.width,m=l.height;i=this._calcTooltipPosition(e,n,this.get("position"),y,m,r),e=i[0],n=i[1]}else i=this._constraintPositionInBoundary(e,n,c,f,s,u),e=i[0],n=i[1];if(this.get("inPlot")){i=this._constraintPositionInPlot(e,n,c,f,this.get("plotRange"),this.get("enterable")),e=i[0],n=i[1]}var x=this.get("markerItems");h.isEmpty(x)||(p=x[0].x,v=x[0].y);var b=[1,0,0,0,1,0,0,0,1],_=g.transform(b,[["t",e,n]]);a.stopAnimate(),a.animate({matrix:_},this.get("animationDuration"));var w=this.get("crosshairGroup");if(w){w.setPosition(p,v,this.get("items"))}t.prototype.setPosition.call(this,e,n)},n._addItem=function(t){var e=new o.Group,n=this.get("markerStyle").radius;if(t.marker){e.addShape("marker",{attrs:h.mix({},t.marker,{x:t.marker.radius/2,y:0,symbol:t.marker.activeSymbol||t.marker.symbol})}),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 i=this.get("valueStyle");return e.addShape("text",{attrs:h.mix({x:e.getBBox().width+i.padding,y:0,text:t.value},i)}),e},n._alignToRight=function(t){var e=this,n=this.get("itemsGroup"),r=n.get("children");h.each(r,function(n){var r=n.get("children"),i=r[2],a=i.getBBox().width;i.attr("x",t-a-2*e.get("padding").right)})},e}(c)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(38),o=n(4);t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n._init_(),n.render(),n}r(e,t);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,n=e.get("plot");t="rect"===e.type?n.addGroup({zIndex:0}):n.addGroup(),this.set("container",t)},n._addLineShape=function(t,e){var n=this.get("container"),r=n.addShape("line",{capture:!1,attrs:t});return this.set("crossLineShape"+e,r),r},n._renderHorizontalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style"));this._addLineShape(o.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n),"X")},n._renderVerticalLine=function(t,e){var n=o.mix(this.get("lineStyle"),this.get("style"));this._addLineShape(o.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n),"Y")},n._renderBackground=function(t,e){var n=o.mix(this.get("rectStyle"),this.get("style")),r=this.get("container"),i=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=r.addShape("rect",{attrs:i,capture:!1});return this.set("crosshairsRectShape",a),a},n._updateRectShape=function(t){var e,n=this.get("crosshairsRectShape"),r=this.get("isTransposed"),i=t[0],a=t[t.length-1],s=r?"y":"x",u=r?"height":"width",l=i[s];if(t.length>1&&i[s]>a[s]&&(l=a[s]),this.get("width"))n.attr(s,l-this.get("crosshairs").width/2),n.attr(u,this.get("width"));else if(o.isArray(i.point[s])&&!i.size){var c=i.point[s][1]-i.point[s][0];n.attr(s,i.point[s][0]),n.attr(u,c)}else e=3*i.size/4,n.attr(s,l-e),1===t.length?n.attr(u,3*i.size/2):n.attr(u,Math.abs(a[s]-i[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 r=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape");i&&!i.get("destroyed")&&i.move(t,0),r&&!r.get("destroyed")&&r.move(0,e),a&&!a.get("destroyed")&&this._updateRectShape(n)},e}(a)},function(t,e,n){var r=n(4);t.exports={setMarkers:function(t,e){var n=this,i=n.get("markerGroup"),a=n.get("frontPlot");i?i.clear():(i=a.addGroup({zIndex:1,capture:!1}),n.set("markerGroup",i)),r.each(t,function(t){var n=r.mix({fill:t.color,symbol:"circle",shadowColor:t.color},e,{x:t.x,y:t.y});t.marker&&t.marker.activeSymbol&&(n.symbol=t.marker.activeSymbol),i.addShape("marker",{color:t.color,attrs:n})}),this.set("markerItems",t)},clearMarkers:function(){var t=this.get("markerGroup");t&&t.clear()}}},function(t,e){t.exports={_calcTooltipPosition:function(t,e,n,r,i,a){var o=0,s=0,u=20;if(a){var l=a.getBBox();o=l.width,s=l.height,t=l.x,e=l.y,u=5}switch(n){case"inside":t=t+o/2-r/2,e=e+s/2-i/2;break;case"top":t=t+o/2-r/2,e=e-i-u;break;case"left":t=t-r-u,e=e+s/2-i/2;break;case"right":t=t+o+u,e=e+s/2-i/2;break;case"bottom":default:t=t+o/2-r/2,e=e+s+u}return[t,e]},_constraintPositionInBoundary:function(t,e,n,r,i,a){return t+n+20>i?(t-=n+20,t=0>t?0:t):0>t+20?t=20:t+=20,e+r+20>a?(e-=r+20,e=0>e?0:e):0>e+20?e=20:e+=20,[t,e]},_constraintPositionInPlot:function(t,e,n,r,i,a){return t+n>i.tr.x&&(t-=a?n+1:n+40),i.tl.x>t&&(t=i.tl.x),a||(e+r>i.bl.y&&(e-=r+40),i.tl.y>e&&(e=i.tl.y)),[t,e]}}},function(t,e,n){var r=n(0),i=n(301),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 i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},path:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},area:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.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 i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},edge:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}},interval:{appear:function(t){var e;return t.isPolar?(e=i.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=i.appear.fanIn)):e=t.isRect?t.isTransposed?i.appear.scaleInX:i.appear.scaleInY:i.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?i.enter.fadeIn:i.enter.zoomIn},leave:function(){return i.leave.fadeOut},update:function(t){if("theta"===t.type)return i.update.fanIn}},point:{appear:function(){return i.appear.zoomIn},enter:function(){return i.enter.zoomIn},leave:function(){return i.leave.zoomOut}},schema:{appear:function(){return i.appear.clipIn},enter:function(){return i.enter.clipIn},leave:function(){return i.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return i.appear.fadeIn},enter:function(){return i.enter.fadeIn},leave:function(){return i.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-ticks":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(t){if(t.isPolar)return i.appear.fadeIn}},"axis-grid-rect":{enter:function(){return i.appear.fadeIn},leave:function(){return i.leave.fadeOut},update:function(){return i.leave.fadeIn}},labelLine:{appear:function(){return i.appear.pathIn},enter:function(){return i.enter.pathIn},leave:function(){return i.leave.pathOut}}};o.Action=i,o.defaultCfg=a,o.getAnimation=function(t,e,n){var i=this[t];if(i){var a=i[n];if(r.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]?r.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){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(135),o=n(0);t.exports=function(t){function e(e){var n;n=t.call(this)||this;var r={visible:!0},i=n.getDefaultCfg();return n._attrs=r,o.assign(r,i,e),n}r(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}(a)},function(t,e,n){t.exports={Scale:n(308),Coord:n(304),Axis:n(303),Guide:n(306),Legend:n(307),Tooltip:n(309),Event:n(305)}},function(t,e,n){function r(t,e,n){void 0===n&&(n=1);var r=[t.x,t.y,n];return o.vec3.transformMat3(r,r,e),{x:r[0],y:r[1]}}function i(t){var e=t.getBBox(),n={x:e.minX,y:e.minY},i={x:e.maxX,y:e.maxY},a=t.attr("matrix");return n=r(n,a),i=r(i,a),{minX:n.x,minY:n.y,maxX:i.x,maxY:i.y}}var a=n(18),o=n(0),s=n(153);t.exports=function(t,e){var n=e;return o.each(t.get("children"),function(t){t instanceof a.Group&&o.each(t.get("children"),function(t){if(t instanceof a.Group&&t.get("children").length||t instanceof a.Path)n=s(n,t.getBBox());else if(t instanceof a.Text){var e=i(t);n=s(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){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(51);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="list",e.cols=null,e},n.generateFacets=function(t){var e=this,n=e.fields,r=n[0];if(!r)throw"Please specify for the field for facet!";var i=e.getFieldValues(r,t),a=i.length,o=e.cols||a,s=parseInt((a+o-1)/o),u=[];return i.forEach(function(n,l){var c=parseInt(l/o),h=l%o,f=[{field:r,value:n,values:i}],p=e.getFilter(f),d=t.filter(p),g={type:e.type,count:a,colValue:n,colField:r,rowField:null,rowValue:n,colIndex:h,rowIndex:c,cols:o,rows:s,data:d,region:e.getRegion(s,o,h,c)};u.push(g)}),u},n.setXAxis=function(t,e,n){n.rowIndex===n.rows-1||n.cols*n.rowIndex+n.colIndex+1+n.cols>n.count||(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(a)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(51);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="rect",e},n.generateFacets=function(t){var e=this,n=e.fields,r=[],i=1,a=1,o=n[0],s=n[1],u=[""],l=[""];return o&&(u=e.getFieldValues(o,t),a=u.length),s&&(l=e.getFieldValues(s,t),i=l.length),u.forEach(function(n,c){l.forEach(function(h,f){var p=[{field:o,value:n,values:u},{field:s,value:h,values:l}],d=e.getFilter(p),g=t.filter(d),v={type:e.type,colValue:n,rowValue:h,colField:o,rowField:s,colIndex:c,rowIndex:f,cols:a,rows:i,data:g,region:e.getRegion(i,a,c,f)};r.push(v)})}),r},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},n.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},e}(a)},function(t,e,n){var r=n(82),i=n(27),a=n(0),o=function t(e){t.superclass.constructor.call(this,e)};a.extend(o,r),a.augment(o,{getPointRauis:function(t,e){return i.getPointRadius(t,e)},getCirclePoint:function(t,e,n){var r=this,i=r.get("coord"),a=i.getCenter(),o=r._isEmitLabels(),s=r.getPointRauis(i,n);if(0===s)return null;if(i.isTransposed&&s>e&&!o){t+=2*Math.asin(e/(2*s))}else s+=e;return{x:a.x+s*Math.cos(t),y:a.y+s*Math.sin(t),angle:t,r:s}},getArcPoint:function(t,e){var n,r=this;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,r.transLabelPoint(n),n},getPointAngle:function(t){var e=this,n=e.get("coord");return i.getPointAngle(n,t)},getMiddlePoint:function(t){var e=this,n=e.get("coord"),r=t.length,i={x:0,y:0};return a.each(t,function(t){i.x+=t.x,i.y+=t.y}),i.x/=r,i.y/=r,i=n.convert(i)},_isToMiddle:function(t){return t.x.length>2},getLabelPoint:function(t,e,n){var r,i=this,a=t.text[n],o=1;i._isToMiddle(e)?r=i.getMiddlePoint(e.points):(1===t.text.length&&0===n?n=1:0===n&&(o=-1),r=i.getArcPoint(e,n));var s=i.getDefaultOffset(t);s*=o;var u=i.getPointAngle(r),l=i.getCirclePoint(u,s,r);if(l?(l.text=a,l.angle=u,l.color=e.color):l={text:""},t.autoRotate||void 0===t.autoRotate){var c=l.textStyle?l.textStyle.rotate:null;c||(c=l.rotate||i.getLabelRotate(u,s,e)),l.rotate=c}return l.start={x:r.x,y:r.y},l},_isEmitLabels:function(){return this.get("label").labelEmit},getLabelRotate:function(t){var e,n=this;return e=180*t/Math.PI,e+=90,n._isEmitLabels()&&(e-=90),e&&(e>90?e-=180:-90>e&&(e+=180)),e/180*Math.PI},getLabelAlign:function(t){var e,n=this,r=n.get("coord");if(n._isEmitLabels())e=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(r.isTransposed){var i=r.getCenter(),a=n.getDefaultOffset(t);e=1>Math.abs(t.x-i.x)?"center":t.angle>Math.PI||0>=t.angle?a>0?"left":"right":a>0?"right":"left"}else e="center";return e}}),t.exports=o},function(t,e,n){var r=n(0),i=n(6);t.exports={splitData:function(t){var e=this.get("viewTheme")||i;if(!t.length)return[];var n,a=[],o=[],s=this.getYScale(),u=s.field;return r.each(t,function(t){n=t._origin?t._origin[u]:t[u],e.connectNulls?r.isNil(n)||o.push(t):r.isArray(n)&&r.isNil(n[0])||r.isNil(n)?o.length&&(a.push(o),o=[]):o.push(t)}),o.length&&a.push(o),a}}},function(t,e){t.exports={toFront:function(t){t.set("_originIndex",t.get("parent").get("children").indexOf(t)),t.toFront()},resetZIndex:function(t){var e=t.get("parent"),n=t.get("_originIndex"),r=e.get("children"),i=r.indexOf(t);0>n||n===i||(r.splice(i,1),r.splice(n,0,t))}}},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(12),s=n(158),u=n(0),l=function(t){function e(e){var n;return n=t.call(this,e)||this,u.assign(r(n),s),n}i(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,r){var i=this,a=this.splitData(t),o=this.getDrawCfg(t[0]);i._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);i.appendShapeInfo(s,r+a)}})},e}(o);o.Path=l,t.exports=l},function(t,e){var n,r,i=["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],a=["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],o=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],s=["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],u=["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],l='BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"';t.exports={defaultColor:"#1890FF",plotCfg:{padding:[20,20,95,80]},fontFamily:l,defaultLegendPosition:"bottom",colors:i,colors_16:a,colors_24:o,colors_pie:s,colors_pie_16:u,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:l},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:l}},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:l}},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:l}},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:l}},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:l}},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:l}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:l}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:l}},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:l},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:l},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:l},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:l},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:l,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:l},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"},margin:[0,5,24,5],legendMargin:24},tooltip:(r={useHtml:!0,crosshairs:!1,offset:15,marker:{symbol:"circle",activeSymbol:"circle"}},r["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:l,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={listStyleType:"none",marginBottom:"4px",padding:0,marginTop:0,marginLeft:0,marginRight:0},r["g2-tooltip-marker"]={width:"5px",height:"5px",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r),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:l,textBaseline:"bottom"}}},text:{style:{fill:"rgba(0,0,0,.5)",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:l}},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}},function(t,e,n){t.exports={default:n(161),dark:n(358)}},function(t,e,n){var r=n(2),i=n(361),a=n(364),o=n(360),s=n(135),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.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},r.augment(u,i,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,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._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,r=t.el;n.splice(n.indexOf(this),1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el;if(n.splice(n.indexOf(this),1),n.unshift(this),r){var i=r.parentNode;i.removeChild(r),i.insertBefore(r,i.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.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 r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function r(t){return function(e,n){var r=t(e,n);return 0===r?e[c]-n[c]:r}}function i(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function a(t){if(!t._cfg&&t!==h){var e=t.superclass.constructor;e&&!e._cfg&&a(e),t._cfg={},o.merge(t._cfg,e._cfg),o.merge(t._cfg,t.CFG)}}var o=n(2),s=n(163),u=n(378),l={},c="_INDEX",h=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};o.extend(h,s),o.augment(h,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return a(this.constructor),o.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=l[t];if(r||(r=o.upperFirst(t),l[t]=r),e.attrs&&n){var i=e.attrs;if("text"===t){var a=n.get("fontFamily");a&&(i.fontFamily=i.fontFamily?i.fontFamily:a)}}e.canvas=n,e.type=t;var s=new u[r](e);return this.add(s),s},addGroup:function(t,e){var n,r=this.get("canvas");if(e=o.merge({},e),o.isFunction(t))e?(e.canvas=r,e.parent=this,n=new t(e)):n=new t({canvas:r,parent:this}),this.add(n);else if(o.isObject(t))t.canvas=r,n=new h(t),this.add(n);else{if(void 0!==t)return!1;n=new h,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return o.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.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){if(1===arguments.length){if(!o.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),h.superclass.remove.call(this,e)}else this.contain(t)&&t.remove(e);return this},add:function(t){var e=this,n=e.get("children");if(o.isArray(t))o.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 r=t,i=r.get("parent");i&&i.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}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(){return this.getChildByIndex(this.get("children").length-1)},getBBox:function(){var t=this,e=1/0,n=-1/0,r=1/0,i=-1/0,a=t.get("children");a.length>0?o.each(a,function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var a=t.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],l=[a.maxX,a.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(l);var c=Math.min(o[0],s[0],u[0],l[0]),h=Math.max(o[0],s[0],u[0],l[0]),f=Math.min(o[1],s[1],u[1],l[1]),p=Math.max(o[1],s[1],u[1],l[1]);e>c&&(e=c),h>n&&(n=h),r>f&&(r=f),p>i&&(i=p)}}):(e=0,n=0,r=0,i=0);var s={minX:e,minY:r,maxX:n,maxY:i};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},getCount:function(){return this.get("children").length},sort:function(){var t=this.get("children");return o.each(t,function(t,e){return t[c]=e,t}),t.sort(r(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(o.isString(t))return this.findById(t);var e=this.get("children"),n=null;return o.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=[],r=[];return o.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},findBy:function(t){var e=this.get("children"),n=null;return o.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=[],r=[];return o.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n,r=this,a=r._attrs.clip,o=r._cfg.children;if(a){var s=[t,e,1];a.invert(s,r.get("canvas")),a.isPointInPath(s[0],s[1])&&(n=i(o,t,e))}else n=i(o,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;t.length>e;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(),h.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=new h;return o.each(e,function(t){n.add(t.clone())}),n}}),t.exports=h},function(t,e,n){var r=n(2),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function i(t,e,n){return t+e*Math.sin(n)}var a=n(2),o=n(8),s=n(53),u=n(55),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(l,o),a.augment(l,{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,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth(),l=u/2,c=s.box(e,n,r,i,a,o);return c.minX-=l,c.minY-=l,c.maxX+=l,c.maxY+=l,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 l=[],c=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return l.push([c,h]),l.push([f,p]),l},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,l=[];s&&(u*=-1);var c=r(e,o,a+u),h=i(n,o,a+u);return l.push([r(e,o,a),i(n,o,a)]),l.push([c,h]),l},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,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 r=this.getEndTangent();u.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=l},function(t,e,n){var r=n(2),i=n(8),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.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,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(2),i=n(8),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},function(t,e,n){var r=n(2),i=n(8),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.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,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+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,i=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,l=a>o?o/a:1,c=[1,0,0,0,1,0,0,0,1];r.mat3.scale(c,c,[u,l]),r.mat3.translate(c,c,[n,i]),t.beginPath(),t.save(),t.transform(c[0],c[1],c[3],c[4],c[6],c[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(2),i=n(8),a=n(53),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},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,l=e.clockwise,c=this.getHitLineWidth(),h=a.box(n,r,i,s,u,l),f=a.box(n,r,o,s,u,l),p=Math.min(h.minX,f.minX),d=Math.min(h.minY,f.minY),g=Math.max(h.maxX,f.maxX),v=Math.max(h.maxY,f.maxY),y=c/2;return{minX:p-y,minY:d-y,maxX:g+y,maxY:v+y}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},c={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(l.x,l.y),t.lineTo(c.x,c.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(2),i=n(8),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},r.extend(a,i),r.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(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",+n.getAttribute("width")),e.height||t.attr("height",+n.getAttribute("height")),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){if(this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading"))return void this.set("toDraw",!0);this._drawImage(t),this._cfg.hasUpdate=!1},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&(f=new Image,f.src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h))return void t.drawImage(f,n,i,o,s);if(!(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h)))return void t.drawImage(f,u,l,c,h,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(2),i=n(8),a=n(55),o=n(54),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},r.extend(s,i),r.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,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,a=e.y2;t=t||self.get("context"),t.beginPath(),t.moveTo(n,r),t.lineTo(i,a)},afterPath:function(t){var e=this._attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;t=t||this.get("context"),e.startArrow&&a.addStartArrow(t,e,i,o,n,r),e.endArrow&&a.addEndArrow(t,e,n,r,i,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){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},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 r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,o,u,l,c){var h,f,p,d,g,v,y,m=.005,x=1/0,b=[u,l];for(g=0;1>g;g+=.05)p=[r(t,n,a,g),r(e,i,o,g)],f=s.squaredDistance(b,p),x>f&&(h=g,x=f);for(x=1/0,y=0;32>y&&1e-4<=m;y++){var _=h-m,w=h+m;p=[r(t,n,a,_),r(e,i,o,_)],f=s.squaredDistance(b,p),_>=0&&x>f?(h=_,x=f):(d=[r(t,n,a,w),r(e,i,o,w)],v=s.squaredDistance(b,d),1>=w&&x>v?(h=w,x=v):m*=.5)}return c&&(c.x=r(t,n,a,h),c.y=r(e,i,o,h)),Math.sqrt(x)}function a(t,e,n){var r=t+n-2*e;if(o.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i>1||0>i?[]:[i]}var o=n(2),s=o.vec2;t.exports={at:r,projectPoint:function(t,e,n,r,a,o,s,u){var l={};return i(t,e,n,r,a,o,s,u,l),l},pointDistance:i,extrema:a}},function(t,e,n){var r=n(2),i=n(8),a=n(56),o=n(39),s=n(55),u=n(90),l=n(88),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,l=0;i.length>l;l++){n=new a(i[l],n,l===u-1),s.push(n)}e.setSilent("segments",s),e.setSilent("tCache",null),e.setSilent("box",null)}},calculateBox:function(){var t=this,e=t.get("segments");if(!e)return null;var n=this.getHitLineWidth(),i=1/0,a=-1/0,o=1/0,s=-1/0;return r.each(e,function(t){t.getBBox(n);var e=t.box;e&&(i>e.minX&&(i=e.minX),e.maxX>a&&(a=e.maxX),o>e.minY&&(o=e.minY),e.maxY>s&&(s=e.maxY))}),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;u&&(r.each(u,function(t,e){n=u[e+1],i=t.length,n&&(a+=l.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),r.each(u,function(r,c){n=u[c+1],i=r.length,n&&(t=[],t[0]=o/a,e=l.len(r[i-2],r[i-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(){this._cfg.curve=u.pathTocurve(this._attrs.path)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,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,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,function(r,i){r[0]>t||t>r[1]||(e=(t-r[0])/(r[1]-r[0]),n=i)});var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:l.at(o[s-2],u[1],u[3],u[5],1-e),y:l.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e.get("segments");if(r.isArray(n)){t=t||e.get("context"),t.beginPath();for(var i=n.length,a=0;i>a;a++)n[a].draw(t)}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=c},function(t,e,n){var r=n(2),i=n(8),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(n,function(t){var e=t[0],n=t[1];a>e&&(a=e),e>s&&(s=e),o>n&&(o=n),n>u&&(u=n)});var l=i/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},createPath:function(t){var e=this,n=e._attrs,i=n.points;2>i.length||(t=t||e.get("context"),t.beginPath(),r.each(i,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 r=n(2),i=n(8),a=n(55),o=n(54),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,function(t){var e=t[0],n=t[1];a>e&&(a=e),e>s&&(s=e),o>n&&(o=n),n>u&&(u=n)});var l=n/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,l=[];a&&0!==a.length&&(r.each(a,function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))}),s>0&&(r.each(a,function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,l.push(t))}),this.tCache=l))},createPath:function(t){var e,n,r=this,i=r._attrs,a=i.points;if(a.length>=2){for(t=t||r.get("context"),t.beginPath(),t.moveTo(a[0][0],a[0][1]),n=1,e=a.length-1;e>n;n++)t.lineTo(a[n][0],a[n][1]);t.lineTo(a[e][0],a[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,n=e._attrs,r=n.points,i=r.length-1;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),n.endArrow&&a.addEndArrow(t,n,r[i-1][0],r[i-1][1],r[i][0],r[i][1])},getPoint:function(t){var e,n,i=this._attrs,a=i.points,s=this.tCache;return s||(this._setTcache(),s=this.tCache),r.each(s,function(r,i){r[0]>t||t>r[1]||(e=(t-r[0])/(r[1]-r[0]),n=i)}),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(2),i=n(39),a=i.parseRadius,o=n(8),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var l=a(u);t.moveTo(r+l.r1,i),t.lineTo(r+o-l.r2,i),0!==l.r2&&t.arc(r+o-l.r2,i+l.r2,l.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-l.r3),0!==l.r3&&t.arc(r+o-l.r3,i+s-l.r3,l.r3,0,Math.PI/2),t.lineTo(r+l.r4,i+s),0!==l.r4&&t.arc(r+l.r4,i+s-l.r4,l.r4,Math.PI/2,Math.PI),t.lineTo(r,i+l.r1),0!==l.r1&&t.arc(r+l.r1,i+l.r1,l.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},function(t,e,n){var r=n(2),i=n(8),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},r.extend(a,i),r.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&&12>+t&&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;t.font=[t.fontStyle,t.fontVariant,t.fontWeight,t.fontSize+"px",t.fontFamily].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e)&&-1!==e.indexOf("\n")){n=e.split("\n");t.lineCount=n.length}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,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,l=t.getHitLineWidth(),c={x:r,y:i-o};s&&("end"===s||"right"===s?c.x-=a:"center"===s&&(c.x-=a/2)),u&&("top"===u?c.y+=o:"middle"===u&&(c.y+=o/2)),this.set("startPoint",c);var h=l/2;return{minX:c.x-h,minY:c.y-h,maxX:c.x+a+h,maxY:c.y+o+h}},_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,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var l=n.strokeOpacity;r.isNil(l)||1===l||(t.globalAlpha=l),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var c=n.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,l=this._attrs.y,c=this.getBBox(),h=c.maxY-c.minY;r.each(i,function(r,i){n=l+i*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)})},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,function(e){t=u.measureText(e).width,t>s&&(s=t),u.restore()}):(s=u.measureText(i).width,u.restore()),s}}}),t.exports=a},function(t,e,n){t.exports={isFunction:n(14),isObject:n(33),isBoolean:n(114),isNil:n(7),isString:n(15),isArray:n(5),isNumber:n(11),isEmpty:n(106),uniqueId:n(116),clone:n(65),deepMix:n(41),assign:n(10),merge:n(41),upperFirst:n(113),each:n(3),isEqual:n(66),toArray:n(43),extend:n(104),augment:n(100),remove:n(98),isNumberEqual:n(42),toRadian:n(109),toDegree:n(108),mod:n(107),clamp:n(67),createDom:n(101),modifyCSS:n(102),requestAnimationFrame:n(103),getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},mat3:n(69),vec2:n(111),vec3:n(112),transform:n(110)}},function(t,e,n){var r=n(1),i=n(382),a=n(386),o=n(381),s=n(380),u=function(t){this._cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},r.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},r.augment(u,i,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,i=n.parent,a=n.el;return i&&r.remove(i.get("children"),this),a&&(e?i&&i._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,r=t.el;n.splice(n.indexOf(this),1),n.push(this),r&&(r.parentNode.removeChild(r),t.el=null)}},toBack:function(){var t=this._cfg,e=t.parent;if(e){var n=e._cfg.children,r=t.el;if(n.splice(n.indexOf(this),1),n.unshift(this),r){var i=r.parentNode;i.removeChild(r),i.insertBefore(r,i.firstChild)}}},_beforeSetZIndex:function(t){var e=this._cfg.parent;this._cfg.zIndex=t,r.isNil(e)||e.sort();var n=this._cfg.el;if(n){var i=e._cfg.children,a=i.indexOf(this),o=n.parentNode;o.removeChild(n),a===i.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 r.clone(this)},getBBox:function(){}}),t.exports=u},function(t,e,n){function r(t,e){for(var n=t.length;n--;)if(t[n].callback===e)return n;return-1}var i=n(95),a=Array.prototype.slice,o=function(){};i.augment(o,{on:function(t,e,n){var r=this;if(!i.isFunction(e))throw new TypeError("listener should be a function");return r._cfg._events||(r._cfg._events={}),r._cfg._events[t]||(r._cfg._events[t]=[]),r._cfg._events[t].push({callback:e,one:n}),this},one:function(t,e){return this.on(t,e,!0),this},emit:function(t){if(!this.get("destroyed")&&this._cfg._events&&!i.isEmpty(this._cfg._events)){var e=this._cfg._events[t];if(!i.isEmpty(e))for(var n=arguments,r=a.call(n,1),o=e.length,s=0;o>s;)e[s]&&(e[s].callback.apply(this,r),e[s]&&e[s].one?(e.splice(s,1),o--):s++)}},trigger:function(){this.emit.apply(this,arguments)},off:function(t,e){var n=this._cfg._events;if(n&&!i.isEmpty(n)){if(0===arguments.length)return this._cfg._events={},this;if(n[t]){var a=r(n[t],e);0>a||n[t].splice(a,1),0===n[t].length&&delete n[t]}}},removeEvent:function(t){return void 0===t?this._cfg._events={}:delete this._cfg._events[t],this},_getEvents:function(){return this._cfg._events||{}}}),t.exports=o},function(t,e,n){function r(t){return function(e,n){var r=t(e,n);return 0===r?e[h]-n[h]:r}}function i(t,e,n){for(var r,i=t.length-1;i>=0;i--){var a=t[i];if(a._cfg.visible&&a._cfg.capture&&(a.isGroup?r=a.getShape(e,n):a.isHit(e,n)&&(r=a)),r)break}return r}function a(t){for(var e=[],n=0;t.length>n;n++)e.push(t[n]);return e}function o(t){if(!t._cfg&&t!==p){var e=t.superclass.constructor;e&&!e._cfg&&o(e),t._cfg={},s.merge(t._cfg,e._cfg),s.merge(t._cfg,t.CFG)}}var s=n(1),u=n(181),l=n(400),c={},h="_INDEX",f=["zIndex","capture","visible"],p=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this.set("tobeRemoved",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};s.extend(p,u),s.augment(p,{isGroup:!0,type:"group",canFill:!0,canStroke:!0,getDefaultCfg:function(){return o(this.constructor),s.merge({},this.constructor._cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=c[t];if(r||(r=s.upperFirst(t),c[t]=r),e.attrs&&n){var i=e.attrs;if("text"===t){var a=n.get("fontFamily");a&&(i.fontFamily=i.fontFamily?i.fontFamily:a)}}e.canvas=n,e.type=t;var o=new l[r](e);return this.add(o),o},addGroup:function(t,e){var n,r=this.get("canvas");if(e=s.merge({},e),s.isFunction(t))e?(e.canvas=r,e.parent=this,n=new t(e)):n=new t({canvas:r,parent:this}),this.add(n);else if(s.isObject(t))t.canvas=r,n=new p(t),this.add(n);else{if(void 0!==t)return!1;n=new p,this.add(n)}return n},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return s.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.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){if(1===arguments.length){if(!s.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),p.superclass.remove.call(this,e)}else this.contain(t)&&t.remove(e);return this},add:function(t){var e=this,n=e.get("children");if(s.isArray(t))s.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 r=t,i=r.get("parent");i&&i.removeChild(r,!1),e._setCfgProperty(r),n.push(r)}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(){return this.getChildByIndex(this.get("children").length-1)},getBBox:function(){var t=this,e=1/0,n=-1/0,r=1/0,i=-1/0,a=t.get("children");a.length>0?s.each(a,function(t){if(t.get("visible")){if(t.isGroup&&0===t.get("children").length)return;var a=t.getBBox();if(!a)return!0;var o=[a.minX,a.minY,1],s=[a.minX,a.maxY,1],u=[a.maxX,a.minY,1],l=[a.maxX,a.maxY,1];t.apply(o),t.apply(s),t.apply(u),t.apply(l);var c=Math.min(o[0],s[0],u[0],l[0]),h=Math.max(o[0],s[0],u[0],l[0]),f=Math.min(o[1],s[1],u[1],l[1]),p=Math.max(o[1],s[1],u[1],l[1]);e>c&&(e=c),h>n&&(n=h),r>f&&(r=f),p>i&&(i=p)}}):(e=0,n=0,r=0,i=0);var o={minX:e,minY:r,maxX:n,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 s.each(t,function(t,e){return t[h]=e,t}),t.sort(r(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(s.isString(t))return this.findById(t);var e=this.get("children"),n=null;return s.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=[],r=[];return s.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},findBy:function(t){var e=this.get("children"),n=null;return s.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=[],r=[];return s.each(e,function(e){t(e)&&n.push(e),e.findAllBy&&(r=e.findAllBy(t),n=n.concat(r))}),n},getShape:function(t,e){var n,r=this,a=r._attrs.clip,o=r._cfg.children;if(a){var s=[t,e,1];a.invert(s,r.get("canvas")),a.isPointInPath(s[0],s[1])&&(n=i(o,t,e))}else n=i(o,t,e);return n},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this._cfg.children,e=0;t.length>e;e++)t[e].clearTotalMatrix()}},clear:function(t){if(!this.get("destroyed")){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(),p.superclass.destroy.call(this))},clone:function(){var t=this,e=t._cfg.children,n=t._attrs,r={};s.each(n,function(t,e){r[e]="matrix"===e?a(n[e]):n[e]});var i=new p({attrs:r,canvas:t.get("canvas")});return s.each(e,function(t){i.add(t.clone())}),s.each(f,function(e){i._cfg[e]=t._cfg[e]}),i}}),t.exports=p},function(t,e,n){t.exports={Canvas:n(379),Group:n(183),Shape:n(9),Arc:n(185),Circle:n(186),Dom:n(187),Ellipse:n(188),Fan:n(189),Image:n(190),Line:n(191),Marker:n(92),Path:n(194),Polygon:n(195),Polyline:n(196),Rect:n(197),Text:n(198),PathSegment:n(60),PathUtil:n(96),Event:n(91),EventEmitter:n(182),version:"3.4.10"}},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function i(t,e,n){return t+e*Math.sin(n)}var a=n(1),o=n(9),s=n(57),u=n(59),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},a.extend(l,o),a.augment(l,{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,r=t.r,i=t.startAngle,a=t.endAngle,o=t.clockwise,u=this.getHitLineWidth(),l=u/2,c=s.box(e,n,r,i,a,o);return c.minX-=l,c.minY-=l,c.maxX+=l,c.maxY+=l,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 l=[],c=r(e,o,a+u),h=i(n,o,a+u),f=r(e,o,a),p=i(n,o,a);return l.push([c,h]),l.push([f,p]),l},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,l=[];s&&(u*=-1);var c=r(e,o,a+u),h=i(n,o,a+u);return l.push([r(e,o,a),i(n,o,a)]),l.push([c,h]),l},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t=t||self.get("context"),t.beginPath(),t.arc(n,r,i,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 r=this.getEndTangent();u.addEndArrow(t,e,r[0][0],r[0][1],r[1][0],r[1][1])}}}),t.exports=l},function(t,e,n){var r=n(1),i=n(9),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,i),r.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,r=t.r,i=this.getHitLineWidth(),a=i/2+r;return{minX:e-a,minY:n-a,maxX:e+a,maxY:n+a}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(9),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"dom",calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(9),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(a,i),r.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,r=t.rx,i=t.ry,a=this.getHitLineWidth(),o=r+a/2,s=i+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,i=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,l=a>o?o/a:1,c=[1,0,0,0,1,0,0,0,1];r.mat3.scale(c,c,[u,l]),r.mat3.translate(c,c,[n,i]),t.beginPath(),t.save(),t.transform(c[0],c[1],c[3],c[4],c[6],c[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=a},function(t,e,n){var r=n(1),i=n(9),a=n(57),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},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.rs,o=e.re,s=e.startAngle,u=e.endAngle,l=e.clockwise,c=this.getHitLineWidth(),h=a.box(n,r,i,s,u,l),f=a.box(n,r,o,s,u,l),p=Math.min(h.minX,f.minX),d=Math.min(h.minY,f.minY),g=Math.max(h.maxX,f.maxX),v=Math.max(h.maxY,f.maxY),y=c/2;return{minX:p-y,minY:d-y,maxX:g+y,maxY:v+y}},createPath:function(t){var e=this._attrs,n=e.x,r=e.y,i=e.rs,a=e.re,o=e.startAngle,s=e.endAngle,u=e.clockwise,l={x:Math.cos(o)*i+n,y:Math.sin(o)*i+r},c={x:Math.cos(o)*a+n,y:Math.sin(o)*a+r},h={x:Math.cos(s)*i+n,y:Math.sin(s)*i+r};t=t||self.get("context"),t.beginPath(),t.moveTo(l.x,l.y),t.lineTo(c.x,c.y),t.arc(n,r,a,o,s,u),t.lineTo(h.x,h.y),t.arc(n,r,i,s,o,!u),t.closePath()}}),t.exports=o},function(t,e,n){var r=n(1),i=n(9),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},r.extend(a,i),r.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(!r.isString(n))return n instanceof Image?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):n instanceof HTMLElement&&r.isString(n.nodeName)&&"CANVAS"===n.nodeName.toUpperCase()?(e.width||t.attr("width",+n.getAttribute("width")),e.height||t.attr("height",+n.getAttribute("height")),n):n instanceof ImageData?(e.width||t.attr("width",n.width),e.height||t.attr("height",n.height),n):null;var i=new Image;i.onload=function(){if(t.get("destroyed"))return!1;t.attr("imgSrc",n),t.attr("img",i);var e=t.get("callback");e&&e.call(t),t.set("loading",!1)},i.src=n,i.crossOrigin="Anonymous",t.set("loading",!0)},drawInner:function(t){if(this._cfg.hasUpdate&&this._setAttrImg(),this.get("loading"))return void this.set("toDraw",!0);this._drawImage(t),this._cfg.hasUpdate=!1},_drawImage:function(t){var e=this._attrs,n=e.x,i=e.y,a=e.img,o=e.width,s=e.height,u=e.sx,l=e.sy,c=e.swidth,h=e.sheight;this.set("toDraw",!1);var f=a;if(f instanceof ImageData&&(f=new Image,f.src=a),f instanceof Image||f instanceof HTMLElement&&r.isString(f.nodeName)&&"CANVAS"===f.nodeName.toUpperCase()){if(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h))return void t.drawImage(f,n,i,o,s);if(!(r.isNil(u)||r.isNil(l)||r.isNil(c)||r.isNil(h)))return void t.drawImage(f,u,l,c,h,n,i,o,s)}}}),t.exports=a},function(t,e,n){var r=n(1),i=n(9),a=n(59),o=n(58),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},r.extend(s,i),r.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,r=t.x2,i=t.y2,a=this.getHitLineWidth();return o.box(e,n,r,i,a)},createPath:function(t){var e=this,n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;if(n.startArrow&&n.startArrow.d){var u=a.getShortenOffset(r,i,o,s,n.startArrow.d);r+=u.dx,i+=u.dy}if(n.endArrow&&n.endArrow.d){var l=a.getShortenOffset(r,i,o,s,n.endArrow.d);o-=l.dx,s-=l.dy}t=t||e.get("context"),t.beginPath(),t.moveTo(r,i),t.lineTo(o,s)},afterPath:function(t){var e=this,n=e._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,o,s,r,i),n.endArrow&&a.addEndArrow(t,n,r,i,o,s)},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){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},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 r(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function i(t,e,n,i,a,o,u,l,c){var h,f,p,d,g,v,y,m=.005,x=1/0,b=[u,l];for(g=0;1>g;g+=.05)p=[r(t,n,a,g),r(e,i,o,g)],f=s.squaredDistance(b,p),x>f&&(h=g,x=f);for(x=1/0,y=0;32>y&&1e-4<=m;y++){var _=h-m,w=h+m;p=[r(t,n,a,_),r(e,i,o,_)],f=s.squaredDistance(b,p),_>=0&&x>f?(h=_,x=f):(d=[r(t,n,a,w),r(e,i,o,w)],v=s.squaredDistance(b,d),1>=w&&x>v?(h=w,x=v):m*=.5)}return c&&(c.x=r(t,n,a,h),c.y=r(e,i,o,h)),Math.sqrt(x)}function a(t,e,n){var r=t+n-2*e;if(o.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i>1||0>i?[]:[i]}var o=n(1),s=o.vec2;t.exports={at:r,projectPoint:function(t,e,n,r,a,o,s,u){var l={};return i(t,e,n,r,a,o,s,u,l),l},pointDistance:i,extrema:a}},function(t,e,n){var r=n(1),i=n(9),a=n(60),o=n(40),s=n(59),u=n(96),l=n(93),c=function t(e){t.superclass.constructor.call(this,e)};c.ATTRS={path:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(c,i),r.augment(c,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},_afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n,i=o.parsePath(t),s=[];if(r.isArray(i)&&0!==i.length&&("M"===i[0][0]||"m"===i[0][0])){for(var u=i.length,l=0;i.length>l;l++){n=new a(i[l],n,l===u-1),s.push(n)}e.setSilent("segments",s),e.setSilent("tCache",null),e.setSilent("totalLength",null),e.setSilent("box",null)}},calculateBox:function(){var t=this,e=t.get("segments");if(!e)return null;var n=this.getHitLineWidth(),i=1/0,a=-1/0,o=1/0,s=-1/0;return r.each(e,function(t){t.getBBox(n);var e=t.box;e&&(i>e.minX&&(i=e.minX),e.maxX>a&&(a=e.maxX),o>e.minY&&(o=e.minY),e.maxY>s&&(s=e.maxY))}),i===1/0||o===1/0?{minX:0,minY:0,maxX:0,maxY:0}:{minX:i,minY:o,maxX:a,maxY:s}},_setTcache:function(){var t,e,n,i,a=0,o=0,s=[],u=this._cfg.curve;if(u){if(r.each(u,function(t,e){n=u[e+1],i=t.length,n&&(a+=l.len(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6]))}),this._cfg.totalLength=a,0===a)return void(this._cfg.tCache=[]);r.each(u,function(r,c){n=u[c+1],i=r.length,n&&(t=[],t[0]=o/a,e=l.len(r[i-2],r[i-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}},getTotalLength:function(){var t=this.get("totalLength");return r.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},_calculateCurve:function(){this._cfg.curve=u.pathTocurve(this._attrs.path)},getStartTangent:function(){var t,e,n,i,a=this.get("segments");if(a.length>1)if(t=a[0].endPoint,e=a[1].endPoint,n=a[1].startTangent,i=[],r.isFunction(n)){var o=n();i.push([t.x-o[0],t.y-o[1]]),i.push([t.x,t.y])}else i.push([e.x,e.y]),i.push([t.x,t.y]);return i},getEndTangent:function(){var t,e,n,i,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,i=[],r.isFunction(n)){var s=n();i.push([e.x-s[0],e.y-s[1]]),i.push([e.x,e.y])}else i.push([t.x,t.y]),i.push([e.x,e.y]);return i},getPoint:function(t){var e,n,i=this._cfg.tCache;i||(this._calculateCurve(),this._setTcache(),i=this._cfg.tCache);var a=this._cfg.curve;if(!i||0===i.length)return a?{x:a[0][1],y:a[0][2]}:null;r.each(i,function(r,i){r[0]>t||t>r[1]||(e=(t-r[0])/(r[1]-r[0]),n=i)});var o=a[n];if(r.isNil(o)||r.isNil(n))return null;var s=o.length,u=a[n+1];return{x:l.at(o[s-2],u[1],u[3],u[5],1-e),y:l.at(o[s-1],u[2],u[4],u[6],1-e)}},createPath:function(t){var e=this,n=e._attrs,i=e.get("segments");if(r.isArray(i)){var a=i.length;if(0!==a){if(t=t||e.get("context"),t.beginPath(),n.startArrow&&n.startArrow.d){var o=e.getStartTangent(),u=s.getShortenOffset(o[0][0],o[0][1],o[1][0],o[1][1],n.startArrow.d);i[0].shortenDraw(t,u.dx,u.dy)}else i[0].draw(t);for(var l=1;a-2>l;l++)i[l].draw(t);if(n.endArrow&&n.endArrow.d){var c=e.getEndTangent(),h=s.getShortenOffset(c[0][0],c[0][1],c[1][0],c[1][1],n.endArrow.d),f=i[a-1];"Z"===f.command.toUpperCase()?(i[a-2]&&i[a-2].shortenDraw(t,h.dx,h.dy),f.draw(t)):(a>2&&i[a-2].draw(t),f.shortenDraw(t,h.dx,h.dy))}else i[a-2]&&i[a-2].draw(t),i[a-1].draw(t)}}},afterPath:function(t){var e=this,n=e._attrs,i=e.get("segments"),a=n.path;if(t=t||e.get("context"),r.isArray(i)&&1!==i.length&&(n.startArrow||n.endArrow)&&"z"!==a[a.length-1]&&"Z"!==a[a.length-1]&&!n.fill){var o=e.getStartTangent();s.addStartArrow(t,n,o[0][0],o[0][1],o[1][0],o[1][1]);var u=e.getEndTangent();s.addEndArrow(t,n,u[0][0],u[0][1],u[1][0],u[1][1])}}}),t.exports=c},function(t,e,n){var r=n(1),i=n(9),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={points:null,lineWidth:1},r.extend(a,i),r.augment(a,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this,e=t._attrs,n=e.points,i=this.getHitLineWidth();if(!n||0===n.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(n,function(t){var e=t[0],n=t[1];a>e&&(a=e),e>s&&(s=e),o>n&&(o=n),n>u&&(u=n)});var l=i/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},createPath:function(t){var e=this,n=e._attrs,i=n.points;2>i.length||(t=t||e.get("context"),t.beginPath(),r.each(i,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 r=n(1),i=n(9),a=n(59),o=n(58),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(s,i),r.augment(s,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t._attrs,n=this.getHitLineWidth(),i=e.points;if(!i||0===i.length)return null;var a=1/0,o=1/0,s=-1/0,u=-1/0;r.each(i,function(t){var e=t[0],n=t[1];a>e&&(a=e),e>s&&(s=e),o>n&&(o=n),n>u&&(u=n)});var l=n/2;return{minX:a-l,minY:o-l,maxX:s+l,maxY:u+l}},_setTcache:function(){var t,e,n=this,i=n._attrs,a=i.points,s=0,u=0,l=[];a&&0!==a.length&&(r.each(a,function(t,e){a[e+1]&&(s+=o.len(t[0],t[1],a[e+1][0],a[e+1][1]))}),s>0&&(r.each(a,function(n,r){a[r+1]&&(t=[],t[0]=u/s,e=o.len(n[0],n[1],a[r+1][0],a[r+1][1]),u+=e,t[1]=u/s,l.push(t))}),this.tCache=l))},createPath:function(t){var e,n=this,r=n._attrs,i=r.points;if(i.length>=2){var o=i.length-1,s=i[0][0],u=i[0][1],l=i[o][0],c=i[o][1];if(r.startArrow&&r.startArrow.d){var h=a.getShortenOffset(i[0][0],i[0][1],i[1][0],i[1][1],r.startArrow.d);s+=h.dx,u+=h.dy}if(r.endArrow&&r.endArrow.d){var f=a.getShortenOffset(i[o-1][0],i[o-1][1],i[o][0],i[o][1],r.endArrow.d);l-=f.dx,c-=f.dy}for(t=t||n.get("context"),t.beginPath(),t.moveTo(s,u),e=1;o>e;e++)t.lineTo(i[e][0],i[e][1]);t.lineTo(l,c)}},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,n=e._attrs,r=n.points,i=r.length-1;t=t||e.get("context"),n.startArrow&&a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),n.endArrow&&a.addEndArrow(t,n,r[i-1][0],r[i-1][1],r[i][0],r[i][1])},getPoint:function(t){var e,n,i=this._attrs,a=i.points,s=this.tCache;return s||(this._setTcache(),s=this.tCache),r.each(s,function(r,i){r[0]>t||t>r[1]||(e=(t-r[0])/(r[1]-r[0]),n=i)}),{x:o.at(a[n][0],a[n+1][0],e),y:o.at(a[n][1],a[n+1][1],e)}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(40),a=i.parseRadius,o=n(9),s=function t(e){t.superclass.constructor.call(this,e)};s.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(s,o),r.augment(s,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this,e=t._attrs,n=e.x,r=e.y,i=e.width,a=e.height,o=this.getHitLineWidth(),s=o/2;return{minX:n-s,minY:r-s,maxX:n+i+s,maxY:r+a+s}},createPath:function(t){var e=this,n=e._attrs,r=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(t=t||e.get("context"),t.beginPath(),0===u)t.rect(r,i,o,s);else{var l=a(u);t.moveTo(r+l.r1,i),t.lineTo(r+o-l.r2,i),0!==l.r2&&t.arc(r+o-l.r2,i+l.r2,l.r2,-Math.PI/2,0),t.lineTo(r+o,i+s-l.r3),0!==l.r3&&t.arc(r+o-l.r3,i+s-l.r3,l.r3,0,Math.PI/2),t.lineTo(r+l.r4,i+s),0!==l.r4&&t.arc(r+l.r4,i+s-l.r4,l.r4,Math.PI/2,Math.PI),t.lineTo(r,i+l.r1),0!==l.r1&&t.arc(r+l.r1,i+l.r1,l.r1,Math.PI,1.5*Math.PI),t.closePath()}}}),t.exports=s},function(t,e,n){var r=n(1),i=n(9),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},r.extend(a,i),r.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&&12>+t&&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;t.font=[t.fontStyle,t.fontVariant,t.fontWeight,t.fontSize+"px",t.fontFamily].join(" ")},_setAttrText:function(){var t=this._attrs,e=t.text,n=null;if(r.isString(e))if(-1!==e.indexOf("\n")){n=e.split("\n");var i=n.length;t.lineCount=i}else t.lineCount=1;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,e=t._attrs,n=this._cfg;n.attrs&&!n.hasUpdate||(this._assembleFont(),this._setAttrText()),e.textArr||this._setAttrText();var r=e.x,i=e.y,a=t.measureText();if(!a)return{minX:r,minY:i,maxX:r,maxY:i};var o=t._getTextHeight(),s=e.textAlign,u=e.textBaseline,l=t.getHitLineWidth(),c={x:r,y:i-o};s&&("end"===s||"right"===s?c.x-=a:"center"===s&&(c.x-=a/2)),u&&("top"===u?c.y+=o:"middle"===u&&(c.y+=o/2)),this.set("startPoint",c);var h=l/2;return{minX:c.x-h,minY:c.y-h,maxX:c.x+a+h,maxY:c.y+o+h}},_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,n=e._attrs,i=this._cfg;i.attrs&&!i.hasUpdate||(this._assembleFont(),this._setAttrText()),t.font=n.font;var a=n.text;if(a){var o=n.textArr,s=n.x,u=n.y;if(t.beginPath(),e.hasStroke()){var l=n.strokeOpacity;r.isNil(l)||1===l||(t.globalAlpha=l),o?e._drawTextArr(t,!1):t.strokeText(a,s,u),t.globalAlpha=1}if(e.hasFill()){var c=n.fillOpacity;r.isNil(c)||1===c||(t.globalAlpha=c),o?e._drawTextArr(t,!0):t.fillText(a,s,u)}i.hasUpdate=!1}},_drawTextArr:function(t,e){var n,i=this._attrs.textArr,a=this._attrs.textBaseline,o=1*this._attrs.fontSize,s=this._getSpaceingY(),u=this._attrs.x,l=this._attrs.y,c=this.getBBox(),h=c.maxY-c.minY;r.each(i,function(r,i){n=l+i*(s+o)-h+o,"middle"===a&&(n+=h-o-(h-o)/2),"top"===a&&(n+=h-o),e?t.fillText(r,u,n):t.strokeText(r,u,n)})},measureText:function(){var t,e=this,n=e._attrs,i=n.text,a=n.font,o=n.textArr,s=0;if(!r.isNil(i)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=a,o?r.each(o,function(e){t=u.measureText(e).width,t>s&&(s=t),u.restore()}):(s=u.measureText(i).width,u.restore()),s}}}),t.exports=a},function(t,e,n){function r(t){var e=[];return a(t,function(t){e=e.concat(t)}),e}function i(t,e){var n;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}var a=n(3);t.exports=function(t){var e,n={},a=[],o=t.isRounding,s=r(t.data),u=s.length,l=t.maxCount||8;if(o?(e=i(u-1,l-1)+1,2===e?e=l:l-4>e&&(e=l-4)):e=l,o||u>e+e/2){for(var c=parseInt(u/(e-1),10),h=s.map(function(t,e){return e%c==0?s.slice(e,e+c):null}).filter(function(t){return t}),f=1,p=h.length;p>f&&(o?u-c>f*c:e-1>f);f++)a.push(h[f][0]);if(s.length){a.unshift(s[0]);var d=s[u-1];-1===a.indexOf(d)&&a.push(d)}}else a=[].concat(s);return n.categories=s,n.ticks=a,n}},function(t,e){function n(t){var e=1;if(t===1/0||t===-1/0)throw Error("Not support Infinity!");if(1>t){for(var n=0;1>t;)e/=10,t*=10,n++;(""+e).length>a&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}function r(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(t[0]>e)return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;t.length>i&&t[i]<=e;i++)r=t[i];return r}function i(t,e){var n=t.length;if(0===n)return NaN;var r;if(e>t[n-1])return NaN;if(t[0]>e)return t[0];for(var i=1;t.length>i;i++)if(t[i]>=e){r=t[i];break}return r}var a=12,o={snapFactorTo:function(t,e,r){if(isNaN(t))return NaN;var i=1;if(0!==t){0>t&&(i=-1),t*=i;var s=n(t);i*=s,t/=s}t="floor"===r?o.snapFloor(e,t):"ceil"===r?o.snapCeiling(e,t):o.snapTo(e,t);var u=parseFloat((t*i).toPrecision(a));if(1>Math.abs(i)&&(""+u).length>a){u=t/parseInt(1/i)*(i>0?1:-1)}return u},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var n=r(t,e),a=i(t,e);if(isNaN(n)||isNaN(a)){if(t[0]>=e)return t[0];var o=t[t.length-1];if(e>=o)return o}return Math.abs(e-n)r&&0>i)return Math.round(t);var a=0>i?n.substr(r+1).length:parseInt(n.substr(i+2),10);return a>20&&(a=20),parseFloat(t.toFixed(a))}};t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(28),a=n(199),o=n(3),s=n(11),u=n(15),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="cat",this.isCategory=!0,this.isRounding=!0},n.init=function(){var t=this,e=t.values,n=t.tickCount;if(o(e,function(t,n){e[n]=""+t}),!t.ticks){var r=e;if(n){r=a({maxCount:n,data:e,isRounding:t.isRounding}).ticks}this.ticks=r}},n.getText=function(e){return-1===this.values.indexOf(e)&&s(e)&&(e=this.values[Math.round(e)]),t.prototype.getText.call(this,e)},n.translate=function(t){var e=this.values.indexOf(t);return-1===e&&s(t)?e=t:-1===e&&(e=NaN),e},n.scale=function(t){var e,n=this.rangeMin(),r=this.rangeMax();return(u(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e=this.values.length>1?t/(this.values.length-1):t,n+e*(r-n)},n.invert=function(t){if(u(t))return t;var e=this.rangeMin(),n=this.rangeMax();e>t&&(t=e),t>n&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},e}(i);i.Cat=l,t.exports=l},function(t,e,n){var r=n(222),i=n(28);i.Linear=n(61),i.Identity=n(406),i.Cat=n(201),i.Time=n(410),i.TimeCat=n(409),i.Log=n(407),i.Pow=n(408);for(var a in i)!function(t){if(i.hasOwnProperty(t)){var e=r(t);i[e]=function(e){return new i[t](e)}}}(a);var o=["cat","timeCat"];i.isCategory=function(t){return o.indexOf(t)>=0},t.exports=i},function(t,e,n){var r=n(23),i=Array.prototype.splice;t.exports=function(t,e){if(!r(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,i.call(t,s,1))}return t}},function(t,e,n){var r=n(3),i=n(63);t.exports=function(t){var e=[];return r(t,function(t){i(e,t)||e.push(t)}),e}},function(t,e,n){var r=n(3),i=n(5),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(!e||!i(t))return t;var n={},o=null;return r(t,function(t){o=e(t),a.call(n,o)?n[o].push(t):n[o]=[t]}),n}},function(t,e,n){var r=n(14),i=n(5),a=n(205);t.exports=function(t,e){if(!e)return{0:t};if(!r(e)){var n=i(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;i>r;r++)e+=t[n[r]]&&""+t[n[r]];return e}}return a(t,e)}},function(t,e,n){var r=n(206);t.exports=function(t,e){if(!e)return[t];var n=r(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){var r=n(3),i=n(10),a=n(431),o=n(417),s=n(433),u=n(435),l=n(443),c=n(68),h=n(454),f=n(458),p=n(462),d=n(467),g={DOMUtil:a,DomUtil:a,MatrixUtil:c,PathUtil:f,arrayUtil:o,domUtil:a,eventUtil:s,formatUtil:u,mathUtil:l,matrixUtil:c,objectUtil:h,stringUtil:p,pathUtil:f,typeUtil:d,augment:n(100),clone:n(65),debounce:n(422),deepMix:n(41),each:r,extend:n(104),filter:n(105),group:n(207),groupBy:n(205),groupToMap:n(206),indexOf:n(439),isEmpty:n(106),isEqual:n(66),isEqualWith:n(440),map:n(441),mix:i,pick:n(461),throttle:n(466),toArray:n(43),toString:n(44),uniqueId:n(116)};r([a,o,s,u,l,c,h,f,p,d],function(t){i(g,t)}),t.exports=g},function(t,e,n){var r=n(5),i=n(14),a=n(3);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){(s=i(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){function r(t,e){var n=i(e),r=n.length;if(a(t))return!r;for(var o=0;r>o;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}var i=n(213),a=n(7);t.exports=r},function(t,e,n){var r=n(3),i=n(14);t.exports=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r(t,function(n,r){i(t)&&"prototype"===r||e.push(r)}),e}},function(t,e,n){var r=n(3),i=n(14);t.exports=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return r(t,function(n,r){i(t)&&"prototype"===r||e.push(n)}),e}},function(t,e){t.exports=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(6*a[1].x-a[0].x+a[2].x)/6,(6*a[1].y-a[0].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){var n=/,?([a-z]),?/gi;t.exports=function(t){return t.join(",").replace(n,"$1")}},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},r="\t\n\v\f\r   ᠎              \u2028\u2029",i=RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","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},r=[];return(t+"").replace(i,function(t,n,i){var o=[],s=n.toLowerCase();if(i.replace(a,function(t,e){e&&o.push(+e)}),"m"===s&&o.length>2&&(r.push([n].concat(o.splice(0,2))),s="l",n="m"===n?"l":"L"),"o"===s&&1===o.length&&r.push([n,o[0]]),"r"===s)r.push([n].concat(o));else for(;o.length>=e[s]&&(r.push([n].concat(o.splice(0,e[s]))),e[s]););}),r}},function(t,e,n){function r(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),u=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,u,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a}var i=n(217),a=n(215);t.exports=function(t){if(!(t=i(t))||!t.length)return[["M",0,0]];var e=[],n=0,o=0,s=0,u=0,l=0,c=void 0,h=void 0;"M"===t[0][0]&&(n=+t[0][1],o=+t[0][2],s=n,u=o,l++,e[0]=["M",n,o]);for(var f,p,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),g=l,v=t.length;v>g;g++){if(e.push(f=[]),p=t[g],(c=p[0])!==c.toUpperCase())switch(f[0]=c.toUpperCase()){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":h=[n,o].concat(p.slice(1));for(var y=2,m=h.length;m>y;y++)h[y]=+h[y]+n,h[++y]=+h[y]+o;e.pop(),e=e.concat(a(h,d));break;case"O":e.pop(),h=r(n,o,p[1],p[2]),h.push(h[0]),e=e.concat(h);break;case"U":e.pop(),e=e.concat(r(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;b>x;x++)f[x]=+p[x]+(x%2?n:o)}else if("R"===c)h=[n,o].concat(p.slice(1)),e.pop(),e=e.concat(a(h,d)),f=["R"].concat(p.slice(-2));else if("O"===c)e.pop(),h=r(n,o,p[1],p[2]),h.push(h[0]),e=e.concat(h);else if("U"===c)e.pop(),e=e.concat(r(n,o,p[1],p[2],p[3])),f=["U"].concat(e[e.length-1].slice(-2));else for(var _=0,w=p.length;w>_;_++)f[_]=p[_];if("O"!==(c=c.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,n){var r=n(218),i=function t(e,n,r,i,a,o,s,u,l,c){r===i&&(r+=1);var h=120*Math.PI/180,f=Math.PI/180*(+a||0),p=[],d=void 0,g=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(c)g=c[0],v=c[1],y=c[2],m=c[3];else{d=x(e,n,-f),e=d.x,n=d.y,d=x(u,l,-f),u=d.x,l=d.y,e===u&&n===l&&(u+=1,l+=1);var b=(e-u)/2,_=(n-l)/2,w=b*b/(r*r)+_*_/(i*i);w>1&&(w=Math.sqrt(w),r*=w,i*=w);var M=r*r,S=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((M*S-M*_*_-S*b*b)/(M*_*_+S*b*b)));y=A*r*_/i+(e+u)/2,m=A*-i*b/r+(n+l)/2,g=Math.asin(((n-m)/i).toFixed(9)),v=Math.asin(((l-m)/i).toFixed(9)),g=y>e?Math.PI-g:g,v=y>u?Math.PI-v:v,0>g&&(g=2*Math.PI+g),0>v&&(v=2*Math.PI+v),s&&g>v&&(g-=2*Math.PI),!s&&v>g&&(v-=2*Math.PI)}var C=v-g;if(Math.abs(C)>h){var P=v,k=u,T=l;v=g+h*(s&&v>g?1:-1),u=y+r*Math.cos(v),l=m+i*Math.sin(v),p=t(u,l,r,i,a,0,s,k,T,[v,P,y,m])}C=v-g;var I=Math.cos(g),O=Math.sin(g),E=Math.cos(v),L=Math.sin(v),D=Math.tan(C/4),F=4/3*r*D,B=4/3*i*D,R=[e,n],j=[e+F*O,n-B*I],N=[u+F*L,l-B*E],z=[u,l];if(j[0]=2*R[0]-j[0],j[1]=2*R[1]-j[1],c)return[j,N,z].concat(p);p=[j,N,z].concat(p).join().split(",");for(var Y=[],G=0,X=p.length;X>G;G++)Y[G]=G%2?x(p[G-1],p[G],f).y:x(p[G],p[G+1],f).x;return Y},a=function(t,e,n,r){return[t,e,n,r,n,r]},o=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]};t.exports=function(t,e){var n=r(t),s=e&&r(e),u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],h=[],f="",p="",d=void 0,g=function(t,e,n){var r=void 0,s=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(i.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,s=2*e.y-e.by):(r=e.x,s=e.y),t=["C",r,s].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(o(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(o(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(a(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(a(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(a(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(a(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var r=t[e];r.length;)c[e]="A",s&&(h[e]="A"),t.splice(e++,0,["C"].concat(r.splice(0,6)));t.splice(e,1),d=Math.max(n.length,s&&s.length||0)}},y=function(t,e,r,i,a){t&&e&&"M"===t[a][0]&&"M"!==e[a][0]&&(e.splice(a,0,["M",i.x,i.y]),r.bx=0,r.by=0,r.x=t[a][1],r.y=t[a][2],d=Math.max(n.length,s&&s.length||0))};d=Math.max(n.length,s&&s.length||0);for(var m=0;d>m;m++){n[m]&&(f=n[m][0]),"C"!==f&&(c[m]=f,m&&(p=c[m-1])),n[m]=g(n[m],u,p),"A"!==c[m]&&"C"===f&&(c[m]="C"),v(n,m),s&&(s[m]&&(f=s[m][0]),"C"!==f&&(h[m]=f,m&&(p=h[m-1])),s[m]=g(s[m],l,p),"A"!==h[m]&&"C"===f&&(h[m]="C"),v(s,m)),y(n,s,u,l,m),y(s,n,l,u,m);var x=n[m],b=s&&s[m],_=x.length,w=s&&b.length;u.x=x[_-2],u.y=x[_-1],u.bx=parseFloat(x[_-4])||u.x,u.by=parseFloat(x[_-3])||u.y,l.bx=s&&(parseFloat(b[w-4])||l.x),l.by=s&&(parseFloat(b[w-3])||l.y),l.x=s&&b[w-2],l.y=s&&b[w-1]}return s?[n,s]:n}},function(t,e,n){var r=n(216);t.exports=function(t,e,n,i,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,i-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-i],["a",a,a,0,0,1,a,-a],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=r,o}},function(t,e,n){var r=n(44);t.exports=function(t){return r(t).toLowerCase()}},function(t,e,n){var r=n(44);t.exports=function(t){var e=r(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){var r=n(44);t.exports=function(t){return r(t).toUpperCase()}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).replace(/^\[object /,"").replace(/\]$/,"")}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Date")}},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,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={COORD_FUNC_PROPS:["rotate","scale","reflect","transpose"],GEOM_FUNC_PROPS:["position","color","size","shape","opacity","tooltip","style","animate","active","select","sets"]}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){return[{prop:"onMouseEnter",event:"mouseenter"},{prop:"onMouseMove",event:"mousemove"},{prop:"onMouseLeave",event:"mouseleave"},{prop:"onClick",event:"click"},{prop:"onDblClick",event:"dblclick"},{prop:"onMouseDown",event:"mousedown"},{prop:"onMouseUp",event:"mouseup"},{prop:"onTouchStart",event:"touchstart"},{prop:"onTouchMove",event:"touchmove"},{prop:"onTouchEnd",event:"touchend"}]}function a(t){var e=i();return g.default.map(e,function(e){return e.event=t+":"+e.event,e}),e}function o(t){var e=arguments[2];g.default.each(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},function(n){var r=n.prop,i=n.event,a=e[r];if(g.default.isFunction(a))t.on(i,a);else if(g.default.isObject(a))for(var o in a)void 0!==a[o]&&t.on(o+":"+i,a[o])})}function s(t,e){o(t,A,e)}function u(t){var e=arguments[2],n=arguments[3];g.default.each(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},function(r){var i=r.prop,a=r.event,o=e[i],s=n[i],u=void 0;if(!g.default.shallowEqual(o,s))if(g.default.isFunction(o)&&g.default.isFunction(s))t.off(a,o),t.on(a,s);else if(g.default.isObject(o)&&g.default.isObject(s)){for(u in o)Object.prototype.hasOwnProperty.call(o,u)&&t.off(u+":"+a,o[u]);for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&t.on(u+":"+a,s[u])}})}function l(t,e,n){u(t,A,e,n)}function c(t){var e=arguments[2];g.default.each(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},function(n){var r=n.prop,i=n.event,a=e[r];if(g.default.isFunction(a))t.off(i,a);else if(g.default.isObject(a))for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&t.off(o+":"+i,a[o])})}function h(t,e){c(t,A,e)}Object.defineProperty(e,"__esModule",{value:!0});for(var f=n(31),p=r(f),d=n(70),g=r(d),v=[{prop:"onPlotMove",event:"plotmove"},{prop:"onPlotEnter",event:"plotenter"},{prop:"onPlotLeave",event:"plotleave"},{prop:"onPlotClick",event:"plotclick"},{prop:"onPlotDblClick",event:"plotdblclick"},{prop:"onItemSelected",event:"itemselected"},{prop:"onItemUnselected",event:"itemunselected"},{prop:"onItemSelectedChange",event:"itemselectedchange"},{prop:"onTooltipChange",event:"tooltip:change"},{prop:"onTooltipShow",event:"tooltip:show"},{prop:"onTooltipHide",event:"tooltip:hide"}],y=["mouseenter","mousemove","mouseleave","click","dblclick","mousedown","mouseup","touchstart","touchmove","touchend"],m=["Mouseenter","Mousemove","Mouseleave","Click","Dblclick","Mousedown","Mouseup","Touchstart","Touchmove","Touchend"],x=["point","area","line","path","interval","schema","polygon","edge","axis-title","axis-label","axis-ticks","axis-line","axis-grid","legend-title","legend-item","legend-marker","legend-text","guide-text","guide-region","guide-line","guide-image","label"],b=["onPoint","onArea","onLine","onPath","onInterval","onSchema","onPolygon","onEdge","onAxisTitle","onAxisLabel","onAxisTicks","onAxisLine","onAxisGrid","onLegendTitle","onLegendItem","onLegendMarker","onLegendText","onGuideText","onGuideRegion","onGuideLine","onGuideImage","onLabel"],_=[],w=0;22>w;w+=1)for(var M=0;10>M;M+=1)_.push({prop:""+b[w]+m[M],event:x[w]+":"+y[M]});var S=v.concat(_),A=i();e.default={baseEventObjectTypes:{onMouseEnter:p.default.object,onMouseMove:p.default.object,onMouseLeave:p.default.object,onClick:p.default.oneOfType([p.default.object,p.default.func]),onDblClick:p.default.object,onMouseDown:p.default.object,onMouseUp:p.default.object,onTouchStart:p.default.object,onTouchMove:p.default.object,onTouchEnd:p.default.object},baseEventFuncTypes:{onMouseEnter:p.default.func,onMouseMove:p.default.func,onMouseLeave:p.default.func,onClick:p.default.func,onDblClick:p.default.func,onMouseDown:p.default.func,onMouseUp:p.default.func,onTouchStart:p.default.func,onTouchMove:p.default.func,onTouchEnd:p.default.func},genBaseEvents:i,genItemBaseEvents:a,bindEvents:o,bindBaseEvents:s,updateEvents:u,updateBaseEvents:l,unbindEvents:c,unbindBaseEvents:h,chartEvents:S}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);t.length>e;e++)n[e]=t[e];return n}return Array.from(t)}function a(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=n(50),u=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}(s),l=n(118),c=n(227),h=r(c),f=n(228),p=r(f),d=n(117),g=r(d),v=h.default.COORD_FUNC_PROPS,y=h.default.GEOM_FUNC_PROPS;e.default={createChart:function(t){var e=t.chart,n=e.props.forceFit;e.props.forceFit=!1;var r=new u.Chart(e.props);return e.props.afterChartInitialized&&e.props.afterChartInitialized(r),n&&r.forceFit(),e.g2Instance=r,r},executeChartConfig:function(t,e){var n=e.chart,r=n.props;t.coord("rect",{}),t.source(r.data,r.scale),(e.facet||r.axis)&&e.facet&&!1!==r.axis||t.axis(!1),t.legend(!1),t.tooltip(!1),r.filter&&r.filter.forEach(function(e){t.filter(e[0],e[1])}),p.default.bindEvents(t,p.default.chartEvents,r),p.default.bindBaseEvents(t,r)},coord:function(t,e){var n=e.coord;if(n&&!n.g2Instance){var r=n.props,o=r.type,s=a(r,["type"]),u=t.coord(o||"rect",l.Util.without(s,v));l.Prop.init(v,s,function(t,e){"reflect"===e?l.Util.each(t,function(t){return u[e](t)}):"transpose"===e?!0===t[0]&&u[e].apply(u,i(t)):u[e].apply(u,i(t))}),n.g2Instance=u}},createLabel:function(t,e){if(e&&!e.g2Instance){var n=e.props,r=n.content,i=a(n,["content"]);r&&(e.g2Instance=l.Util.isArray(r)?t.label(r[0],r[1],i):t.label(r,i))}},createGeom:function(t,e){if(e.g2Instance)return void(e.label&&this.createLabel(e.g2Instance,e.label));var n=e.props,r=t[n.type||"interval"]();n.adjust&&r.adjust(n.adjust),l.Prop.init(y,n,function(t,e){r[e].apply(r,i(t))}),e.g2Instance=r,this.createLabel(r,e.label)},geoms:function(t,e){var n=e.geoms;if(n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&this.createGeom(t,n[r])},legends:function(t,e){var n=e.legends;for(var r in n)if(n[r]){var o=n[r];if(o.g2Instance)return;var s=o.props,u=s.name,l=s.visible,c=a(s,["name","visible"]),h=l;Object.prototype.hasOwnProperty.call(o.props,"visible")||(h=!0);var f=h?c:h;o.g2Instance=t.legend.apply(t,i(u?[u,f]:[f]))}},tooltip:function(t,e){var n=e.tooltip;n&&!n.g2Instance&&(n.g2Instance=t.tooltip(o({},n.props)))},createAxis:function(t,e){if(!e.g2Instance){var n=e.props,r=n.name,i=n.visible,o=a(n,["name","visible"]);e.g2Instance=i||!Object.prototype.hasOwnProperty.call(e.props,"visible")?t.axis(r,o):t.axis(r,!1)}},axises:function(t,e){var n=e.axises;for(var r in n)n[r]&&this.createAxis(t,n[r])},views:function(t,e){var n=e.views;for(var r in n)n[r]&&this.createView(t,n[r])},createView:function(t,e){if("Facet"!==e.parentInfo.name){if(e.g2Instance)return e.filter&&e.filter.forEach(function(t){e.g2Instance.filter(t[0],t[1])}),this.coord(e.g2Instance,e),this.axises(e.g2Instance,e),this.geoms(e.g2Instance,e),void this.guide(e.g2Instance,e.guide);var n=e.props,r=n.scale,i=n.data,s=n.instance,u=n.axis,l=n.filter,c=a(n,["scale","data","instance","axis","filter","geoms"]),h=void 0;h=s||t.view(o({},c)),i&&h.source(i,r),r&&h.scale(r),l&&l.forEach(function(t){h.filter(t[0],t[1])}),!0===u||s||h.axis(!1),e.g2Instance=h,this.coord(h,e),this.axises(h,e),this.geoms(h,e),this.guide(h,e.guide)}},facetView:function(t,e){var n=e.props,r=n.scale,i=n.data,o=n.axis;a(n,["scale","data","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!1===o&&t.axis(!1),this.coord(t,e),this.axises(t,e),this.geoms(t,e),this.guide(t,e.guide),g.default.mergeView(e,!0)},guide:function(t,e){if(e){var n=e.elements;for(var r in n)if(n[r]){var i=n[r];if(!i.g2Instance){var o=i.props,s=a(o,["type"]);i.g2Instance=t.guide()[i.type](s)}}}},facet:function(t,e){var n=this,r=e.facet;if(r&&!r.g2Instance){var i=r.props,o=i.children,s=i.type,u=a(i,["children","type"]);if(!o)return void t.facet(s,u);var l=e.views,c=null;for(var h in l)if(l[h]&&"Facet"===l[h].parentInfo.name&&l[h].parentInfo.id===r.id){c=l[h];break}c&&(g.default.mergeView(c,!0),u.eachView=function(t){n.facetView(t,c)},t.facet(s,u))}},synchronizeG2Add:function(t,e){this.coord(t,e),this.axises(t,e),this.legends(t,e),this.tooltip(t,e),this.geoms(t,e),this.facet(t,e),this.views(t,e),this.guide(t,e.guide)},synchronizeG2Views:function(t,e){var n=e.views;for(var r in n)n[r]&&this.synchronizeG2View(n[r].g2Instance,n[r])},synchronizeG2View:function(t,e){t.clear(),this.clearViewG2Instance(e);var n=e.props,r=n.scale,i=n.data,o=n.instance,s=n.axis;a(n,["scale","data","instance","axis","geoms"]);i&&t.source(i,r),r&&t.scale(r),!0===s||o||t.axis(!1),this.coord(t,e),this.axises(t,e),this.geoms(t,e),this.guide(t,e.guide)},clearViewG2Instance:function(t){t.coord&&delete t.coord.g2Instance,t.axises&&Object.keys(t.axises).forEach(function(e){delete t.axises[e].g2Instance}),t.geoms&&Object.keys(t.geoms).forEach(function(e){delete t.geoms[e].g2Instance,t.geoms[e].label&&delete t.geoms[e].label.g2Instance}),t.guide&&t.guide.elements&&Object.keys(t.guide.elements).forEach(function(e){delete t.guide.elements[e].g2Instance})}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";function r(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(123);n.d(e,"interpolate",function(){return r.a});var i=n(233);n.d(e,"interpolateArray",function(){return i.a});var a=n(122);n.d(e,"interpolateBasis",function(){return a.a});var o=n(234);n.d(e,"interpolateBasisClosed",function(){return o.a});var s=n(236);n.d(e,"interpolateDate",function(){return s.a});var u=n(71);n.d(e,"interpolateNumber",function(){return u.a});var l=n(237);n.d(e,"interpolateObject",function(){return l.a});var c=n(511);n.d(e,"interpolateRound",function(){return c.a});var h=n(239);n.d(e,"interpolateString",function(){return h.a});var f=n(513);n.d(e,"interpolateTransformCss",function(){return f.a}),n.d(e,"interpolateTransformSvg",function(){return f.b});var p=n(515);n.d(e,"interpolateZoom",function(){return p.a});var d=n(238);n.d(e,"interpolateRgb",function(){return d.a}),n.d(e,"interpolateRgbBasis",function(){return d.b}),n.d(e,"interpolateRgbBasisClosed",function(){return d.c});var g=n(508);n.d(e,"interpolateHsl",function(){return g.a}),n.d(e,"interpolateHslLong",function(){return g.b});var v=n(509);n.d(e,"interpolateLab",function(){return v.a});var y=n(507);n.d(e,"interpolateHcl",function(){return y.a}),n.d(e,"interpolateHclLong",function(){return y.b});var m=n(506);n.d(e,"interpolateCubehelix",function(){return m.a}),n.d(e,"interpolateCubehelixLong",function(){return m.b});var x=n(510);n.d(e,"quantize",function(){return x.a})},function(t,e,n){"use strict";var r=n(123);e.a=function(t,e){var i,a=e?e.length:0,o=t?Math.min(a,t.length):0,s=Array(o),u=Array(a);for(i=0;o>i;++i)s[i]=n.i(r.a)(t[i],e[i]);for(;a>i;++i)u[i]=e[i];return function(t){for(i=0;o>i;++i)u[i]=s[i](t);return u}}},function(t,e,n){"use strict";var r=n(122);e.a=function(t){var e=t.length;return function(i){var a=Math.floor((0>(i%=1)?++i:i)*e),o=t[(a+e-1)%e],s=t[a%e],u=t[(a+1)%e],l=t[(a+2)%e];return n.i(r.b)((i-a/e)*e,o,s,u,l)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}}},function(t,e,n){"use strict";var r=n(123);e.a=function(t,e){var i,a={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(i in e)i in t?a[i]=n.i(r.a)(t[i],e[i]):o[i]=e[i];return function(t){for(i in a)o[i]=a[i](t);return o}}},function(t,e,n){"use strict";function r(t){return function(e){var r,a,o=e.length,s=Array(o),u=Array(o),l=Array(o);for(r=0;o>r;++r)a=n.i(i.e)(e[r]),s[r]=a.r||0,u[r]=a.g||0,l[r]=a.b||0;return s=t(s),u=t(u),l=t(l),a.opacity=1,function(t){return a.r=s(t),a.g=u(t),a.b=l(t),a+""}}}n.d(e,"b",function(){return u}),n.d(e,"c",function(){return l});var i=n(16),a=n(122),o=n(234),s=n(46);e.a=function t(e){function r(t,e){var r=a((t=n.i(i.e)(t)).r,(e=n.i(i.e)(e)).r),o=a(t.g,e.g),u=a(t.b,e.b),l=n.i(s.a)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=u(e),t.opacity=l(e),t+""}}var a=n.i(s.c)(e);return r.gamma=t,r}(1);var u=r(a.a),l=r(o.a)},function(t,e,n){"use strict";function r(t){return function(){return t}}function i(t){return function(e){return t(e)+""}}var a=n(71),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s=RegExp(o.source,"g");e.a=function(t,e){var u,l,c,h=o.lastIndex=s.lastIndex=0,f=-1,p=[],d=[];for(t+="",e+="";(u=o.exec(t))&&(l=s.exec(e));)(c=l.index)>h&&(c=e.slice(h,c),p[f]?p[f]+=c:p[++f]=c),(u=u[0])===(l=l[0])?p[f]?p[f]+=l:p[++f]=l:(p[++f]=null,d.push({i:f,x:n.i(a.a)(u,l)})),h=s.lastIndex;return e.length>h&&(c=e.slice(h),p[f]?p[f]+=c:p[++f]=c),2>p.length?d[0]?i(d[0].x):r(e):(e=d.length,function(t){for(var n,r=0;e>r;++r)p[(n=d[r]).i]=n.x(t);return p.join("")})}},function(t,e,n){"use strict";function r(t,e){var r,a=e?e.length:0,o=t?Math.min(a,t.length):0,s=Array(o),u=Array(a);for(r=0;o>r;++r)s[r]=n.i(i.a)(t[r],e[r]);for(;a>r;++r)u[r]=e[r];return function(t){for(r=0;o>r;++r)u[r]=s[r](t);return u}}e.a=r;var i=n(127);n(126)},function(t,e,n){"use strict";var r=n(124);e.a=function(t){var e=t.length;return function(i){var a=Math.floor((0>(i%=1)?++i:i)*e),o=t[(a+e-1)%e],s=t[a%e],u=t[(a+1)%e],l=t[(a+2)%e];return n.i(r.b)((i-a/e)*e,o,s,u,l)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";var r=n(127);e.a=function(t,e){var i,a={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(i in e)i in t?a[i]=n.i(r.a)(t[i],e[i]):o[i]=e[i];return function(t){for(i in a)o[i]=a[i](t);return o}}},function(t,e,n){"use strict";function r(t){return function(e){var r,a,o=e.length,s=Array(o),u=Array(o),l=Array(o);for(r=0;o>r;++r)a=n.i(i.e)(e[r]),s[r]=a.r||0,u[r]=a.g||0,l[r]=a.b||0;return s=t(s),u=t(u),l=t(l),a.opacity=1,function(t){return a.r=s(t),a.g=u(t),a.b=l(t),a+""}}}var i=n(16),a=n(124),o=n(241),s=n(34);e.a=function t(e){function r(t,e){var r=a((t=n.i(i.e)(t)).r,(e=n.i(i.e)(e)).r),o=a(t.g,e.g),u=a(t.b,e.b),l=n.i(s.a)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=u(e),t.opacity=l(e),t+""}}var a=n.i(s.c)(e);return r.gamma=t,r}(1);r(a.a),r(o.a)},function(t,e,n){"use strict";function r(t){return function(){return t}}function i(t){return function(e){return t(e)+""}}var a=n(72),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s=RegExp(o.source,"g");e.a=function(t,e){var u,l,c,h=o.lastIndex=s.lastIndex=0,f=-1,p=[],d=[];for(t+="",e+="";(u=o.exec(t))&&(l=s.exec(e));)(c=l.index)>h&&(c=e.slice(h,c),p[f]?p[f]+=c:p[++f]=c),(u=u[0])===(l=l[0])?p[f]?p[f]+=l:p[++f]=l:(p[++f]=null,d.push({i:f,x:n.i(a.a)(u,l)})),h=s.lastIndex;return e.length>h&&(c=e.slice(h),p[f]?p[f]+=c:p[++f]=c),2>p.length?d[0]?i(d[0].x):r(e):(e=d.length,function(t){for(var n,r=0;e>r;++r)p[(n=d[r]).i]=n.x(t);return p.join("")})}},function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";var r=n(20);e.a=function(t){return"string"==typeof t?new r.b([[document.querySelector(t)]],[document.documentElement]):new r.b([[t]],r.c)}},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.b=r;var i=n(250),a=n(20);e.a=function(){return new a.b(this._enter||this._groups.map(i.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return Array(t.length)}},function(t,e,n){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function i(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function o(t,e){return t.style.getPropertyValue(e)||n.i(s.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=o;var s=n(133);e.b=function(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?a:i)(t,e,null==n?"":n)):o(this.node(),t)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=n(17);e.a=function(t,e){var n,i,a,o=t.__transition,s=!0;if(o){e=null==e?null:e+"";for(a in o)(n=o[a]).name===e?(i=n.state>r.a&&r.b>n.state,n.state=r.c,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[a]):s=!1;s&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(16),i=n(125);e.a=function(t,e){var a;return("number"==typeof e?i.b:e instanceof r.f?i.c:(a=n.i(r.f)(e))?(e=a,i.c):i.d)(t,e)}},function(t,e,n){var r;!function(i){"use strict";function a(t,e){for(var n=[],r=0,i=t.length;i>r;r++)n.push(t[r].substr(0,e));return n}function o(t){return function(e,n,r){var i=r[t].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(e.month=i)}}function s(t,e){for(t+="",e=e||2;e>t.length;)t="0"+t;return t}var u={},l=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,c=/\d\d?/,h=/\d{3}/,f=/\d{4}/,p=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,d=/\[([^]*?)\]/gm,g=function(){},v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=a(y,3),x=a(v,3);u.i18n={dayNamesShort:x,dayNames:v,monthNamesShort:m,monthNames:y,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10)*t%10]}};var b={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(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 12>t.getHours()?e.amPm[0]:e.amPm[1]},A:function(t,e){return 12>t.getHours()?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)}},_={D:[c,function(t,e){t.day=e}],Do:[RegExp(c.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[c,function(t,e){t.month=e-1}],YY:[c,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[c,function(t,e){t.hour=e}],m:[c,function(t,e){t.minute=e}],s:[c,function(t,e){t.second=e}],YYYY:[f,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:[h,function(t,e){t.millisecond=e}],d:[c,g],ddd:[p,g],MMM:[p,o("monthNamesShort")],MMMM:[p,o("monthNames")],a:[p,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.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 r=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date in fecha.format");e=u.masks[e]||e||u.masks.default;var i=[];return e=e.replace(d,function(t,e){return i.push(e),"??"}),e=e.replace(l,function(e){return e in b?b[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return i.shift()})},u.parse=function(t,e,n){var r=n||u.i18n;if("string"!=typeof e)throw Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var i=!0,a={};if(e.replace(l,function(e){if(_[e]){var n=_[e],o=t.search(n[0]);~o?t.replace(n[0],function(e){return n[1](a,e,r),t=t.substr(o+e.length),e}):i=!1}return _[e]?"":e.slice(1,e.length-1)}),!i)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!==(r=function(){return u}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(35),a=n(3),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.marginRatio=.5,this.dodgeRatio=.5,this.adjustNames=["x","y"]},n.getDodgeOffset=function(t,e,n){var r=this,i=t.pre,a=t.next,o=a-i,s=o*r.dodgeRatio/n,u=r.marginRatio*s;return(i+a)/2+(.5*(o-n*s-(n-1)*u)+((e+1)*s+e*u)-.5*s-.5*o)},n.processAdjust=function(t){var e=this,n=t.length,r=e.xField;a(t,function(t,i){for(var a=0,o=t.length;o>a;a++){var s=t[a],u=s[r],l={pre:1===o?u-1:u-.5,next:1===o?u+1:u+.5},c=e.getDodgeOffset(l,i,n);s[r]=c}})},e}(i);i.Dodge=o,t.exports=o},function(t,e,n){var r=n(10),i=n(35),a=n(257),o=n(262),s=n(136),u=n(260),l=n(261);r(i.prototype,s),r(a.prototype,s,u),r(o.prototype,l),i.Jitter=n(259),i.Symmetric=n(263),i.Dodge=a,i.Stack=o,t.exports=i},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(3),a=n(10),o={merge:n(64)},s=n(35),u=n(136),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.adjustNames=["x","y"],this.groupFields=null},n.processAdjust=function(t){var e=this,n=o.merge(t);e.adjDataArray=t,e.mergeData=n,e.adjustData(t,n),e.adjFrames=null,e.mergeData=null},n.getAdjustOffset=function(t,e){var n=Math.random(),r=e-t;return t+.05*r+.9*r*n},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}(s);a(l.prototype,u),s.Jitter=l,t.exports=l},function(t,e,n){var r={merge:n(64),values:n(99)},i=n(207),a=n(3);t.exports={processAdjust:function(t){var e=this,n=r.merge(t),a=e.dodgeBy,o=t;a&&(o=i(n,a)),e.cacheMap={},e.adjDataArray=o,e.mergeData=n,e.adjustData(o,n),e.adjDataArray=null,e.mergeData=null},getDistribution:function(t){var e=this,n=e.adjDataArray,i=e.cacheMap,o=i[t];return o||(o={},a(n,function(e,n){var i=r.values(e,t);i.length||i.push(0),a(i,function(t){o[t]||(o[t]=[]),o[t].push(n)})}),i[t]=o),o},adjustDim:function(t,e,n,r,i){var o=this,s=o.getDistribution(t),u=o.groupData(n,t);a(u,function(n,r){r=parseFloat(r);var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,r,e),a(n,function(e){var n=e[t],r=s[n],a=r.indexOf(i);e[t]=o.getDodgeOffset(u,a,r.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,n=e.xField,r=e.yField||"y",i=e.height,a={};e.reverseOrder&&(t=t.slice(0).reverse());for(var o=0,s=t.length;s>o;o++)for(var u=t[o],l=0,c=u.length;c>l;l++){var h=u[l],f=h.size||e.size,p=2*f/i,d=h[n];a[d]||(a[d]=p/2),h[r]=a[d],a[d]+=p}},processAdjust:function(t){this.yField?this.processStack(t):this.processOneDimStack(t)}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(5),a=n(7),o=n(35),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null},n.processAdjust=function(t){this.processStack(t)},n.processStack=function(t){var e=this,n=e.xField,r=e.yField,o=t.length,s={positive:{},negative:{}};e.reverseOrder&&(t=t.slice(0).reverse());for(var u=0;o>u;u++)for(var l=t[u],c=0,h=l.length;h>c;c++){var f=l[c],p=f[n]||0,d=f[r],g=""+p;if(d=i(d)?d[1]:d,!a(d)){var v=0>d?"negative":"positive";s[v][g]||(s[v][g]=0),f[r]=[s[v][g],d+s[v][g]],s[v][g]+=d}}},e}(o);o.Stack=s,t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(3),a=n(209),o=n(5),s={merge:n(64)},u=n(35),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){this.xField=null,this.yField=null,this.cacheMax=null,this.adjustNames=["y"],this.groupFields=null},n._getMax=function(t){var e=this,n=e.mergeData,r=a(n,function(e){var n=e[t];return o(n)?Math.max.apply(null,n):n}),i=r[t];return o(i)?Math.max.apply(null,i):i},n._getXValuesMax=function(){var t=this,e=t.yField,n=t.xField,r={};return i(t.mergeData,function(t){var i=t[n],a=t[e],s=o(a)?Math.max.apply(null,a):a;r[i]=r[i]||0,s>r[i]&&(r[i]=s)}),r},n.processAdjust=function(t){var e=this;e.mergeData=s.merge(t),e._processSymmetric(t),e.mergeData=null},n._processSymmetric=function(t){var e,n=this,r=n.xField,a=n.yField,s=n._getMax(a),u=t[0][0];u&&o(u[a])&&(e=n._getXValuesMax()),i(t,function(t){i(t,function(t){var n,u=t[a];if(o(u)){n=(s-e[t[r]])/2;var l=[];i(u,function(t){l.push(n+t)}),t[a]=l}else n=(s-u)/2,t[a]=[n,u+n]})})},e}(u);u.Symmetric=l,t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(15),a=n(137),o=n(36);t.exports=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}return r(e,t),e.prototype.getLinearValue=function(t){var e=this.gradient;return e||(e=a.gradient(this.values),this.gradient=e),e(t)},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(36);t.exports=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 r(e,t),e}(i)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(7),a=n(5),o=n(3),s=n(36);t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["x","y"],n.type="position",n}return r(e,t),e.prototype.mapping=function(t,e){var n,r,s,u=this.scales,l=this.coord,c=u[0],h=u[1];if(i(t)||i(e))return[];if(a(e)&&a(t)){n=[],r=[];for(var f=0,p=0,d=t.length,g=e.length;d>f&&g>p;f++,p++)s=l.convertPoint({x:c.scale(t[f]),y:h.scale(e[p])}),n.push(s.x),r.push(s.y)}else if(a(e))t=c.scale(t),r=[],o(e,function(e){e=h.scale(e),s=l.convertPoint({x:t,y:e}),n&&n!==s.x?(a(n)||(n=[n]),n.push(s.x)):n=s.x,r.push(s.y)});else if(a(t))e=h.scale(e),n=[],o(t,function(t){t=c.scale(t),s=l.convertPoint({x:t,y:e}),r&&r!==s.y?(a(r)||(r=[r]),r.push(s.y)):r=s.y,n.push(s.x)});else{t=c.scale(t),e=h.scale(e);var v=l.convertPoint({x:t,y:e});n=v.x,r=v.y}return[n,r]},e}(s)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(36);t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["shape"],n.type="shape",n.gradient=null,n}return r(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(i)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(36);t.exports=function(t){function e(e){var n;return n=t.call(this,e)||this,n.names=["size"],n.type="size",n.gradient=null,n}return r(e,t),e}(i)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(37),s=a.MatrixUtil.vec2;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.get("center");return e=e||n.get("radius"),{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}},n.getTickPoint=function(t){var e=this,n=e.get("startAngle");return e._getCirclePoint(n+(e.get("endAngle")-n)*t)},n.getSideVector=function(t,e){var n=this,r=n.get("center"),i=[e.x-r.x,e.y-r.y];if(!a.isNil(t)){var o=s.length(i);s.scale(i,i,t/o)}return i},n.getSidePoint=function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},n.getTickEnd=function(t,e){var n=this,r=n.get("tickLine");return e=e||r.length,n.getSidePoint(t,e)},n.getTextAnchor=function(t){var e;return a.snapEqual(t[0],0)?e="center":t[0]>0?e="left":0>t[0]&&(e="right"),e},n.getLinePath=function(){var t=this,e=t.get("center"),n=e.x,r=e.y,i=t.get("radius"),a=i,o=t.get("startAngle"),s=t.get("endAngle"),u=t.get("inner"),l=[];if(Math.abs(s-o)===2*Math.PI)l=[["M",n,r],["m",0,-a],["a",i,a,0,1,1,0,2*a],["a",i,a,0,1,1,0,-2*a],["z"]];else{var c=t._getCirclePoint(o),h=t._getCirclePoint(s),f=Math.abs(s-o)>Math.PI?1:0,p=o>s?0:1;if(u){var d=t.getSideVector(u*i,c),g=t.getSideVector(u*i,h),v={x:d[0]+n,y:d[1]+r},y={x:g[0]+n,y:g[1]+r};l=[["M",v.x,v.y],["L",c.x,c.y],["A",i,a,0,f,p,h.x,h.y],["L",y.x,y.y],["A",i*u,a*u,0,f,Math.abs(p-1),v.x,v.y]]}else l=[["M",n,r],["L",c.x,c.y],["A",i,a,0,f,p,h.x,h.y],["L",n,r]]}return l},n.addLabel=function(e,n,r){var i=this;n=i.getSidePoint(n,i.get("label").offset||i.get("_labelOffset")||.001),t.prototype.addLabel.call(this,e,n,r)},n.autoRotateLabels=function(){var t=this,e=t.get("ticks"),n=t.get("labelRenderer");if(n&&e.length>12){var r=t.get("radius"),i=t.get("startAngle"),o=t.get("endAngle"),s=o-i,u=s/(e.length-1),l=Math.sin(u/2)*r*2,c=t.getMaxLabelWidth(n);a.each(n.get("group").get("children"),function(t,n){var r=e[n],a=r.value*s+i,o=a%(2*Math.PI);l>c?(o>0||(a+=Math.PI),o>Math.PI&&(a-=Math.PI),a-=Math.PI/2,t.attr("textAlign","center")):o>Math.PI/2?a-=Math.PI:oi.y||!n&&i.x>a.x)&&(c=!0);var h=u.vertical([],l,c);return u.scale([],h,t*r)},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,e=t.get("start"),n=t.get("end"),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,n.y]),r},n.getTickEnd=function(t,e){var n=this,r=n.getSideVector(e);return{x:t.x+r[0],y:t.y+r[1]}},n.getTickPoint=function(t){var e=this,n=e.get("start"),r=e.get("end");return{x:n.x+(r.x-n.x)*t,y:n.y+(r.y-n.y)*t}},n.renderTitle=function(){var t=this,e=t.get("title"),n=t.getTickPoint(.5),r=e.offset;if(o.isNil(r)){r=20;var i=t.get("labelsGroup");if(i){r+=t.getMaxLabelWidth(i)+(t.get("label").offset||t.get("_labelOffset"))}}var a=e.textStyle,s=o.mix({},a);if(e.text){var l=t.getAxisVector();if(e.autoRotate&&o.isNil(a.rotate)){var c=0;if(!o.snapEqual(l[1],0)){c=u.angleTo([l[0],l[1]],[1,0],!0)}s.rotate=c*(180/Math.PI)}else o.isNil(a.rotate)||(s.rotate=a.rotate/180*Math.PI);var h,f=t.getSideVector(r),p=e.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:n.x+f[0],y:n.y+f[1]},s.x=h.x,s.y=h.y,s.text=e.text;var d=t.get("group"),g=d.addShape("Text",{zIndex:2,attrs:s});g.name="axis-title",t.get("appendInfo")&&g.setSilent("appendInfo",t.get("appendInfo"))}},n.autoRotateLabels=function(){var t=this,e=t.get("labelRenderer"),n=t.get("title");if(e){var r=e.get("group"),i=r.get("children"),a=t.get("label").offset,s=n?n.offset:48;if(0>s)return;var u,l,c=t.getAxisVector();if(o.snapEqual(c[0],0)&&n&&n.text)(l=t.getMaxLabelWidth(e))>s-a-12&&(u=-1*Math.acos((s-a-12)/l));else if(o.snapEqual(c[1],0)&&i.length>1){var h=Math.abs(t._getAvgLabelLength(e));l=t.getMaxLabelWidth(e),l>h&&(u=Math.asin(1.25*(s-a-12)/l))}if(u){var f=t.get("factor");o.each(i,function(t){t.rotateAtStart(u),o.snapEqual(c[1],0)&&(f>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},n.autoHideLabels=function(){var t,e,n=this,r=n.get("labelRenderer");if(r){var i=r.get("group"),a=i.get("children"),s=n.getAxisVector();if(2>a.length)return;if(o.snapEqual(s[0],0)){var u=n.getMaxLabelHeight(r)+8,l=Math.abs(n._getAvgLabelHeightSpace(r));u>l&&(t=u,e=l)}else if(o.snapEqual(s[1],0)&&a.length>1){var c=n.getMaxLabelWidth(r)+8,h=Math.abs(n._getAvgLabelLength(r));c>h&&(t=c,e=h)}if(t&&e){var f=Math.ceil(t/e);o.each(a,function(t,e){e%f!=0&&t.attr("text","")})}}},e}(a)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(37),s=a.MatrixUtil,u=a.PathUtil,l=s.vec2;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"polyline"})},n.getLinePath=function(){var t=this,e=t.get("tickPoints"),n=t.get("start"),r=t.get("end"),i=[];i.push(n.x),i.push(n.y),a.each(e,function(t){i.push(t.x),i.push(t.y)}),i.push(r.x),i.push(r.y);var o=u.catmullRomToBezier(i);return o.unshift(["M",n.x,n.y]),o},n.getTickPoint=function(t,e){return this.get("tickPoints")[e]},n.getTickEnd=function(t,e,n){var r=this,i=r.get("tickLine"),a=e||i.length,o=r.getSideVector(a,t,n);return{x:t.x+o[0],y:t.y+o[1]}},n.getSideVector=function(t,e,n){var r,i=this;if(0===n){if(r=i.get("start"),r.x===e.x&&r.y===e.y)return[0,0]}else{r=i.get("tickPoints")[n-1]}var a=[e.x-r.x,e.y-r.y],o=l.normalize([],a),s=l.vertical([],o,!1);return l.scale([],s,t)},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){var n,r=t.x-e.x,i=t.y-e.y;return 0===i?n=0>r?u/2:270*u/180:r>=0&&i>0?n=2*u-l(r/i):0>=r&&0>i?n=u-l(r/i):r>0&&0>i?n=u+l(-r/i):0>r&&i>0&&(n=l(r/-i)),n}var o=n(4),s=n(22),u=Math.PI,l=Math.atan;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{name:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start")),i=n.parsePoint(t,n.get("end"));if(r&&i){var s,l=t.getCenter(),c=Math.sqrt((r.x-l.x)*(r.x-l.x)+(r.y-l.y)*(r.y-l.y)),h=a(r,l),f=a(i,l);if(h>f&&(f+=2*u),o.isNumberEqual(r.x,i.x)&&o.isNumberEqual(r.y,i.y)&&(n.get("start")[0]!==n.get("end")[0]||n.get("start")[1]!==n.get("end")[1]))s=[["M",r.x,r.y],["A",c,c,0,1,1,2*l.x-r.x,2*l.y-r.y],["A",c,c,0,1,1,r.x,r.y]];else{s=[["M",r.x,r.y],["A",c,c,0,(f-h)%(2*u)>u?1:0,1,i.x,i.y]]}var p=e.addShape("path",{zIndex:n.get("zIndex"),attrs:o.mix({path:s},n.get("style"))});p.name="guide-arc",n.get("appendInfo")&&p.setSilent("appendInfo",n.get("appendInfo")),n.set("el",p)}},e}(s)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.parsePoint(t,n.get("position"));if(r){var i=e.addGroup();i.name="guide-data-marker";var a,o,s=n._getElementPosition(r),u=n.get("display");if(u.line){a=n._drawLine(s.line,i)}if(u.text&&n.get("content")){o=n._drawText(s.text,i)}if(u.point){n._drawPoint(s.point,i)}if(n.get("autoAdjust")){var l=i.getBBox(),c=l.minX,h=l.minY,f=l.maxX,p=l.maxY,d=t.start,g=t.end;if(o){c>d.x||o.attr("textAlign","start"),g.x>f||o.attr("textAlign","end");var v=n.get("direction");if("upward"===v&&g.y>=h||"upward"!==v&&p>=d.y){var y,m;"upward"!==v||h>g.y?(y="bottom",m=-1):(y="top",m=1),o.attr("textBaseline",y);var x=0;if(n.get("display").line){x=n.get("lineLength");a.attr("path",[["M",r.x,r.y],["L",r.x,r.y+x*m]])}o.attr("y",r.y+(x+2)*m)}}}n.get("appendInfo")&&i.setSilent("appendInfo",n.get("appendInfo")),n.set("el",i)}},n._getElementPosition=function(t){var e=this,n=t.x,r=t.y,i=e.get("display").line?e.get("lineLength"):0,a=e.get("direction");e.get("style").text.textBaseline="upward"===a?"bottom":"top";var o="upward"===a?-1:1;return{point:{x:n,y:r},line:[{x:n,y:r},{x:n,y:i*o+r}],text:{x:n,y:(i+2)*o+r}}},n._drawLine=function(t,e){var n=this,r=n.get("style").line;return e.addShape("path",{attrs:a.mix({path:[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y]]},r)})},n._drawText=function(t,e){var n=this,r=this.get("style").text;return e.addShape("text",{attrs:a.mix({text:n.get("content")},r,t)})},n._drawPoint=function(t,e){var n=this,r=n.get("style").point;return e.addShape("circle",{attrs:a.mix({},r,t)})},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(139),s=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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 r=this,i=r.get("lineLength")||0,o=r._getRegionData(t,n);if(o.length){var s=r._getBBox(o),u=[];u.push(["M",o[0].x,s.yMin-i]);for(var l=0,c=o.length;c>l;l++){u.push(["L",o[l].x,o[l].y])}u.push(["L",o[o.length-1].x,s.yMin-i]);var h=r.get("style"),f=h.region,p=h.text,d=e.addGroup();d.name="guide-data-region",d.addShape("path",{attrs:a.mix({path:u},f)});var g=r.get("content");g&&d.addShape("Text",{attrs:a.mix({x:(s.xMin+s.xMax)/2,y:s.yMin-i,text:g},p)}),r.get("appendInfo")&&d.setSilent("appendInfo",r.get("appendInfo")),r.set("el",d)}},n._getRegionData=function(t,e){for(var n,r=this,i=r.get("start"),s=r.get("end"),u=o.getFirstScale(r.get("xScales")).field,l=o.getFirstScale(r.get("yScales")).field,c=a.isArray(i)?i[0]:i[u],h=a.isArray(s)?s[0]:s[u],f=[],p=0,d=e.length;d>p;p++){var g=e[p];if(g[u]===c&&(n=p),p>=n){var v=r.parsePoint(t,[g[u],g[l]]);v&&f.push(v)}if(g[u]===h)break}return f},n._getBBox=function(t){for(var e=[],n=[],r=0;t.length>r;r++)e.push(t[r].x),n.push(t[r].y);var i=a.arrayUtil.getRange(e),o=a.arrayUtil.getRange(n);return{xMin:i.min,xMax:i.max,yMin:o.min,yMax:o.max}},e}(s)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=a.DomUtil,s=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.parsePoint(t,n.get("position"));if(r){var i=e.get("canvas").get("el").parentNode,s=o.createDom('
    ');i.appendChild(s);var u=n.get("htmlContent")||n.get("html");if(a.isFunction(u)){u=u(n.get("xScales"),n.get("yScales"))}var l=o.createDom(u);s.appendChild(l),o.modifyCSS(s,{position:"absolute"}),n._setDomPosition(s,l,r),n.set("el",s)}},n._setDomPosition=function(t,e,n){var r=this,i=r.get("alignX"),a=r.get("alignY"),s=o.getOuterWidth(e),u=o.getOuterHeight(e),l={x:n.x,y:n.y};"middle"===i&&"top"===a?l.x-=Math.round(s/2):"middle"===i&&"bottom"===a?(l.x-=Math.round(s/2),l.y-=Math.round(u)):"left"===i&&"bottom"===a?l.y-=Math.round(u):"left"===i&&"middle"===a?l.y-=Math.round(u/2):"left"===i&&"top"===a?(l.x=n.x,l.y=n.y):"right"===i&&"bottom"===a?(l.x-=Math.round(s),l.y-=Math.round(u)):"right"===i&&"middle"===a?(l.x-=Math.round(s),l.y-=Math.round(u/2)):"right"===i&&"top"===a?l.x-=Math.round(s):(l.x-=Math.round(s/2),l.y-=Math.round(u/2));var c=r.get("offsetX");c&&(l.x+=c);var h=r.get("offsetY");h&&(l.y+=h),o.modifyCSS(t,{top:Math.round(l.y)+"px",left:Math.round(l.x)+"px",visibility:"visible",zIndex:r.get("zIndex")})},n.clear=function(){var t=this,e=t.get("el");e&&e.parentNode&&e.parentNode.removeChild(e)},e}(s)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"image",start:null,end:null,src:null,offsetX:null,offsetY:null})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start"));if(r){var i={x:r.x,y:r.y};if(i.img=n.get("src"),n.get("end")){var a=n.parsePoint(t,n.get("end"));if(!a)return;i.width=a.x-r.x,i.height=a.y-r.y}else i.width=n.get("width")||32,i.height=n.get("height")||32;n.get("offsetX")&&(i.x+=n.get("offsetX")),n.get("offsetY")&&(i.y+=n.get("offsetY"));var o=e.addShape("Image",{zIndex:1,attrs:i});o.name="guide-image",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},e}(o)},function(t,e,n){t.exports={Guide:n(22),Arc:n(274),DataMarker:n(275),DataRegion:n(276),Html:n(277),Image:n(278),Line:n(280),Region:n(281),Text:n(282)}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(22),s=a.MatrixUtil.vec2,u=n(21),l=u.FONT_FAMILY;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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:l},content:null}})},n.render=function(t,e){var n=this,r=n.parsePoint(t,n.get("start")),i=n.parsePoint(t,n.get("end"));if(r&&i){var a=e.addGroup({viewId:e.get("viewId")});n._drawLines(r,i,a);var o=n.get("text");o&&o.content&&n._drawText(r,i,a),n.set("el",a)}},n._drawLines=function(t,e,n){var r=[["M",t.x,t.y],["L",e.x,e.y]],i=n.addShape("Path",{attrs:a.mix({path:r},this.get("lineStyle"))});i.name="guide-line",this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo"))},n._drawText=function(t,e,n){var r,i=this.get("text"),o=i.position,u=i.style||{};((r="start"===o?0:"center"===o?.5:a.isString(o)&&-1!==o.indexOf("%")?parseInt(o,10)/100:a.isNumber(o)?o:1)>1||0>r)&&(r=1);var l={x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r};if(i.offsetX&&(l.x+=i.offsetX),i.offsetY&&(l.y+=i.offsetY),l.text=i.content,l=a.mix({},l,u),i.autoRotate&&a.isNil(u.rotate)){l.rotate=s.angleTo([e.x-t.x,e.y-t.y],[1,0],1)}else a.isNil(u.rotate)||(l.rotate=u.rotate*Math.PI/180);var c=n.addShape("Text",{attrs:l});c.name="guide-line-text",this.get("appendInfo")&&c.setSilent("appendInfo",this.get("appendInfo"))},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.get("style"),i=n._getPath(t);if(i.length){var o=e.addShape("path",{zIndex:n.get("zIndex"),attrs:a.mix({path:i},r)});o.name="guide-region",n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")),n.set("el",o)}},n._getPath=function(t){var e=this,n=e.parsePoint(t,e.get("start")),r=e.parsePoint(t,e.get("end"));return n&&r?[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]]:[]},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(22);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r=n.parsePoint(t,n.get("position"));if(r){var i=a.mix({},n.get("style")),o=n.get("offsetX"),s=n.get("offsetY");o&&(r.x+=o),s&&(r.y+=s),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var u=e.addShape("Text",{zIndex:n.get("zIndex"),attrs:a.mix({text:n.get("content")},i,r)});u.name="guide-text",n.get("appendInfo")&&u.setSilent("appendInfo",n.get("appendInfo")),n.set("el",u)}},e}(o)},function(t,e,n){t.exports=n(140)},function(t,e){t.exports=function(t,e){for(var n,r,i=[],a=0;t.length>a;a++)n=t[a].getBBox(),r=e[a].getBBox(),n.width>r.width||n.height>r.height?i.push(t[a]):n.width*n.height>r.width*r.height&&i.push(t[a]);for(var o=0;i.length>o;o++)i[o].remove()}},function(t,e,n){function r(t,e,n,r){var i=t.getBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){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 i=n(141);t.exports=function(t){for(var e,n,a,o,s,u=new i,l=[],c=0;t.length>c;c++){n=t[c],a=n.attr("x"),o=n.attr("y"),s=!1;for(var h=0;8>h;h++)if(e=r(n,a,o,h),u.hasGap(e)){u.fillGap(e),s=!0;break}s||l.push(n)}for(var f=0;l.length>f;f++)l[f].remove();return s}},function(t,e,n){function r(t,e){var n,r=t.attr("x"),i=t.attr("y"),o=t.getBBox(),s=Math.sqrt(o.width*o.width+o.height*o.height),u=1,l=0,c=0;if(e.hasGap(o))return e.fillGap(o),!0;for(var h=!1,f=0;Math.min(Math.abs(l),Math.abs(c))f;)if(n=function(t){return[(t*=.1)*Math.cos(t),t*Math.sin(t)]}(u+=-1),l=~~n[0],c=~~n[1],t.attr({x:r+l,y:i+c}),f++,e.hasGap(t.getBBox())){e.fillGap(o),h=!0;break}return h}var i=n(141),a=20;t.exports=function(t){for(var e,n=new i,a=[],o=0;t.length>o;o++)e=t[o],r(e,n)||a.push(e);for(var s=0;a.length>s;s++)a[s].remove()}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){return t.getElementsByClassName(e)[0]}var o=n(4),s=n(143),u=n(21),l=u.FONT_FAMILY,c=o.DomUtil;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:"category-page-legend",container:null,caretStyle:{fill:"rgba(0,0,0,0.65)"},pageNumStyle:{display:"inline-block",fontSize:"12px",fontFamily:l,cursor:"default"},slipDomStyle:{width:"auto",height:"auto",position:"absolute"},slipTpl:'

    1

    /2

    ',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"),r=this.get("layout"),i="right"===n||"left"===n||"vertical"===r,s=i?"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 d=a(h,"cur-pagenum"),g=a(h,"next-pagenum"),v=this.get("pageNumStyle");if(c.modifyCSS(d,o.mix({},v,{paddingLeft:"10px"})),c.modifyCSS(g,o.mix({},v,{opacity:.3,paddingRight:"10px"})),c.modifyCSS(h,o.mix({},this.get("slipDomStyle"),i?{top:u+"px"}:{right:0,top:"50%",transform:"translate(0, -50%)"})),t.style.overflow=this.get("legendOverflow"),t.appendChild(h),!i){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,_=[],w=0;m.length>w;w++)m[w].style.display=s,x=m[w].offsetTop+m[w].offsetHeight,x>u&&(b++,_.forEach(function(t){t.style.display="none"}),_=[]),_.push(m[w]);g.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(d.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)",d.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;m.length>e&&(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(d.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)",d.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)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(78),o=a.ColorUtil,s=n(4),u=n(80);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.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;s.each(t,function(t){t.percentage=(t.value-e)/(n-e)})}},n._renderSliderShape=function(){this._setPercentage();var t,e=this.get("slider"),n=e.get("backgroundElement"),r=this.get("width"),i=this.get("height"),a=this.get("layout"),u=this.get("items"),l="";return"vertical"===a?(l+="l (90) ",s.each(u,function(e){t=o.toRGB(e.color),l+=1-e.percentage+":"+t+" "})):(l+="l (0) ",s.each(u,function(e){t=o.toRGB(e.color),l+=e.percentage+":"+t+" "})),this._addMiddleBar(n,"Rect",{x:0,y:0,width:r,height:i,fill:l,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,r=this.get("width"),i=this.get("height"),a=this.get("layout"),u=this.get("items"),l="",c=[],h=this.get("group"),f=h.addGroup(),p=u.length;if("vertical"===a){l+="l (90) ";for(var d=0;p>d;d+=1){if(0!==d&&d!==p-1&&(c.push(["M",0,i-u[d].percentage*i]),c.push(["L",r,i-u[d].percentage*i])),n=o.toRGB(u[d].color),l+=1-u[d].percentage+":"+n+" ",this.get("isSegment")&&d>0){l+=1-u[d].percentage+":"+o.toRGB(u[d-1].color)+" "}f.addShape("text",{attrs:s.mix({},{x:r+this.get("textOffset")/2,y:i-u[d].percentage*i,text:this._formatItemValue(u[d].value)+""},this.get("textStyle"),{textAlign:"start"})})}}else{l+="l (0) ";for(var g=0;p>g;g+=1){if(0!==g&&g!==p-1&&(c.push(["M",u[g].percentage*r,0]),c.push(["L",u[g].percentage*r,i])),n=o.toRGB(u[g].color),this.get("isSegment")&&g>0){l+=u[g].percentage+":"+o.toRGB(u[g-1].color)+" "}l+=u[g].percentage+":"+n+" ",f.addShape("text",{attrs:s.mix({},{x:u[g].percentage*r,y:i+5+this.get("textOffset"),text:this._formatItemValue(u[g].value)+""},this.get("textStyle"))})}}f.addShape("rect",{attrs:{x:0,y:0,width:r,height:i,fill:l,strokeOpacity:0}}),f.addShape("path",{attrs:s.mix({path:c},this.get("lineStyle"))}),f.move(0,e)},e}(u)},function(t,e,n){t.exports={Category:n(144),CatHtml:n(143),CatPageHtml:n(287),Color:n(288),Size:n(291),CircleSize:n(290)}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(80);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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"),e=t.get("backgroundElement"),n=this.get("layout"),r="vertical"===n?2:this.get("width"),i="vertical"===n?this.get("height"):2,o=this.get("height")/2,s=this.get("frontMiddleBarStyle");return this._addMiddleBar(e,"Polygon",a.mix({points:"vertical"===n?[[0,0],[r,0],[r,i],[0,i]]:[[0,o+i],[0,o-i],[5+r-4,o-i],[5+r-4,o+i]]},s))},n._addHorizontalTrigger=function(t,e,n,r){var i=this.get("slider"),o=i.get(t+"HandleElement"),s=-this.get("height")/2,u=o.addShape("circle",{attrs:a.mix({x:0,y:s,r:r},e)}),l=o.addShape("text",{attrs:a.mix(n,{x:0,y:s+r+10,textAlign:"center",textBaseline:"middle"})}),c=this.get("layout"),h="vertical"===c?"ns-resize":"ew-resize";u.attr("cursor",h),l.attr("cursor",h),this.set(t+"ButtonElement",u),this.set(t+"TextElement",l)},n._addVerticalTrigger=function(t,e,n,r){var i=this.get("slider"),o=i.get(t+"HandleElement"),s=o.addShape("circle",{attrs:a.mix({x:0,y:0,r:r},e)}),u=o.addShape("text",{attrs:a.mix(n,{x:r+10,y:0,textAlign:"start",textBaseline:"middle"})}),l=this.get("layout"),c="vertical"===l?"ns-resize":"ew-resize";s.attr("cursor",c),u.attr("cursor",c),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},n._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),i=this.get("triggerAttr"),o=a.mix({},i),s=a.mix({},i),u=a.mix({text:this._formatItemValue(t.value)+""},r),l=a.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,u,5),this._addVerticalTrigger("max",s,l,16)):(this._addHorizontalTrigger("min",o,u,5),this._addHorizontalTrigger("max",s,l,16))},n._bindEvents=function(){var t=this;if(this.get("slidable")){this.get("slider").on("sliderchange",function(e){var n=e.range,r=t.get("firstItem").value,i=t.get("lastItem").value,a=r+n[0]/100*(i-r),o=r+n[1]/100*(i-r);t._updateElement(a,o,5+n[0]/100*11,5+n[1]/100*11);var s=new Event("itemfilter",e,!0,!0);s.range=[a,o],t.emit("itemfilter",s)})}},n._updateElement=function(e,n,r,i){t.prototype._updateElement.call(this,e,n);var a=this.get("minTextElement"),o=this.get("maxTextElement"),s=this.get("minButtonElement"),u=this.get("maxButtonElement");if(s.attr("r",r),u.attr("r",i),"vertical"===this.get("layout"))a.attr("x",r+10),o.attr("x",i+10);else{var l=-this.get("height")/2;a.attr("y",l+r+10),o.attr("y",l+i+10)}},n._addCircle=function(t,e,n,r,i){var o=this.get("group"),s=o.addGroup(),u=this.get("_unslidableCircleStyle"),l=this.get("textStyle"),c=this.get("titleShape"),h=this.get("titleGap");c&&(h+=c.getBBox().height),s.addShape("circle",{attrs:a.mix({x:t,y:e+h,r:0===n?1:n},u)}),"vertical"===this.get("layout")?s.addShape("text",{attrs:a.mix({x:i+20+this.get("textOffset"),y:e+h,text:0===r?"0":r},l)}):s.addShape("text",{attrs:a.mix({x:t,y:e+h+i+13+this.get("textOffset"),text:0===r?"0":r},l)})},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 r=this._formatItemValue(t),i=this._formatItemValue(e),a=5>t?5:t,o=e>16?16:e;a>o&&(a=5,o=16),"vertical"===this.get("layout")?(this._addCircle(o,o,a,r,2*o),this._addCircle(o,2*o+16+a,o,i,2*o)):(this._addCircle(o,o,a,r,2*o),this._addCircle(2*o+16+a,o,o,i,2*o))},n.activate=function(e){this.get("slidable")&&t.prototype.activate.call(this,e)},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(80);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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"),e=t.get("backgroundElement"),n=this.get("layout"),r=this.get("width"),i=this.get("height"),o=this.get("height")/2,s=this.get("frontMiddleBarStyle");return this._addMiddleBar(e,"Polygon",a.mix({points:"vertical"===n?[[0,0],[r,0],[r,i],[r-4,i]]:[[0,o+i/2],[0,o+i/2-4],[r,o-i/2],[r,o+i/2]]},s))},n._renderUnslidable=function(){var t=this.get("layout"),e=this.get("width"),n=this.get("height"),r=this.get("frontMiddleBarStyle"),i="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:i},r)});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 r=this.get("group"),i=r.addGroup(),o=this.get("textStyle"),s=this.get("titleShape"),u=this.get("titleGap");s&&(u+=s.getBBox().height),"vertical"===this.get("layout")?i.addShape("text",{attrs:a.mix({x:t+this.get("textOffset"),y:e,text:0===n?"0":n},o)}):(e+=u+this.get("textOffset")-20,s||(e+=10),i.addShape("text",{attrs:a.mix({x:t,y:e,text:0===n?"0":n},o)}))},e}(o)},function(t,e,n){var r=n(4),i=r.DomUtil,a=r.Group,o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,a),r.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"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),a="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor","move"),n.attr("cursor",a),r.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,r=e[1]/100,i=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:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,a),s.translate(r*i,a)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(1,(1-n)*a),s.translate(1,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.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=0>n?0:n},_updateStatus:function(t,e){var n=this.get("x"===t?"width":"height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l=this.get("layout"),c="vertical"===l?-1:1,h=e["page"+t],f=h-o,p=f/n*100*c;a[1]>a[0]?(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(p,a[0])),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(p,a[1]))):(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(p,a[0]),a[1]=this._getRange(p,a[0])),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],a[0]=this._getRange(p,a[0]),(a[1]=a[0]+i)>100&&(a[1]=100,a[0]=a[1]-i)),this.emit("sliderchange",{range:a}),this.set("page"+t,h),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=i.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=i.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=i.addEventListener(t,"mouseleave",r.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"),n=e.getBoundingClientRect(),r=this.get("parent"),i=r.getBBox(),a=r.attr("matrix")[6],o=r.attr("matrix")[7],s=a+i.width,u=o+i.height,l=t.clientX-n.x,c=t.clientY-n.y;return a>l||l>s||o>c||c>u}}),t.exports=o},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,o(t,e)}function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){return t.getElementsByClassName(e)[0]}function u(t,e){return Object.keys(t).forEach(function(n){e[n]&&(t[n]=h.mix(t[n],e[n]))}),t}var l=n(52),c=n(81),h=n(4),f=h.DomUtil,p=n(296),d=n(146),g=n(148),v=n(147),y=l.Marker;t.exports=function(t){function e(e){var n;n=t.call(this,e)||this,h.assign(i(n),g),h.assign(i(n),v),n.style=u(p,e),n._init_(),n.get("items")&&n.render();var r=n.get("crosshairs");if(r){var a=n.get("rect"===r.type?"backPlot":"frontPlot"),o=new d(h.mix({plot:a,plotRange:n.get("plotRange"),canvas:n.get("canvas")},n.get("crosshairs")));o.hide(),n.set("crosshairGroup",o)}return n}a(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return h.mix({},e,{containerTpl:'
      ',itemTpl:'
    • \n \n {name}{value}
    • ',htmlContent:null,follow:!0,enterable:!1})},n._init_=function(){var t,e=this,n=e.get("containerTpl"),r=e.get("canvas").get("el").parentNode;if(!this.get("htmlContent")){if(/^\#/.test(n)){var i=n.replace("#","");t=document.getElementById(i)}else t=f.createDom(n),f.modifyCSS(t,e.style["g2-tooltip"]),r.appendChild(t),r.style.position="relative";e.set("container",t)}},n.render=function(){var t=this;if(t.clear(),t.get("htmlContent")){var e=t.get("canvas").get("el").parentNode,n=t._getHtmlContent();e.appendChild(n),t.set("container",n)}else t._renderTpl()},n._renderTpl=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),r=t.get("container"),i=s(r,"g2-tooltip-title"),a=s(r,"g2-tooltip-list"),o=t.get("items");i&&e&&(f.modifyCSS(i,t.style["g2-tooltip-title"]),i.innerHTML=n),a&&(f.modifyCSS(a,t.style["g2-tooltip-list"]),h.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 r=this.get("markerGroup");r&&r.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 r=this.get("markerGroup");r&&r.hide(),t.prototype.hide.call(this),this.get("canvas").draw()}},n.destroy=function(){var e=this,n=e.get("container"),r=e.get("containerTpl");n&&!/^\#/.test(r)&&n.parentNode.removeChild(n);var i=this.get("crosshairGroup");i&&i.destroy();var a=this.get("markerGroup");a&&a.remove(),t.prototype.destroy.call(this)},n._getMarkerSvg=function(t){var e,n=t.marker||{},r=n.activeSymbol||n.symbol;return h.isFunction(r)?e=r:h.isString(r)&&(e=y.Symbols[r]),e=h.isFunction(e)?e:y.Symbols.circle,''},n._addItem=function(t,e){var n=this.get("itemTpl"),i=h.substitute(n,h.mix({index:e},t)),a=f.createDom(i);f.modifyCSS(a,this.style["g2-tooltip-list-item"]);var o=s(a,"g2-tooltip-marker");if(o){f.modifyCSS(o,r({},this.style["g2-tooltip-marker"],{borderRadius:"unset"}));o.innerHTML=this._getMarkerSvg(t)}var u=s(a,"g2-tooltip-value");return u&&f.modifyCSS(u,this.style["g2-tooltip-value"]),a},n._getHtmlContent=function(){var t=this.get("htmlContent"),e=this.get("titleContent"),n=this.get("items"),r=t(e,n);return f.createDom(r)},n.setPosition=function(e,n,r){var i,a=this.get("container"),o=this.get("canvas").get("el"),s=f.getWidth(o),u=f.getHeight(o),l=a.clientWidth,c=a.clientHeight,p=e,d=n,g=this.get("prePosition")||{x:0,y:0};if(l||(a.style.display="block",l=a.clientWidth,c=a.clientHeight,a.style.display="none"),this.get("enterable")?(n-=a.clientHeight/2,i=[e,n],g&&e-g.x>0?e-=a.clientWidth+1:e+=1):this.get("position")?(i=this._calcTooltipPosition(e,n,this.get("position"),l,c,r),e=i[0],n=i[1]):(i=this._constraintPositionInBoundary(e,n,l,c,s,u),e=i[0],n=i[1]),this.get("inPlot")){i=this._constraintPositionInPlot(e,n,l,c,this.get("plotRange"),this.get("enterable")),e=i[0],n=i[1]}var v=this.get("markerItems");h.isEmpty(v)||(p=v[0].x,d=v[0].y),this.set("prePosition",i),this.get("follow")&&(a.style.left=e+"px",a.style.top=n+"px");var y=this.get("crosshairGroup");if(y){y.setPosition(p,d,this.get("items"))}t.prototype.setPosition.call(this,e,n)},e}(c)},function(t,e,n){var r=n(81);r.Html=n(293),r.Canvas=n(145),r.Mini=n(295),t.exports=r},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(4),o=n(145),s=n(21),u=s.FONT_FAMILY,l=a.DomUtil,c=a.MatrixUtil;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{boardStyle:{x:0,y:0,width:0,height:0,radius:3},valueStyle:{x:0,y:0,text:"",fontFamily:u,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,e=t.get("padding"),n=t.get("frontPlot"),r=n.addGroup();t.set("container",r),t.set("board",r.addShape("rect",{attrs:a.mix({},t.get("boardStyle"))})),t.set("triangleShape",r.addShape("path",{attrs:{fill:t.get("boardStyle").fill}}));var i=r.addGroup();i.move(e.left,e.top),t.set("valueShape",i.addShape("text",{attrs:a.mix({},t.get("valueStyle"))}))},n.render=function(){var t=this;t.clear();var e=t.get("board"),n=t.get("valueShape"),r=t.get("padding"),i=t.get("items")[0];n&&n.attr("text",i.value);var a=n?n.getBBox():{width:80,height:30},o=r.left+a.width+r.right,s=r.top+a.height+r.bottom;e.attr("width",o),e.attr("height",s),t._centerTriangleShape()},n.clear=function(){this.get("valueShape").attr("text","")},n.setPosition=function(t,e,n){var r=this,i=r.get("container"),a=r.get("plotRange"),o=i.getBBox(),s=o.width,u=o.height;if(t-=s/2,n&&("point"===n.name||"interval"===n.name)){e=n.getBBox().y}if(e-=u,this.get("inPlot"))a.tl.x>t?(t=a.tl.x,r._leftTriangleShape()):t+s/2>a.tr.x?(t=a.tr.x-s,r._rightTriangleShape()):r._centerTriangleShape(),a.tl.y>e?e=a.tl.y:e+u>a.bl.y&&(e=a.bl.y-u);else{var h=this.get("canvas").get("el"),f=l.getWidth(h),p=l.getHeight(h);0>t?(t=0,r._leftTriangleShape()):t+s/2>f?(t=f-s,r._rightTriangleShape()):r._centerTriangleShape(),0>e?e=0:e+u>p&&(e=p-u)}var d=[1,0,0,0,1,0,0,0,1],g=c.transform(d,[["t",t,e]]);i.stopAnimate(),i.animate({matrix:g},this.get("animationDuration"))},n._centerTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height;t.attr("path",[["M",0,0],["L",e,0],["L",e/2,n],["L",0,0],["Z"]]),t.move(i/2-e/2,a-1)},n._leftTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.height;t.attr("path",[["M",0,0],["L",e,0],["L",0,n+3],["L",0,0],["Z"]]),t.move(0,i-3)},n._rightTriangleShape=function(){var t=this.get("triangleShape"),e=this.get("triangleWidth"),n=this.get("triangleHeight"),r=this.get("board").getBBox(),i=r.width,a=r.height;t.attr("path",[["M",0,0],["L",e,0],["L",e,n+4],["L",0,0],["Z"]]),t.move(i-e-1,a-4)},e}(o)},function(t,e,n){var r,i=n(21),a=i.FONT_FAMILY;t.exports=(r={crosshairs:!1,offset:15},r["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:a,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"5px",height:"5px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["g2-tooltip-value"]={display:"inline-block",float:"right",marginLeft:"30px"},r)},function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(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&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=n(10),g=n(48);t.exports=function(t){function e(t){var n;return i(this,e),n=a(this,p(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=h(p(e.prototype),"getDefaultCfg",this).call(this);return d({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})}}]),u(e,[{key:"_init",value:function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},r={start:t.y,end:e.y};this.x=n,this.y=r}},{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}(g)},function(t,e,n){"use strict";function r(t){return(r="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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(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&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=n(68),g=n(42),v=n(10),y=n(48),m=d.vec2;t.exports=function(t){function e(t){var n;return i(this,e),n=a(this,p(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=h(p(e.prototype),"getDefaultCfg",this).call(this);return v({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})}}]),u(e,[{key:"_init",value:function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,a=this.endAngle,o=(a-i)/(2*Math.PI)+1,s=Math.min(t,e)/2;!n||0>n||n>1||(s*=n);var u=Math.floor(s*(1-r)/o),l=u/(2*Math.PI),c={start:i,end:a},h={start:r*s,end:r*s+.99*u};this.a=l,this.d=u,this.x=c,this.y=h}},{key:"getCenter",value:function(){return this.center}},{key:"convertPoint",value:function(t){var e,n,r=this.a,i=this.center;this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y);var a=this.convertDim(e,"x"),o=r*a,s=this.convertDim(n,"y");return{x:i.x+Math.cos(a)*(o+s),y:i.y+Math.sin(a)*(o+s)}}},{key:"invertPoint",value:function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=m.subtract([],[t.x,t.y],[e.x,e.y]),a=m.angleTo(i,[1,0],!0),o=a*n;m.length(i)n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}function l(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&&c(t,e)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=f(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=n(68),g=n(42),v=n(10),y=n(48),m=d.mat3,x=d.vec2,b=d.vec3;t.exports=function(t){function e(t){var n;return i(this,e),n=a(this,p(e).call(this,t)),n._init(),n}return l(e,t),u(e,[{key:"getDefaultCfg",value:function(){var t=h(p(e.prototype),"getDefaultCfg",this).call(this);return v({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})}}]),u(e,[{key:"_init",value:function(){for(var t=this.radius,e=this.innerRadius,n=this.center,r=this.startAngle,i=this.endAngle;r>i;)i+=2*Math.PI;this.endAngle=i;var a,o,s=this.getOneBox(),u=s.maxX-s.minX,l=s.maxY-s.minY,c=Math.abs(s.minX)/u,h=Math.abs(s.minY)/l,f=this.width,p=this.height;p/l>f/u?(a=f/u,o={x:n.x-(.5-c)*f,y:n.y-(.5-h)*a*l}):(a=p/l,o={x:n.x-(.5-c)*a*u,y:n.y-(.5-h)*p}),t?t>0&&1>=t?t*=a:t>0&&a>=t||(t=a):t=a;var d={start:r,end:i},g={start:e*t,end:t};this.x=d,this.y=g,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)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);ir.end);g(o,2*Math.PI)&&(o=0);var s=x.length(n),u=o/(r.end-r.start);u=r.end-r.start>0?u:-u;var l=this.invertDim(s,"y"),c={};return c.x=this.isTransposed?l:u,c.y=this.isTransposed?u:l,c}}]),e}(y)},function(t,e,n){function r(t){var e,n,r,i,a,o=t.start,s=t.end,u=t.getWidth(),l=t.getHeight();return t.isPolar?(i=t.getRadius(),r=t.getCenter(),e=t.startAngle,n=t.endAngle,a=new _.Fan({attrs:{x:r.x,y:r.y,rs:0,re:i+200,startAngle:e,endAngle:e}}),a.endState={endAngle:n}):(a=new _.Rect({attrs:{x:o.x-200,y:s.y-200,width:t.isTransposed?u+400:0,height:t.isTransposed?0:l+400}}),a.endState=t.isTransposed?{height:l+400}:{width:u+400}),a.isClip=!0,a}function i(t){if(b.isEmpty(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return b.each(t,function(t){e=e>t.x?t.x:e,n=t.x>n?t.x:n,r=r>t.y?t.y:r,i=t.y>i?t.y:i}),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}function a(t,e){var n,r,a=t.points||t.get("origin").points,o=i(a),s=e.startAngle,u=e.endAngle,l=u-s;return e.isTransposed?(n=o.maxY*l,r=o.minY*l):(n=o.maxX*l,r=o.minX*l),n+=s,r+=s,{startAngle:r,endAngle:n}}function o(t,e,n){var r={};return t.delay&&(r.delay=b.isFunction(t.delay)?t.delay(e,n):t.delay),r.easing=b.isFunction(t.easing)?t.easing(e,n):t.easing,r.duration=b.isFunction(t.duration)?t.duration(e,n):t.duration,r.callback=t.callback,r}function s(t,e){var n,r=t._id,i=t.get("index"),a=t.getBBox(),s=t.get("origin").points,u=(a.minX+a.maxX)/2;n=s[0].y-s[1].y>0?a.minY:a.maxY,t.apply([u,n,1]),t.attr("transform",[["t",-u,-n],["s",1,.01],["t",u,n]]);var l={transform:[["t",-u,-n],["s",1,100],["t",u,n]]},c=o(e,i,r,l);t.animate(l,c.duration,c.easing,c.callback,c.delay)}function u(t,e){var n,r=t._id,i=t.get("index"),a=t.getBBox(),s=t.get("origin").points,u=(a.minY+a.maxY)/2;n=s[0].y-s[1].y>0?a.maxX:a.minX,t.apply([n,u,1]),t.attr({transform:[["t",-n,-u],["s",.01,1],["t",n,u]]});var l={transform:[["t",-n,-u],["s",100,1],["t",n,u]]},c=o(e,i,r,l);t.animate(l,c.duration,c.easing,c.callback,c.delay)}function l(t,e){var n={lineWidth:0,opacity:0},r=t._id,i=t.get("index"),a=o(e,i,r,n);t.animate(n,a.duration,a.easing,function(){t.remove()},a.delay)}function c(t,e,n){var r,i,a=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var u=t.getBBox();r=(u.minX+u.maxX)/2,i=(u.minY+u.maxY)/2}t.apply([r,i,1]),t.attr({transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]});var l={transform:[["t",-r,-i],["s",100,100],["t",r,i]]},c=o(e,s,a,l);t.animate(l,c.duration,c.easing,c.callback,c.delay)}function h(t,e,n){var r,i,a=t._id,s=t.get("index");if(n.isPolar&&"point"!==t.name)r=n.getCenter().x,i=n.getCenter().y;else{var u=t.getBBox();r=(u.minX+u.maxX)/2,i=(u.minY+u.maxY)/2}t.apply([r,i,1]);var l={transform:[["t",-r,-i],["s",.01,.01],["t",r,i]]},c=o(e,s,a,l);t.animate(l,c.duration,c.easing,function(){t.remove()},c.delay)}function f(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=w.pathToAbsolute(t.attr("path"));t.attr("path",[i[0]]);var a={path:i},s=o(e,r,n,a);t.animate(a,s.duration,s.easing,s.callback,s.delay)}}function p(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=w.pathToAbsolute(t.attr("path")),a={path:[i[0]]},s=o(e,r,n,a);t.animate(a,s.duration,s.easing,function(){t.remove()},s.delay)}}function d(t,e,n,i,a){var s,u=r(n),l=t.get("canvas"),c=t._id,h=t.get("index");i?(u.attr("startAngle",i),u.attr("endAngle",i),s={endAngle:a}):s=u.endState,u.set("canvas",l),t.attr("clip",u),t.setSilent("animating",!0);var f=o(e,h,c,s);u.animate(s,f.duration,f.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),u.remove())},f.delay)}function g(t,e){var n=t._id,r=t.get("index"),i=b.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),a=b.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:i,strokeOpacity:a},u=o(e,r,n,s);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function v(t,e){var n=t._id,r=t.get("index"),i={fillOpacity:0,strokeOpacity:0},a=o(e,r,n,i);t.animate(i,a.duration,a.easing,function(){t.remove()},a.delay)}function y(t,e,n){var r=a(t,n);d(t,e,n,r.startAngle,r.endAngle)}function m(t,e,n){if("line"===t.name){var r=t.get("canvas"),i=t.get("cacheShape"),a=t._id,s=t.get("index"),u=new _.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",r);var l=w.pathToAbsolute(i.attrs.path),c=w.pathToAbsolute(t.attr("path")),h=l[1][1]-l[0][1],f=l[l.length-1][1]+h,p=c[c.length-1][2],d=l.concat([["L",f,p]]);t.apply([0,0,1]),t.attr("clip",u),t.attr("path",d);var g={transform:[["t",-h,0]]},v=o(e,s,a,g);t.animate(g,v.duration,v.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",c),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},v.delay)}}function x(t,e,n){if("area"===t.name){var r=t.get("canvas"),i=t.get("cacheShape"),a=t._id,s=t.get("index"),u=new _.Rect({attrs:{x:n.start.x,y:n.end.y,width:n.getWidth(),height:n.getHeight()}});u.isClip=!0,u.set("canvas",r);var l=w.pathToAbsolute(i.attrs.path),c=w.pathToAbsolute(t.attr("path")),h=l[1][1]-l[0][1],f=Math.floor(l.length/2),p=l[f-1][1]+h,d=c[f-1][2],g=[].concat(l.slice(0,f),[["L",p,d],["L",p,c[f][2]]],l.slice(f));t.apply([0,0,1]),t.attr("clip",u),t.attr("path",g);var v={transform:[["t",-h,0]]},y=o(e,s,a,v);t.animate(v,y.duration,y.easing,function(){t&&!t.get("destroyed")&&(t.attr("path",c),t.attr({transform:[["t",h,0]]}),t.attr("clip",null),t.setSilent("cacheShape",null),u.remove())},y.delay)}}var b=n(0),_=n(18),w=b.PathUtil;t.exports={enter:{clipIn:d,zoomIn:c,pathIn:f,scaleInY:s,scaleInX:u,fanIn:y,fadeIn:g},leave:{lineWidthOut:l,zoomOut:h,pathOut:p,fadeOut:v},appear:{clipIn:d,zoomIn:c,pathIn:f,scaleInY:s,scaleInX:u,fanIn:y,fadeIn:g},update:{fadeIn:g,fanIn:y,lineSlideLeft:m,areaSlideLeft:x}}},function(t,e,n){function r(t,e){var n=[];if(!1===t.get("animate"))return[];var i=t.get("children");return u.each(i,function(t){if(t.isGroup)n=n.concat(r(t,e));else if(t.isShape&&t._id){var i=t._id;i=i.split("-")[0],i===e&&n.push(t)}}),n}function i(t){var e={};return u.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:u.cloneDeep(t.attr()),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}function a(t,e,n,r){return r?l.Action[n][r]:l.getAnimation(t,e,n)}function o(t,e,n){var r=l.getAnimateCfg(t,e);return n&&n[e]?u.deepMix({},r,n[e]):r}function s(t,e,n,r){var i,s,l=!1;if(r){var c=[],f=[];u.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),c.push(e),delete t[e._id]):f.push(e)}),u.each(t,function(t){var e=t.name,r=t.coord,c=t._id,f=t.attrs,p=t.index,d=t.type;if(s=o(e,"leave",t.animateCfg),i=a(e,r,"leave",s.animation),u.isFunction(i)){var g=n.addShape(d,{attrs:f,index:p});if(g._id=c,g.name=e,r&&"label"!==e){var v=g.getMatrix();g.setMatrix(h.multiply([],v,r.matrix))}l=!0,i(g,s,r)}}),u.each(c,function(t){var e=t.name,n=t.get("coord"),r=t.get("cacheShape").attrs;if(!u.isEqual(r,t.attr())){if(s=o(e,"update",t.get("animateCfg")),i=a(e,n,"update",s.animation),u.isFunction(i))i(t,s,n);else{var c=u.cloneDeep(t.attr());t.attr(r),t.animate(c,s.duration,s.easing,function(){t.setSilent("cacheShape",null)})}l=!0}}),u.each(f,function(t){var e=t.name,n=t.get("coord");s=o(e,"enter",t.get("animateCfg")),i=a(e,n,"enter",s.animation),u.isFunction(i)&&(i(t,s,n),l=!0)})}else u.each(e,function(t){var e=t.name,n=t.get("coord");s=o(e,"appear",t.get("animateCfg")),i=a(e,n,"appear",s.animation),u.isFunction(i)&&(i(t,s,n),l=!0)});return l}var u=n(0),l=n(149),c=u.MatrixUtil,h=c.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),a=t.get("backPlot"),o=t.get("_id"),u=t.get("canvas"),l=u.get(o+"caches")||[];0===l.length&&(e=!1);var c=r(n,o),h=r(a,o),f=c.concat(h);u.setSilent(o+"caches",i(f));var p;(p=e?s(l,f,u,e):s(l,c,u,e))||u.draw()}}},function(t,e,n){function r(t){var e=[];if(t.length>0){e=t.slice(0);var n=e[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}function i(t,e,n){var r=[];return 1>t.length?r:(t.length>=2&&e&&n&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),r=r.concat(t),1!==r[r.length-1].value&&r.push({text:"",tickValue:"",value:1}),r)}function a(t,e){return void 0===e&&(e=0),"middle"===t&&(e=.5),t.includes("%")&&(e=parseInt(t,10)/100),e}var o=n(0),s=n(32),u=s.Axis,l=o.MatrixUtil.vec2;t.exports=function(){function t(t){this.visible=!0,this.canvas=null,this.container=null,this.coord=null,this.options=null,this.axes=[],o.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,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},e._getLineRange=function(t,e,n,r){var i,o,s,u=e.field,l=this.options,c="";if(l[u]&&l[u].position&&(c=l[u].position),"x"===n){var h="top"===c?1:0;h=a(c,h),i={x:0,y:h},o={x:1,y:h},s=!1}else{if(r){var f="left"===c?0:1;f=a(c,f),i={x:f,y:0},o={x:f,y:1}}else{var p="right"===c?1:0;p=a(c,p),i={x:p,y:0},o={x:p,y:1}}s=!0}return i=t.convert(i),o=t.convert(o),{start:i,end:o,isVertical:s}},e._getLineCfg=function(t,e,n,r){var i,a=this._getLineRange(t,e,n,r),o=a.isVertical,s=a.start,u=a.end,l=t.center;return t.isTransposed&&(o=!o),i=o&&s.x>l.x||!o&&s.y>l.y?1:-1,{isVertical:o,factor:i,start:s,end:u}},e._getCircleCfg=function(t){var e,n={},r=t.x,i=t.y,a=i.start>i.end;e=t.isTransposed?{x:a?0:1,y:0}:{x:0,y:a?0:1},e=t.convert(e);var o,s=t.circleCentre,u=[e.x-s.x,e.y-s.y],c=[1,0];o=e.y>s.y?l.angle(u,c):-1*l.angle(u,c);var h=o+(r.end-r.start);return n.startAngle=o,n.endAngle=h,n.center=s,n.radius=Math.sqrt(Math.pow(e.x-s.x,2)+Math.pow(e.y-s.y,2)),n.inner=t.innerRadius||0,n},e._getRadiusCfg=function(t){var e,n,r=t.x.start,i=0>r?-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,r){var i="",a=this.options;if(a[r]&&a[r].position)i=a[r].position;else{var o=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===o?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},e._getAxisDefaultCfg=function(t,e,n,r){var i=this,a=i.viewTheme,s={},u=i.options,l=e.field;if(s=o.deepMix({},a.axis[r],s,u[l]),s.viewTheme=a,s.title){var c=o.isPlainObject(s.title)?s.title:{};c.text=c.text||e.alias||l,o.deepMix(s,{title:c})}return s.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&s.ticks.pop(),s.coord=t,s.label&&o.isNil(s.label.autoRotate)&&(s.label.autoRotate=!0),u.hasOwnProperty("xField")&&u.xField.hasOwnProperty("grid")&&"left"===s.position&&o.deepMix(s,u.xField),s},e._getAxisCfg=function(t,e,n,a,s,u){void 0===s&&(s="");var l=this,c=l._getAxisPosition(t,a,s,e.field),h=l._getAxisDefaultCfg(t,e,a,c);if(!o.isEmpty(h.grid)&&n){var f=[],p=[],d=r(n.getTicks());if(d.length){var g=i(h.ticks,e.isLinear,"center"===h.grid.align);o.each(g,function(n,r){p.push(n.tickValue);var i=[],c=n.value;if("center"===h.grid.align&&(c=l._getMiddleValue(c,g,r,e.isLinear)),!o.isNil(c)){var v=t.x,y=t.y;o.each(d,function(e){var n="x"===a?c:e.value,r="x"===a?e.value:c,o=t.convert({x:n,y:r});if(t.isPolar){var s=t.circleCentre;y.start>y.end&&(r=1-r),o.flag=v.start>v.end?0:1,o.radius=Math.sqrt(Math.pow(o.x-s.x,2)+Math.pow(o.y-s.y,2))}i.push(o)}),f.push({_id:u+"-"+a+s+"-grid-"+n.tickValue,points:i})}})}h.grid.items=f,h.grid.tickValues=p}return h.type=e.type,h},e._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,a=[],o=0;100>=o;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=r,e.endAngle=i,e.crp=a,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},e._drawAxis=function(t,e,n,r,i,a,s){var l,c,h=this.container,f=this.canvas;"cartesian"===t.type?(l=u.Line,c=this._getLineCfg(t,e,r,s)):"helix"===t.type&&"x"===r?(l=u.Helix,c=this._getHelixCfg(t)):"x"===r?(l=u.Circle,c=this._getCircleCfg(t)):(l=u.Line,c=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,r,s,i);p=o.mix({},p,c),"y"===r&&a&&"circle"===a.get("type")&&(p.circle=a),p._id=i+"-"+r,o.isNil(s)||(p._id=i+"-"+r+s),o.mix(p,{canvas:f,group:h.addGroup({viewId:i})});var d=new l(p);return d.render(),this.axes.push(d),d},e.createAxis=function(t,e,n){var r=this,i=this.coord,a=i.type;if("theta"!==a&&("polar"!==a||!i.isTransposed)){var s;t&&!r._isHide(t.field)&&(s=r._drawAxis(i,t,e[0],"x",n)),o.isEmpty(e)||"helix"===a||o.each(e,function(e,a){r._isHide(e.field)||r._drawAxis(i,e,t,"y",n,s,a)})}},e.changeVisible=function(t){o.each(this.axes,function(e){e.set("visible",t)})},e.clear=function(){var t=this;o.each(t.axes,function(t){t.destroy()}),t.axes=[]},t}()},function(t,e,n){var r=n(0),i=n(299);t.exports=function(){function t(t){this.type="rect",this.actions=[],this.cfg={},r.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){r.each(this.actions,function(e){t[e[0]](e[1],e[2])})},e.hasAction=function(t){var e=this.actions,n=!1;return r.each(e,function(e){if(t===e[0])return n=!0,!1}),n},e.createCoord=function(t,e){var n,a,o=this,s=o.type,u=o.cfg,l=r.mix({start:t,end:e},u);return"theta"===s?(n=i.Polar,o.hasAction("transpose")||o.transpose(),a=new n(l),a.type=s):(n=i[r.upperFirst(s||"")]||i.Rect,a=new n(l)),o._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}()},function(t,e,n){function r(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isNil(n)&&a.isNil(r)?a.isEqual(t,e):a.isEqual(n,r)}function i(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0);t.exports=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};return n.views=e.getViewsByPoint(n),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 r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var a=r.get("parent");a&&a.emit(i,n)}}},e.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.onMove=function(t){var e=this,n=e.view,a=e.currentShape;a&&a.get("destroyed")&&(a=null,e.currentShape=null);var o=e._getShape(t.x,t.y)||t.currentTarget,s=e._getShapeEventObj(t);if(s.shape=o,i(s),n.emit("mousemove",s),e._triggerShapeEvent(o,"mousemove",s),a&&!r(a,o)){var u=e._getShapeEventObj(t);u.shape=a,u.toShape=o,i(u),e._triggerShapeEvent(a,"mouseleave",u)}if(o&&!r(a,o)){var l=e._getShapeEventObj(t);l.shape=o,l.fromShape=a,i(l),e._triggerShapeEvent(o,"mouseenter",l)}e.currentShape=o;var c=e._getPointInfo(t),h=e.curViews||[];0===h.length&&c.views.length&&n.emit("plotenter",e._getEventObj(t,c,c.views)),h.length&&0===c.views.length&&n.emit("plotleave",e._getEventObj(t,c,h)),c.views.length&&(s=e._getEventObj(t,c,c.views),s.shape=o,i(s),n.emit("plotmove",s)),e.curViews=c.views},e.onOut=function(t){var e=this,n=e.view,r=e._getPointInfo(t),i=e.curViews||[],a=e._getEventObj(t,r,i);!e.curViews||0===e.curViews.length||a.toElement&&"CANVAS"===a.toElement.tagName||(n.emit("plotleave",a),e.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,n=e.view,r=e._getShape(t.x,t.y)||t.currentTarget,o=e._getShapeEventObj(t);o.shape=r,i(o),n.emit("click",o),e._triggerShapeEvent(r,t.type,o),e.currentShape=r;var s=e._getPointInfo(t),u=s.views;if(!a.isEmpty(u)){var l=e._getEventObj(t,s,u);if(e.currentShape){l.shape=e.currentShape,i(l)}"dblclick"===t.type?(n.emit("plotdblclick",l),n.emit("dblclick",o)):n.emit("plotclick",l)}},e.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},e.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y)||t.currentTarget,r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},e.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(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}()},function(t,e,n){var r=n(0),i=n(311);t.exports=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,r.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=r.deepMix({xScales:n,yScales:a,viewTheme:s},s?s.guide[o]:{},e);o=r.upperFirst(o);var l=new i[o](u);t.guides.push(l)}),t.guides},e.line=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"line"},t)),this},e.arc=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"arc"},t)),this},e.text=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"text"},t)),this},e.image=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"image"},t)),this},e.region=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"region"},t)),this},e.regionFilter=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"regionFilter"},t)),this},e.dataMarker=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataMarker"},t)),this},e.dataRegion=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"dataRegion"},t)),this},e.html=function(t){return void 0===t&&(t={}),this.options.push(r.mix({type:"html"},t)),this},e.render=function(t){var e=this,n=e.view,i=n&&n.get("data"),a=e._creatGuides();r.each(a,function(r){var a;a=r.get("top")?e.frontGroup||e.frontContainer:e.backGroup||e.backContainer,r.render(t,a,i,n)})},e.clear=function(){this.options=[],this.reset()},e.changeVisible=function(t){r.each(this.guides,function(e){e.changeVisible(t)})},e.reset=function(){r.each(this.guides,function(t){t.clear()}),this.guides=[],this.backGroup&&this.backGroup.remove(),this.frontGroup&&this.frontGroup.remove()},t}()},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t,e,n){return!o.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:1>=Math.abs(t-e))}function a(t,e){var n;return o.each(t,function(t){if(t.get("visible")){if(t.getYScale().field===e)return void(n=t)}}),n}var o=n(0),s=n(32),u=s.Legend,l=n(313),c=n(13),h=n(152),f=n(154),p=n(6),d=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,g=["cross","tick","plus","hyphen","line","hollowCircle","hollowSquare","hollowDiamond","hollowTriangle","hollowTriangleDown","hollowHexagon","hollowBowtie"];t.exports=function(){function t(t){var e=this;e.options={},o.mix(e,t),e.clear();var n=e.chart;e.container=n.get("frontPlot"),e.plotRange=n.get("plotRange")}var e=t.prototype;return e.clear=function(){var t=this.legends;this.backRange=null,o.each(t,function(t){o.each(t,function(t){t.destroy()})}),this.legends={}},e.getBackRange=function(){var t=this.backRange;if(!t){var e=this.chart.get("backPlot");t=h(e,f(this.chart.get("plotRange")));var n=this.plotRange;n.br.x-n.tl.x>t.maxX-t.minX&&n.br.y-n.tl.y>t.maxY-t.minY&&(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 r=!1,i=n.get("scales"),a=i[t];return a&&a.values&&(r=o.inArray(a.values,e)),r},e._bindClickEvent=function(t,e,n){var r=this,i=r.chart,a=i.get("views"),s=e.field,u=r.options;t.on("itemclick",function(e){if(u.onClick&&!0!==u.defaultClickHandlerEnabled)u.onClick(e);else{var l=e.item,c=e.checked,h="single"===t.get("selectedMode"),f=l.dataValue;c?(o.Array.remove(n,f),r._isFieldInView(s,f,i)&&i.filter(s,function(t){return h?t===f:!o.inArray(n,t)}),o.each(a,function(t){r._isFieldInView(s,f,t)&&t.filter(s,function(t){return h?t===f:!o.inArray(n,t)})})):h||(n.push(f),r._isFieldInView(s,f,i)&&i.filter(s,function(t){return!o.inArray(n,t)}),o.each(a,function(t){r._isFieldInView(s,f,t)&&t.filter(s,function(t){return!o.inArray(n,t)})})),u.onClick&&u.onClick(e),i.set("keepLegend",!0),i.set("keepPadding",!0),i.repaint(),i.set("keepPadding",!1),i.set("keepLegend",!1)}})},e._bindClickEventForMix=function(t){var e=this,n=e.chart,r=n.getAllGeoms();t.on("itemclick",function(t){var e=t.item.field;t.checked?o.each(r,function(t){t.getYScale().field===e&&t.show()}):o.each(r,function(t){t.getYScale().field===e&&t.hide()})})},e._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var r=e.get("labelCfg");if(r&&r.fields&&r.fields.length>0){var i=e.getXScale(),a=e.getYScale(),s=i.field,u=a.field,l=t.get("origin")._origin,c=e.get("labelContainer"),h=c.get("labelsGroup").get("children");o.each(h,function(e){var r=e.get("origin")||[];r[s]===l[s]&&r[u]===l[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},e._bindFilterEvent=function(t,e){var n=this,r=this.chart,i=e.field;t.on("itemfilter",function(t){var e=t.range;r.filterShape(function(t,r,a){if(!o.isNil(t[i])){var s=t[i]>=e[0]&&e[1]>=t[i];return n._filterLabels(r,a,s),s}return!0});for(var a=r.getAllGeoms()||[],s=0;a.length>s;s++)!function(t){var n=a[t];"heatmap"===n.get("type")&&d(function(){n.drawWithRange(e)})}(s)})},e._getShapeData=function(t){var e=t.get("origin");return o.isArray(e)&&(e=e[0]),e._origin},e._bindHoverEvent=function(t,e){var n=this,r=n.chart,a=r.getAllGeoms(),s=n.options,u=r.get("canvas");t.on("itemhover",function(t){var r=t.item.value,l=n.pre;if(l){if(l===r)return}else o.each(a,function(a){var l=a.get("shapeContainer"),c=a.getShapes(),h=[];if(e){var f=a.get("scales")[e];o.each(c,function(t){var a=n._getShapeData(t);a&&i(a[e],r,f)&&h.push(t)})}else a.getYScale().field===r&&(h=c);o.isEmpty(h)||(t.shapes=h,t.geom=a,s.onHover?(s.onHover(t),l.sort(),u.draw()):a.setShapesActived(h))}),n.pre=r}),t.on("itemunhover",function(t){n.pre=null,s.onUnhover&&s.onUnhover(t),o.each(a,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),u.draw())})})},e._isFiltered=function(t,e,n){if(!t.isCategory)return!0;var r=!0;return n=t.invert(n),o.each(e,function(e){if(t.getText(e)===t.getText(n))return r=!1,!1}),r},e._alignLegend=function(t,e,n,r){var i=this,a=i.viewTheme,o=i.container,s=o.get("canvas"),u=s.get("width"),l=s.get("height"),c=i.totalRegion,h=i.plotRange,f=i.getBackRange(),p=t.get("offset")[0]||0,d=t.get("offset")[1]||0,g=t.getHeight(),v=t.getWidth(),y=a.legend.margin,m=a.legend.legendMargin,x=i.legends[r].length,b=r.split("-"),_=0,w=0,M=x>1?c:n;if("left"===b[0]||"right"===b[0])l=h.br.y,_=i._getXAlign(b[0],u,n,f,v,y),w=e?(e.get("y")||e.get("group").get("y"))+e.getHeight()+m:i._getYAlignVertical(b[1],l,M,f,0,y,s.get("height"));else if("top"===b[0]||"bottom"===b[0])if(w=i._getYAlignHorizontal(b[0],l,n,f,g,y),e){var S=e.getWidth();_=(e.get("x")||e.get("group").get("x"))+S+m}else _=i._getXAlign(b[1],u,M,f,0,y),"right"===b[1]&&(_=h.br.x-M.totalWidth);t.move(_+p,w+d)},e._getXAlign=function(t,e,n,r,i,a){var o=0>r.minX-i-a[3]?0:r.minX-i-a[3],s="left"===t?o:r.maxX+a[1];return"center"===t&&(s=(e-n.totalWidth)/2),s},e._getYAlignHorizontal=function(t,e,n,r,i,a){return"top"===t?r.minY-i-a[0]:r.maxY+a[2]},e._getYAlignVertical=function(t,e,n,r,i,a,o){var s="top"===t?r.minY-i-a[0]:e-n.totalHeight;return"center"===t&&(s=(o-n.totalHeight)/2),s},e._getSubRegion=function(t){var e=0,n=0,r=0,i=0;return o.each(t,function(t){var a=t.getWidth(),o=t.getHeight();a>e&&(e=a),r+=a,o>n&&(n=o),i+=o}),{maxWidth:e,totalWidth:r,maxHeight:n,totalHeight:i}},e._getRegion=function(){var t=this,e=t.viewTheme,n=t.legends,r=e.legend.legendMargin,i=[],a=0,s=0;return o.each(n,function(e){var n=t._getSubRegion(e);i.push(n),a+=n.totalWidth+r,s+=n.totalHeight+r}),{totalWidth:a,totalHeight:s,subs:i}},e._addCategoryLegend=function(t,e,n,i,a){var s=this,h=t.field,f=s.options,d=f[h];d&&(f=d);var g=s.legends;g[a]=g[a]||[];var v=s.container,y=[],m=t.getTicks(),x=!0,b=n.get("shapeType")||"point",_=n.getDefaultValue("shape")||"circle";f[h]&&f[h].marker?(_=f[h].marker,b="point",x=!1):f.marker&&(_=f.marker,b="point",x=!1);var w=s.chart,M=s.viewTheme,S=w.get("canvas"),A=s.plotRange,C=a.split("-"),P="right"===C[0]||"left"===C[0]?A.bl.y-A.tr.y:S.get("width");o.each(m,function(e){var r=e.text,a=r,u=e.value,l=t.invert(u),h={isInCircle:n.isInCircle()},f=!i||s._isFiltered(t,i,u),d=n.getAttr("color"),g=n.getAttr("shape");if(d)if(d.callback&&d.callback.length>1){var v=Array(d.callback.length-1).fill("");h.color=d.mapping.apply(d,[l].concat(v)).join("")||M.defaultColor}else h.color=d.mapping(l).join("")||M.defaultColor;if(x&&g)if(g.callback&&g.callback.length>1){var m=Array(g.callback.length-1).fill("");_=g.mapping.apply(g,[l].concat(m)).join("")}else _=g.mapping(l).join("");var w=c.getShapeFactory(b),S=w.getMarkerCfg(_,h);p.legendMarkerRadius&&(S.radius=p.legendMarkerRadius),o.isFunction(_)&&(S.symbol=_),y.push({value:a,dataValue:l,checked:f,marker:S})});var k=o.deepMix({},M.legend[C[0]],f[h]||f,{viewId:w.get("_id"),maxLength:P,items:y,container:v,position:[0,0]});k.title&&o.deepMix(k,{title:{text:t.alias||t.field}});var T;if(s._isTailLegend(f,n))k.chart=s.chart,k.geom=n,T=new l(k);else if(f.useHtml){var I=v.get("canvas").get("el");if(v=f.container,o.isString(v)&&/^\#/.test(v)){var O=v.replace("#","");v=document.getElementById(O)}v||(v=I.parentNode),k.container=v,void 0===k.legendStyle&&(k.legendStyle={}),k.legendStyle.CONTAINER_CLASS=r({},k.legendStyle.CONTAINER_CLASS,{position:"absolute",overflow:"auto","z-index":""===I.style.zIndex?1:parseInt(I.style.zIndex,10)+1}),f.flipPage?(k.legendStyle.CONTAINER_CLASS.height="right"===C[0]||"left"===C[0]?P+"px":"auto",k.legendStyle.CONTAINER_CLASS.width="right"!==C[0]&&"left"!==C[0]?P+"px":"auto",T=new u.CatPageHtml(k)):T=new u.CatHtml(k)}else T=new u.Category(k);return s._bindClickEvent(T,t,i),g[a].push(T),T},e._bindChartMove=function(t){var e=this.chart,n=this.legends;e.on("plotmove",function(e){var r=!1;if(e.target){var i=e.target.get("origin");if(i){var a=i._origin||i[0]._origin,s=t.field;if(a){var u=a[s];o.each(n,function(t){o.each(t,function(t){r=!0,!t.destroyed&&t.activate(u)})})}}}r||o.each(n,function(t){o.each(t,function(t){!t.destroyed&&t.deactivate()})})})},e._addContinuousLegend=function(t,e,n){var r=this,i=r.legends;i[n]=i[n]||[];var a,s,l,c=r.container,h=t.field,f=t.getTicks(),p=[],d=r.viewTheme;o.each(f,function(n){var r=n.value,i=t.invert(r),a=e.mapping(i).join("");p.push({value:n.tickValue,attrValue:a,color:a,scaleValue:r}),0===r&&(s=!0),1===r&&(l=!0)}),s||p.push({value:t.min,attrValue:e.mapping(0).join(""),color:e.mapping(0).join(""),scaleValue:0}),l||p.push({value:t.max,attrValue:e.mapping(1).join(""),color:e.mapping(1).join(""),scaleValue:1});var g=r.options,v=n.split("-"),y=d.legend[v[0]];(g&&!1===g.slidable||g[h]&&!1===g[h].slidable)&&(y=o.mix({},y,d.legend.gradient));var m=o.deepMix({},y,g[h]||g,{items:p,attr:e,formatter:t.formatter,container:c,position:[0,0]});if(m.title&&o.deepMix(m,{title:{text:t.alias||t.field}}),"color"===e.type)a=new u.Color(m);else{if("size"!==e.type)return;a=g&&"circle"===g.sizeType?new u.CircleSize(m):new u.Size(m)}return r._bindFilterEvent(a,t),i[n].push(a),a},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(o.isArray(t))n=t[0]+"-"+t[1];else{var r=t.split("-");1===r.length?("left"===r[0]&&(n="left-bottom"),"right"===r[0]&&(n="right-bottom"),"top"===r[0]&&(n="top-center"),"bottom"===r[0]&&(n="bottom-center")):n=t}return n},e.addLegend=function(t,e,n,r){var i=this,a=i.options,o=t.field,s=a[o],u=i.viewTheme;if(!1===s)return null;if(s&&s.custom)i.addCustomLegend(o);else{var l=a.position||u.defaultLegendPosition;l=i._adjustPosition(l,i._isTailLegend(a,n)),s&&s.position&&(l=i._adjustPosition(s.position,i._isTailLegend(s,n)));var c;c=t.isLinear?i._addContinuousLegend(t,e,l):i._addCategoryLegend(t,e,n,r,l),c&&(i._bindHoverEvent(c,o),a.reactive&&i._bindChartMove(t))}},e.addCustomLegend=function(t){var e=this,n=e.chart,r=e.viewTheme,i=e.container,s=e.options;t&&(s=s[t]);var l=s.position||r.defaultLegendPosition;l=e._adjustPosition(l);var c=e.legends;c[l]=c[l]||[];var h=s.items;if(h){var f=n.getAllGeoms();o.each(h,function(t){var e=a(f,t.value);o.isPlainObject(t.marker)?t.marker.radius=t.marker.radius||p.legendMarkerRadius||4.5:(t.marker={symbol:t.marker||"circle",radius:p.legendMarkerRadius||4.5},-1!==o.indexOf(g,t.marker.symbol)?t.marker.stroke=t.fill:t.marker.fill=t.fill);var n=t.marker.symbol;o.isString(n)&&-1!==n.indexOf("hollow")&&(t.marker.symbol=o.lowerFirst(n.substr(6))),t.checked=!!o.isNil(t.checked)||t.checked,t.geom=e});var d,v=n.get("canvas"),y=e.plotRange,m=l.split("-"),x="right"===m[0]||"left"===m[0]?y.bl.y-y.tr.y:v.get("width"),b=o.deepMix({},r.legend[m[0]],s,{maxLength:x,items:h,container:i,position:[0,0]});if(s.useHtml){var _=s.container;if(/^\#/.test(i)){var w=_.replace("#","");_=document.getElementById(w)}else _||(_=i.get("canvas").get("el").parentNode);b.container=_,void 0===b.legendStyle&&(b.legendStyle={}),b.legendStyle.CONTAINER_CLASS||(b.legendStyle.CONTAINER_CLASS={height:"right"===m[0]||"left"===m[0]?x+"px":"auto",width:"right"!==m[0]&&"left"!==m[0]?x+"px":"auto",position:"absolute",overflow:"auto"}),d=s.flipPage?new u.CatPageHtml(b):new u.CatHtml(b)}else d=new u.Category(b);return c[l].push(d),d.on("itemclick",function(t){s.onClick&&s.onClick(t)}),e._bindHoverEvent(d),d}},e.addMixedLegend=function(t,e){var n=this,r=n.options,i=[];o.each(t,function(t){var n=t.alias||t.field,a=r[t.field];o.each(e,function(e){if(e.getYScale()===t&&t.values&&t.values.length>0&&!1!==a){var r=e.get("shapeType")||"point",o=e.getDefaultValue("shape")||"circle",s=c.getShapeFactory(r),u={color:e.getDefaultValue("color")},l=s.getMarkerCfg(o,u);p.legendMarkerRadius&&(l.radius=p.legendMarkerRadius);i.push({value:n,marker:l,field:t.field})}})}),n.options=o.deepMix({},{custom:!0,items:i},n.options),n._bindClickEventForMix(n.addCustomLegend())},e.alignLegends=function(){var t=this,e=t.legends,n=t._getRegion(e);t.totalRegion=n;var r=0;return o.each(e,function(e,i){var a=n.subs[r];o.each(e,function(n,r){var o=e[r-1];n.get("useHtml")&&!n.get("autoPosition")||t._alignLegend(n,o,a,i)}),r++}),this},t}()},function(t,e,n){var r=n(202),i=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]))?$/;t.exports=function(){function t(t){this.defs={},this.viewTheme={scales:{}},this.filters={},i.assign(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,n=this.viewTheme,r=null;return(n.scales[t]||e[t])&&(r=i.mix({},n.scales[t]),i.each(e[t],function(t,e){i.isNil(t)?delete r[e]:r[e]=t}),this.filters[t]&&(delete r.min,delete r.max)),r},e._getDefaultType=function(t,e){var n="linear",r=i.Array.firstValue(e,t);return i.isArray(r)&&(r=r[0]),a.test(r)?n="time":i.isString(r)&&(n="cat"),n},e._getScaleCfg=function(t,e,n){var a={field:e},o=i.Array.values(n,e);if(a.values=o,!r.isCategory(t)&&"time"!==t){var s=i.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,o=a._getDef(t),s=e||[],u=i.Array.firstValue(s,t);if(i.isNumber(t)||i.isNil(u)&&!o)n=r.identity({value:t,field:""+t,values:[t]});else{var l;o&&(l=o.type),l=l||a._getDefaultType(t,s);var c=a._getScaleCfg(l,t,s);o&&i.mix(c,o),n=r[l](c)}return n},t}()},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t,e){var n=-1;return u.each(t,function(t,r){var i=!0;for(var a in e)if(e.hasOwnProperty(a)&&!v.includes(a)&&!u.isObject(e[a])&&e[a]!==t[a]){i=!1;break}if(i)return n=r,!1}),n}function a(t,e){if(!t)return!1;var n="";return!!t.className&&(n=u.isNil(t.className.baseVal)?t.className:t.className.baseVal,n.includes(e))}function o(t,e){for(var n=t.parentNode,r=!1;n&&n!==document.body;){if(a(n,e)){r=!0;break}n=n.parentNode}return r}function s(t){var e=[];return u.each(t,function(t){var n=i(e,t);-1===n?e.push(t):e[n]=t}),e}var u=n(0),l=n(13),c=n(32),h=c.Tooltip,f=u.MatrixUtil,p=f.vec2,d=["line","area","path","areaStack"],g=["line","area","point"],v=["marker","showMarker"];t.exports=function(){function t(t){u.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(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");return r.x=r.x/i,r.y=r.y/i,r.views=e.getViewsByPoint(r),r},e._getCanvas=function(){return this.chart.get("canvas")},e._getTriggerEvent=function(){var t,e=this.options,n=e.triggerOn;return n&&"mousemove"!==n?"click"===n?t="plotclick":"none"===n&&(t=null):t="plotmove",t},e._getDefaultTooltipCfg=function(){var t=this,e=t.chart,n=t.viewTheme,r=t.options,i=u.mix({},n.tooltip),a=e.getAllGeoms().filter(function(t){return t.get("visible")}),o=[];u.each(a,function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&u.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1}),-1!==u.indexOf(o,e)||r||o.push(e)});var s,l=!(!a.length||!a[0].get("coord"))&&a[0].get("coord").isTransposed;if(a.length&&a[0].get("coord")&&"cartesian"===a[0].get("coord").type)if("interval"===o[0]&&!1!==r.shared){var c=u.mix({},n.tooltipCrosshairsRect);c.isTransposed=l,s={zIndex:0,crosshairs:c}}else if(u.indexOf(g,o[0])>-1){var h=u.mix({},n.tooltipCrosshairsLine);h.isTransposed=l,s={crosshairs:h}}return u.mix(i,s,{})},e._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,u.wrapBehavior(this,"onMouseMove")),t.on("plotleave",u.wrapBehavior(this,"onMouseOut")))},e._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,u.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",u.getWrapBehavior(this,"onMouseOut")))},e._setTooltip=function(t,e,n,r){var i=this,a=i.tooltip,o=i.prePoint;if(!o||o.x!==t.x||o.y!==t.y){e=s(e),i.prePoint=t;var l=i.chart,c=i.viewTheme,h=u.isArray(t.x)?t.x[t.x.length-1]:t.x,f=u.isArray(t.y)?t.y[t.y.length-1]:t.y;a.get("visible")||l.emit("tooltip:show",{x:h,y:f,tooltip:a});var p=e[0],d=p.title||p.name;a.isContentChange(d,e)&&(l.emit("tooltip:change",{tooltip:a,x:h,y:f,items:e}),d=e[0].title||e[0].name,a.setContent(d,e),u.isEmpty(n)?(a.clearMarkers(),a.set("markerItems",[])):!0===i.options.hideMarkers?a.set("markerItems",n):a.setMarkers(n,c.tooltipMarker));r===this._getCanvas()&&"mini"===a.get("type")?a.hide():(a.setPosition(h,f,r),a.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(!u.isEmpty(t.views)&&!this.locked){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};n-e>16&&!this.chart.get("stopTooltip")&&(this.showTooltip(r,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&&(a(t.toElement,"g2-tooltip")||o(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t.viewTheme,r=t._getCanvas(),i=t._getDefaultTooltipCfg(),a=t.options;a=u.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:r,frontPlot:e.get("frontPlot"),viewTheme:n.tooltip,backPlot:e.get("backPlot")},i,a),a.crosshairs&&"rect"===a.crosshairs.type&&(a.zIndex=0),a.visible=!1;var o;"mini"===a.type?(a.crosshairs=!1,a.position="top",o=new h.Mini(a)):o=a.useHtml?new h.Html(a):new h.Canvas(a),t.tooltip=o;var s=t._getTriggerEvent(),l=o.get("container");o.get("enterable")||"plotmove"!==s||l&&(l.onmousemove=function(n){var r=t._normalizeEvent(n);e.emit(s,r)}),l&&(l.onmouseleave=function(){t.locked||t.hideTooltip()}),t._bindEvent()}},e._formatMarkerOfItem=function(t,e,n){var r=this,i=r.options,a=n.point;if(a&&a.x&&a.y){a=t.applyMatrix(u.isArray(a.x)?a.x[a.x.length-1]:a.x,u.isArray(a.y)?a.y[a.y.length-1]:a.y,1),n.x=a[0],n.y=a[1],n.showMarker=!0,"l("!==n.color.substring(0,2)||i.hasOwnProperty("useHtml")&&!i.useHtml||(n.color=n.color.split(" ")[1].substring(2));if(n.marker=r._getItemMarker(e,n),-1!==u.indexOf(d,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 r=this,i=this;if(!u.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var a=i.options,o=[],s=[];if(u.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),l=e.get("coord");u.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var c=e.get("dataArray");if(e.isShareTooltip()||!1===a.shared&&u.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 d=u.find(c,function(n){return!!e.findPoint(t,n)});u.each(d,function(t){var n=e.getTipItems(t,a.title);u.each(n,function(t){var n=i._formatMarkerOfItem(l,e,t);n&&o.push(n)}),s=s.concat(n)})}else u.each(c,function(n){var r=e.findPoint(t,n);if(r){var c=e.getTipItems(r,a.title);u.each(c,function(t){var n=i._formatMarkerOfItem(l,e,t);n&&o.push(n)}),s=s.concat(c)}})}else{var g=e.get("shapeContainer"),v=g.get("canvas"),y=v.get("pixelRatio"),m=g.getShape(t.x*y,t.y*y);m&&m.get("visible")&&m.get("origin")&&(s=e.getTipItems(m.get("origin"),a.title)),u.each(s,function(t){var n=r._formatMarkerOfItem(l,e,t);n&&o.push(n)})}}}),u.each(s,function(t){var e=t.point,n=u.isArray(e.x)?e.x[e.x.length-1]:e.x,r=u.isArray(e.y)?e.y[e.y.length-1]:e.y;e=l.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]})}),s.length){var l=s[0];if(!s.every(function(t){return t.title===l.title})){var c=l,h=1/0;s.forEach(function(e){var n=p.distance([t.x,t.y],[e.x,e.y]);h>n&&(h=n,c=e)}),s=s.filter(function(t){return t.title===c.title}),o=o.filter(function(t){return t.title===c.title})}if(!1===a.shared&&s.length>1){var f=s[0],d=Math.abs(t.y-f.y);u.each(s,function(e){Math.abs(t.y-e.y)>d||(f=e,d=Math.abs(t.y-e.y))}),f&&f.x&&f.y&&(o=[f]),s=[f]}i._setTooltip(t,s,o,n)}else i.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,i=n.marker||this.viewTheme.tooltip.marker;if(u.isFunction(i)){var a=t.get("shapeType")||"point",o=t.getDefaultValue("shape")||"circle";return i(l.getShapeFactory(a).getMarkerCfg(o,{color:e.color}),e)}return r({fill:e.color},i)},t}()},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=t.startAngle,n=t.endAngle;return!(!h.isNil(e)&&!h.isNil(n)&&n-e<2*Math.PI)}function s(t,e,n){var r=(t-e)/(n-e);return r>=0&&1>=r}function u(t,e){var n=!1;if(t){if("theta"===t.type){var r=t.start,i=t.end;n=s(e.x,r.x,i.x)&&s(e.y,r.y,i.y)}else{var a=t.invert(e);n=!(0>a.x||0>a.y||a.x>1||a.y>1)}}return n}var l=n(150),c=n(12),h=n(0),f=n(151),p=n(6),d=n(162),g=n(302),v={};h.each(c,function(t,e){var n=h.lowerFirst(e);v[n]=function(e){var n=new t(e);return this.addGeom(n),n}}),t.exports=function(t){function e(e){var n;n=t.call(this,e)||this;var i=r(n);return i._setTheme(),h.each(c,function(t,e){var n=h.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}i(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:p.animate,visible:!0}},n._setTheme=function(){var t=this,e=t.get("theme"),n={},r={};h.isObject(e)?r=e:-1!==h.indexOf(Object.keys(d),e)&&(r=d[e]),h.deepMix(n,p,r),t.set("viewTheme",n)},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=h.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||h.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&h.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},n._createGeom=function(t){var e,n=t.type;this[n]&&(e=this[n](),h.each(t,function(t,n){if(e[n])if(h.isObject(t)&&t.field)if("label"===t)e[n](t.field,t.callback,t.cfg);else{var r;h.each(t,function(t,e){"field"!==e&&(r=t)}),e[n](t.field,r)}else e[n](t)}))},n._initControllers=function(){var t=this,e=t.get("options"),n=t.get("viewTheme"),r=t.get("canvas"),i=new f.Scale({viewTheme:n,defs:e.scales}),a=new f.Coord(e.coord);this.set("scaleController",i),this.set("coordController",a),this.set("axisController",new f.Axis({canvas:r,viewTheme:n})),this.set("guideController",new f.Guide({viewTheme:n,options:e.guides||[]}))},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"),r=this.get("_id"),i=0;t.length>i;i++){var a=t[i];a.set("data",e),a.set("coord",n),a.set("_id",r+"-geom"+i),a.set("keyFields",this.get("keyFields")),a.init()}},n._clearGeoms=function(){for(var t=this,e=t.get("geoms"),n=0;e.length>n;n++){e[n].clear()}},n._removeGeoms=function(){for(var t=this,e=t.get("geoms");e.length>0;){e.shift().destroy()}},n._drawGeoms=function(){this.emit("beforedrawgeoms");for(var t=this.get("geoms"),e=this.get("coord"),n=0;t.length>n;n++){var r=t[n];r.setCoord(e),r.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 r=t;r;){if(r.get("viewId")===e)return!0;r=r.get("parent")}return!1},n.getViewRegion=function(){var t,e,n=this,r=n.get("parent");if(r){var i=r.getViewRegion(),a=n._getViewRegion(i.start,i.end);t=a.start,e=a.end}else t=n.get("start"),e=n.get("end");return{start:t,end:e}},n._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,a=1-r.y,o=r.x,s=1-n.y,u=this.get("padding"),l=h.toAllPadding(u);return{start:{x:i*(e.x-t.x)+t.x+l[3],y:a*(e.y-t.y)+t.y-l[2]},end:{x:o*(e.x-t.x)+t.x-l[1],y:s*(e.y-t.y)+t.y+l[0]}}},n._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion();this.set("coord",t.createCoord(e.start,e.end))},n._renderAxes=function(){var t=this.get("options"),e=t.axes;if(!1!==e){var n=this.get("axisController");n.container=this.get("backPlot"),n.coord=this.get("coord"),n.options=e||{};n.createAxis(this.getXScale(),this.getYScales(),this.get("_id"))}},n._renderGuides=function(){var t=this.get("guideController");if(!h.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 f.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={},r=0;e.length>r;r++){var i=e[r],a="x"===t?i.getXScale():i.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"),n=e.defs,r=0;t.length>r;r++){var i=t[r];if("interval"===i.get("type")){var a=i.getYScale(),o=a.field,s=a.min,u=a.max,l=a.type;n[o]&&n[o].min||"time"===l||(s>0?a.change({min:0}):u>0||a.change({max:0}))}}},n._setCatScalesRange=function(){var t=this,e=t.get("coord"),n=t.get("viewTheme"),r=t.getXScale(),i=t.getYScales(),a=[];r&&a.push(r),a=a.concat(i);var s=e.isPolar&&o(e),u=t.get("scaleController"),l=u.defs;h.each(a,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!l[t.field]||!l[t.field].range)){var r,i=t.values.length;if(1===i)r=[.5,1];else{var a=1,o=0;s?e.isTransposed?(a=n.widthRatio.multiplePie,o=1/i*a,r=[o/2,1-o/2]):r=[0,1-1/i]:(o=1/i*1/2,r=[o,1-o])}t.range=r}})},n.getXScale=function(){var t=this.get("geoms"),e=null;return h.isEmpty(t)||(e=t[0].getXScale()),e},n.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;t.length>n;n++){var r=t[n],i=r.getYScale();i&&-1===h.indexOf(e,i)&&e.push(i)}return e},n.getXY=function(t){var e,n,r=this,i=r.get("coord"),a=r._getScales("x"),o=r._getScales("y");for(var s in t)a[s]&&(e=a[s].scale(t[s])),o[s]&&(n=o[s].scale(t[s]));return h.isNil(e)||h.isNil(n)?null:i.convert({x:e,y:n})},n.getSnapRecords=function(t){var e=this,n=e.get("geoms"),r=[];return h.each(n,function(e){var n,i=e.get("dataArray");h.each(i,function(i){(n=e.findPoint(t,i))&&r.push(n)})}),r},n.addGeom=function(t){var e=this;e.get("geoms").push(t),t.set("view",e),t.set("container",e.get("viewContainer")),t.set("animate",e.get("animate")),t.bindEvents()},n.removeGeom=function(t){var e=this.get("geoms");h.Array.remove(e,t),t.destroy()},n.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=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(i){if(i.sync){var u=s.createScale(t,e);this._syncScale(i,u)}}else{if(i=s.createScale(t,e),i.sync&&r){i=this._getSyncScale(r.createScale(t,e),i)}n[t]=i}return i},n._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return h.each(e,function(e){var n=e.getFieldsForLegend();t=t.concat(n)}),h.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=h.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},n.getFilteredValues=function(t){var e=this.get("scales")[t],n=e.values,r=this._getFilters();return r&&r[t]?n.filter(r[t]):n.slice(0)},n.getFilteredOutValues=function(t){var e=this.get("scales")[t],n=e.values,r=this._getFilters();return r&&r[t]?n.filter(function(){return!r[t].apply(r,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,n=e._getFilters();return n&&(t=t.filter(function(t){var e=!0;return h.each(n,function(n,r){if(n&&!(e=n(t[r],t)))return!1}),e})),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=[];h.each(t,function(t,n){t.key&&e.push(n)}),this.set("keyFields",e)},n.scale=function(t,e){var n=this.get("options"),r=n.scales;return h.isObject(t)?h.mix(r,t):r[t]=e,this._getKeyFields(r),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 u(this.get("coord"),t)&&e.push(this),h.each(n,function(n){n.get("visible")&&u(n.get("coord"),t)&&e.push(n)}),e},n.eachShape=function(t){var e=this,n=e.get("views"),r=e.get("canvas");h.each(n,function(e){e.eachShape(t)});var i=this.get("geoms");return h.each(i,function(n){var r=n.getShapes();h.each(r,function(r){var i=r.get("origin");if(h.isArray(i)){var a=i.map(function(t){return t._origin});t(a,r,n,e)}else{t(i._origin,r,n,e)}})}),r.draw(),this},n.filterShape=function(t){return this.eachShape(function(e,n,r,i){t(e,n,r,i)?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",h.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",h.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},n._onViewChange=function(){this.emit("beforechangedata"),this.set("data",this.get("dataView").rows),this.emit("afterchangedata"),this.repaint()},n.beforeRender=function(){var t=this.get("views");h.each(t,function(t){t.beforeRender()}),this.initView()},n.drawComponents=function(){var t=this.get("views");h.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 r=this.get("isUpdate");h.each(e,function(t){g.execAnimation(t,r)}),g.execAnimation(this,r)}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(){this.set("filteredData",this.execFilter(this.get("data")||[])),this._createCoord(),this.emit("beforeinitgeoms"),this._initGeoms(),this._adjustScale()},n.paint=function(){var t=this.get("views");h.each(t,function(t){t.paint()});var e=this.get("data");h.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},n.changeVisible=function(t,e){var n=this.get("geoms");if(h.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",h.getWrapBehavior(this,"_onViewChange")),this.clear(),t.prototype.destroy.call(this)},e}(l)},function(t,e,n){var r=n(32),i=r.Guide;i.RegionFilter=n(312),t.exports=i},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(0),o=n(22),s=n(184),u=s.Path;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return 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,r){var i=this,a=e.addGroup();a.name="guide-region-filter",r.once("afterpaint",function(){if(!a.get("destroyed")){i._drawShapes(r,a);var e=i._drawClip(t);a.attr({clip:e}),i.set("clip",e),i.get("appendInfo")&&a.setSilent("appendInfo",i.get("appendInfo")),i.set("el",a)}})},n._drawShapes=function(t,e){var n=this,r=[];return t.getAllGeoms().map(function(t){var i=t.getShapes(),o=t.get("type");return n._geomFilter(o)&&i.map(function(t){var i=t.type,o=a.cloneDeep(t.attr());n._adjustDisplay(o);var s=e.addShape(i,{attrs:o});return r.push(s),t}),t}),r},n._drawClip=function(t){var e=this,n=e.parsePoint(t,e.get("start")),r=e.parsePoint(t,e.get("end"));return new u({attrs:{path:[["M",n.x,n.y],["L",r.x,n.y],["L",r.x,r.y],["L",n.x,r.y],["z"]],opacity:1}})},n._adjustDisplay=function(t){var e=this,n=e.get("color");t.fill&&(t.fill=t.fillStyle=n),t.stroke=t.strokeStyle=n},n._geomFilter=function(t){var e=this,n=e.get("apply");return!n||a.contains(n,t)},n.clear=function(){t.prototype.clear.call(this);var e=this.get("clip");e&&e.remove()},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(0),o=n(32),s=n(6),u=o.Legend,l=u.Category;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.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"),i=e.addGroup({x:0,y:0,value:t.value,scaleValue:t.scaleValue,checked:t.checked});i.translate(n,0),i.set("viewId",e.get("viewId"));var o=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var l=a.mix({},t.marker,{x:t.marker.radius,y:0});t.checked||(l.fill&&(l.fill=r),l.stroke&&(l.stroke=r));var c=i.addShape("marker",{type:"marker",attrs:l});c.attr("cursor","pointer"),c.name="legend-marker",u+=c.getBBox().width+s}var h=a.mix({},o,{x:u,y:0,text:this._formatItemValue(t.value)});t.checked||a.mix(h,{fill:r});var f=i.addShape("text",{attrs:h});f.attr("cursor","pointer"),f.name="legend-text",this.get("appendInfo")&&f.setSilent("appendInfo",this.get("appendInfo"));var p=i.getBBox(),d=this.get("itemWidth"),g=i.addShape("rect",{attrs:{x:n,y:0-p.height/2,fill:"#fff",fillOpacity:0,width:d||p.width,height:p.height}});return g.attr("cursor","pointer"),g.setSilent("origin",t),g.name="legend-item",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),i.name="legendGroup",i},n._adjust=function(){var t=this;if(t.get("geom")){t.get("group").attr("matrix")[7]=0;var e=t.get("geom").get("dataArray"),n=this.get("itemsGroup").get("children"),r=0;a.each(n,function(t){var n=e[r],i=n[n.length-1].y;a.isArray(i)&&(i=i[1]);var o=t.getBBox().height;t.translate(t.get("x"),i-o/2),r++}),t.get("autoLayout")&&t._antiCollision(n)}},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){t.addShape("path",{attrs:{path:"M-2,"+e+"L"+2*-s.legend.legendMargin+","+(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,r=e.get("chart").get("plotRange"),i=r.tl.y,a=Math.abs(i-r.bl.y),o=t[0].getBBox().height,s=Number.MIN_VALUE,u=0,l=t.map(function(t){var e=t.attr("matrix")[7];return e>u&&(u=e),s>e&&(s=e),{size:t.getBBox().height,targets:[e-i]}});s-=i;for(var c=0;n;){for(var h=0;l.length>h;h++){var f=l[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,c=l.length;c--;)if(c>0){var d=l[c-1],g=l[c];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),l.splice(c,1),n=!0)}}c=0;var v=this.get("itemsGroup").addGroup();l.forEach(function(n){var r=i+o;n.targets.forEach(function(){var i=t[c].attr("matrix")[7],a=n.pos+r-o/2;Math.abs(i-a)>o/2&&e._adjustDenote(v,a,i-e.get("group").attr("matrix")[7]/2),t[c].translate(0,-i),t[c].translate(0,a),r+=o,c++})})}},e}(l)},function(t,e,n){var r=n(0),i=n(18),a=i.Group,o=function t(e){t.superclass.constructor.call(this,e)};r.extend(o,a),r.augment(o,{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,e=t.get("background");if(e){var n=this.get("canvas"),i=t.get("width")||n.get("width"),a=t.get("height")||n.get("height"),o={x:0,y:0,width:i,height:a},s=t.get("backgroundShape");s?s.attr(o):(s=this.addShape("rect",{attrs:r.mix(o,e)}),this.set("backgroundShape",s))}},_renderPlotBackground:function(){var t=this,e=t.get("plotBackground");if(e){var n=t.get("plotRange"),i=n.br.x-n.bl.x,a=n.br.y-n.tr.y,o=n.tl,s={x:o.x,y:o.y,width:i,height:a},u=t.get("plotBackShape");u?u.attr(s):(e.image?(s.img=e.image,u=t.addShape("image",{attrs:s})):(r.mix(s,e),u=t.addShape("rect",{attrs:s})),t.set("plotBackShape",u))}},_convert:function(t,e){if(r.isString(t))if("auto"===t)t=0;else if(t.includes("%")){var n=this.get("canvas"),i=this.get("width")||n.get("width"),a=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*i:t*a}return t},_calculateRange:function(){var t=this,e=t.get("plotRange");r.isNil(e)&&(e={});var n=t.get("padding"),i=this.get("canvas"),a=t.get("width")||i.get("width"),o=t.get("height")||i.get("height"),s=r.toAllPadding(n),u=t._convert(s[0],!1),l=t._convert(s[1],!0),c=t._convert(s[2],!1),h=t._convert(s[3],!0),f=Math.min(h,a-l),p=Math.max(h,a-l),d=Math.min(o-c,u),g=Math.max(o-c,u);e.tl={x:f,y:d},e.tr={x:p,y:d},e.bl={x:f,y:g},e.br={x:p,y:g},e.cc={x:(p+f)/2,y:(g+d)/2},this.set("plotRange",e)},repaint:function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this}}),t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var o=n(51);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},n.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o={x:.5,y:.5},s=a(o,.5-i,r),u=5*Math.PI/4,l=1*Math.PI/4;return{start:a(s,i,u),end:a(s,i,l)}},n.generateFacets=function(t){var e=this,n=e.fields,r=n[0];if(!r)throw"Please specify for the field for facet!";var i=e.getFieldValues(r,t),a=i.length,o=[];return i.forEach(function(n,s){var u=[{field:r,value:n,values:i}],l=e.getFilter(u),c=t.filter(l),h={type:e.type,colValue:n,colField:r,colIndex:s,cols:a,rows:1,rowIndex:0,data:c,region:e.getRegion(a,s)};o.push(h)}),o},e}(o)},function(t,e,n){var r=n(0),i=n(49),a={};a.Rect=n(156),a.List=n(155),a.Circle=n(315),a.Tree=n(319),a.Mirror=n(318),a.Matrix=n(317),i.prototype.facet=function(t,e){var n=a[r.upperFirst(t)];if(!n)throw Error("Not support such type of facets as: "+t);var i=this.get("facets");i&&i.destroy(),e.chart=this,this.set("facets",new n(e))},t.exports=a},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(156);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="matrix",e.showTitle=!1,e},n.generateFacets=function(t){for(var e=this,n=e.fields,r=n.length,i=r,a=[],o=0;i>o;o++)for(var s=n[o],u=0;r>u;u++){var l=n[u],c={type:e.type,colValue:s,rowValue:l,colField:s,rowField:l,colIndex:o,rowIndex:u,cols:i,rows:r,data:t,region:e.getRegion(r,i,o,u)};a.push(c)}return a},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},n.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(a)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(155);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="mirror",this.transpose=!1,e},n.init=function(){var e=this;e.transpose?(e.cols=2,e.rows=1):(e.cols=1,e.rows=2),t.prototype.init.call(this)},n.beforeProcessView=function(t,e){this.transpose?e.colIndex%2==0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!=0&&t.coord().scale(1,-1)},n.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},n.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},n.setYAxis=function(){},e}(a)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(51),o=n(0),s=o.assign;t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},n.generateFacets=function(t){var e=this;if(!e.fields.length)throw"Please specify for the fields for facet!";var n=[],r=e.getRootFacet(t);return n.push(r),r.children=e.getChildFacets(t,1,n),e.setRegion(n),n},n.getRootFacet=function(t){var e=this;return{type:e.type,rows:e.getRows(),rowIndex:0,colIndex:0,colValue:e.rootTitle,data:t}},n.getRows=function(){return this.fields.length+1},n.getChildFacets=function(t,e,n){var r=this,i=r.fields;if(i.length>=e){var a=[],o=i[e-1],s=r.getFieldValues(o,t);return s.forEach(function(i,u){var l=[{field:o,value:i,values:s}],c=r.getFilter(l),h=t.filter(c);if(h.length){var f={type:r.type,colValue:i,colField:o,colIndex:u,rows:r.getRows(),rowIndex:e,data:h,children:r.getChildFacets(h,e+1,n)};a.push(f),n.push(f)}}),a}},n.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach(function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)})},n.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach(function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)}),n.forEach(function(t){t.cols=n.length});for(var i=e.fields.length,a=i-1;a>=0;a--)for(var o=e.getFacetsByLevel(t,a),s=0;o.length>s;s++){var u=o[s];e.isLeaf(u)||(u.originColIndex=u.colIndex,u.colIndex=e.getRegionIndex(u.children),u.cols=n.length)}},n.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(t){t.rowIndex===e&&n.push(t)}),n},n.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},n.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].colIndex-e.colIndex)/2+e.colIndex},n.isLeaf=function(t){return!t.children||!t.children.length},n.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},n.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},n.onPaint=function(){t.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},n.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach(function(t){if(!n.isLeaf(t)){n._addFacetLines(t,t.children,r)}})},n._addFacetLines=function(t,e,n){var r=this,i=t.view,a=i.getViewRegion(),o={x:a.start.x+(a.end.x-a.start.x)/2,y:a.start.y};e.forEach(function(t){var e=t.view.getViewRegion(),i={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},a={x:o.x,y:o.y+(i.y-o.y)/2};r._drawLine([o,a,{x:i.x,y:a.y},i],n)})},n._getPath=function(t){var e=this,n=[];return e.lineSmooth?(n.push(["M",t[0].x,t[0].y]),n.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(t,e){n.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])}),n},n._drawLine=function(t,e){var n=this,r=n._getPath(t);e.addShape("path",{attrs:s({path:r},n.line)})},e}(a)},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(12),s=n(158),u=n(0);n(335);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,u.assign(r(n),s),n}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},n.draw=function(t,e,n,r){var i=this,a=this.getDrawCfg(t[0]);i._applyViewThemeShapeStyle(a,a.shape,n);var o=this.splitData(t);a.origin=t,u.each(o,function(t,o){a.splitedIndex=o;var s=t.map(function(t){return t.points});a.points=s;var u=n.drawShape(a.shape,a,e);i.appendShapeInfo(u,r+o)})},e}(o),c=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(l);l.Stack=c,o.Area=l,o.AreaStack=c,t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(12);n(336);var o=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(a);a.Edge=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(78),o=a.ColorUtil,s=n(12),u=n(0),l=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e.paletteCache={},e},n._prepareRange=function(){var t=this,e=t.get("mappedData"),n=t.getAttr("color"),r=n.field,i=1/0,a=-1/0;e.forEach(function(t){var e=t._origin[r];e>a&&(a=e),i>e&&(i=e)}),i===a&&(i=a-1),t.set("valueRange",[i,a])},n._prepareSize=function(){var t=this,e=t.getDefaultValue("size");u.isNumber(e)||(e=t._getDefaultSize());var n=t.get("styleOptions"),r=n&&u.isObject(n.style)?n.style.blur:null;u.isFinite(r)&&null!==r||(r=e/2),t.set("heatmapSize",{blur:r,radius:e})},n._getDefaultSize=function(){var t=this,e=t.getAttr("position"),n=t.get("coord");return Math.min(n.width/(4*e.scales[0].ticks.length),n.height/(4*e.scales[1].ticks.length))},n._colorize=function(t){for(var e=this,n=e.getAttr("color"),r=t.data,i=e.get("paletteCache"),a=3;r.length>a;a+=4){var s=r[a];if(s){var u=void 0;i[s]?u=i[s]:(u=o.rgb2arr(n.gradient(s/256)),i[s]=u),r[a-3]=u[0],r[a-2]=u[1],r[a-1]=u[2],r[a]=s}}},n._prepareGreyScaleBlurredCircle=function(t,e){var n=this,r=n.get("grayScaleBlurredCanvas");r||(r=document.createElement("canvas"),n.set("grayScaleBlurredCanvas",r));var i=t+e,a=r.getContext("2d");r.width=r.height=2*i,a.clearRect(0,0,r.width,r.height),a.shadowOffsetX=a.shadowOffsetY=2*i,a.shadowBlur=e,a.shadowColor="black",a.beginPath(),a.arc(-i,-i,t,0,2*Math.PI,!0),a.closePath(),a.fill()},n._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this,o=a.get("grayScaleBlurredCanvas");i.globalAlpha=r,i.drawImage(o,t-n,e-n)},n._getShadowCanvasCtx=function(){var t=this,e=t.get("shadowCanvas");e||(e=document.createElement("canvas"),t.set("shadowCanvas",e));var n=t.get("coord");return n&&(e.width=n.width,e.height=n.height),e.getContext("2d")},n._clearShadowCanvasCtx=function(){var t=this._getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},n._getImageShape=function(){var t=this,e=t.get("imageShape");return e||(e=t.get("container").addShape("Image",{}),t.set("imageShape",e),e)},n.clear=function(){this._clearShadowCanvasCtx(),t.prototype.clear.call(this)},n.drawWithRange=function(t){var e=this,n=e.get("coord"),r=n.start,i=n.end,a=n.width,o=n.height,s=e.getAttr("color").field,u=e.get("heatmapSize");e._clearShadowCanvasCtx();var l=e._getShadowCanvasCtx(),c=e.get("mappedData");t&&(c=c.filter(function(e){return t[1]>=e._origin[s]&&e._origin[s]>=t[0]}));for(var h=e._getScale(s),f=0;c.length>f;f++){var p=c[f],d=e.getDrawCfg(p);e._drawGrayScaleBlurredCircle(d.x-r.x,d.y-i.y,u.radius+u.blur,h.scale(p._origin[s]),l)}var g=l.getImageData(0,0,a,o);e._clearShadowCanvasCtx(),e._colorize(g),l.putImageData(g,0,0);var v=e._getImageShape();v.attr("x",r.x),v.attr("y",i.y),v.attr("width",a),v.attr("height",o),v.attr("img",l.canvas)},n.draw=function(t){var e=this;e.set("mappedData",t),e._prepareRange(),e._prepareSize();var n=e.get("heatmapSize");e._prepareGreyScaleBlurredCircle(n.radius,n.blur),e.drawWithRange(e.get("valueRange"))},e}(s);s.Heatmap=l,t.exports=l},function(t,e,n){var r=n(12);r.Point=n(332),r.PointJitter=r.Point.Jitter,r.PointStack=r.Point.Stack,r.Path=n(160),r.Line=n(328),r.LineStack=r.Line.Stack,r.Interval=n(324),r.IntervalStack=r.Interval.Stack,r.IntervalDodge=r.Interval.Dodge,r.IntervalSymmetric=r.Interval.Symmetric,r.Area=n(320),r.AreaStack=r.Area.Stack,r.Polygon=n(333),r.Schema=n(334),r.SchemaDodge=r.Schema.Dodge,r.Edge=n(321),r.Heatmap=n(322),r.Venn=n(346),r.Violin=n(347),t.exports=r},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(12),s=n(0),u=n(83);n(337);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,s.assign(r(n),u),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}(o),c=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(l),h=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(l),f=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(l);l.Stack=c,l.Dodge=h,l.Symmetric=f,o.Interval=l,o.IntervalStack=c,o.IntervalDodge=h,o.IntervalSymmetric=f,t.exports=l},function(t,e,n){var r=n(82),i=n(157),a=n(327),o=n(326);t.exports={getLabelsClass:function(t,e){var n=r;return"polar"===t?n=i:"theta"===t?n=a:"interval"!==e&&"polygon"!==e||(n=o),n}}},function(t,e,n){var r=n(0),i=n(82),a=function t(e){t.superclass.constructor.call(this,e)};r.extend(a,i),r.augment(a,{setLabelPosition:function(t,e,n,i){r.isFunction(i)&&(i=i(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]),l=(s.x-u.x)/2*(o?-1:1),c=(s.y-u.y)/2*(o?-1:1);switch(i){case"right":o?(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"center"):(t.x-=l,t.y+=c,t.textAlign=t.textAlign||"left");break;case"left":o?(t.x-=l,t.y-=c,t.textAlign=t.textAlign||"center"):(t.x+=l,t.y+=c,t.textAlign=t.textAlign||"right");break;case"bottom":o?(t.x-=2*l,t.textAlign=t.textAlign||"left"):(t.y+=2*c,t.textAlign=t.textAlign||"center");break;case"middle":o?t.x-=l:t.y+=c,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 r(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}function i(t,e,n,r,i){var a,o=!0,s=n.start,u=n.end,l=Math.min(s.y,u.y),c=Math.abs(s.y-u.y),h=0,f=Number.MIN_VALUE,p=t.map(function(t){return t.y>h&&(h=t.y),f>t.y&&(f=t.y),{size:e,targets:[t.y-l]}});for(f-=l,h-l>c&&(c=h-l);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),c-t.size)}),o=!1,a=p.length;a--;)if(a>0){var d=p[a-1],g=p[a];d.pos+d.size>g.pos&&(d.size+=g.size,d.targets=d.targets.concat(g.targets),d.pos+d.size>c&&(d.pos=c-d.size),p.splice(a,1),o=!0)}a=0,p.forEach(function(n){var r=l+e/2;n.targets.forEach(function(){t[a].y=n.pos+r,r+=e,a++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(n>e)t.x=r.x;else{var a=Math.sqrt(e-n);t.x=i?r.x+a:r.x-a}})}var a=n(0),o=n(157),s=n(27),u=n(6),l=function t(e){t.superclass.constructor.call(this,e)};a.extend(l,o),a.augment(l,{getDefaultCfg:function(){return{label:u.thetaLabels}},getDefaultOffset:function(t){return t.offset||0},adjustItems:function(t){var e=this,n=t[0]?t[0].offset:0;return n>0&&(t=e._distribute(t,n)),l.superclass.adjustItems.call(this,t)},_distribute:function(t,e){var n=this,r=n.get("coord"),a=r.getRadius(),o=n.get("label").labelHeight,s=r.getCenter(),u=a+e,l=2*u+2*o,c={start:r.start,end:r.end},h=n.get("geom");if(h){var f=h.get("view");c=f.getViewRegion()}var p=[[],[]];return t.forEach(function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))}),p.forEach(function(t,e){var n=parseInt(l/o,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}),i(t,o,c,s,e)}),p[0].concat(p[1])},lineToLabel:function(t){var e=this,n=e.get("coord"),i=n.getRadius(),a=t.offset,o=t.orignAngle||t.angle,s=n.getCenter(),u=r(s,o,i+2.5),l=r(s,o,i+a/2);t.labelLine||(t.labelLine=e.get("label").labelLine||{}),t.labelLine.path=["M"+u.x,u.y+" Q"+l.x,l.y+" "+t.x,t.y].join(",")},getLabelRotate:function(t,e){var n;return 0>e&&(n=180*t/Math.PI,n>90&&(n-=180),-90>n&&(n+=180)),n/180*Math.PI},getLabelAlign:function(t){var e,n=this,r=n.get("coord"),i=r.getCenter();return e=t.angle>Math.PI/2||i.x>t.x?"right":"left",n.getDefaultOffset(t)>0||(e="right"===e?"left":"right"),e},getArcPoint:function(t){return t},getPointAngle:function(t){var e=this,n=e.get("coord"),r={x:a.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};e.transLabelPoint(r);var i={x:a.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};e.transLabelPoint(i);var o,u=s.getPointAngle(n,r);if(t.points&&t.points[0].y===t.points[1].y)o=u;else{var l=s.getPointAngle(n,i);l>u||(l+=2*Math.PI),o=u+(l-u)/2}return o},getCirclePoint:function(t,e){var n=this,i=n.get("coord"),a=i.getCenter(),o=i.getRadius()+e,s=r(a,t,o);return s.angle=t,s.r=o,s}}),t.exports=l},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(12),o=n(160);n(338);var s=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(o),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s);s.Stack=u,a.Line=s,a.LineStack=u,t.exports=s},function(t,e,n){function r(t,e){if(o.isNil(t)||o.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return o.isEqual(n,r)}function i(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return o.each(e,function(e,i){if(!r(e,t[i]))return n=!0,!1}),n}function a(t,e){var n={};return o.each(t,function(t,r){var i=e.attr(r);o.isArray(i)&&(i=o.cloneDeep(i)),n[r]=i}),n}var o=n(0),s=n(159);t.exports={_isAllowActive:function(){var t=this.get("allowActive");if(!o.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=this,n=t.shape,r=e.get("shapeContainer");n&&r.contain(n)&&e._isAllowActive()&&e.setShapesActived(n)},_onMouseleave:function(){var t=this,e=t.get("view"),n=e.get("canvas");t.get("activeShapes")&&(t.clearActivedShapes(),n.draw())},_bindActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.on(n+":mouseenter",o.wrapBehavior(t,"_onMouseenter")),e.on(n+":mouseleave",o.wrapBehavior(t,"_onMouseleave"))},_offActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.off(n+":mouseenter",o.getWrapBehavior(t,"_onMouseenter")),e.off(n+":mouseleave",o.getWrapBehavior(t,"_onMouseleave"))},_setActiveShape:function(t){var e=this,n=e.get("activedOptions")||{},r=t.get("origin"),i=r.shape||e.getDefaultValue("shape");o.isArray(i)&&(i=i[0]);var u=e.get("shapeFactory"),l=o.mix({},t.attr(),{origin:r}),c=u.getActiveCfg(i,l);n.style&&o.mix(c,n.style),t.setSilent("_originActiveAttrs",a(c,t)),n.animate?t.animate(c,300):t.attr(c),s.toFront(t)},setShapesActived:function(t){var e=this;o.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(i(n,t)){var r=e.get("view"),a=r.get("canvas"),s=e.get("activedOptions");s&&s.highlight?(o.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),o.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&e._setActiveShape(t)})),e.set("activeShapes",t),a.draw()}},clearActivedShapes:function(){var t=this,e=t.get("shapeContainer"),n=t.get("activedOptions"),r=n&&n.animate;if(e&&!e.get("destroyed")){var i=t.get("activeShapes");o.each(i,function(t){var e=t.get("_originActiveAttrs");r?(t.stopAnimate(),t.animate(e,300)):t.attr(e),s.resetZIndex(t),t.setSilent("_originActiveAttrs",null)});if(t.get("preHighlightShapes")){var a=e.get("children");o.each(a,function(t){var e=t.get("_originActiveAttrs");e&&(r?(t.stopAnimate(),t.animate(e,300)):t.attr(e),s.resetZIndex(t),t.setSilent("_originActiveAttrs",null))})}t.set("activeShapes",null),t.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this,n=e.get("shapeContainer"),r=[];if(n){var i=e.getXScale().field,a=e.getShapes(),s=e._getOriginByPoint(t);o.each(a,function(t){var e=t.get("origin");if(t.get("visible")&&e){e._origin[i]===s[i]&&r.push(t)}})}return r},getSingleShapeByPoint:function(t){var e,n=this,r=n.get("shapeContainer"),i=r.get("canvas"),a=i.get("pixelRatio");if(r&&(e=r.getShape(t.x*a,t.y*a)),e&&e.get("origin"))return e},highlightShapes:function(t,e){var n=this;o.isArray(t)||(t=[t]);var r=n.get("activeShapes");if(i(r,t)){r&&n.clearActivedShapes();var u=n.getShapes(),l=n.get("activedOptions"),c=l&&l.animate,h=l&&l.style;o.each(u,function(n){var r={};n.stopAnimate(),-1!==o.indexOf(t,n)?(o.mix(r,h,e),s.toFront(n)):(o.mix(r,{fillOpacity:.3,opacity:.3}),s.resetZIndex(n)),n.setSilent("_originActiveAttrs",a(r,n)),c?n.animate(r,300):n.attr(r)}),n.set("preHighlightShapes",t),n.set("activeShapes",t)}}}},function(t,e,n){function r(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isEqual(n,r)}function i(t,e){var n={};return a.each(t,function(t,r){"transform"===r&&(r="matrix");var i=e.attr(r);a.isArray(i)&&(i=a.cloneDeep(i)),n[r]=i}),n}var a=n(0),o=n(159);t.exports={_isAllowSelect:function(){var t=this.get("allowSelect");if(!a.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),r=n&&n.type;return"interval"===e&&"theta"===r},_onClick:function(t){var e=this;if(e._isAllowSelect()){var n=t.shape,r=e.get("shapeContainer");n&&r.contain(n)&&e.setShapeSelected(n)}},_bindSelectedAction:function(){var t=this;t.get("view").on(t.get("type")+":click",a.wrapBehavior(t,"_onClick"))},_offSelectedAction:function(){var t=this;t.get("view").off(t.get("type")+":click",a.getWrapBehavior(t,"_onClick"))},_setShapeStatus:function(t,e){var n=this,r=n.get("view"),s=n.get("selectedOptions")||{},u=!1!==s.animate,l=r.get("canvas");t.set("selected",e);var c=t.get("origin");if(e){var h=c.shape||n.getDefaultValue("shape");a.isArray(h)&&(h=h[0]);var f=n.get("shapeFactory"),p=a.mix({geom:n,point:c},s),d=f.getSelectedCfg(h,p);a.mix(d,p.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",i(d,t))),s.toFront&&o.toFront(t),u?t.animate(d,300):(t.attr(d),l.draw())}else{var g=t.get("_originAttrs");s.toFront&&o.resetZIndex(t),t.set("_originAttrs",null),u?t.animate(g,300):(t.attr(g),l.draw())}},setShapeSelected:function(t){var e=this,n=e._getSelectedShapes(),i=e.get("selectedOptions")||{},o=!1!==i.cancelable;if("multiple"===i.mode)-1===a.indexOf(n,t)?(n.push(t),e._setShapeStatus(t,!0)):o&&(a.Array.remove(n,t),e._setShapeStatus(t,!1));else{var s=n[0];o&&(t=r(s,t)?null:t),r(s,t)||(s&&e._setShapeStatus(s,!1),t&&e._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();a.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return a.each(n,function(n){var r=n.get("origin");r&&r._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this,e=t.getShapes(),n=[];return a.each(e,function(t){t.get("selected")&&n.push(t)}),t.set("selectedShapes",n),n}}},function(t,e,n){function r(t){return t.alias||t.field}var i=n(0),a=n(6),o=a.defaultColor;t.exports={_getIntervalSize:function(t){var e=null,n=this.get("type"),r=this.get("coord");if(r.isRect&&("interval"===n||"schema"===n)){e=this.getSize(t._origin);var a=r.isTransposed?"y":"x";if(i.isArray(t[a])){e=Math.abs(t[a][1]-t[a][0])>e?null:e}}return e},_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:i.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t),a=i.x;return this.isInCircle()&&a>(1+r.rangeMax())/2&&(a=r.rangeMin()),e=r.invert(a),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,a=this.get("coord"),o=a.invert(t),s=e.invert(o.x),u=n.invert(o.y),l={};return l[r]=s,l[i]=u,l},_getScale:function(t){var e=this,n=e.get("scales"),r=null;return i.each(n,function(e){if(e.field===t)return r=e,!1}),r},_getTipValueScale:function(){var t,e=this.getAttrsForLegend();i.each(e,function(e){var n=e.getScale(e.type);if(n.isLinear)return t=n,!1});var n=this.getXScale(),r=this.getYScale();return!t&&r&&"..y"===r.field?n:t||r||n},_getTipTitleScale:function(t){var e=this;if(t)return e._getScale(t);var n,r=e.getAttr("position"),a=r.getFields();return i.each(a,function(t){if(!t.includes(".."))return n=t,!1}),e._getScale(n)},_filterValue:function(t,e){var n=this.get("coord"),r=this.getYScale(),a=r.field,o=n.invert(e),s=o.y;s=r.invert(s);var u=t[t.length-1];return i.each(t,function(t){var e=t._origin;if(s>=e[a][0]&&e[a][1]>=s)return u=t,!1}),u},getXDistance:function(){var t=this,e=t.get("xDistance");if(!e){var n=t.getXScale();if(n.isCategory)e=1;else{var r=n.values,a=n.translate(r[0]),o=a;i.each(r,function(t){t=n.translate(t),a>t&&(a=t),t>o&&(o=t)});e=(o-a)/(r.length-1)}t.set("xDistance",e)}return e},findPoint:function(t,e){var n=this,r=n.get("type"),a=n.getXScale(),o=n.getYScale(),s=a.field,u=o.field,l=null;if(i.indexOf(["heatmap","point"],r)>-1){var c=n.get("coord"),h=c.invert(t),f=a.invert(h.x),p=o.invert(h.y),d=1/0;return i.each(e,function(t){var e=Math.pow(t._origin[s]-f,2)+Math.pow(t._origin[u]-p,2);d>e&&(d=e,l=t)}),l}var g=e[0],v=e[e.length-1];if(!g)return l;var y=n._getScaleValueByPoint(t),m=g._origin[s],x=g._origin[u],b=v._origin[s],_=o.isLinear&&i.isArray(x);if(i.isArray(m))i.each(e,function(t){var e=t._origin;if(a.translate(e[s][0])<=y&&a.translate(e[s][1])>=y){if(!_)return l=t,!1;i.isArray(l)||(l=[]),l.push(t)}}),i.isArray(l)&&(l=this._filterValue(l,t));else{var w;if(a.isLinear||"timeCat"===a.type){if((y>a.translate(b)||ya.max||a.min>y))return null;for(var M,S=0,A=e.length-1;A>=S;){M=Math.floor((S+A)/2);var C=e[M]._origin[s];if(n._snapEqual(C,y,a))return e[M];a.translate(C)>a.translate(y)?(0===A&&(v=e[0]),A=M-1):(S=M+1,v=e[M],w=e[M+1])}}else i.each(e,function(t,r){var o=t._origin;if(n._snapEqual(o[s],y,a)){if(!_)return l=t,!1;i.isArray(l)||(l=[]),l.push(t)}else a.translate(o[s])>y||(v=t,w=e[r+1])}),i.isArray(l)&&(l=this._filterValue(l,t));v&&w&&Math.abs(a.translate(v._origin[s])-y)>Math.abs(a.translate(w._origin[s])-y)&&(v=w)}var P=n.getXDistance();return l||Math.abs(a.translate(v._origin[s])-y)>P/2||(l=v),l},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){n=r.getText(t[r.field])}else if("heatmap"===this.get("type")){var i=this.getXScale(),a=this.getYScale(),o=i.getText(t[i.field]),s=a.getText(t[a.field]);n="( "+o+", "+s+" )"}return n},getTipValue:function(t,e){var n,r=e.field,a=t.key;if(n=t[r],i.isArray(n)){var o=[];i.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&&i.each(a,function(t){return n=t,!1}),n){e=n.getText(t[n.field])}else{e=r(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,r){if(!i.isNil(n)&&""!==n){var a={title:c,point:t,name:e||c,value:n,color:t.color||o,marker:!0};a.size=u._getIntervalSize(t),f.push(i.mix({},a,r))}}var a,s,u=this,l=t._origin,c=u.getTipTitle(l,e),h=u.get("tooltipCfg"),f=[];if(h){var p=h.fields,d=h.cfg,g=[];if(i.each(p,function(t){g.push(l[t])}),d){i.isFunction(d)&&(d=d.apply(null,g));var v=i.mix({},{point:t,title:c,color:t.color||o,marker:!0},d);v.size=u._getIntervalSize(t),f.push(v)}else i.each(p,function(t){if(!i.isNil(l[t])){var e=u._getScale(t);a=r(e),s=e.getText(l[t]),n(a,s)}})}else{var y=u._getTipValueScale();i.isNil(l[y.field])||(s=u.getTipValue(l,y),a=u.getTipName(l),n(a,s))}return f},isShareTooltip:function(){var t,e=this.get("shareTooltip"),n=this.get("type"),r=this.get("view");if(t=r.get("parent")?r.get("parent").get("options"):r.get("options"),"interval"===n){var a=this.get("coord"),o=a.type;("theta"===o||"polar"===o&&a.isTransposed)&&(e=!1)}else this.getYScale()&&!i.inArray(["contour","point","polygon","edge"],n)||(e=!1);return t.tooltip&&i.isBoolean(t.tooltip.shared)&&(e=t.tooltip.shared),e}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(12),o=n(0);n(339);var s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},n.drawPoint=function(t,e,n,r){var i=this,a=t.shape,s=i.getDrawCfg(t);i._applyViewThemeShapeStyle(s,a,n);var u;if(o.isArray(t.y)){var l=i.hasStack();o.each(t.y,function(t,o){s.y=t,s.yIndex=o,l&&0===o||(u=n.drawShape(a,s,e),i.appendShapeInfo(u,r+o))})}else o.isNil(t.y)||(u=n.drawShape(a,s,e),i.appendShapeInfo(u,r))},e}(a),u=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(s),l=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s);s.Jitter=u,s.Stack=l,a.Point=s,a.PointJitter=u,a.PointStack=l,t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(12),o=n(0);n(340);var s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this,a=r.x,s=r.y;if(!o.isArray(a)||!o.isArray(s)){var u=i.getXScale(),l=i.getYScale(),c=u.values?u.values.length:u.ticks.length,h=l.values?l.values.length:l.ticks.length,f=.5/c,p=.5/h;u.isCategory&&l.isCategory?(a=[a-f,a-f,a+f,a+f],s=[s-p,s+p,s+p,s-p]):o.isArray(a)?(n=a,a=[n[0],n[0],n[1],n[1]],s=[s-p/2,s+p/2,s+p/2,s-p/2]):o.isArray(s)&&(n=s,s=[n[0],n[1],n[1],n[0]],a=[a-f/2,a-f/2,a+f/2,a+f/2]),r.x=a,r.y=s}return r},e}(a);a.Polygon=s,t.exports=s},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(12),s=n(0),u=n(83);n(341);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,s.assign(r(n),u),n}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",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}(o),c=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(l);l.Dodge=c,o.Schema=l,o.SchemaDodge=c,t.exports=l},function(t,e,n){function r(t){var e=p.shape.hollowArea,n=l.mix({},e,t.style);return f.addStrokeAttrs(n,t),l.isNumber(t.size)&&(n.lineWidth=t.size),n}function i(t){var e=p.shape.area,n=l.mix({},e,t.style);return f.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),l.isNumber(t.size)&&(n.lineWidth=t.size),n}function a(t,e,n){var r=[],i=[],a=[],o=[],s=t.isInCircle;return l.each(t.points,function(t){a.push(t[1]),o.push(t[0])}),o=o.reverse(),i.push(a,o),l.each(i,function(i,a){var o=[];i=n.parsePoints(i);var u=i[0];s&&i.push({x:u.x,y:u.y}),o=e?h.getSplinePath(i,!1,t.constraint):h.getLinePath(i,!1),a>0&&(o[0][0]="L"),r=r.concat(o)}),r.push(["Z"]),r}function o(t){return{symbol:function(t,e,n){return[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},radius:5,fill:t.color,fillOpacity:.6}}function s(t,e){if("line"===t||"smoothLine"===t){return{lineWidth:(e.lineWidth||0)+1}}var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}function u(t,e,n){var r=t._coord,i=r.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:l.mix({x:i.x,y:i.y,r:2,fill:e.color},e.style)})}var l=n(0),c=n(13),h=n(27),f=n(25),p=n(6),d=c.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,r=t.y,i=t.y0;return r=l.isArray(r)?r:[i,r],l.each(r,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return s(t,e)},drawShape:function(t,e,n){var r,i=this.getShape(t);return r=1===e.points.length&&p.showSinglePoint?u(this,e,n):i.draw(e,n),r&&(r.set("origin",e.origin),r._id=e.splitedIndex?e._id+e.splitedIndex:e._id,r.name=this.name),r},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});c.registerShape("area","area",{draw:function(t,e){var n=i(t),r=a(t,!1,this);return e.addShape("path",{attrs:l.mix(n,{path:r})})},getMarkerCfg:function(t){return o(t)}}),c.registerShape("area","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 o=a(t,!0,this);return e.addShape("path",{attrs:l.mix(n,{path:o})})},getMarkerCfg:function(t){return o(t)}}),c.registerShape("area","line",{draw:function(t,e){var n=r(t),i=a(t,!1,this);return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),c.registerShape("area","smoothLine",{draw:function(t,e){var n=r(t),i=a(t,!0,this);return e.addShape("path",{attrs:l.mix(n,{path:i})})},getMarkerCfg:function(t){return o(t)}}),d.spline=d.smooth,t.exports=d},function(t,e,n){function r(t){var e=p.shape.edge,n=c.mix({},e,t.style);return f.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function i(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var r=["C"];return c.each(n,function(t){r.push(t.x,t.y)}),r}function a(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return c.each(n,function(t){r.push(t.x,t.y)}),r}function o(t,e){var n=i(t,e),r=[["M",t.x,t.y]];return r.push(n),r}function s(t,e,n){var r=a(e,n),i=[["M",t.x,t.y]];return i.push(r),i}function u(t,e){var n=a(t[1],e),r=a(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}function l(t,e){var n=[];n.push({y:t.y*(1-g)+e.y*g,x:t.x}),n.push({y:t.y*(1-g)+e.y*g,x:e.x}),n.push(e);var r=[["M",t.x,t.y]];return c.each(n,function(t){r.push(["L",t.x,t.y])}),r}var c=n(0),h=n(13),f=n(25),p=n(6),d=n(27),g=1/3,v=h.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return f.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});h.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),i=r(t),a=d.getLinePath(n);return e.addShape("path",{attrs:c.mix(i,{path:a})})},getMarkerCfg:function(t){return c.mix({symbol:"circle",radius:4.5},r(t))}}),h.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,i=r(t),a=l(n[0],n[1]);return a=this.parsePath(a),e.addShape("path",{attrs:c.mix(i,{path:a})})},getMarkerCfg:function(t){return c.mix({symbol:"circle",radius:4.5},r(t))}}),h.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,i=r(t),a=o(n[0],n[1]);return a=this.parsePath(a),e.addShape("path",{attrs:c.mix(i,{path:a})})},getMarkerCfg:function(t){return c.mix({symbol:"circle",radius:4.5},r(t))}}),h.registerShape("edge","arc",{draw:function(t,e){var n,a,o=t.points,l=o.length>2?"weight":"normal",h=r(t);if(t.isInCircle){var f={x:0,y:1};"normal"===l?a=s(o[0],o[1],f):(h.fill=h.stroke,a=u(o,f)),a=this.parsePath(a),n=e.addShape("path",{attrs:c.mix(h,{path:a})})}else if("normal"===l)o=this.parsePoints(o),n=e.addShape("arc",{attrs:c.mix(h,{x:(o[1].x+o[0].x)/2,y:o[0].y,r:Math.abs(o[1].x-o[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{a=[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y]];var p=i(o[1],o[3]),d=i(o[2],o[0]);a.push(p),a.push(["L",o[3].x,o[3].y]),a.push(["L",o[2].x,o[2].y]),a.push(d),a.push(["Z"]),a=this.parsePath(a),h.fill=h.stroke,n=e.addShape("path",{attrs:c.mix(h,{path:a})})}return n},getMarkerCfg:function(t){return c.mix({symbol:"circle",radius:4.5},r(t))}}),t.exports=v},function(t,e,n){function r(t,e){var n=t.x,r=t.y,i=t.y0,a=t.size,o=i,s=r;v.isArray(r)&&(s=r[1],o=r[0]);var u,l;v.isArray(n)?(u=n[0],l=n[1]):(u=n-a/2,l=n+a/2);var c=[];return c.push({x:u,y:o},{x:u,y:s}),e?c.push({x:l,y:(s+o)/2}):c.push({x:l,y:s},{x:l,y:o}),c}function i(t){for(var e=[],n=0;t.length>n;n++){var r=t[n];if(r){e.push([0===n?"M":"L",r.x,r.y])}}var i=t[0];return e.push(["L",i.x,i.y]),e.push(["z"]),e}function a(t){var e=t.x,n=t.y,r=t.y0,i=[];return v.isArray(n)?v.each(n,function(t,n){i.push({x:v.isArray(e)?e[n]:e,y:t})}):i.push({x:e,y:n},{x:e,y:r}),i}function o(t){var e=t.x,n=v.isArray(t.y)?t.y[1]:t.y,r=v.isArray(t.y)?t.y[0]:t.y0,i=t.size,a=[];return a.push({x:e-i/2,y:n},{x:e+i/2,y:n},{x:e,y:n},{x:e,y:r},{x:e-i/2,y:r},{x:e+i/2,y:r}),a}function s(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}function u(t){var e=b.shape.interval,n=v.mix({},e,t.style);return x.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function l(t){var e=b.shape.hollowInterval,n=v.mix({},e,t.style);return x.addStrokeAttrs(n,t),n}function c(t,e){var n=[],r=t.points,i=t.nextPoints;return v.isNil(i)?e?n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[3].x,r[3].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[2].x,r[2].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",i[1].x,i[1].y],["L",i[0].x,i[0].y],["Z"]),n}function h(t,e){var n,r,i,a,o=e.getRadius(),s=e.innerRadius,u=o*s;return!v.isArray(t.x)&&v.isArray(t.y)&&(t.x=[t.x,t.x]),v.isArray(t.x)?(i={x:t.x[0],y:t.y[0]},a={x:t.x[1],y:t.y[1]},n=m.getPointAngle(e,i),(r=m.getPointAngle(e,a))>n||(r+=2*Math.PI)):(a=t,n=e.startAngle,r=m.getPointAngle(e,a)),{r:o,ir:u,startAngle:n,endAngle:r}}function f(t,e){var n,r=e.geom,i=r.get("coord"),a=e.point;if(i&&"theta"===i.type){var o=h(a,i),s=(o.endAngle-o.startAngle)/2+o.startAngle;n={transform:[["t",7.5*Math.cos(s),7.5*Math.sin(s)]]}}return v.mix({},n)}function p(t,e,n,r){return 0===e?[[t+.5*n/Math.PI/2,r/2],[t+.5*n/Math.PI,r],[t+n/4,r]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),r],[t+.5*n/Math.PI/2*(Math.PI-1),r/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-r/2],[t+.5*n/Math.PI,-r],[t+n/4,-r]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-r],[t+.5*n/Math.PI/2*(Math.PI-1),-r/2],[t+n/4,0]]}function d(t,e,n,r,i,a,o){for(var s=2*Math.ceil(2*t/n*4),u=[];r<2*-Math.PI;)r+=2*Math.PI;for(;r>0;)r-=2*Math.PI;r=r/Math.PI/2*n;var l=a-t+r-2*t;u.push(["M",l,e]);for(var c=0,h=0;s>h;++h){var f=h%4,d=p(h*n/4,f,n,i);u.push(["C",d[0][0]+l,-d[0][1]+e,d[1][0]+l,-d[1][1]+e,d[2][0]+l,-d[2][1]+e]),h===s-1&&(c=d[2][0])}return u.push(["L",c+l,o+t]),u.push(["L",l,o+t]),u.push(["L",l,e]),u}function g(t,e,n,r,i,a,o,s){for(var u=o.getBBox(),l=u.maxX-u.minX,c=u.maxY-u.minY,h=0;r>h;h++){var f=a.addShape("path",{attrs:{path:d(s,u.minY+c*n,l/4,0,l/64,t,e),fill:i[h],clip:o}});"canvas"===b.renderer&&f.animate({transform:[["t",l/2,0]],repeat:!0},5e3-300*h)}}var v=n(0),y=n(13),m=n(27),x=n(25),b=n(6),_=n(18),w=v.PathUtil,M=y.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){if(!t||v.inArray(["rect","funnel","pyramid"],t)){return{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}}return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return r(t)},getSelectedCfg:function(t,e){return f(t,e)}});y.registerShape("interval","rect",{draw:function(t,e){var n=u(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=u(t),n=t.isInCircle;return v.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),y.registerShape("interval","hollowRect",{draw:function(t,e){var n=l(t),r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=l(t),n=t.isInCircle;return v.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),y.registerShape("interval","line",{getPoints:function(t){return a(t)},draw:function(t,e){var n=l(t);n.lineWidth=t.size||1;var r=i(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=l(t);return v.mix({symbol:"line",radius:5},e)}}),y.registerShape("interval","tick",{getPoints:function(t){return o(t)},draw:function(t,e){var n=l(t);n.lineWidth||(n.lineWidth=2);var r=s(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=l(t);return v.mix({symbol:"tick",radius:5},e)}}),y.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,r(t)},draw:function(t,e){var n=u(t),r=c(t,!0);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=u(t);return v.mix({symbol:"square",radius:4},e)}}),y.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,r(t,!0)},draw:function(t,e){var n=u(t),r=c(t,!1);return r=this.parsePath(r),e.addShape("path",{attrs:v.mix(n,{path:r})})},getMarkerCfg:function(t){var e=u(t);return v.mix({symbol:"square",radius:4},e)}}),y.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=this,r=0,i=1/0;v.each(t.points,function(t){i>t.x&&(i=t.x),r+=t.x});var a=r/t.points.length,o=n.parsePoint({x:a,y:.5}),s=n.parsePoint({x:i,y:.5}),c=o.x-s.x,h=Math.min(c,s.y);return g(o.x,o.y,t.y/(2*o.y),1,[u(t).fill],e,new _.Circle({attrs:{x:o.x,y:o.y,r:h}}),4*h),e.addShape("circle",{attrs:v.mix(l(t),{x:o.x,y:o.y,r:h+h/8})})}});var S={};y.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=this,r=v.mix({},u(t)),i=t.shape[1],a=0,o=1/0;v.each(t.points,function(t){o>t.x&&(o=t.x),a+=t.x});var s,c=a/t.points.length,h=n.parsePoint({x:c,y:.5}),f=n.parsePoint({x:o,y:.5}),p=h.x-f.x,d=Math.min(p,f.y);if(S[i])s=S[i];else{var y=w.parsePathString(i);S[i]=s={segments:y}}var m=[];r.rotate&&(m.push(["r",r.rotate/180*Math.PI]),delete r.rotate);var x=e.addShape("path",{attrs:v.mix(r,{fillOpacity:0,path:s.segments})}),b=v.cloneDeep(x.getBBox()),_=b.maxX-b.minX,M=b.maxY-b.minY,A=Math.max(_,M),C=2*d/A;x.transform(m.concat([["s",C,C]]));var P=C*_/2,k=C*M/2;x.transform([["t",h.x-P,h.y-k]]),g(h.x,h.y,t.y/(2*h.y),1,[r.fill],e,x,4*f.y);var T=e.addShape("path",{attrs:v.mix(l(t),{path:s.segments})});return T.transform(m.concat([["s",C,C],["t",h.x-P,h.y-k]])),T}}),y.registerShape("interval","top-line",{draw:function(t,e){var n=u(t),r=t.style||{},a=[["M",t.points[1].x,t.points[1].y],["L",t.points[2].x,t.points[2].y]],o={stroke:r.stroke||"white",lineWidth:r.lineWidth||1,path:this.parsePath(a)},s=i(t.points);s=this.parsePath(s),delete n.stroke;var l=e.addShape("path",{attrs:v.mix(n,{zIndex:0,path:s})});return e.addShape("path",{zIndex:1,attrs:o}),l},getMarkerCfg:function(t){var e=u(t),n=t.isInCircle;return v.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),t.exports=M},function(t,e,n){function r(t){var e=b.shape.line,n=v.mix({},e,t.style);return m.addStrokeAttrs(n,t),t.size&&(n.lineWidth=t.size),n}function i(t){var e=b.shape.line,n=v.mix({lineWidth:2,radius:6},e,t.style);return m.addStrokeAttrs(n,t),n}function a(t,e,n,r){for(var i=[],a=r.isStack,s=[],u=0;t.length>u;u++){var l=t[u],c=m.splitPoints(l);s.push(c[0]),i.push(c[1])}var h=o(i,e,n,r),f=o(s,e,n,r);return a?h:h.concat(f)}function o(t,e,n,r){var i;if(e){var a=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),i=y.getSplinePath(t,!1,a)}else i=y.getLinePath(t,!1),n&&i.push(["Z"]);return i}function s(t,e){var n=t.points,r=t.isInCircle;return v.isArray(n[0].y)?a(n,e,r,t):o(n,e,r,t)}function u(t,e){var n=[];return v.each(t,function(r,i){var a=t[i+1];n.push(r),a&&(n=n.concat(e(r,a)))}),n}function l(t){var e=[];return v.each(t,function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e}function c(t,e){return l(u(t.points,e))}function h(t,e,n){return[["M",t-n,e],["L",t+n,e]]}function f(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 p(t,e){return v.mix({symbol:e?f:h},i(t))}function d(t,e){return v.mix({symbol:e},i(t))}function g(t,e,n){var r=e.points[0];return n.addShape("circle",{attrs:v.mix({x:r.x,y:r.y,r:2,fill:e.color},e.style)})}var v=n(0),y=n(27),m=n(25),x=n(13),b=n(6),_=[1,1],w=[5.5,1],M=x.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return m.splitPoints(t)},drawShape:function(t,e,n){var r,i=this.getShape(t);return r=1===e.points.length&&b.showSinglePoint?g(this,e,n):i.draw(e,n),r&&(r.set("origin",e.origin),r._id=e.splitedIndex?e._id+e.splitedIndex:e._id,r.name=this.name),r}});x.registerShape("line","line",{draw:function(t,e){var n=r(t),i=s(t,!1);return e.addShape("path",{attrs:v.mix(n,{path:i})})},getMarkerCfg:function(t){return p(t)}}),x.registerShape("line","dot",{draw:function(t,e){var n=r(t),i=s(t,!1);return e.addShape("path",{attrs:v.mix(n,{path:i,lineDash:_})})},getMarkerCfg:function(t){var e=p(t,!1);return e.lineDash=_,e}}),x.registerShape("line","dash",{draw:function(t,e){var n=r(t),i=s(t,!1);return e.addShape("path",{attrs:v.mix({path:i,lineDash:w},n)})},getMarkerCfg:function(t){var e=p(t,!1);return e.lineDash=e.lineDash||w,e}}),x.registerShape("line","smooth",{draw:function(t,e){var n=r(t),i=this._coord;t.constraint=[[i.start.x,i.end.y],[i.end.x,i.start.y]];var a=s(t,!0);return e.addShape("path",{attrs:v.mix(n,{path:a})})},getMarkerCfg:function(t){return p(t,!0)}}),x.registerShape("line","hv",{draw:function(t,e){var n=r(t),i=c(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:v.mix(n,{path:i})})},getMarkerCfg:function(t){return d(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]]})}}),x.registerShape("line","vh",{draw:function(t,e){var n=r(t),i=c(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:v.mix(n,{path:i})})},getMarkerCfg:function(t){return d(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]]})}}),x.registerShape("line","hvh",{draw:function(t,e){var n=r(t),i=c(t,function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n});return e.addShape("path",{attrs:v.mix(n,{path:i})})},getMarkerCfg:function(t){return d(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]]})}}),x.registerShape("line","vhv",{draw:function(t,e){var n=r(t),i=c(t,function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n});return e.addShape("path",{attrs:v.mix(n,{path:i})})},getMarkerCfg:function(t){return d(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]]})}}),M.spline=M.smooth,t.exports=M},function(t,e,n){function r(t){var e=u.shape.point,n=o.mix({},e,t.style);return s.addFillAttrs(n,t),o.isNumber(t.size)&&(n.radius=t.size),n}function i(t){var e=u.shape.hollowPoint,n=o.mix({},e,t.style);return s.addStrokeAttrs(n,t),o.isNumber(t.size)&&(n.radius=t.size),n}function a(t){var e=t.points[0].x,n=t.points[0].y,r=t.size[0],i=t.size[1];return[["M",e-.5*r,n-.5*i],["L",e+.5*r,n-.5*i],["L",e+.5*r,n+.5*i],["L",e-.5*r,n+.5*i],["z"]]}var o=n(0),s=n(25),u=n(6),l=n(13),c=n(18),h=c.Marker,f=o.PathUtil,p=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],d=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],g=Math.sqrt(3);o.mix(h.Symbols,{hexagon:function(t,e,n){var r=n/2*g;return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["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 v=l.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n,r=e.radius;return n=t&&(0===t.indexOf("hollow")||-1!==o.indexOf(d,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,{radius:r+1,shadowBlur:r,shadowColor:n,stroke:n,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return s.splitPoints(t)}});l.registerShape("point","rect",{draw:function(t,e){var n=r(t),i=a(t);return i=this.parsePath(i),e.addShape("path",{attrs:o.mix(n,{path:i})})},getMarkerCfg:function(t){var e=r(t);return e.symbol="rect",e.radius=4.5,e}}),o.each(p,function(t){l.registerShape("point",t,{draw:function(e,n){var i=r(e);return n.addShape("Marker",{attrs:o.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}}),l.registerShape("point","hollow"+o.upperFirst(t),{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:o.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}})}),o.each(d,function(t){l.registerShape("point",t,{draw:function(e,n){var r=i(e);return n.addShape("Marker",{attrs:o.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}})}),l.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 y={};l.registerShape("point","path",{draw:function(t,e){var n,a=o.mix({},i(t),r(t)),s=t.shape[1],u=t.size||10;if(y[s])n=y[s];else{var l=f.parsePathString(s),c=o.flatten(l).filter(function(t){return o.isNumber(t)});y[s]=n={range:Math.max.apply(null,c)-Math.min.apply(null,c),segments:l}}var h=u/n.range,p=[];a.rotate&&(p.push(["r",a.rotate/180*Math.PI]),delete a.rotate);var d=e.addShape("path",{attrs:o.mix(a,{path:n.segments})});return p.push(["s",h,h],["t",t.x,t.y]),d.transform(p),d}}),t.exports=v},function(t,e,n){function r(t){var e=l.shape.polygon,n=o.mix({},e,t.style);return u.addFillAttrs(n,t),n}function i(t){var e=l.shape.hollowPolygon,n=o.mix({},e,t.style);return u.addStrokeAttrs(n,t),n}function a(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];t.length>n;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&t.length-1>n&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return o.isEqual(r[r.length-1],e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}var o=n(0),s=n(13),u=n(25),l=n(6),c=s.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return o.each(t.x,function(n,r){e.push({x:n,y:t.y[r]})}),e},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});s.registerShape("polygon","polygon",{draw:function(t,e){if(!o.isEmpty(t.points)){var n=r(t),i=a(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:o.mix(n,{path:i})})}},getMarkerCfg:function(t){return o.mix({symbol:"square",radius:4},r(t))}}),s.registerShape("polygon","hollow",{draw:function(t,e){if(!o.isEmpty(t.points)){var n=i(t),r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:o.mix(n,{path:r})})}},getMarkerCfg:function(t){return o.mix({symbol:"square",radius:4},r(t))}}),t.exports=c},function(t,e,n){function r(t){f.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],r=t.length>1?t[1]:e;return{min:e,max:n,min1:r,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:r}}function i(t,e){f.each(t,function(t){e.push({x:t[0],y:t[1]})})}function a(t){var e=g.shape.schema,n=f.mix({},e,t.style);return d.addStrokeAttrs(n,t),n}function o(t){var e=g.shape.schema,n=f.mix({},e,t.style);return d.addFillAttrs(n,t),t.color&&(n.stroke=t.color||n.stroke),n}function s(t,e,n){var a,o,s=[];return f.isArray(e)?(o=r(e),a=[[t-n/2,o.max],[t+n/2,o.max],[t,o.max],[t,o.max1],[t-n/2,o.min1],[t-n/2,o.max1],[t+n/2,o.max1],[t+n/2,o.min1],[t,o.min1],[t,o.min],[t-n/2,o.min],[t+n/2,o.min],[t-n/2,o.median],[t+n/2,o.median]]):(e=e||.5,o=r(t),a=[[o.min,e-n/2],[o.min,e+n/2],[o.min,e],[o.min1,e],[o.min1,e-n/2],[o.min1,e+n/2],[o.max1,e+n/2],[o.max1,e-n/2],[o.max1,e],[o.max,e],[o.max,e-n/2],[o.max,e+n/2],[o.median,e-n/2],[o.median,e+n/2]]),i(a,s),s}function u(t){f.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return e>t?1:-1}),n=e.length;if(4>n)for(var r=e[n-1],i=0;4-n>i;i++)e.push(r);return e}function l(t,e,n){var r=u(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}function c(t){return[["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],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function h(t){return[["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],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}var f=n(0),p=n(13),d=n(25),g=n(6),v=p.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t){return{lineWidth:(e.lineWidth||1)+1}}var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});p.registerShape("schema","box",{getPoints:function(t){return s(t.x,t.y,t.size)},draw:function(t,e){var n=a(t),r=c(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){var r=[e-6,e-3,e,e+3,e+6],i=s(t,r,n);return[["M",i[0].x+1,i[0].y],["L",i[1].x-1,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x+1,i[10].y],["L",i[11].x-1,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]]},radius:6,lineWidth:1,stroke:t.color}}}),p.registerShape("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n=o(t),r=h(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:f.mix(n,{path:r})})},getMarkerCfg:function(t){return{symbol:function(t,e,n){e=[e+7.5,e+3,e-3,e-7.5];var r=l(t,e,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=v},function(t,e,n){function r(t){var e=u.shape.venn,n=a.mix({},e,t.style);return s.addFillAttrs(n,t),n}function i(t){var e=u.shape.hollowVenn,n=a.mix({},e,t.style);return s.addStrokeAttrs(n,t),n}var a=n(0),o=n(13),s=n(25),u=n(6),l=a.PathUtil,c=o.registerFactory("venn",{defaultShapeType:"venn",getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});o.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin,i=n.path,o=r(t),s=l.parsePathString(i);return e.addShape("path",{attrs:a.mix(o,{path:s})})},getMarkerCfg:function(t){return a.mix({symbol:"circle",radius:4},r(t))}}),o.registerShape("venn","hollow",{draw:function(t,e){var n=t.origin._origin,r=n.path,o=i(t),s=l.parsePathString(r);return e.addShape("path",{attrs:a.mix(o,{path:s})})},getMarkerCfg:function(t){return a.mix({symbol:"circle",radius:4},r(t))}}),t.exports=c},function(t,e,n){function r(t){var e=h.shape.venn,n=u.mix({},e,t.style);return c.addFillAttrs(n,t),t.color&&(n.stroke=n.stroke||t.color),n}function i(t){var e=h.shape.hollowVenn,n=u.mix({},e,t.style);return c.addStrokeAttrs(n,t),n}function a(t){for(var e=[],n=0;t.length>n;n++){var r=t[n];if(r){e.push([0===n?"M":"L",r.x,r.y])}}var i=t[0];return i&&(e.push(["L",i.x,i.y]),e.push(["z"])),e}function o(t){for(var e=t.length/2,n=[],r=[],i=0;t.length>i;i++)e>i?n.push(t[i]):r.push(t[i]);var a=f.getSplinePath(n,!1),o=f.getSplinePath(r,!1);r.length&&a.push(["L",r[0].x,r[0].y]),o.shift();var s=a.concat(o);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function s(t){var e=Math.max.apply(null,t);return t.map(function(t){return t/e})}var u=n(0),l=n(13),c=n(25),h=n(6),f=n(27),p=l.registerFactory("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=s(t._size);return u.each(t.y,function(i,a){var o=r[a]*e,s=0===a,u=a===t.y.length-1;n.push({isMin:s,isMax:u,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:u,x:t.x+o,y:i})}),n},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});l.registerShape("violin","violin",{draw:function(t,e){var n=r(t),i=a(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:u.mix(n,{path:i})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},r(t))}}),l.registerShape("violin","smooth",{draw:function(t,e){var n=r(t),i=o(t.points);return i=this.parsePath(i),e.addShape("path",{attrs:u.mix(n,{path:i})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},r(t))}}),l.registerShape("violin","hollow",{draw:function(t,e){var n=i(t),r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:u.mix(n,{path:r})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},i(t))}}),l.registerShape("violin","smoothHollow",{draw:function(t,e){var n=i(t),r=o(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:u.mix(n,{path:r})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},i(t))}}),t.exports=p},function(t,e,n){var r=n(0);t.exports=function(t){return r.isArray(t)?t:r.isString(t)?t.split("*"):[t]}},function(t,e,n){function r(t,e,n,r){var i,a,s,u,l=[],c=!!r;if(c){s=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,f=t.length;f>h;h++){var p=t[h];s=o.min([],s,p),u=o.max([],u,p)}s=o.min([],s,r[0]),u=o.max([],u,r[1])}for(var d=0,g=t.length;g>d;d++){var v=t[d];if(n)i=t[d?d-1:g-1],a=t[(d+1)%g];else{if(0===d||d===g-1){l.push(v);continue}i=t[d-1],a=t[d+1]}var y=[];y=o.sub(y,a,i),y=o.scale(y,y,e);var m=o.distance(v,i),x=o.distance(v,a),b=m+x;0!==b&&(m/=b,x/=b);var _=o.scale([],y,-m),w=o.scale([],y,x),M=o.add([],v,_),S=o.add([],v,w);c&&(M=o.max([],M,s),M=o.min([],M,u),S=o.max([],S,s),S=o.min([],S,u)),l.push(M),l.push(S)}return n&&l.push(l.shift()),l}function i(t,e,n){for(var i=!!e,a=[],o=0,s=t.length;s>o;o+=2)a.push([t[o],t[o+1]]);for(var u,l,c,h=r(a,.4,i,n),f=a.length,p=[],d=0;f-1>d;d++)u=h[2*d],l=h[2*d+1],c=a[d+1],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]]);return i&&(u=h[f],l=h[f+1],c=a[0],p.push(["C",u[0],u[1],l[0],l[1],c[0],c[1]])),p}var a=n(0).MatrixUtil,o=a.vec2;t.exports={catmullRom2bezier:i}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(12),o=n(0),s=n(596),u=s.venn,l=s.scaleSolution,c=s.circlePath,h=s.intersectionAreaPath,f=s.computeTextCentres;n(342);var p=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="venn",e.shapeType="venn",e.generatePoints=!1,e},n._getAttrValues=function(e,n){return"position"===e.type?[n.x,n.y]:t.prototype._getAttrValues.call(this,e,n)},n.sets=function(t){return this.set("setsField",t),this},n._initAttrs=function(){var e=this;t.prototype._initAttrs.call(this);var n=e.get("attrOptions"),r=e.get("setsField")||"sets",i=e.get("data"),a=n.size?n.size.field:"size";i.forEach(function(t){t.sets=t[r],t._sets=t[r].join("&"),t.size=t[a]});var s=u(i),p=e.get("coord"),d=[Math.min(p.x.end,p.x.start),Math.max(p.x.end,p.x.start)],g=[Math.min(p.y.end,p.y.start),Math.max(p.y.end,p.y.start)],v=d[1]-d[0],y=g[1]-g[0],m=e.get("styleOptions"),x=m&&o.isObject(m.style)?m.style.padding:0;o.isFinite(x)||(x=0);var b=l(s,v,y,x),_=f(b,i);i.forEach(function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=b[n];t.path=c(r.x,r.y,r.radius),o.assign(t,r)}else{var i=e.map(function(t){return b[t]}),a=h(i);/[zZ]$/.test(a)||(a+="Z"),t.path=a;o.assign(t,_[n]||{x:0,y:0})}})},e}(a);a.Venn=p,t.exports=p},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(12),s=n(0),u=n(83);n(343);var l=function(t){function e(e){var n;return n=t.call(this,e)||this,s.assign(r(n),u),n}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e},n.createShapePointsCfg=function(e){var n=this,r=t.prototype.createShapePointsCfg.call(this,e);return r.size=n.getNormalizedSize(e),r._size=e._origin[n.get("_sizeField")],r},n.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},n._initAttrs=function(){var e=this,n=e.get("attrOptions");e.set("_sizeField",n.size?n.size.field:e.get("_sizeField")?e.get("_sizeField"):"size"),delete n.size,t.prototype._initAttrs.call(this)},e}(o),c=function(t){function e(){return t.apply(this,arguments)||this}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(l);l.Dodge=c,o.Violin=l,o.ViolinDodge=c,t.exports=l},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(0),s=n(30),u=["X","Y","XY","POLYGON"],l="XY";t.exports=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a=r(i);a.filter=!a.draggable,a.type=a.type.toUpperCase(),a.chart=n,u.includes(a.type)||(a.type=l);var o=a.canvas;if(o){var s;o.get("children").map(function(t){return"plotBack"===t.get("type")?(s=t.get("plotRange"),!1):t}),a.plot={start:s.bl,end:s.tr}}if(n){var c=n.get("coord");a.plot={start:c.start,end:c.end},n.on("afterrender",function(){a.plot={start:c.start,end:c.end}}),a.isTransposed=c.isTransposed;var h=n._getScales("x"),f=n._getScales("y");a.xScale=a.xField?h[a.xField]:n.getXScale(),a.yScale=a.yField?f[a.yField]:n.getYScales()[0]}return i}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:l,startPoint:null,brushing:!1,dragging:!1,brushShape:null,container:null,polygonPath:null,style:{fill:"#C5D4EB",opacity:.3,lineWidth:1,stroke:"#82A6DD"},draggable:!1,dragOffX:0,dragOffY:0,inPlot:!0,xField:null,yField:null})},n.start=function(t){var e=this,n=e.canvas,r=e.type,i=e.brushShape;if(r){e.brushing&&e.end(t);var a={x:t.offsetX,y:t.offsetY};if(a.x){var o=e.plot&&e.inPlot,s=n.get("canvasDOM"),u=n.get("pixelRatio");if(e.selection&&(e.selection=null),e.draggable&&i&&!i.get("destroyed")){if(i.isHit(a.x*u,a.y*u)){if(s.style.cursor="move",e.selection=i,e.dragging=!0,"X"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=0;else if("Y"===r)e.dragoffX=0,e.dragoffY=a.y-i.attr("y");else if("XY"===r)e.dragoffX=a.x-i.attr("x"),e.dragoffY=a.y-i.attr("y");else if("POLYGON"===r){var l=i.getBBox();e.dragoffX=a.x-l.minX,e.dragoffY=a.y-l.minY}e.onDragstart&&e.onDragstart(t)}e.prePoint=a}if(!e.dragging){e.onBrushstart&&e.onBrushstart(a);var c=e.container;if(o){var h=e.plot,f=h.start,p=h.end;if(f.x>a.x||a.x>p.x||p.y>a.y||a.y>f.y)return}s.style.cursor="crosshair",e.startPoint=a,e.brushShape=null,e.brushing=!0,c?c.clear():(c=n.addGroup({zIndex:5}),c.initTransform()),e.container=c,"POLYGON"===r&&(e.polygonPath="M "+a.x+" "+a.y)}}}},n.process=function(t){var e=this,n=e.brushing,r=e.dragging,i=e.type,a=e.plot,s=e.startPoint,u=e.xScale,l=e.yScale,c=e.canvas;if(n||r){var h={x:t.offsetX,y:t.offsetY},f=c.get("canvasDOM");if(n){f.style.cursor="crosshair";var p=a.start,d=a.end,g=e.polygonPath,v=e.brushShape,y=e.container;e.plot&&e.inPlot&&(h=e._limitCoordScope(h));var m,x,b,_;"Y"===i?(m=p.x,x=s.y>h.y?h.y:s.y,b=Math.abs(p.x-d.x),_=Math.abs(s.y-h.y)):"X"===i?(m=s.x>h.x?h.x:s.x,x=d.y,b=Math.abs(s.x-h.x),_=Math.abs(d.y-p.y)):"XY"===i?(s.x>h.x?(m=h.x,x=s.y>h.y?h.y:s.y):(m=s.x,x=s.y>h.y?h.y:s.y),b=Math.abs(s.x-h.x),_=Math.abs(s.y-h.y)):"POLYGON"===i&&(g+="L "+h.x+" "+h.y,e.polygonPath=g,v?!v.get("destroyed")&&v.attr(o.mix({},v._attrs,{path:g})):v=y.addShape("path",{attrs:o.mix(e.style,{path:g})})),"POLYGON"!==i&&(v?!v.get("destroyed")&&v.attr(o.mix({},v._attrs,{x:m,y:x,width:b,height:_})):v=y.addShape("rect",{attrs:o.mix(e.style,{x:m,y:x,width:b,height:_})})),e.brushShape=v}else if(r){f.style.cursor="move";var w=e.selection;if(w&&!w.get("destroyed"))if("POLYGON"===i){var M=e.prePoint;e.selection.translate(h.x-M.x,h.y-M.y)}else e.dragoffX&&w.attr("x",h.x-e.dragoffX),e.dragoffY&&w.attr("y",h.y-e.dragoffY)}e.prePoint=h,c.draw();var S=e._getSelected(),A=S.data,C=S.shapes,P=S.xValues,k=S.yValues,T={data:A,shapes:C};u&&(T[u.field]=P),l&&(T[l.field]=k),o.mix(t,T),T.x=h.x,T.y=h.y,e.onDragmove&&e.onDragmove(T),e.onBrushmove&&e.onBrushmove(T)}},n.end=function(t){var e=this;if(e.brushing||e.dragging){var n=e.data,r=e.shapes,i=e.xValues,a=e.yValues,s=e.canvas,u=e.type,l=e.startPoint,c=e.chart,h=e.container,f=e.xScale,p=e.yScale,d=t.offsetX,g=t.offsetY;if(s.get("canvasDOM").style.cursor="default",null!==l){if(1>=Math.abs(l.x-d)&&1>=Math.abs(l.y-g))return e.brushing=!1,e.dragging=!1,h.clear(),void s.draw();var v={data:n,shapes:r};if(f&&(v[f.field]=i),p&&(v[p.field]=a),o.mix(t,v),v.x=d,v.y=g,e.dragging)e.dragging=!1,e.onDragend&&e.onDragend(v);else if(e.brushing){e.brushing=!1;var y=e.brushShape,m=e.polygonPath;"POLYGON"===u&&(m+="z",y&&!y.get("destroyed")&&y.attr(o.mix({},y._attrs,{path:m})),e.polygonPath=m,s.draw()),e.onBrushend?e.onBrushend(v):c&&e.filter&&(h.clear(),!e.isTransposed&&"X"===u||e.isTransposed&&"Y"===u?f&&c.filter(f.field,function(t){return i.indexOf(t)>-1}):!e.isTransposed&&"Y"===u||e.isTransposed&&"X"===u?p&&c.filter(p.field,function(t){return a.indexOf(t)>-1}):(f&&c.filter(f.field,function(t){return i.indexOf(t)>-1}),p&&c.filter(p.field,function(t){return a.indexOf(t)>-1})),c.repaint())}}}},n.reset=function(){var t=this,e=t.chart,n=t.filter,r=t.brushShape,i=t.canvas;this._init(),e&&n&&(e.get("options").filters={},e.repaint()),r&&(r.destroy(),i.draw())},n._limitCoordScope=function(t){var e=this.plot,n=e.start,r=e.end;return n.x>t.x&&(t.x=n.x),t.x>r.x&&(t.x=r.x),r.y>t.y&&(t.y=r.y),t.y>n.y&&(t.y=n.y),t},n._getSelected=function(){var t=this,e=t.chart,n=t.xScale,r=t.yScale,i=t.brushShape,a=t.canvas,o=a.get("pixelRatio"),s=[],u=[],l=[],c=[];if(e){e.get("geoms").map(function(t){return t.getShapes().map(function(t){var e=t.get("origin");return Array.isArray(e)||(e=[e]),e.map(function(e){if(i.isHit(e.x*o,e.y*o)){s.push(t);var a=e._origin;c.push(a),n&&u.push(a[n.field]),r&&l.push(a[r.field])}return e}),t}),t})}return t.shapes=s,t.xValues=u,t.yValues=l,t.data=c,a.draw(),{data:c,xValues:u,yValues:l,shapes:s}},e}(s)},function(t,e,n){var r=n(0),i=n(18),a=i.Group,o=r.DomUtil,s=function t(e){t.superclass.constructor.call(this,e)};r.extend(s,a),r.augment(s,{getDefaultCfg:function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},_initHandle:function(t){var e,n,i,a=this,o=a.addGroup(),s=a.get("layout"),u=a.get("handleStyle"),l=u.img,c=u.width,h=u.height;if("horizontal"===s){var f=u.width;i="ew-resize",n=o.addShape("Image",{attrs:{x:-f/2,y:0,width:f,height:h,img:l,cursor:i}}),e=o.addShape("Text",{attrs:r.mix({x:"min"===t?-(f/2+5):f/2+5,y:h/2,textAlign:"min"===t?"end":"start",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))})}else i="ns-resize",n=o.addShape("Image",{attrs:{x:0,y:-h/2,width:c,height:h,img:l,cursor:i}}),e=o.addShape("Text",{attrs:r.mix({x:c/2,y:"min"===t?h/2+5:-(h/2+5),textAlign:"center",textBaseline:"middle",text:this.get("min"===t?"minText":"maxText"),cursor:i},this.get("textStyle"))});return this.set(t+"TextElement",e),this.set(t+"IconElement",n),o},_initSliderBackground:function(){var t=this.addGroup();return t.initTransform(),t.translate(0,0),t.addShape("Rect",{attrs:r.mix({x:0,y:0,width:this.get("width"),height:this.get("height")},this.get("backgroundStyle"))}),t},_beforeRenderUI:function(){var t=this._initSliderBackground(),e=this._initHandle("min"),n=this._initHandle("max"),r=this.addShape("rect",{attrs:this.get("middleAttr")});this.set("middleHandleElement",r),this.set("minHandleElement",e),this.set("maxHandleElement",n),this.set("backgroundElement",t),t.set("zIndex",0),r.set("zIndex",1),e.set("zIndex",2),n.set("zIndex",2),r.attr("cursor","move"),this.sort()},_renderUI:function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},_transform:function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),a=this.get("height"),o=this.get("minHandleElement"),s=this.get("maxHandleElement"),u=this.get("middleHandleElement");o.resetMatrix?(o.resetMatrix(),s.resetMatrix()):(o.initTransform(),s.initTransform()),"horizontal"===t?(u.attr({x:i*n,y:0,width:(r-n)*i,height:a}),o.translate(n*i,0),s.translate(r*i,0)):(u.attr({x:0,y:a*(1-r),width:i,height:(r-n)*a}),o.translate(0,(1-n)*a),s.translate(0,(1-r)*a))},_renderHorizontal:function(){this._transform("horizontal")},_renderVertical:function(){this._transform("vertical")},_bindUI:function(){this.on("mousedown",r.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=0>n?0:n},_limitRange:function(t,e,n){n[0]=this._getRange(t,n[0]),(n[1]=n[0]+e)>100&&(n[1]=100,n[0]=n[1]-e)},_updateStatus:function(t,e){var n=this.get("x"===t?"width":"height");t=r.upperFirst(t);var i,a=this.get("range"),o=this.get("page"+t),s=this.get("currentTarget"),u=this.get("rangeStash"),l=this.get("layout"),c="vertical"===l?-1:1,h=e["page"+t],f=h-o,p=f/n*100*c,d=this.get("minRange"),g=this.get("maxRange");a[1]>a[0]?(this._isElement(s,"minHandleElement")&&(a[0]=this._getRange(p,a[0]),d&&(a[1]-a[0]>d||this._limitRange(p,d,a)),g&&(g>a[1]-a[0]||this._limitRange(p,g,a))),this._isElement(s,"maxHandleElement")&&(a[1]=this._getRange(p,a[1]),d&&(a[1]-a[0]>d||this._limitRange(p,d,a)),g&&(g>a[1]-a[0]||this._limitRange(p,g,a)))):(this._isElement(s,"minHandleElement")||this._isElement(s,"maxHandleElement"))&&(a[0]=this._getRange(p,a[0]),a[1]=this._getRange(p,a[0])),this._isElement(s,"middleHandleElement")&&(i=u[1]-u[0],this._limitRange(p,i,a)),this.emit("sliderchange",{range:a}),this.set("page"+t,h),this._renderUI(),this.get("canvas").draw()},_onMouseDown:function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},_bindCanvasEvents:function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=o.addEventListener(t,"mousemove",r.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=o.addEventListener(t,"mouseup",r.wrapBehavior(this,"_onCanvasMouseUp")),this.onMouseLeaveListener=o.addEventListener(t,"mouseleave",r.wrapBehavior(this,"_onCanvasMouseUp"))},_onCanvasMouseMove:function(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(),this.onMouseLeaveListener.remove()}}),t.exports=s},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(0),s=n(30),u=n(351),l=n(84),c=n(86),h=["X","Y","XY"],f="X";t.exports=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a=r(i);a.type=a.type.toUpperCase(),a.chart=n,a.coord=n.get("coord");var s=a.data=n.get("data");u(n);var l=n.getYScales();l.push(n.getXScale());var p=n.get("scaleController");return l.forEach(function(t){var e=t.field;a.limitRange[e]=c(s,t);var n=p.defs[e]||{};a.originScaleDefsByField[e]=o.mix(n,{nice:!!n.nice}),t.isLinear&&(a.stepByField[e]=(t.max-t.min)*a.stepRatio)}),h.includes(a.type)||(a.type=f),a._disableTooltip(),i}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{type:f,stepRatio:.05,limitRange:{},stepByField:{},threshold:20,originScaleDefsByField:{},previousPoint:null,isDragging:!1})},n._disableTooltip=function(){var t=this,e=t.chart;e.get("tooltipController")&&(t._showTooltip=!0,e.tooltip(!1))},n._enableTooltip=function(t){var e=this,n=e.chart;e._showTooltip&&(n.tooltip(!0),n.showTooltip(t))},n._applyTranslate=function(t,e,n){void 0===e&&(e=0);var r=this;t.isLinear?r._translateLinearScale(t,e,n):r._translateCatScale(t,e,n)},n._translateCatScale=function(t,e,n){var r=this,i=r.chart,a=t.type,s=t.field,u=t.values,c=t.ticks,h=l(i,s),f=r.limitRange[s],p=e/n,d=u.length,g=Math.max(1,Math.abs(parseInt(p*d))),v=f.indexOf(u[0]),y=f.indexOf(u[d-1]);if(e>0&&v>=0){for(var m=0;g>m&&v>0;m++)v-=1,y-=1;var x=f.slice(v,y+1),b=null;if("timeCat"===a){for(var _=c.length>2?c[1]-c[0]:864e5,w=c[0]-_;w>=x[0];w-=_)c.unshift(w);b=c}i.scale(s,o.mix({},h,{values:x,ticks:b}))}else if(0>e&&f.length-1>=y){for(var M=0;g>M&&f.length-1>y;M++)v+=1,y+=1;var S=f.slice(v,y+1),A=null;if("timeCat"===a){for(var C=c.length>2?c[1]-c[0]:864e5,P=c[c.length-1]+C;S[S.length-1]>=P;P+=C)c.push(P);A=c}i.scale(s,o.mix({},h,{values:S,ticks:A}))}},n._translateLinearScale=function(t,e,n){var r=this,i=r.chart,a=r.limitRange,s=t.min,u=t.max,c=t.field;if(s!==a[c].min||u!==a[c].max){var h=e/n,f=u-s,p=l(i,c);i.scale(c,o.mix({},p,{nice:!1,min:s+h*f,max:u+h*f}))}},n.start=function(t){var e=this;e.canvas.get("canvasDOM").style.cursor="pointer",e.isDragging=!0,e.previousPoint={x:t.x,y:t.y},e._disableTooltip()},n.process=function(t){var e=this;if(e.isDragging){var n=e.chart,r=e.type,i=e.canvas,a=e.coord,o=e.threshold;i.get("canvasDOM").style.cursor="move";var s=e.previousPoint,u=t,l=u.x-s.x,c=u.y-s.y,h=!1;if(Math.abs(l)>o&&r.indexOf("X")>-1){h=!0;var f=n.getXScale();e._applyTranslate(f,f.isLinear?-l:l,a.width)}if(Math.abs(c)>o&&r.indexOf("Y")>-1){h=!0;n.getYScales().forEach(function(t){e._applyTranslate(t,u.y-s.y,a.height)})}h&&(e.previousPoint=u,n.repaint())}},n.end=function(t){var e=this;e.isDragging=!1,e.canvas.get("canvasDOM").style.cursor="default",e._enableTooltip(t)},n.reset=function(){var t=this,e=t.view,n=t.originScaleDefsByField,r=e.getYScales();r.push(e.getXScale()),r.forEach(function(t){if(t.isLinear){var r=t.field;e.scale(r,n[r])}}),e.repaint(),t._disableTooltip()},e}(s)},function(t,e,n){var r=n(0),i=n(62),a=n(85);t.exports=function(t){t.on("beforeinitgeoms",function(){t.set("limitInPlot",!0);var e=t.get("data"),n=a(t);if(!n)return e;var o=t.get("geoms"),s=!1;r.each(o,function(t){if(["area","line","path"].includes(t.get("type")))return s=!0,!1});var u=[];if(r.each(n,function(t,e){!s&&t&&(t.values||t.min||t.max)&&u.push(e)}),0===u.length)return e;var l=[];r.each(e,function(t){var e=!0;r.each(u,function(a){var o=t[a];if(o){var s=n[a];if("timeCat"===s.type){r.isNumber(s.values[0])&&(o=i.toTimeStamp(o))}(s.values&&!s.values.includes(o)||s.min&&s.min>o||s.max&&o>s.max)&&(e=!1)}}),e&&l.push(t)}),t.set("filteredData",l)})}},function(t,e){t.exports=function(t,e,n){if(!t)return[0,1];var r=0,i=0;if("linear"===n){var a=e.min,o=e.max,s=o-a;r=(t.min-a)/s,i=(t.max-a)/s}else{var u=e,l=t.values,c=u.indexOf(l[0]),h=u.indexOf(l[l.length-1]);r=c/(u.length-1),i=h/(u.length-1)}return[r,i]}},function(t,e,n){var r=n(50),i=n(49),a=n(0),o={Base:n(30),Brush:n(348),Drag:n(350),ScrollBar:n(354),ShapeSelect:n(355),Slider:n(356),Zoom:n(357)};r._Interactions={},r.registerInteraction=function(t,e){r._Interactions[t]=e},r.getInteraction=function(t){return r._Interactions[t]},i.prototype.getInteractions=function(){var t=this;return t._interactions||(t._interactions={}),t._interactions},i.prototype._setInteraction=function(t,e){var n=this,r=n.getInteractions();r[t]&&r[t]!==e&&r[t].destroy(),r[t]=e},i.prototype.clearInteraction=function(t){var e=this,n=e.getInteractions();t?(n[t]&&(n[t]._reset(),n[t].destroy()),delete n[t]):a.each(n,function(t,e){t._reset(),t.destroy(),delete n[e]})},i.prototype.interact=i.prototype.interaction=function(t,e){var n=this;return n._setInteraction(t,new(r.getInteraction(t))(e,n)),n},r.registerInteraction("brush",o.Brush),r.registerInteraction("Brush",o.Brush),r.registerInteraction("drag",o.Drag),r.registerInteraction("Drag",o.Drag),r.registerInteraction("zoom",o.Zoom),r.registerInteraction("Zoom",o.Zoom),r.registerInteraction("scroll-bar",o.ScrollBar),r.registerInteraction("ScrollBar",o.ScrollBar),r.registerInteraction("shape-select",o.ShapeSelect),r.registerInteraction("ShapeSelect",o.ShapeSelect),r.registerInteraction("slider",o.Slider),r.registerInteraction("Slider",o.Slider),t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=n(0),o=n(30),s=n(352),u=n(86);t.exports=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i=r.getDefaultCfg();return n.set("_scrollBarCfg",a.deepMix({},i,e)),n.set("_limitRange",{}),n.get("_horizontalBar")||n.get("_verticalBar")||r._renderScrollBars(),r}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,type:"X",xStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:0,offsetY:-10},yStyle:{backgroundColor:"rgba(202, 215, 239, .2)",fillerColor:"rgba(202, 215, 239, .75)",size:4,lineCap:"round",offsetX:8,offsetY:0}})},n._renderScrollBars=function(){var t=this.chart,e=t.get("_scrollBarCfg");if(e){var n=t.get("data"),r=t.get("plotRange");r.width=Math.abs(r.br.x-r.bl.x),r.height=Math.abs(r.tl.y-r.bl.y);var i=t.get("backPlot"),a=t.get("canvas"),o=a.get("height"),l=t.get("_limitRange"),c=e.type;if(c.indexOf("X")>-1){var h=e.xStyle,f=h.offsetX,p=h.offsetY,d=h.lineCap,g=h.backgroundColor,v=h.fillerColor,y=h.size,m=t.getXScale(),x=l[m.field];x||(x=u(n,m),l[m.field]=x);var b=s(m,x,m.type),_=t.get("_horizontalBar"),w=o-y/2+p;if(_){_.get("children")[1].attr({x1:Math.max(r.bl.x+r.width*b[0]+f,r.bl.x),x2:Math.min(r.bl.x+r.width*b[1]+f,r.br.x)})}else _=i.addGroup({className:"horizontalBar"}),_.addShape("line",{attrs:{x1:r.bl.x+f,y1:w,x2:r.br.x+f,y2:w,lineWidth:y,stroke:g,lineCap:d}}),_.addShape("line",{attrs:{x1:Math.max(r.bl.x+r.width*b[0]+f,r.bl.x),y1:w,x2:Math.min(r.bl.x+r.width*b[1]+f,r.br.x),y2:w,lineWidth:y,stroke:v,lineCap:d}}),t.set("_horizontalBar",_)}if(c.indexOf("Y")>-1){var M=e.yStyle,S=M.offsetX,A=M.offsetY,C=M.lineCap,P=M.backgroundColor,k=M.fillerColor,T=M.size,I=t.getYScales()[0],O=l[I.field];O||(O=u(n,I),l[I.field]=O);var E=s(I,O,I.type),L=t.get("_verticalBar"),D=T/2+S;if(L){L.get("children")[1].attr({y1:Math.max(r.tl.y+r.height*E[0]+A,r.tl.y),y2:Math.min(r.tl.y+r.height*E[1]+A,r.bl.y)})}else L=i.addGroup({className:"verticalBar"}),L.addShape("line",{attrs:{x1:D,y1:r.tl.y+A,x2:D,y2:r.bl.y+A,lineWidth:T,stroke:P,lineCap:C}}),L.addShape("line",{attrs:{x1:D,y1:Math.max(r.tl.y+r.height*E[0]+A,r.tl.y),x2:D,y2:Math.min(r.tl.y+r.height*E[1]+A,r.bl.y),lineWidth:T,stroke:k,lineCap:C}}),t.set("_verticalBar",L)}}},n._clear=function(){var t=this.chart;if(t){var e=t.get("_horizontalBar"),n=t.get("_verticalBar");e&&e.remove(!0),n&&n.remove(!0),t.set("_horizontalBar",null),t.set("_verticalBar",null)}},n._bindEvents=function(){this._onAfterclearOrBeforechangedata=this._onAfterclearOrBeforechangedata.bind(this),this._onAfterclearinner=this._onAfterclearinner.bind(this),this._onAfterdrawgeoms=this._onAfterdrawgeoms.bind(this);var t=this.chart;t.on("afterclear",this._onAfterclearOrBeforechangedata),t.on("beforechangedata",this._onAfterclearOrBeforechangedata),t.on("afterclearinner",this._onAfterclearinner),t.on("afterdrawgeoms",this._onAfterdrawgeoms)},n._onAfterclearOrBeforechangedata=function(){this.chart&&this.chart.set("_limitRange",{})},n._onAfterclearinner=function(){this._clear()},n._onAfterdrawgeoms=function(){this._renderScrollBars()},n._clearEvents=function(){var t=this.chart;t&&(t.off("afterclear",this._onAfterclearOrBeforechangedata),t.off("beforechangedata",this._onAfterclearOrBeforechangedata),t.off("afterclearinner",this._onAfterclearinner),t.off("afterdrawgeoms",this._onAfterdrawgeoms))},n.destroy=function(){this._clearEvents(),this._clear(),this.canvas.draw()},e}(o)},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t,e){var n={};for(var r in e)n[r]=t[r];return n}var o=n(0),s=n(30);t.exports=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{startEvent:"mouseup",processEvent:null,selectStyle:{fillOpacity:1},unSelectStyle:{fillOpacity:.1},cancelable:!0})},n.start=function(t){var e,n=this,r=n.view,i=[];if(r.eachShape(function(n,r){r.isPointInPath(t.x,t.y)?e=r:i.push(r)}),!e)return void n.reset();if(e.get("_selected")){if(!n.cancelable)return;n.reset()}else{var s=n.selectStyle,u=n.unSelectStyle,l=a(e.attr(),e);e.set("_originAttrs",l),e.attr(s),o.each(i,function(t){var e=t.get("_originAttrs");e&&t.attr(e),t.set("_selected",!1),u&&(e=a(t.attr(),u),t.set("_originAttrs",e),t.attr(u))}),e.set("_selected",!0),n.selectedShape=e,n.canvas.draw()}},n.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&e.get("origin")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!e.get("_selected"))},n.reset=function(){var t=this;if(t.selectedShape){var e=t.view,n=e.get("geoms")[0],r=n.get("container").get("children")[0],i=r.get("children");o.each(i,function(t){var e=t.get("_originAttrs");e&&(t._attrs=e,t.set("_originAttrs",null)),t.set("_selected",!1)}),t.canvas.draw()}},e}(s)},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(349),s=n(49),u=n(0),l=n(18),c=n(6),h=n(30),f=n(84),p=n(85),d=l.Canvas,g=u.DomUtil,v=u.isNumber;t.exports=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a=r(i);return a._initContainer(),a._initStyle(),a.render(),i}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return u.mix({},e,{startEvent:null,processEvent:null,endEvent:null,resetEvent:null,height:26,width:"auto",padding:c.plotCfg.padding,container:null,xAxis:null,yAxis:null,fillerStyle:{fill:"#BDCCED",fillOpacity:.3},backgroundStyle:{stroke:"#CCD6EC",fill:"#CCD6EC",fillOpacity:.3,lineWidth:1},range:[0,100],layout:"horizontal",textStyle:{fill:"#545454"},handleStyle:{img:"https://gw.alipayobjects.com/zos/rmsportal/QXtfhORGlDuRvLXFzpsQ.png",width:5},backgroundChart:{type:["area"],color:"#CCD6EC"}})},n._initContainer=function(){var t=this,e=t.container;if(!e)throw Error("Please specify the container for the Slider!");t.domContainer=u.isString(e)?document.getElementById(e):e},n.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=g.getWidth(t.domContainer),n=t.height;if(e!==t.domWidth){var r=t.canvas;r.changeSize(e,n),t.bgChart&&t.bgChart.changeWidth(e),r.clear(),t._initWidth(),t._initSlider(),t._bindEvent(),r.draw()}}},n._initForceFitEvent=function(){var t=this,e=setTimeout(u.wrapBehavior(t,"forceFit"),200);clearTimeout(t.resizeTimer),t.resizeTimer=e},n._initStyle=function(){var t=this;t.handleStyle=u.mix({width:t.height,height:t.height},t.handleStyle),"auto"===t.width&&window.addEventListener("resize",u.wrapBehavior(t,"_initForceFitEvent"))},n._initWidth=function(){var t,e=this;t="auto"===e.width?g.getWidth(e.domContainer):e.width,e.domWidth=t;var n=u.toAllPadding(e.padding);"horizontal"===e.layout?(e.plotWidth=t-n[1]-n[3],e.plotPadding=n[3],e.plotHeight=e.height):"vertical"===e.layout&&(e.plotWidth=e.width,e.plotHeight=e.height-n[0]-n[2],e.plotPadding=n[0])},n._initCanvas=function(){var t=this,e=t.domWidth,n=t.height,r=new d({width:e,height:n,containerDOM:t.domContainer,capture:!1}),i=r.get("el");i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.zIndex=3,t.canvas=r},n._initBackground=function(){var t,e=this,n=this.chart,r=n.getAllGeoms[0],i=e.data=e.data||n.get("data"),a=n.getXScale(),o=e.xAxis||a.field,l=e.yAxis||n.getYScales()[0].field,c=u.deepMix((t={},t[""+o]={range:[0,1]},t),p(n),e.scales);if(delete c[o].min,delete c[o].max,!i)throw Error("Please specify the data!");if(!o)throw Error("Please specify the xAxis!");if(!l)throw Error("Please specify the yAxis!");var h=e.backgroundChart,f=h.type||r.get("type"),d=h.color||"grey",g=h.shape;u.isArray(f)||(f=[f]);var v=u.toAllPadding(e.padding),y=new s({container:e.container,width:e.domWidth,height:e.height,padding:[0,v[1],0,v[3]],animate:!1});y.source(i),y.scale(c),y.axis(!1),y.tooltip(!1),y.legend(!1),u.each(f,function(t,e){var n=y[t]().position(o+"*"+l).opacity(1),r=u.isArray(d)?d[e]:d;r&&(u.isObject(r)?r.field&&n.color(r.field,r.colors):n.color(r));var i=u.isArray(g)?g[e]:g;i&&(u.isObject(i)?i.field&&n.shape(i.field,i.callback||i.shapes):n.shape(i))}),y.render(),e.bgChart=y,e.scale="horizontal"===e.layout?y.getXScale():y.getYScales()[0],"vertical"===e.layout&&y.destroy()},n._initRange=function(){var t=this,e=t.startRadio,n=t.endRadio,r=t._startValue,i=t._endValue,a=t.scale,o=0,s=1;v(e)?o=e:r&&(o=a.scale(a.translate(r))),v(n)?s=n:i&&(s=a.scale(a.translate(i)));var u=t.minSpan,l=t.maxSpan,c=0;if("time"===a.type||"timeCat"===a.type){var h=a.values;c=h[h.length-1]-h[0]}else a.isLinear&&(c=a.max-a.min);c&&u&&(t.minRange=u/c*100),c&&l&&(t.maxRange=l/c*100);var f=[100*o,100*s];return t.range=f,f},n._getHandleValue=function(t){var e=this,n=e.range,r=n[0]/100,i=n[1]/100,a=e.scale;return"min"===t?e._startValue?e._startValue:a.invert(r):e._endValue?e._endValue:a.invert(i)},n._initSlider=function(){var t=this,e=t.canvas,n=t._initRange(),r=t.scale,i=e.addGroup(o,{middleAttr:t.fillerStyle,range:n,minRange:t.minRange,maxRange:t.maxRange,layout:t.layout,width:t.plotWidth,height:t.plotHeight,backgroundStyle:t.backgroundStyle,textStyle:t.textStyle,handleStyle:t.handleStyle,minText:r.getText(t._getHandleValue("min")),maxText:r.getText(t._getHandleValue("max"))});"horizontal"===t.layout?i.translate(t.plotPadding,0):"vertical"===t.layout&&i.translate(0,t.plotPadding),t.rangeElement=i},n._updateElement=function(t,e){var n=this,r=n.chart,i=n.scale,a=n.rangeElement,o=i.field,s=a.get("minTextElement"),l=a.get("maxTextElement"),c=i.invert(t),h=i.invert(e),p=i.getText(c),d=i.getText(h);s.attr("text",p),l.attr("text",d),n._startValue=p,n._endValue=d,n.onChange&&n.onChange({startText:p,endText:d,startValue:c,endValue:h,startRadio:t,endRadio:e}),r.scale(o,u.mix({},f(r,o),{nice:!1,min:c,max:h})),r.repaint()},n._bindEvent=function(){var t=this;t.rangeElement.on("sliderchange",function(e){var n=e.range;t._updateElement(n[0]/100,n[1]/100)})},n.clear=function(){var t=this;t.canvas.clear(),t.bgChart&&t.bgChart.destroy(),t.bgChart=null,t.scale=null,t.canvas.draw()},n.repaint=function(){var t=this;t.clear(),t.render()},n.render=function(){var t=this;t._initWidth(),t._initCanvas(),t._initBackground(),t._initSlider(),t._bindEvent(),t.canvas.draw()},n.destroy=function(){var t=this;clearTimeout(t.resizeTimer),t.rangeElement.off("sliderchange"),t.bgChart&&t.bgChart.destroy(),t.canvas.destroy();for(var e=t.domContainer;e.hasChildNodes();)e.removeChild(e.firstChild);window.removeEventListener("resize",u.getWrapBehavior(t,"_initForceFitEvent")),t.destroyed=!0},e}(h)},function(t,e,n){function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,a(t,e)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=n(0),s=n(30),u=n(84),l=n(86),c=["X","Y","XY"],h="X";t.exports=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var a=r(i);a.chart=n,a.type=a.type.toUpperCase();var s=a.data=n.get("data"),u=n.getYScales();u.push(n.getXScale());var f=n.get("scaleController");return u.forEach(function(t){var e=t.field,n=f.defs[e]||{};a.limitRange[e]=l(s,t),a.originScaleDefsByField[e]=o.mix(n,{nice:!!n.nice}),a.stepByField[e]=t.isLinear?(t.max-t.min)*a.stepRatio:a.catStep}),c.includes(a.type)||(a.type=h),i}i(e,t);var n=e.prototype;return n.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return o.mix({},e,{processEvent:"mousewheel",type:h,stepRatio:.05,stepByField:{},minScale:1,maxScale:4,catStep:2,limitRange:{},originScaleDefsByField:{}})},n._applyScale=function(t,e,n,r){void 0===n&&(n=0);var i=this,a=i.chart,s=i.stepByField;if(t.isLinear){var l=t.min,c=t.max,h=t.field,f=1-n,p=s[h]*e,d=l+p*n,g=c-p*f;if(g>d){var v=u(a,h);a.scale(h,o.mix({},v,{nice:!1,min:d,max:g}))}}else{var y=t.field,m=t.values,x=i.chart,b=x.get("coord"),_=u(x,y),w=i.limitRange[y],M=w.length,S=i.maxScale,A=i.minScale,C=M/S,P=M/A,k=m.length,T=b.invertPoint(r),I=T.x,O=k-e*this.catStep,E=parseInt(O*I),L=O+E;if(e>0&&k>=C){var D=E,F=L;L>k&&(F=k-1,D=k-O);var B=m.slice(D,F);x.scale(y,o.mix({},_,{values:B}))}else if(0>e&&P>=k){var R=w.indexOf(m[0]),j=w.indexOf(m[k-1]),N=Math.max(0,R-E),z=Math.min(j+L,M),Y=w.slice(N,z);x.scale(y,o.mix({},_,{values:Y}))}}},n.process=function(t){var e=this,n=e.chart,r=e.type,i=n.get("coord"),a=t.deltaY,o=i.invertPoint(t);if(a){e.onZoom&&e.onZoom(a,o,e),a>0?e.onZoomin&&e.onZoomin(a,o,e):e.onZoomout&&e.onZoomout(a,o,e);var s=a/Math.abs(a);if(r.indexOf("X")>-1&&e._applyScale(n.getXScale(),s,o.x,t),r.indexOf("Y")>-1){n.getYScales().forEach(function(n){e._applyScale(n,s,o.y,t)})}}n.repaint()},n.reset=function(){var t=this,e=t.view,n=t.originScaleDefsByField,r=e.getYScales();r.push(e.getXScale()),r.forEach(function(t){if(t.isLinear){var r=t.field;e.scale(r,n[r])}}),e.repaint()},e}(s)},function(t,e,n){var r,i;t.exports=n(0).deepMix({},n(161),{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:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9",backgroundColor:"rgba(0, 0, 0, 0.5)",boxShadow:"0px 0px 2px #000"},i),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}}}})},function(t,e,n){var r=n(2),i=n(165),a=n(164),o=n(363),s=n(368),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"},r.extend(u,a),r.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(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n,r=this.getPointByClient(e.clientX,e.clientY),i=this.getShape(r.x,r.y,e),a=this.get("el");if("mousemove"===t){var o=this.get("preShape");if(o&&o!==i){var s=this._getEventObj("mouseleave",e,r,o);n=this.getEmitter(o,e),n&&n.emit("mouseleave",s),a.style.cursor="default"}if(i){var u=this._getEventObj("mousemove",e,r,i);if(n=this.getEmitter(i,e),n&&n.emit("mousemove",u),o!==i){var l=this._getEventObj("mouseenter",e,r,i);n&&n.emit("mouseenter",l,e)}}else{this.emit("mousemove",this._getEventObj("mousemove",e,r,this))}this.set("preShape",i)}else{var c=this._getEventObj(t,e,r,i||this);n=this.getEmitter(i,e),n&&n!==this&&n.emit(t,c),this.emit(t,c)}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_registEvents:function(){var t=this,e=t.get("el");r.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){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){r.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",r.getRatio()),this._cfg.renderer=s[this.get("renderer")||"canvas"],this._cfg.canvas=this,this._cfg.timeline=new o(this)},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.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"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,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"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),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"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+r.left,clientY:e/i+r.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){function r(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}function i(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var i in t)if("transform"===i)n.matrix=o.transform(e.getMatrix(),t[i]);else if("rotate"===i)n.matrix=o.transform(e.getMatrix(),[["r",t[i]]]);else if("matrix"===i)n.matrix=t[i];else{if(u[i]&&/^[r,R,L,l]{1}[\s]*\(/.test(t[i]))continue;s[i]||r[i]===t[i]||(n.attrs[i]=t[i])}return n}function a(t,e){var n=e.delay,r=Object.prototype.hasOwnProperty;return o.each(e.toAttrs,function(e,i){o.each(t,function(t){t.startTime+t.duration>n&&r.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])})}),e.toMatrix&&o.each(t,function(t){t.startTime+t.duration>n&&t.toMatrix&&delete t.toMatrix}),t}var o=n(2),s={delay:"delay",rotate:"rotate"},u={fill:"fill",stroke:"stroke",fillStyle:"fillStyle",strokeStyle:"strokeStyle"};t.exports={animate:function(t,e,n,s,u){void 0===u&&(u=0);var l=this;l.set("animating",!0);var c=l.get("timeline");c||(c=l.get("canvas").get("timeline"),l.setSilent("timeline",c));var h=l.get("animators")||[];c._timer||c.initTimer(),o.isNumber(s)&&(u=s,s=null),o.isFunction(n)?(s=n,n="easeLinear"):n=n||"easeLinear";var f=i(t,l),p={fromAttrs:r(f,l),toAttrs:f.attrs,fromMatrix:o.clone(l.getMatrix()),toMatrix:f.matrix,duration:e,easing:n,callback:s,delay:u,startTime:c.getTime(),id:o.uniqueId()};h.length>0?h=a(h,p):c.addAnimator(l),h.push(p),l.setSilent("animators",h),l.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");o.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;return t.setSilent("pause",{isPaused:!0,pauseTime:t.get("timeline").getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),i=t.get("pause").pauseTime;return o.each(r,function(t){t.startTime=t.startTime+(n-i),t._paused=!1,t._pauseTime=null}),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},function(t,e,n){var r=n(2);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(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;return r[t]=e,"fill"===t||"stroke"===t?void(r[t+"Style"]=e):"opacity"===t?void(r.globalAlpha=e):"clip"===t&&e?void n._setClip(e):"path"===t&&n._afterSetAttrPath?void n._afterSetAttrPath(e):"transform"===t?void n.transform(e):void("rotate"===t&&n.rotateAtStart(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 r(t,e,n){return n.createPath(u),u.isPointInPath(t,e)}var i=n(2),a=n(89),o={arc:n(53),ellipse:n(173),line:n(54)},s=i.createDom(''),u=s.getContext("2d"),l=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=n.startAngle,u=n.endAngle,l=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(r,i,o,s,u,l,c,t,e)},c=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),l=this.hasStroke();return u&&l?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!l&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},h=function(t,e){var n=this._attrs,r=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,l=n.rx,c=n.ry,h=this.getHitLineWidth(),f=l>c?l:c,p=l>c?1:l/c,d=l>c?c/l:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];i.mat3.scale(v,v,[p,d]),i.mat3.translate(v,v,[s,u]);var y=i.mat3.invert([],v);return i.vec3.transformMat3(g,g,y),r&&o?a.circle(0,0,f,g[0],g[1])||a.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1]):r?a.circle(0,0,f,g[0],g[1]):!!o&&a.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1])},f=function(t,e){function n(){var t=o.arc.nearAngle(b,g,v,y);if(i.isNumberEqual(b,t)){var e=i.vec2.squaredLength(x);if(e>=p*p&&d*d>=e)return!0}return!1}function r(){var n=s.getHitLineWidth(),r={x:Math.cos(g)*p+h,y:Math.sin(g)*p+f},i={x:Math.cos(g)*d+h,y:Math.sin(g)*d+f},o={x:Math.cos(v)*p+h,y:Math.sin(v)*p+f},u={x:Math.cos(v)*d+h,y:Math.sin(v)*d+f};return!!a.line(r.x,r.y,i.x,i.y,n,t,e)||(!!a.line(o.x,o.y,u.x,u.y,n,t,e)||(!!a.arcline(h,f,p,g,v,y,n,t,e)||!!a.arcline(h,f,d,g,v,y,n,t,e)))}var s=this,u=s.hasFill(),l=s.hasStroke(),c=s._attrs,h=c.x,f=c.y,p=c.rs,d=c.re,g=c.startAngle,v=c.endAngle,y=c.clockwise,m=[1,0],x=[t-h,e-f],b=i.vec2.angleTo(m,x);return u&&l?n()||r():u?n():!!l&&r()},p=function(t,e){var n=this._attrs;return!(this.get("toDraw")||!n.img)&&(this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg(),a.rect(n.x,n.y,n.width,n.height,t,e))},d=function(t,e){var n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(r,i,o,s,u,t,e)},g=function(t,e){function n(){if(!i.isEmpty(o)){for(var n=a.getHitLineWidth(),r=0,s=o.length;s>r;r++)if(o[r].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?r(t,e,a)||n():s?r(t,e,a):!!u&&n()},v=function(t,e){function n(){var n=i._attrs,r=n.points;if(2>r.length)return!1;var o=i.getHitLineWidth(),s=r.slice(0);return 3>r.length||s.push(r[0]),a.polyline(s,o,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},y=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(r,i,o+s/2,t,e)},m=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var i=r.points;if(2>i.length)return!1;return a.polyline(i,r.lineWidth,t,e)}return!1},x=function(t,e){function n(){var n=i._attrs,r=n.x,o=n.y,s=n.width,u=n.height,l=n.radius,c=i.getHitLineWidth();if(0===l){var h=c/2;return a.line(r-h,o,r+s+h,o,c,t,e)||a.line(r+s,o-h,r+s,o+u+h,c,t,e)||a.line(r+s+h,o+u,r-h,o+u,c,t,e)||a.line(r,o+u+h,r,o-h,c,t,e)}return a.line(r+l,o,r+s-l,o,c,t,e)||a.line(r+s,o+l,r+s,o+u-l,c,t,e)||a.line(r+s-l,o+u,r+l,o+u,c,t,e)||a.line(r,o+u-l,r,o+l,c,t,e)||a.arcline(r+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,c,t,e)||a.arcline(r+s-l,o+u-l,l,0,.5*Math.PI,!1,c,t,e)||a.arcline(r+l,o+u-l,l,.5*Math.PI,Math.PI,!1,c,t,e)||a.arcline(r+l,o+l,l,Math.PI,1.5*Math.PI,!1,c,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return a.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},_=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)},w={arc:l,circle:c,dom:_,ellipse:h,fan:f,image:p,line:d,path:g,marker:y,polygon:v,polyline:m,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=w[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function r(t,e,n){var r={},i=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var l;for(var f in i)if(!a.isEqual(s[f],i[f]))if("path"===f){var p=i[f],d=s[f];p.length>d.length?(p=o.parsePathString(i[f]),d=o.parsePathString(s[f]),d=o.fillPathByDiff(d,p),d=o.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=o.parsePathString(i[f]),d=o.parsePathString(s[f]),d=o.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;p.length>g;g++){for(var v=p[g],y=d[g],m=[],x=0;v.length>x;x++)a.isNumber(v[x])&&y&&a.isNumber(y[x])?(l=c(y[x],v[x]),m.push(l(n))):m.push(v[x]);r[f].push(m)}}else l=c(s[f],i[f]),r[f]=l(n);if(u){t.setMatrix(h(e.fromMatrix,u)(n))}t.attr(r)}}function i(t,e,n){var i=e.startTime;if(i+e.delay>n||e.isPaused)return!1;var a,o=e.duration,s=e.easing;if(n=n-i-e.delay,e.toAttrs.repeat)a=n%o/o,a=u[s](a);else{if((a=n/o)>=1)return t.attr(e.toAttrs),e.toMatrix&&t.setMatrix(e.toMatrix),!0;a=u[s](a)}return r(t,e,a),!1}var a=n(2),o=n(90),s=n(75),u=n(121),l=n(232),c=l.interpolate,h=l.interpolateArray,f=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};a.augment(f,{initTimer:function(){var t,e,n,r=this,a=this,o=!1;a._timer=s.timer(function(s){if(a._current=s,r._animators.length>0){for(var u=r._animators.length-1;u>=0;u--)if(t=r._animators[u],t.get("destroyed"))a.removeAnimator(u);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var l=e.length-1;l>=0;l--)n=e[l],(o=i(t,n,s))&&(e.splice(l,1),o=!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=f},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function i(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){r(e)||(i(e)?(t[0]*=e[0],t[4]*=e[4]):o.mat3.multiply(t,t,e))}var o=n(2);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){return this.translate(t-(this.get("x")||0),e-(this.get("y")||0)),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){var e=this;t=t||e;for(var n=e,r=[];n!==t;)r.unshift(n),n=n.get("parent");r.unshift(n);var i=[1,0,0,0,1,0,0,0,1];return o.each(r,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(i(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");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){t.exports={painter:n(366)}},function(t,e,n){var r=n(2),i=n(367),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"];t.exports=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');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=r.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=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;n.length>i;i++)r=n[i],n[i].isGroup?e._drawGroup(r):e._drawShape(r);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=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}()},function(t,e,n){function r(t,e){var n=t.match(p);s.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}function i(t,e,n){var i,a,o=c.exec(t),u=s.mod(s.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2],h=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:h.minX,y:h.minY},a={x:h.maxX,y:h.maxY}):.5*Math.PI<=u&&u1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}s.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(s.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return i(t,e,n);if("r"===t[0])return a(t,e,n);if("p"===t[0])return o(t,e,n)}return t}},numberToColor:function(t){var e=d[t];if(!e){for(var n=t.toString(16),r=n.length;6>r;r++)n="0"+n;e="#"+n,d[t]=e}return e}}},function(t,e,n){t.exports={canvas:n(365),svg:n(376)}},function(t,e,n){var r=n(2),i=n(372),a=n(374),o=n(370),s=n(371),u=n(373);t.exports=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs");e.id=r.uniqueId("defs_"),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,r=null,i=0;n.length>i;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;e.length>r;r++)if(e[r].id===t){n=e[r];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 r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(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}()},function(t,e,n){var r=n(2);t.exports=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);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=i,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,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),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}()},function(t,e,n){var r=n(2);t.exports=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");return this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id,e.appendChild(t._cfg.el.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}()},function(t,e,n){function r(t){var e=t.match(l);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),+t[0]-+e[0]}),o.each(e,function(t){t=t.split(":"),n+=''}),n}function i(t,e){var n,i,a=s.exec(t),u=o.mod(o.toRadian(parseFloat(a[1])),2*Math.PI),l=a[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=u&&u'},t}()},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,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find(function(t){return t._cfg&&t._cfg.el===i})}},function(t,e,n){t.exports={painter:n(377),getShape:n(375)}},function(t,e,n){var r=n(2),i=n(39),a=i.parseRadius,o=n(87),s=n(369),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},l={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"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"};t.exports=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){function e(){n.animateHandler=r.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&&(r.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,r=this,i=t._cfg.children;if(i){if(t._cfg.el&&!e){var a=t._cfg.el.childNodes.length+1;0!==a&&a!==i.length&&(e=!0)}for(var o=0;i.length>o;o++)n=i[o],n.isGroup?r._drawGroup(n,e):r._drawShape(n,e)}},e._drawShape=function(t,e){var n=this,r=t._attrs,i=t._cfg,a=i.el;return i.removed||i.destroyed?void(a&&a.parentNode.removeChild(i.el)):(e&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null),!a&&i.parent&&(n._createDom(t),n._updateShape(t)),a=i.el,!1===i.visible?void a.setAttribute("visibility","hidden"):(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),i.hasUpdate&&n._updateShape(t),void(r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip))))},e._updateShape=function(t){var e=this,n=t._attrs,i=t._cfg.attrs;if(i){if(t._cfg.el||e._createDom(t),"clip"in n&&this._setClip(t,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(t),"text"===t.type)return void e._updateText(t);"fan"===t.type&&e._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",e._assembleMarker(n)),"rect"===t.type&&t._cfg.el.setAttribute("d",e._assembleRect(n));for(var a in n)n[a]!==i[a]&&e._setAttribute(t,a,n[a]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e)){if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))return void o.setAttribute("c"+e,parseInt(n,10));if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=n.map(function(t){return t[0]+","+t[1]}),n=n.join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))return void o.setAttribute("d",this._formatPath(n));if("img"===e)return void this._setImage(t,n);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)return void this._setTransform(t);if("fillStyle"===e||"strokeStyle"===e)return void this._setColor(t,e,n);if("clip"!==e)if(~e.indexOf("Arrow"))if(e=l[e],n){var u=null;u="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+u+")"),t._cfg[e]=u}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),l[e]&&o.setAttribute(l[e],n)}},e._createDom=function(t){var e=u[t.type],n=t._attrs;if(!e)throw Error("the type"+t.type+"is not supported by svg");var r=document.createElementNS("http://www.w3.org/2000/svg",e);return t._cfg.el=r,t._cfg.parent&&t._cfg.parent.get("el").appendChild(r),t._cfg.attrs={},"text"===t.type?(r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(n.stroke||n.strokeStyle||r.setAttribute("stroke","none"),n.fill||n.fillStyle||r.setAttribute("fill","none")),r},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(+t.x)||isNaN(+t.y)||isNaN(+e))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):o.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=a(s);return r.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,[["M "+(e+u.r1)+","+n],["l "+(i-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-i)+",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(""),~t.indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;9>i;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.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||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.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,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var l=e(s,n.re,a),c=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+c.x+","+c.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+d+","+d+",0,"+f+","+h+","+c.x+","+c.y),o.push(n.rs>0?"L "+v.x+","+v.y:"Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;this._setFont(t);for(var a in n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}l[a]&&i.setAttribute(l[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",h[n.textAlign]||"left"),r&&12>+r&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,function(t,e){0===e?"alphabetic"===i?u+=''+t+"":"top"===i?u+=''+t+"":"middle"===i?u+=''+t+"":"bottom"===i?u+=''+t+"":"hanging"===i&&(u+=''+t+""):u+=''+t+""}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(!e)return void n.removeAttribute("clip-path");if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);n.setAttribute("clip-path","url(#"+this.context.addClip(e)+")")}},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(!n)return void r.setAttribute(l[e],"none");if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(l[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(l[e],"url(#"+o+")")}else r.setAttribute(l[e],n)},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}()},function(t,e,n){var r=n(8);r.Arc=n(166),r.Circle=n(167),r.Dom=n(168),r.Ellipse=n(169),r.Fan=n(170),r.Image=n(171),r.Line=n(172),r.Marker=n(87),r.Path=n(175),r.Polygon=n(176),r.Polyline=n(177),r.Rect=n(178),r.Text=n(179),t.exports=r},function(t,e,n){var r=n(589),i=r.detect,a=n(1),o=n(383),s=n(183),u=n(385),l=n(390),c=i(),h=c&&"firefox"===c.name,f=function t(e){t.superclass.constructor.call(this,e)};f.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null,renderer:"canvas",supportCSSTransform:!1},a.extend(f,s),a.augment(f,o,{init:function(){f.superclass.init.call(this),this._setGlobalParam(),this._setContainer(),this._initPainter(),this._scale(),this.get("eventEnable")&&this.registerEvent(this)},_scale:function(){if("svg"!==this._cfg.renderType){var t=this.get("pixelRatio");this.scale(t,t)}},_setGlobalParam:function(){var t=this.get("renderer")||"canvas";"svg"===t?this.set("pixelRatio",1):this.get("pixelRatio")||this.set("pixelRatio",a.getRatio()),this._cfg.renderType=t,this._cfg.renderer=l[t],this._cfg.canvas=this,this._cfg.timeline=new u(this)},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),a.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"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,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"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._resize()},getPointByEvent:function(t){if(this.get("supportCSSTransform")){var e=this.get("pixelRatio")||1;if(h&&!a.isNil(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX*e,y:t.layerY*e};if(!a.isNil(t.offsetX))return{x:t.offsetX*e,y:t.offsetY*e}}var n=this.getClientByEvent(t);return this.getPointByClient(n.x,n.y)},getClientByEvent:function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},getPointByClient:function(t,e){var n=this.get("el"),r=this.get("pixelRatio")||1,i=n.getBoundingClientRect();return{x:(t-i.left)*r,y:(e-i.top)*r}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=this.get("pixelRatio")||1;return{clientX:t/i+r.left,clientY:e/i+r.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):f.superclass.getShape.call(this,t,e)},getRenderer:function(){return this._cfg.renderType},_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(),f.superclass.destroy.call(this)}}),t.exports=f},function(t,e,n){var r=n(1),i=n(91),a=n(182),o=["click","mousedown","mouseup","dblclick","contextmenu","mouseout","mouseover","mousemove","dragstart","drag","dragend","dragenter","dragleave","drop"],s=function(){};r.augment(s,a,{emit:function(t,e){var n=arguments;if(a.prototype.emit.apply(this,n),!(n.length>=2&&n[1]instanceof i&&n[1].propagationStopped||0>o.indexOf(t)||e.target!==this))for(var r=this._cfg.parent;r&&!r.get("destroyed");)r.emit.apply(r,n),r=r._cfg.parent}}),t.exports=s},function(t,e,n){function r(){return r=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}function i(t,e){var n={},r=e._attrs;for(var i in t.attrs)n[i]=r[i];return n}function a(t,e){var n={matrix:null,attrs:{}},r=e._attrs;for(var i in t)"transform"===i?n.matrix=s.transform(e.getMatrix(),t[i]):"matrix"===i?n.matrix=t[i]:s.isColorProp(i)&&s.isGradientColor(t[i])?n.attrs[i]=t[i]:u[i]||r[i]===t[i]||("rotate"===i&&(e._attrs.rotate=e._attrs.rotate||0),n.attrs[i]=t[i]);return n}function o(t,e){if(e.onFrame)return t;var n=e.delay,r=Object.prototype.hasOwnProperty;return s.each(e.toAttrs,function(e,i){s.each(t,function(t){t.startTime+t.duration>n&&r.call(t.toAttrs,i)&&(delete t.toAttrs[i],delete t.fromAttrs[i])})}),e.toMatrix&&s.each(t,function(t){t.startTime+t.duration>n&&t.toMatrix&&delete t.toMatrix}),t}var s=n(1),u={delay:"delay",repeat:"repeat",rotate:"rotate"};t.exports={animate:function(t,e,n,u,l){void 0===l&&(l=0);var c=this;c.set("animating",!0);var h=c.get("timeline");h||(h=c.get("canvas").get("timeline"),c.setSilent("timeline",h));var f=c.get("animators")||[];h._timer||h.initTimer(),s.isNumber(u)&&(l=u,u=null),s.isFunction(n)?(u=n,n="easeLinear"):n=n||"easeLinear";var p={repeat:t.repeat,duration:e,easing:n,callback:u,delay:l,startTime:h.getTime(),id:s.uniqueId()};if(t.onFrame)p.onFrame=t.onFrame;else{var d=a(t,c);p=r({fromAttrs:i(d,c),toAttrs:d.attrs,fromMatrix:s.clone(c.getMatrix()),toMatrix:d.matrix},p)}f.length>0?f=o(f,p):h.addAnimator(c),f.push(p),c.setSilent("animators",f),c.setSilent("pause",{isPaused:!1})},stopAnimate:function(){var t=this,e=this.get("animators");s.each(e,function(e){t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.attr("matrix",e.toMatrix),e.callback&&e.callback()}),this.setSilent("animating",!1),this.setSilent("animators",[])},pauseAnimate:function(){var t=this;return t.setSilent("pause",{isPaused:!0,pauseTime:t.get("timeline").getTime()}),t},resumeAnimate:function(){var t=this,e=t.get("timeline"),n=e.getTime(),r=t.get("animators"),i=t.get("pause").pauseTime;return s.each(r,function(t){t.startTime=t.startTime+(n-i),t._paused=!1,t._pauseTime=null}),t.setSilent("pause",{isPaused:!1}),t.setSilent("animators",r),t}}},function(t,e,n){var r=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(r.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n._attrs;if(r.isObject(t)){for(var i in t)this._setAttr(i,t[i]);return n.clearBBox(),this._cfg.hasUpdate=!0,n}return 2===arguments.length?(this._setAttr(t,e),n.clearBBox(),this._cfg.hasUpdate=!0,n):n._attrs[t]},_setAttr:function(t,e){var n=this,r=this._attrs;return r[t]=e,"fill"===t||"stroke"===t?void(r[t+"Style"]=e):"opacity"===t?void(r.globalAlpha=e):"clip"===t&&e?void n._setClip(e):"path"===t&&n._afterSetAttrPath?void n._afterSetAttrPath(e):"transform"===t?void n.transform(e):void("rotate"===t&&n.rotateAtStart(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){var r=n(1),i=n(91),a=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave"],o=function(){return(new Date).getTime()},s=null,u=null,l={},c=null,h=0;t.exports={registerEvent:function(){var t=this,e=this.get("el");r.each(a,function(n){e.addEventListener(n,function(e){t._triggerEvent(n,e)},!1)}),e.addEventListener("touchstart",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchstart",e.touches[0])},!1),e.addEventListener("touchmove",function(e){r.isEmpty(e.touches)||t._triggerEvent("touchmove",e.touches[0])},!1),e.addEventListener("touchend",function(e){r.isEmpty(e.changedTouches)||t._triggerEvent("touchend",e.changedTouches[0])},!1),e.addEventListener("contextmenu",function(e){t._triggerEvent("contextmenu",e),e.preventDefault()},!1)},_getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this._getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var a=new i(t,e,!0,!0);return a.x=n.x,a.y=n.y,a.clientX=e.clientX,a.clientY=e.clientY,a.currentTarget=r,a.target=r,a},_triggerEvent:function(t,e){var n=this,r=n.getPointByEvent(e),i=n.getShape(r.x,r.y,e),a=n.get("el");if(c&&"svg"===n.getRenderer()&&(i=n.getShape(r.x,r.y)),"mousemove"===t){if(s&&s!==i&&(n._emitEvent("mouseout",e,r,s),n._emitEvent("mouseleave",e,r,s),c&&n._emitEvent("dragleave",e,r,s),i&&!i.destroyed||(a.style.cursor="default")),c&&(n._emitEvent("drag",e,r,c),n._emitEvent("mousemove",e,r,i)),i){if(!c)if(u===i){var f=o(),p=f-h,d=l.x-e.clientX,g=l.y-e.clientY,v=d*d+g*g;p>120||v>40?(c=i,u=null,this._emitEvent("dragstart",e,r,i)):n._emitEvent("mousemove",e,r,i)}else n._emitEvent("mousemove",e,r,i);s!==i&&(n._emitEvent("mouseenter",e,r,i),n._emitEvent("mouseover",e,r,i),c&&n._emitEvent("dragenter",e,r,i))}else{n.emit("mousemove",n._getEventObj("mousemove",e,r,n))}s=i}else if(this._emitEvent(t,e,r,i||this),c||"mousedown"!==t||0!==e.button||(u=i,l={x:e.clientX,y:e.clientY},h=o()),"mouseup"===t&&0===e.button){var y=l.x-e.clientX,m=l.y-e.clientY,x=y*y+m*m,b=o(),_=b-h;(40>x||200>_)&&(h=0,this._emitEvent("click",e,r,u||this)),c&&(c._cfg.capture=!0,this._emitEvent("dragend",e,r,c),c=null,this._emitEvent("drop",e,r,i||this)),u=null}i&&!i.get("destroyed")&&(a.style.cursor=i.attr("cursor")||"default")},_emitEvent:function(t,e,n,r){var i=this._getEventObj(t,e,n,r),a=this._getEmitter(r,e);return a&&!a.get("destroyed")&&a.emit(t,i),a}}},function(t,e,n){function r(t,e,n){return n.createPath(u),u.isPointInPath(t,e)}var i=n(1),a=n(94),o={arc:n(57),ellipse:n(192),line:n(58)},s=i.createDom(''),u=s.getContext("2d"),l=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=n.startAngle,u=n.endAngle,l=n.clockwise,c=this.getHitLineWidth();return!!this.hasStroke()&&a.arcline(r,i,o,s,u,l,c,t,e)},c=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.r,s=this.getHitLineWidth(),u=this.hasFill(),l=this.hasStroke();return u&&l?a.circle(r,i,o,t,e)||a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e):u?a.circle(r,i,o,t,e):!!l&&a.arcline(r,i,o,0,2*Math.PI,!1,s,t,e)},h=function(t,e){var n=this._attrs,r=this.hasFill(),o=this.hasStroke(),s=n.x,u=n.y,l=n.rx,c=n.ry,h=this.getHitLineWidth(),f=l>c?l:c,p=l>c?1:l/c,d=l>c?c/l:1,g=[t,e,1],v=[1,0,0,0,1,0,0,0,1];i.mat3.scale(v,v,[p,d]),i.mat3.translate(v,v,[s,u]);var y=i.mat3.invert([],v);return i.vec3.transformMat3(g,g,y),r&&o?a.circle(0,0,f,g[0],g[1])||a.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1]):r?a.circle(0,0,f,g[0],g[1]):!!o&&a.arcline(0,0,f,0,2*Math.PI,!1,h,g[0],g[1])},f=function(t,e){function n(){var t=o.arc.nearAngle(b,g,v,y);if(i.isNumberEqual(b,t)){var e=i.vec2.squaredLength(x);if(e>=p*p&&d*d>=e)return!0}return!1}function r(){var n=s.getHitLineWidth(),r={x:Math.cos(g)*p+h,y:Math.sin(g)*p+f},i={x:Math.cos(g)*d+h,y:Math.sin(g)*d+f},o={x:Math.cos(v)*p+h,y:Math.sin(v)*p+f},u={x:Math.cos(v)*d+h,y:Math.sin(v)*d+f};return!!a.line(r.x,r.y,i.x,i.y,n,t,e)||(!!a.line(o.x,o.y,u.x,u.y,n,t,e)||(!!a.arcline(h,f,p,g,v,y,n,t,e)||!!a.arcline(h,f,d,g,v,y,n,t,e)))}var s=this,u=s.hasFill(),l=s.hasStroke(),c=s._attrs,h=c.x,f=c.y,p=c.rs,d=c.re,g=c.startAngle,v=c.endAngle,y=c.clockwise,m=[1,0],x=[t-h,e-f],b=i.vec2.angleTo(m,x);return u&&l?n()||r():u?n():!!l&&r()},p=function(t,e){var n=this._attrs;return!(this.get("toDraw")||!n.img)&&(this._cfg.attrs&&this._cfg.attrs.img===n.img||this._setAttrImg(),a.rect(n.x,n.y,n.width,n.height,t,e))},d=function(t,e){var n=this._attrs,r=n.x1,i=n.y1,o=n.x2,s=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&a.line(r,i,o,s,u,t,e)},g=function(t,e){function n(){if(!i.isEmpty(o)){for(var n=a.getHitLineWidth(),r=0,s=o.length;s>r;r++)if(o[r].isInside(t,e,n))return!0;return!1}}var a=this,o=a.get("segments"),s=a.hasFill(),u=a.hasStroke();return s&&u?r(t,e,a)||n():s?r(t,e,a):!!u&&n()},v=function(t,e){function n(){var n=i._attrs,r=n.points;if(2>r.length)return!1;var o=i.getHitLineWidth(),s=r.slice(0);return 3>r.length||s.push(r[0]),a.polyline(s,o,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},y=function(t,e){var n=this._attrs,r=n.x,i=n.y,o=n.radius||n.r,s=this.getHitLineWidth();return a.circle(r,i,o+s/2,t,e)},m=function(t,e){var n=this,r=n._attrs;if(n.hasStroke()){var i=r.points;if(2>i.length)return!1;return a.polyline(i,r.lineWidth,t,e)}return!1},x=function(t,e){function n(){var n=i._attrs,r=n.x,o=n.y,s=n.width,u=n.height,l=n.radius,c=i.getHitLineWidth();if(0===l){var h=c/2;return a.line(r-h,o,r+s+h,o,c,t,e)||a.line(r+s,o-h,r+s,o+u+h,c,t,e)||a.line(r+s+h,o+u,r-h,o+u,c,t,e)||a.line(r,o+u+h,r,o-h,c,t,e)}return a.line(r+l,o,r+s-l,o,c,t,e)||a.line(r+s,o+l,r+s,o+u-l,c,t,e)||a.line(r+s-l,o+u,r+l,o+u,c,t,e)||a.line(r,o+u-l,r,o+l,c,t,e)||a.arcline(r+s-l,o+l,l,1.5*Math.PI,2*Math.PI,!1,c,t,e)||a.arcline(r+s-l,o+u-l,l,0,.5*Math.PI,!1,c,t,e)||a.arcline(r+l,o+u-l,l,.5*Math.PI,Math.PI,!1,c,t,e)||a.arcline(r+l,o+l,l,Math.PI,1.5*Math.PI,!1,c,t,e)}var i=this,o=i.hasFill(),s=i.hasStroke();return o&&s?r(t,e,i)||n():o?r(t,e,i):!!s&&n()},b=function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return a.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},_=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)},w={arc:l,circle:c,dom:_,ellipse:h,fan:f,image:p,line:d,path:g,marker:y,polygon:v,polyline:m,rect:x,text:b};t.exports={isPointInPath:function(t,e){var n=w[this.type];return!!n&&n.call(this,t,e)}}},function(t,e,n){function r(t,e,n){var r={},i=e.toAttrs,s=e.fromAttrs,u=e.toMatrix;if(!t.get("destroyed")){var l;for(var f in i)if(!a.isEqual(s[f],i[f]))if("path"===f){var p=i[f],d=s[f];p.length>d.length?(p=o.parsePathString(i[f]),d=o.parsePathString(s[f]),d=o.fillPathByDiff(d,p),d=o.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=o.parsePathString(i[f]),d=o.parsePathString(s[f]),d=o.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[f]=[];for(var g=0;p.length>g;g++){for(var v=p[g],y=d[g],m=[],x=0;v.length>x;x++)a.isNumber(v[x])&&y&&a.isNumber(y[x])?(l=c(y[x],v[x]),m.push(l(n))):m.push(v[x]);r[f].push(m)}}else a.isColorProp(f)&&a.isGradientColor(i[f])?r[f]=i[f]:(l=c(s[f],i[f]),r[f]=l(n));if(u){t.setMatrix(h(e.fromMatrix,u)(n))}t.attr(r)}}function i(t,e,n){var i=e.startTime;if(i+e.delay>n||e.isPaused)return!1;var a,o=e.duration,s=e.easing;if(n=n-i-e.delay,e.repeat)a=n%o/o,a=u[s](a);else{if((a=n/o)>=1){return t.attr(e.toAttrs||e.onFrame(1)),e.toMatrix&&t.setMatrix(e.toMatrix),!0}a=u[s](a)}if(e.onFrame){t.attr(e.onFrame(a))}else r(t,e,a);return!1}var a=n(1),o=n(96),s=n(75),u=n(121),l=n(232),c=l.interpolate,h=l.interpolateArray,f=function(t){this._animators=[],this._current=0,this._timer=null,this.canvas=t};a.augment(f,{initTimer:function(){var t,e,n,r=this,a=this,o=!1;a._timer=s.timer(function(s){if(a._current=s,r._animators.length>0){for(var u=r._animators.length-1;u>=0;u--)if(t=r._animators[u],t.get("destroyed"))a.removeAnimator(u);else{if(!t.get("pause").isPaused){e=t.get("animators");for(var l=e.length-1;l>=0;l--)n=e[l],(o=i(t,n,s))&&(e.splice(l,1),o=!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=f},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function i(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function a(t,e){r(e)||(i(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){return this.translate(t-(this.get("x")||0),e-(this.get("y")||0)),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){var e=this;t=t||e;for(var n=e,r=[];n!==t;)r.unshift(n),n=n.get("parent");r.unshift(n);var i=[1,0,0,0,1,0,0,0,1];return o.each(r,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(i(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");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){t.exports={painter:n(388)}},function(t,e,n){var r=n(1),i=n(389),a=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash","lineDashOffset"];t.exports=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');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=r.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)}finally{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=this,n=t._cfg.children,r=null;this.setContext(t);for(var i=0;n.length>i;i++)r=n[i],n[i].isGroup?e._drawGroup(r):e._drawShape(r);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=i.parseStyle(s,t,e)),"strokeStyle"===o&&(s=i.parseStyle(s,t,e)),"lineDash"===o&&e.setLineDash?r.isArray(s)?e.setLineDash(s):r.isString(s)&&e.setLineDash(s.split(" ")):e[o]=s}},t}()},function(t,e,n){function r(t,e){var n=t.match(p);s.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}function i(t,e,n){var i,a,o=c.exec(t),u=s.mod(s.toRadian(parseFloat(o[1])),2*Math.PI),l=o[2],h=e.getBBox();u>=0&&u<.5*Math.PI?(i={x:h.minX,y:h.minY},a={x:h.maxX,y:h.maxY}):.5*Math.PI<=u&&u1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}s.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e,n){if(s.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return i(t,e,n);if("r"===t[0])return a(t,e,n);if("p"===t[0])return o(t,e,n)}return t}}}},function(t,e,n){t.exports={canvas:n(387),svg:n(398)}},function(t,e,n){var r=n(1),i=n(394),a=n(396),o=n(392),s=n(393),u=n(395);t.exports=function(){function t(t){var e=document.createElementNS("http://www.w3.org/2000/svg","defs");e.id=r.uniqueId("defs_"),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,r=null,i=0;n.length>i;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},e.findById=function(t){for(var e=this.children,n=null,r=0;e.length>r;r++)if(e[r].id===t){n=e[r];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 r=new o(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),r.id},e.addGradient=function(t){var e=new i(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}()},function(t,e,n){var r=n(1);t.exports=function(){function t(t,e){var n=document.createElementNS("http://www.w3.org/2000/svg","marker"),i=r.uniqueId("marker_");n.setAttribute("id",i);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=i,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,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),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}()},function(t,e,n){var r=n(1);t.exports=function(){function t(t){this.type="clip";var e=document.createElementNS("http://www.w3.org/2000/svg","clipPath");return this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id,e.appendChild(t._cfg.el.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}()},function(t,e,n){function r(t){var e=t.match(l);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),+t[0]-+e[0]}),o.each(e,function(t){t=t.split(":"),n+=''}),n}function i(t,e){var n,i,a=s.exec(t),u=o.mod(o.toRadian(parseFloat(a[1])),2*Math.PI),l=a[2];u>=0&&u<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=u&&u'},t}()},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,r){var i=r.target||r.srcElement;if(!n[i.tagName]){for(var a=i.parentNode;a&&!n[a.tagName];)a=a.parentNode;i=a}return this._cfg.el===i?this:this.find(function(t){return t._cfg&&t._cfg.el===i})}},function(t,e,n){t.exports={painter:n(399),getShape:n(397)}},function(t,e,n){var r=n(1),i=n(40),a=i.parseRadius,o=n(92),s=n(391),u={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject",fan:"path",group:"g"},l={opacity:"opacity",fillStyle:"fill",strokeOpacity:"stroke-opacity",fillOpacity:"fill-opacity",strokeStyle:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",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"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"};t.exports=function(){function t(t){if(!t)return null;var e=r.uniqueId("canvas_"),n=r.createDom('');return t.appendChild(n),this.type="svg",this.canvas=n,this.context=new s(n),this.toDraw=!1,this}var e=t.prototype;return e.draw=function(t){function e(){n.animateHandler=r.requestAnimationFrame(function(){n.animateHandler=void 0,n.toDraw&&e()});try{n._drawChildren(t)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t)}finally{n.toDraw=!1}}var n=this;n.animateHandler?n.toDraw=!0:e()},e.drawSync=function(t){this._drawChildren(t)},e._drawGroup=function(t,e){var n=t._cfg;n.removed||n.destroyed||(n.tobeRemoved&&(r.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._drawChildren=function(t){var e,n=this,r=t._cfg.children;if(r)for(var i=0;r.length>i;i++)e=r[i],e.isGroup?n._drawGroup(e,i):n._drawShape(e,i)},e._drawShape=function(t,e){var n=this,r=t._attrs,i=t._cfg,a=i.el;return i.removed||i.destroyed?void(a&&a.parentNode.removeChild(i.el)):(!a&&i.parent&&(n._createDom(t,e),n._updateShape(t)),a=i.el,!1===i.visible?void a.setAttribute("visibility","hidden"):(i.visible&&a.hasAttribute("visibility")&&a.removeAttribute("visibility"),i.hasUpdate&&n._updateShape(t),void(r.clip&&r.clip._cfg.hasUpdate&&n._updateShape(r.clip))))},e._updateShape=function(t){var e=this,n=t._attrs,i=t._cfg.attrs;if(i){if(t._cfg.el||e._createDom(t),"clip"in n&&this._setClip(t,n.clip),("shadowOffsetX"in n||"shadowOffsetY"in n||"shadowBlur"in n||"shadowColor"in n)&&this._setShadow(t),"text"===t.type)return void e._updateText(t);"fan"===t.type&&e._updateFan(t),"marker"===t.type&&t._cfg.el.setAttribute("d",e._assembleMarker(n)),"rect"===t.type&&t._cfg.el.setAttribute("d",e._assembleRect(n));for(var a in n)n[a]!==i[a]&&e._setAttribute(t,a,n[a]);t._cfg.attrs=r.deepMix({},t._attrs),t._cfg.hasUpdate=!1}},e._setAttribute=function(t,e,n){var i=t.type,a=t._attrs,o=t._cfg.el,s=this.context;if("marker"!==i&&"rect"!==i||!~["x","y","radius","r"].indexOf(e)){if(~["circle","ellipse"].indexOf(i)&&~["x","y"].indexOf(e))return void o.setAttribute("c"+e,parseInt(n,10));if("polygon"===i&&"points"===e)return n&&0!==n.length||(n=""),r.isArray(n)&&(n=n.map(function(t){return t[0]+","+t[1]}),n=n.join(" ")),void o.setAttribute("points",n);if("path"===e&&r.isArray(n))return void o.setAttribute("d",this._formatPath(n));if("img"===e)return void this._setImage(t,n);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)return void this._setTransform(t);if("fillStyle"===e||"strokeStyle"===e)return void this._setColor(t,e,n);if("clip"!==e)if(~e.indexOf("Arrow"))if(e=l[e],n){var u=null;u="boolean"==typeof n?s.getDefaultArrow(a,e):s.addArrow(a,e),o.setAttribute(e,"url(#"+u+")"),t._cfg[e]=u}else t._cfg[e]=null,o.removeAttribute(e);else"html"===e&&("string"==typeof n?o.innerHTML=n:(o.innerHTML="",o.appendChild(n))),l[e]&&o.setAttribute(l[e],n)}},e._createDom=function(t,e){var n=u[t.type],r=t._attrs,i=t._cfg.parent;if(!n)throw Error("the type"+t.type+"is not supported by svg");var a=document.createElementNS("http://www.w3.org/2000/svg",n);if(t._cfg.id&&(a.id=t._cfg.id),t._cfg.el=a,i){var o=i._cfg.el;if(void 0===e)o.appendChild(a);else{var s=i._cfg.el.childNodes;"svg"===o.tagName&&(e+=1),s.length>e?o.insertBefore(a,s[e]):o.appendChild(a)}}return t._cfg.attrs={},"text"===t.type?(a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")):(r.stroke||r.strokeStyle||a.setAttribute("stroke","none"),r.fill||r.fillStyle||a.setAttribute("fill","none")),a},e._assembleMarker=function(t){var e=t.r;if(void 0===t.r&&(e=t.radius),isNaN(+t.x)||isNaN(+t.y)||isNaN(+e))return"";var n="";return n="function"==typeof t.symbol?t.symbol(t.x,t.y,e):o.Symbols[t.symbol||"circle"](t.x,t.y,e),r.isArray(n)&&(n=n.map(function(t){return t.join(" ")}).join("")),n},e._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,o=t.height,s=t.radius;if(!s)return"M "+e+","+n+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=a(s);return r.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,[["M "+(e+u.r1)+","+n],["l "+(i-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-i)+",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(""),~t.indexOf("NaN")?"":t},e._setTransform=function(t){for(var e=t._attrs.matrix,n=t._cfg.el,r=[],i=0;9>i;i+=3)r.push(e[i]+","+e[i+1]);r=r.join(","),-1===r.indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)},e._setImage=function(t,e){var n=t._attrs,i=t._cfg.el;if(r.isString(e))i.setAttribute("href",e);else if(e instanceof Image)n.width||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.setAttribute("href",e.src);else if(e instanceof HTMLElement&&r.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase())i.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||(i.setAttribute("width",e.width),t._attrs.width=e.width),n.height||(i.setAttribute("height",e.height),t._attrs.height=e.height),i.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,i=t._cfg,a={x:n.x,y:n.y},o=[],s=n.startAngle,u=n.endAngle;r.isNumberEqual(u-s,2*Math.PI)&&(u-=1e-5);var l=e(s,n.re,a),c=e(u,n.re,a),h=u>s?1:0,f=Math.abs(u-s)>Math.PI?1:0,p=n.rs,d=n.re,g=e(s,n.rs,a),v=e(u,n.rs,a);n.rs>0?(o.push("M "+c.x+","+c.y),o.push("L "+v.x+","+v.y),o.push("A "+p+","+p+",0,"+f+","+(1===h?0:1)+","+g.x+","+g.y),o.push("L "+l.x+" "+l.y)):(o.push("M "+a.x+","+a.y),o.push("L "+l.x+","+l.y)),o.push("A "+d+","+d+",0,"+f+","+h+","+c.x+","+c.y),o.push(n.rs>0?"L "+v.x+","+v.y:"Z"),i.el.setAttribute("d",o.join(" "))},e._updateText=function(t){var e=this,n=t._attrs,r=t._cfg.attrs,i=t._cfg.el;this._setFont(t);for(var a in n)if(n[a]!==r[a]){if("text"===a){e._setText(t,""+n[a]);continue}if("fillStyle"===a||"strokeStyle"===a){this._setColor(t,a,n[a]);continue}if("matrix"===a){this._setTransform(t);continue}l[a]&&i.setAttribute(l[a],n[a])}t._cfg.attrs=Object.assign({},t._attrs),t._cfg.hasUpdate=!1},e._setFont=function(t){var e=t.get("el"),n=t._attrs,r=n.fontSize;e.setAttribute("alignment-baseline",c[n.textBaseline]||"baseline"),e.setAttribute("text-anchor",h[n.textAlign]||"left"),r&&12>+r&&(n.matrix=[1,0,0,0,1,0,0,0,1],t.transform([["t",-n.x,-n.y],["s",+r/12,+r/12],["t",n.x,n.y]]))},e._setText=function(t,e){var n=t._cfg.el,i=t._attrs.textBaseline||"bottom";if(e)if(~e.indexOf("\n")){var a=t._attrs.x,o=e.split("\n"),s=o.length-1,u="";r.each(o,function(t,e){0===e?"alphabetic"===i?u+=''+t+"":"top"===i?u+=''+t+"":"middle"===i?u+=''+t+"":"bottom"===i?u+=''+t+"":"hanging"===i&&(u+=''+t+""):u+=''+t+""}),n.innerHTML=u}else n.innerHTML=e;else n.innerHTML=""},e._setClip=function(t,e){var n=t._cfg.el;if(!e)return void n.removeAttribute("clip-path");if(n.hasAttribute("clip-path"))e._cfg.hasUpdate&&this._updateShape(e);else{this._createDom(e),this._updateShape(e);n.setAttribute("clip-path","url(#"+this.context.addClip(e)+")")}},e._setColor=function(t,e,n){var r=t._cfg.el,i=this.context;if(!n)return void r.setAttribute(l[e],"none");if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var a=i.find("gradient",n);a||(a=i.addGradient(n)),r.setAttribute(l[e],"url(#"+a+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var o=i.find("pattern",n);o||(o=i.addPattern(n)),r.setAttribute(l[e],"url(#"+o+")")}else r.setAttribute(l[e],n)},e._setShadow=function(t){var e=t._cfg.el,n=t._attrs,r={dx:n.shadowOffsetX,dy:n.shadowOffsetY,blur:n.shadowBlur,color:n.shadowColor};if(r.dx||r.dy||r.blur||r.color){var i=this.context.find("filter",r);i||(i=this.context.addShadow(r,this)),e.setAttribute("filter","url(#"+i+")")}else e.removeAttribute("filter")},t}()},function(t,e,n){var r=n(9);r.Arc=n(185),r.Circle=n(186),r.Dom=n(187),r.Ellipse=n(188),r.Fan=n(189),r.Image=n(190),r.Line=n(191),r.Marker=n(92),r.Path=n(194),r.Polygon=n(195),r.Polyline=n(196),r.Rect=n(197),r.Text=n(198),t.exports=r},function(t,e,n){"use strict";function r(){var t=new D.ARRAY_TYPE(9);return D.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}function i(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}function a(t){var e=new D.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}function o(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}function s(t,e,n,r,i,a,o,s,u){var l=new D.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=u,l}function u(t,e,n,r,i,a,o,s,u,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=l,t}function l(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}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}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}function h(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=c*o-s*l,f=-c*a+s*u,p=l*a-o*u,d=n*h+r*f+i*p;return d?(d=1/d,t[0]=h*d,t[1]=(-c*r+i*l)*d,t[2]=(s*r-i*o)*d,t[3]=f*d,t[4]=(c*n-i*u)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-l*n+r*u)*d,t[8]=(o*n-r*a)*d,t):null}function f(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8];return t[0]=o*c-s*l,t[1]=i*l-r*c,t[2]=r*s-i*o,t[3]=s*u-a*c,t[4]=n*c-i*u,t[5]=i*a-n*s,t[6]=a*l-o*u,t[7]=r*u-n*l,t[8]=n*o-r*a,t}function p(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],l=t[8];return e*(l*a-o*u)+n*(-l*i+o*s)+r*(u*i-a*s)}function d(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*r+p*o+d*l,t[1]=f*i+p*s+d*c,t[2]=f*a+p*u+d*h,t[3]=g*r+v*o+y*l,t[4]=g*i+v*s+y*c,t[5]=g*a+v*u+y*h,t[6]=m*r+x*o+b*l,t[7]=m*i+x*s+b*c,t[8]=m*a+x*u+b*h,t}function g(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=u,t[6]=f*r+p*o+l,t[7]=f*i+p*s+c,t[8]=f*a+p*u+h,t}function v(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],u=e[5],l=e[6],c=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*i+f*s,t[2]=p*a+f*u,t[3]=p*o-f*r,t[4]=p*s-f*i,t[5]=p*u-f*a,t[6]=l,t[7]=c,t[8]=h,t}function y(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function m(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}function x(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function b(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}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}function w(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,u=i+i,l=n*o,c=r*o,h=r*s,f=i*o,p=i*s,d=i*u,g=a*o,v=a*s,y=a*u;return t[0]=1-h-d,t[3]=c-y,t[6]=f+v,t[1]=c+y,t[4]=1-l-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-l-h,t}function M(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],u=e[6],l=e[7],c=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*o,x=n*u-i*o,b=n*l-a*o,_=r*u-i*s,w=r*l-a*s,M=i*l-a*u,S=c*g-h*d,A=c*v-f*d,C=c*y-p*d,P=h*v-f*g,k=h*y-p*g,T=f*y-p*v,I=m*T-x*k+b*P+_*C-w*A+M*S;return I?(I=1/I,t[0]=(s*T-u*k+l*P)*I,t[1]=(u*C-o*T-l*A)*I,t[2]=(o*k-s*C+l*S)*I,t[3]=(i*k-r*T-a*P)*I,t[4]=(n*T-i*C+a*A)*I,t[5]=(r*C-n*k-a*S)*I,t[6]=(g*M-v*w+y*_)*I,t[7]=(v*b-d*M-y*x)*I,t[8]=(d*w-g*b+y*m)*I,t):null}function S(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}function A(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function C(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))}function P(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}function k(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}function T(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}function I(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function O(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]}function E(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],u=t[6],l=t[7],c=t[8],h=e[0],f=e[1],p=e[2],d=e[3],g=e[4],v=e[5],y=e[6],m=e[7],x=e[8];return!(Math.abs(n-h)>D.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))||Math.abs(r-f)>D.EPSILON*Math.max(1,Math.abs(r),Math.abs(f))||Math.abs(i-p)>D.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))||Math.abs(a-d)>D.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))||Math.abs(o-g)>D.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))||Math.abs(s-v)>D.EPSILON*Math.max(1,Math.abs(s),Math.abs(v))||Math.abs(u-y)>D.EPSILON*Math.max(1,Math.abs(u),Math.abs(y))||Math.abs(l-m)>D.EPSILON*Math.max(1,Math.abs(l),Math.abs(m))||Math.abs(c-x)>D.EPSILON*Math.max(1,Math.abs(c),Math.abs(x)))}Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=void 0,e.create=r,e.fromMat4=i,e.clone=a,e.copy=o,e.fromValues=s,e.set=u,e.identity=l,e.transpose=c,e.invert=h,e.adjoint=f,e.determinant=p,e.multiply=d,e.translate=g,e.rotate=v,e.scale=y,e.fromTranslation=m,e.fromRotation=x,e.fromScaling=b,e.fromMat2d=_,e.fromQuat=w,e.normalFromMat4=M,e.projection=S,e.str=A,e.frob=C,e.add=P,e.subtract=k,e.multiplyScalar=T,e.multiplyScalarAndAdd=I,e.exactEquals=O,e.equals=E;var L=n(97),D=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}(L);e.mul=d,e.sub=k},function(t,e,n){"use strict";function r(){var t=new z.ARRAY_TYPE(2);return z.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function i(t){var e=new z.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new z.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n}function o(t,e){return t[0]=e[0],t[1]=e[1],t}function s(t,e,n){return t[0]=e,t[1]=n,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function g(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function v(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function m(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function b(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function _(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function A(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]}function P(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function k(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t}function T(t,e){e=e||1;var n=2*z.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function O(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function E(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t}function F(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=n*n+r*r;o>0&&(o=1/Math.sqrt(o));var s=i*i+a*a;s>0&&(s=1/Math.sqrt(s));var u=(n*i+r*a)*o*s;return u>1?0:-1>u?Math.PI:Math.acos(u)}function B(t){return"vec2("+t[0]+", "+t[1]+")"}function R(t,e){return t[0]===e[0]&&t[1]===e[1]}function j(t,e){var n=t[0],r=t[1],i=e[0],a=e[1];return Math.abs(n-i)<=z.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=z.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))}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=r,e.clone=i,e.fromValues=a,e.copy=o,e.set=s,e.add=u,e.subtract=l,e.multiply=c,e.divide=h,e.ceil=f,e.floor=p,e.min=d,e.max=g,e.round=v,e.scale=y,e.scaleAndAdd=m,e.distance=x,e.squaredDistance=b,e.length=_,e.squaredLength=w,e.negate=M,e.inverse=S,e.normalize=A,e.dot=C,e.cross=P,e.lerp=k,e.random=T,e.transformMat2=I,e.transformMat2d=O,e.transformMat3=E,e.transformMat4=L,e.rotate=D,e.angle=F,e.str=B,e.exactEquals=R,e.equals=j;var N=n(97),z=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);e.len=_,e.sub=l,e.mul=c,e.div=h,e.dist=x,e.sqrDist=b,e.sqrLen=w,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=2),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;u>s;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 r(){var t=new X.ARRAY_TYPE(3);return X.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=new X.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e,n){var r=new X.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(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,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function g(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}function v(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}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function b(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function w(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;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 C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function P(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],u=n[2];return t[0]=i*u-a*s,t[1]=a*o-r*u,t[2]=r*s-i*o,t}function k(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function T(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,u=o*(a-2)+a,l=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*u+r[0]*l+i[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+i[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+i[2]*c,t}function I(t,e,n,r,i,a){var o=1-a,s=o*o,u=a*a,l=s*o,c=3*a*s,h=3*u*o,f=u*a;return t[0]=e[0]*l+n[0]*c+r[0]*h+i[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+i[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+i[2]*f,t}function O(t,e){e=e||1;var n=2*X.RANDOM()*Math.PI,r=2*X.RANDOM()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t}function E(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function L(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function D(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],u=e[1],l=e[2],c=i*l-a*u,h=a*s-r*l,f=r*u-i*s,p=i*f-a*h,d=a*c-r*f,g=r*h-i*c,v=2*o;return c*=v,h*=v,f*=v,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=u+h+d,t[2]=l+f+g,t}function F(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function B(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function R(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function j(t,e){var n=o(t[0],t[1],t[2]),r=o(e[0],e[1],e[2]);A(n,n),A(r,r);var i=C(n,r);return i>1?0:-1>i?Math.PI:Math.acos(i)}function N(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function Y(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=X.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=X.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=X.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))}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=r,e.clone=i,e.length=a,e.fromValues=o,e.copy=s,e.set=u,e.add=l,e.subtract=c,e.multiply=h,e.divide=f,e.ceil=p,e.floor=d,e.min=g,e.max=v,e.round=y,e.scale=m,e.scaleAndAdd=x,e.distance=b,e.squaredDistance=_,e.squaredLength=w,e.negate=M,e.inverse=S,e.normalize=A,e.dot=C,e.cross=P,e.lerp=k,e.hermite=T,e.bezier=I,e.random=O,e.transformMat4=E,e.transformMat3=L,e.transformQuat=D,e.rotateX=F,e.rotateY=B,e.rotateZ=R,e.angle=j,e.str=N,e.exactEquals=z,e.equals=Y;var G=n(97),X=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}(G);e.sub=c,e.mul=h,e.div=f,e.dist=b,e.sqrDist=_,e.len=a,e.sqrLen=w,e.forEach=function(){var t=r();return function(e,n,r,i,a,o){var s=void 0,u=void 0;for(n||(n=3),r||(r=0),u=i?Math.min(i*n+r,e.length):e.length,s=r;u>s;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 r=n(7),i=n(11),a=n(200),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,l=t.minTickInterval,c=[],h=t.minCount||5,f=t.maxCount||7,p=h===f,d=r(t.minLimit)?-1/0:t.minLimit,g=r(t.maxLimit)?1/0:t.maxLimit,v=(h+f)/2,y=v,m=t.snapArray?t.snapArray:p?o:s;if(e===d&&n===g&&p&&(u=(n-e)/(y-1)),r(e)&&(e=0),r(n)&&(n=0),1e-12>Math.abs(n-e)&&(0===e?n=1:e>0?e=0:n=0,n-e>=5||u||1>n-e||(u=1)),r(u)){u=a.snapFactorTo((n-e)/(v-1),m,"ceil"),f!==h&&(y=parseInt((n-e)/u,10),y>f&&(y=f),h>y&&(y=h),u=a.snapFactorTo((n-e)/(y-1),m))}if(i(l)&&l>u&&(u=l),t.interval||f!==h){n=Math.min(a.snapMultiple(n,u,"ceil"),g),e=Math.max(a.snapMultiple(e,u,"floor"),d),y=Math.round((n-e)/u),e=a.fixedBase(e,u),n=a.fixedBase(n,u);for(var x=null;e>d&&d>-1/0&&(null===x||x>e);)x=e,e=a.fixedBase(e-u,u)}else{v=parseInt(v,10);var b,_=(n+e)/2,w=a.snapMultiple(_,u,"ceil"),M=Math.floor((v-2)/2),S=w+M*u;b=v%2==0?w-M*u:w-(M+1)*u;for(var A=null;n>S&&(null===A||S>A);)A=S,S=a.fixedBase(S+u,u);for(var C=null;b>e&&(null===C||C>b);)C=b,b=a.fixedBase(b-u,u);n=S,e=b}n=Math.min(n,g),e=Math.max(e,d),c.push(e);for(var P=1;y>P;P++){var k=a.fixedBase(u*P+e,u);n>k&&c.push(k)}return n>c[c.length-1]&&c.push(n),{min:e,max:n,interval:u,count:y,ticks:c}}},function(t,e,n){function r(t){return new Date(t).getFullYear()}function i(t){return new Date(t,0,1).getTime()}function a(t){return new Date(t).getMonth()}function o(t,e){var n=r(t),i=r(e),o=a(t);return 12*(i-n)+(a(e)-o)%12}function s(t,e){return new Date(t,e,1).getTime()}function u(t,e){return Math.ceil((e-t)/g)}function l(t,e){return Math.ceil((e-t)/d)}function c(t,e){return Math.ceil((e-t)/6e4)}var h=n(200),f=n(7),p=[1,2,4,6,8,12],d=36e5,g=864e5;t.exports=function(t){var e,n=t.minInterval,v=[],y=t.min,m=t.max,x=t.interval;if(m===y&&(m=y+g),f(x)){var b=m-y,_=g,w=365*_;x=parseInt(b/(t.maxCount||6),10),n&&n>x&&(x=n);var M=x/w,S=r(y);if(M>.51){for(var A=Math.ceil(M),C=r(m),P=S;C+A>=P;P+=A)v.push(i(P));x=null}else if(M>.0834){for(var k=Math.ceil(M/.0834),T=a(y),I=o(y,m),O=0;I+k>=O;O+=k)v.push(s(S,O+T));x=null}else if(x>.5*_){var E=new Date(y),L=E.getFullYear(),D=E.getMonth(y),F=E.getDate(),B=Math.ceil(x/_),R=u(y,m);x=B*_;for(var j=0;R+B>j;j+=B)v.push(new Date(L,D,F+j).getTime())}else if(x>d){var N=new Date(y),z=N.getFullYear(),Y=N.getMonth(y),G=N.getDate(),X=N.getHours(),V=h.snapTo(p,Math.ceil(x/d)),W=l(y,m);x=V*d;for(var H=0;W+V>=H;H+=V)v.push(new Date(z,Y,G,X+H).getTime())}else if(x>6e4){var q=c(y,m),U=Math.ceil(x/6e4);x=6e4*U;for(var Z=0;q+U>=Z;Z+=U)v.push(y+6e4*Z)}else{1e3>x&&(x=1e3),y=1e3*Math.floor(y/1e3);var Q=Math.ceil((m-y)/1e3),$=Math.ceil(x/1e3);x=1e3*$;for(var J=0;Q+$>J;J+=$)v.push(y+1e3*J)}}if(!v.length){y=1e3*Math.floor(y/1e3),m=1e3*Math.ceil(m/1e3),e=(m-y)/x;for(var K=0;e>=K;K++)v.push(h.fixedBase(x*K+y,x))}return{max:m,min:y,interval:x,ticks:v,count:v.length}}},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(28),a=n(11),o=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.isIdentity=!0,this.type="identity",this.value=null},n.getText=function(){return""+this.value},n.scale=function(t){return this.value!==t&&a(t)?t:this.range[0]},n.invert=function(){return this.value},e}(i);i.Identity=o,t.exports=o},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var a=n(3),o=n(28),s=n(61),u=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="log",this.tickCount=10,this.base=2,this._minTick=null},n.calculateTicks=function(){var t,e=this,n=e.base;if(0>e.min)throw Error("The minimum value must be greater than zero!");var r=i(n,e.max);if(e.min>0)t=Math.floor(i(n,e.min));else{var o=e.values,s=e.max;a(o,function(t){t>0&&s>t&&(s=t)}),s===e.max&&(s=e.max/n),s>1&&(s=1),t=Math.floor(i(n,s)),e._minTick=t,e.positiveMin=s}for(var u=r-t,l=e.tickCount,c=Math.ceil(u/l),h=[],f=t;r+c>f;f+=c)h.push(Math.pow(n,f));return 0===e.min&&h.unshift(0),h},n._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(0>=t)return 0;var r=this.base,a=this.positiveMin;a&&(n=1*a/r);return a>t?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;e=i(n,s/n);var u=1/(r-e)*o;if(u>t)return t/u*s}else e=i(n,this.min);var l=(t-a)/o,c=l*(r-e)+e;return Math.pow(n,c)},e}(s);o.Log=u,t.exports=u},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function i(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var a=n(28),o=n(61),s=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="pow",this.tickCount=10,this.exponent=2},n.calculateTicks=function(){var t,e=this,n=e.exponent,r=Math.ceil(i(n,e.max));if((t=0>e.min?0:Math.floor(i(n,e.min)))>r){var a=r;r=t,t=a}for(var o=r-t,s=e.tickCount,u=Math.ceil(o/s),l=[],c=t;r+u>c;c+=u)l.push(Math.pow(c,n));return l},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}(o);a.Pow=s,t.exports=s},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(28),a=n(201),o=n(255),s=n(199),u=n(62),l=n(3),c=n(11),h=n(33),f=n(15),p=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="timeCat",this.sortable=!0,this.tickCount=5,this.mask="YYYY-MM-DD"},n.init=function(){var t=this,e=this.values;l(e,function(n,r){e[r]=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,n=e.tickCount;if(n){t=s({maxCount:n,data:e.values,isRounding:e.isRounding}).ticks}else t=e.values;return t},n.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=c(t)&&this.values.length>t?t:NaN),e},n.scale=function(t){var e,n=this.rangeMin(),r=this.rangeMax(),i=this.translate(t);return e=1===this.values.length||isNaN(i)?i:i>-1?i/(this.values.length-1):0,n+e*(r-n)},n.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):o.format(e,this.mask)},n.getTicks=function(){var t=this,e=this.ticks,n=[];return l(e,function(e){var r;r=h(e)?e:{text:f(e)?e:t.getText(e),value:t.scale(e),tickValue:e},n.push(r)}),n},n._toTimeStamp=function(t){return u.toTimeStamp(t)},e}(a);i.TimeCat=p,t.exports=p},function(t,e,n){function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i=n(255),a=n(3),o=n(7),s=n(15),u=n(28),l=n(61),c=n(405),h=n(62),f=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.type="time",this.mask="YYYY-MM-DD"},n.init=function(){var e=this,n=e.values;if(n&&n.length){var r=[],i=1/0,s=i,u=0;a(n,function(t){var n=e._toTimeStamp(t);if(isNaN(n))throw new TypeError("Invalid Time: "+t);i>n?(s=i,i=n):s>n&&(s=n),n>u&&(u=n),r.push(n)}),n.length>1&&(e.minTickInterval=s-i),(o(e.min)||e._toTimeStamp(e.min)>i)&&(e.min=i),(o(e.max)||e._toTimeStamp(e.max)1&&void 0!==arguments[1]?arguments[1]:[];return r(t,function(t){return!i(e,t)})}},function(t,e,n){function r(t,e){var n=void 0;if(i(e)&&(n=e),a(e)&&(n=function(t){return o(t,e)}),n)for(var r=0;t.length>r;r+=1)if(n(t[r]))return t[r];return null}var i=n(14),a=n(45),o=n(212);t.exports=r},function(t,e,n){var r=n(7),i=n(5);t.exports=function(t,e){for(var n=null,a=0;t.length>a;a++){var o=t[a],s=o[e];if(!r(s)){n=i(s)?s[0]:s;break}}return n}},function(t,e,n){var r=n(5);t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(r(e))for(var i=0;e.length>i;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){var r=n(5),i=n(3);t.exports=function(t){if(!r(t))return t;var e=[];return i(t,function(t){r(t)?i(t,function(t){e.push(t)}):e.push(t)}),e}},function(t,e,n){var r=n(105),i=n(5);t.exports=function(t){if(t=r(t,function(t){return!isNaN(t)}),!t.length)return{min:0,max:0};if(i(t[0])){for(var e=[],n=0;t.length>n;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){t.exports={contains:n(63),difference:n(411),find:n(412),firstValue:n(413),flatten:n(415),flattenDeep:n(414),getRange:n(416),merge:n(64),pull:n(98),pullAt:n(203),reduce:n(418),remove:n(419),sortBy:n(420),union:n(421),uniq:n(204),valuesOfKey:n(99)}},function(t,e,n){var r=n(5),i=n(45),a=n(3);t.exports=function(t,e,n){if(!r(t)&&!i(t))return t;var o=n;return a(t,function(t,n){o=e(o,t,n)}),o}},function(t,e,n){var r=n(23),i=n(203);t.exports=function(t,e){var n=[];if(!r(t))return n;for(var a=-1,o=[],s=t.length;++an;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(e[i]>t[i])return-1}return 0}}return t.sort(n),t}var i=n(15),a=n(14),o=n(5);t.exports=r},function(t,e,n){var r=n(3),i=n(43),a=n(204);t.exports=function(){var t=[],e=i(arguments);return r(e,function(e){t=t.concat(e)}),a(t)}},function(t,e){function n(t,e,n){var r=void 0;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}t.exports=n},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(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}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),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,a=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+a}},function(t,e){t.exports=function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,a=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+a}},function(t,e){t.exports=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r(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={addEventListener:n(423),createDom:n(101),getBoundingClientRect:n(424),getHeight:n(425),getOuterHeight:n(426),getOuterWidth:n(427),getRatio:n(428),getStyle:n(429),getWidth:n(430),modifyCSS:n(102),requestAnimationFrame:n(103)}},function(t,e){function n(t,e){return t["_wrap_"+e]}t.exports=n},function(t,e,n){t.exports={getWrapBehavior:n(432),wrapBehavior:n(434)}},function(t,e){function n(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}t.exports=n},function(t,e,n){var r=n(436);t.exports={number2color:r,numberToColor:r,parsePath:n(437),parseRadius:n(438)}},function(t,e){var n={};t.exports=function(t){var e=n[t];if(!e){for(var r=t.toString(16),i=r.length;6>i;i++)r="0"+r;e="#"+r,n[t]=e}return e}},function(t,e,n){var r=n(5),i=n(15),a=n(3),o=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,s=/[^\s\,]+/gi;t.exports=function(t){return t=t||[],r(t)?t:i(t)?(t=t.match(o),a(t,function(e,n){if(e=e.match(s),e[0].length>1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}a(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){var r=n(5);t.exports=function(t){var e=0,n=0,i=0,a=0;return r(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){var r=n(23);t.exports=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;t.length>a;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){var r=n(14),i=n(66);t.exports=function(t,e,n){return r(n)?!!n(t,e):i(t,e)}},function(t,e,n){var r=n(3),i=n(23);t.exports=function(t,e){if(!i(t))return t;var n=[];return r(t,function(t,r){n.push(e(t,r))}),n}},function(t,e){t.exports=function(t,e){var n=""+e,r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){var r=n(42);t.exports={clamp:n(67),fixedBase:n(442),isDecimal:n(444),isEven:n(445),isInteger:n(446),isNegative:n(447),isNumberEqual:r,isOdd:n(448),isPositive:n(449),maxBy:n(209),minBy:n(450),mod:n(107),snapEqual:r,toDegree:n(108),toInt:n(210),toInteger:n(210),toRadian:n(109)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&t%1!=0}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&t%2==0}},function(t,e,n){var r=n(11);t.exports=Number.isInteger?Number.isInteger:function(t){return r(t)&&t%1==0}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&0>t}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&t%2!=0}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&t>0}},function(t,e,n){var r=n(5),i=n(14),a=n(3);t.exports=function(t,e){if(r(t)){var n=t[0],o=void 0;o=i(e)?e(t[0]):t[0][e];var s=void 0;return a(t,function(t){s=i(e)?e(t):t[e],o>s&&(n=t,o=s)}),n}}},function(t,e,n){t.exports=n(3)},function(t,e,n){t.exports=n(211)},function(t,e,n){var r=n(63),i=n(214);t.exports=function(t,e){return r(i(t),e)}},function(t,e,n){t.exports={forIn:n(451),has:n(211),hasKey:n(452),hasValue:n(453),keys:n(213),isMatch:n(212),values:n(214)}},function(t,e,n){function r(t,e,n){var r=null,i=n;return i>e&&(i=e,r="add"),i>t&&(i=t,r="del"),{type:r,min:i}}var i=n(459),a=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 l=[],c=0;n>=c;c++)l[c]=[],l[c][0]={min:c};for(var h=0;a>=h;h++)l[0][h]={min:h};for(var f=1;n>=f;f++){o=t[f-1];for(var p=1;a>=p;p++){s=e[p-1],u=i(o,s)?0:1;l[f][p]=r(l[f-1][p].min+1,l[f][p-1].min+1,l[f-1][p-1].min+u)}}return l};t.exports=function(t,e){var n=a(t,e),r=t.length,i=e.length,o=[],s=1,u=1;if(n[r][i]!==r){for(var l=1;r>=l;l++){var c=n[l][l].min;u=l;for(var h=s;i>=h;h++)c>n[l][h].min&&(c=n[l][h].min,u=h);s=u,n[l][s].type&&o.push({index:l-1,type:n[l][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)}if(r=t.length,i>r)for(var p=0;i-r>p;p++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]);return t}},function(t,e){function n(t,e){function n(t,e){if(1===t.length)r.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;t.length-1>o;o++)0===o&&r.push(t[0]),o===t.length-2&&i.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 r=[],i=[];return t.length&&n(t,e),{left:r,right:i.reverse()}}function r(t,e,r){var i=[[t[1],t[2]]];r=r||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/r,u=0;r-1>u;u++){var l=s/(1-s*u),c=n(o,l);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])),3>t.length||(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(r(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;n-1>=o;o++)i.push(a)}return i}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;r-n>s;s++)t.push(t[0]);return t}for(var u=0;r>u;u++){var l=Math.floor(a*u);o[l]=(o[l]||0)+1}var c=o.reduce(function(e,r,a){return e.concat(a===n?t[n]:i(t[a],t[a+1],r))},[]);return c.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||c.push("Z"),c}},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 r(t,e,r){for(var i=[].concat(t),a=void 0,o=1/(r+1),s=n(e)[0],u=1;r>=u;u++)o*=u,a=Math.floor(t.length*o),0===a?i.unshift([s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]):i.splice(a,0,[s[0]*o+t[a][0]*(1-o),s[1]*o+t[a][1]*(1-o)]);return i}t.exports=function(t,e){if(1>=t.length)return t;for(var i=void 0,a=0;e.length>a;a++)if(t[a][0]!==e[a][0])switch(i=n(t[a]),e[a][0]){case"M":t[a]=["M"].concat(i[0]);break;case"L":t[a]=["L"].concat(i[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=i[0][0],t[a][7]=i[0][1];break;case"Q":if(2>i.length){if(0>=a){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["Q"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(i[0]);break;case"C":if(3>i.length){if(0>=a){t[a]=e[a];break}i=r(i,t[a-1],2)}t[a]=["C"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(2>i.length){if(0>=a){t[a]=e[a];break}i=r(i,t[a-1],1)}t[a]=["S"].concat(i.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){var r=n(460),i=n(218),a=n(219),o=n(215);t.exports={catmullRom2Bezier:o,catmullRomToBezier:o,fillPath:n(456),fillPathByDiff:n(455),formatPath:n(457),intersection:r,pathIntersection:r,parsePathArray:n(216),parsePathString:n(217),pathToAbsolute:i,path2absolute:i,pathTocurve:a,path2curve:a,rectPath:n(220)}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(t.length!==e.length)return!1;var n=!0;return r(t,function(t,r){if(t!==e[r])return n=!1,!1}),n}},function(t,e,n){var r=n(5),i=n(220),a=n(219),o=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},s=function(t,e,n,r,i,a,s,u,l){null===l&&(l=1),l=l>1?1:0>l?0:l;for(var c=l/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,d=0;12>d;d++){var g=c*h[d]+c,v=o(g,t,n,i,s),y=o(g,e,r,a,u),m=v*v+y*y;p+=f[d]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var u=[],l=[[],[]],c=void 0,h=void 0,f=void 0,p=void 0,d=0;2>d;++d)if(0===d?(h=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*o,f=3*n-3*t):(h=6*e-12*r+6*a,c=-3*e+9*r-9*a+3*s,f=3*r-3*e),1e-12>Math.abs(c)){if(1e-12>Math.abs(h))continue;(p=-f/h)>0&&1>p&&u.push(p)}else{var g=h*h-4*f*c,v=Math.sqrt(g);if(g>=0){var y=(-h+v)/(2*c);y>0&&1>y&&u.push(y);var m=(-h-v)/(2*c);m>0&&1>m&&u.push(m)}}for(var x=u.length,b=x,_=void 0;x--;)p=u[x],_=1-p,l[0][x]=_*_*_*t+3*_*_*p*n+3*_*p*p*i+p*p*p*o,l[1][x]=_*_*_*e+3*_*_*p*r+3*_*p*p*a+p*p*p*s;return l[0][b]=t,l[1][b]=e,l[0][b+1]=o,l[1][b+1]=s,l[0].length=l[1].length=b+2,{min:{x:Math.min.apply(0,l[0]),y:Math.min.apply(0,l[1])},max:{x:Math.max.apply(0,l[0]),y:Math.max.apply(0,l[1])}}},l=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var u=(t*r-e*n)*(i-o)-(t-n)*(i*s-a*o),l=(t*r-e*n)*(a-s)-(e-r)*(i*s-a*o),c=(t-n)*(a-s)-(e-r)*(i-o);if(c){var h=u/c,f=l/c,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(i,o).toFixed(2)||p>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:f}}}},c=function(t,e,n){return!(t.x>e||e>t.x+t.width||t.y>n||n>t.y+t.height)},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:i(t,e,n,r),vb:[t,e,n,r].join(" ")}},f=function(t,e){return t=h(t),e=h(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)||(e.x2>t.x&&t.x>e.x||t.x2>e.x&&e.x>t.x)&&(e.y2>t.y&&t.y>e.y||t.y2>e.y&&e.y>t.y)},p=function(t,e,n,i,a,o,s,l){r(t)||(t=[t,e,n,i,a,o,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,u){var l=1-u,c=Math.pow(l,3),h=Math.pow(l,2),f=u*u,p=f*u,d=c*t+3*h*u*n+3*l*u*u*i+p*o,g=c*e+3*h*u*r+3*l*u*u*a+p*s,v=t+2*u*(n-t)+f*(i-2*n+t),y=e+2*u*(r-e)+f*(a-2*r+e),m=n+2*u*(i-n)+f*(o-2*i+n),x=r+2*u*(a-r)+f*(s-2*a+r);return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:x},start:{x:l*t+u*n,y:l*e+u*r},end:{x:l*i+u*o,y:l*a+u*s},alpha:90-180*Math.atan2(v-m,y-x)/Math.PI}},g=function(t,e,n){var r=p(t),i=p(e);if(!f(r,i))return n?0:[];for(var a=s.apply(0,t),o=s.apply(0,e),u=~~(a/8),c=~~(o/8),h=[],g=[],v={},y=n?0:[],m=0;u+1>m;m++){var x=d.apply(0,t.concat(m/u));h.push({x:x.x,y:x.y,t:m/u})}for(var b=0;c+1>b;b++){var _=d.apply(0,e.concat(b/c));g.push({x:_.x,y:_.y,t:b/c})}for(var w=0;u>w;w++)for(var M=0;c>M;M++){var S=h[w],A=h[w+1],C=g[M],P=g[M+1],k=.001>Math.abs(A.x-S.x)?"y":"x",T=.001>Math.abs(P.x-C.x)?"y":"x",I=l(S.x,S.y,A.x,A.y,C.x,C.y,P.x,P.y);if(I){if(v[I.x.toFixed(4)]===I.y.toFixed(4))continue;v[I.x.toFixed(4)]=I.y.toFixed(4);var O=S.t+Math.abs((I[k]-S[k])/(A[k]-S[k]))*(A.t-S.t),E=C.t+Math.abs((I[T]-C[T])/(P[T]-C[T]))*(P.t-C.t);0>O||O>1||0>E||E>1||(n?y++:y.push({x:I.x,y:I.y,t1:O,t2:E}))}}return y},v=function(t,e,n){t=a(t),e=a(e);for(var r=void 0,i=void 0,o=void 0,s=void 0,u=void 0,l=void 0,c=void 0,h=void 0,f=void 0,p=void 0,d=n?0:[],v=0,y=t.length;y>v;v++){var m=t[v];if("M"===m[0])r=u=m[1],i=l=m[2];else{"C"===m[0]?(f=[r,i].concat(m.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,u,l,u,l],r=u,i=l);for(var x=0,b=e.length;b>x;x++){var _=e[x];if("M"===_[0])o=c=_[1],s=h=_[2];else{"C"===_[0]?(p=[o,s].concat(_.slice(1)),o=p[6],s=p[7]):(p=[o,s,o,s,c,h,c,h],o=c,s=h);var w=g(f,p,n);if(n)d+=w;else{for(var M=0,S=w.length;S>M;M++)w[M].segment1=v,w[M].segment2=x,w[M].bez1=f,w[M].bez2=p;d=d.concat(w)}}}}}return d};t.exports=function(t,e){return v(t,e)}},function(t,e,n){var r=n(3),i=n(45),a=Object.prototype.hasOwnProperty;t.exports=function(t,e){if(null===t||!i(t))return{};var n={};return r(e,function(e){a.call(t,e)&&(n[e]=t[e])}),n}},function(t,e,n){t.exports={lc:n(463),lowerCase:n(221),lowerFirst:n(222),substitute:n(464),uc:n(465),upperCase:n(223),upperFirst:n(113)}},function(t,e,n){t.exports=n(221)},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(223)},function(t,e){function n(t,e,n){var r=void 0,i=void 0,a=void 0,o=void 0,s=0;n||(n={});var u=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var c=e-(l-s);return i=this,a=arguments,0>=c||c>e?(r&&(clearTimeout(r),r=null),s=l,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(u,c)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l}t.exports=n},function(t,e,n){var r=n(19);t.exports={getType:n(224),isArray:n(5),isArrayLike:n(23),isBoolean:n(114),isFunction:n(14),isNil:n(7),isNull:n(470),isNumber:n(11),isObject:n(33),isObjectLike:n(115),isPlainObject:n(45),isPrototype:n(226),isType:r,isUndefined:n(472),isString:n(15),isRegExp:n(471),isDate:n(225),isArguments:n(468),isError:n(469)}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Arguments")}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"Error")}},function(t,e){t.exports=function(t){return null===t}},function(t,e,n){var r=n(19);t.exports=function(t){return r(t,"RegExp")}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);e.default=function(t){return t&&t.__esModule?t:{default:t}}(r).default.generateBaseTypedComponent("Axis")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(47),l=r(u),c=n(31),h=r(c);(0,r(n(597)).default)(l.default.PureComponent,"`React.PureComponent` needs React >=15.3.0");var f=function(t){function e(){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return o(e,t),s(e,[{key:"render",value:function(){var t=this.props;return l.default.createElement("div",{style:{width:t.width,height:t.height}},t.placeholder)}}]),e}(l.default.PureComponent||l.default.Component);f.propTypes={width:h.default.oneOfType([h.default.string,h.default.number]),height:h.default.oneOfType([h.default.string,h.default.number]),placeholder:h.default.node},f.defaultProps={width:"100%",placeholder:l.default.createElement("div",{style:{position:"relative",top:"48%",textAlign:"center"}},"暂无数据")},e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n={};for(var r in t)0>e.indexOf(r)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){var e=!0;return(null==t||0===t.length||t.rows&&0===t.rows.length)&&(e=!1),!!e}Object.defineProperty(e,"__esModule",{value:!0});var l=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),h=n(47),f=r(h),p=n(476),d=r(p),g=n(474),v=r(g),y=n(478),m=r(y),x=function(t){function e(){var t,n,r,i;a(this,e);for(var s=arguments.length,l=Array(s),c=0;s>c;c++)l[c]=arguments[c];return n=r=o(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(l))),r._refCallback=function(t){t&&(r.chart=t.getG2Instance())},r.hasViewSource=function(){var t=!1;return f.default.Children.map(r.props.children,function(e){!t&&e&&"function"==typeof e.type&&"View"===e.type.name&&e.props.data&&u(e.props.data)&&(t=!0)}),t},i=n,o(r,i)}return s(e,t),c(e,[{key:"getG2Instance",value:function(){return this.chart}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.width,r=t.height,i=t.placeholder;return f.default.createElement("div",{className:t.className,style:t.style},u(e)||this.hasViewSource()||!i?f.default.createElement(d.default,l({ref:this._refCallback},this.props)):f.default.createElement(v.default,{width:n,height:r,placeholder:!0===i?void 0:i}))}}]),e}(f.default.PureComponent||f.default.Component);e.default=function(t){function e(){return a(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),c(e,[{key:"render",value:function(){var t=this.props,e=t.widthErrorBoundary,n=i(t,["widthErrorBoundary"]);return!1===e?f.default.createElement(x,n):f.default.createElement(m.default,null,f.default.createElement(x,n))}}]),e}(f.default.Component)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;arguments.length>e;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),l=n(47),c=r(l),h=n(31),f=r(h),p=n(489),d=r(p),g=n(595),v=r(g),y=n(591),m=r(y),x=function(t){function e(t){i(this,e);var n=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return b.call(n),n.name="Chart",n.gId=0,n.id=n.createId(),n.g2Processor=new d.default,n.forceFit=(0,m.default)(function(){n.chart&&n.chart.forceFit()},300),n}return o(e,t),u(e,[{key:"getChildContext",value:function(){return{addElement:this.addElement,updateElement:this.updateElement,deleteElement:this.deleteElement,createId:this.createId,getParentInfo:this.getParentInfo,getViewId:this.getViewId}}},{key:"componentDidMount",value:function(){if(this.addElement(this.name,this.id,s({},this.props,{container:this.containerWrap})),this.chart=this.g2Processor.createG2Instance(),this.notifyG2Instance(),this.props.forceFit){var t=new v.default(this.forceFit);t.observe(this.containerWrap),this.observe=t}}},{key:"componentDidUpdate",value:function(){this.updateElement(this.name,this.id,s({},this.props,{container:this.containerWrap}));var t=this.g2Processor.batchedUpdate();this.chart!==t&&(this.chart=t,this.notifyG2Instance()),this.props.forceUpdate&&this.chart.forceFit()}},{key:"componentWillUnmount",value:function(){this.g2Processor.destory(),this.chart=null,this.forceFit&&this.forceFit.cancel(),this.observe&&this.observe.unobserve(this.containerWrap),this.containerWrap=null}},{key:"getG2Instance",value:function(){return this.chart}},{key:"notifyG2Instance",value:function(){this.props.onGetG2Instance&&this.props.onGetG2Instance(this.chart)}},{key:"render",value:function(){return c.default.createElement("div",{ref:this.refHandle},this.props.children)}}]),e}(l.Component);x.propTypes={data:f.default.oneOfType([f.default.arrayOf(f.default.object),f.default.object]),scale:f.default.oneOfType([f.default.object,f.default.array]),animate:f.default.bool,width:f.default.number,height:f.default.number.isRequired,onGetG2Instance:f.default.func,forceFit:f.default.bool,forceUpdate:f.default.bool},x.childContextTypes={addElement:f.default.func,updateElement:f.default.func,deleteElement:f.default.func,createId:f.default.func,getParentInfo:f.default.func,getViewId:f.default.func};var b=function(){var t=this;this.getViewId=function(){},this.getParentInfo=function(){return{id:t.id,name:t.name}},this.createId=function(){return t.gId+=1},this.addElement=function(e,n,r,i,a){return t.g2Processor.addElement(e,n,r,i,a)},this.updateElement=function(e,n,r,i,a){t.g2Processor.updateElement(e,n,r,i,a)},this.deleteElement=function(e,n,r){t.g2Processor.deleteElement(e,n,r)},this.refHandle=function(e){t.containerWrap||(t.containerWrap=e)}};e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);e.default=function(t){return t&&t.__esModule?t:{default:t}}(r).default.generateBaseTypedComponent("Coord")},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(47),u=function(t){return t&&t.__esModule?t:{default:t}}(s);e.default=function(t){function e(t){r(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.state={hasError:!1},n}return a(e,t),o(e,[{key:"shouldComponentUpdate",value:function(){return this.state.hasError&&this.setState({hasError:!1}),!0}},{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"unstable_handleError",value:function(){this.setState({hasError:!0})}},{key:"render",value:function(){return this.state.hasError?u.default.createElement("h1",null,"bizcharts error."):this.props.children}}]),e}(u.default.Component)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(316);var r=n(26);e.default=function(t){return t&&t.__esModule?t:{default:t}}(r).default.generateBaseTypedComponent("Facet")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(323);var r=n(26);e.default=function(t){return t&&t.__esModule?t:{default:t}}(r).default.generateBaseTypedComponent("Geom")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),i=function(t){return t&&t.__esModule?t:{default:t}}(r),a=i.default.generateBaseTypedComponent("Guide");a.Line=i.default.generateBaseTypedComponent("GuideLine"),a.Image=i.default.generateBaseTypedComponent("GuideImage"),a.Text=i.default.generateBaseTypedComponent("GuideText"),a.Region=i.default.generateBaseTypedComponent("GuideRegion"),a.Html=i.default.generateBaseTypedComponent("GuideHtml"),a.Arc=i.default.generateBaseTypedComponent("GuideArc"),a.RegionFilter=i.default.generateBaseTypedComponent("GuideRegionFilter"),a.DataMarker=i.default.generateBaseTypedComponent("GuideDataMarker"),a.DataRegion=i.default.generateBaseTypedComponent("GuideDataRegion"),e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;e.length>n;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(590),l=r(u),c=n(26),h=r(c),f=n(31),p=r(f),d=function(t){function e(t){return i(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,"Label"))}return o(e,t),s(e,[{key:"componentWillMount",value:function(){var t=this.context.getParentInfo();(0,l.default)("Geom"===t.name,"`