UNPKG

dmp-cli

Version:

Dmp component's cli

1 lines 199 kB
var f2=function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/static/js/dll/",i(i.s=2)}({"+IP3":function(t,e,i){var n=i("/OGV"),r=i("v2So");t.exports={beforeGeomInit:function(t){t.set("limitInPlot",!0);var e=t.get("filteredData"),i=t.get("colDefs");if(!i)return e;var a=t.get("geoms"),o=!1;n.each(a,function(t){if(-1!==["area","line","path"].indexOf(t.get("type")))return o=!0,!1});var s=[];if(n.each(i,function(t,e){!o&&t&&(t.values||t.min||t.max)&&s.push(e)}),0===s.length)return e;var c=[];n.each(e,function(t){var e=!0;n.each(s,function(a){var o=t[a];if(o){var s=i[a];if("timeCat"===s.type){var c=s.values;n.isNumber(c[0])&&(o=r.toTimeStamp(o))}(s.values&&-1===s.values.indexOf(o)||s.min&&o<s.min||s.max&&o>s.max)&&(e=!1)}}),e&&c.push(t)}),t.set("filteredData",c)}}},"+Tpl":function(t,e,i){var n=i("/OGV"),r=i("eJjv"),a=i("+zSj"),o=i("kVss"),s=i("A1Y1");function c(t,e){return Math.abs(t-e)<1e-5}function h(t){return!isNaN(t)&&!n.isNil(t)}function u(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i];h(r.x)&&h(r.y)&&e.push(r)}return e}function l(t,e,i){var r=t.points,h=[],l=[];n.each(r,function(t){l.push(t[0]),h.push(t[1])});var f=n.mix({fillStyle:t.color},s.shape.area,t.style);return l.reverse(),h=this.parsePoints(h),l=this.parsePoints(l),t.isInCircle&&(h.push(h[0]),l.unshift(l[l.length-1]),function(t,e){var i=!0;return n.each(t,function(t){if(!c(t.x,e.x)||!c(t.y,e.y))return i=!1,!1}),i}(l,t.center)&&(l=[])),function(t,e,i,r,s){var c=t.concat(e);return s?i.addShape("Custom",{className:"area",attrs:n.mix({points:c},r),createPath:function(t){var e=[[0,0],[1,1]],i=u(this._attrs.attrs.points),n=i.length,r=i.slice(0,n/2),o=i.slice(n/2,n),s=a.smooth(r,!1,e);t.beginPath(),t.moveTo(r[0].x,r[0].y);for(var c=0,h=s.length;c<h;c++){var l=s[c];t.bezierCurveTo(l[1],l[2],l[3],l[4],l[5],l[6])}if(o.length){var f=a.smooth(o,!1,e);t.lineTo(o[0].x,o[0].y);for(var p=0,g=f.length;p<g;p++){var d=f[p];t.bezierCurveTo(d[1],d[2],d[3],d[4],d[5],d[6])}}t.closePath()},calculateBox:function(){var t=u(this._attrs.attrs.points);return o.getBBoxFromPoints(t)}}):i.addShape("Polyline",{className:"area",attrs:n.mix({points:c},r)})}(h,l,e,f,i)}var f=r.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,i=t.y,r=t.y0;i=n.isArray(i)?i:[r,i];var a=[];return a.push({x:e,y:i[0]},{x:e,y:i[1]}),a}});n.each(["area","smooth"],function(t){r.registerShape("area",t,{draw:function(e,i){var n="smooth"===t;return l.call(this,e,i,n)}})}),t.exports=f},"+qad":function(t,e,i){var n=i("eYiR"),r=Array.isArray?Array.isArray:function(t){return n(t,"Array")};t.exports=r},"+zSj":function(t,e,i){var n=i("zfEZ");function r(t){return[t.x,t.y]}t.exports={smooth:function(t,e,i){for(var a,o,s,c=!!e,h=function(t,e,i,a){var o,s,c,h,u,l,f,p,g=[],d=!!a;if(d){for(c=[1/0,1/0],h=[-1/0,-1/0],p=0,f=t.length;p<f;p++)u=r(t[p]),n.min(c,c,u),n.max(h,h,u);n.min(c,c,a[0]),n.max(h,h,a[1])}for(p=0,l=t.length;p<l;p++){if(u=r(t[p]),i)o=r(t[p?p-1:l-1]),s=r(t[(p+1)%l]);else{if(0===p||p===l-1){g.push([u[0],u[1]]);continue}o=r(t[p-1]),s=r(t[p+1])}var v=n.sub([],s,o);n.scale(v,v,e);var y=n.distance(u,o),m=n.distance(u,s),x=y+m;0!==x&&(y/=x,m/=x);var _=n.scale([],v,-y),S=n.scale([],v,m),b=n.add([],u,_),P=n.add([],u,S);d&&(n.max(b,b,c),n.min(b,b,h),n.max(P,P,c),n.min(P,P,h)),g.push([b[0],b[1]]),g.push([P[0],P[1]])}return i&&g.push(g.shift()),g}(t,.4,c,i),u=t.length,l=[],f=0;f<u-1;f++)a=h[2*f],o=h[2*f+1],s=t[f+1],l.push(["C",a[0],a[1],o[0],o[1],s.x,s.y]);return c&&(a=h[u],o=h[u+1],s=t[0],l.push(["C",a[0],a[1],o[0],o[1],s.x,s.y])),l}}},"/OGV":function(t,e,i){var n=i("eyVm"),r={upperFirst:i("3W1g"),lowerFirst:i("GyX4"),isString:i("NCEO"),isNumber:i("XZ6b"),isBoolean:i("wVsD"),isFunction:i("Bru8"),isDate:i("L2cE"),isArray:i("OiGr"),isNil:i("5tZR"),isObject:i("0oW+"),isPlainObject:i("e/M+"),deepMix:i("G5Vh"),mix:i("UD5B"),each:i("cvtA"),uniq:i("3KDy"),isObjectValueEqual:function(t,e){t=Object.assign({},t),e=Object.assign({},e);var i=Object.getOwnPropertyNames(t),n=Object.getOwnPropertyNames(e);if(i.length!==n.length)return!1;for(var r=0,a=i.length;r<a;r++){var o=i[r];if(t[o]!==e[o])return!1}return!0},wrapBehavior:function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var i=function(i){t[e](i)};return t["_wrap_"+e]=i,i},getWrapBehavior:function(t,e){return t["_wrap_"+e]},parsePadding:function(t){var e,i,n,a;return r.isNumber(t)||r.isString(t)?e=n=a=i=t:r.isArray(t)&&(e=t[0],i=r.isNil(t[1])?t[0]:t[1],n=r.isNil(t[2])?t[0]:t[2],a=r.isNil(t[3])?i:t[3]),[e,i,n,a]},directionEnabled:function(t,e){return void 0===t||"string"==typeof t&&-1!==t.indexOf(e)}};r.Array={merge:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e=e.concat(t[i]);return e},values:function(t,e){for(var i=[],n={},a=0,o=t.length;a<o;a++){var s=t[a][e];r.isNil(s)||(r.isArray(s)?r.each(s,function(t){n[t]||(i.push(t),n[t]=!0)}):n[s]||(i.push(s),n[s]=!0))}return i},firstValue:function(t,e){for(var i=null,n=0,a=t.length;n<a;n++){var o=t[n][e];if(!r.isNil(o)){i=r.isArray(o)?o[0]:o;break}}return i},group:function(t,e,i){if(void 0===i&&(i={}),!e)return[t];var n=r.Array.groupToMap(t,e),a=[];if(1===e.length&&i[e[0]]){var o=i[e[0]];r.each(o,function(t){t="_"+t,a.push(n[t])})}else for(var s in n)a.push(n[s]);return a},groupToMap:function(t,e){if(!e)return{0:t};for(var i=function(t){for(var i="_",n=0,r=e.length;n<r;n++)i+=t[e[n]]&&t[e[n]].toString();return i},n={},r=0,a=t.length;r<a;r++){var o=t[r],s=i(o);n[s]?n[s].push(o):n[s]=[o]}return n},remove:function(t,e){if(t){var i=t.indexOf(e);-1!==i&&t.splice(i,1)}},getRange:function(t){if(!t.length)return{min:0,max:0};var e=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:e}}},r.mix(r,n),t.exports=r},"0Szt":function(t,e,i){var n=i("/OGV"),r=i("oKmc");function a(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i]);return t}function o(t){var e=document.createElement("div");return t=t.replace(/(^\s*)|(\s*$)/g,""),e.innerHTML=""+t,e.childNodes[0]}var s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="html",this.position=null,this.alignX="center",this.alignY="middle",this.offsetX=null,this.offsetY=null,this.html=null},i.render=function(t,e){var i=this.parsePoint(t,this.position);if(i){var r=o(this.html);r=a(r,{position:"absolute",top:Math.floor(i.y)+"px",left:Math.floor(i.x)+"px",visibility:"hidden"});var s=e.get("canvas").get("el"),c=s.parentNode;c=a(c,{position:"relative"});var h=o('<div class="guideWapper" style="position: absolute;top: 0; left: 0;"></div>');c.appendChild(h),h.appendChild(r);var u=s.offsetTop,l=s.offsetLeft,f=this.alignX,p=this.alignY,g=this.offsetX,d=this.offsetY,v=function(t,e,i,n){var r=[];return"left"===t&&"top"===e?(r[0]=0,r[1]=0):"right"===t&&"top"===e?(r[0]=-i,r[1]=0):"left"===t&&"bottom"===e?(r[0]=0,r[1]=Math.floor(-n)):"right"===t&&"bottom"===e?(r[0]=Math.floor(-i),r[1]=Math.floor(-n)):"right"===t&&"middle"===e?(r[0]=Math.floor(-i),r[1]=Math.floor(-n/2)):"left"===t&&"middle"===e?(r[0]=0,r[1]=Math.floor(-n/2)):"center"===t&&"bottom"===e?(r[0]=Math.floor(-i/2),r[1]=Math.floor(-n)):"center"===t&&"top"===e?(r[0]=Math.floor(-i/2),r[1]=0):(r[0]=Math.floor(-i/2),r[1]=Math.floor(-n/2)),r}(f,p,n.getWidth(r),n.getHeight(r));i.x=i.x+v[0]+l,i.y=i.y+v[1]+u,g&&(i.x+=g),d&&(i.y+=d),a(r,{top:Math.floor(i.y)+"px",left:Math.floor(i.x)+"px",visibility:"visible"}),this.element=h}},i.remove=function(){var t=this.element;t&&t.parentNode&&t.parentNode.removeChild(t)},e}(r);r.Html=s,t.exports=s},"0oW+":function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!==t&&"object"===e||"function"===e}},"0swy":function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!==t&&"object"===e||"function"===e}},"1Jbs":function(t,e,i){var n=i("/OGV"),r=i("D5iB"),a=i("SBEX"),o=i("ES69"),s=i("+IP3"),c=i("qLOB"),h=i("qkeK"),u=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t);var e=i.prototype;function i(e,i){var r,a=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r=t.call(this,e,i)||this);return a.hammer.get("pinch").set({enable:!0}),i.registerPlugins([s,{changeData:function(){a.limitRange={},a.originTicks=null},clear:function(){a.limitRange={},a.originTicks=null}}]),n.mix(a,c,h),a._bindPress(),r}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return n.mix({},e,{startEvent:"pinchstart",processEvent:"pinch",endEvent:"pinchend",resetEvent:"touchend",pressThreshold:9,pressTime:251,mode:"x",currentPinchScaling:null,originValues:null,minScale:null,maxScale:null,limitRange:{},sensitivity:1,_pinchCumulativeDelta:0,_timestamp:0})},e.start=function(){this.pressed||(this.currentPinchScaling=1)},e.process=function(t){this.pressed||this._handlePinch(t)},e.end=function(t){this.pressed||(this._handlePinch(t),this.currentPinchScaling=null,this.pinchCumulativeDelta=0)},e._handlePinch=function(t){var e,i=1/this.currentPinchScaling*t.scale,n=t.target.getBoundingClientRect(),r={x:t.center.x-n.left,y:t.center.y-n.top},a=Math.abs(t.pointers[0].clientX-t.pointers[1].clientX),o=Math.abs(t.pointers[0].clientY-t.pointers[1].clientY),s=a/o;e=s>.3&&s<1.7?"xy":a>o?"x":"y";var c=this._timestamp,h=+new Date;h-c>16&&(this._doZoom(i,r,e),this._timestamp=h),this.currentPinchScaling=t.scale},e._doZoom=function(t,e,i){var a,o=this,s=o.mode,c=o.chart,h=o.limitRange;a="xy"===s&&void 0!==i?i:"xy";var u=c.get("data");if(n.directionEnabled(s,"x")&&n.directionEnabled(a,"x")){var l=c.getXScale(),f=l.field;h[f]||(h[f]=r.getLimitRange(u,l)),l.isCategory?o._zoomCatScale(l,t,e):l.isLinear&&o._zoomLinearScale(l,t,e,"x");var p=r.getColDef(c,f);this.xRange=r.getFieldRange(p,h[f],l.type)}if(n.directionEnabled(s,"y")&&n.directionEnabled(a,"y")){var g=c.getYScales();n.each(g,function(i){var n=i.field;h[n]||(h[n]=r.getLimitRange(u,i)),i.isLinear&&o._zoomLinearScale(i,t,e,"y")});var d=r.getColDef(c,g[0].field);this.yRange=r.getFieldRange(d,h[g[0].field],g[0].type)}c.repaint()},e._zoomLinearScale=function(t,e,i,n){var r=this.chart,a=t.min,o=t.max,s=t.field,c=o-a,h=this.limitRange,u=h[s].max-h[s].min,l=r.get("coord"),f=c*(e-1);if(this.minScale&&e<1){var p=u/this.minScale;f=Math.max(c-p,f)}if(this.maxScale&&e>=1){var g=u/this.maxScale;f=Math.min(c-g,f)}var d=l.invertPoint(i),v="x"===n?d.x:d.y,y=o-f*(1-v),m=a+f*v;this.updateLinearScale(s,m,y)},e._zoomCatScale=function(t,e,i){var n=this._pinchCumulativeDelta,r=this.sensitivity;n=e>1?n+1:n-1,this._pinchCumulativeDelta=n;var a=t.field,o=t.values,s=this.chart.get("coord");this.originTicks||(this.originTicks=t.ticks);var c=this.limitRange[a],h=c.length,u=this.minScale||1,l=this.maxScale||5,f=parseInt(h/l),p=parseInt(h/u),g=o.length;if(n>0&&g<=f)return null;if(n<0&&g>=p)return null;var d=h-1,v=o[0],y=o[g-1],m=c.indexOf(v),x=c.indexOf(y),_=(s.start.x+s.end.x)/2,S=i.x;if(Math.abs(n)>r){var b=Math.max(1,parseInt(g*Math.abs(e-1)));n<0?(S>=_?m<=0?x=Math.min(d,x+b):m=Math.max(0,m-b):S<_&&(x>=d?m=Math.max(0,m-b):x=Math.min(d,x+b)),this._pinchCumulativeDelta=0):n>0&&(S>=_?m=m<x?m=Math.min(x,m+b):m:S<_&&(x=x>m?x=Math.max(m,x-b):x),this._pinchCumulativeDelta=0);var P=c.slice(m,x+1);this.updateCatScale(a,P,this.originTicks,c,m,x)}},i}(a);o.registerInteraction("pinch",u),t.exports=u},"1XeI":function(t,e,i){var n=i("QVV7"),r=i("+zSj"),a=i("kVss");function o(t){for(var e=[],i=0,n=t.length;i<n;i++){var r=t[i];isNaN(r.x)||isNaN(r.y)||e.push(r)}return e}var s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canFill=!0,this._attrs.canStroke=!0,this._attrs.type="polyline"},i.getDefaultAttrs=function(){return{points:null,lineWidth:1,smooth:!1}},i.createPath=function(t){var e=this.get("attrs"),i=e.points,n=e.smooth,a=o(i);if(t.beginPath(),a.length)if(t.moveTo(a[0].x,a[0].y),n)for(var s=r.smooth(a,!1,[[0,0],[1,1]]),c=0,h=s.length;c<h;c++){var u=s[c];t.bezierCurveTo(u[1],u[2],u[3],u[4],u[5],u[6])}else{var l,f;for(l=1,f=a.length-1;l<f;l++)t.lineTo(a[l].x,a[l].y);t.lineTo(a[f].x,a[f].y)}},i.calculateBox=function(){var t=this.get("attrs"),e=t.points,i=t.smooth,n=t.lineWidth,s=o(e);if(i){for(var c=[],h=r.smooth(s,!1,[[0,0],[1,1]]),u=0,l=h.length;u<l;u++){var f=h[u];if(0===u)c.push([s[0].x,s[0].y,f[1],f[2],f[3],f[4],f[5],f[6]]);else{var p=h[u-1];c.push([p[5],p[6],f[1],f[2],f[3],f[4],f[5],f[6]])}}return a.getBBoxFromBezierGroup(c,n)}return a.getBBoxFromPoints(s,n)},e}(n);n.Polyline=s,t.exports=s},"1j4P":function(t,e){t.exports=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},"1teL":function(t,e,i){var n=function(t){function e(e){var i;return(i=t.call(this,e)||this).names=["shape"],i.type="shape",i.gradient=null,i}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t),e.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},e}(i("KcDd"));t.exports=n},2:function(t,e,i){t.exports=i},"30rZ":function(t,e,i){var n=i("yE8w"),r=i("/OGV"),a=i("BVlW");i("y8TG");var o=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t);var e=i.prototype;function i(e){var i;return i=t.call(this,e)||this,r.mix(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i),a),i}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},e.createShapePointsCfg=function(e){var i=t.prototype.createShapePointsCfg.call(this,e);return i.size=this.getNormalizedSize(e),i},e.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},i}(n);n.Schema=o,t.exports=o},"3FYI":function(t,e,i){var n=i("z1ay");function r(t){for(var e=[],i=0,n=t.length;i<n;i++)t[i]&&(e.push(t[i].x),e.push(t[i].y));return e}function a(t,e){return e-=t=+t,function(i){return t+e*i}}function o(t,e){var i,n=e?e.length:0,r=t?Math.min(n,t.length):0,o=new Array(r),s=new Array(n);for(i=0;i<r;++i)o[i]=a(t[i],e[i]);for(;i<n;++i)s[i]=e[i];return function(t){for(i=0;i<r;++i)s[i]=o[i](t);return s}}var s=function(){function t(t,e,i){this.hasStarted=!1,this.hasEnded=!1,this.shape=t,this.source=e,this.timeline=i,this.animate=null}var e=t.prototype;return e.to=function(t){void 0===t&&(t={});var e,i=t.delay||0,s=t.attrs||{},c=t.duration||1e3;e="function"==typeof t.easing?t.easing:n[t.easing]||n.linear;var h={shape:this.shape,startTime:this.timeline.time+i,duration:c,easing:e},u={};for(var l in s){var f=this.source[l],p=s[l];"points"===l?(f=r(f),p=r(p),u.points=o(f,p),this.source.points=f,s.points=p):"matrix"===l?u.matrix=o(f,p):u[l]=a(f,p)}return h.interpolate=u,h.startState=this.source,h.endState=s,h.endTime=h.startTime+c,this.timeline.anims.push(h),this.animate=h,this},e.onFrame=function(t){return this.animate&&(this.animate.onFrame=function(e){t(e)}),this},e.onStart=function(t){return this.animate&&(this.animate.onStart=function(){t()}),this},e.onUpdate=function(t){return this.animate&&(this.animate.onUpdate=function(e){t(e)}),this},e.onEnd=function(t){return this.animate&&(this.animate.onEnd=function(){t()}),this},t}();t.exports=s},"3KDy":function(t,e,i){var n=i("cvtA"),r=i("kmIp");t.exports=function(t){var e=[];return n(t,function(t){r(e,t)||e.push(t)}),e}},"3W1g":function(t,e,i){var n=i("c54I");t.exports=function(t){var e=n(t);return e.charAt(0).toUpperCase()+e.substring(1)}},"3tAF":function(t,e,i){var n=i("QVV7"),r=i("kVss"),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initProperties=function(){t.prototype._initProperties.call(this),this._attrs.canStroke=!0,this._attrs.canFill=!0,this._attrs.type="arc"},i.getDefaultAttrs=function(){return{x:0,y:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!1,lineWidth:1}},i.createPath=function(t){var e=this.get("attrs"),i=e.x,n=e.y,r=e.r,a=e.startAngle,o=e.endAngle,s=e.clockwise;t.beginPath(),a!==o&&t.arc(i,n,r,a,o,s)},i.calculateBox=function(){var t=this.get("attrs"),e=t.x,i=t.y,n=t.r,a=t.startAngle,o=t.endAngle,s=t.clockwise;return r.getBBoxFromArc(e,i,n,a,o,s)},e}(n);n.Arc=a,t.exports=a},"4AhL":function(t,e,i){var n=i("/OGV"),r=i("8A80").Group,a=function(){var t=e.prototype;function e(t){n.deepMix(this,this.getDefaultCfg(),t),this._init();var e=this.content,i=this.x,r=this.y;n.isNil(e)||this.updateContent(e),this.updatePosition(i,r)}return t.getDefaultCfg=function(){return{x:0,y:0,content:"",textStyle:{fontSize:12,fill:"#fff",textAlign:"center",textBaseline:"middle"},background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},width:0,height:0,className:""}},t._init=function(){var t=this.content,e=this.textStyle,i=this.background,a=this.className,o=this.visible,s=new r({className:a,zIndex:0,visible:o}),c=s.addShape("Text",{className:a+"-text",zIndex:1,attrs:n.mix({text:t,x:0,y:0},e)}),h=s.addShape("Rect",{className:a+"-bg",zIndex:-1,attrs:n.mix({x:0,y:0,width:0,height:0},i)});s.sort(),this.container=s,this.textShape=c,this.backgroundShape=h},t._getBBox=function(){var t=this.textShape,e=this.background,i=t.getBBox(),r=n.parsePadding(e.padding),a=i.width+r[1]+r[3],o=i.height+r[0]+r[2];return{x:i.minX-r[3],y:i.minY-r[0],width:a,height:o}},t.updateContent=function(t){var e=this.textShape,i=this.backgroundShape;if(!n.isNil(t)){n.isObject(t)||(t={text:t}),e.attr(t);var r=this._getBBox(),a=r.x,o=r.y,s=r.width,c=r.height,h=this.width||s,u=this.height||c;i.attr({x:a,y:o,width:h,height:u}),this._width=h,this._height=u,this.content=t.text}},t.updatePosition=function(t,e){var i=this.container,n=this._getBBox(),r=n.x,a=n.y;i.moveTo(t-r,e-a),this.x=t-r,this.y=e-a},t.getWidth=function(){return this._width},t.getHeight=function(){return this._height},t.show=function(){this.container.show()},t.hide=function(){this.container.hide()},t.clear=function(){var t=this.container;t.clear(),t.remove(!0),this.container=null,this.textShape=null,this.backgroundShape=null},e}();t.exports=a},"4gT4":function(t,e){function i(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}t.exports=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},"5tZR":function(t,e){t.exports=function(t){return null===t||void 0===t}},"6LR7":function(t,e,i){var n=i("/OGV"),r=i("A1Y1"),a=i("BJ6J"),o={linear:"Linear",cat:"Cat",timeCat:"TimeCat",identity:"Identity"},s=function(){function t(t){this.defs={},n.mix(this,t)}var e=t.prototype;return e._getDef=function(t){var e=this.defs,i=null;return(r.scales[t]||e[t])&&(i=n.mix({},r.scales[t]),n.each(e[t],function(t,e){n.isNil(t)?delete i[e]:i[e]=t})),i},e._getDefaultType=function(t,e,i){if(i&&i.type)return i.type;var r="linear",a=n.Array.firstValue(e,t);return n.isArray(a)&&(a=a[0]),n.isString(a)&&(r="cat"),r},e._getScaleCfg=function(t,e,i,r){var a,o={field:e,values:a=r&&r.values?r.values:n.Array.values(i,e)};if("cat"!==t&&"timeCat"!==t){if(!r||!r.min||!r.max){var s=n.Array.getRange(a),c=s.min,h=s.max;o.min=c,o.max=h,o.nice=!0}}else o.isRounding=!1;return o},e.createScale=function(t,e){var i,r=this._getDef(t);if(!e||!e.length)return r&&r.type?(r.field=t,i=new a[o[r.type]](r)):i=new a.Identity({value:t,field:t.toString(),values:[t]}),i;var s=e[0][t];if(null===s&&(s=n.Array.firstValue(e,t)),n.isNumber(t)||n.isNil(s)&&!r)i=new a.Identity({value:t,field:t.toString(),values:[t]});else{var c=this._getDefaultType(t,e,r),h=this._getScaleCfg(c,t,e,r);r&&n.mix(h,r),i=new a[o[c]](h)}return i},t}();t.exports=s},"6aT6":function(t,e){function i(t,e){for(var i in e)e.hasOwnProperty(i)&&"constructor"!==i&&void 0!==e[i]&&(t[i]=e[i])}t.exports=function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t}},"6jWI":function(t,e){t.exports=function(t){return null===t||void 0===t}},"6mY2":function(t,e,i){t.exports={Position:i("zRYr"),Shape:i("1teL"),Size:i("MEkP"),Color:i("eJjQ")}},"6nxH":function(t,e,i){var n=i("rEZx").requestAnimationFrame,r="object"==typeof performance&&performance.now?performance:Date,a=function(){function t(){this.anims=[],this.time=null,this.playing=!1,this.canvas=[]}var e=t.prototype;return e.play=function(){var t=this;t.time=r.now(),t.playing=!0,n(function e(){t.playing&&(n(e),t.update())})},e.stop=function(){this.playing=!1,this.time=null,this.canvas=[]},e.update=function(){var t=r.now();this.canvas=[];for(var e=0;e<this.anims.length;e++){var i=this.anims[e];if(!(t<i.startTime||i.hasEnded)){var n=i.shape;if(n.get("destroyed"))this.anims.splice(e,1),e--;else{var a=i.startState,o=i.endState,s=i.interpolate,c=i.duration;t>=i.startTime&&!i.hasStarted&&(i.hasStarted=!0,i.onStart&&i.onStart());var h=(t-i.startTime)/c;if(h=Math.max(0,Math.min(h,1)),h=i.easing(h),i.onFrame)i.onFrame(h);else for(var u in s){var l=(0,s[u])(h),f=void 0;if("points"===u){f=[];for(var p=Math.max(a.points.length,o.points.length),g=0;g<p;g+=2)f.push({x:l[g],y:l[g+1]})}else f=l;n._attrs.attrs[u]=f,n._attrs.bbox=null}var d=n.get("canvas");-1===this.canvas.indexOf(d)&&this.canvas.push(d),i.onUpdate&&i.onUpdate(h),t>=i.endTime&&!i.hasEnded&&(i.hasEnded=!0,i.onEnd&&i.onEnd()),1===h&&(this.anims.splice(e,1),e--)}}}this.canvas.map(function(t){return t.draw(),t}),this.time=r.now()},t}();t.exports=a},"73e3":function(t,e,i){var n=i("TVoD"),r=i("zwhM");t.exports=function(t,e){if(t)if(r(t))for(var i=0,a=t.length;i<a&&!1!==e(t[i],i);i++);else if(n(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},"7MkT":function(t,e,i){var n=i("/OGV"),r=i("8A80").Group,a={anchorOffset:5,inflectionOffset:15,sidePadding:20,lineHeight:32,adjustOffset:15,skipOverlapLabels:!1,triggerOn:"touchstart",activeShape:!1,activeStyle:{offset:1,appendRadius:8,fillOpacity:.5},label1OffsetY:-1,label2OffsetY:1};function o(t,e,i){return{x:t.x+i*Math.cos(e),y:t.y+i*Math.sin(e)}}function s(t,e){var i=t.getBBox(),n=e.getBBox();return Math.max(i.minX,n.minX)<=Math.min(i.maxX,n.minX)&&Math.max(i.minY,n.minY)<=Math.min(i.maxY,n.maxY)}var c=function(){function t(t){n.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el")}var e=t.prototype;return e.renderLabels=function(){var t=this,e=t.chart,i=t.pieLabelCfg,a=t.labelGroup,c=[[],[]],h=e.get("geoms")[0].get("container").get("children"),u=i.anchorOffset,l=i.inflectionOffset,f=i.label1,p=i.label2,g=i.lineHeight,d=i.skipOverlapLabels,v=i.label1OffsetY,y=i.label2OffsetY,m=e.get("coord"),x=m.center,_=m.circleRadius;h.forEach(function(t){var i=t._attrs.attrs,a=function(t,e){return e<t&&(e+=2*Math.PI),(e+t)/2}(i.startAngle,i.endAngle),s=o(x,a,_+u),h=o(x,a,_+l),g=t.get("origin"),d=g._origin,m=g.color,S={_anchor:s,_inflection:h,_data:d,x:h.x,y:h.y,r:_+l,fill:m},b=new r({context:e.get("canvas").get("context"),data:d}),P={x:0,y:0,fontSize:12,lineHeight:12,fill:"#808080"};n.isFunction(f)&&b.addShape("Text",{attrs:n.mix({textBaseline:"bottom"},P,f(d,m)),data:d,offsetY:v}),n.isFunction(p)&&b.addShape("Text",{attrs:n.mix({textBaseline:"top"},P,p(d,m)),data:d,offsetY:y}),S.textGroup=b,s.x<x.x?(S._side="left",c[0].push(S)):(S._side="right",c[1].push(S))});var S=[];if(d)for(var b,P=c[1].concat(c[0]),C=0,w=P.length;C<w;C++){var M=P[C],T=t._drawLabel(M);b&&s(T,b)||(a.add(T),t._drawLabelLine(M),b=T,S.push(T))}else{var A=e.get("height"),O=parseInt(A/g,10);c.forEach(function(e){e.length>O&&e.splice(O,e.length-O),e.sort(function(t,e){return t.y-e.y});var i=t._antiCollision(e);S=S.concat(i)})}this.drawnLabels=S},e.bindEvents=function(){var t=this.pieLabelCfg.triggerOn||"touchstart",e=n.wrapBehavior(this,"_handleEvent");n.addEventListener(this.canvasDom,t,e)},e.unBindEvents=function(){var t=this.pieLabelCfg.triggerOn||"touchstart",e=n.getWrapBehavior(this,"_handleEvent");n.removeEventListener(this.canvasDom,t,e)},e.clear=function(){this.labelGroup&&this.labelGroup.clear(),this.halo&&this.halo.remove(!0),this.lastSelectedData=null,this.drawnLabels=[],this.unBindEvents()},e._drawLabel=function(t){var e=this.pieLabelCfg,i=this.chart.get("width"),n=e.sidePadding,r=t.y,a=t.textGroup,o=a.get("children"),s={textAlign:"left"===t._side?"left":"right",x:"left"===t._side?n:i-n};return o.forEach(function(t){t.attr(s),t.attr("y",r+t.get("offsetY"))}),a},e._drawLabelLine=function(t,e){var i=this.chart,r=this.pieLabelCfg,a=this.labelGroup,o=i.get("width"),s=r.sidePadding,c=r.adjustOffset,h=r.lineStyle,u=r.anchorStyle,l=r.skipOverlapLabels,f=t._anchor,p=t._inflection,g=t.fill,d=t.y,v={x:"left"===t._side?s:o-s,y:d},y=[f,p,v];if(!l&&p.y!==d)if(p.y<d){var m=p,x={x:"left"===t._side?v.x+e+c:v.x-e-c,y:p.y},_={x:"left"===t._side?v.x+e:v.x-e,y:v.y};y=[f,m,x,_,v],("right"===t._side&&x.x<m.x||"left"===t._side&&x.x>m.x)&&(y=[f,_,v])}else y=[f,{x:p.x,y:d},v];a.addShape("Polyline",{attrs:n.mix({points:y,lineWidth:1,stroke:g},h)}),a.addShape("Circle",{attrs:n.mix({x:f.x,y:f.y,r:2,fill:g},u)})},e._antiCollision=function(t){var e,i=this,n=i.chart,r=i.pieLabelCfg,a=n.get("coord"),o=n.get("height"),s=a.center,c=a.circleRadius,h=r.inflectionOffset,u=r.lineHeight,l=s.y-c-h-u,f=!0,p=o,g=0,d=Number.MIN_VALUE,v=0,y=t.map(function(t){var e=t.y;e>g&&(g=e),e<d&&(d=e);var i=t.textGroup.getBBox().width;return i>=v&&(v=i),{size:u,targets:[e-l]}});g-l>p&&(p=g-l);for(var m=function(t){t.forEach(function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),p-t.size)})};f;)for(m(y),f=!1,e=y.length;e--;)if(e>0){var x=y[e-1],_=y[e];x.pos+x.size>_.pos&&(x.size+=_.size,x.targets=x.targets.concat(_.targets),x.pos+x.size>p&&(x.pos=p-x.size),y.splice(e,1),f=!0)}e=0,y.forEach(function(i){var n=l;i.targets.forEach(function(){t[e].y=i.pos+n+u/2,n+=u,e++})});var S=[];return t.forEach(function(t){var e=i._drawLabel(t);i.labelGroup.add(e),i._drawLabelLine(t,v),S.push(e)}),S},e._handleEvent=function(t){for(var e,i=this.chart,r=this.drawnLabels,a=this.pieLabelCfg,o=a.onClick,s=a.activeShape,c=n.createEvent(t,i),h=c.x,u=c.y,l=0,f=r.length;l<f;l++){var p=r[l],g=p.getBBox();if(h>=g.minX&&h<=g.maxX&&u>=g.minY&&u<=g.maxY){e=p;break}}var d=i.getSnapRecords({x:h,y:u});e?c.data=e.get("data"):d.length&&(c.data=d[0]._origin),o&&o(c),c.data&&s&&this._activeShape(c.data)},e._getSelectedShapeByData=function(t){var e=null,i=this.chart.get("geoms")[0],r=i.get("container").get("children");return n.each(r,function(r){if(r.get("isShape")&&r.get("className")===i.get("type")){var a=r.get("origin")._origin;if(n.isObjectValueEqual(a,t))return e=r,!1}}),e},e._activeShape=function(t){var e=this.chart,i=this.lastSelectedData,r=this.pieLabelCfg;if(t!==i){this.lastSelectedData=t;var a=r.activeStyle,o=this._getSelectedShapeByData(t)._attrs.attrs,s=o.x,c=o.y,h=o.startAngle,u=o.endAngle,l=o.r,f=o.fill,p=e.get("frontPlot");this.halo&&this.halo.remove(!0);var g=p.addShape("sector",{attrs:n.mix({x:s,y:c,r:l+a.offset+a.appendRadius,r0:l+a.offset,fill:f,startAngle:h,endAngle:u},a)});this.halo=g,e.get("canvas").draw()}},t}();t.exports={init:function(t){var e=t.get("frontPlot").addGroup({className:"pie-label",zIndex:0}),i=new c({chart:t,labelGroup:e});t.set("pieLabelController",i),t.pieLabel=function(t){return t=n.deepMix({},a,t),i.pieLabelCfg=t,this}},afterGeomDraw:function(t){var e=t.get("pieLabelController");e.pieLabelCfg&&(e.renderLabels(),e.bindEvents())},clearInner:function(t){var e=t.get("pieLabelController");e.pieLabelCfg&&e.clear()}}},"8A80":function(t,e,i){var n={Canvas:i("rclb"),Group:i("E80E"),Shape:i("QVV7"),Matrix:i("HeE9"),Vector2:i("zfEZ")};i("YmNs"),i("PclW"),i("O2ta"),i("hc5r"),i("1XeI"),i("3tAF"),i("t5Q6"),i("w/co"),i("PUYC"),t.exports=n},"8RRV":function(t,e,i){var n=i("/OGV"),r=i("A1Y1"),a=i("NgH9"),o=i("M/qk");function s(t){var e=t.getAttr("color");if(e){var i=e.getScale(e.type);if(i.isLinear)return i}var n=t.getXScale(),r=t.getYScale();return r||n}function c(t){var e=[];return n.each(t,function(t){var i=function(t,e){var i=-1;return n.each(t,function(t,n){if(t.title===e.title&&t.name===e.name&&t.value===e.value&&t.color===e.color)return i=n,!1}),i}(e,t);-1===i?e.push(t):e[i]=t}),e}r.tooltip=n.deepMix({triggerOn:["touchstart","touchmove"],alwaysShow:!1,showTitle:!1,showCrosshairs:!1,crosshairsStyle:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1},showTooltipMarker:!0,background:{radius:1,fill:"rgba(0, 0, 0, 0.65)",padding:[3,5]},titleStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"top"},nameStyle:{fontSize:12,fill:"rgba(255, 255, 255, 0.65)",textAlign:"start",textBaseline:"middle"},valueStyle:{fontSize:12,fill:"#fff",textAlign:"start",textBaseline:"middle"},showItemMarker:!0,itemMarkerStyle:{radius:3,symbol:"circle",lineWidth:1,stroke:"#fff"},layout:"horizontal",snap:!1},r.tooltip||{});var h=function(){function t(t){this.enable=!0,this.cfg={},this.tooltip=null,this.chart=null,this.timeStamp=0,n.mix(this,t);var e=this.chart;this.canvasDom=e.get("canvas").get("el")}var e=t.prototype;return e._setCrosshairsCfg=function(){var t=this.chart,e=n.mix({},r.tooltip),i=t.get("geoms"),a=[];n.each(i,function(t){var e=t.get("type");-1===a.indexOf(e)&&a.push(e)});var o=t.get("coord").type;return!i.length||"cartesian"!==o&&"rect"!==o||1===a.length&&-1!==["line","area","path","point"].indexOf(a[0])&&n.mix(e,{showCrosshairs:!0}),e},e._getMaxLength=function(t){void 0===t&&(t={});var e=t,i=e.layout,n=e.plotRange;return"horizontal"===i?n.br.x-n.bl.x:n.bl.y-n.tr.y},e.render=function(){if(!this.tooltip){var t=this.chart,e=t.get("canvas"),i=t.get("frontPlot").addGroup({className:"tooltipContainer",zIndex:10}),r=t.get("backPlot").addGroup({className:"tooltipContainer"}),o=t.get("plotRange"),s=t.get("coord"),c=this._setCrosshairsCfg(),h=this.cfg,u=n.deepMix({plotRange:o,frontPlot:i,backPlot:r,canvas:e,fixed:s.transposed||s.isPolar},c,h);u.maxLength=this._getMaxLength(u),this._tooltipCfg=u;var l=new a(u);this.tooltip=l,this.bindEvents()}},e.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._lastActive=null,this.unBindEvents()},e._getTooltipMarkerStyle=function(t){void 0===t&&(t={});var e=t,i=e.type,r=e.items,a=this._tooltipCfg;if("rect"===i){var o,s,c,h,u=this.chart,l=u.get("plotRange"),f=l.tl,p=l.br,g=u.get("coord"),d=r[0],v=r[r.length-1],y=d.width;g.transposed?(o=f.x,s=v.y-.75*y,c=p.x-f.x,h=d.y-v.y+1.5*y):(o=d.x-.75*y,s=f.y,c=v.x-d.x+1.5*y,h=p.y-f.y),t.style=n.mix({x:o,y:s,width:c,height:h,fill:"#CCD6EC",opacity:.3},a.tooltipMarkerStyle)}else t.style=n.mix({radius:4,fill:"#fff",lineWidth:2},a.tooltipMarkerStyle);return t},e._setTooltip=function(t,e,i){void 0===i&&(i={});var r=this._lastActive,a=this.tooltip,s=this._tooltipCfg;e=c(e);var h=this.chart,u=h.get("coord"),l=h.getYScales()[0],f=s.snap;if(!1===f&&l.isLinear){var p,g,d=u.invertPoint(t),v=h.get("plotRange");o.isPointInPlot(t,v)&&(u.transposed?(p=l.invert(d.x),g=t.x,a.setXTipContent(p),a.setXTipPosition(g),a.setYCrosshairPosition(g)):(p=l.invert(d.y),g=t.y,a.setYTipContent(p),a.setYTipPosition(g),a.setXCrosshairPosition(g)))}if(s.onShow&&s.onShow({x:t.x,y:t.y,tooltip:a,items:e,tooltipMarkerCfg:i}),function(t,e){return JSON.stringify(t)===JSON.stringify(e)}(r,e)){!1===f&&(n.directionEnabled(s.crosshairsType,"y")||s.showYTip)&&this.chart.get("canvas").draw()}else{this._lastActive=e;var y=s.onChange;y&&y({x:t.x,y:t.y,tooltip:a,items:e,tooltipMarkerCfg:i});var m=e[0],x=m.title||m.name,_=m.x;if(e.length>1&&(_=(e[0].x+e[e.length-1].x)/2),a.setContent(x,e,u.transposed),a.setPosition(e,t),u.transposed){var S=m.y;e.length>1&&(S=(e[0].y+e[e.length-1].y)/2),a.setYTipContent(x),a.setYTipPosition(S),a.setXCrosshairPosition(S),f&&(a.setXTipContent(m.value),a.setXTipPosition(_),a.setYCrosshairPosition(_))}else a.setXTipContent(x),a.setXTipPosition(_),a.setYCrosshairPosition(_),f&&(a.setYTipContent(m.value),a.setYTipPosition(m.y),a.setXCrosshairPosition(m.y));var b=i.items;s.showTooltipMarker&&b.length?(i=this._getTooltipMarkerStyle(i),a.setMarkers(i)):a.clearMarkers(),a.show()}},e.showTooltip=function(t){var e,i,a=this.chart,o=[],c=[],h=this._tooltipCfg;h.showItemMarker&&(i=h.itemMarkerStyle);var u=a.get("geoms"),l=a.get("coord");if(n.each(u,function(a){if(a.get("visible")){var h=a.get("type"),u=a.getSnapRecords(t);n.each(u,function(t){if(t.x&&t.y){var u=t.x,f=t.y,p=t._origin,g=t.color,d={x:u,y:n.isArray(f)?f[1]:f,color:g||r.defaultColor,origin:p,name:function(t,e){var i,r,a=t._getGroupScales();if(a.length&&n.each(a,function(t){return r=t,!1}),r){var o=r.field;i=r.getText(e[o])}else{var c=s(t);i=c.alias||c.field}return i}(a,p),value:function(t,e){var i=s(t);return i.getText(e[i.field])}(a,p),title:function(t,e){var i=t.getAttr("position").getFields()[0],n=t.get("scales")[i];return n.getText(e[n.field])}(a,p)};i&&(d.marker=n.mix({fill:g||r.defaultColor},i)),c.push(d),-1!==["line","area","path"].indexOf(h)?(e="circle",o.push(d)):"interval"!==h||"cartesian"!==l.type&&"rect"!==l.type||(e="rect",d.width=a.getSize(t._origin),o.push(d))}})}}),c.length){var f={items:o,type:e};this._setTooltip(t,c,f)}else this.hideTooltip()},e.hideTooltip=function(){var t=this._tooltipCfg;this._lastActive=null;var e=this.tooltip;e&&(e.hide(),t.onHide&&t.onHide({tooltip:e}),this.chart.get("canvas").draw())},e.handleShowEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var i=e.get("plotRange"),r=n.createEvent(t,e);if(o.isPointInPlot(r,i)||this._tooltipCfg.alwaysShow){var a=this.timeStamp,s=+new Date;s-a>16&&(this.showTooltip(r),this.timeStamp=s)}else this.hideTooltip()}},e.handleHideEvent=function(){var t=this.chart;this.enable&&!t.get("_closeTooltip")&&this.hideTooltip()},e.handleDocEvent=function(t){var e=this.chart;if(this.enable&&!e.get("_closeTooltip")){var i=this.canvasDom;t.target!==i&&this.hideTooltip()}},e._handleEvent=function(t,e,i){var r=this.canvasDom;n.each([].concat(t),function(t){"bind"===i?n.addEventListener(r,t,e):n.removeEventListener(r,t,e)})},e.bindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,i=t.triggerOff,r=t.alwaysShow,a=n.wrapBehavior(this,"handleShowEvent"),o=n.wrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,a,"bind"),i&&this._handleEvent(i,o,"bind"),!r){var s=n.wrapBehavior(this,"handleDocEvent");n.isBrowser&&n.addEventListener(document,"touchstart",s)}},e.unBindEvents=function(){var t=this._tooltipCfg,e=t.triggerOn,i=t.triggerOff,r=t.alwaysShow,a=n.getWrapBehavior(this,"handleShowEvent"),o=n.getWrapBehavior(this,"handleHideEvent");if(e&&this._handleEvent(e,a,"unBind"),i&&this._handleEvent(i,o,"unBind"),!r){var s=n.getWrapBehavior(this,"handleDocEvent");n.isBrowser&&n.removeEventListener(document,"touchstart",s)}},t}();t.exports={init:function(t){var e=new h({chart:t});t.set("tooltipController",e),t.tooltip=function(t,i){return n.isObject(t)&&(i=t,t=!0),e.enable=t,i&&(e.cfg=i),this}},afterGeomDraw:function(t){var e=t.get("tooltipController");e.render(),t.showTooltip=function(t){return e.showTooltip(t),this},t.hideTooltip=function(){return e.hideTooltip(),this}},clearInner:function(t){t.get("tooltipController").clear()}}},"94fS":function(t,e,i){var n=i("/OGV"),r={appear:{duration:450,easing:"quadraticOut"},update:{duration:300,easing:"quadraticOut"},enter:{duration:300,easing:"quadraticOut"},leave:{duration:350,easing:"quadraticIn"}},a={defaultCfg:{},Action:{},getAnimation:function(t,e,i){var r=this.defaultCfg[t];if(r){var a=r[i];if(n.isFunction(a))return a(e)}return!1},getAnimateCfg:function(t,e){var i=r[e],a=this.defaultCfg[t];return a&&a.cfg&&a.cfg[e]?n.deepMix({},i,a.cfg[e]):i},registerAnimation:function(t,e){this.Action||(this.Action={}),this.Action[t]=e}};t.exports=a},"9MQO":function(t,e,i){var n=i("VFrk");t.exports=n},A1Y1:function(t,e,i){var n=i("Nl0A"),r=i("/OGV"),a={version:"3.4.1",scales:{},widthRatio:{column:.5,rose:.999999,multiplePie:.75},lineDash:[4,4],setTheme:function(t){r.deepMix(this,t)}};a.setTheme(n),t.exports=a},A5Iw:function(t,e,i){var n=i("/OGV"),r=i("Viok"),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initDefaultCfg=function(){t.prototype._initDefaultCfg.call(this),this.start=null,this.end=null},i.getOffsetPoint=function(t){var e=this.start,i=this.end;return{x:e.x+(i.x-e.x)*t,y:e.y+(i.y-e.y)*t}},i.getAxisVector=function(){var t=this.start,e=this.end;return[e.x-t.x,e.y-t.y]},i.drawLine=function(t){var e=this.getContainer(t.top),i=this.start,r=this.end;e.addShape("line",{className:"axis-line",attrs:n.mix({x1:i.x,y1:i.y,x2:r.x,y2:r.y},t)})},e}(r);r.Line=a,t.exports=a},ANA9:function(t,e){var i={}.toString;t.exports=function(t,e){return i.call(t)==="[object "+e+"]"}},"AT+s":function(t,e,i){var n=i("/OGV"),r=i("oKmc"),a=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initDefaultCfg=function(){this.type="arc",this.start=[],this.end=[],this.style={stroke:"#999",lineWidth:1}},i.render=function(t,e){var i=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end);if(i&&r){var a=t.center,o=Math.sqrt((i.x-a.x)*(i.x-a.x)+(i.y-a.y)*(i.y-a.y)),s=Math.atan2(i.y-a.y,i.x-a.x),c=Math.atan2(r.y-a.y,r.x-a.x),h=e.addShape("arc",{className:"guide-arc",attrs:n.mix({x:a.x,y:a.y,r:o,startAngle:s,endAngle:c},this.style)});return this.element=h,h}},e}(r);r.Arc=a,t.exports=a},BG2f:function(t,e,i){var n=i("eJjv"),r=i("/OGV"),a=n.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){for(var e=[],i=t.x,n=t.y,r=0,a=i.length;r<a;r++)e.push({x:i[r],y:n[r]});return e}});n.registerShape("polygon","polygon",{draw:function(t,e){var i=this.parsePoints(t.points),n=r.mix({fill:t.color,points:i},t.style);return e.addShape("Polygon",{className:"polygon",attrs:n})}}),t.exports=a},BJ6J:function(t,e,i){var n=i("nPeE");i("XTvi"),i("YkEv"),i("r+as"),t.exports=n},BVlW:function(t,e,i){var n=i("A1Y1"),r=i("/OGV"),a={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),i=this.getXScale(),a=this.get("dataArray"),o=r.uniq(i.values).length,s=i.range,c=1/o,h=1;e&&e.isPolar?h=e.transposed&&o>1?n.widthRatio.multiplePie:n.widthRatio.rose:(i.isLinear&&(c*=s[1]-s[0]),h=n.widthRatio.column),c*=h,this.hasAdjust("dodge")&&(c/=a.length),t=c,this.set("defaultSize",t)}return t},getDimWidth:function(t){var e=this.get("coord"),i=e.convertPoint({x:0,y:0}),n=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),r=0;return i&&n&&(r=Math.sqrt(Math.pow(n.x-i.x,2)+Math.pow(n.y-i.y,2))),r},_getWidth:function(){var t=this.get("_width");if(!t){var e=this.get("coord");t=e&&e.isPolar&&!e.transposed?(e.endAngle-e.startAngle)*e.circleRadius:this.getDimWidth("x"),this.set("_width",t)}return t},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=r.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(r.isNil(e)){var i=this.getDefalutSize();e=this._toCoordSize(i)}return e}};t.exports=a},Bru8:function(t,e,i){var n=i("ANA9");t.exports=function(t){return n(t,"Function")}},BvAC:function(t,e,i){var n=i("u8UJ");t.exports=function(t){return n(t,"String")}},D5iB:function(t,e,i){var n=i("v2So"),r=i("/OGV");t.exports={getColDef:function(t,e){var i;return t.get("colDefs")&&t.get("colDefs")[e]&&(i=t.get("colDefs")[e]),i},getFieldRange:function(t,e,i){if(!t)return[0,1];var n=0,r=0;if("linear"===i){var a=e.min,o=e.max;n=(t.min-a)/(o-a),r=(t.max-a)/(o-a)}else{var s=e,c=t.values||[],h=s.indexOf(c[0]),u=s.indexOf(c[c.length-1]);n=h/(s.length-1),r=u/(s.length-1)}return[n,r]},getLimitRange:function(t,e){var i,a=e.field,o=e.type,s=r.Array.values(t,a);return"linear"===o?(i=r.Array.getRange(s),e.min<i.min&&(i.min=e.min),e.max>i.max&&(i.max=e.max)):"timeCat"===o?(r.each(s,function(t,e){s[e]=n.toTimeStamp(t)}),s.sort(function(t,e){return t-e}),i=s):i=s,i}}},DiLg:function(t,e,i){var n=i("yE8w");i("QvcK"),i("yVlI"),i("siQP"),i("PQTg"),i("zcC7"),i("ju33"),i("30rZ"),t.exports=n},DzSP:function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!==t&&"object"===e||"function"===e}},E80E:function(t,e,i){var n=i("/OGV"),r=i("zXmN"),a=i("Nohy"),o=i("zfEZ"),s=function(t){function e(){return t.apply(this,arguments)||this}!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(e,t);var i=e.prototype;return i._initProperties=function(){this._attrs={zIndex:0,visible:!0,destroyed:!1,isGroup:!0,children:[]}},i.drawInner=function(t){for(var e=this.get("children"),i=0,n=e.length;i<n;i++){e[i].draw(t)}return this},i.getBBox=function(){for(var t=1/0,e=-1/0,i=1/0,n=-1/0,r=this.get("children"),a=0,s=r.length;a<s;a++){var c=r[a];if(c.get("visible")){var h=c.getBBox();if(!h)continue;var u=[h.minX,h.minY],l=[h.minX,h.maxY],f=[h.maxX,h.minY],p=[h.maxX,h.maxY],g=c.attr("matrix");o.transformMat2d(u,u,g),o.transformMat2d(l,l,g),o.transformMat2d(f,f,g),o.transformMat2d(p,p,g),t=Math.min(u[0],l[0],f[0],p[0],t),e=Math.max(u[0],l[0],f[0],p[0],e),i=Math.min(u[1],l[1],f[1],p[1],i),n=Math.max(u[1],l[1],f[1],p[1],n)}}return{minX:t,minY:i,maxX:e,maxY:n,x:t,y:i,width:e-t,height:n-i}},i.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e}(r);n.mix(s.prototype,a,{getGroupClass:function(){return s}}),t.exports=s},EB7l:function(t,e,i){var n=i("/OGV"),r=i("SBEX"),a=i("ES69"),o=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t);var e=i.prototype;function i(e,i){var r,a=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r=t.call(this,e,i)||this);i.registerPlugins({clearInner:function(){a.halo&&a.halo.remove(!0),a.selected=!1,a.selectedShape=null,a.lastShape=null,a.halo=null,a.defaultSelected=null}});var o=a.defaultSelected;if(n.isObject(o)){var s=a._getSelectedShapeByData(o);s&&a._selectedShape(s),r.canvas.draw()}return r}return e.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e=n.mix({},e,{startEvent:"tap",processEvent:null,animate:!1,offset:1,appendRadius:8,style:{fillOpacity:.5},cancelable:!0,defaultSelected:null}),(n.isWx||n.isMy)&&(e.startEvent="touchstart",e.endEvent="touchend"),e},e._getSelectedShapeByData=function(t){var e=null,i=this.chart.get("geoms")[0],r=i.get("container").get("children");return n.each(r,function(r){if(r.get("isShape")&&r.get("className")===i.get("type")){var a=r.get("origin")._origin;if(n.isObjectValueEqual(a,t))return e=r,!1}}),e},e._selectedShape=function(t){var e=this.offset,i=this.style,r=this.appendRadius,a=this.chart;this.lastShape=t;var o=t._attrs.attrs,s=o.x,c=o.y,h=o.startAngle,u=o.endAngle,l=o.r,f=o.fill,p=a.get("frontPlot").addShape("sector",{attrs:n.mix({x:s,y:c,r:l+e+r,r0:l+e,fill:f,startAngle:h,endAngle:u},i)});this.halo=p;var g=this.animate;g&&(!0===g&&(g={duration:300}),p.attr("r",l+e),p.animate().to(n.mix({attrs:{r:l+e+r}},g)))},e.start=function(t){var e=this.chart;"tap"===t.type&&(t.clientX=t.center.x,t.clientY=t.center.y);var i=n.createEvent(t,e),r=i.x,a=i.y,o=e.getSnapRecords({x:r,y:a});if(!o.length)return this.selected=!1,void(this.selectedShape=null);var s=o[0]._origin,c=this._getSelectedShapeByData(s),h=this.lastShape;if(this.selectedShape=c,this.selected=!0,c===h){if(!this.cancelable)return;this.halo&&this.halo.remove(!0),this.lastShape=null,this.selected=!1}else this.halo&&this.halo.remove(!0),this._selectedShape(c);this.canvas.draw()},e.end=function(t){var e=this.selectedShape;e&&!e.get("destroyed")&&(t.data=e.get("origin")._origin,t.shapeInfo=e.get("origin"),t.shape=e,t.selected=!!this.selected)},i}(r);a.registerInteraction("pie-select",o),t.exports=o},ES69:function(t,e,i){var n=i("bKxX"),r=i("Ptpc"),a=i("/OGV"),o=i("dVhK"),s=i("yE8w"),c=i("6LR7"),h=i("vDB3"),u=i("A1Y1"),l=i("8A80").Canvas,f=i("M/qk");function p(t,e){return t-e}var g=function(t){!function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t),i.initPlugins=function(){return{_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var n,r,a,o,s=this.descriptors(t),c=s.length;for(n=0;n<c;++n)if("function"==typeof(o=(r=s[n].plugin)[e])&&(a=[t].concat(i||[]),!1===o.apply(r,a)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var i=[],n=[];return this._plugins.concat(t&&t.get("plugins")||[]).forEach(function(t){-1===i.indexOf(t)&&(i.push(t),n.push({plugin:t}))}),e.descriptors=n,e.id=this._cacheId,n}}};var e=i.prototype;function i(e){var i,n=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i=t.call(this,e)||this);return a.each(s,function(t,e){var i=a.lowerFirst(e);n[i]=function(e){var i=new t(e);return n.addGeom(i),i}}),n._init(),i}return e.getDefaultCfg=function(){return{id:null,padding:u.padding,data:null,scales:{},geoms:null,colDefs:null,pixelRatio:u.pixelRatio,filters:null,appendPadding:u.appendPadding}},e._syncYScales=function(){var t=this.get("geoms"),e=[],i=[],n=[];a.each(t,function(t){var r=t.getYScale();r.isLinear&&(e.push(r),i.push(r.min),n.push(r.max))}),i=Math.min.apply(null,i),n=Math.max.apply(null,n),a.each(e,function(t){t.change({min:i}),t.change({max:n})})},e._getFieldsForLegend=function(){var t=[],e=this.get("geoms");return a.each(e,function(e){var i=e.get("attrOptions").color;if(i&&i.field&&a.isString(i.field)){var n=i.field.split("*");a.each(n,function(e){-1===t.indexOf(e)&&t.push(e)})}}),t},e._createScale=function(t,e){return this.get("scaleController").createScale(t,e)},e._adjustScale=function(){var t=this.get("coord"),e=this.getXScale(),i=this.getYScales(),n=[];e&&n.push(e),n=n.concat(i);var r=t.isPolar&&function(t){var e=t.startAngle,i=t.endAngle;return!(!a.isNil(e)&&!a.isNil(i)&&i-e<2*Math.PI)}(t),o=this.get("scaleController").defs;a.each(n,function(e){if((e.isCategory||e.isIdentity)&&e.values&&(!o[e.field]||!o[e.field].range)){var i,n=e.values.length;if(1===n)i=[.5,1];else{var a=0;i=r?t.transposed?[(a=1/n*u.widthRatio.multiplePie)/2,1-a/2]:[0,1-1/n]:[a=1/n*1/2,1-a]}e.range=i}});for(var s=this.get("geoms"),c=0;c<s.length;c++){var h=s[c];if("interval"===h.get("type")){var l=h.getYScale(),f=l.field,p=l.min,g=l.max,d=l.type;o[f]&&o[f].min||"time"===d||(p>0?l.change({min:0}):g<=0&&l.change({max:0}))}}},e._removeGeoms=function(){for(var t=this.get("geoms");t.length>0;){t.shift().destroy()}},e._clearGeoms=function(){for(var t=this.get("geoms"),e=0,i=t.length;e<i;e++){t[e].clear()}},e._clearInner=function(){this.set("scales",{}),this.set("legendItems",null),this._clearGeoms(),i.plugins.notify(this,"clearInner"),this.get("axisController")&&this.get("axisController").clear()},e._execFilter=function(t){var e=this.get("filters");return e&&(t=t.filter(function(t){var i=!0;return a.each(e,function(e,n){if(e&&!(i=e(t[n],t)))return!1}),i})),t},e._initGeoms=function(t){for(var e=this.get("coord"),i=this.get("filteredData"),n=this.get("colDefs"),r=0,a=t.length;r<a;r++){var o=t[r];o.set("data",i),o.set("coord",e),o.set("colDefs",n),o.init()}},e._initCoord=function(){var t=this.get("plotRange"),e=a.mix({type:"cartesian"},this.get("coordCfg"),{plot:t}),i=e.type,n=new(0,o[a.upperFirst(i)])(e);this.set("coord",n)},e._initLayout=function(){var t=this.get("_padding");t||(t=this.get("margin")||this.get("padding"),t=a.parsePadding(t));var e="auto"===t[0]?0:t[0],i="auto"===t[1]?0:t[1],n="auto"===t[2]?0:t[2],o="auto"===t[3]?0:t[3],s=this.get("width"),c=this.get("height"),h=new r({start:{x:o,y:e},end:{x:s-i,y:c-n}});this.set("plotRange",h),this.set("plot",h)},e._initCanvas=function(){try{var t=new l({el:this.get("el")||this.get("id"),context:this.get("context"),pixelRatio:this.get("pixelRatio"),width:this.get("width"),height:this.get("height"),fontFamily:u.fontFamily});this.set("canvas",t),this.set("width",t.get("width")),this.set("height",t.get("height"))}catch(t){throw t