-
Notifications
You must be signed in to change notification settings - Fork 0
/
0-es5.5548cf71248bcf2c62a0.js
1 lines (1 loc) · 843 KB
/
0-es5.5548cf71248bcf2c62a0.js
1
!function(){function t(e,n,i){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}})(e,n,i||e)}function e(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||r(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(c){r=!0,o=c}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||r(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+DwW":function(t,e,n){"use strict";var i=n("mrSG"),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++)e.add(n[i].clone());return e},e}(n("Mw2x").a);e.a=r},"+Nd1":function(t,e,n){"use strict";var i=n("DdT1"),r=n("FPPI");e.a=function(){var t=1,e=1,n=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/s,a.eachBefore(function(t,e){return function(i){i.children&&Object(r.a)(i,i.x0,t*(i.depth+1)/e,i.x1,t*(i.depth+2)/e);var o=i.x0,a=i.y0,s=i.x1-n,c=i.y1-n;s<o&&(o=s=(o+s)/2),c<a&&(a=c=(a+c)/2),i.x0=o,i.y0=a,i.x1=s,i.y1=c}}(e,s)),o&&a.eachBefore(i.a),a}return a.round=function(t){return arguments.length?(o=!!t,a):o},a.size=function(n){return arguments.length?(t=+n[0],e=+n[1],a):[t,e]},a.padding=function(t){return arguments.length?(n=+t,a):n},a}},"+wVF":function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("n/J0"),c=n("w02o");function u(t){var e,n=t.chart,i=t.options,r=i.data,o=i.type,a=i.reflect,c=i.xField,u=i.yField,l=i.colorField,h=i.sizeField,f=i.sizeRatio,p=i.shape,d=i.color;n.data(r),e="density"===o?n.heatmap().position(c+"*"+u):n.polygon().position(c+"*"+u),l&&e.color(l,d||s.b.GRADIENT.CONTINUOUS),a&&n.coordinate().reflect(a);var g=1;if((f||0===f)&&(p||h?f<0||f>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):g=f:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),p&&(h||e.shape("",function(){return[p,1,g]}),h)){var v=r.map(function(t){return t[h]}),y=Math.min.apply(Math,v),m=Math.max.apply(Math,v);e.shape(h,function(t){return[p,(t-y)/(m-y),g]})}return t}function l(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,s=n.yField;return Object(o.e)(Object(c.f)(((e={})[a]=i,e[s]=r,e)))(t)}function h(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.yField;return e.axis(n.xField,!1!==i&&i),e.axis(o,!1!==r&&r),t}function f(t){var e=t.chart,n=t.options,i=n.legend;return i?e.legend(n.colorField,i):e.legend(!1),t}function p(t){var e=t.options,n=e.xField,i=e.yField,r=e.colorField,o=e.sizeField,s=e.heatmapStyle,c=t.chart.geometries[0];return s&&c&&(Object(a.H)(s)?c.style(n+"*"+i+"*"+r+"*"+o,s):Object(a.M)(s)&&c.style(s)),t}function d(t){var e=t.chart,n=t.options,r=n.label,a=n.colorField,s=n.type,c=Object(o.c)(e,"density"===s?"heatmap":"polygon");if(r){if(a){var u=r.callback,l=Object(i.f)(r,["callback"]);c.label({fields:[a],callback:u,cfg:Object(o.o)(l)})}}else c.label(!1);return t}function g(t){return Object(o.e)(u,l,c.j,h,f,c.k,p,d,Object(c.b)(),c.c,c.a)(t)}var v=n("kXyF");Object(v.j)("polygon","circle",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),l=Math.min(c,u)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),p=l*Math.sqrt(f)*Math.sqrt(h),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("circle",{attrs:Object(i.a)(Object(i.a)(Object(i.a)({x:o,y:a,r:p},t.defaultStyle),t.style),{fill:d})})}}),Object(v.j)("polygon","square",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),u=Math.abs(s[1].y-s[0].y),l=Math.min(c,u),h=Number(t.shape[1]),f=Number(t.shape[2]),p=l*Math.sqrt(f)*Math.sqrt(h),d=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill);return e.addShape("rect",{attrs:Object(i.a)(Object(i.a)(Object(i.a)({x:o-p/2,y:a-p/2,width:p,height:p},t.defaultStyle),t.style),{fill:d})})}});var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return Object(i.d)(e,t),e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{type:"polygon",legend:!1,xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},e}(r.a)},"/+3i":function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n("mrSG"),r=n("YuPD"),o=n("zJSt"),a=n("iTfj"),s=n("w02o"),c=n("n/J0"),u="$$stock-range$$",l=["#ef5350","#26a69a"],h={showTitle:!1,showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0},itemTpl:'<li class="g2-tooltip-list-item" data-index={index}><span style="background-color:{color};" class="g2-tooltip-marker"></span>{name}{value}</li>'};function f(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.data;return o=Object(a.U)(o,function(t){if(Object(a.B)(r)){var e=r[0],n=r[1],i=r[2],o=r[3];t.trend=t[e]<=t[n]?"up":"down",t[u]=[t[e],t[n],t[i],t[o]]}return t}),e.data(o),e.schema().position(i+"*"+u).shape("candle").color("trend",l),t}function p(t){var e,n,i=t.chart,o=t.options,a=o.meta,s=o.xAxis,l=o.yAxis,h=o.xField,f=((e={})[h]={type:"timeCat",tickCount:6},e.trend={values:["up","down"]},e),p=Object(r.b)(f,a,((n={})[h]=Object(r.k)(s,c.a),n[u]=Object(r.k)(l,c.a),n));return i.scale(p),t}function d(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return e.axis(n.xField,!1!==i&&i),e.axis(u,!1!==r&&r),t}function g(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,s=n.meta,c=void 0===s?{}:s,u=n.tooltip,l=void 0===u?{}:u,h=Object(r.c)(e,"schema"),f=o[0],p=o[1],d=o[2],g=o[3],v=c[f]&&c[f].alias||f,y=c[p]?c[p].alias||f:p,m=c[d]&&c[d].alias||d,b=c[g]&&c[g].alias||g,x={fields:[i,f,p,d,g],callback:function(t,e,n,i,r){return{name:t,value:'\n <br><span data-label="'+v+'" style="padding-left: 16px">'+v+"\uff1a"+e+'</span>\n <br><span data-label="'+y+'" style="padding-left: 16px">'+y+"\uff1a"+n+'</span>\n <br><span data-label="'+m+'" style="padding-left: 16px">'+m+"\uff1a"+i+'</span>\n <br><span data-label="'+b+'" style="padding-left: 16px">'+b+"\uff1a"+r+"</span>\n "}}},O={crosshairs:{text:function(t,e,n){var r={position:"end"};if("x"===t){var o=n[0];r.content=o?o.data[i]:e}else r.content=e;return r}}};if(l){if(Object(a.M)(l)){var j=Object(r.b)({},O,l);e.tooltip(j),h.tooltip(x)}}else e.tooltip(!1);return t}function v(t){var e=t.chart,n=t.options.legend;return n?e.legend("trend",n):!1===n&&e.legend(!1),t}function y(t){Object(r.e)(f,p,s.j,d,g,v,s.c,s.a)(t)}var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(r.b)({},t.prototype.getDefaultOptions.call(this),{tooltip:h,interactions:[{type:"tooltip"}],legend:{position:"top-left"}})},e.prototype.getSchemaAdaptor=function(){return y},e}(o.a)},"/3+T":function(t,e,n){"use strict";n.r(e),n.d(e,"Line",function(){return h}),n.d(e,"Circle",function(){return f}),n.d(e,"Base",function(){return l}),n.d(e,"Html",function(){return v});var i,r=n("mrSG"),o=n("5UbV"),a=n("iTfj"),s=n("MeYt"),c=n("jqgP"),u=n("L16w"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:u.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:u.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:u.a.fontFamily}},textBackground:{padding:5,style:{stroke:u.a.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,o=e.content;if(!Object(a.I)(o)){var s=this.getTextPoint(),u=null;if(i){var l=this.getRotateAngle();u=Object(c.e)(s,l)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.a)(Object(r.a)(Object(r.a)({},s),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.a)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var a=n.getBBox(),s=Object(o.c)(i.padding),c=i.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.a)({x:a.x-s[3],y:a.y-s[0],width:a.width+s[1]+s[3],height:a.height+s[0]+s[2],matrix:n.attr("matrix")},c)}).toBack()}},e}(s.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x);return"start"===i?r-Math.PI/2:r+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,a=i.offset;return Object(o.f)(e,n,r,a)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(l),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,a=i.radius,s="start"===e?i.startAngle:i.endAngle,c=this.getRotateAngle()-Math.PI,u=Object(o.e)(r,a,s),l=Math.cos(c)*n,h=Math.sin(c)*n;return{x:u.x+l,y:u.y+h}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=null;if(r-i==2*Math.PI){var s=e.x,c=e.y;a=[["M",s,c-n],["A",n,n,0,1,1,s,c+n],["A",n,n,0,1,1,s,c-n],["Z"]]}else{var u=Object(o.e)(e,n,i),l=Object(o.e)(e,n,r),h=Math.abs(r-i)>Math.PI?1:0;a=[["M",u.x,u.y],["A",n,n,0,h,i>r?0:1,l.x,l.y]]}return a},e}(l),p=n("fIp6"),d=n("de35"),g=((i={})["g2-crosshair"]={position:"relative"},i["g2-crosshair-line"]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i["g2-crosshair-text"]={position:"absolute",color:u.a.textColor,fontFamily:u.a.fontFamily},i),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="g2-crosshair"></div>',crosshairTpl:'<div class="g2-crosshair-line"></div>',textTpl:'<span class="g2-crosshair-text">{content}</span>',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:g,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(p.b)(e);t.appendChild(n),this.applyStyle("g2-crosshair-line",n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,a=i.offset;return Object(o.f)(e,n,r,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(a.jb)(this.get("textTpl"),t);e=Object(p.b)(r),i.appendChild(e),this.applyStyle("g2-crosshair-text",e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?Object(p.e)(t,{width:"1px",height:Object(o.l)(Math.abs(n.y-e.y))}):Object(p.e)(t,{height:"1px",width:Object(o.l)(Math.abs(n.x-e.x))}),Object(p.e)(t,{top:Object(o.l)(r),left:Object(o.l)(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n}Object(p.e)(t,{top:Object(o.l)(i.y),left:Object(o.l)(i.x)})}},e.prototype.updateInner=function(e){Object(a.x)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(d.a)},"/Kk4":function(t,e,n){"use strict";n.d(e,"a",function(){return F}),n.d(e,"b",function(){return E});var i=n("fXoL"),r=n("8LU1"),o=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];t.call(e,r[1],r[0])}},e}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),c="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,f=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,i=!1,r=0;function o(){n&&(n=!1,t()),i&&s()}function a(){c(o)}function s(){var t=Date.now();if(n){if(t-r<2)return;i=!0}else n=!0,i=!1,setTimeout(a,20);r=t}return s}(this.refresh.bind(this))}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),t.length>0},t.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;u.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),d=function(t,e){for(var n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];Object.defineProperty(t,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return t},g=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||s},v=x(0,0,0,0);function y(t){return parseFloat(t)||0}function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(e,n){return e+y(t["border-"+n+"-width"])},0)}var b="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof g(t).SVGGraphicsElement}:function(t){return t instanceof g(t).SVGElement&&"function"==typeof t.getBBox};function x(t,e,n,i){return{x:t,y:e,width:n,height:i}}var O=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=x(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t,e=(t=this.target,a?b(t)?function(t){var e=t.getBBox();return x(0,0,e.width,e.height)}(t):function(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return v;var i=g(t).getComputedStyle(t),r=function(t){for(var e={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n];e[r]=y(t["padding-"+r])}return e}(i),o=r.left+r.right,a=r.top+r.bottom,s=y(i.width),c=y(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==e&&(s-=m(i,"left","right")+o),Math.round(c+a)!==n&&(c-=m(i,"top","bottom")+a)),!function(t){return t===g(t).document.documentElement}(t)){var u=Math.round(s+o)-e,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return x(r.left,r.top,s,c)}(t):v);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),j=function(t,e){var n,i,r,o,a,s,c,u=(i=(n=e).x,r=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),d(c,{x:i,y:r,width:o,height:a,top:r,right:i+o,bottom:a+r,left:i}),c);d(this,{target:t,contentRect:u})},w=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new o,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof g(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new O(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof g(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(e){e.isActive()&&t.activeObservations_.push(e)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new j(t.target,t.broadcastRect())});this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),C="undefined"!=typeof WeakMap?new WeakMap:new o,M=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),i=new w(e,n,this);C.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){M.prototype[t]=function(){var e;return(e=C.get(this))[t].apply(e,arguments)}});var S,k,A,I=void 0!==s.ResizeObserver?s.ResizeObserver:M,T=n("HDdC"),B=n("XNiG"),L=((A=function(){function t(){h(this,t)}return p(t,[{key:"create",value:function(t){return void 0===I?null:new I(t)}}]),t}()).\u0275fac=function(t){return new(t||A)},A.\u0275prov=Object(i.Fb)({factory:function(){return new A},token:A,providedIn:"root"}),A),F=((k=function(){function t(e){h(this,t),this.nzResizeObserverFactory=e,this.observedElements=new Map}return p(t,[{key:"ngOnDestroy",value:function(){var t=this;this.observedElements.forEach(function(e,n){return t.cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=Object(r.e)(t);return new T.a(function(t){var i=e.observeElement(n).subscribe(t);return function(){i.unsubscribe(),e.unobserveElement(n)}})}},{key:"observeElement",value:function(t){if(this.observedElements.has(t))this.observedElements.get(t).count++;else{var e=new B.a,n=this.nzResizeObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t),this.observedElements.set(t,{observer:n,stream:e,count:1})}return this.observedElements.get(t).stream}},{key:"unobserveElement",value:function(t){this.observedElements.has(t)&&(this.observedElements.get(t).count--,this.observedElements.get(t).count||this.cleanupObserver(t))}},{key:"cleanupObserver",value:function(t){if(this.observedElements.has(t)){var e=this.observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this.observedElements.delete(t)}}}]),t}()).\u0275fac=function(t){return new(t||k)(i.Sb(L))},k.\u0275prov=Object(i.Fb)({factory:function(){return new k(Object(i.Sb)(L))},token:k,providedIn:"root"}),k),E=((S=function t(){h(this,t)}).\u0275mod=i.Hb({type:S}),S.\u0275inj=i.Gb({factory:function(t){return new(t||S)},providers:[L]}),S)},"027J":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(o.s)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},s=n("w02o"),c=n("YuPD"),u=n("tKoa"),l=n("7cv3"),h=n("DyAw");function f(t){var e,n,i=t.chart,r=t.options,o=r.xAxis,a=r.yAxis,f=r.color,p=r.columnStyle,d=r.columnWidthRatio,g=r.data.map(function(t,e){return{x:""+e,y:t}});i.data(g);var v=Object(c.b)({},t,{options:{xField:l.b,yField:l.c,widthRatio:d,interval:{style:p,color:f}}});return Object(u.c)(v),i.axis(!1),i.legend(!1),i.interaction("element-active"),Object(s.f)(((e={})[l.b]=o,e[l.c]=a,e),((n={})[l.b]={type:"cat"},n[l.c]=Object(h.a)(g,l.c),n))(t),t}function p(t){return Object(c.e)(f,s.k,s.j,s.a,Object(s.b)())(t)}var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(i.a)({},a)}},e.prototype.getSchemaAdaptor=function(){return p},e}(r.a)},"05BJ":function(t,e,n){"use strict";var i=n("mrSG"),r=n("zJSt"),o=n("7cv3"),a=n("w02o"),s=n("YuPD"),c=n("tKoa"),u=n("DyAw");function l(t){var e,n,i=t.chart,r=t.options,l=r.xAxis,h=r.yAxis,f=r.color,p=r.areaStyle,d=r.point,g=r.line,v=r.data.map(function(t,e){return{x:e,y:t}});i.data(v);var y=Object(s.b)({},t,{options:{xField:o.b,yField:o.c,area:{color:f,style:p},line:g,point:d}}),m=Object(s.b)({},y,{options:{tooltip:!1}});return Object(c.a)(y),Object(c.d)(m),Object(c.e)(m),i.axis(!1),i.legend(!1),Object(a.f)(((e={})[o.b]=l,e[o.c]=h,e),((n={})[o.b]={type:"cat"},n[o.c]=Object(u.a)(v,o.c),n))(t),t}function h(t){return Object(s.e)(l,a.k,a.j,a.a,Object(a.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(i.a)({},o.a),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"}}},e.prototype.getSchemaAdaptor=function(){return h}}(r.a)},"0Xep":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a});var i=0,r=.5,o=.5,a=.05},"1//c":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("aFU3");function r(t,e,n){var r=new i.Event(e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);for(var o=t.getParent();o;)o.emitDelegation(e,r),r.propagationPath.push(o),o=o.getParent()}},"17Tr":function(t,e,n){"use strict";var i=n("uCX8");n.d(e,"Annotation",function(){return i});var r=n("fP0w");n.d(e,"Axis",function(){return r});var o=n("/3+T");n.d(e,"Crosshair",function(){return o});var a=n("x3EW");n.d(e,"Grid",function(){return a});var s=n("5bFI");n.d(e,"Legend",function(){return s});var c=n("Ch+T");n.d(e,"Tooltip",function(){return c}),n("NmWf"),n("MeYt"),n("de35");var u=n("fFDA");n.d(e,"Slider",function(){return u.a});var l=n("3u8d");n.d(e,"Scrollbar",function(){return l.a}),n("vk7d"),n("uzHj");var h=n("1//c");n.d(e,"propagationDelegate",function(){return h.a});var f=n("u60a");n.d(e,"TOOLTIP_CSS_CONST",function(){return f})},"1MZV":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var i=new Map;function r(t,e){i.set(t,e)}function o(t){return i.get(t)}var a=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},s=function(t){var e=t.attr(),n=e.r;return{x:e.x-n,y:e.y-n,width:2*n,height:2*n}},c=n("EYNi");function u(t,e){return t&&e?{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)}:t||e}function l(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=u(e,n.getCanvasBBox())),i&&(e=u(e,i.getCanvasBBox())),e}var h=n("vIgC"),f=n("LvGN"),p=n("iTfj");function d(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,o=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),a=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),c=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!c||0===Math.sin(c)||Object(p.L)(c,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),l=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));return u=u>Math.PI/2?Math.PI-u:u,l=l>Math.PI/2?Math.PI-l:l,{xExtra:Math.cos(c/2-u)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0}}r("rect",a),r("image",a),r("circle",s),r("marker",s),r("polyline",function(t){for(var e=t.attr().points,n=[],i=[],r=0;r<e.length;r++){var o=e[r];n.push(o[0]),i.push(o[1])}var a=c.f.getBBoxByArray(n,i),s=a.x,u=a.y,h={minX:s,minY:u,maxX:s+a.width,maxY:u+a.height};return{x:(h=l(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}),r("polygon",function(t){for(var e=t.attr().points,n=[],i=[],r=0;r<e.length;r++){var o=e[r];n.push(o[0]),i.push(o[1])}return c.f.getBBoxByArray(n,i)}),r("text",function(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,o=e.fontSize,a=e.lineHeight,s=e.font;s||(s=Object(h.a)(e));var c,u=Object(h.c)(r,s);if(u){var l=e.textAlign,f=e.textBaseline,p=Object(h.b)(r,o,a),d={x:n,y:i-p};l&&("end"===l||"right"===l?d.x-=u:"center"===l&&(d.x-=u/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),c={x:d.x,y:d.y,width:u,height:p}}else c={x:n,y:i,width:0,height:0};return c}),r("path",function(t){var e=t.attr(),n=e.path,i=e.stroke?e.lineWidth:0,r=function(t,e){for(var n=[],i=[],r=[],o=0;o<t.length;o++){var a=(y=t[o]).currentPoint,s=y.params,u=y.prePoint,l=void 0;switch(y.command){case"Q":l=c.e.box(u[0],u[1],s[1],s[2],s[3],s[4]);break;case"C":l=c.b.box(u[0],u[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var h=y.arcParams;l=c.a.box(h.cx,h.cy,h.rx,h.ry,h.xRotation,h.startAngle,h.endAngle);break;default:n.push(a[0]),i.push(a[1])}l&&(y.box=l,n.push(l.x,l.x+l.width),i.push(l.y,l.y+l.height)),e&&("L"===y.command||"M"===y.command)&&y.prePoint&&y.nextPoint&&r.push(y)}n=n.filter(function(t){return!Number.isNaN(t)}),i=i.filter(function(t){return!Number.isNaN(t)});var f=Math.min.apply(null,n),p=Math.min.apply(null,i),g=Math.max.apply(null,n),v=Math.max.apply(null,i);if(0===r.length)return{x:f,y:p,width:g-f,height:v-p};for(o=0;o<r.length;o++){var y;(a=(y=r[o]).currentPoint)[0]===f?f-=d(y,e).xExtra:a[0]===g&&(g+=d(y,e).xExtra),a[1]===p?p-=d(y,e).yExtra:a[1]===v&&(v+=d(y,e).yExtra)}return{x:f,y:p,width:g-f,height:v-p}}(t.get("segments")||Object(f.e)(n),i),o=r.x,a=r.y,s={minX:o,minY:a,maxX:o+r.width,maxY:a+r.height};return{x:(s=l(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}),r("line",function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a={minX:Math.min(n,r),maxX:Math.max(n,r),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(a=l(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}}),r("ellipse",function(t){var e=t.attr(),n=e.rx,i=e.ry;return{x:e.x-n,y:e.y-i,width:2*n,height:2*i}})},"24YM":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0,e.SizeSensorId="size-sensor-id",e.SensorClassName="size-sensor-object",e.SensorTabIndex="-1"},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("D0XW"),r=n("7o/Q"),o=n("WMd4");function s(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,r=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new u(r,n))}}var u=function(){function t(e,n){h(this,t),this.delay=e,this.scheduler=n}return p(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}]),t}(),l=function(t){a(n,t);var e=c(n);function n(t,i,r){var o;return h(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return p(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new f(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(o.a.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(r.a),f=function t(e,n){h(this,t),this.time=e,this.notification=n}},"3T7b":function(t,e){},"3u8d":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("mrSG"),r=n("fIp6"),o=n("iTfj"),a=n("MeYt"),s={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.ab,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(o.s)(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(o.s)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(r.a)(t,"touchmove",e.onMouseMove),Object(r.a)(t,"touchend",e.onMouseUp),Object(r.a)(t,"touchcancel",e.onMouseUp)]:[Object(r.a)(t,"mousemove",e.onMouseMove),Object(r.a)(t,"mouseup",e.onMouseUp),Object(r.a)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach(function(t){t.remove()})}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(o.s)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(o.s)(t,"touches.0.clientY"):t.clientY,c=i?a:s,u=c-e.startPos;e.startPos=c,e.updateThumbOffset(r+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,o=n.y,a=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),c=e.validateRange(i?t.clientX-s.left-r-a/2:t.clientY-s.top-o-a/2);e.updateThumbOffset(c)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(i.d)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(o.c)(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.c)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.c)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:s})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=(void 0===i?{default:{}}:i).default,o=r.lineCap,a=r.trackColor,s=r.size,c=this.get("isHorizontal")?{x1:0+s/2,y1:s/2,x2:n-s/2,y2:s/2,lineWidth:s,stroke:a,lineCap:o}:{x1:s/2,y1:0+s/2,x2:s/2,y2:n-s/2,lineWidth:s,stroke:a,lineCap:o};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,o=(void 0===r?{default:{}}:r).default,a=o.size,s=o.lineCap,c=o.thumbColor,u=this.get("isHorizontal")?{x1:n+a/2,y1:a/2,x2:n+i-a/2,y2:a/2,lineWidth:a,stroke:c,lineCap:s,cursor:"default"}:{x1:a/2,y1:n+a/2,x2:a/2,y2:n+i-a/2,lineWidth:a,stroke:c,lineCap:s,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,o=e.size,a=this.validateRange(t);a!==n&&(this.getElementByLocalId("thumb").attr(i?{x1:a+o/2,x2:a+r-o/2}:{y1:a+o/2,y2:a+r-o/2}),this.emitOffsetChange(a))},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(o.c)(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a.a)},"46lQ":function(t,e,n){"use strict";var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a=n("WOQw"),s=n("w02o"),c=n("YuPD"),u=n("n/J0");function l(t){var e=t.chart,n=t.options,r=n.views,s=n.legend,l=n.tooltip;return Object(o.j)(r,function(t){var n=t.data,r=t.meta,s=t.axes,l=t.coordinate,h=t.annotations,f=t.geometries,p=e.createView({region:t.region});p.data(n);var d={};s&&Object(o.j)(s,function(t,e){d[e]=Object(c.k)(t,u.a)}),d=Object(c.b)({},r,d),p.scale(d),s?Object(o.j)(s,function(t,e){p.axis(e,t)}):p.axis(!1),p.coordinate(l),Object(o.j)(f,function(t){var e=Object(a.a)({chart:p,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)}),Object(o.j)(h,function(t){p.annotation()[t.type](Object(i.a)({},t))})}),s?Object(o.j)(s,function(t,n){e.legend(n,t)}):e.legend(!1),e.tooltip(l),t}function h(t){return Object(c.e)(s.a,l,s.c,s.a,s.j,s.k)(t)}var f,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="multi-view",e}return Object(i.d)(e,t),e.prototype.getSchemaAdaptor=function(){return h},e}(r.a);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(f||(f={})),Object.defineProperty(function(){},"MultiView",{get:function(){var t;return t=f.DEV,console.warn(t===f.DEV?"Plot 'multi-view' is in DEV stage, just give us issues.":t===f.BETA?"Plot 'multi-view' is in BETA stage, DO NOT use it in production env.":t===f.STABLE?"Plot 'multi-view' is in STABLE stage, import it by \"import { multi-view } from '@antv/g2'\".":"invalid Stage type."),p},enumerable:!1,configurable:!0})},"4Olw":function(t,e,n){"use strict";function i(t,e){return t.views.find(function(t){return t.id===e})}n.d(e,"a",function(){return i})},"4cbP":function(t,e){},"5HRO":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("iTfj");function r(t,e){if(!1===t)return{fields:!1};var n=Object(i.s)(t,"fields"),r=Object(i.s)(t,"formatter");return r&&!n&&(n=e),{fields:n,formatter:r}}},"5OoT":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("iTfj");function r(t,e){return Object(i.K)(t)&&Object(i.K)(e)?t===e?"100%":0===t?"\u221e":0===e?"-\u221e":(100*e/t).toFixed(2)+"%":"-"}},"5UbV":function(t,e,n){"use strict";n.d(e,"c",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"k",function(){return s}),n.d(e,"j",function(){return c}),n.d(e,"b",function(){return u}),n.d(e,"g",function(){return l}),n.d(e,"e",function(){return h}),n.d(e,"i",function(){return f}),n.d(e,"d",function(){return p}),n.d(e,"m",function(){return d}),n.d(e,"l",function(){return g}),n.d(e,"f",function(){return v});var i=n("iTfj");function r(t){var e=0,n=0,r=0,o=0;return Object(i.K)(t)?e=n=r=o=t:Object(i.B)(t)&&(e=t[0],r=Object(i.I)(t[1])?t[0]:t[1],o=Object(i.I)(t[2])?t[0]:t[2],n=Object(i.I)(t[3])?r:t[3]),[e,r,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function c(t){var e=t.map(function(t){return t.x}),n=t.map(function(t){return t.y}),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function u(t,e,n,i){var r=t+n,o=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function l(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var f=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function p(t){var e,n,r,o,a,s=t.getClip(),c=s&&s.getBBox();if(t.isGroup()){var l=1/0,h=-1/0,f=1/0,d=-1/0,g=t.getChildren();g.length>0?Object(i.j)(g,function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=p(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),o=t.applyToMatrix([e.maxX,e.maxY,1]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),c=Math.min(n[1],i[1],r[1],o[1]),u=Math.max(n[1],i[1],r[1],o[1]);a<l&&(l=a),s>h&&(h=s),c<f&&(f=c),u>d&&(d=u)}}):(l=0,h=0,f=0,d=0),e=u(l,f,h-l,d-f)}else e=t.getBBox();return c?(n=e,r=c,u(o=Math.max(n.minX,r.minX),a=Math.max(n.minY,r.minY),Math.min(n.maxX,r.maxX)-o,Math.min(n.maxY,r.maxY)-a)):e}function d(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function g(t){return t+"px"}function v(t,e,n,i){var r,o,a,s,c=i/(a=(o=e).x-(r=t).x,s=o.y-r.y,Math.sqrt(a*a+s*s)),u=0;return"start"===n?u=0-c:"end"===n&&(u=1+c),{x:l(t.x,e.x,u),y:l(t.y,e.y,u)}}},"5bFI":function(t,e,n){"use strict";n.r(e),n.d(e,"Category",function(){return f}),n.d(e,"Continuous",function(){return p}),n.d(e,"Base",function(){return h});var i=n("mrSG"),r=n("iTfj"),o=n("BgvD"),a=n("jqgP"),s=n("l3hu"),c=n("L16w"),u=n("MeYt"),l=n("5UbV"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,o=e.height;return n&&(r=Math.min(r,n)),i&&(o=Math.min(o,i)),Object(l.b)(e.minX,e.minY,r,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=Object(l.c)(e.padding),o=Object(i.a)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i.a)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(l.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(u.a),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},defaultCfg:{title:{spacing:5,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:c.a.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},itemName:{spacing:16,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:c.a.uncheckedColor},markerStyle:{fill:c.a.uncheckedColor,stroke:c.a.uncheckedColor}},inactive:{nameStyle:{fill:c.a.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(r.Y)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems().indexOf(t),o=this.createOffScreenGroup(),a=this.drawItem(t,r,this.getItemHeight(),o);this.updateElements(a,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(r.j)(e,function(e,i){t[i]&&n.push(i)}),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(r.j)(n,function(n){e.setItemState(n,t,!1)})},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(r.l)(n,function(n){return e.hasState(n,t)})},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(r.j)(t,function(t){t.id||(t.id=t.name)})},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),s=this.get("itemSpacing"),c=this.get("itemMarginBottom"),u=this.get("currentPoint"),l=u.x,h=u.y,f=this.get("layout"),p=this.get("items"),d=!1,g=0,v=this.get("maxWidth"),y=this.get("maxHeight");Object(r.j)(p,function(t,n){var r=e.drawItem(t,n,o,i),p=r.getBBox(),m=a||p.width;m>g&&(g=m),"horizontal"===f?(v&&v<u.x+m-l&&(d=!0,u.x=l,u.y+=o+c),e.moveElementTo(r,u),u.x+=m+s):(y&&y<u.y+o+c-h&&(d=!0,u.x+=g+s,u.y=h,g=0),e.moveElementTo(r,u),u.y+=o+c)}),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=l,this.startY=h,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=this.get("itemName");e&&(t=e.style.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(i.a)(Object(i.a)(Object(i.a)({x:0,y:o/2},e.style),{symbol:Object(r.s)(n.marker,"symbol","circle")}),Object(r.s)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),c=s.getBBox();s.attr("x",c.width/2);var u=s.attr(),l=u.fill;return u.stroke&&s.set("isStroke",!0),l&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,a,s){var c=n.formatter,u=Object(i.a)({x:a,y:o/2,text:c?c(r[e],r,s):r[e]},n.style);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawItem=function(t,e,n,a){var s="item-"+t.id,c=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(c,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),l=this.get("marker"),h=this.get("itemName"),f=this.get("itemValue"),p=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;if(l&&(g=this.drawMarker(u,l,t,n).getBBox().maxX+l.spacing),h){var v=this.drawItemText(u,"name",h,t,n,g,e);d&&Object(o.a)(!0,v,Object(r.c)(d-g,0,d)),g=v.getBBox().maxX+h.spacing}if(f){var y=this.drawItemText(u,"value",f,t,n,g,e);d&&(f.alignRight?(y.attr({textAlign:"right",x:d}),Object(o.a)(!0,y,Object(r.c)(d-g,0,d),"head")):Object(o.a)(!0,y,Object(r.c)(d-g,0,d)))}if(p){var m=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(i.a)({x:0,y:0,width:m.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,u),u},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,o=this.startY,a=this.get("layout"),s=e.findAll(function(t){return"legend-item"===t.get("name")}),c=this.get("maxWidth"),u=this.get("maxHeight"),l=this.get("itemWidth"),h=this.get("itemSpacing"),f=this.getItemHeight(),p=this.drawNavigation(t,a,"00/00",12),d=p.getBBox(),g={x:i,y:o},v=1,y=0,m=0,b=0;if("horizontal"===a)this.pageHeight=f,Object(r.j)(s,function(t){var e=t.getBBox(),r=l||e.width;(y&&y<g.x+r+h||c<g.x+r+h+d.width)&&(1===v&&(n.pageWidth=y=g.x+h,n.moveElementTo(p,{x:c-h-d.width-d.minX,y:g.y+f/2-d.height/2-d.minY})),v+=1,g.x=i,g.y+=f),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:r+h,height:f}}),g.x+=r+h});else{var x=this.get("itemMarginBottom");Object(r.j)(s,function(t){var e=t.getBBox();e.width>m&&(m=e.width)}),b=m,m+=h,c&&(m=Math.min(c,m),b=Math.min(c,b)),this.pageWidth=m,this.pageHeight=u-Math.max(d.height,f+x);var O=Math.floor(this.pageHeight/(f+x));Object(r.j)(s,function(t,e){0!==e&&e%O==0&&(v+=1,g.x+=m,g.y=o),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:m,height:f}}),g.y+=f+x}),this.totalPagesCnt=v,this.moveElementTo(p,{x:i+b/2-d.width/2-d.minX,y:u-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(p),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,i){var r={x:0,y:0},o=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),a=this.drawArrow(o,r,"navigation-arrow-left","horizontal"===e?"up":"left",i);a.on("click",this.onNavigationBack);var s=a.getBBox();r.x+=s.width+2;var c=this.addShape(o,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:r.x,y:r.y+i/2,text:n,fontSize:12,fill:"#ccc",textBaseline:"middle"}}).getBBox();return r.x+=c.width+2,this.drawArrow(o,r,"navigation-arrow-right","horizontal"===e?"down":"right",i).on("click",this.onNavigationAfter),o},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,n=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),i=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),r=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),o=n.getBBox();n.attr("text",e);var a=n.getBBox();n.attr("x",n.attr("x")-(a.width-o.width)/2),i.attr("opacity",1===this.currentPageIndex?.45:1),i.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),r.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),r.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,i,r){var o=e.x,s=e.y,c={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:{path:[["M",o+r/2,s],["L",o,s+r],["L",o+r,s+r],["Z"]],fill:"#000",cursor:"pointer"}});return u.attr("matrix",Object(a.e)({x:o+r/2,y:s+r/2},c[i])),u},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,i="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return Object(a.f)(i)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),i=this.get("itemStates");Object(r.j)(n,function(e){var n=e.get("name").split("-")[2],r=Object(s.a)(t,n,i);r&&(e.attr(r),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))})}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(h),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:c.a.textColor,textBaseline:"middle",fontFamily:c.a.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:c.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue()[1];i<n&&(i=n),e.setValue([n,i])}),t.on("legend-handler-max:drag",function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue()[0];i>n&&(i=n),e.setValue([i,n])})},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",function(t){n={x:t.x,y:t.y}}),t.on("legend-track:drag",function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),c=r-i;c<0?e.setValue(o[0]+c>s.min?[o[0]+c,o[1]+c]:[s.min,s.min+a]):c>0&&e.setValue(c>0&&o[1]+c<s.max?[o[0]+c,o[1]+c]:[s.max-a,s.max]),n={x:t.x,y:t.y}}}),t.on("legend-track:dragend",function(t){n=null})},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,o=n.align,a=this.get(t),s=this.getLabelAlignAttrs(t,o);this.addShape(e,{type:"text",id:this.getElementId("label-"+t),name:"legend-label-"+t,attrs:Object(i.a)(Object(i.a)({x:0,y:0,text:a},r),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",i="middle";return this.isVertical()?(n="start",i="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(i="top",n="min"===t?"start":"end"):(n="start",i="middle"),{textAlign:n,textBaseline:i}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),o=r.size,a=r.defaultLength,s=r.type,c=this.isVertical(),u=n,l=i;u||(u=c?o:a),l||(l=c?a:o);var h=[];return"color"===s?(h.push(["M",t,e]),h.push(["L",t+u,e]),h.push(["L",t+u,e+l]),h.push(["L",t,e+l]),h.push(["Z"])):(h.push(["M",t+u,e]),h.push(["L",t+u,e+l]),h.push(["L",t,e+l]),h.push(["Z"])),h},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(i.a)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++)e+=" "+i/(n-1)+":"+t[i];return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return Object(r.e)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,o=this.getCurrentValue(),a=o[0],s=o[1],c=this.getRailBBox(t),u=this.getPointByValue(a,t),l=this.getPointByValue(s,t);return this.isVertical()?(e=c.minX,n=u.y,i=c.width,r=l.y-u.y):(e=u.x,n=c.minY,i=l.x-u.x,r=c.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return Object(r.Y)({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),o=this.getClipTrackAttrs(t);r?r.attr(o):i.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=(t-i)/(n.max-i),o=this.getRailBBox(e),a={x:0,y:0};return this.isVertical()?(a.x=o.minX+o.width/2,a.y=Object(l.g)(o.minY,o.maxY,r)):(a.x=Object(l.g)(o.minX,o.maxX,r),a.y=o.minY+o.height/2),a},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,o=i.max,a=this.getRailCanvasBBox(),s=this.isVertical(),c=this.get("step");n=s?(e-a.minY)/a.height:(t-a.minX)/a.width;var u=Object(l.g)(r,o,n);return c&&(u=r+Math.round((u-r)/c)*c),u>o&&(u=o),u<r&&(u=r),u},e.prototype.getCurrentValue=function(){var t=this.get("value");return t||(t=[this.get("min"),this.get("max")]),t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[1];this.resetHandler(t,"min",e[0]),this.resetHandler(t,"max",n)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,o=e.x,a=e.y,s=1.4*r,c=r/2,u=r/6;if(n){var l=o+.4*s;i.push(["M",o,a]),i.push(["L",l,a+c]),i.push(["L",o+s,a+c]),i.push(["L",o+s,a-c]),i.push(["L",l,a-c]),i.push(["Z"]),i.push(["M",l,a+u]),i.push(["L",o+s-2,a+u]),i.push(["M",l,a-u]),i.push(["L",o+s-2,a-u])}else{var h=a+.4*s;i.push(["M",o,a]),i.push(["L",o-c,h]),i.push(["L",o-c,a+s]),i.push(["L",o+c,a+s]),i.push(["L",o+c,h]),i.push(["Z"]),i.push(["M",o-u,h]),i.push(["L",o-u,a+s-2]),i.push(["M",o+u,h]),i.push(["L",o+u,a+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,r),s=this.getElementId("handler-"+e),c=t.findById(s),u=this.isVertical();c?c.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(i.a)(Object(i.a)({path:a},o.style),{cursor:u?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var o=this.isVertical()?"height":"width",a=this.get("label"),s=a.align,c=a.spacing,u=this.get("max"+Object(r.qb)(o));if(u){var l=("rail"===s?n[o]+t[o]+e[o]+2*c:n[o])-u;l>0&&this.changeRailLength(i,o,n[o]-l)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),u=e.getBBox(),l=s.height;this.fitRailLength(c,u,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:i.x,y:i.y+l/2}),this.changeRailPosition(n,i.x+c.width+a,i.y),e.attr({x:i.x+c.width+s.width+2*a,y:i.y+l/2})):"top"===o?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+a)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+a}),e.attr({x:i.x+s.width,y:i.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),u=e.getBBox();if(this.fitRailLength(c,u,s,n),s=n.getBBox(),"rail"===o)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+a),e.attr({x:i.x,y:i.y+c.height+s.height+2*a});else if("right"===o)t.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+a,y:i.y+s.height});else{var l=Math.max(c.width,u.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+l+a,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(h)},"5eLp":function(t,e,n){"use strict";var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.a=i},"5kt6":function(t,e,n){"use strict";n.d(e,"e",function(){return i}),n.d(e,"d",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"f",function(){return c});var i="range",r="type",o="percent",a="#f0f0f0",s="indicator-view",c="range-view"},"5z4m":function(t,e,n){"use strict";var i=n("mrSG"),r=n("aFU3"),o=n("iTfj"),a=n("aN7R"),s=n("c0lT"),c=n("APlK"),u=n("IvmH"),l=n("c+wO"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(l.b)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){Object(s.b)(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(c.a)(this,t),this.createPath(t),e.length&&Object(s.a)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(o.j)(e||n,function(t,e){u.b[e]&&i.setAttribute(u.b[e],t)}),Object(c.c)(this)},e}(r.AbstractGroup);e.a=h},"6JdA":function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"c",function(){return R}),n.d(e,"d",function(){return _}),n.d(e,"a",function(){return r});var i={};n.r(i),n.d(i,"create",function(){return a}),n.d(i,"fromMat4",function(){return s}),n.d(i,"clone",function(){return c}),n.d(i,"copy",function(){return u}),n.d(i,"fromValues",function(){return l}),n.d(i,"set",function(){return h}),n.d(i,"identity",function(){return f}),n.d(i,"transpose",function(){return p}),n.d(i,"invert",function(){return d}),n.d(i,"adjoint",function(){return g}),n.d(i,"determinant",function(){return v}),n.d(i,"multiply",function(){return y}),n.d(i,"translate",function(){return m}),n.d(i,"rotate",function(){return b}),n.d(i,"scale",function(){return x}),n.d(i,"fromTranslation",function(){return O}),n.d(i,"fromRotation",function(){return j}),n.d(i,"fromScaling",function(){return w}),n.d(i,"fromMat2d",function(){return C}),n.d(i,"fromQuat",function(){return M}),n.d(i,"normalFromMat4",function(){return S}),n.d(i,"projection",function(){return k}),n.d(i,"str",function(){return A}),n.d(i,"frob",function(){return I}),n.d(i,"add",function(){return T}),n.d(i,"subtract",function(){return B}),n.d(i,"multiplyScalar",function(){return L}),n.d(i,"multiplyScalarAndAdd",function(){return F}),n.d(i,"exactEquals",function(){return E}),n.d(i,"equals",function(){return P}),n.d(i,"mul",function(){return D}),n.d(i,"sub",function(){return z});var r={};n.r(r),n.d(r,"leftTranslate",function(){return Y}),n.d(r,"leftRotate",function(){return G}),n.d(r,"leftScale",function(){return N}),n.d(r,"transform",function(){return X}),n.d(r,"direction",function(){return V}),n.d(r,"angleTo",function(){return H}),n.d(r,"vertical",function(){return W});var o=n("yU0y");function a(){var t=new o.a(9);return o.a!=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 s(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 c(t){var e=new o.a(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 u(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 l(t,e,n,i,r,a,s,c,u){var l=new o.a(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=i,l[4]=r,l[5]=a,l[6]=s,l[7]=c,l[8]=u,l}function h(t,e,n,i,r,o,a,s,c,u){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=u,t}function f(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 p(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function d(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8],h=l*a-s*u,f=-l*o+s*c,p=u*o-a*c,d=n*h+i*f+r*p;return d?(t[0]=h*(d=1/d),t[1]=(-l*i+r*u)*d,t[2]=(s*i-r*a)*d,t[3]=f*d,t[4]=(l*n-r*c)*d,t[5]=(-s*n+r*o)*d,t[6]=p*d,t[7]=(-u*n+i*c)*d,t[8]=(a*n-i*o)*d,t):null}function g(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=e[8];return t[0]=a*l-s*u,t[1]=r*u-i*l,t[2]=i*s-r*a,t[3]=s*c-o*l,t[4]=n*l-r*c,t[5]=r*o-n*s,t[6]=o*u-a*c,t[7]=i*c-n*u,t[8]=n*a-i*o,t}function v(t){var e=t[3],n=t[4],i=t[5],r=t[6],o=t[7],a=t[8];return t[0]*(a*n-i*o)+t[1]*(-a*e+i*r)+t[2]*(o*e-n*r)}function y(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=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],b=n[7],x=n[8];return t[0]=f*i+p*a+d*u,t[1]=f*r+p*s+d*l,t[2]=f*o+p*c+d*h,t[3]=g*i+v*a+y*u,t[4]=g*r+v*s+y*l,t[5]=g*o+v*c+y*h,t[6]=m*i+b*a+x*u,t[7]=m*r+b*s+x*l,t[8]=m*o+b*c+x*h,t}function m(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],h=e[8],f=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=f*i+p*a+u,t[7]=f*r+p*s+l,t[8]=f*o+p*c+h,t}function b(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],u=e[6],l=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*i+f*a,t[1]=p*r+f*s,t[2]=p*o+f*c,t[3]=p*a-f*i,t[4]=p*s-f*r,t[5]=p*c-f*o,t[6]=u,t[7]=l,t[8]=h,t}function x(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function O(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 j(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(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 C(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 M(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,c=r+r,u=n*a,l=i*a,h=i*s,f=r*a,p=r*s,d=r*c,g=o*a,v=o*s,y=o*c;return t[0]=1-h-d,t[3]=l-y,t[6]=f+v,t[1]=l+y,t[4]=1-u-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-u-h,t}function S(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],u=e[7],l=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-i*a,b=n*c-r*a,x=n*u-o*a,O=i*c-r*s,j=i*u-o*s,w=r*u-o*c,C=l*g-h*d,M=l*v-f*d,S=l*y-p*d,k=h*v-f*g,A=h*y-p*g,I=f*y-p*v,T=m*I-b*A+x*k+O*S-j*M+w*C;return T?(t[0]=(s*I-c*A+u*k)*(T=1/T),t[1]=(c*S-a*I-u*M)*T,t[2]=(a*A-s*S+u*C)*T,t[3]=(r*A-i*I-o*k)*T,t[4]=(n*I-r*S+o*M)*T,t[5]=(i*S-n*A-o*C)*T,t[6]=(g*w-v*j+y*O)*T,t[7]=(v*x-d*w-y*b)*T,t[8]=(d*j-g*x+y*m)*T,t):null}function k(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 I(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function T(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 B(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 L(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 F(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function E(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 P(t,e){var n=t[0],i=t[1],r=t[2],a=t[3],s=t[4],c=t[5],u=t[6],l=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-f)<=o.b*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=o.b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(r-d)<=o.b*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-g)<=o.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=o.b*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=o.b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-m)<=o.b*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(l-b)<=o.b*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(h-x)<=o.b*Math.max(1,Math.abs(h),Math.abs(x))}var D=y,z=B,R=n("ZxFD"),_=n("n+fv");function Y(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromTranslation(r,n),i.multiply(t,r,e)}function G(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromRotation(r,n),i.multiply(t,r,e)}function N(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromScaling(r,n),i.multiply(t,r,e)}function X(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,o=e.length;r<o;r++){var a=e[r];switch(a[0]){case"t":Y(n,n,[a[1],a[2]]);break;case"s":N(n,n,[a[1],a[2]]);break;case"r":G(n,n,a[1]);break;case"m":i.multiply(n,a[1],n)}}return n}function V(t,e){return t[0]*e[1]-e[0]*t[1]}function H(t,e,n){var i=R.angle(t,e),r=V(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i}function W(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},"6UX8":function(t,e,n){"use strict";var i=n("iTfj"),r=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function u(t){return"#"+f(t[0])+f(t[1])+f(t[2])}var l,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},f=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;l||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),l=e),l.style.color=t;var n=document.defaultView.getComputedStyle(l,"").getPropertyValue("color");return u(r.exec(n)[1].split(/\s*,\s*/).map(function(t){return Number(t)}))};e.a={rgb2arr:h,gradient:function(t){var e=Object(i.O)(t)?t.split("-"):t,n=Object(i.U)(e,function(t){return h(-1===t.indexOf("#")?p(t):t)});return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),o=i*n-r,a=t[r],s=r===i?a:t[r+1];return u([c(a,s,o,0),c(a,s,o,1),c(a,s,o,2)])}(n,t)}},toRGB:Object(i.X)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0])n=(r=o.exec(t))[2],e="linear-gradient("+(+r[1]+90)+"deg, ";else if("r"===t[0]){var r;e="radial-gradient(",n=(r=a.exec(t))[4]}var c=n.match(s);return Object(i.j)(c,function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==c.length-1&&(e+=", ")}),e+=")"}return t}}},"7+4w":function(t,e,n){"use strict";var i=n("mrSG"),r=n("YuPD");!function(t){function e(e,n,i,o){var a=t.call(this,e,Object(r.b)({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=i,a}Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(n("zJSt").a)},"7IPS":function(t,e,n){"use strict";e.a=function(t,e,n,i,r){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(r-n)/t.value;++s<c;)(o=a[s]).x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*u}},"7ZbV":function(t,e,n){"use strict";n.d(e,"a",function(){return x});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("tKoa");function u(t){return"vertical"!==t}function l(t,e,n){var i,r=e[0],o=e[1],a=r.autoPadding,s=o.autoPadding,c=t.__axisPosition,l=c.layout,h=c.position;u(l)&&"top"===h&&(r.autoPadding=n.instance(a.top,0,a.bottom,a.left),o.autoPadding=n.instance(s.top,a.left,s.bottom,0)),u(l)&&"bottom"===h&&(r.autoPadding=n.instance(a.top,a.right/2+5,a.bottom,a.left),o.autoPadding=n.instance(s.top,s.right,s.bottom,a.right/2+5)),u(l)||"bottom"!==h||(r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,i=a.left>=s.left?a.left:s.left),o.autoPadding=n.instance(a.bottom/2+5,s.right,s.bottom,i)),u(l)||"top"!==h||(r.autoPadding=n.instance(a.top,a.right,0,i=a.left>=s.left?a.left:s.left),o.autoPadding=n.instance(0,s.right,a.top,i))}function h(t){var e,n,i=t.chart,r=t.options,s=r.xField,l=r.yField,h=r.color,f=r.barStyle,p=r.widthRatio,d=r.legend,g=r.layout,v=function(t,e,n){var i=[];return e.forEach(function(e){n.forEach(function(n){var r,o=((r={})[t]=n[t],r.type=e,r[e]=n[e],r);i.push(o)})}),i}(s,l,r.data),y=Object.values(Object(a.v)(v,"type"));i.scale({type:{sync:!0}}),d?i.legend("type",d):!1===d&&i.legend(!1),u(g)?((e=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().transpose()):(e=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:"first-axes-view"}),(n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y").rotate(0*Math.PI)),e.data(Object(a.s)(y,[0],[]));var m=Object(o.b)({},t,{chart:e,options:{widthRatio:p,xField:s,yField:l[0],seriesField:"type",interval:{color:h,style:f}}});Object(c.c)(m),n.data(Object(a.s)(y,[1],[]));var b=Object(o.b)({},t,{chart:n,options:{xField:s,yField:l[1],seriesField:"type",widthRatio:p,interval:{color:h,style:f}}});return Object(c.c)(b),t}function f(t){var e,n,i=t.options,r=t.chart,a=i.xAxis,c=i.yAxis,u=i.xField,l=i.yField,h=Object(o.d)(r,"first-axes-view"),f=Object(o.d)(r,"second-axes-view");return Object(s.f)(((e={})[u]=a,e[l[0]]=c[l[0]],e))(Object(o.b)({},t,{chart:h})),Object(s.f)(((n={})[u]=a,n[l[1]]=c[l[1]],n))(Object(o.b)({},t,{chart:f})),t}function p(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,c=n.yField,l=n.layout,h=Object(o.d)(e,"first-axes-view"),f=Object(o.d)(e,"second-axes-view");return f.axis(s,!1),h.axis(s,!1!==r&&Object(i.a)({position:u(l)?"top":"bottom"},r)),!1===a?(h.axis(c[0],!1),f.axis(c[1],!1)):(h.axis(c[0],a[c[0]]),f.axis(c[1],a[c[1]])),e.__axisPosition={position:h.getOptions().axes[s].position,layout:l},t}function d(t){var e=t.chart;return Object(s.c)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(s.c)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function g(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return Object(s.e)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view"),options:{yAxis:r[i[0]]}})),Object(s.e)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view"),options:{yAxis:r[i[1]]}})),t}function v(t){var e=t.chart;return Object(s.j)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(s.j)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function y(t){var e=t.chart;return Object(s.a)(Object(o.b)({},t,{chart:Object(o.d)(e,"first-axes-view")})),Object(s.a)(Object(o.b)({},t,{chart:Object(o.d)(e,"second-axes-view")})),t}function m(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o.d)(e,"first-axes-view"),c=Object(o.d)(e,"second-axes-view"),u=Object(o.c)(s,"interval"),l=Object(o.c)(c,"interval");if(r){var h=r.callback,f=Object(i.f)(r,["callback"]);u.label({fields:[a[0]],callback:h,cfg:Object(o.o)(f)}),l.label({fields:[a[1]],callback:h,cfg:Object(o.o)(f)})}else u.label(!1),l.label(!1);return t}function b(t){return Object(o.e)(h,f,p,g,v,m,s.k,d,y)(t)}var x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{syncViewPadding:l})},e.prototype.getSchemaAdaptor=function(){return b},e}(r.a)},"7cv3":function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});var i=n("iTfj"),r="x",o="y",a={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.s)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}}},"7s0d":function(t,e,n){"use strict";var i=n("FH2j");n.d(e,"getAdjust",function(){return i.getAdjust}),n("Qci9");var r=n("lOPJ"),o=n("KavR"),a=n("8FoI"),s=n("96lr");n("WbAE"),Object(i.registerAdjust)("Dodge",r.a),Object(i.registerAdjust)("Jitter",o.a),Object(i.registerAdjust)("Stack",a.a),Object(i.registerAdjust)("Symmetric",s.a)},"8FoI":function(t,e,n){"use strict";var i=n("FqlA"),r=n("iTfj"),o=n("Qci9"),a=r.a,s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=e.height,o=void 0===r?NaN:r,a=e.size,s=void 0===a?10:a,c=e.reverseOrder,u=void 0!==c&&c;return n.adjustNames=void 0===i?["y"]:i,n.height=o,n.size=s,n.reverseOrder=u,n}return Object(i.b)(e,t),e.prototype.process=function(t){var e=this.reverseOrder,n=this.yField?this.processStack(t):this.processOneDimStack(t);return e?this.reverse(n):n},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,o=this.reverseOrder?this.reverse(t):t,s=new a,c=new a;return o.map(function(t){return t.map(function(t){var o,a=r.s(t,e,0),u=r.s(t,[n]),l=a.toString();if(u=r.B(u)?u[1]:u,!r.I(u)){var h=u>=0?s:c;h.has(l)||h.set(l,0);var f=h.get(l),p=u+f;return h.set(l,p),Object(i.a)(Object(i.a)({},t),((o={})[n]=[f,p],o))}return t})})},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,o=this.reverseOrder?this.reverse(t):t,s=new a;return o.map(function(t){return t.map(function(t){var o,a=t[n],c=2*e.size/r;s.has(a)||s.set(a,c/2);var u=s.get(a);return s.set(a,u+c),Object(i.a)(Object(i.a)({},t),((o={}).y=u,o))})})},e}(o.a);e.a=s},"8vsG":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return tt});var i={};n.r(i),n.d(i,"default",function(){return P}),n.d(i,"assign",function(){return g}),n.d(i,"format",function(){return F}),n.d(i,"parse",function(){return E}),n.d(i,"defaultI18n",function(){return b}),n.d(i,"setGlobalDateI18n",function(){return O}),n.d(i,"setGlobalDateMasks",function(){return L});var r=n("iTfj"),o={};function a(t,e){o[t]=e}var s=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r.U)(this.ticks,function(e,n){return Object(r.M)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}})},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r.I)(i)||!Object(r.H)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r.b)(this,this.__cfg__),this.setDomain(),Object(r.F)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r.O)(t)){var n=o[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r.H)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(r.y)(this.range)},t.prototype.rangeMax=function(){return Object(r.S)(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(r.K)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=n("mrSG"),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(c.d)(e,t),e.prototype.translate=function(t){var e=Object(r.A)(this.values,t);return-1===e?Object(r.K)(t)?t:NaN:e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var o=e;return Object(r.K)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,Object(c.g)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(r.I)(this.getConfig("min"))&&(this.min=0),Object(r.I)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}},e}(s),l=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,h="[^\\s]+",f=/\[([^]*?)\]/gm;function p(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var d=function(t){return function(e,n){var i=n[t].map(function(t){return t.toLowerCase()}).indexOf(e.toLowerCase());return i>-1?i:null}};function g(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var o=r[i];for(var a in o)t[a]=o[a]}return t}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],m=p(y,3),b={dayNamesShort:p(v,3),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?1:0)*t%10]}},x=g({},b),O=function(t){return x=g(x,t)},j=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},w=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},C={D:function(t){return String(t.getDate())},DD:function(t){return w(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return w(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return w(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 w(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return w(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return w(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return w(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return w(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return w(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return w(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return w(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+w(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+w(Math.floor(Math.abs(e)/60),2)+":"+w(Math.abs(e)%60,2)}},M=function(t){return+t-1},S=[null,"[1-9]\\d?"],k=[null,h],A=["isPm",h,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],I=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],T={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+h,function(t){return parseInt(t,10)}],M:["month","[1-9]\\d?",M],MM:["month","\\d\\d",M],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:S,dd:S,ddd:k,dddd:k,MMM:["month",h,d("monthNamesShort")],MMMM:["month",h,d("monthNames")],a:A,A:A,ZZ:I,Z:I},B={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",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},L=function(t){return g(B,t)},F=function(t,e,n){if(void 0===e&&(e=B.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=B[e]||e).replace(f,function(t,e){return i.push(e),"@@@"});var r=g(g({},x),n);return(e=e.replace(l,function(e){return C[e](t,r)})).replace(/@@@/g,function(){return i.shift()})};function E(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=B[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},r=[],o=[],a=e.replace(f,function(t,e){return o.push(j(e)),"@@@"}),s={},c={};a=j(a).replace(l,function(t){var e=T[t],n=e[0],i=e[1],o=e[3];if(s[n])throw new Error("Invalid format. "+n+" specified twice in format");return s[n]=!0,o&&(c[o]=!0),r.push(e),"("+i+")"}),Object.keys(c).forEach(function(t){if(!s[t])throw new Error("Invalid format. "+t+" is required in specified format")}),a=a.replace(/@@@/g,function(){return o.shift()});var u=t.match(new RegExp(a,"i"));if(!u)return null;for(var h=g(g({},x),n),p=1;p<u.length;p++){var d=r[p-1],v=d[0],y=d[2],m=y?y(u[p],h):+u[p];if(null==m)return null;i[v]=m}1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0);for(var b=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond),O=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],w=(p=0,O.length);p<w;p++)if(s[O[p][0]]&&i[O[p][0]]!==b[O[p][1]]())return null;return null==i.timezoneOffset?b:new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond))}var P={format:F,parse:E,defaultI18n:b,setGlobalDateI18n:O,setGlobalDateMasks:L};function D(t,e){return(i.format||P.format)(t,e)}function z(t){return Object(r.O)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r.D)(t)&&(t=t.getTime()),t}var R=36e5,_=24*R,Y=31*_,G=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",R],["HH",6*R],["HH",12*R],["YYYY-MM-DD",_],["YYYY-MM-DD",4*_],["YYYY-WW",7*_],["YYYY-MM",Y],["YYYY-MM",4*Y],["YYYY-MM",6*Y],["YYYY",380*_]],N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(c.d)(e,t),e.prototype.translate=function(t){t=z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r.K)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return r?r(i,e):D(i,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(r.j)(e,function(t,n){e[n]=z(t)}),e.sort(function(t,e){return t-e}),t.prototype.setDomain.call(this)},e}(u),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(c.d)(e,t),e.prototype.scale=function(t){if(Object(r.I)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r.y)(e),i=Object(r.S)(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),Object(r.I)(this.minLimit)||(this.min=n),Object(r.I)(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r.t)(this.values),e=t.min,n=t.max;Object(r.I)(this.min)&&(this.min=e),Object(r.I)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r.l)(n,function(t){return t>=e.min&&t<=e.max})),n},e.prototype.getScalePercent=function(t){var e=this.min;return(t-e)/(this.max-e)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(s),V=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(c.d)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(X);function H(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function W(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function $(t,e,n){Object(r.I)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r.j)(t,function(t){t>0&&t<i&&(i=t)}),i===n&&(i=n/e),i>1&&(i=1),i}var q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(c.d)(e,t),e.prototype.invert=function(t){var e,n=this.base,i=W(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;var s=1/(i-(e=W(n,a/n)))*o;if(t<s)return t/s*a}else e=W(n,this.min);return Math.pow(n,(t-r)/o*(i-e)+e)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=$(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i=this.base,r=this.positiveMin;return r&&(n=1*r/i),t<r?t/r/(W(i,e)-W(i,n)):(W(i,t)-W(i,n))/(W(i,e)-W(i,n))},e}(X),U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(c.d)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=H(n,this.max),r=H(n,this.min),o=e*(i-r)+r,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent;return(H(i,t)-H(i,n))/(H(i,e)-H(i,n))},e}(X),Z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(c.d)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):D(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r.O)(n)||Object(r.D)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return z(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(r.I)(e)&&Object(r.K)(e)||(this.min=this.translate(this.min)),Object(r.I)(n)&&Object(r.K)(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],o=1/0,a=o,s=0;Object(r.j)(t,function(t){var e=z(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),s<e&&(s=e),i.push(e)}),t.length>1&&(this.minTickInterval=a-o),Object(r.I)(e)&&(this.min=o),Object(r.I)(n)&&(this.max=s)}},e}(V),K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(c.d)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),o=Math.floor(i*(n-1));if(o>=n-1)return Object(r.S)(e);if(o<0)return Object(r.y)(e);var a=e[o],s=o/(n-1);return a+(i-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(r.S)(e)!==this.max&&e.push(this.max),Object(r.y)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(r.y)(e))return 0;if(t>Object(r.S)(e))return 1;var n=0;return Object(r.j)(e,function(e,i){if(!(t>=e))return!1;n=i}),n/(e.length-1)},e}(X),J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(c.d)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(K),Q={};function tt(t){return Q[t]}function et(t,e){if(tt(t))throw new Error("type '"+t+"' existed.");Q[t]=e}var nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(c.d)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r.K)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(s),it=[1,5,2,2.5,4,3],rt=100*Number.EPSILON;function ot(t,e,n,i,o,a){var s=Object(r.gb)(e),c=Object(r.A)(e,t),u=0,l=function(t,e){return(t%e+e)%e}(i,a);return(l<rt||a-l<rt)&&i<=0&&o>=0&&(u=1),1-c/(s-1)-n+u}function at(t,e,n){var i=Object(r.gb)(e);return 1-Object(r.A)(e,t)/(i-1)-n+1}function st(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function ct(t,e){return t>=e?2-(t-1)/(e-1):1}function ut(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function lt(t,e,n){var i=e-t;return n>i?1-Math.pow((n-i)/2,2)/Math.pow(.1*i,2):1}function ht(t,e,n,i,o,a){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===o&&(o=it),void 0===a&&(a=[.25,.2,.5,.05]),"number"!=typeof t||"number"!=typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};for(var s={score:-2,lmin:0,lmax:0,lstep:0},c=1;c<1/0;){for(var u=0,l=o;u<l.length;u++){var h=l[u],f=at(h,o,c);if(Number.isNaN(f))throw new Error("NaN");if(a[0]*f+a[1]+a[2]+a[3]<s.score){c=1/0;break}for(var p=2;p<1/0;){var d=ct(p,n);if(a[0]*f+a[1]+a[2]*d+a[3]<s.score)break;for(var g=Math.ceil(Math.log10((e-t)/(p+1)/c/h));g<1/0;){var v=c*h*Math.pow(10,g),y=lt(t,e,v*(p-1));if(a[0]*f+a[1]*y+a[2]*d+a[3]<s.score)break;var m=Math.floor(e/v)*c-(p-1)*c,b=Math.ceil(t/v)*c;if(m>b)g+=1;else{for(var x=m;x<=b;x+=1){var O=x*(v/c),j=O+v*(p-1),w=v,C=ot(h,o,c,O,j,w),M=ut(t,e,O,j),S=st(p,n,t,e,O,j),k=a[0]*C+a[1]*M+a[2]*S+1*a[3];k>s.score&&(!i||O<=t&&j>=e)&&(s.lmin=O,s.lmax=j,s.lstep=w,s.score=k)}g+=1}}p+=1}}c+=1}for(var A=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),I=[],T=s.lmin;T<=s.lmax;T+=s.lstep)I.push(T);var B=A?Object(r.U)(I,function(t){return Number.parseFloat(t.toFixed(A))}):I;return{min:Math.min(t,Object(r.y)(B)),max:Math.max(e,Object(r.S)(B)),ticks:B}}function ft(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=e;if(Object(r.K)(n))return Object(r.l)(o,function(t,e){return e%n==0});var a=t.min,s=t.max;if(Object(r.I)(a)&&(a=0),Object(r.I)(s)&&(s=e.length-1),Object(r.K)(i)&&i<s-a){var c=ht(a,s,i,!1,[1,2,5,3,4,7,6,8,9]).ticks;return Object(r.l)(c,function(t){return t>=a&&t<=s}).map(function(t){return e[t]})}return e.slice(a,s+1)}var pt=Math.sqrt(50),dt=Math.sqrt(10),gt=Math.sqrt(2),vt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],c=this._domain[a];return c<s&&(s=(e=[c,s])[0],c=e[1],o=(n=[a,o])[0],a=n[1]),(i=yt(s,c,t))>0?i=yt(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,t):i<0&&(i=yt(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var i,r,o,a,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=yt(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));++s<r;)o[s]=(t+s)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(r=Math.ceil(t-e+1));++s<r;)o[s]=(t-s)/a;return i&&o.reverse(),o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function yt(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=pt?10:o>=dt?5:o>=gt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=pt?10:o>=dt?5:o>=gt?2:1)}function mt(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function bt(t,e,n){var i=mt(t,n,"floor"),o=mt(e,n,"ceil");i=Object(r.p)(i,n),o=Object(r.p)(o,n);for(var a=[],s=i;s<=o;s+=n){var c=Object(r.p)(s,n);a.push(c)}return{min:i,max:o,ticks:a}}function xt(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,u=t.tickCount,l=void 0===u?5:u,h=Object(r.I)(o)?Object(r.I)(e)?s:e:o,f=Object(r.I)(a)?Object(r.I)(n)?c:n:a;if(h>f&&(f=(i=[h,f])[0],h=i[1]),l<=2)return[h,f];for(var p=(f-h)/(l-1),d=[],g=0;g<l;g++)d.push(h+p*g);return d}function Ot(t,e,n){void 0===n&&(n=5);var i={max:0,min:0,ticks:[]};if(t===e)return{max:e,min:t,ticks:[t]};var r=(e-t)/n,o=Math.pow(10,Math.floor(Math.log10(r))),a=o<1?Math.ceil(Math.abs(Math.log10(o))):0,s=o;2*o-r<1.5*(r-s)&&5*o-r<2.75*(r-(s=2*o))&&10*o-r<1.5*(r-(s=5*o))&&(s=10*o);var c=Math.ceil(e/s),u=Math.floor(t/s);i.max=Math.max(c*s,e),i.min=Math.min(u*s,t);for(var l=Number.parseFloat((u*s).toFixed(a));l<e;)i.ticks.push(l),l+=s,a&&(l=Number.parseFloat(l.toFixed(a)));return i.ticks.push(l),i}function jt(t){return new Date(t).getFullYear()}function wt(t){return new Date(t,0,1).getTime()}function Ct(t){return new Date(t).getMonth()}function Mt(t,e){return new Date(t,e,1).getTime()}a("cat",ft),a("time-cat",function(t){var e=ft(t),n=Object(r.S)(t.values);return n!==Object(r.S)(e)&&e.push(n),e}),a("wilkinson-extended",function(t){var e=t.min,n=t.max,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=ht(e,n,t.tickCount,t.nice).ticks;return Object(r.I)(o)&&Object(r.I)(a)?i?bt(e,n,i).ticks:s:xt(t,Object(r.y)(s),Object(r.S)(s))}),a("r-pretty",function(t){var e=t.min,n=t.max,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=Ot(e,n,t.tickCount).ticks;return Object(r.I)(o)&&Object(r.I)(a)?i?bt(e,n,i).ticks:s:xt(t,Object(r.y)(s),Object(r.S)(s))}),a("time",function(t){var e=t.min,n=t.max,i=t.minTickInterval,o=t.tickInterval,a=t.tickCount;if(o)a=Math.ceil((n-e)/o);else{var s=(n-e)/(o=function(t,e,n){var i,o=(i=function(t){return t[1]},function(t,e,n,o){for(var a=Object(r.I)(n)?0:n,s=Object(r.I)(o)?t.length:o;a<s;){var c=a+s>>>1;i(t[c])>e?s=c:a=c+1}return a})(G,(e-t)/n)-1,a=G[o];return o<0?a=G[0]:o>=G.length&&(a=Object(r.S)(G)),a}(e,n,a)[1])/a;s>1&&(o*=Math.ceil(s)),i&&o<i&&(o=i)}for(var c=[],u=e;u<n+o;u+=o)c.push(u);return c}),a("time-pretty",function(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,o=[];r||(r=(n-e)/t.tickCount,i&&r<i&&(r=i));var a=jt(e);if(r>31536e6)for(var s=jt(n),c=Math.ceil(r/31536e6),u=a;u<=s+c;u+=c)o.push(wt(u));else if(r>Y){var l=Math.ceil(r/Y),h=Ct(e),f=function(t,e){var n=jt(t),i=jt(e),r=Ct(t);return 12*(i-n)+(Ct(e)-r)%12}(e,n);for(u=0;u<=f+l;u+=l)o.push(Mt(a,u+h))}else if(r>_){var p=(m=new Date(e)).getFullYear(),d=m.getMonth(),g=m.getDate(),v=Math.ceil(r/_),y=function(t,e){return Math.ceil((e-t)/_)}(e,n);for(u=0;u<y+v;u+=v)o.push(new Date(p,d,g+u).getTime())}else if(r>R){p=(m=new Date(e)).getFullYear(),d=m.getMonth(),v=m.getDate();var m,b=m.getHours(),x=Math.ceil(r/R),O=function(t,e){return Math.ceil((e-t)/R)}(e,n);for(u=0;u<=O+x;u+=x)o.push(new Date(p,d,v,b+u).getTime())}else if(r>6e4){var j=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),w=Math.ceil(r/6e4);for(u=0;u<=j+w;u+=w)o.push(e+6e4*u)}else{var C=r;C<1e3&&(C=1e3);var M=1e3*Math.floor(e/1e3),S=Math.ceil((n-e)/1e3),k=Math.ceil(C/1e3);for(u=0;u<S+k;u+=k)o.push(M+1e3*u)}return o.length>=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+r+") is too small, increase the value to solve the problem!"),o}),a("log",function(t){var e,n=t.base,i=t.tickCount,r=t.min,o=t.max,a=t.values,s=W(n,o);if(r>0)e=Math.floor(W(n,r));else{var c=$(a,n,o);e=Math.floor(W(n,c))}for(var u=Math.ceil((s-e)/i),l=[],h=e;h<s+u;h+=u)l.push(Math.pow(n,h));return r<=0&&l.unshift(0),l}),a("pow",function(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(H(e,t.max));return Ot(Math.floor(H(e,t.min)),i,n).ticks.map(function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n})}),a("quantile",function(t){var e,n,i,r=t.tickCount,o=t.values;if(!o||!o.length)return[];for(var a=o.slice().sort(function(t,e){return t-e}),s=[],c=0;c<r;c++)s.push((i=(e=a).length*(n=c/(r-1)),1===n?e[e.length-1]:0===n?e[0]:i%1!=0?e[Math.ceil(i)-1]:e.length%2==0?(e[i-1]+e[i])/2:e[i]));return s}),a("d3-linear",function(t){var e=t.min,n=t.max,i=t.tickInterval,o=t.minLimit,a=t.maxLimit,s=function(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new vt;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}(t);return Object(r.I)(o)&&Object(r.I)(a)?i?bt(e,n,i).ticks:s:xt(t,Object(r.y)(s),Object(r.S)(s))}),et("cat",u),et("category",u),et("identity",nt),et("linear",V),et("log",q),et("pow",U),et("time",Z),et("timeCat",N),et("quantize",K),et("quantile",J)},"96lr":function(t,e,n){"use strict";var i=n("FqlA"),r=n("iTfj"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.process=function(t){var e=r.q(t),n=this.xField,o=this.yField,a=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(a).map(function(t){return a[t]}));return r.U(t,function(t){return r.U(t,function(t){var e,c,u=t[o],l=t[n];if(r.B(u)){var h=(s-a[l])/2;return Object(i.a)(Object(i.a)({},t),((e={})[o]=r.U(u,function(t){return h+t}),e))}var f=(s-u)/2;return Object(i.a)(Object(i.a)({},t),((c={})[o]=[f,u+f],c))})})},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,i=this.yField,o=r.v(t,function(t){return t[n]});return r.V(o,function(t){return e.getDimMaxValue(t,i)})},e.prototype.getDimMaxValue=function(t,e){var n=r.U(t,function(t){return r.s(t,e,[])}),i=r.q(n);return Math.max.apply(Math,i)},e}(n("Qci9").a);e.a=o},"9eUa":function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return p}),n.d(e,"e",function(){return v}),n.d(e,"h",function(){return y}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return b});var i=n("iTfj"),r=n("r0DC"),o=n("nCnq"),a=n("cyZq"),s=n("nycV"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function u(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(i.B)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(r.b)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function l(t,e,n){for(var i=0;i<e.length;i++){var r=e[i];r.cfg.visible?r.draw(t,n):r.skipDraw()}}function h(t,e,n){var r=t.get("refreshElements");Object(i.j)(r,function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent}),r[0]===t?d(e,n):f(e,n)}function f(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&d(i.cfg.children,e);else if(i.cfg.refresh)i.isGroup()&&f(i.cfg.children,e);else{var r=g(i,e);i.cfg.refresh=r,r&&i.isGroup()&&f(i.cfg.children,e)}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&p(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.refresh=!0,i.isGroup()&&d(i.get("children"),e)}}function g(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Object(a.f)(n,e)}function v(t,e,n,i){var r=n.path,a=n.startArrow,c=n.endArrow;if(r){var u=[0,0],l=[0,0],h={dx:0,dy:0};e.beginPath();for(var f=0;f<r.length;f++){var p=r[f],d=p[0];if(0===f&&a&&a.d){var g=t.getStartTangent();h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else f===r.length-2&&"Z"===r[f+1][0]&&c&&c.d?"Z"===r[f+1][0]&&(g=t.getEndTangent(),h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d)):f===r.length-1&&c&&c.d&&"Z"!==r[0]&&(g=t.getEndTangent(),h=s.c(g[0][0],g[0][1],g[1][0],g[1][1],c.d));var v=h.dx,y=h.dy;switch(d){case"M":e.moveTo(p[1]-v,p[2]-y),l=[p[1],p[2]];break;case"L":e.lineTo(p[1]-v,p[2]-y);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-v,p[4]-y);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-v,p[6]-y);break;case"A":var m=void 0;i?(m=i[f])||(m=Object(o.a)(u,p),i[f]=m):m=Object(o.a)(u,p);var b=m.cx,x=m.cy,O=m.rx,j=m.ry,w=m.startAngle,C=m.endAngle,M=m.xRotation,S=m.sweepFlag;if(e.ellipse)e.ellipse(b,x,O,j,M,w,C,1-S);else{var k=O>j?O:j,A=O>j?1:O/j,I=O>j?j/O:1;e.translate(b,x),e.rotate(M),e.scale(A,I),e.arc(0,0,k,w,C,1-S),e.scale(1/A,1/I),e.rotate(-M),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===d)u=l;else{var T=p.length;u=[p[T-2],p[T-1]]}}}}function y(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function m(t){if(!t.length)return null;var e=[],n=[],r=[],o=[];return Object(i.j)(t,function(t){var i=function(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),o=r&&!(!r.width||!r.height);i&&o?e=Object(a.l)(n,r):i?e=n:o&&(e=r)}return e}(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))}),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,r),maxY:Math.max.apply(null,o)}}function b(t,e){return t&&e&&Object(a.f)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},APlK:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"a",function(){return a});var i=n("c+wO");function r(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);-1===(i=i.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Object(i.a)(n),n.createPath(e);var o=e.addClip(n);r.setAttribute("clip-path","url(#"+o+")")}}else r.removeAttribute("clip-path")}},B0vJ:function(t,e){},"B2d+":function(t,e){},BYeR:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("n/J0"),u=n("tKoa");function l(t){var e,n=t.chart,i=t.options,r=i.bulletStyle,s=i.targetField,c=i.rangeField,l=i.measureField,h=i.xField,f=i.color,p=i.layout,d=i.size,g=i.label,v=function(t){var e=t.xField,n=t.measureField,i=t.rangeField,r=t.targetField,o=t.layout,a=[],s=[];t.data.forEach(function(t,o){var c;t[i].sort(function(t,e){return t-e}),t[i].forEach(function(n,r){var s,c=0===r?n:t[i][r]-t[i][r-1];a.push(((s={rKey:i+"_"+r})[e]=e?t[e]:String(o),s[i]=c,s))}),t[n].forEach(function(i,r){var s;a.push(((s={mKey:t[n].length>1?n+"_"+r:""+n})[e]=e?t[e]:String(o),s[n]=i,s))}),a.push(((c={tKey:""+r})[e]=e?t[e]:String(o),c[r]=t[r],c)),s.push(t[i],t[n],t[r])});var c=Math.min.apply(Math,s.flat(1/0)),u=Math.max.apply(Math,s.flat(1/0));return c=c>0?0:c,"vertical"===o&&a.reverse(),{min:c,max:u,ds:a}}(i),y=v.ds;n.scale(((e={})[l]={min:v.min,max:v.max},e[c]={sync:""+l},e[s]={sync:""+l},e)),n.data(y),n.axis(""+c,!1),n.axis(""+s,!1);var m=Object(o.b)({},t,{options:{xField:h,yField:c,seriesField:"rKey",isStack:!0,label:Object(a.s)(g,"range"),interval:{color:Object(a.s)(f,"range"),style:Object(a.s)(r,"range"),size:Object(a.s)(d,"range")}}});Object(u.c)(m),n.geometries[0].tooltip(!1);var b=Object(o.b)({},t,{options:{xField:h,yField:l,seriesField:"mKey",isStack:!0,label:Object(a.s)(g,"measure"),interval:{color:Object(a.s)(f,"measure"),style:Object(a.s)(r,"measure"),size:Object(a.s)(d,"measure")}}});Object(u.c)(b);var x=Object(o.b)({},t,{options:{xField:h,yField:s,seriesField:"tKey",label:Object(a.s)(g,"target"),point:{color:Object(a.s)(f,"target"),style:Object(a.s)(r,"target"),size:Object(a.s)(d,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(u.e)(x),"horizontal"===p&&n.coordinate().transpose(),t}function h(t){var e,n=t.chart,i=t.options,r=i.xAxis,a=i.yAxis,s=i.meta,u=i.targetField,l=i.rangeField,h=i.measureField,f=i.xField;if(s){var p=Object(o.b)({},s,((e={})[f]=Object(o.k)(r,c.a),e[h]=Object(o.k)(a,c.a),e[u]={sync:""+h},e[l]={sync:""+h},e));n.scale(p)}return t}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.measureField;return e.axis(""+n.xField,!1!==i&&i),e.axis(""+o,!1!==r&&r),t}function p(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.options,n=e.label,r=e.measureField,s=e.targetField,c=e.rangeField,u=t.chart.geometries,l=u[0],h=u[1],f=u[2];return Object(a.s)(n,"range")?l.label(""+c,Object(i.a)({layout:[{type:"limit-in-plot"}]},Object(o.o)(n.range))):l.label(!1),Object(a.s)(n,"measure")?h.label(""+r,Object(i.a)({layout:[{type:"limit-in-plot"}]},Object(o.o)(n.measure))):h.label(!1),Object(a.s)(n,"target")?f.label(""+s,Object(i.a)({layout:[{type:"limit-in-plot"}]},Object(o.o)(n.target))):f.label(!1),t}function g(t){Object(o.e)(l,h,f,p,s.j,d,s.k,s.c,s.a)(t)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}return Object(i.d)(e,t),e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}}})},e}(r.a)},BgvD:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a});var i=n("iTfj");function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function o(t){var e=0;return Object(i.j)(t,function(t){var n=t.getBBox().width;e<n&&(e=n)}),e}function a(t,e,n,i){void 0===i&&(i="tail");var o=e.attr("text"),a=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),s=function(t){for(var e=0,n=0;n<t.length;n++)e+=r(t,n);return e}(o),c=!1;if(n<a){var u,l=Math.floor(n/a*s)-2;(u=l>=0?function(t,e,n){void 0===n&&(n="tail");var i=t.length,o="";if("tail"===n){for(var a=0,s=0;a<e&&a+r(t,s)<=e;)o+=t[s],a+=r(t,s),s++;o+="\u2026"}else if("head"===n){for(a=0,s=i-1;a<e&&a+r(t,s)<=e;)o+=t[s],a+=r(t,s),s--;o="\u2026"+o}else{for(var c="",u="",l=(a=0,0),h=i-1;a<e;){var f=r(t,l),p=!1;f+a<=e&&(c+=t[l],l++,a+=f,p=!0);var d=r(t,h);if(d+a<=e&&(u=t[h]+u,a+=d,h--,p=!0),!p)break}o=c+"\u2026"+u}return o}(o,l,i):"\u2026")&&(e.attr("text",u),c=!0)}return e.set("tip",c?o:null),c}},BwSJ:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("w02o"),s=n("tKoa"),c=n("iTfj");function u(t,e){var n=Math.floor(t/e);return[e*n,e*(n+1)]}function l(t){var e=t.chart,n=t.options,i=n.color,r=n.stackField,a=n.legend,l=n.columnStyle,h=function(t,e,n,i,r){var o=Object(c.e)(t);Object(c.ib)(o,e);var a=Object(c.sb)(o,e),s=Object(c.t)(a),l=s.max-s.min,h=n;if(!n&&i&&(h=l/i),!n&&!i){var f=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(a);h=l/f}var p={},d=Object(c.v)(o,r);Object(c.F)(d)?Object(c.j)(o,function(t){var n=u(t[e],h),i=n[0]+"-"+n[1];Object(c.x)(p,i)||(p[i]={range:n,count:0}),p[i].count+=1}):Object.keys(d).forEach(function(t){Object(c.j)(d[t],function(n){var i=u(n[e],h),o=i[0]+"-"+i[1]+"-"+t;Object(c.x)(p,o)||(p[o]={range:i,count:0},p[o][r]=t),p[o].count+=1})});var g=[];return Object(c.j)(p,function(t){g.push(t)}),g}(n.data,n.binField,n.binWidth,n.binNumber,r);e.data(h);var f=Object(o.b)({},t,{options:{xField:"range",yField:"count",seriesField:r,isStack:!0,interval:{color:i,style:l}}});return Object(s.c)(f),a&&r&&e.legend(r,a),t}function h(t){var e=t.options,n=e.xAxis,i=e.yAxis;return Object(o.e)(Object(a.f)({range:n,count:i}))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return e.axis("range",!1!==i&&i),e.axis("count",!1!==r&&r),t}function p(t){var e=t.chart,n=t.options.label,r=Object(o.c)(e,"interval");if(n){var a=n.callback,s=Object(i.f)(n,["callback"]);r.label({fields:["count"],callback:a,cfg:Object(o.o)(s)})}else r.label(!1);return t}function d(t){return Object(o.e)(l,h,f,a.j,p,a.k,a.c,a.a)(t)}var g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return d},e}(r.a)},C2AL:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("nLfN"),r=n("fXoL"),o=function(){var t=function(){function t(e,n){h(this,t),this.elementRef=e,this.renderer=n,this.hidden=null,this.renderer.setAttribute(this.elementRef.nativeElement,"hidden","")}return p(t,[{key:"setHiddenAttribute",value:function(){!0===this.hidden?this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",""):!1===this.hidden||null===this.hidden?this.renderer.removeAttribute(this.elementRef.nativeElement,"hidden"):"string"==typeof this.hidden&&this.renderer.setAttribute(this.elementRef.nativeElement,"hidden",this.hidden)}},{key:"ngOnChanges",value:function(){this.setHiddenAttribute()}},{key:"ngAfterViewInit",value:function(){this.setHiddenAttribute()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.E))},t.\u0275dir=r.Eb({type:t,selectors:[["","nz-button",""],["nz-button-group"],["","nz-icon",""],["","nz-menu-item",""],["","nz-submenu",""],["nz-select-top-control"],["nz-select-placeholder"],["nz-input-group"]],inputs:{hidden:"hidden"},features:[r.xb]}),t}(),a=function(){var t=function t(){h(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t}()},CSvP:function(t,e,n){"use strict";function i(){return 0}n.d(e,"a",function(){return i}),e.b=function(t){return function(){return t}}},"Ch+T":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",function(){return p});var i,r=n("mrSG"),o=n("6UX8"),a=n("fIp6"),s=n("iTfj"),c=n("de35"),u=n("5UbV"),l=n("u60a"),h=n("L16w"),f=((i={})[""+l.CONTAINER_CLASS]={position:"absolute",visibility:"visible",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:h.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+l.TITLE_CLASS]={marginBottom:"4px"},i[""+l.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+l.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},i[""+l.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+l.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+l.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+l.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+l.CONTAINER_CLASS+'"><div class="'+l.TITLE_CLASS+'"></div><ul class="'+l.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+l.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+l.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+l.NAME_CLASS+'">{name}</span>:\n <span class="'+l.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+l.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+l.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:l.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(a.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(a.e)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");n&&Object(a.e)(n,{display:e}),i&&Object(a.e)(i,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,i,r;this.get("customContent")?this.renderCustomContent():(n=e,i=["title","showTitle"],r=!1,Object(s.j)(i,function(t){if(Object(s.x)(n,t))return r=!0,!1}),r&&this.resetTitle(),Object(s.x)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,c=this.get("position"),l=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;l&&(t=Object(u.k)(l));var g=function(t,e,n,i,r,o,a){var s=function(t,e,n,i,r,o){var a=t,s=e;switch(o){case"left":a=t-i-n,s=e-r/2;break;case"right":a=t+n,s=e-r/2;break;case"top":a=t-i/2,s=e-r-n;break;case"bottom":a=t-i/2,s=e+n;break;default:a=t+n,s=e-r-n}return{x:a,y:s}}(t,e,n,i,r,o);if(a){var c=function(t,e,n,i,r){return{left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height}}(s.x,s.y,i,r,a);"auto"===o?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===o||"bottom"===o?(c.left&&(s.x=a.x),c.right&&(s.x=a.x+a.width-i),"top"===o&&c.top&&(s.y=e+n),"bottom"===o&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=a.y),c.bottom&&(s.y=a.y+a.height-r),"left"===o&&c.left&&(s.x=t+n),"right"===o&&c.right&&(s.x=t-i-n))}return s}(e,n,i,p,d,c,t);Object(a.e)(h,{left:Object(u.l)(g.x+o),top:Object(u.l)(g.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=Object(s.E)(n)?n:Object(a.b)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(l.TITLE_CLASS)[0],n=t.getElementsByClassName(l.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");this.setTitle(e&&t?t:"")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(u.k)(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);"x"===t?Object(a.e)(n,{left:Object(u.l)(i),top:Object(u.l)(e.y),height:Object(u.l)(e.height)}):Object(a.e)(n,{top:Object(u.l)(i),left:Object(u.l)(e.x),width:Object(u.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=l[i],o=this.get(e),s=this.get("parent");return o||(o=Object(a.b)(this.get(n)),this.applyStyle(r,o),s.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(s.j)(t,function(t){var i=o.a.toCSSGradient(t.color),c=Object(r.a)(Object(r.a)({},t),{color:i}),u=Object(s.jb)(e,c),l=Object(a.b)(u);n.appendChild(l)}),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(u.a)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(c.a)},Cr25:function(t,e,n){"use strict";n.d(e,"a",function(){return O});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("tKoa");function u(t,e){var n;switch(t){case"inner":return n="-30%",Object(a.O)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(a.O)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function l(t){var e=t.chart,n=t.options,r=n.data,s=n.angleField,u=n.colorField,l=n.color,h=n.pieStyle,f=Object(a.l)(r,function(t){return"number"==typeof t[s]||Object(a.I)(t[s])});if(Object(o.j)(o.a.WARN,f.length===r.length,"illegal data existed in chart data."),Object(a.k)(f,function(t){return 0===t[s]})){f=f.map(function(t){var e;return Object(i.a)(Object(i.a)({},t),((e={}).$$percentage$$=1/f.length,e))}),e.data(f);var p=Object(o.b)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:u,isStack:!0,interval:{color:l,style:h}}});Object(c.c)(p),e.geometries[0].tooltip(u+"*"+s)}else e.data(f),p=Object(o.b)({},t,{options:{xField:"1",yField:s,seriesField:u,isStack:!0,interval:{color:l,style:h}}}),Object(c.c)(p);return t}function h(t){var e,n=t.chart,i=t.options,r=i.meta,a=i.colorField,s=Object(o.b)({},r);return n.scale(s,((e={})[a]={type:"cat"},e)),t}function f(t){var e=t.options;return t.chart.coordinate({type:"theta",cfg:{radius:e.radius,innerRadius:e.innerRadius}}),t}function p(t){var e=t.chart,n=t.options,r=n.label,s=n.colorField,c=n.angleField,l=e.geometries[0];if(r){var h=r.callback,f=Object(i.f)(r,["callback"]),p=Object(o.o)(f);if(p.content){var d=p.content;p.content=function(t,n,r){var u=t[s],l=t[c],h=e.getScaleByField(c),f=null==h?void 0:h.scale(l);return Object(a.H)(d)?d(Object(i.a)(Object(i.a)({},t),{percent:f}),n,r):Object(a.O)(d)?Object(o.n)(d,{value:l,name:u,percentage:Object(a.K)(f)&&!Object(a.I)(l)?(100*f).toFixed(2)+"%":null}):d}}var g=p.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[p.type]:"pie-outer",v=p.layout?Object(a.B)(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:s?[c,s]:[c],callback:h,cfg:Object(i.a)(Object(i.a)({},p),{offset:u(p.type,p.offset),type:"pie"})})}else l.label(!1);return t}function d(t){var e=t.chart,n=t.options,i=n.statistic,r=n.angleField,s=n.colorField,c=n.meta;if(n.innerRadius&&i){var u=i.title,l=i.content;!1!==u&&(u=Object(o.b)({},{formatter:function(t){return t?t[s]:"\u603b\u8ba1"}},u)),!1!==l&&(l=Object(o.b)({},{formatter:function(t,e){var n=Object(a.s)(c,[r,"formatter"]),i=t?t[r]:function(t,e){var n=null;return Object(a.j)(t,function(t){"number"==typeof t[e]&&(n+=t[e])}),n}(e,r);return n?n(i):i}},l)),Object(o.m)(e,{statistic:{title:u,content:l},plotType:"pie"})}return t}function g(t){return Object(o.e)(l,h,s.j,f,s.d,s.k,p,s.i,Object(s.b)(),d,s.c,s.a)(t)}var v=n("kXyF"),y=n("qaDU"),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getActiveElements=function(){var t=v.e.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.item,i=t.component.get("field");if(i)return e.geometries[0].elements.filter(function(t){return t.getModel().data[i]===n.value})}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter(function(t){return e.find(function(e){return Object(a.G)(e.getData(),t.get("data"))})})},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach(function(e,i){var r=n[i],o=e.geometry.coordinate;if(o.isPolar&&o.isTransposed){var a=v.e.getAngle(e.getModel(),o),s=(a.startAngle+a.endAngle)/2,c=t,u=c*Math.cos(s),l=c*Math.sin(s);e.shape.setMatrix(Object(y.a)([["t",u,l]])),r.setMatrix(Object(y.a)([["t",u,l]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(v.a),b=n("mj6g"),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",function(){var n=t.getAnnotations(e);t.initialAnnotation=n})},e.prototype.change=function(){var t=this.context,e=t.view,n=t.event,r=this.getAnnotations();this.initialAnnotation||(this.initialAnnotation=r);var o=((null==n?void 0:n.data)||{}).data;if(n.type.match("legend-item")){var s=v.e.getDelegationObject(this.context),c=e.getGroupedFields()[0];if(s&&c){var u=s.item;o=e.getData().find(function(t){return t[c]===u.value})}}if(o){var l=e.getController("annotation");l.clear(!0);var h=e.getScaleFields(),f=h[1],p=h[2],d=e.getScaleByField(f),g=e.getScaleByField(p),y=r.filter(function(t){return!Object(a.s)(t,"key","").match("statistic")}),m=r.filter(function(t){return Object(a.s)(t,"key","").match("statistic")}),x=m.filter(function(t){return"top-statistic"===t.key}),O=m.filter(function(t){return"bottom-statistic"===t.key});Object(a.j)(m,function(t){var n,r;"top-statistic"===t.key?(n=g?g.getText(o[p]):null,r=O?"translate(-50%, -100%)":"translate(-50%, -50%)"):(n=d?d.getText(o[f]):o[f],r=x?"translate(-50%, 0)":"translate(-50%,-50%)"),y.push(Object(i.a)(Object(i.a)({},t),{html:function(e,s){var c=s.getCoordinate(),u=c.getRadius()*c.innerRadius*2,l=Object(a.H)(t.style)?t.style():t.style;Object(b.d)(e,Object(i.a)({width:u+"px",transform:r},Object(b.a)(l)));var h=s.getData();return t.customHtml?t.customHtml(e,s,o,h):(t.formatter&&(n=t.formatter(o,h)),n?Object(a.O)(n)?n:""+n:"<div></div>")}})),y.forEach(function(t){l.annotation(t)}),e.render(!0)})}},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(a.j)(e,function(e){t.annotation()[e.type](e)}),t.render(!0)},e}(v.a);Object(v.g)("pie-statistic",x),Object(v.i)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(v.g)("pie-legend",m),Object(v.i)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});var O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{legend:{position:"right"},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},e.prototype.getSchemaAdaptor=function(){return g},e}(r.a)},DMQx:function(t,e,n){"use strict";n.d(e,"a",function(){return O});var i=n("mrSG"),r=n("YuPD"),o=n("w02o"),a=n("iTfj"),s=n("kXyF"),c=n("5OoT");function u(t,e){return Object(r.b)({size:e?32:80,spacing:e?8:12,offset:e?32:0,arrow:!1!==t.arrow&&{headSize:12,style:{fill:"rgba(0, 0, 0, 0.05)"}},text:!1!==t.text&&{style:{fontSize:12,fill:"rgba(0, 0, 0, 0.85)",textAlign:"center",textBaseline:"middle"},formatter:c.a}},t)}function l(t,e){return Object(a.U)(e.getModel().points,function(e){return t.convertPoint(e)})}var h={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"};Object(s.i)(h.hover,{start:[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"]}],end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(s.i)(h.click,{start:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"]}],end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var f=n("tKoa"),p=n("DyAw"),d=n("sqD9");function g(t){var e=t.options,n=e.legend,r=e.isStack;return e.seriesField?!1!==n&&(n=Object(i.a)({position:r?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function v(t){var e=t.chart,n=t.options,o=n.data,a=n.columnStyle,s=n.color,c=n.columnWidthRatio,u=n.isPercent,l=n.xField,h=n.yField,p=n.seriesField,g=n.tooltip,v=u?Object(d.a)(o,h,l,h):o;e.data(v);var y=u?Object(i.a)({formatter:function(t){return{name:t[p]||t[l],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,m=Object(r.b)({},t,{options:{widthRatio:c,tooltip:y,interval:{style:a,color:s}}});return Object(f.c)(m),t}function y(t){var e,n,a=t.options,s=a.xAxis,c=a.yAxis,u=a.xField,l=a.yField,h=a.data,f=a.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(r.e)(Object(o.f)(((e={})[u]=s,e[l]=c,e),((n={})[u]={type:"cat"},n[l]=Object(i.a)(Object(i.a)({},Object(p.a)(h,l)),f),n)))(t)}function m(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.yField;return e.axis(n.xField,!1!==i&&i),e.axis(o,!1!==r&&r),t}function b(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function x(t){var e=t.chart,n=t.options,o=n.label,a=n.yField,s=n.isRange,c=Object(r.c)(e,"interval");if(o){var u=o.callback,l=Object(i.f)(o,["callback"]);c.label({fields:[a],callback:u,cfg:Object(i.a)({layout:(null==l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(r.o)(s?Object(i.a)({content:function(t){var e;return null===(e=t[a])||void 0===e?void 0:e.join("-")}},l):l))})}else c.label(!1);return t}function O(t,e){void 0===e&&(e=!1);var n,c,f,p,d=t.options,O=d.seriesField;return Object(r.e)(g,o.j,v,y,m,b,o.k,o.h,o.g,x,o.c,o.a,Object(o.b)(),(c=d.yField,void 0===(f=!e)&&(f=!0),void 0===(p=!!O)&&(p=!1),function(t){var e=t.options,n=t.chart,o=e.conversionTag,h=e.theme;return o&&!p&&(n.theme(Object(r.b)({},Object(a.M)(h)?h:Object(s.f)(h),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var r=t.addGroup({id:n.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=Object(a.m)(n.geometries,function(t){return"interval"===t.type}),h={view:e,geometry:s,group:r,field:c,horizontal:f,options:u(o,f)},p=f?s.elements:s.elements.slice().reverse();Object(a.j)(p,function(t,e){e>0&&function(t,e,n){!function(t,e,n){var r=t.view,o=t.geometry,a=t.group,s=t.options,c=t.horizontal,u=s.offset,h=s.size,f=s.arrow,p=r.getCoordinate(),d=l(p,e)[c?3:0],g=l(p,n)[c?0:3],v=g.y-d.y,y=g.x-d.x;if("boolean"!=typeof f){var m,b=f.headSize,x=s.spacing;c?(y-b)/2<x?(x=Math.max(1,(y-b)/2),m=[[d.x+x,d.y-u],[d.x+x,d.y-u-h],[g.x-x,g.y-u-h/2]]):m=[[d.x+x,d.y-u],[d.x+x,d.y-u-h],[g.x-x-b,g.y-u-h],[g.x-x,g.y-u-h/2],[g.x-x-b,g.y-u]]:(v-b)/2<x?(x=Math.max(1,(v-b)/2),m=[[d.x+u,d.y+x],[d.x+u+h,d.y+x],[g.x+u+h/2,g.y-x]]):m=[[d.x+u,d.y+x],[d.x+u+h,d.y+x],[g.x+u+h,g.y-x-b],[g.x+u+h/2,g.y-x],[g.x+u,g.y-x-b]],a.addShape("polygon",{id:r.id+"-conversion-tag-arrow-"+o.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",attrs:Object(i.a)(Object(i.a)({},f.style||{}),{points:m})})}}(t,e,n),function(t,e,n){var r,o,a,s=t.view,c=t.geometry,u=t.group,h=t.options,f=t.field,p=t.horizontal,d=h.offset,g=h.size;if("boolean"!=typeof h.text){var v=s.getCoordinate(),y=(null===(r=h.text)||void 0===r?void 0:r.formatter)&&(null===(o=h.text)||void 0===o?void 0:o.formatter(e.getData()[f],n.getData()[f])),m=l(v,e)[p?3:0],b=l(v,n)[p?0:3],x=u.addShape("text",{id:s.id+"-conversion-tag-text-"+c.getElementId(e.getModel().mappingData),name:"conversion-tag-text",attrs:Object(i.a)(Object(i.a)({},(null===(a=h.text)||void 0===a?void 0:a.style)||{}),{text:y,x:p?(m.x+b.x)/2:m.x+d+g/2,y:p?m.y-d-g/2:(m.y+b.y)/2})});if(p){var O=b.x-m.x,j=x.getBBox().width;if(j>O){var w=Math.max(1,Math.ceil(O/(j/y.length))-1),C=y.slice(0,w)+"...";x.attr("text",C)}}}}(t,e,n)}(h,p[e-1],t)})}})),t}),(void 0===(n=!d.isStack)&&(n=!1),function(t){var e=t.chart,i=t.options.connectedArea,r=function(){e.removeInteraction(h.hover),e.removeInteraction(h.click)};if(!n&&i){var o=i.trigger||"hover";r(),e.interaction(h[o])}else r();return t}),o.e)(t)}},DdT1:function(t,e,n){"use strict";e.a=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},Djfg:function(t,e,n){"use strict";n("XiRp"),n("h4/5"),n("N9hJ"),n("3T7b"),n("B0vJ"),n("B2d+")},DyAw:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var i=n("iTfj");function r(t,e){var n=t.filter(function(t){var n=Object(i.s)(t,[e]);return Object(i.K)(n)&&!isNaN(n)}),r=n.every(function(t){return Object(i.s)(t,[e])>=0}),o=n.every(function(t){return Object(i.s)(t,[e])<=0});return r?{min:0}:o?{max:0}:{}}function o(t,e,n,i){if(!Array.isArray(t))return{nodes:[],links:[]};var r=[],o={},a=-1;return t.forEach(function(t){var s=t[e],c=t[n],u=t[i];o[s]||(o[s]={id:++a,name:s}),o[c]||(o[c]={id:++a,name:c}),r.push({source:o[s].id,target:o[c].id,value:u})}),{nodes:Object.values(o),links:r}}},EYNi:function(t,e,n){"use strict";n.d(e,"e",function(){return b}),n.d(e,"b",function(){return M}),n.d(e,"a",function(){return B}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return F}),n.d(e,"f",function(){return i});var i={};function r(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function s(t,e){return Math.abs(t-e)<.001}function c(t,e){var n=r(t),i=r(e);return{x:n,y:i,width:o(t)-n,height:o(e)-i}}function u(t,e,n,i){return{minX:r([t,n]),maxX:o([t,n]),minY:r([e,i]),maxY:o([e,i])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,"distance",function(){return a}),n.d(i,"isNumberEqual",function(){return s}),n.d(i,"getBBoxByArray",function(){return c}),n.d(i,"getBBoxRange",function(){return u}),n.d(i,"piMod",function(){return l});var h=n("ZxFD"),f={box:function(t,e,n,i){return c([t,n],[e,i])},length:function(t,e,n,i){return a(t,e,n,i)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,i,r,o){var s=(n-t)*(r-t)+(i-e)*(o-e);return s<0?a(t,e,r,o):s>(n-t)*(n-t)+(i-e)*(i-e)?a(n,i,r,o):this.pointToLine(t,e,n,i,r,o)},pointToLine:function(t,e,n,i,r,o){var a=[n-t,i-e];if(h.exactEquals(a,[0,0]))return Math.sqrt((r-t)*(r-t)+(o-e)*(o-e));var s=[-a[1],a[0]];return h.normalize(s,s),Math.abs(h.dot([r-t,o-e],s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}};function p(t,e,n,i,r,o){var s,c=1/0,u=[n,i],l=20;o&&o>200&&(l=o/10);for(var h=1/l,f=h/10,p=0;p<=l;p++){var d=p*h,g=[r.apply(null,t.concat([d])),r.apply(null,e.concat([d]))];(b=a(u[0],u[1],g[0],g[1]))<c&&(s=d,c=b)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var v=t.length;return{x:t[v-1],y:e[v-1]}}for(c=1/0,p=0;p<32&&!(f<1e-4);p++){var y=s-f,m=s+f,b=(g=[r.apply(null,t.concat([y])),r.apply(null,e.concat([y]))],a(u[0],u[1],g[0],g[1]));if(y>=0&&b<c)s=y,c=b;else{var x=[r.apply(null,t.concat([m])),r.apply(null,e.concat([m]))],O=a(u[0],u[1],x[0],x[1]);m<=1&&O<c?(s=m,c=O):f*=.5}}return{x:r.apply(null,t.concat([s])),y:r.apply(null,e.concat([s]))}}function d(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function g(t,e,n){var i=t+n-2*e;if(s(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}function v(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function y(t,e,n,i,r,o,a){var s=d(t,n,r,a),c=d(e,i,o,a),u=f.pointAt(t,e,n,i,a),l=f.pointAt(n,i,r,o,a);return[[t,e,u.x,u.y,s,c],[s,c,l.x,l.y,r,o]]}function m(t,e,n,i,r,o,s){if(0===s)return(a(t,e,n,i)+a(n,i,r,o)+a(t,e,r,o))/2;var c=y(t,e,n,i,r,o,.5),u=c[0],l=c[1];return u.push(s-1),l.push(s-1),m.apply(null,u)+m.apply(null,l)}var b={box:function(t,e,n,i,r,o){var a=g(t,n,r)[0],s=g(e,i,o)[0],u=[t,r],l=[e,o];return void 0!==a&&u.push(d(t,n,r,a)),void 0!==s&&l.push(d(e,i,o,s)),c(u,l)},length:function(t,e,n,i,r,o){return m(t,e,n,i,r,o,3)},nearestPoint:function(t,e,n,i,r,o,a,s){return p([t,n,r],[e,i,o],a,s,d)},pointDistance:function(t,e,n,i,r,o,s,c){var u=this.nearestPoint(t,e,n,i,r,o,s,c);return a(u.x,u.y,s,c)},interpolationAt:d,pointAt:function(t,e,n,i,r,o,a){return{x:d(t,n,r,a),y:d(e,i,o,a)}},divide:function(t,e,n,i,r,o,a){return y(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,r,o,a){var s=v(t,n,r,a),c=v(e,i,o,a);return l(Math.atan2(c,s))}};function x(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function O(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function j(t,e,n,i){var r,o,a,c=-3*t+9*e-9*n+3*i,u=6*t-12*e+6*n,l=3*e-3*t,h=[];if(s(c,0))s(u,0)||(r=-l/u)>=0&&r<=1&&h.push(r);else{var f=u*u-4*c*l;s(f,0)?h.push(-u/(2*c)):f>0&&(o=(-u-(a=Math.sqrt(f)))/(2*c),(r=(-u+a)/(2*c))>=0&&r<=1&&h.push(r),o>=0&&o<=1&&h.push(o))}return h}function w(t,e,n,i,r,o,a,s,c){var u=x(t,n,r,a,c),l=x(e,i,o,s,c),h=f.pointAt(t,e,n,i,c),p=f.pointAt(n,i,r,o,c),d=f.pointAt(r,o,a,s,c),g=f.pointAt(h.x,h.y,p.x,p.y,c),v=f.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,h.x,h.y,g.x,g.y,u,l],[u,l,v.x,v.y,d.x,d.y,a,s]]}function C(t,e,n,i,r,o,s,c,u){if(0===u)return function(t,e){for(var n=0,i=t.length,r=0;r<i;r++)n+=a(t[r],e[r],t[(r+1)%i],e[(r+1)%i]);return n/2}([t,n,r,s],[e,i,o,c]);var l=w(t,e,n,i,r,o,s,c,.5),h=l[0],f=l[1];return h.push(u-1),f.push(u-1),C.apply(null,h)+C.apply(null,f)}var M={extrema:j,box:function(t,e,n,i,r,o,a,s){for(var u=[t,a],l=[e,s],h=j(t,n,r,a),f=j(e,i,o,s),p=0;p<h.length;p++)u.push(x(t,n,r,a,h[p]));for(p=0;p<f.length;p++)l.push(x(e,i,o,s,f[p]));return c(u,l)},length:function(t,e,n,i,r,o,a,s){return C(t,e,n,i,r,o,a,s,3)},nearestPoint:function(t,e,n,i,r,o,a,s,c,u,l){return p([t,n,r,a],[e,i,o,s],c,u,x,l)},pointDistance:function(t,e,n,i,r,o,s,c,u,l,h){var f=this.nearestPoint(t,e,n,i,r,o,s,c,u,l,h);return a(f.x,f.y,u,l)},interpolationAt:x,pointAt:function(t,e,n,i,r,o,a,s,c){return{x:x(t,n,r,a,c),y:x(e,i,o,s,c)}},divide:function(t,e,n,i,r,o,a,s,c){return w(t,e,n,i,r,o,a,s,c)},tangentAngle:function(t,e,n,i,r,o,a,s,c){var u=O(t,n,r,a,c),h=O(e,i,o,s,c);return l(Math.atan2(h,u))}};function S(t,e){var n=Math.abs(t);return e>0?n:-1*n}function k(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function A(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function I(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function T(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var B={box:function(t,e,n,i,r,o,a){for(var s=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,i,r),c=1/0,u=-1/0,l=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;o<a?o<f&&f<a&&l.push(f):a<f&&f<o&&l.push(f)}for(h=0;h<l.length;h++){var p=k(t,0,n,i,r,l[h]);p<c&&(c=p),p>u&&(u=p)}var d=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,i,r),g=1/0,v=-1/0,y=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(h=0;h<y.length;h++){var b=A(0,e,n,i,r,y[h]);b<g&&(g=b),b>v&&(v=b)}return{x:c,y:g,width:u-c,height:v-g}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,r,o,a,s,c){var u=T(s-t,c-e,-r),l=function(t,e,n,i,r,o){var a=n,s=i;if(0===a||0===s)return{x:0,y:0};for(var c,u,l=r-0,h=o-0,f=Math.abs(l),p=Math.abs(h),d=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=a*Math.cos(v),u=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/a,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-m,O=u-b,j=f-m,w=p-b,C=Math.hypot(O,x),M=Math.hypot(w,j);v+=C*Math.asin((x*w-O*j)/(C*M))/Math.sqrt(d+g-c*c-u*u),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:0+S(c,l),y:0+S(u,h)}}(0,0,n,i,u[0],u[1]),h=function(t,e,n,i){return(Math.atan2(i*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,i,l.x,l.y);h<o?l=I(n,i,o):h>a&&(l=I(n,i,a));var f=T(l.x,l.y,r);return{x:f[0]+t,y:f[1]+e}},pointDistance:function(t,e,n,i,r,o,s,c,u){var l=this.nearestPoint(t,e,n,i,c,u);return a(l.x,l.y,c,u)},pointAt:function(t,e,n,i,r,o,a,s){var c=(a-o)*s+o;return{x:k(t,0,n,i,r,c),y:A(0,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,o,a,s){var c=(a-o)*s+o,u=function(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}(0,0,n,i,r,0,0,c),h=function(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}(0,0,n,i,r,0,0,c);return l(Math.atan2(h,u))}};function L(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var r=t[i],o=t[i+1],s=a(r[0],r[1],o[0],o[1]);n.push({from:r,to:o,length:s}),e+=s}return{segments:n,totalLength:e}}var F={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var r=t[i];e.push(r[0]),n.push(r[1])}return c(e,n)},length:function(t){return function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],r=t[n+1];e+=a(i[0],i[1],r[0],r[1])}return e}(t)},pointAt:function(t,e){return function(t,e){if(e>1||e<0||t.length<2)return null;var n=L(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<i.length;s++){var c=i[s],u=c.from,l=c.to,h=c.length/r;if(e>=o&&e<=o+h){a=f.pointAt(u[0],u[1],l[0],l[1],(e-o)/h);break}o+=h}return a}(t,e)},pointDistance:function(t,e,n){return function(t,e,n){for(var i=1/0,r=0;r<t.length-1;r++){var o=t[r],a=t[r+1],s=f.pointDistance(o[0],o[1],a[0],a[1],e,n);s<i&&(i=s)}return i}(t,e,n)},tangentAngle:function(t,e){return function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=L(t),i=n.segments,r=n.totalLength,o=0,a=0,s=0;s<i.length;s++){var c=i[s],u=c.from,l=c.to,h=c.length/r;if(e>=o&&e<=o+h){a=Math.atan2(l[1]-u[1],l[0]-u[0]);break}o+=h}return a}(t,e)}}},EkMX:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"easeLinear",function(){return S}),n.d(i,"easeQuad",function(){return I}),n.d(i,"easeQuadIn",function(){return k}),n.d(i,"easeQuadOut",function(){return A}),n.d(i,"easeQuadInOut",function(){return I}),n.d(i,"easeCubic",function(){return L}),n.d(i,"easeCubicIn",function(){return T}),n.d(i,"easeCubicOut",function(){return B}),n.d(i,"easeCubicInOut",function(){return L}),n.d(i,"easePoly",function(){return P}),n.d(i,"easePolyIn",function(){return F}),n.d(i,"easePolyOut",function(){return E}),n.d(i,"easePolyInOut",function(){return P}),n.d(i,"easeSin",function(){return Y}),n.d(i,"easeSinIn",function(){return R}),n.d(i,"easeSinOut",function(){return _}),n.d(i,"easeSinInOut",function(){return Y}),n.d(i,"easeExp",function(){return V}),n.d(i,"easeExpIn",function(){return N}),n.d(i,"easeExpOut",function(){return X}),n.d(i,"easeExpInOut",function(){return V}),n.d(i,"easeCircle",function(){return $}),n.d(i,"easeCircleIn",function(){return H}),n.d(i,"easeCircleOut",function(){return W}),n.d(i,"easeCircleInOut",function(){return $}),n.d(i,"easeBounce",function(){return Z}),n.d(i,"easeBounceIn",function(){return U}),n.d(i,"easeBounceOut",function(){return Z}),n.d(i,"easeBounceInOut",function(){return K}),n.d(i,"easeBack",function(){return tt}),n.d(i,"easeBackIn",function(){return J}),n.d(i,"easeBackOut",function(){return Q}),n.d(i,"easeBackInOut",function(){return tt}),n.d(i,"easeElastic",function(){return it}),n.d(i,"easeElasticIn",function(){return nt}),n.d(i,"easeElasticOut",function(){return it}),n.d(i,"easeElasticInOut",function(){return rt});var r,o,a=n("mrSG"),s=n("e0ae"),c=n("Mw2x"),u=n("sstZ"),l=n("iTfj"),h=0,f=0,p=0,d=0,g=0,v=0,y="object"==typeof performance&&performance.now?performance:Date,m="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function b(){return g||(m(x),g=y.now()+v)}function x(){g=0}function O(){this._call=this._time=this._next=null}function j(t,e,n){var i=new O;return i.restart(t,e,n),i}function w(){g=(d=y.now())+v,h=f=0;try{!function(){b(),++h;for(var t,e=r;e;)(t=g-e._time)>=0&&e._call.call(null,t),e=e._next;--h}()}finally{h=0,function(){for(var t,e,n=r,i=1/0;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);o=t,M(i)}(),g=0}}function C(){var t=y.now(),e=t-d;e>1e3&&(v-=e,d=t)}function M(t){h||(f&&(f=clearTimeout(f)),t-g>24?(t<1/0&&(f=setTimeout(w,t-y.now()-v)),p&&(p=clearInterval(p))):(p||(d=y.now(),p=setInterval(C,1e3)),h=1,m(w)))}function S(t){return+t}function k(t){return t*t}function A(t){return t*(2-t)}function I(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function T(t){return t*t*t}function B(t){return--t*t*t+1}function L(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}O.prototype=j.prototype={constructor:O,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?b():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:r=this,o=this),this._call=t,this._time=n,M()},stop:function(){this._call&&(this._call=null,this._time=1/0,M())}};var F=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),E=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),P=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),D=Math.PI,z=D/2;function R(t){return 1==+t?1:1-Math.cos(t*z)}function _(t){return Math.sin(t*z)}function Y(t){return(1-Math.cos(D*t))/2}function G(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function N(t){return G(1-+t)}function X(t){return 1-G(t)}function V(t){return((t*=2)<=1?G(1-t):2-G(t-1))/2}function H(t){return 1-Math.sqrt(1-t*t)}function W(t){return Math.sqrt(1- --t*t)}function $(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var q=7.5625;function U(t){return 1-Z(1-t)}function Z(t){return(t=+t)<.36363636363636365?q*t*t:t<.7272727272727273?q*(t-=.5454545454545454)*t+.75:t<.9090909090909091?q*(t-=.8181818181818182)*t+.9375:q*(t-=.9545454545454546)*t+.984375}function K(t){return((t*=2)<=1?1-Z(1-t):Z(t-1)+1)/2}var J=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),Q=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),tt=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),et=2*Math.PI,nt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=et);function r(t){return e*G(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*et)},r.period=function(n){return t(e,n)},r}(1,.3),it=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=et);function r(t){return 1-e*G(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*et)},r.period=function(n){return t(e,n)},r}(1,.3),rt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=et);function r(t){return((t=2*t-1)<0?e*G(-t)*Math.sin((i-t)/n):2-e*G(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*et)},r.period=function(n){return t(e,n)},r}(1,.3),ot=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function at(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function st(){}var ct=1/.7,ut="\\s*([+-]?\\d+)\\s*",lt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ht="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ft=/^#([0-9a-f]{3,8})$/,pt=new RegExp("^rgb\\("+[ut,ut,ut]+"\\)$"),dt=new RegExp("^rgb\\("+[ht,ht,ht]+"\\)$"),gt=new RegExp("^rgba\\("+[ut,ut,ut,lt]+"\\)$"),vt=new RegExp("^rgba\\("+[ht,ht,ht,lt]+"\\)$"),yt=new RegExp("^hsl\\("+[lt,ht,ht]+"\\)$"),mt=new RegExp("^hsla\\("+[lt,ht,ht,lt]+"\\)$"),bt={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};function xt(){return this.rgb().formatHex()}function Ot(){return this.rgb().formatRgb()}function jt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ft.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?wt(e):3===n?new kt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ct(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ct(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=pt.exec(t))?new kt(e[1],e[2],e[3],1):(e=dt.exec(t))?new kt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=gt.exec(t))?Ct(e[1],e[2],e[3],e[4]):(e=vt.exec(t))?Ct(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=yt.exec(t))?Bt(e[1],e[2]/100,e[3]/100,1):(e=mt.exec(t))?Bt(e[1],e[2]/100,e[3]/100,e[4]):bt.hasOwnProperty(t)?wt(bt[t]):"transparent"===t?new kt(NaN,NaN,NaN,0):null}function wt(t){return new kt(t>>16&255,t>>8&255,255&t,1)}function Ct(t,e,n,i){return i<=0&&(t=e=n=NaN),new kt(t,e,n,i)}function Mt(t){return t instanceof st||(t=jt(t)),t?new kt((t=t.rgb()).r,t.g,t.b,t.opacity):new kt}function St(t,e,n,i){return 1===arguments.length?Mt(t):new kt(t,e,n,null==i?1:i)}function kt(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function At(){return"#"+Tt(this.r)+Tt(this.g)+Tt(this.b)}function It(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Tt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Bt(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ft(t,e,n,i)}function Lt(t){if(t instanceof Ft)return new Ft(t.h,t.s,t.l,t.opacity);if(t instanceof st||(t=jt(t)),!t)return new Ft;if(t instanceof Ft)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,c=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=c<.5?o+r:2-o-r,a*=60):s=c>0&&c<1?0:a,new Ft(a,s,c,t.opacity)}function Ft(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Et(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Pt(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}ot(st,jt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:xt,formatHex:xt,formatHsl:function(){return Lt(this).formatHsl()},formatRgb:Ot,toString:Ot}),ot(kt,St,at(st,{brighter:function(t){return t=null==t?ct:Math.pow(ct,t),new kt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new kt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:At,formatHex:At,formatRgb:It,toString:It})),ot(Ft,function(t,e,n,i){return 1===arguments.length?Lt(t):new Ft(t,e,n,null==i?1:i)},at(st,{brighter:function(t){return t=null==t?ct:Math.pow(ct,t),new Ft(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Ft(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new kt(Et(t>=240?t-240:t+120,r,i),Et(t,r,i),Et(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Dt=function(t){return function(){return t}};function zt(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Dt(isNaN(t)?e:t)}var Rt=function t(e){var n=function(t){return 1==(t=+t)?zt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Dt(isNaN(e)?n:e)}}(e);function i(t,e){var i=n((t=St(t)).r,(e=St(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=zt(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function _t(t){return function(e){var n,i,r=e.length,o=new Array(r),a=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=St(e[n]),o[n]=i.r||0,a[n]=i.g||0,s[n]=i.b||0;return o=t(o),a=t(a),s=t(s),i.opacity=1,function(t){return i.r=o(t),i.g=a(t),i.b=s(t),i+""}}}_t(function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1];return Pt((n-i/e)*e,i>0?t[i-1]:2*r-o,r,o,i<e-1?t[i+2]:2*o-r)}}),_t(function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e);return Pt((n-i/e)*e,t[(i+e-1)%e],t[i%e],t[(i+1)%e],t[(i+2)%e])}});var Yt=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}};function Gt(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Nt(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=Ut(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}var Xt=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},Vt=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ht=function(t,e){var n,i={},r={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?i[n]=Ut(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},Wt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$t=new RegExp(Wt.source,"g"),qt=function(t,e){var n,i,r,o=Wt.lastIndex=$t.lastIndex=0,a=-1,s=[],c=[];for(t+="",e+="";(n=Wt.exec(t))&&(i=$t.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:Vt(n,i)})),o=$t.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,i=0;i<e;++i)s[(n=c[i]).i]=n.x(t);return s.join("")})},Ut=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?Dt(e):("number"===i?Vt:"string"===i?(n=jt(e))?(e=n,Rt):qt:e instanceof jt?Rt:e instanceof Date?Xt:Gt(e)?Yt:Array.isArray(e)?Nt:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ht:Vt)(t,e)},Zt=n("tvuL"),Kt=[1,0,0,0,1,0,0,0,1];function Jt(t,e,n){var r,o=e.startTime;if(n<o+e.delay||e._paused)return!1;var a=e.duration,s=e.easing;if(n=n-o-e.delay,e.repeat)r=i[s](r=n%a/a);else{if(!((r=n/a)<1))return t.attr(e.onFrame?e.onFrame(1):e.toAttrs),!0;r=i[s](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else!function(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a,s,c;for(var u in o)if(!Object(l.G)(r[u],o[u]))if("path"===u){var h=o[u],f=r[u];h.length>f.length?(h=Zt.parsePathString(o[u]),f=Zt.parsePathString(r[u]),f=Zt.fillPathByDiff(f,h),f=Zt.formatPath(f,h),e.fromAttrs.path=f,e.toAttrs.path=h):e.pathFormatted||(h=Zt.parsePathString(o[u]),f=Zt.parsePathString(r[u]),f=Zt.formatPath(f,h),e.fromAttrs.path=f,e.toAttrs.path=h,e.pathFormatted=!0),i[u]=[];for(var p=0;p<h.length;p++){for(var d=h[p],g=f[p],v=[],y=0;y<d.length;y++)Object(l.K)(d[y])&&g&&Object(l.K)(g[y])?(a=Ut(g[y],d[y]),v.push(a(n))):v.push(d[y]);i[u].push(v)}}else if("matrix"===u){var m=(s=r[u]||Kt,(Gt(c=o[u]||Kt)?Yt:Nt)(s,c))(n);i[u]=m}else["fill","stroke","fillStyle","strokeStyle"].includes(u)&&/^[r,R,L,l]{1}[\s]*\(/.test(o[u])?i[u]=o[u]:Object(l.H)(o[u])||(a=Ut(r[u],o[u]),i[u]=a(n));t.attr(i)}}(t,e,r);return!1}var Qt=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this;this.timer=j(function(r){if(i.current=r,i.animators.length>0){for(var o=i.animators.length-1;o>=0;o--)if((t=i.animators[o]).destroyed)i.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)Jt(t,n=e[a],r)&&(e.splice(a,1),n.callback&&n.callback());0===e.length&&i.removeAnimator(o)}i.canvas.get("autoDraw")||i.canvas.draw()}})},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach(function(e){e.stopAnimate(t)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),te=n("5eLp"),ee=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ne(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function ie(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&Object(u.g)(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var re=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){e._triggerEvent(t.type,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(u.a)(ee,function(n){e.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(u.a)(ee,function(n){e.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new te.a(t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault(),this._emitDragoverEvents(n,t,this.currentShape,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=a.clientX-t.clientX,u=a.clientY-t.clientY;n.timeStamp-this.mousedownTimeStamp>120||c*c+u*u>40?s&&s.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,ne(i,t,a);for(var s=i.getParent();s;)s.emitDelegation(t,a),a.propagationStopped||ie(s,t,a),a.propagationPath.push(s),s=s.getParent()}else ne(this.canvas,t,a)},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),oe=Object(s.a)(),ae=oe&&"firefox"===oe.name,se=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(a.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(u.h)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new re({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Qt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");u.c&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");u.c&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(ae&&!Object(u.e)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(u.e)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t);return this.getPointByClient(e.x,e.y)},e.prototype.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}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(c.a);e.a=se},FAXy:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a=n("w02o"),s=n("YuPD"),c=n("tKoa");function u(t){var e=t.chart,n=t.options,i=n.color,r=n.liquidStyle,o=n.radius,a=n.outline,u=n.wave,l=[{percent:n.percent,type:"liquid"}];e.scale({percent:{min:0,max:1}}),e.data(l);var h=Object(s.b)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:i,style:r,shape:"liquid-fill-gauge"}}});return Object(c.c)(h).ext.geometry.customInfo({radius:o,outline:a,wave:u}),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function l(t){var e=t.chart,n=t.options,i=n.statistic,r=n.percent,a=n.meta;if(i.content&&!i.content.formatter){var c=Object(o.s)(a,["percent","formatter"]);i.content.formatter=function(t){var e=t.percent;return c?c(e):(100*e).toFixed(2)+"%"}}return Object(s.m)(e,{statistic:i,plotType:"liquid"},{percent:r}),t}function h(t){return Object(s.e)(u,l,Object(a.f)({}),a.a,a.j,a.c)(t)}var f=n("kXyF"),p=n("qaDU");function d(t,e,n){return t+(e-t)*n}function g(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function v(t,e,n,i,r,o,a){for(var s=4*Math.ceil(2*t/n*4),c=[],u=i;u<2*-Math.PI;)u+=2*Math.PI;for(;u>0;)u-=2*Math.PI;var l=o-t+(u=u/Math.PI/2*n)-2*t;c.push(["M",l,e]);for(var h=0,f=0;f<s;++f){var p=g(f*n/4,f%4,n,r);c.push(["C",p[0][0]+l,-p[0][1]+e,p[1][0]+l,-p[1][1]+e,p[2][0]+l,-p[2][1]+e]),f===s-1&&(h=p[2][0])}return c.push(["L",h+l,a+t]),c.push(["L",l,a+t]),c.push(["Z"]),c}Object(f.j)("interval","liquid-fill-gauge",{draw:function(t,e){var n=t.customInfo,r=n.radius,a=n.outline,s=n.wave,c=a.border,u=a.distance,l=s.count,h=s.length,f=Object(o.cb)(t.points,function(t,e){return Math.min(t,e.x)},1/0),g=this.parsePoint({x:.5,y:.5}),y=this.parsePoint({x:f,y:.5}),m=Math.min(g.x-y.x,y.y*r),b=function(t){var e=Object(i.a)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}(t),x=function(t){var e=Object(o.Y)({},{fill:"#fff",fillOpacity:0,lineWidth:4},t.style);return t.color&&!e.stroke&&(e.stroke=t.color),Object(o.K)(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity),e}(t);e.addShape("circle",{name:"wrap",attrs:Object(o.Y)(x,{x:g.x,y:g.y,r:m,fill:"transparent",lineWidth:c})});var O=e.addGroup({name:"waves"}),j=O.setClip({type:"circle",attrs:{x:g.x,y:g.y,r:m-u}});return function(t,e,n,i,r,o,a,s,c){for(var u=r.fill,l=r.opacity,h=a.getBBox(),f=h.maxX-h.minX,g=h.maxY-h.minY,y=0;y<i;y++){var m=i<=1?0:y/(i-1),b=o.addShape("path",{name:"waterwave-path",attrs:{path:v(s,h.minY+g*n,c,0,f/32,t,e),fill:u,opacity:d(.2,.9,m)*l}});try{var x=Object(p.a)([["t",c,0]]);b.stopAnimate(),b.animate({matrix:x},{duration:d(2500,5e3,m),repeat:!0})}catch(O){console.warn("off-screen group animate error!")}}}(g.x,g.y,1-t.points[1].y,l,b,O,j,2*m,h),e}});var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{color:"#6a99f9",radius:.9,statistic:{title:!1,content:{formatter:function(t){return(100*t.percent).toFixed(2)+"%"},style:{opacity:.75,fontSize:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192}}},e.prototype.changeData=function(t){this.update({percent:t})},e.prototype.getSchemaAdaptor=function(){return h},e}(r.a)},FH2j:function(t,e,n){"use strict";n.d(e,"getAdjust",function(){return r}),n.d(e,"registerAdjust",function(){return o}),n("Qci9"),n("WbAE");var i={},r=function(t){return i[t.toLowerCase()]},o=function(t,e){if(r(t))throw new Error("Adjust type '"+t+"' existed.");i[t.toLowerCase()]=e}},FLLP:function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a=n("w02o"),s=n("tKoa"),c=n("YuPD"),u="$$yField$$",l=n("kXyF");function h(t){var e=t.options,n=e.xField,r=e.yField,a=e.total,l=e.leaderLine,h=e.columnWidthRatio,f=e.waterfallStyle,p=e.risingFill,d=e.fallingFill,g=e.color;t.chart.data(function(t,e,n,r){return function(t,e,n,r,a){var s,u=[];if(Object(o.cb)(t,function(t,e){var r;Object(c.j)(c.a.WARN,Object(o.K)(e[n]),e[n]+" is not a valid number");var a=Object(o.Q)(e[n])?null:e[n];return u.push(Object(i.a)(Object(i.a)({},e),((r={}).$$yField$$=[t,t+a],r))),t+a},0),u.length&&a){var l=Object(o.s)(u,[[t.length-1],"$$yField$$",[1]]);u.push(((s={})[e]=a.label,s[n]=l,s.$$yField$$=[0,l],s))}return u}(t,e,n,0,r).map(function(e,n){var r;return Object(o.M)(e)?Object(i.a)(Object(i.a)({},e),((r={}).$$absoluteField$$=e[u][1],r.$$diffField$$=e[u][1]-e[u][0],r.$$isTotal$$=n===t.length,r)):e})}(e.data,n,r,a));var v=g||function(t){return Object(o.s)(t,["$$isTotal$$"])?Object(o.s)(a,["style","fill"],""):Object(o.s)(t,[u,1])-Object(o.s)(t,[u,0])>0?p:d},y=Object(c.b)({},t,{options:{xField:n,yField:u,seriesField:n,rawFields:[r,"$$diffField$$","$$isTotal$$",u],widthRatio:h,interval:{style:f,shape:"waterfall",color:v}}}),m=Object(s.c)(y).ext.geometry;return m.customInfo({leaderLine:l}),m.tooltip(r),t}function f(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,l=i.xField,h=i.yField,f=i.meta,p=Object(c.b)({},{alias:h},Object(o.s)(f,h));return Object(c.e)(Object(a.f)(((e={})[l]=r,e[h]=s,e[u]=s,e),Object(c.b)({},f,((n={})[u]=p,n.$$diffField$$=p,n.$$absoluteField$$=p,n))))(t)}function p(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.yField;return e.axis(n.xField,!1!==i&&i),!1===r?(e.axis(o,!1),e.axis(u,!1)):(e.axis(o,r),e.axis(u,r)),t}function d(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,a=n.risingFill,s=n.fallingFill;if(!1===i)e.legend(!1);else{var u=[{name:"\u589e\u52a0",value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:"\u51cf\u5c11",value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&u.push({name:r.label||"",value:"total",marker:{symbol:"square",style:Object(c.b)({},{r:5},Object(o.s)(r,"style"))}}),e.legend(Object(c.b)({},{custom:!0,position:"top",items:u},i)),e.removeInteraction("legend-filter")}return t}function g(t){var e=t.chart,n=t.options,r=n.label,o=n.labelMode,a=Object(c.c)(e,"interval");if(r){var s=r.callback,u=Object(i.f)(r,["callback"]);a.label({fields:"absolute"===o?["$$absoluteField$$"]:["$$diffField$$"],callback:s,cfg:Object(c.o)(u)})}else a.label(!1);return t}function v(t){var e=t.options,n=e.tooltip,r=e.yField;return t.chart.tooltip(!1!==n&&Object(i.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[r]},n)),t}function y(t){return Object(c.e)(h,f,p,d,v,g,a.i,a.j,a.c,a.a,Object(a.b)())(t)}Object(l.j)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,a=t.nextPoints,s=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];i&&e.push([0===n?"M":"L",i.x,i.y])}var r=t[0];return e.push(["L",r.x,r.y]),e.push(["z"]),e}(r)),l=function(t){return Object(c.b)({},t.defaultStyle,t.style,{fill:t.color})}(t);s.addShape("path",{attrs:Object(i.a)(Object(i.a)({},l),{path:u})});var h=Object(o.s)(n,"leaderLine");if(h&&a){var f=[["M",r[2].x,r[2].y],["L",a[0].x,a[0].y]];r[2].y===a[1].y&&(f[1]=["L",a[1].x,a[1].y]),f=this.parsePath(f),s.addShape("path",{attrs:Object(i.a)({path:f},h.style||{})})}return s}});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}return Object(i.d)(e,t),e.prototype.getSchemaAdaptor=function(){return y},e.prototype.getDefaultOptions=function(){return{label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{label:"\u603b\u8ba1",style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},e}(r.a)},FPPI:function(t,e,n){"use strict";e.a=function(t,e,n,i,r){for(var o,a=t.children,s=-1,c=a.length,u=t.value&&(i-e)/t.value;++s<c;)(o=a[s]).y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*u}},FqlA:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o}),n.d(e,"c",function(){return a});var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function a(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}},FxDU:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=n("QO+J"),r=n("j5sG"),o="undefined"!=typeof ResizeObserver?r.createSensor:i.createSensor;e.createSensor=o},GU7r:function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return u});var i=n("8LU1"),r=n("fXoL"),o=n("HDdC"),a=n("XNiG");n("Kj3r");var s=function(){var t=function(){function t(){h(this,t)}return p(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:function(){return new t},token:t,providedIn:"root"}),t}(),c=function(){var t=function(){function t(e){h(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return p(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=Object(i.e)(t);return new o.a(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new a.a,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Sb(s))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(s))},token:t,providedIn:"root"}),t}(),u=function(){var t=function t(){h(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[s]}),t}()},I4jL:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a});var i=n("FPPI"),r=n("7IPS"),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){for(var c,u,l,h,f,p,d,g,v,y,m,b=[],x=e.children,O=0,j=0,w=x.length,C=e.value;O<w;){l=a-n,h=s-o;do{f=x[j++].value}while(!f&&j<w);for(p=d=f,m=f*f*(y=Math.max(h/l,l/h)/(C*t)),v=Math.max(d/m,m/p);j<w;++j){if(f+=u=x[j].value,u<p&&(p=u),u>d&&(d=u),m=f*f*y,(g=Math.max(d/m,m/p))>v){f-=u;break}v=g}b.push(c={value:f,dice:l<h,children:x.slice(O,j)}),c.dice?Object(i.a)(c,n,o,a,C?o+=h*f/C:s):Object(r.a)(c,n,o,C?n+=l*f/C:a,s),C-=f,O=j}return b}e.a=function t(e){function n(t,n,i,r,o){a(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},I7nc:function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return o});var i=n("iTfj");function r(t,e){var n=t.field,r=t.fields;if(Object(i.O)(n))return n;if(Object(i.B)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),Object(i.O)(r))return r;if(Object(i.B)(r)&&r.length)return r[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function o(t){var e=[];return t&&t.each?t.each(function(t){e.push(t)}):t&&t.eachNode&&t.eachNode(function(t){e.push(t)}),e}},IeU1:function(t,e,n){"use strict";function i(t){return null==t?null:r(t)}function r(t){if("function"!=typeof t)throw new Error;return t}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r})},IvmH:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},r={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"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"}},KMYG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("mrSG"),r=n("5HRO"),o=n("YuPD"),a=n("WOQw");function s(t){var e=t.options,n=e.polygon,s=e.xField,c=e.yField,u=e.seriesField,l=e.tooltip,h=Object(r.a)(l,[s,c,u]),f=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"polygon",colorField:u,tooltipFields:f,mapping:Object(i.a)({tooltip:p},n)}})):t}},KavR:function(t,e,n){"use strict";var i=n("FqlA"),r=n("iTfj"),o=n("0Xep"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.process=function(t){var e=r.e(t),n=r.q(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,o=this.groupData(n,t);return r.j(o,function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)})},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,i=t.next,r=(i-n)*o.c;return(i-r-(e=n+r))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,i){var o=this,a=this.getAdjustRange(e,n,i);return r.j(t,function(t){t[e]=o.getAdjustOffset(a)}),t},e}(n("Qci9").a);e.a=a},L16w:function(t,e,n){"use strict";e.a={fontFamily:'\n "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},LmB6:function(t,e,n){"use strict";var i=n("mrSG"),r=n("f6Jy"),o=n("sstZ"),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(o.i)(i,e),n}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r.a);e.a=a},LvGN:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"c",function(){return l}),n.d(e,"d",function(){return p}),n.d(e,"e",function(){return x}),n.d(e,"b",function(){return k});var i=n("iTfj"),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;function a(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(6*o[1].x-o[0].x+o[2].x)/6,(6*o[1].y-o[0].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var s="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",c=new RegExp("([a-z])["+s+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+s+"]*,?["+s+"]*)+)","ig"),u=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+s+"]*,?["+s+"]*","ig");function l(t){if(!t)return null;if(Object(i.B)(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 String(t).replace(c,function(t,i,r){var o=[],a=i.toLowerCase();if(r.replace(u,function(t,e){e&&o.push(+e)}),"m"===a&&o.length>2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else for(;o.length>=e[a]&&(n.push([i].concat(o.splice(0,e[a]))),e[a]););return""}),n}var h=/[a-z]/;function f(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function p(t){var e=l(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++)if(h.test(g=e[i][0])||["V","H","T","S"].indexOf(g)>=0){n=!0;break}if(!n)return e;var r=[],o=0,a=0,s=0,c=0,u=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(s=o=+p[1],c=a=+p[2],u++,r[0]=["M",o,a]),i=u;for(var d=e.length;i<d;i++){var g,v=e[i],y=r[i-1],m=[],b=(g=v[0]).toUpperCase();if(g!==b)switch(m[0]=b,b){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+o,m[7]=+v[7]+a;break;case"V":m[1]=+v[1]+a;break;case"H":m[1]=+v[1]+o;break;case"M":s=+v[1]+o,c=+v[2]+a;break;default:for(var x=1,O=v.length;x<O;x++)m[x]=+v[x]+(x%2?o:a)}else m=e[i];switch(b){case"Z":o=+s,a=+c;break;case"H":m=["L",o=m[1],a];break;case"V":m=["L",o,a=m[1]];break;case"T":o=m[1],a=m[2];var j=f([y[1],y[2]],[y[3],y[4]]);m=["Q",j[0],j[1],o,a];break;case"S":o=m[m.length-2],a=m[m.length-1];var w=y.length,C=f([y[w-4],y[w-3]],[y[w-2],y[w-1]]);m=["C",C[0],C[1],m[1],m[2],o,a];break;case"M":s=m[m.length-2],c=m[m.length-1];break;default:o=m[m.length-2],a=m[m.length-1]}r.push(m)}return r}function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function g(t,e){return d(t)*d(e)?(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e)):1}function v(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(g(t,e))}function y(t,e){return t[0]===e[0]&&t[1]===e[1]}function m(t,e){var n=e[1],r=e[2],o=Object(i.Z)(Object(i.mb)(e[3]),2*Math.PI),a=e[4],s=e[5],c=t[0],u=t[1],l=e[6],h=e[7],f=Math.cos(o)*(c-l)/2+Math.sin(o)*(u-h)/2,p=-1*Math.sin(o)*(c-l)/2+Math.cos(o)*(u-h)/2,d=f*f/(n*n)+p*p/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var m=n*n*(p*p)+r*r*(f*f),b=m?Math.sqrt((n*n*(r*r)-m)/m):1;a===s&&(b*=-1),isNaN(b)&&(b=0);var x=r?b*n*p/r:0,O=n?b*-r*f/n:0,j=(c+l)/2+Math.cos(o)*x-Math.sin(o)*O,w=(u+h)/2+Math.sin(o)*x+Math.cos(o)*O,C=[(f-x)/n,(p-O)/r],M=[(-1*f-x)/n,(-1*p-O)/r],S=v([1,0],C),k=v(C,M);return g(C,M)<=-1&&(k=Math.PI),g(C,M)>=1&&(k=0),0===s&&k>0&&(k-=2*Math.PI),1===s&&k<0&&(k+=2*Math.PI),{cx:j,cy:w,rx:y(t,[l,h])?0:n,ry:y(t,[l,h])?0:r,startAngle:S,endAngle:S+k,xRotation:o,arcFlag:a,sweepFlag:s}}function b(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function x(t){for(var e=[],n=null,a=null,s=null,c=0,u=(t=function(t){var e=t||[];return Object(i.B)(e)?e:Object(i.O)(e)?(e=e.match(r),Object(i.j)(e,function(t,n){if((t=t.match(o))[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(i.j)(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[n]=t}),e):void 0}(t)).length,l=0;l<u;l++){var h=t[l];a=t[l+1];var f=h[0],p={command:f,prePoint:n,params:h,startTangent:null,endTangent:null};switch(f){case"M":s=[h[1],h[2]],c=l;break;case"A":var d=m(n,h);p.arcParams=d}if("Z"===f)n=s,a=t[c+1];else{var g=h.length;n=[h[g-2],h[g-1]]}a&&"Z"===a[0]&&(a=t[c],e[c]&&(e[c].prePoint=n)),p.currentPoint=n,e[c]&&y(n,e[c].currentPoint)&&(e[c].prePoint=p.prePoint),p.nextPoint=a?[a[a.length-2],a[a.length-1]]:null;var v=p.prePoint;if(["L","H","V"].includes(f))p.startTangent=[v[0]-n[0],v[1]-n[1]],p.endTangent=[n[0]-v[0],n[1]-v[1]];else if("Q"===f)p.startTangent=[v[0]-(x=[h[1],h[2]])[0],v[1]-x[1]],p.endTangent=[n[0]-x[0],n[1]-x[1]];else if("T"===f){var x=b((j=e[l-1]).currentPoint,v);"Q"===j.command?(p.command="Q",p.startTangent=[v[0]-x[0],v[1]-x[1]],p.endTangent=[n[0]-x[0],n[1]-x[1]]):(p.command="TL",p.startTangent=[v[0]-n[0],v[1]-n[1]],p.endTangent=[n[0]-v[0],n[1]-v[1]])}else if("C"===f){var O=[h[3],h[4]];p.startTangent=[v[0]-(w=[h[1],h[2]])[0],v[1]-w[1]],p.endTangent=[n[0]-O[0],n[1]-O[1]]}else if("S"===f){var j,w=b((j=e[l-1]).currentPoint,v);O=[h[1],h[2]],"C"===j.command?(p.command="C",p.startTangent=[v[0]-w[0],v[1]-w[1]],p.endTangent=[n[0]-O[0],n[1]-O[1]]):(p.command="SQ",p.startTangent=[v[0]-O[0],v[1]-O[1]],p.endTangent=[n[0]-O[0],n[1]-O[1]])}else if("A"===f){var C=.001,M=p.arcParams||{},S=M.cx,k=void 0===S?0:S,A=M.cy,I=void 0===A?0:A,T=M.rx,B=void 0===T?0:T,L=M.ry,F=void 0===L?0:L,E=M.sweepFlag,P=M.startAngle,D=void 0===P?0:P,z=M.endAngle,R=void 0===z?0:z;0===(void 0===E?0:E)&&(C*=-1);var _=B*Math.cos(D-C)+k,Y=F*Math.sin(D-C)+I;p.startTangent=[_-s[0],Y-s[1]];var G=B*Math.cos(D+R+C)+k,N=F*Math.sin(D+R-C)+I;p.endTangent=[v[0]-G,v[1]-N]}e.push(p)}return e}var O=function(t,e,n){return t>=e&&t<=n};function j(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function w(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function C(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(w(a,s,[e,n]))return!0;j(a[1]-n)>0!=j(s[1]-n)>0&&j(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}function M(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],o=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function S(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function k(t,e){if(t.length<2||e.length<2)return!1;var n,r,o=S(t);if((r=S(e)).minX>(n=o).maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var a=!1;if(Object(i.j)(e,function(e){if(C(t,e[0],e[1]))return a=!0,!1}),a)return!0;if(Object(i.j)(t,function(t){if(C(e,t[0],t[1]))return a=!0,!1}),a)return!0;var s=M(t),c=M(e),u=!1;return Object(i.j)(c,function(t){if(function(t,e){var n=!1;return Object(i.j)(t,function(t){if(function(t,e,n,i){var r=n.x-t.x,o=n.y-t.y,a=e.x-t.x,s=e.y-t.y,c=i.x-n.x,u=i.y-n.y,l=a*u-s*c,h=null;if(l*l>.001*(a*a+s*s)*(c*c+u*u)){var f=(r*u-o*c)/l,p=(r*s-o*a)/l;O(f,0,1)&&O(p,0,1)&&(h={x:t.x+f*a,y:t.y+f*s})}return h}(t.from,t.to,e.from,e.to))return n=!0,!1}),n}(s,t))return u=!0,!1}),u}},MaEA:function(t,e,n){"use strict";var i=n("mrSG"),r=n("zK8m"),o=n("aSjE"),a=function(t){function e(e){return t.call(this,e)||this}return Object(i.d)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var s=Object(o.c)(e,[t.minX,t.minY]),c=Object(o.c)(e,[t.maxX,t.minY]),u=Object(o.c)(e,[t.minX,t.maxY]),l=Object(o.c)(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],u[0],l[0]),r=Math.max(s[0],c[0],u[0],l[0]),i=Math.min(s[1],c[1],u[1],l[1]),a=Math.max(s[1],c[1],u[1],l[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=r+p+g,b=i-p+y,x=a+p+y;n=Math.min(n,n-p+g),r=Math.max(r,m),i=Math.min(i,b),a=Math.max(a,x)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1],o=(r=this.invertFromMatrix(r))[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(r.a);e.a=a},MeYt:function(t,e,n){"use strict";var i=n("mrSG"),r=n("iTfj"),o=n("1//c"),a=n("jqgP"),s=n("5UbV"),c=n("NmWf"),u=["visible","tip","delegateObject"],l=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(r.j)(this.get("shapesMap"),function(n){n.get("name")===t&&e.push(n)}),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.a)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.a)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.d)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,o=Object(i.f)(e,["id","component"]),a=new r(Object(i.a)(Object(i.a)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(r.I)(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,o=this.get("animate"),a=this.get("animateOption"),c=t.getChildren().slice(0);Object(r.j)(c,function(t){var c=t.get("id"),h=i.getElementById(c),f=t.get("name");if(h)if(t.get("isComponent")){var p=t.get("component"),d=h.get("component"),g=Object(r.bb)(p.cfg,Object(r.i)(Object(r.R)(p.cfg),l));d.update(g),h.set("update_status","update")}else{var v=i.getReplaceAttrs(h,t);o&&a.update?i.updateAnimation(f,h,v,a.update):h.attr(v),t.isGroup()&&i.updateElements(t,h),Object(r.j)(u,function(e){h.set(e,t.get(e))}),Object(s.m)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),n){var m=y.indexOf(n);y.splice(m+1,0,t)}else y.unshift(t);if(i.registerElement(t),t.set("update_status","add"),t.get("isComponent")?(p=t.get("component")).set("container",e):t.isGroup()&&i.registerNewGroup(t),n=t,o){var b=i.get("isInit")?a.appear:a.enter;b&&i.addAnimation(f,t,b)}}})},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(r.j)(e,function(t){t.set("update_status",null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(r.Y)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(r.j)(n,function(t,e){void 0===i[e]&&(i[e]=void 0)}),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(r.j)(n,function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)})},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(r.j)(e,function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)});var i=this.get("animate"),o=this.get("animateOption");Object(r.j)(n,function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&o.leave){var u=Object(r.Y)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,u)}else t.removeElement(s)}delete e[a]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c.a);e.a=h},Mj7Y:function(t,e,n){"use strict";n.d(e,"a",function(){return D});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("w02o"),s=n("tKoa"),c=n("iTfj"),u={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3},l=Math.PI/180,h=2048;function f(t){return t.text}function p(){return"serif"}function d(){return"normal"}function g(t){return t.value}function v(){return 90*~~(2*Math.random())}function y(){return 1}function m(t,e,n,i){if(!e.sprite){var r=t.context,o=t.ratio;r.clearRect(0,0,2048/o,h/o);var a=0,s=0,c=0,u=n.length;for(--i;++i<u;){e=n[i],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var f=r.measureText(e.text+"m").width*o,p=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*l),g=Math.cos(e.rotate*l),v=f*g,y=f*d,m=p*g,b=p*d;f=Math.max(Math.abs(v+b),Math.abs(v-b))+31>>5<<5,p=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else f=f+31>>5<<5;if(p>c&&(c=p),a+f>=2048&&(a=0,s+=c,c=0),s+p>=h)break;r.translate((a+(f>>1))/o,(s+(p>>1))/o),e.rotate&&r.rotate(e.rotate*l),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=f,e.height=p,e.xoff=a,e.yoff=s,e.x1=f>>1,e.y1=p>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=f}for(var x=r.getImageData(0,0,2048/o,h/o).data,O=[];--i>=0;)if((e=n[i]).hasText){for(var j=(f=e.width)>>5,w=(p=e.y1-e.y0,0);w<p*j;w++)O[w]=0;if(null==(a=e.xoff))return;s=e.yoff;for(var C=0,M=-1,S=0;S<p;S++){for(w=0;w<f;w++){var k=x[2048*(s+S)+(a+w)<<2]?1<<31-w%32:0;O[j*S+(w>>5)]|=k,C|=k}C?M=S:(e.y0++,p--,S--,s++)}e.y1=e.y0+M,e.sprite=O.slice(0,(e.y1-e.y0)*j)}}}function b(t,e,n){for(var i,r=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,u=t.y1-t.y0,l=(t.y+t.y0)*(n>>=5)+(a>>5),h=0;h<u;h++){i=0;for(var f=0;f<=o;f++)if((i<<c|(f<o?(i=r[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function x(t,e){var n=t[0],i=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function O(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function j(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function w(){return document.createElement("canvas")}function C(t){return Object(c.H)(t)?t:function(){return t}}var M={archimedean:O,rectangular:function(t){var e=4*t[0]/t[1],n=0,i=0;return function(t){var r=t<0?-1:1;switch(Math.sqrt(1+4*r*t)-r&3){case 0:n+=e;break;case 1:i+=4;break;case 2:n-=e;break;default:i-=4}return[n,i]}}};function S(t){var e=t.width,n=t.height,i=t.container,r=t.padding,a=t.appendPadding;if(t.autoFit){var s=Object(o.g)(i);e=s.width,n=s.height}e=e||400,n=n||400;var c=function(t){var e=k(t.padding),n=k(t.appendPadding);return[e[0]+n[0],e[1]+n[1],e[2]+n[2],e[3]+n[3]]}({padding:r,appendPadding:a});return[e-(c[3]+c[1]),n-(c[0]+c[2])]}function k(t){if(Object(c.K)(t))return[t,t,t,t];if(Object(c.B)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function A(t,e){if(Object(c.H)(t))return t;if(Object(c.B)(t)){var n=t[0],i=t[1];if(!e)return function(){return(i+n)/2};var r=e[0],o=e[1];return o===r?function(){return(i+n)/2}:function(t){return(i-n)/(o-r)*(t.value-r)+n}}return function(){return t}}function I(t){var e=function(t){var e=t.wordStyle.rotationSteps;return e<1&&(Object(o.j)(o.a.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,i=e.rotationSteps;if(!Object(c.B)(n))return n;var r=n[0],a=n[1],s=1===i?0:(a-r)/(i-1);return function(){return a===r?a:Math.floor(Math.random()*i)*s}}function T(t){return Math.max.apply(Math,t)}function B(t){var e=t.chart,n=t.options,r=n.colorField,a=n.color,l=function(t){var e=t.options,n=t.chart,r=n.width,o=n.height,a=n.padding,s=n.appendPadding,l=n.ele,k=e.data,B=e.imageMask,L=e.wordField,F=e.weightField,E=e.colorField,P=e.wordStyle,D=e.timeInterval,z=e.random,R=e.spiral,_=e.autoFit,Y=void 0===_||_,G=e.placementStrategy;if(!k||!k.length)return[];var N,X=P.fontFamily,V=P.fontWeight,H=P.padding,W=P.fontSize,$=function(t,e){return t.map(function(t){return t[e]}).filter(function(t){return"number"==typeof t&&!isNaN(t)})}(k,F),q=[(N=$,Math.min.apply(Math,N)),T($)],U=k.map(function(t){return{text:t[L],value:t[F],color:t[E],datum:t}}),Z={imageMask:B,font:X,fontSize:A(W,q),fontWeight:V,size:S({width:r,height:o,padding:a,appendPadding:s,autoFit:Y,container:l}),padding:H,timeInterval:D,random:z,spiral:R,rotate:I(e)};if(Object(c.H)(G)){var K=U.map(function(t,e,r){return Object(i.a)(Object(i.a)(Object(i.a)({},t),{hasText:!!t.text,font:C(Z.font)(t,e,r),weight:C(Z.fontWeight)(t,e,r),rotate:C(Z.rotate)(t,e,r),size:C(Z.fontSize)(t,e,r),style:"normal"}),G.call(n,t,e,r))});return K.push({text:"",value:0,x:0,y:0,opacity:0}),K.push({text:"",value:0,x:Z.size[0],y:Z.size[1],opacity:0}),K}return function(t,e){return function(t,e){var n=function(){var t=[256,256],e=p,n=g,i=d,r=v,o=y,a=O,s=Math.random,c=[],u=1/0,l=f,S=d,k=w,A={};function I(e,n,i){for(var r,o,c,u=n.x,l=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=a(t),p=s()<.5?1:-1,d=-p;(r=f(d+=p))&&(o=~~r[0],c=~~r[1],!(Math.min(Math.abs(o),Math.abs(c))>=h));)if(n.x=u+o,n.y=l+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||i&&b(n,e,t[0])||i&&(k=n,A=i,!(k.x+k.x1>A[0].x&&k.x+k.x0<A[1].x&&k.y+k.y1>A[0].y&&k.y+k.y0<A[1].y)))){for(var g=n.sprite,v=n.width>>5,y=t[0]>>5,m=n.x-(v<<4),x=127&m,O=32-x,j=n.y1-n.y0,w=void 0,C=(n.y+n.y0)*y+(m>>5),M=0;M<j;M++){w=0;for(var S=0;S<=v;S++)e[C+S]|=w<<O|(S<v?(w=g[M*v+S])>>>x:0);C+=y}return delete n.sprite,!0}var k,A;return!1}return A.start=function(){var a=t[0],f=t[1],p=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=h/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(k()),d=A.board?A.board:j((t[0]>>5)*t[1]),g=c.length,v=[],y=c.map(function(t,a,s){return t.text=l.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=S.call(this,t,a,s),t.weight=i.call(this,t,a,s),t.rotate=r.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t}).sort(function(t,e){return e.size-t.size}),b=-1,O=A.board?[{x:0,y:0},{x:a,y:f}]:null;return function(){for(var e=Date.now();Date.now()-e<u&&++b<g;){var n=y[b];n.x=a*(s()+.5)>>1,n.y=f*(s()+.5)>>1,m(p,n,y,b),n.hasText&&I(d,n,O)&&(v.push(n),O?A.hasImage||x(O,n):O=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}A._tags=v,A._bounds=O}(),A},A.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var o=i>>5,a=j((i>>5)*r);n.width=i,n.height=r;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,i,r);for(var c=s.getImageData(0,0,i,r).data,u=0;u<r;u++)for(var l=0;l<i;l++){var h=u*i+l<<2;a[o*u+(l>>5)]|=c[h]>=250&&c[h+1]>=250&&c[h+2]>=250?1<<31-l%32:0}A.board=a,A.hasImage=!0}},A.timeInterval=function(t){u=null==t?1/0:t},A.words=function(t){c=t},A.size=function(e){t=[+e[0],+e[1]]},A.font=function(t){e=C(t)},A.fontWeight=function(t){i=C(t)},A.rotate=function(t){r=C(t)},A.spiral=function(t){a=M[t]||t},A.fontSize=function(t){n=C(t)},A.padding=function(t){o=C(t)},A.random=function(t){s=C(t)},A}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(t){Object(c.I)(e[t])||n[t](e[t])}),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach(function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2});var r=e.size,o=r[0],a=r[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:o,y:a,opacity:0}),i}(t,e=Object(c.b)({},u,e))}(U,Z)}(t);e.data(l);var k=Object(o.b)({},t,{options:{xField:"x",yField:"y",seriesField:r&&"color",point:{color:a,shape:"word-cloud"}}});return Object(s.e)(k).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),e.legend(!1),t}function L(t){return Object(o.e)(Object(a.f)({x:{nice:!1},y:{nice:!1}}))(t)}function F(t){Object(o.e)(B,L,a.k,a.c,a.a,a.j,a.i)(t)}var E=n("kXyF");function P(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Object(E.j)("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,o=e.addShape("text",{attrs:Object(i.a)(Object(i.a)({},P(t)),{x:n,y:r})}),a=t.data.rotate;return"number"==typeof a&&E.e.rotate(o,a*Math.PI/180),o}});var D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{timeInterval:2e3,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},e.prototype.render=function(){var e=this;return new Promise(function(n){var r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var a,s=function(r){e.options=Object(i.a)(Object(i.a)({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};(a=r,new Promise(function(t,e){if(a instanceof HTMLImageElement)t(a);else{if(Object(c.O)(a)){var n=new Image;return n.crossOrigin="anonymous",n.src=a,n.onload=function(){t(n)},void(n.onerror=function(){Object(o.j)(o.a.ERROR,!1,"image %s load failed !!!",a),e()})}Object(o.j)(o.a.WARN,void 0===a,"The type of imageMask option must be String or HTMLImageElement."),e()}})).then(s).catch(s)})},e.prototype.getSchemaAdaptor=function(){return F},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){t.prototype.triggerResize.call(e)}))},e}(r.a)},Mw2x:function(t,e,n){"use strict";var i=n("mrSG"),r=n("zK8m"),o=n("sstZ"),a={};function s(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){s(t,e)})}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach(function(t){c(t,e)})}}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],s=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return s.length>0?(Object(o.a)(s,function(t){var e=t.getBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)}),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],a=[],s=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return s.length>0?(Object(o.a)(s,function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),a.push(e.minY,e.maxY)}),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,a),i=Math.max.apply(null,a)):(t=0,e=0,n=0,i=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.a)(e,function(e){e.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];Object(o.f)(n)?i=n:i.type=n;var r=a[i.type];r||(r=Object(o.k)(i.type),a[i.type]=r);var s=this.getShapeBase(),c=new s[r](i);return this.add(c),c},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(Object(o.d)(i))n=new i(r||{parent:this});else{var a=i||{},s=this.getGroupBase();n=new s(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!Object(o.b)(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(i=this._findShape(r,a[0],a[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,a=t.length-1;a>=0;a--){var s=t[a];if(Object(o.b)(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o.j)(t.getChildren(),e)}(r,t,!1),t.set("parent",this),e&&s(t,e),i&&c(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.a)(e,function(t,e){return t._INDEX=e,t}),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var i=t(e,n);return 0===i?e._INDEX-n._INDEX:i})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.a)(n,function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))}),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o.a)(n,function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1}),e},e.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},e}(r.a);e.a=u},N9hJ:function(t,e){},NmWf:function(t,e,n){"use strict";var i=n("mrSG"),r=n("aFU3"),o=n("iTfj"),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(o.j)(t,function(t,i){var r=t;e.get(i)!==t&&(Object(o.M)(t)&&n[i]&&(r=Object(o.h)({},n[i],t)),e.set(i,r))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.x)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.x)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(i.a)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=a[n];return Object(o.j)(i,function(n){e[n]=t.get(n)}),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o.j)(e,function(e,n){var i=t.get(n);if(Object(o.M)(i)){var r=Object(o.h)({},e,i);t.set(n,r)}})},e}(r.Base);e.a=s},NohK:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){t.apply(i,o)},e)}}},Nqz0:function(t,e,n){"use strict";n.d(e,"a",function(){return Y}),n.d(e,"b",function(){return X}),n.d(e,"c",function(){return N});var r=n("mrSG"),o=n("FtGj"),a=n("rDax"),s=n("nLfN"),c=n("+rOU"),u=n("fXoL"),l=n("79xS"),f=n("JgHy"),d=n("/KA4"),g=n("XNiG"),v=n("2Vo4"),y=n("VRyK"),m=n("xgIS"),b=n("EY2u"),x=n("itXk"),O=(n("quSY"),n("CqXF")),j=n("eIep"),w=n("pLZG"),C=n("lJxs"),M=n("3UWI"),S=n("/uUt"),k=n("1G5W"),A=(n("IzEk"),n("cH1L")),I=n("ofXK"),T=n("3Pt+"),B=n("OzZK"),L=n("YF2q"),F=n("pdGh"),E=n("FwiY"),P=n("Q8cG"),D=n("GR68");function z(t,e){if(1&t){var n=u.Pb();u.Ob(0,"div",0),u.Vb("mouseenter",function(){return u.lc(n),u.Zb().setMouseState(!0)})("mouseleave",function(){return u.lc(n),u.Zb().setMouseState(!1)}),u.cc(1),u.Nb()}if(2&t){var i=u.Zb();u.Bb("ant-dropdown-rtl","rtl"===i.dir),u.ec("ngClass",i.nzOverlayClassName)("ngStyle",i.nzOverlayStyle)("@slideMotion","enter")("@.disabled",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)("nzNoAnimation",null==i.noAnimation?null:i.noAnimation.nzNoAnimation)}}var R=["*"],_=[f.d.bottomLeft,f.d.bottomRight,f.d.topRight,f.d.topLeft],Y=function(){var t=function(){function t(e,n,i,r,o){h(this,t),this.elementRef=e,this.overlay=n,this.renderer=i,this.viewContainerRef=r,this.platform=o,this.overlayRef=null,this.destroy$=new g.a,this.positionStrategy=this.overlay.position().flexibleConnectedTo(this.elementRef.nativeElement).withLockedPosition().withTransformOriginOn(".ant-dropdown"),this.inputVisible$=new v.a(!1),this.nzTrigger$=new v.a("hover"),this.overlayClose$=new g.a,this.nzDropdownMenu=null,this.nzTrigger="hover",this.nzMatchWidthElement=null,this.nzBackdrop=!1,this.nzHasBackdrop=!1,this.nzClickHide=!0,this.nzDisabled=!1,this.nzVisible=!1,this.nzOverlayClassName="",this.nzOverlayStyle={},this.nzPlacement="bottomLeft",this.nzVisibleChange=new u.n,this.elementRef.nativeElement.classList.add("ant-dropdown-trigger")}return p(t,[{key:"setDropdownMenuValue",value:function(t,e){this.nzDropdownMenu&&this.nzDropdownMenu.setValue(t,e)}},{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var t=this;if(this.nzDropdownMenu){var e=this.elementRef.nativeElement,n=Object(y.a)(Object(m.a)(e,"mouseenter").pipe(Object(O.a)(!0)),Object(m.a)(e,"mouseleave").pipe(Object(O.a)(!1))),r=this.nzDropdownMenu.mouseState$,a=Object(y.a)(r,n),s=Object(m.a)(e,"click").pipe(Object(O.a)(!0)),u=this.nzTrigger$.pipe(Object(j.a)(function(t){return"hover"===t?a:"click"===t?s:b.a})),l=this.nzDropdownMenu.descendantMenuItemClick$.pipe(Object(w.a)(function(){return t.nzClickHide}),Object(O.a)(!1)),h=Object(y.a)(u,l,this.overlayClose$).pipe(Object(w.a)(function(){return!t.nzDisabled})),p=Object(y.a)(this.inputVisible$,h);Object(x.b)([p,this.nzDropdownMenu.isChildSubMenuOpen$]).pipe(Object(C.a)(function(t){var e=i(t,2),n=e[0],r=e[1];return n||r}),Object(M.a)(150),Object(S.a)(),Object(w.a)(function(){return t.platform.isBrowser}),Object(k.a)(this.destroy$)).subscribe(function(n){var i=(t.nzMatchWidthElement?t.nzMatchWidthElement.nativeElement:e).getBoundingClientRect().width;t.nzVisible!==n&&t.nzVisibleChange.emit(n),t.nzVisible=n,n?(t.overlayRef?t.overlayRef.getConfig().minWidth=i:(t.overlayRef=t.overlay.create({positionStrategy:t.positionStrategy,minWidth:i,disposeOnNavigation:!0,hasBackdrop:(t.nzHasBackdrop||t.nzBackdrop)&&"click"===t.nzTrigger,scrollStrategy:t.overlay.scrollStrategies.reposition()}),Object(y.a)(t.overlayRef.backdropClick(),t.overlayRef.detachments(),t.overlayRef.outsidePointerEvents().pipe(Object(w.a)(function(e){return!t.elementRef.nativeElement.contains(e.target)})),t.overlayRef.keydownEvents().pipe(Object(w.a)(function(t){return t.keyCode===o.f&&!Object(o.p)(t)}))).pipe(Object(O.a)(!1),Object(k.a)(t.destroy$)).subscribe(t.overlayClose$)),t.positionStrategy.withPositions([f.d[t.nzPlacement]].concat(_)),t.portal&&t.portal.templateRef===t.nzDropdownMenu.templateRef||(t.portal=new c.e(t.nzDropdownMenu.templateRef,t.viewContainerRef)),t.overlayRef.attach(t.portal)):t.overlayRef&&t.overlayRef.detach()})}}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete(),this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}},{key:"ngOnChanges",value:function(t){var e=t.nzVisible,n=t.nzDisabled,i=t.nzOverlayClassName,r=t.nzOverlayStyle,o=t.nzTrigger,a=t.nzBackdrop;if(o&&this.nzTrigger$.next(this.nzTrigger),e&&this.inputVisible$.next(this.nzVisible),n){var s=this.elementRef.nativeElement;this.nzDisabled?(this.renderer.setAttribute(s,"disabled",""),this.inputVisible$.next(!1)):this.renderer.removeAttribute(s,"disabled")}i&&this.setDropdownMenuValue("nzOverlayClassName",this.nzOverlayClassName),r&&this.setDropdownMenuValue("nzOverlayStyle",this.nzOverlayStyle),a&&Object(l.c)("`nzBackdrop` in dropdown component will be removed in 12.0.0, please use `nzHasBackdrop` instead.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Jb(u.l),u.Jb(a.d),u.Jb(u.E),u.Jb(u.P),u.Jb(s.a))},t.\u0275dir=u.Eb({type:t,selectors:[["","nz-dropdown",""]],inputs:{nzDropdownMenu:"nzDropdownMenu",nzTrigger:"nzTrigger",nzMatchWidthElement:"nzMatchWidthElement",nzBackdrop:"nzBackdrop",nzHasBackdrop:"nzHasBackdrop",nzClickHide:"nzClickHide",nzDisabled:"nzDisabled",nzVisible:"nzVisible",nzOverlayClassName:"nzOverlayClassName",nzOverlayStyle:"nzOverlayStyle",nzPlacement:"nzPlacement"},outputs:{nzVisibleChange:"nzVisibleChange"},exportAs:["nzDropdown"],features:[u.xb]}),Object(r.c)([Object(d.a)(),Object(r.e)("design:type",Object)],t.prototype,"nzBackdrop",void 0),Object(r.c)([Object(d.a)(),Object(r.e)("design:type",Object)],t.prototype,"nzHasBackdrop",void 0),Object(r.c)([Object(d.a)(),Object(r.e)("design:type",Object)],t.prototype,"nzClickHide",void 0),Object(r.c)([Object(d.a)(),Object(r.e)("design:type",Object)],t.prototype,"nzDisabled",void 0),Object(r.c)([Object(d.a)(),Object(r.e)("design:type",Object)],t.prototype,"nzVisible",void 0),t}(),G=function(){var t=function t(){h(this,t)};return t.\u0275mod=u.Hb({type:t}),t.\u0275inj=u.Gb({factory:function(e){return new(e||t)}}),t}(),N=function(){var t=function(){function t(e,n,i,r,o,a,s){h(this,t),this.cdr=e,this.elementRef=n,this.renderer=i,this.viewContainerRef=r,this.nzMenuService=o,this.directionality=a,this.noAnimation=s,this.mouseState$=new v.a(!1),this.isChildSubMenuOpen$=this.nzMenuService.isChildSubMenuOpen$,this.descendantMenuItemClick$=this.nzMenuService.descendantMenuItemClick$,this.nzOverlayClassName="",this.nzOverlayStyle={},this.dir="ltr",this.destroy$=new g.a}return p(t,[{key:"setMouseState",value:function(t){this.mouseState$.next(t)}},{key:"setValue",value:function(t,e){this[t]=e,this.cdr.markForCheck()}},{key:"ngOnInit",value:function(){var t,e=this;null===(t=this.directionality.change)||void 0===t||t.pipe(Object(k.a)(this.destroy$)).subscribe(function(t){e.dir=t,e.cdr.detectChanges()}),this.dir=this.directionality.value}},{key:"ngAfterContentInit",value:function(){this.renderer.removeChild(this.renderer.parentNode(this.elementRef.nativeElement),this.elementRef.nativeElement)}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(u.Jb(u.h),u.Jb(u.l),u.Jb(u.E),u.Jb(u.P),u.Jb(P.a),u.Jb(A.b,8),u.Jb(L.a,9))},t.\u0275cmp=u.Db({type:t,selectors:[["nz-dropdown-menu"]],viewQuery:function(t,e){var n;(1&t&&u.pc(u.L,!0),2&t)&&(u.jc(n=u.Wb())&&(e.templateRef=n.first))},exportAs:["nzDropdownMenu"],features:[u.yb([P.a,{provide:P.b,useValue:!0}])],ngContentSelectors:R,decls:1,vars:0,consts:[[1,"ant-dropdown",3,"ngClass","ngStyle","nzNoAnimation","mouseenter","mouseleave"]],template:function(t,e){1&t&&(u.dc(),u.sc(0,z,2,7,"ng-template"))},directives:[I.j,I.m,L.a],encapsulation:2,data:{animation:[D.b]},changeDetection:0}),t}(),X=function(){var t=function t(){h(this,t)};return t.\u0275mod=u.Hb({type:t}),t.\u0275inj=u.Gb({factory:function(e){return new(e||t)},imports:[[A.a,I.c,a.e,T.d,B.c,P.e,E.c,L.b,s.b,f.c,G,F.a],P.e]}),t}();new a.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"top"}),new a.c({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),new a.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"bottom"}),new a.c({originX:"start",originY:"top"},{overlayX:"end",overlayY:"top"})},NzZ7:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("tvR+"),r=n("yUfG"),o=n("a8tM"),a=n("iTfj"),s=n("I7nc"),c={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function u(t,e){var n,u=(e=Object(a.b)({},c,e)).as;if(!Object(a.B)(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(s.b)(e)}catch(p){console.warn(p)}var l=function(t){return i.a().tile(r[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(o.c(t).sum(function(t){return t[n]}))}(t),h=u[0],f=u[1];return l.each(function(t){t[h]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===u.indexOf(e)&&delete t[e]})}),Object(s.a)(l)}},OzZK:function(t,e,n){"use strict";n.d(e,"a",function(){return j}),n.d(e,"b",function(){return w}),n.d(e,"c",function(){return C});var i=n("mrSG"),r=n("cH1L"),o=n("fXoL"),a=n("2Suw"),s=n("79xS"),c=n("/KA4"),u=n("FwiY"),l=n("XNiG"),f=n("1G5W"),d=n("JX91"),g=n("pLZG"),v=n("ofXK"),y=n("C2AL"),m=n("RwU8"),b=["nz-button",""];function x(t,e){1&t&&o.Kb(0,"i",1)}var O=["*"],j=function(){var t=function(){function t(e,n,i,r,o){var a=this;h(this,t),this.elementRef=e,this.cdr=n,this.renderer=i,this.nzConfigService=r,this.directionality=o,this._nzModuleName="button",this.nzBlock=!1,this.nzGhost=!1,this.nzSearch=!1,this.nzLoading=!1,this.nzDanger=!1,this.disabled=!1,this.tabIndex=null,this.nzType=null,this.nzShape=null,this.nzSize="default",this.dir="ltr",this.destroy$=new l.a,this.loading$=new l.a,this.elementRef.nativeElement.classList.add("ant-btn"),this.nzConfigService.getConfigChangeEventForComponent("button").pipe(Object(f.a)(this.destroy$)).subscribe(function(){a.cdr.markForCheck()})}return p(t,[{key:"insertSpan",value:function(t,e){t.forEach(function(t){if("#text"===t.nodeName){var n=e.createElement("span"),i=e.parentNode(t);e.insertBefore(i,n,t),e.appendChild(n,t)}})}},{key:"assertIconOnly",value:function(t,e){var n=Array.from(t.childNodes),i=n.filter(function(t){return"I"===t.nodeName}).length,r=n.every(function(t){return"#text"!==t.nodeName});n.every(function(t){return"SPAN"!==t.nodeName})&&r&&i>=1&&e.addClass(t,"ant-btn-icon-only")}},{key:"ngOnInit",value:function(){var t,e=this;null===(t=this.directionality.change)||void 0===t||t.pipe(Object(f.a)(this.destroy$)).subscribe(function(t){e.dir=t,e.cdr.detectChanges()}),this.dir=this.directionality.value}},{key:"ngOnChanges",value:function(t){var e=t.nzLoading,n=t.nzType;e&&this.loading$.next(this.nzLoading),"danger"===(null==n?void 0:n.currentValue)&&Object(s.c)("'danger' value of 'nzType' in Button is going to be removed in 12.0.0. Please use 'nzDanger' instead.")}},{key:"ngAfterViewInit",value:function(){this.assertIconOnly(this.elementRef.nativeElement,this.renderer),this.insertSpan(this.elementRef.nativeElement.childNodes,this.renderer)}},{key:"ngAfterContentInit",value:function(){var t=this;this.loading$.pipe(Object(d.a)(this.nzLoading),Object(g.a)(function(){return!!t.nzIconDirectiveElement}),Object(f.a)(this.destroy$)).subscribe(function(e){var n=t.nzIconDirectiveElement.nativeElement;e?t.renderer.setStyle(n,"display","none"):t.renderer.removeStyle(n,"display")})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l),o.Jb(o.h),o.Jb(o.E),o.Jb(a.a),o.Jb(r.b,8))},t.\u0275cmp=o.Db({type:t,selectors:[["button","nz-button",""],["a","nz-button",""]],contentQueries:function(t,e,n){var i;(1&t&&o.Cb(n,u.b,!0,o.l),2&t)&&(o.jc(i=o.Wb())&&(e.nzIconDirectiveElement=i.first))},hostVars:32,hostBindings:function(t,e){2&t&&(o.Ab("tabindex",e.disabled?-1:null===e.tabIndex?null:e.tabIndex)("disabled",e.disabled||null),o.Bb("ant-btn-primary","primary"===e.nzType)("ant-btn-dashed","dashed"===e.nzType)("ant-btn-link","link"===e.nzType)("ant-btn-text","text"===e.nzType)("ant-btn-danger","danger"===e.nzType)("ant-btn-circle","circle"===e.nzShape)("ant-btn-round","round"===e.nzShape)("ant-btn-lg","large"===e.nzSize)("ant-btn-sm","small"===e.nzSize)("ant-btn-dangerous",e.nzDanger)("ant-btn-loading",e.nzLoading)("ant-btn-background-ghost",e.nzGhost)("ant-btn-block",e.nzBlock)("ant-input-search-button",e.nzSearch)("ant-btn-rtl","rtl"===e.dir))},inputs:{nzBlock:"nzBlock",nzGhost:"nzGhost",nzSearch:"nzSearch",nzLoading:"nzLoading",nzDanger:"nzDanger",disabled:"disabled",tabIndex:"tabIndex",nzType:"nzType",nzShape:"nzShape",nzSize:"nzSize"},exportAs:["nzButton"],features:[o.xb],attrs:b,ngContentSelectors:O,decls:2,vars:1,consts:[["nz-icon","","nzType","loading",4,"ngIf"],["nz-icon","","nzType","loading"]],template:function(t,e){1&t&&(o.dc(),o.sc(0,x,1,0,"i",0),o.cc(1)),2&t&&o.ec("ngIf",e.nzLoading)},directives:[v.l,u.b,y.a],encapsulation:2,changeDetection:0}),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"nzBlock",void 0),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"nzGhost",void 0),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"nzSearch",void 0),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"nzLoading",void 0),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"nzDanger",void 0),Object(i.c)([Object(c.a)(),Object(i.e)("design:type",Boolean)],t.prototype,"disabled",void 0),Object(i.c)([Object(a.b)(),Object(i.e)("design:type",String)],t.prototype,"nzSize",void 0),t}(),w=function(){var t=function(){function t(e,n){h(this,t),this.elementRef=e,this.directionality=n,this.nzSize="default",this.dir="ltr",this.destroy$=new l.a,this.elementRef.nativeElement.classList.add("ant-btn-group")}return p(t,[{key:"ngOnInit",value:function(){var t,e=this;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(Object(f.a)(this.destroy$)).subscribe(function(t){e.dir=t})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l),o.Jb(r.b,8))},t.\u0275cmp=o.Db({type:t,selectors:[["nz-button-group"]],hostVars:6,hostBindings:function(t,e){2&t&&o.Bb("ant-btn-group-lg","large"===e.nzSize)("ant-btn-group-sm","small"===e.nzSize)("ant-btn-group-rtl","rtl"===e.dir)},inputs:{nzSize:"nzSize"},exportAs:["nzButtonGroup"],ngContentSelectors:O,decls:1,vars:0,template:function(t,e){1&t&&(o.dc(),o.cc(0))},encapsulation:2,changeDetection:0}),t}(),C=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[r.a,v.c,m.b,u.c,y.b],y.b,m.b]}),t}()},P4Qj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var i,r=(i=n("chpo"))&&i.__esModule?i:{default:i},o=n("FxDU"),a=n("24YM"),s={};e.getSensor=function(t){var e=t.getAttribute(a.SizeSensorId);if(e&&s[e])return s[e];var n=(0,r.default)();t.setAttribute(a.SizeSensorId,n);var i=(0,o.createSensor)(t);return s[n]=i,i},e.removeSensor=function(t){var e=t.element.getAttribute(a.SizeSensorId);t.element.removeAttribute(a.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]}},"QO+J":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i,r=(i=n("NohK"))&&i.__esModule?i:{default:i},o=n("24YM");e.createSensor=function(t){var e=void 0,n=[],i=(0,r.default)(function(){n.forEach(function(e){e(t)})}),a=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",i),e.parentNode.removeChild(e),e=void 0,n=[])};return{element:t,bind:function(r){e||(e=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",i),i()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",o.SensorClassName),e.setAttribute("tabindex",o.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===n.indexOf(r)&&n.push(r)},destroy:a,unbind:function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&a()}}}},Qci9:function(t,e,n){"use strict";var i=n("iTfj"),r=n("0Xep"),o=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames;this.adjustNames=void 0===i?["x","y"]:i,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.j(t,function(t,e){i.j(r,function(i,r){n.adjustDim(r,i,t,e)})})},t.prototype.groupData=function(t,e){return i.j(t,function(t){void 0===t[e]&&(t[e]=r.a)}),i.v(t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o={},a=[];return e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach(function(e){o[e]=i.sb(t,e).sort(function(t,e){return t-e})}),!n&&this.isAdjust("y")&&(o.y=[r.a,1]),o},t}();e.a=o},R5nb:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",function(){return u}),n.d(e,"Circle",function(){return l}),n.d(e,"Ellipse",function(){return f}),n.d(e,"Image",function(){return d}),n.d(e,"Line",function(){return m}),n.d(e,"Marker",function(){return j}),n.d(e,"Path",function(){return F}),n.d(e,"Polygon",function(){return P}),n.d(e,"Polyline",function(){return D}),n.d(e,"Rect",function(){return R}),n.d(e,"Text",function(){return _});var i={};n.r(i),n.d(i,"Base",function(){return u}),n.d(i,"Circle",function(){return l}),n.d(i,"Ellipse",function(){return f}),n.d(i,"Image",function(){return d}),n.d(i,"Line",function(){return m}),n.d(i,"Marker",function(){return j}),n.d(i,"Path",function(){return F}),n.d(i,"Polygon",function(){return P}),n.d(i,"Polyline",function(){return D}),n.d(i,"Rect",function(){return R}),n.d(i,"Text",function(){return _});var r=n("mrSG"),o=n("aFU3"),a=n("cyZq"),s=n("9eUa"),c=n("wq2r"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return c.a},e.prototype.onCanvasChange=function(t){Object(s.h)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(o.getBBoxMethod)(t)(this),i=e/2,r=n.x-i,a=n.y-i;return{x:r,minX:r,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:n.x+n.width+i,maxY:n.y+n.height+i}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var i=this.getCanvasBBox();if(!Object(a.f)(e,i))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s.a)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(a.f)(e,t);this.set("isInView",n),this.set("cacheCanvasBBox",n?e:null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(a.i)(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,c=o.y,u=o.r,l=r/2,h=Object(a.b)(s,c,t,e);return i&&n?h<=u+l:i?h<=u:!!n&&h>=u-l&&h<=u+l},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(u);function h(t,e,n,i){return t/(n*n)+e/(i*i)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=r/2,s=o.x,c=o.y,u=o.rx,l=o.ry,f=(t-s)*(t-s),p=(e-c)*(e-c);return i&&n?h(f,p,u+a,l+a)<=1:i?h(f,p,u,l)<=1:!!n&&h(f,p,u-a,l-a)>=1&&h(f,p,u+a,l+a)<=1},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,c=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u);function p(t){return t instanceof HTMLElement&&Object(a.k)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(a.k)(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):p(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||Number(t.getAttribute("height")))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,s=e.sx,c=e.sy,u=e.swidth,l=e.sheight,h=e.img;(h instanceof Image||p(h))&&(Object(a.i)(s)||Object(a.i)(c)||Object(a.i)(u)||Object(a.i)(l)?t.drawImage(h,n,i,r,o):t.drawImage(h,s,c,u,l,n,i,r,o))},e}(u),g=n("EYNi");function v(t,e,n,i,r,o,a){var s=Math.min(t,n),c=Math.max(t,n),u=Math.min(e,i),l=Math.max(e,i),h=r/2;return o>=s-h&&o<=c+h&&a>=u-h&&a<=l+h&&g.c.pointToLine(t,e,n,i,o,a)<=r/2}var y=n("nycV"),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.endArrow;t.startArrow&&y.b(this,t,i,r,e,n),o&&y.a(this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr();return v(o.x1,o.y1,o.x2,o.y2,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,c={dx:0,dy:0},u={dx:0,dy:0};a&&a.d&&(c=y.c(n,i,r,o,e.startArrow.d)),s&&s.d&&(u=y.c(n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-u.dx,o-u.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr();return g.c.length(t.x1,t.y1,t.x2,t.y2)},e.prototype.getPoint=function(t){var e=this.attr();return g.c.pointAt(e.x1,e.y1,e.x2,e.y2,t)},e}(u),b=n("iTfj"),x=n("LvGN"),O={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(b.I)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,o=i.y,s=i.symbol||"circle",c=this._getR(i);if(Object(a.h)(s))n=(t=s)(r,o,c),n=Object(x.d)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(r,o,c)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s.e)(this,t,{path:e},n)},e.Symbols=O,e}(u);function w(t,e,n){var i=Object(o.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}function C(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function M(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function S(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var o=0;o<r;o++){var a=t[o],s=t[(o+1)%r];if(M(a,s,[e,n]))return!0;C(a[1]-n)>0!=C(s[1]-n)>0&&C(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var k=n("6JdA"),A=n("n+fv");function I(t,e,n,i,r,o,s,c){var u=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>r)return!1;var l={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Object(a.b)(l.x,l.y,s,c)<=o/2}var T=k.a.transform,B=Object(r.a)({hasArc:function(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i][0];if("C"===r||"A"===r||"Q"===r){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],i=[],r=[],o=0;o<e;o++){var a=t[o],s=a[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([a[1],a[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([a[1],a[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}},isPointInStroke:function(t,e,n,i,r){for(var o=!1,s=e/2,c=0;c<t.length;c++){var u=t[c],l=u.currentPoint,h=u.params,f=u.prePoint,p=u.box;if(!p||Object(a.e)(p.x-s,p.y-s,p.width+e,p.height+e,n,i)){switch(u.command){case"L":case"Z":o=v(f[0],f[1],l[0],l[1],e,n,i);break;case"Q":o=g.e.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],n,i)<=e/2;break;case"C":o=g.b.pointDistance(f[0],f[1],h[1],h[2],h[3],h[4],h[5],h[6],n,i,r)<=e/2;break;case"A":var d=u.arcParams,y=d.rx,m=d.ry,b=d.startAngle,x=d.endAngle,O=[n,i,1],j=y>m?y:m,w=T(null,[["t",-d.cx,-d.cy],["r",-d.xRotation],["s",1/(y>m?1:y/m),1/(y>m?m/y:1)]]);A.transformMat3(O,O,w),o=I(0,0,j,b,x,e,O[0],O[1])}if(o)break}}return o}},o.PathUtil);function L(t,e,n){for(var i=!1,r=0;r<t.length&&!(i=S(t[r],e,n));r++);return i}var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(x.d)(t);var e=B.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(x.e)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.endArrow;if(t.startArrow){var n=this.getStartTangent();y.b(this,t,n[0][0],n[0][1],n[1][0],n[1][1])}e&&(n=this.getEndTangent(),y.a(this,t,n[0][0],n[0][1],n[1][0],n[1][1]))},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.getSegments(),a=this.get("hasArc"),s=!1;if(n){var c=this.getTotalLength();s=B.isPointInStroke(o,r,t,e,c)}if(!s&&i)if(a)s=w(this,t,e);else{var u=this.attr("path"),l=B.extractPolygons(u);s=L(l.polygons,t,e)||L(l.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s.e)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(b.I)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;Object(b.j)(i,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)});var o=r[n];if(Object(b.I)(o)||Object(b.I)(n))return null;var a=o.length,s=r[n+1];return g.b.pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",B.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,o=0,a=[],s=this.get("curve");s&&(Object(b.j)(s,function(t,e){i=t.length,(n=s[e+1])&&(r+=g.b.length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)}),this.set("totalLength",r),0!==r?(Object(b.j)(s,function(c,u){i=c.length,(n=s[u+1])&&((t=[])[0]=o/r,e=g.b.length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),t[1]=(o+=e||0)/r,a.push(t))}),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(u);function E(t,e,n,i,r){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++)if(v(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,i))return!0;if(r){var s=t[0],c=t[o-1];if(v(s[0],s[1],c[0],c[1],e,n,i))return!0}return!1}var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr().points,a=!1;return n&&(a=E(o,r,t,e,!0)),!a&&i&&(a=S(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var i=e[n];0===n?t.moveTo(i[0],i[1]):t.lineTo(i[0],i[1])}t.closePath()}},e}(u),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.endArrow,r=n.length,o=n[r-1][0],a=n[r-1][1];e.startArrow&&y.b(this,t,n[1][0],n[1][1],n[0][0],n[0][1]),i&&y.a(this,t,n[r-2][0],n[r-2][1],o,a)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!(!n||!r)&&E(this.attr().points,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,o=n.length;if(!(n.length<2)){var a,s=n[0][0],c=n[0][1],u=n[o-1][0],l=n[o-1][1];i&&i.d&&(s+=(a=y.c(s,c,n[1][0],n[1][1],i.d)).dx,c+=a.dy),r&&r.d&&(u-=(a=y.c(n[o-2][0],n[o-2][1],u,l,r.d)).dx,l-=a.dy),t.beginPath(),t.moveTo(s,c);for(var h=0;h<o-1;h++){var f=n[h];t.lineTo(f[0],f[1])}t.lineTo(u,l)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.I)(e)?(this.set("totalLength",g.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(b.j)(r,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}),g.c.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(b.j)(t,function(a,s){t[s+1]&&((n=[])[0]=r/e,i=g.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),n[1]=(r+=i)/e,o.push(n))}),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().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},e}(u),z=n("r0DC"),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,c=o.y,u=o.width,l=o.height,h=o.radius;if(h){var f=!1;return n&&(f=function(t,e,n,i,r,o,a,s){return v(t+r,e,t+n-r,e,o,a,s)||v(t+n,e+r,t+n,e+i-r,o,a,s)||v(t+n-r,e+i,t+r,e+i,o,a,s)||v(t,e+i-r,t,e+r,o,a,s)||I(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||I(t+n-r,e+i-r,r,0,.5*Math.PI,o,a,s)||I(t+r,e+i-r,r,.5*Math.PI,Math.PI,o,a,s)||I(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}(s,c,u,l,h,r,t,e)),!f&&i&&(f=w(this,t,e)),f}var p=r/2;return i&&n?Object(a.e)(s-p,c-p,u+p,l+p,t,e):i?Object(a.e)(s,c,u,l,t,e):n?function(t,e,n,i,r,o,s){var c=r/2;return Object(a.e)(t-c,e-c,n,r,o,s)||Object(a.e)(t+n-c,e-c,r,i,o,s)||Object(a.e)(t+c,e+i-c,n,r,o,s)||Object(a.e)(t-c,e+c,r,i,o,s)}(s,c,u,l,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,i,r,o);else{var s=Object(z.a)(a),c=s[0],u=s[1],l=s[2],h=s[3];t.moveTo(n+c,i),t.lineTo(n+r-u,i),0!==u&&t.arc(n+r-u,i+u,u,-Math.PI/2,0),t.lineTo(n+r,i+o-l),0!==l&&t.arc(n+r-l,i+o-l,l,0,Math.PI/2),t.lineTo(n+h,i+o),0!==h&&t.arc(n+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+c),0!==c&&t.arc(n+c,i+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(o.assembleFont)(t)},e.prototype._setText=function(t){var e=null;Object(a.k)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,s=r.textBaseline,c=r.x,u=r.y,l=1*r.fontSize,h=this._getSpaceingY(),f=Object(o.getTextHeight)(r.text,r.fontSize,r.lineHeight);Object(a.c)(e,function(e,r){i=u+r*(h+l)-f+l,"middle"===s&&(i+=f-l-(f-l)/2),"top"===s&&(i+=f-l),n?t.fillText(e,c,i):t.strokeText(e,c,i)})},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;e?t.fillText(a,i,r):t.strokeText(a,i,r)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a.i)(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(a.i)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u)},RwU8:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return l});var i=n("nLfN"),r=n("fXoL"),o=n("R1ws"),a=function(){function t(e,n,r,o){var a=this;h(this,t),this.triggerElement=e,this.ngZone=n,this.insertExtraNode=r,this.platformId=o,this.waveTransitionDuration=400,this.styleForPseudo=null,this.extraNode=null,this.lastTime=0,this.onClick=function(t){!a.triggerElement||!a.triggerElement.getAttribute||a.triggerElement.getAttribute("disabled")||"INPUT"===t.target.tagName||a.triggerElement.className.indexOf("disabled")>=0||a.fadeOutWave()},this.platform=new i.a(this.platformId),this.clickHandler=this.onClick.bind(this),this.bindTriggerEvent()}return p(t,[{key:"bindTriggerEvent",value:function(){var t=this;this.platform.isBrowser&&this.ngZone.runOutsideAngular(function(){t.removeTriggerEvent(),t.triggerElement&&t.triggerElement.addEventListener("click",t.clickHandler,!0)})}},{key:"removeTriggerEvent",value:function(){this.triggerElement&&this.triggerElement.removeEventListener("click",this.clickHandler,!0)}},{key:"removeStyleAndExtraNode",value:function(){this.styleForPseudo&&document.body.contains(this.styleForPseudo)&&(document.body.removeChild(this.styleForPseudo),this.styleForPseudo=null),this.insertExtraNode&&this.triggerElement.contains(this.extraNode)&&this.triggerElement.removeChild(this.extraNode)}},{key:"destroy",value:function(){this.removeTriggerEvent(),this.removeStyleAndExtraNode()}},{key:"fadeOutWave",value:function(){var t=this,e=this.triggerElement,n=this.getWaveColor(e);e.setAttribute(this.waveAttributeName,"true"),Date.now()<this.lastTime+this.waveTransitionDuration||(this.isValidColor(n)&&(this.styleForPseudo||(this.styleForPseudo=document.createElement("style")),this.styleForPseudo.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ".concat(n,";\n }"),document.body.appendChild(this.styleForPseudo)),this.insertExtraNode&&(this.extraNode||(this.extraNode=document.createElement("div")),this.extraNode.className="ant-click-animating-node",e.appendChild(this.extraNode)),this.lastTime=Date.now(),this.runTimeoutOutsideZone(function(){e.removeAttribute(t.waveAttributeName),t.removeStyleAndExtraNode()},this.waveTransitionDuration))}},{key:"isValidColor",value:function(t){return!!t&&"#ffffff"!==t&&"rgb(255, 255, 255)"!==t&&this.isNotGrey(t)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(t)&&"transparent"!==t}},{key:"isNotGrey",value:function(t){var e=t.match(/rgba?\((\d*), (\d*), (\d*)(, [\.\d]*)?\)/);return!(e&&e[1]&&e[2]&&e[3]&&e[1]===e[2]&&e[2]===e[3])}},{key:"getWaveColor",value:function(t){var e=getComputedStyle(t);return e.getPropertyValue("border-top-color")||e.getPropertyValue("border-color")||e.getPropertyValue("background-color")}},{key:"runTimeoutOutsideZone",value:function(t,e){this.ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"waveAttributeName",get:function(){return this.insertExtraNode?"ant-click-animating":"ant-click-animating-without-extra-node"}}]),t}(),s={disabled:!1},c=new r.q("nz-wave-global-options",{providedIn:"root",factory:function(){return s}}),u=function(){var t=function(){function t(e,n,i,r,o){h(this,t),this.ngZone=e,this.elementRef=n,this.config=i,this.animationType=r,this.platformId=o,this.nzWaveExtraNode=!1,this.waveDisabled=!1,this.waveDisabled=this.isConfigDisabled()}return p(t,[{key:"isConfigDisabled",value:function(){var t=!1;return this.config&&"boolean"==typeof this.config.disabled&&(t=this.config.disabled),"NoopAnimations"===this.animationType&&(t=!0),t}},{key:"ngOnDestroy",value:function(){this.waveRenderer&&this.waveRenderer.destroy()}},{key:"ngOnInit",value:function(){this.renderWaveIfEnabled()}},{key:"renderWaveIfEnabled",value:function(){!this.waveDisabled&&this.elementRef.nativeElement&&(this.waveRenderer=new a(this.elementRef.nativeElement,this.ngZone,this.nzWaveExtraNode,this.platformId))}},{key:"disable",value:function(){this.waveDisabled=!0,this.waveRenderer&&(this.waveRenderer.removeTriggerEvent(),this.waveRenderer.removeStyleAndExtraNode())}},{key:"enable",value:function(){this.waveDisabled=this.isConfigDisabled()||!1,this.waveRenderer&&this.waveRenderer.bindTriggerEvent()}},{key:"disabled",get:function(){return this.waveDisabled}},{key:"rendererRef",get:function(){return this.waveRenderer}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.z),r.Jb(r.l),r.Jb(c,8),r.Jb(o.a,8),r.Jb(r.B))},t.\u0275dir=r.Eb({type:t,selectors:[["","nz-wave",""],["button","nz-button","",3,"nzType","link",3,"nzType","text"]],inputs:{nzWaveExtraNode:"nzWaveExtraNode"},exportAs:["nzWave"]}),t}(),l=function(){var t=function t(){h(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t}()},SZbK:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=["#FAAD14","#E8EDF3"]},TEat:function(t,e,n){"use strict";n.d(e,"a",function(){return d});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("w02o"),s=n("tKoa");function c(t,e,n){var i=n.map(function(t){return t[e]}),r=Math.max.apply(Math,i),o=Math.abs(t)%360;return o?360*r/o:r}function u(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,a=n.tooltip,c=n.colorField,u=n.type,l=n.xField,h=n.yField;e.data(n.data);var f=Object(o.b)({},t,{options:{tooltip:a,seriesField:c,interval:{style:i,color:r,shape:"line"===u?"line":"intervel"}}});return Object(s.c)(f),"line"===u&&e.point().position(l+"*"+h).shape("circle"),t}function l(t){var e,n=t.options,i=n.yField,r=n.data,s=n.maxAngle;return Object(o.e)(Object(a.f)(((e={})[i]={min:0,max:c(s,i,r)},e)))(t)}function h(t){var e=t.options;return t.chart.coordinate({type:"polar",cfg:{radius:e.radius,innerRadius:e.innerRadius}}).transpose(),t}function f(t){var e=t.options;return t.chart.axis(e.xField,e.xAxis),t}function p(t){return Object(o.e)(u,l,f,h,a.c,a.a,a.j,a.k,a.d,Object(a.b)())(t)}var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240})},e.prototype.getSchemaAdaptor=function(){return p},e}(r.a)},U8jP:function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return u});var i=n("R5nb");n.d(e,"Shape",function(){return i});var r=n("aFU3");for(var o in r)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(o)<0&&function(t){n.d(e,t,function(){return r[t]})}(o);var a=n("sYIZ");n.d(e,"Canvas",function(){return a.a});var s=n("wq2r");n.d(e,"Group",function(){return s.a});var c=n("nCnq");n.d(e,"getArcParams",function(){return c.a});var u="0.5.6"},Uo7R:function(t,e,n){"use strict";n.d(e,"a",function(){return x});var i=n("mrSG"),r=n("zJSt"),o=n("w02o"),a=n("YuPD"),s=n("tKoa"),c=n("iTfj"),u={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null},l=n("DyAw");function h(t){var e=t.options,n=e.data,r=e.sourceField,o=e.targetField,a=e.weightField,s=function(t,e){var n=function(t){return Object(c.b)({},u,t)}(t),i={},r=e.nodes,o=e.links;return r.forEach(function(t){var e=n.id(t);i[e]=t}),function(t,e,n){Object(c.r)(t,function(t,i){t.inEdges=e.filter(function(t){return""+n.target(t)==""+i}),t.outEdges=e.filter(function(t){return""+n.source(t)==""+i}),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach(function(e){t.value+=n.targetWeight(e)}),t.outEdges.forEach(function(e){t.value+=n.sourceWeight(e)})})}(i,o,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&Object(c.H)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(r,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var i=e.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach(function(t){a+=t.value}),t.forEach(function(t){t.weight=t.value/a,t.width=t.weight*(1-i),t.height=o}),t.forEach(function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=t[s].width+2*r;var c=n.minX=r+a,u=n.maxX=n.minX+n.width,l=n.minY=e.y-o/2,h=n.maxY=l+o;n.x=[c,u,u,c],n.y=[l,l,h,h]})}else{var s=1/n;t.forEach(function(t,n){t.x=(n+.5)*s,t.y=e.y})}return t}(r,n),links:function(t,e,n){if(n.weight){var i={};Object(c.r)(t,function(t,e){i[e]=t.value}),e.forEach(function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var c=i[r],u=n.sourceWeight(e),l=a.minX+(a.value-c)/a.value*a.width,h=l+u/a.value*a.width;i[r]-=u;var f=i[o],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;i[o]-=p;var v=n.y;e.x=[l,h,d,g],e.y=[v,v,v,v],e.source=a,e.target=s}})}else e.forEach(function(e){var i=t[n.source(e)],r=t[n.target(e)];i&&r&&(e.x=[i.x,r.x],e.y=[i.y,r.y],e.source=i,e.target=r)});return e}(i,o,n)}}({weight:!0,nodePaddingRatio:e.nodePaddingRatio,nodeWidthRatio:e.nodeWidthRatio},Object(l.b)(n,r,o,a)),h=s.links,f=s.nodes.map(function(t){return{id:t.id,x:t.x,y:t.y,name:t.name}}),p=h.map(function(t){return{source:t.source.name,target:t.target.name,x:t.x,y:t.y,value:t.value}});return Object(i.a)(Object(i.a)({},t),{ext:Object(i.a)(Object(i.a)({},t.ext),{chordData:{nodesData:f,edgesData:p}})})}function f(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function p(t){return t.chart.axis(!1),t}function d(t){return t.chart.legend(!1),t}function g(t){return t.chart.tooltip({showTitle:!1,showMarkers:!1}),t}function v(t){return t.chart.coordinate("polar").reflect("y"),t}function y(t){var e=t.options,n=t.ext.chordData.nodesData,i=e.nodeStyle,r=e.label,o=t.chart.createView();return o.data(n),Object(s.f)({chart:o,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:r,tooltip:!1}}),t}function m(t){var e=t.options,n=t.ext.chordData.edgesData,i=e.edgeStyle,r=e.tooltip,o=t.chart.createView();o.data(n);var a={xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:r};return Object(s.b)({chart:o,options:a}),t}function b(t){return Object(a.e)(h,v,f,p,d,g,m,y,o.c,o.a,o.j)(t)}var x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{fields:["source","target","value"],formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},e.prototype.getSchemaAdaptor=function(){return b},e}(r.a)},WOQw:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("mrSG"),r=n("iTfj"),o=n("YuPD");function a(t,e){var n=t.xField,o=t.yField,a=t.colorField,s=t.shapeField,c=t.sizeField,u=t.styleField,l=t.rawFields,h=void 0===l?[]:l,f=[];if("color"===e)f=Object(i.g)([a||n],h);else if("shape"===e)f=Object(i.g)([s||n],h);else if("size"===e)f=Object(i.g)([c||n],h);else{f=Object(i.g)([n,o,a,s,c,u],h);var p=["x","y","color","shape","size","style"].indexOf(e),d=f[p];f.splice(p,1),f.unshift(d)}return Object(r.ob)(f.filter(function(t){return!!t}))}function s(t,e){if(e)return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r={};return t.forEach(function(t,e){r[t]=n[e]}),delete r[void 0],e(r)}}function c(t){var e=t.chart,n=t.options,c=n.mapping,u=n.xField,l=n.yField,h=n.colorField,f=n.shapeField,p=n.sizeField,d=n.tooltipFields,g=n.label,v=n.state;if(!c)return t;var y=c.color,m=c.shape,b=c.size,x=c.style,O=c.tooltip,j=e[n.type](n.args).position(u+"*"+l);if(Object(r.O)(y))h?j.color(h,y):j.color(y);else if(Object(r.H)(y)){var w=a(n,"color");j.color(w.join("*"),s(w,y))}else h&&j.color(h,y);if(Object(r.O)(m)?f?j.shape(f,[m]):j.shape(m):Object(r.H)(m)?(w=a(n,"shape"),j.shape(w.join("*"),s(w,m))):f&&j.shape(f,m),Object(r.K)(b)?p?j.size(p,b):j.size(b):Object(r.H)(b)?(w=a(n,"size"),j.size(w.join("*"),s(w,b))):p&&j.size(p,b),Object(r.H)(x)?(w=a(n,"style"),j.style(w.join("*"),s(w,x))):Object(r.M)(x)&&j.style(x),!1===d?j.tooltip(!1):Object(r.F)(d)||j.tooltip(d.join("*"),s(d,O)),!1===g)j.label(!1);else if(g){var C=g.callback,M=g.fields,S=Object(i.f)(g,["callback","fields"]);j.label({fields:M||[l],callback:C,cfg:Object(o.o)(S)})}return v&&j.state(v),[u,l].filter(function(t){return t!==h}).forEach(function(t){e.legend(t,!1)}),Object(i.a)(Object(i.a)({},t),{ext:{geometry:j}})}},WXeg:function(t,e){},WbAE:function(t,e){},XiRp:function(t,e){},XloR:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("hJqF"),s=n("kXyF"),c=n("iTfj"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,i=t.geometries.filter(function(t){return"point"===t.type});Object(c.j)(i,function(t){Object(c.j)(t.elements,function(t){var e=-1!==Object(c.n)(n,function(e){return e.data===t.data});t.setState("active",e)})})}},e.prototype.getView=function(){return this.context.view},e}(s.c);Object(s.g)("marker-active",u),Object(s.i)("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}]});var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(i.d)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1})},e.prototype.getSchemaAdaptor=function(){return a.a},e}(r.a)},XpFM:function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a=n("w02o"),s=n("n/J0"),c=n("YuPD"),u=n("5kt6");function l(t){var e;return[(e={},e[u.c]=Object(o.c)(t,0,1),e)]}function h(t,e){var n=Object(o.s)(e,["ticks"],[]);return function(t){return t.map(function(e,n){var i;return(i={})[u.e]=e-(t[n-1]||0),i[u.d]=""+n,i}).filter(function(t){return!!t[u.e]})}(Object(o.gb)(n)?n:[0,Object(o.c)(t,0,1),1])}function f(t){var e=t.chart,n=t.options,i=n.percent,r=n.radius,a=n.innerRadius,f=n.startAngle,p=n.endAngle,d=n.axis,g=n.indicator,v=n.range.color;if(g){var y=l(i),m=e.createView({id:u.b});m.data(y),m.point().position(u.c+"*1").shape("gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:g}),m.coordinate("polar",{startAngle:f,endAngle:p,radius:a*r}),m.axis(u.c,d),m.scale(u.c,Object(c.k)(d,s.a))}var b=h(i,n.range),x=e.createView({id:u.f});x.data(b);var O=Object(o.O)(v)?[v,u.a]:v;return x.interval().position("1*"+u.e).color(u.d,O).adjust("stack"),x.coordinate("polar",{innerRadius:a,radius:r,startAngle:f,endAngle:p}).transpose(),t}function p(t){var e;return Object(c.e)(Object(a.f)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.c]={},e)))(t)}function d(t,e){var n=t.chart,r=t.options,o=r.statistic,a=r.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,u=void 0;s&&(u=Object(c.b)({},{formatter:function(t){return(100*t.percent).toFixed(2)+"%"},style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(c.l)(n,{statistic:Object(i.a)(Object(i.a)({},o),{content:u})},{percent:a})}return e&&n.render(!0),t}function g(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}function v(t){return Object(c.e)(a.a,f,p,d,a.c,a.j,g)(t)}var y=n("kXyF");Object(y.j)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,o=n.defaultColor,a=r.pointer,s=r.pin,c=e.addGroup(),u=this.parsePoint({x:0,y:0});return a&&c.addShape("line",{name:"pointer",attrs:Object(i.a)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:o},a.style)}),s&&c.addShape("circle",{name:"pin",attrs:Object(i.a)({x:u.x,y:u.y,stroke:o},s.style)}),c}});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){var t;return{percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(t={},t[u.e]={sync:"v"},t[u.c]={sync:"v",tickCount:5,tickInterval:.2},t),animation:!1}},e.prototype.changeData=function(t){this.updateOption({percent:t});var e=this.chart.views.find(function(t){return t.id===u.b});e&&e.data(l(t));var n=this.chart.views.find(function(t){return t.id===u.f});n&&n.data(h(t,this.options.range)),d({chart:this.chart,options:this.options},!0)},e.prototype.getSchemaAdaptor=function(){return v},e}(r.a)},"Y+LX":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("DMQx");function s(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,s=n.xAxis,c=n.yAxis,u=n.barStyle,l=n.barWidthRatio,h=n.label,f=n.data,p=n.seriesField,d=n.isStack,g=n.minBarWidth,v=n.maxBarWidth;h&&!h.position&&(h.position="left",h.layout||(h.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var y=n.legend;p?!1!==y&&(y=Object(i.a)({position:d?"top-left":"right-top",reversed:!d},y||{})):y=!1,t.options.legend=y;var m=n.tooltip;return p&&!1!==m&&(m=Object(i.a)({reversed:!d},m||{})),t.options.tooltip=m,e.coordinate().transpose(),Object(a.a)({chart:e,options:Object(i.a)(Object(i.a)({},n),{label:h,xField:o,yField:r,xAxis:c,yAxis:s,columnStyle:u,columnWidthRatio:l,minColumnWidth:g,maxColumnWidth:v,data:f?f.slice().reverse():f})},!0)}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return s},e}(r.a)},YP77:function(t,e,n){"use strict";var i=n("mrSG"),r=n("zJSt"),o=n("iTfj"),a=n("YuPD"),s=n("w02o"),c=n("u9/z"),u=n("5kt6");function l(t){var e=t.options;return t.chart.coordinate("theta",{innerRadius:e.innerRadius,radius:e.radius}),t}function h(t){var e=t.chart,n=t.options,r=n.statistic,s=n.percent,c=n.meta;if(n.innerRadius&&r){var l=r.content;l&&!l.formatter&&(l.formatter=function(t){var e=t.percent,n=Object(o.s)(c,[u.c,"formatter"]);return n?n(e):e}),Object(a.m)(e,{statistic:Object(i.a)(Object(i.a)({},r),{content:l}),plotType:"ring-progress"},{percent:s})}return t}function f(t){return Object(a.e)(c.b,Object(s.f)({}),l,h,s.a,s.j,Object(s.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"},formatter:function(t){return(100*t.percent).toFixed(2)+"%"}}}}},e.prototype.changeData=function(t){this.update({percent:t})},e.prototype.getSchemaAdaptor=function(){return f}}(r.a)},Ybvb:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return d}),n.d(e,"h",function(){return g}),n.d(e,"i",function(){return v}),n.d(e,"j",function(){return y}),n.d(e,"k",function(){return m}),n.d(e,"l",function(){return b}),n.d(e,"m",function(){return x}),n.d(e,"n",function(){return O}),n.d(e,"o",function(){return j}),n.d(e,"p",function(){return w}),n.d(e,"q",function(){return C}),n.d(e,"r",function(){return M}),n.d(e,"s",function(){return S}),n.d(e,"t",function(){return k}),n.d(e,"u",function(){return A}),n.d(e,"v",function(){return I}),n.d(e,"w",function(){return T}),n.d(e,"x",function(){return B}),n.d(e,"y",function(){return L}),n.d(e,"z",function(){return F}),n.d(e,"A",function(){return E}),n.d(e,"B",function(){return P}),n.d(e,"C",function(){return D}),n.d(e,"D",function(){return z}),n.d(e,"E",function(){return R}),n.d(e,"F",function(){return _}),n.d(e,"G",function(){return Y}),n.d(e,"H",function(){return G}),n.d(e,"I",function(){return N}),n.d(e,"J",function(){return X}),n.d(e,"K",function(){return V}),n.d(e,"L",function(){return H}),n.d(e,"M",function(){return W}),n.d(e,"N",function(){return $});var i=n("ofXK"),r=n("ma/q"),o=n("fXoL"),a=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Area(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotArea",""]],inputs:{options:"options"},exportAs:["g2plotArea"]}),t}(),s=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),c=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Bar(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotBar",""]],inputs:{options:"options"},exportAs:["g2plotBar"]}),t}(),u=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),l=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Box(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotBox",""]],inputs:{options:"options"},exportAs:["g2plotBox"]}),t}(),f=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),d=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Bullet(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotBullet",""]],inputs:{options:"options"},exportAs:["g2plotBullet"]}),t}(),g=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),v=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Chord(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotChord",""]],inputs:{options:"options"},exportAs:["g2plotChord"]}),t}(),y=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),m=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Column(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotColumn",""]],inputs:{options:"options"},exportAs:["g2plotColumn"]}),t}(),b=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),x=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Funnel(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotFunnel",""]],inputs:{options:"options"},exportAs:["g2plotFunnel"]}),t}(),O=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),j=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Gauge(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t),this.instance.render()}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotGauge",""]],inputs:{options:"options"},exportAs:["g2plotGauge"]}),t}(),w=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),C=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Line(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotLine",""]],inputs:{options:"options"},exportAs:["g2plotLine"]}),t}(),M=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),S=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Liquid(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotLiquid",""]],inputs:{options:"options"},exportAs:["g2plotLiquid"]}),t}(),k=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),A=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Pie(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotPie",""]],inputs:{options:"options"},exportAs:["g2plotPie"]}),t}(),I=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),T=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Radar(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotRadar",""]],inputs:{options:"options"},exportAs:["g2plotRadar"]}),t}(),B=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),L=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.RadialBar(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotRadialBar",""]],inputs:{options:"options"},exportAs:["g2plotRadialBar"]}),t}(),F=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),E=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Sankey(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotSankey",""]],inputs:{options:"options"},exportAs:["g2plotSankey"]}),t}(),P=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),D=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Scatter(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotScatter",""]],inputs:{options:"options"},exportAs:["g2plotScatter"]}),t}(),z=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),R=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Stock(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotStock",""]],inputs:{options:"options"},exportAs:["g2plotStock"]}),t}(),_=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),Y=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Sunburst(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotSunburst",""]],inputs:{options:"options"},exportAs:["g2plotSunburst"]}),t}(),G=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),N=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Treemap(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotTreemap",""]],inputs:{options:"options"},exportAs:["g2plotTreemap"]}),t}(),X=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),V=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.Waterfall(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotWaterfall",""]],inputs:{options:"options"},exportAs:["g2plotWaterfall"]}),t}(),H=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}(),W=function(){var t=function(){function t(e){h(this,t),this.elementRef=e}return p(t,[{key:"ngAfterViewInit",value:function(){this.instance=new r.WordCloud(this.elementRef.nativeElement,this.options),this.instance.render()}},{key:"update",value:function(t){this.instance.update(t)}},{key:"changeData",value:function(t){this.instance.changeData(t)}},{key:"destroy",value:function(){this.instance.destroy()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l))},t.\u0275dir=o.Eb({type:t,selectors:[["","starkG2plotWordCloud",""]],inputs:{options:"options"},exportAs:["g2plotWordCloud"]}),t}(),$=function(){var t=function t(){h(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t}()},YuPD:function(t,e,n){"use strict";function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce(function(t,e){return e(t)},e)}}function r(t,e){var n={};return null!==t&&"object"==typeof t&&e.forEach(function(e){var i=t[e];void 0!==i&&(n[e]=i)}),n}n.d(e,"e",function(){return i}),n.d(e,"k",function(){return r}),n.d(e,"n",function(){return a}),n.d(e,"j",function(){return l}),n.d(e,"a",function(){return s}),n.d(e,"g",function(){return h}),n.d(e,"c",function(){return f}),n.d(e,"f",function(){return p}),n.d(e,"d",function(){return d.a}),n.d(e,"o",function(){return g}),n.d(e,"h",function(){return y}),n.d(e,"b",function(){return w}),n.d(e,"i",function(){return C}),n.d(e,"m",function(){return S.c}),n.d(e,"l",function(){return S.b});var o=n("iTfj");function a(t,e){return Object(o.cb)(e,function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)},t)}var s,c=n("mrSG");function u(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var i=0;return"AntV/G2Plot: "+t.replace(/%s/g,function(){return""+e[i++]})}function l(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];e||console[t](u.apply(void 0,Object(c.g)([n],i)))}function h(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function f(t,e){return t.geometries.find(function(t){return t.type===e})}function p(t){return Object(o.cb)(t.geometries,function(t,e){return t.concat(e.elements)},[])}!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(s||(s={}));var d=n("4Olw");function g(t){if(!Object(o.P)(t,"Object"))return t;var e=Object(c.a)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}var v=n("6JdA");function y(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(i.push(c.x),i.push(c.y),o=c)}var u=function(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,c,u,l=function(t,e,n,i){var r,o,a,s,c=[],u=!!i;if(u){a=[1/0,1/0],s=[-1/0,-1/0];for(var l=0,h=t.length;l<h;l++)a=v.c.min([0,0],a,p=t[l]),s=v.c.max([0,0],s,p);a=v.c.min([0,0],a,i[0]),s=v.c.max([0,0],s,i[1])}l=0;for(var f=t.length;l<f;l++){var p=t[l];if(n)r=t[l?l-1:f-1],o=t[(l+1)%f];else{if(0===l||l===f-1){c.push(p);continue}r=t[l-1],o=t[l+1]}var d=[0,0];d=v.c.sub(d,o,r),d=v.c.scale(d,d,.4);var g=v.c.distance(p,r),y=v.c.distance(p,o),m=g+y;0!==m&&(g/=m,y/=m);var b=v.c.scale([0,0],d,-g),x=v.c.scale([0,0],d,y),O=v.c.add([0,0],p,b),j=v.c.add([0,0],p,x);u&&(O=v.c.max([0,0],O,a),O=v.c.min([0,0],O,s),j=v.c.max([0,0],j,a),j=v.c.min([0,0],j,s)),c.push(O),c.push(j)}return n&&c.push(c.shift()),c}(r,0,i,n),h=r.length,f=[];for(o=0;o<h-1;o++)f.push(["C",(s=l[2*o])[0],s[1],(c=l[2*o+1])[0],c[1],(u=r[o+1])[0],u[1]]);return i&&f.push(["C",(s=l[h])[0],s[1],(c=l[h+1])[0],c[1],(u=r[0])[0],u[1]]),f}(i,e,n||[[0,0],[1,1]]);return u.unshift(["M",r.x,r.y]),u}var m={}.toString,b=function(t,e){return m.call(t)==="[object "+e+"]"},x=function(t){return b(t,"Array")},O=function(t){if(!function(t){return"object"==typeof t&&null!==t}(t)||!b(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},j=function t(e,n,i,r){for(var o in i=i||0,r=r||5,n)if(Object.prototype.hasOwnProperty.call(n,o)){var a=n[o];a?O(a)?(O(e[o])||(e[o]={}),i<r?t(e[o],a,i+1,r):e[o]=n[o]):x(a)?(e[o]=[],e[o]=e[o].concat(a)):e[o]=a:e[o]=a}},w=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)j(t,e[i]);return t};function C(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map(function(t){return t.toLowerCase()}).join("-"):t}var M,S=n("mj6g");Object(o.X)(function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=void 0===i?"sans-serif":i,a=e.fontWeight,s=e.fontStyle,c=e.fontVariant,u=(M||(M=document.createElement("canvas").getContext("2d")),M);return u.font=[s,a,c,n+"px",r].join(" "),u.measureText(Object(o.O)(t)?t:"").width},function(t,e){return void 0===e&&(e={}),Object(c.g)([t],Object(o.rb)(e)).join("")})},ZxFD:function(t,e,n){"use strict";n.r(e),n.d(e,"create",function(){return r}),n.d(e,"clone",function(){return o}),n.d(e,"fromValues",function(){return a}),n.d(e,"copy",function(){return s}),n.d(e,"set",function(){return c}),n.d(e,"add",function(){return u}),n.d(e,"subtract",function(){return l}),n.d(e,"multiply",function(){return h}),n.d(e,"divide",function(){return f}),n.d(e,"ceil",function(){return p}),n.d(e,"floor",function(){return d}),n.d(e,"min",function(){return g}),n.d(e,"max",function(){return v}),n.d(e,"round",function(){return y}),n.d(e,"scale",function(){return m}),n.d(e,"scaleAndAdd",function(){return b}),n.d(e,"distance",function(){return x}),n.d(e,"squaredDistance",function(){return O}),n.d(e,"length",function(){return j}),n.d(e,"squaredLength",function(){return w}),n.d(e,"negate",function(){return C}),n.d(e,"inverse",function(){return M}),n.d(e,"normalize",function(){return S}),n.d(e,"dot",function(){return k}),n.d(e,"cross",function(){return A}),n.d(e,"lerp",function(){return I}),n.d(e,"random",function(){return T}),n.d(e,"transformMat2",function(){return B}),n.d(e,"transformMat2d",function(){return L}),n.d(e,"transformMat3",function(){return F}),n.d(e,"transformMat4",function(){return E}),n.d(e,"rotate",function(){return P}),n.d(e,"angle",function(){return D}),n.d(e,"zero",function(){return z}),n.d(e,"str",function(){return R}),n.d(e,"exactEquals",function(){return _}),n.d(e,"equals",function(){return Y}),n.d(e,"len",function(){return N}),n.d(e,"sub",function(){return X}),n.d(e,"mul",function(){return V}),n.d(e,"div",function(){return H}),n.d(e,"dist",function(){return W}),n.d(e,"sqrDist",function(){return $}),n.d(e,"sqrLen",function(){return q}),n.d(e,"forEach",function(){return U});var i=n("yU0y");function r(){var t=new i.a(2);return i.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new i.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new i.a(2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function c(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 h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1])}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function j(t){return Math.hypot(t[0],t[1])}function w(t){var e=t[0],n=t[1];return e*e+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function k(t,e){return t[0]*e[0]+t[1]*e[1]}function A(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function I(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t}function T(t,e){e=e||1;var n=2*i.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function B(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function F(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function E(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function P(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o);return Math.acos(Math.min(Math.max(a&&(n*r+i*o)/a,-1),1))}function z(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function _(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i.b*Math.max(1,Math.abs(r),Math.abs(a))}var G,N=j,X=l,V=h,H=f,W=x,$=O,q=w,U=(G=r(),function(t,e,n,i,r,o){var a,s;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)G[0]=t[a],G[1]=t[a+1],r(G,G,o),t[a]=G[0],t[a+1]=G[1];return t})},a8tM:function(t,e,i){"use strict";function r(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function o(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=s)):void 0===e&&(e=a);for(var n,i,r,o,c,h=new l(t),f=[h];n=f.pop();)if((r=e(n.data))&&(c=(r=Array.from(r)).length))for(n.children=r,o=c-1;o>=0;--o)f.push(i=r[o]=new l(r[o])),i.parent=n,i.depth=n.depth+1;return h.eachBefore(u)}function a(t){return t.children}function s(t){return Array.isArray(t)?t[1]:null}function c(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function u(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function l(t){this.data=t,this.depth=this.height=0,this.parent=null}var h,f,p;i.d(e,"c",function(){return o}),i.d(e,"b",function(){return u}),i.d(e,"a",function(){return l}),l.prototype=o.prototype=(h={constructor:l,count:function(){return this.eachAfter(r)},each:function(t,e){var i,r=-1,o=n(this);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.call(e,a,++r,this)}}catch(s){o.e(s)}finally{o.f()}return this},eachAfter:function(t,e){for(var n,i,r,o=this,a=[o],s=[],c=-1;o=a.pop();)if(s.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);for(;o=s.pop();)t.call(e,o,++c,this);return this},eachBefore:function(t,e){for(var n,i,r=this,o=[r],a=-1;r=o.pop();)if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},find:function(t,e){var i,r=-1,o=n(this);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.call(e,a,++r,this))return a}}catch(s){o.e(s)}finally{o.f()}},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;for(t=n.pop(),e=i.pop();t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)i.push(e=e.parent);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return o(this).eachBefore(c)}},f=Symbol.iterator,p=regeneratorRuntime.mark(function t(){var e,n,i,r,o,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=[o=this];case 1:e=a.reverse(),a=[];case 2:if(!(o=e.pop())){t.next=9;break}return t.next=5,o;case 5:if(!(n=o.children)){t.next=7;break}for(i=0,r=n.length;i<r;++i)a.push(n[i]);case 7:t.next=2;break;case 9:if(a.length){t.next=1;break}case 10:case"end":return t.stop()}},t,this)}),f in h?Object.defineProperty(h,f,{value:p,enumerable:!0,configurable:!0,writable:!0}):h[f]=p,h)},aFU3:function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return y});var i=n("tvuL");n.d(e,"PathUtil",function(){return i});var r=n("4cbP");for(var o in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(o)<0&&function(t){n.d(e,t,function(){return r[t]})}(o);var a=n("tdXX");for(var o in a)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(o)<0&&function(t){n.d(e,t,function(){return a[t]})}(o);var s=n("5eLp");n.d(e,"Event",function(){return s.a});var c=n("LmB6");n.d(e,"Base",function(){return c.a});var u=n("EkMX");n.d(e,"AbstractCanvas",function(){return u.a});var l=n("+DwW");n.d(e,"AbstractGroup",function(){return l.a});var h=n("MaEA");n.d(e,"AbstractShape",function(){return h.a});var f=n("1MZV");n.d(e,"getBBoxMethod",function(){return f.a});var p=n("vIgC");n.d(e,"getTextHeight",function(){return p.b}),n.d(e,"assembleFont",function(){return p.a});var d=n("sstZ");n.d(e,"isAllowCapture",function(){return d.b});var g=n("aSjE");n.d(e,"multiplyVec2",function(){return g.c}),n.d(e,"invert",function(){return g.a});var v=n("lt7v");n.d(e,"getOffScreenContext",function(){return v.a});var y="0.5.4"},aLzy:function(t,e,n){"use strict";n.d(e,"a",function(){return F});var i=n("mrSG"),r=n("zJSt"),o=n("w02o"),a=n("YuPD"),s=n("5OoT"),c=n("iTfj"),u=n("5HRO"),l=n("WOQw");function h(t,e,n){var i=n.yField,r=n.maxSize,o=n.minSize,a=Object(c.W)(e,i)[i],s=Object(c.K)(r)?r:1,u=Object(c.K)(o)?o:0;return Object(c.U)(t,function(e,n){var r=(e[i]||0)/a;return e.$$percentage$$=r,e.$$mappingValue$$=(s-u)*r+u,e.$$conversion$$=[Object(c.s)(t,[n-1,i]),e[i]],e})}function f(t){return function(e){var n=e.chart,r=e.options.conversionTag,o=n.getOptions().data;if(r){var a=r.formatter;o.forEach(function(e,s){if(!(s<=0)){var u=t(e,s,o,{top:!0,text:{content:Object(c.H)(a)?a(e,o):a,offsetX:r.offsetX,offsetY:r.offsetY,position:"end",autoRotate:!1,style:Object(i.a)({textAlign:"start",textBaseline:"middle"},r.style)}});n.annotation().line(u)}})}return e}}function p(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=h(r,r,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(o),t}function d(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.color,s=n.tooltip,h=n.label,f=Object(u.a)(s,[i,r]),p=f.fields,d=f.formatter;return Object(l.a)({chart:e,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.B)(p)&&p.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:d,color:o},label:h}}),Object(a.c)(t.chart,"interval").adjust("symmetric"),t}function g(t){return t.chart.coordinate({type:"rect",actions:t.options.isTransposed?[]:[["transpose"],["scale",1,-1]]}),t}function v(t){var e=t.options.maxSize;return f(function(t,n,r,o){var a=e-(e-t.$$mappingValue$$)/2;return Object(i.a)(Object(i.a)({},o),{start:[n-.5,a],end:[n-.5,a+.05]})})(t),t}function y(t){return Object(a.e)(p,d,g,v)(t)}function m(t){var e,n=t.chart,i=t.options,r=i.data,o=i.yField;return n.data(void 0===r?[]:r),n.scale(((e={})[o]={sync:!0},e)),t}function b(t){var e=t.options,n=e.data,i=e.xField,r=e.yField,o=e.color,s=e.compareField,f=e.isTransposed,p=e.tooltip,d=e.maxSize,g=e.minSize,v=e.label;return t.chart.facet("mirror",{fields:[s],transpose:!f,padding:f?0:[32,0,0,0],eachView:function(t,e){var y=f?e.rowIndex:e.columnIndex;f||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===y?-1:1,-1]]});var m=h(e.data,n,{yField:r,maxSize:d,minSize:g});t.data(m);var b=Object(u.a)(p,[i,r,s]),x=b.fields,O=b.formatter,j=f?{offset:0===y?10:-23,position:0===y?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===y?"end":"start"}};Object(l.a)({chart:t,options:{type:"interval",xField:i,yField:"$$mappingValue$$",colorField:i,tooltipFields:Object(c.B)(x)&&x.concat(["$$percentage$$","$$conversion$$"]),mapping:{shape:"funnel",tooltip:O,color:o,style:{lineWidth:1,stroke:"#fff"}},label:!1!==v&&Object(a.b)({},j,v)}})}}),t}function x(t){var e=t.chart,n=t.options,i=n.conversionTag,r=n.isTransposed;return e.once("beforepaint",function(){e.views.forEach(function(t,e){f(function(t,n,o,s){var c=0===e?-1:1;return Object(a.b)({},s,{start:[n-.5,t.$$mappingValue$$],end:[n-.5,t.$$mappingValue$$+.05],text:r?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===e?"end":"start"}}})})(Object(a.b)({},{chart:t,options:n}))})}),t}function O(t){var e,n=t.chart,i=t.options,r=i.data,o=i.yField;return n.data(void 0===r?[]:r),n.scale(((e={})[o]={sync:!0},e)),t}function j(t){var e=t.options;return t.chart.facet("rect",{fields:[e.seriesField],padding:[e.isTransposed?0:32,10,0,10],eachView:function(e,n){y(Object(a.b)({},t,{chart:e,options:{data:n.data}}))}}),t}function w(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=Object(c.cb)(r,function(t,e){return t+(e[o]||0)},0),s=Object(c.W)(r,o)[o],u=Object(c.U)(r,function(t,e){var n=[],i=[];if(t.$$totalPercentage$$=(t[o]||0)/a,e){var u=r[e-1].$$x$$,l=r[e-1].$$y$$;n[0]=u[3],i[0]=l[3],n[1]=u[2],i[1]=l[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t.$$totalPercentage$$,n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t.$$x$$=n,t.$$y$$=i,t.$$percentage$$=(t[o]||0)/s,t.$$conversion$$=[Object(c.s)(r,[e-1,o]),t[o]],t});return e.data(u),t}function C(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.color,a=n.tooltip,s=n.label,h=Object(u.a)(a,[i,r]),f=h.fields,p=h.formatter;return Object(l.a)({chart:e,options:{type:"polygon",xField:"$$x$$",yField:"$$y$$",colorField:i,tooltipFields:Object(c.B)(f)&&f.concat(["$$percentage$$","$$conversion$$"]),label:s,mapping:{tooltip:p,color:o}}}),t}function M(t){return t.chart.coordinate({type:"rect",actions:t.options.isTransposed?[["transpose"],["reflect","x"]]:[]}),t}function S(t){return f(function(t,e,n,r){return Object(i.a)(Object(i.a)({},r),{start:[t.$$x$$[1],t.$$y$$[1]],end:[t.$$x$$[1]+.05,t.$$y$$[1]]})})(t),t}function k(t){var e,n=t.options,i=n.compareField,r=n.xField,o=n.yField,c={minSize:0,maxSize:1,meta:(e={},e.$$mappingValue$$={min:0,max:1,nice:!1},e),label:i?{fields:[r,o,i,"$$percentage$$","$$conversion$$"],style:{fill:"#fff",fontSize:12},formatter:function(t){return""+t[o]}}:{fields:[r,o,"$$percentage$$","$$conversion$$"],offset:0,position:"middle",style:{fill:"#fff",fontSize:12},formatter:function(t){return t[r]+" "+t[o]}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,title:r,formatter:function(t){return{name:t[r],value:t[o]}}},conversionTag:{offsetX:10,offsetY:0,style:{},formatter:function(t){return"\u8f6c\u5316\u7387: "+s.a.apply(void 0,t.$$conversion$$)}}};return Object(a.b)({options:c},t)}function A(t){var e=t.options,n=e.compareField,i=e.dynamicHeight;return e.seriesField?function(t){return Object(a.e)(O,j)(t)}(t):n?function(t){return Object(a.e)(m,b,x)(t)}(t):i?function(t){return Object(a.e)(w,C,M,S)(t)}(t):y(t)}function I(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,s=n.xField,c=n.yField;return Object(a.e)(Object(o.f)(((e={})[s]=i,e[c]=r,e)))(t)}function T(t){return t.chart.axis(!1),t}function B(t){var e=t.options.legend;return t.chart.legend(!1!==e&&e),t}function L(t){return Object(a.e)(k,A,I,T,o.k,o.c,B,o.a,o.j,Object(o.b)())(t)}var F=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:[0,80]}},e.prototype.getSchemaAdaptor=function(){return L},e}(r.a)},aN7R:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",function(){return h}),n.d(e,"Circle",function(){return p}),n.d(e,"Dom",function(){return d}),n.d(e,"Ellipse",function(){return g}),n.d(e,"Image",function(){return v}),n.d(e,"Line",function(){return m}),n.d(e,"Marker",function(){return O}),n.d(e,"Path",function(){return j}),n.d(e,"Polygon",function(){return w}),n.d(e,"Polyline",function(){return C}),n.d(e,"Rect",function(){return M}),n.d(e,"Text",function(){return T});var i={};n.r(i),n.d(i,"Base",function(){return h}),n.d(i,"Circle",function(){return p}),n.d(i,"Dom",function(){return d}),n.d(i,"Ellipse",function(){return g}),n.d(i,"Image",function(){return v}),n.d(i,"Line",function(){return m}),n.d(i,"Marker",function(){return O}),n.d(i,"Path",function(){return j}),n.d(i,"Polygon",function(){return w}),n.d(i,"Polyline",function(){return C}),n.d(i,"Rect",function(){return M}),n.d(i,"Text",function(){return T});var r=n("mrSG"),o=n("aFU3"),a=n("APlK"),s=n("c+wO"),c=n("c0lT"),u=n("IvmH"),l=n("5z4m"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return l.a},e.prototype.onCanvasChange=function(t){Object(c.b)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,a=e.width,s=e.height,c=this.getHitLineWidth(),u=c/2,l=i-u,h=r-u;return{x:l,y:h,minX:l,minY:h,maxX:i+a+u,maxY:r+s+u,width:a+c,height:s+c}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr();return(t.fill||t.fillStyle||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr();return(t.stroke||t.strokeStyle)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s.a)(this),Object(a.a)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,l=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&h.setAttribute(u.b.fillOpacity,s)),this.canStroke&&l>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&h.setAttribute(u.b.strokeOpacity,c),l&&h.setAttribute(u.b.lineWidth,l))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(r=t.find("gradient",n))||(r=t.addGradient(n)),i.setAttribute(u.b[e],"url(#"+r+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var r;(r=t.find("pattern",n))||(r=t.addPattern(n)),i.setAttribute(u.b[e],"url(#"+r+")")}else i.setAttribute(u.b[e],n);else i.setAttribute(u.b[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n;(i.shadowOffsetX||i.shadowOffsetY||i.shadowBlur||i.shadowColor)&&Object(a.b)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(a.c)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas").get("el").getBoundingClientRect(),r=document.elementFromPoint(t+i.left,e+i.top);return!(!r||!r.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape),f=n("iTfj"),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f.j)(e||n,function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):u.b[e]&&i.setAttribute(u.b[e],t)})},e}(h),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return Object(r.d)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(Object(f.j)(e||n,function(t,e){u.b[e]&&i.setAttribute(u.b[e],t)}),"function"==typeof n.html){var r=n.html.call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var o=i.childNodes,a=o.length-1;a>=0;a--)i.removeChild(o[a]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n.html},e}(h),g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f.j)(e||n,function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):u.b[e]&&i.setAttribute(u.b[e],t)})},e}(h),v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(f.j)(e||i,function(t,e){"img"===e?n._setImage(i.img):u.b[e]&&r.setAttribute(u.b[e],t)})},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(Object(f.O)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(f.O)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(h),y=n("EYNi"),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f.j)(e||n,function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var o=Object(f.M)(e)?t.addArrow(n,u.b[r]):t.getDefaultArrow(n,u.b[r]);i.setAttribute(u.b[r],"url(#"+o+")")}else i.removeAttribute(u.b[r]);else u.b[r]&&i.setAttribute(u.b[r],e)})},e.prototype.getTotalLength=function(){var t=this.attr();return y.c.length(t.x1,t.y1,t.x2,t.y2)},e.prototype.getPoint=function(t){var e=this.attr();return y.c.pointAt(e.x1,e.y1,e.x2,e.y2,t)},e}(h),b={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},x={get:function(t){return b[t]},register:function(t,e){b[t]=e},remove:function(t){delete b[t]},getAll:function(){return b}},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(f.B)(t)?t.map(function(t){return t.join(" ")}).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,o=e.symbol||"circle";return(t=Object(f.H)(o)?o:x.get(o))?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=x,e}(h),j=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(f.j)(e||i,function(e,o){if("path"===o&&Object(f.B)(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(f.M)(e)?t.addArrow(i,u.b[o]):t.getDefaultArrow(i,u.b[o]);r.setAttribute(u.b[o],"url(#"+a+")")}else r.removeAttribute(u.b[o]);else u.b[o]&&r.setAttribute(u.b[o],e)})},e.prototype._formatPath=function(t){var e=t.map(function(t){return t.join(" ")}).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(h),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f.j)(e||n,function(t,e){"points"===e&&Object(f.B)(t)&&t.length>=2?i.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):u.b[e]&&i.setAttribute(u.b[e],t)})},e}(h),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f.j)(e||n,function(t,e){"points"===e&&Object(f.B)(t)&&t.length>=2?i.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):u.b[e]&&i.setAttribute(u.b[e],t)})},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(f.I)(e)?(this.set("totalLength",y.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(f.j)(r,function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}),y.c.pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(f.j)(t,function(a,s){t[s+1]&&((n=[])[0]=r/e,i=y.c.length(a[0],a[1],t[s+1][0],t[s+1][1]),n[1]=(r+=i)/e,o.push(n))}),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().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},e}(h),M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(f.j)(e||i,function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&u.b[e]&&r.setAttribute(u.b[e],t):(r.setAttribute("d",n._assembleRect(i)),o=!0)})},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=function(t){var e=0,n=0,i=0,r=0;return Object(f.B)(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}(o);return Object(f.B)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(h),S=n("e0ae"),k={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},A={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},I={left:"left",start:"left",center:"middle",right:"end",end:"end"},T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return Object(r.d)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.a)(Object(r.a)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(f.j)(e||i,function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a.c)(n):u.b[e]&&r.setAttribute(u.b[e],t)}),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=Object(S.a)();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",A[n]||"alphabetic"):t.setAttribute("alignment-baseline",k[n]||"baseline"),t.setAttribute("text-anchor",I[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,c="";Object(f.j)(a,function(t,e){0===e?"alphabetic"===o?c+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===o?c+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===o?c+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===o?c+='<tspan x="'+i+'" dy="-'+(s+.3)+'em">'+t+"</tspan>":"hanging"===o&&(c+='<tspan x="'+i+'" dy="'+(-(s-1)-.3)+'em">'+t+"</tspan>"):c+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"}),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(h)},aSjE:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],u=t[6],l=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*i+p*a+d*u,n[1]=f*r+p*s+d*l,n[2]=f*o+p*c+d*h,n[3]=g*i+v*a+y*u,n[4]=g*r+v*s+y*l,n[5]=g*o+v*c+y*h,n[6]=m*i+b*a+x*u,n[7]=m*r+b*s+x*l,n[8]=m*o+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],c=t[6],u=t[7],l=t[8],h=l*a-s*u,f=-l*o+s*c,p=u*o-a*c,d=n*h+i*f+r*p;return d?(e[0]=h*(d=1/d),e[1]=(-l*i+r*u)*d,e[2]=(s*i-r*a)*d,e[3]=f*d,e[4]=(l*n-r*c)*d,e[5]=(-s*n+r*o)*d,e[6]=p*d,e[7]=(-u*n+i*c)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,"b",function(){return i}),n.d(e,"c",function(){return r}),n.d(e,"a",function(){return o})},"c+wO":function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"a",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return c});var i=n("iTfj"),r=n("IvmH");function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=r.a[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=o(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(i)}return i}function s(t,e){var n=t.get("el"),r=Object(i.lb)(n.children).sort(e),o=document.createDocumentFragment();r.forEach(function(t){o.appendChild(t)}),n.appendChild(o)}function c(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter(function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()}),r=i[e],o=i.indexOf(t);if(r){if(o>e)n.insertBefore(t,r);else if(o<e){var a=i[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}},c0lT:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var i=n("APlK"),r=n("c+wO");function o(t,e){e.forEach(function(e){e.draw(t)})}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],c=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=c&&c.parentNode,l=u&&u.parentNode;u&&l&&l.removeChild(u)}else c&&c.parentNode&&c.parentNode.removeChild(c);else if("show"===e)c.setAttribute("visibility","visible");else if("hide"===e)c.setAttribute("visibility","hidden");else if("zIndex"===e)Object(r.c)(c,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&Object(r.d)(t,function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0})}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?Object(i.c)(t):"clip"===e?Object(i.a)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},cBFB:function(t,e,n){"use strict";n.d(e,"a",function(){return w});var i=n("mrSG"),r=n("YuPD"),o=n("zJSt"),a=n("tKoa"),s=n("w02o"),c=n("+Nd1"),u=n("a8tM"),l=n("iTfj"),h=n("I7nc"),f={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function p(t,e){var n,i=(e=Object(l.b)({},f,e)).as;if(!Object(l.B)(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(h.b)(e)}catch(s){console.warn(s)}var r=function(t){return c.a().size(e.size).round(e.round).padding(e.padding)(u.c(t).sum(function(t){return t[n]}))}(t),o=i[0],a=i[1];return r.each(function(t){t[o]=[t.x0,t.x1,t.x1,t.x0],t[a]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===i.indexOf(e)&&delete t[e]})}),Object(h.a)(r)}var d=n("NzZ7");function g(t){var e=t.chart,n=t.options,o=n.color,s=n.colorField,c=n.sunburstStyle,u=function(t){var e=t.type,n=t.seriesField,r=t.colorField,o=t.hierarchyConfig,a={partition:p,treemap:d.a}[e](t.data,Object(i.a)(Object(i.a)({},o),{type:"hierarchy."+e,field:n,as:["x","y"]})),s=[];return a.forEach(function(t){var e,a,c,u,l;if(0===t.depth)return null;var h=Object(i.a)(((e={})[n]=t.data[n]||(null===(c=null===(a=t.parent)||void 0===a?void 0:a.data)||void 0===c?void 0:c[n]),e[r]=t.data[r]||(null===(l=null===(u=t.parent)||void 0===u?void 0:u.data)||void 0===l?void 0:l[r]),e),t);h.ext=o,s.push(h)}),s}(n);return e.data(u),Object(a.f)(Object(r.b)({},t,{options:{xField:"x",yField:"y",seriesField:s,polygon:{color:o,style:c}}})),t}function v(t){return t.chart.axis(!1),t}function y(t){return t.chart.legend(!1),t}function m(t){var e=t.chart,n=t.options,o=n.label,a=n.seriesField,s=Object(r.c)(e,"polygon");if(o){var c=o.callback,u=Object(i.f)(o,["callback"]);s.label({fields:[a],callback:c,cfg:Object(r.o)(u)})}else s.label(!1);return t}function b(t){var e=t.options,n=e.reflect,i=t.chart.coordinate({type:"polar",cfg:{innerRadius:e.innerRadius,radius:e.radius}});return n&&i.reflect(n),t}function x(t){var e=t.options.meta;return e&&t.chart.scale(e),t}function O(t){var e=t.options,n=e.tooltip,r=e.seriesField,o=e.colorField;return n&&t.chart.tooltip(Object(i.a)(Object(i.a)({},n),{customContent:n&&n.customContent?n.customContent:function(t,e){return function(t){var e=t.formatter,n=t.fields,r=t.items[0]||{},o=r.color,a=r.mappingData,s=r.data,c=document.createElement("ul");c.className="g2-tooltip";var u="";return n.forEach(function(t){var n=function(t,n){var r;return e?e(Object(i.a)(Object(i.a)({},t),{field:n})):{name:n,value:(null==t?void 0:t[n])||(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r[n])}}(s,t);u+='<li class="g2-tooltip-list-item" data-index={index} style="margin-bottom:4px;display:flex;align-items: center;">\n <span style="background-color:'+((null==a?void 0:a.color)||o)+';" class="g2-tooltip-marker"></span>\n <span style="display:inline-flex;flex:1;justify-content:space-between">\n <span style="margin-right: 16px;">'+n.name+':</span>\n <span class="g2-tooltip-list-item-value">'+n.value+"</span>\n </span>\n </li>"}),c.innerHTML=u,c}({value:t,items:e,formatter:n&&(null==n?void 0:n.formatter),fields:n&&n.fields||[r,o]})}})),t}function j(t){return Object(r.e)(g,s.j,v,x,y,b,O,m,s.c,s.a,Object(s.b)())(t)}var w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(r.b)({},t.prototype.getDefaultOptions.call(this),{type:"partition",innerRadius:0,seriesField:"value",tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1}})},e.prototype.getSchemaAdaptor=function(){return j},e}(o.a)},chpo:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=1;e.default=function(){return"".concat(i++)}},cyZq:function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return s}),n.d(e,"l",function(){return c}),n.d(e,"j",function(){return u});var i=n("iTfj");function r(){return window?window.devicePixelRatio:1}function o(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function a(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function s(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function c(t,e){return t&&e?{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)}:t||e}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",function(){return i.I}),n.d(e,"k",function(){return i.O}),n.d(e,"h",function(){return i.H}),n.d(e,"g",function(){return i.B}),n.d(e,"c",function(){return i.j}),n.d(e,"o",function(){return i.mb}),n.d(e,"m",function(){return i.Z}),n.d(e,"n",function(){return i.eb}),n.d(e,"a",function(){return i.d})},de35:function(t,e,n){"use strict";var i=n("mrSG"),r=n("fIp6"),o=n("iTfj"),a=n("5UbV"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){this.getContainer().style.pointerEvents=t?"auto":"none",this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.I)(t)){t=this.createDom();var e=this.get("parent");Object(o.O)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(o.O)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.h)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var i=t[n];Object(r.e)(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,function(e,n){var i=t.getElementsByClassName(n);Object(o.j)(i,function(t){Object(r.e)(t,e)})})},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(r.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(r.b)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.x)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n("NmWf").a);e.a=s},e0ae:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var i=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},r=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},o=function(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"},a=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],l=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(t){return t?f(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?f(navigator.userAgent):"undefined"!=typeof process&&process.version?new r(process.version.slice(1)):null}function f(t){var e=function(t){return""!==t&&u.reduce(function(e,n){var i=n[0];if(e)return e;var r=n[1].exec(t);return!!r&&[i,r]},!1)}(t);if(!e)return null;var n=e[0],r=e[1];if("searchbot"===n)return new a;var s=r[1]&&r[1].split(/[._]/).slice(0,3);s?s.length<3&&(s=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}(s,function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-s.length))):s=[];var h=s.join("."),f=function(t){for(var e=0,n=l.length;e<n;e++){var i=l[e],r=i[0];if(i[1].exec(t))return r}return null}(t),p=c.exec(t);return p&&p[1]?new o(n,h,f,p[1]):new i(n,h,f)}},eHqw:function(t,e,n){"use strict";n.d(e,"a",function(){return p});var i=n("mrSG"),r=n("zJSt"),o=n("KMYG"),a=n("w02o"),s=n("YuPD"),c=n("NzZ7");function u(t){var e=t.options.colorField;return Object(s.b)({options:{label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1,fields:["name","value",e],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function l(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,a=function(t){var e=t.data,n=t.colorField,i=Object(c.a)(e,{type:"hierarchy.treemap",tile:"treemapResquarify",field:"value",as:["x","y"]}),r=[];return i.forEach(function(t){if(!t.children){var e={name:t.data.name,x:t.x,y:t.y,depth:t.depth,value:t.value};e[n]=!t.data[n]&&t.parent?t.parent.data[n]:t.data[n],r.push(e)}}),r}(n);return e.data(a),Object(o.a)(Object(s.b)({},t,{options:{xField:"x",yField:"y",seriesField:r,polygon:{color:i,style:{lineWidth:1,stroke:"#fff"}}}})),t}function h(t){return t.chart.axis(!1),t}function f(t){return Object(s.e)(u,l,h,a.j,a.d,a.k,a.c,a.a,Object(a.b)())(t)}var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}return Object(i.d)(e,t),e.prototype.getSchemaAdaptor=function(){return f},e}(r.a)},f6Jy:function(t,e,n){"use strict";var i=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this._events[t]||[],o=this._events["*"]||[],a=function(i){for(var r=i.length,o=0;o<r;o++)if(i[o]){var a=i[o],s=a.callback;a.once&&(i.splice(o,1),0===i.length&&delete e._events[t],r--,o--),s.apply(e,n)}};a(r),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=i},fFDA:function(t,e,n){"use strict";n.d(e,"a",function(){return b});var i=n("mrSG"),r=n("iTfj"),o=n("MeYt"),a={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},u=n("LvGN"),l=n("8vsG");function h(t){return function(t){return Object(r.U)(t,function(t,e){return[0===e?"M":"L",t[0],t[1]]})}(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,o=e.height,a=e.data,s=e.smooth,c=e.isArea,f=e.backgroundStyle,p=e.lineStyle,d=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i.a)({x:0,y:0,width:n,height:o},f)});var g=function(t,e,n,i){void 0===i&&(i=!0);var o=new l.b({values:t}),a=new l.a({values:Object(r.U)(t,function(t,e){return e})}),s=Object(r.U)(t,function(t,i){return[a.scale(i)*e,n-o.scale(t)*n]});return i?function(t){if(t.length<=2)return h(t);var e=[];Object(r.j)(t,function(t){Object(r.G)(t,e.slice(e.length-2))||e.push(t[0],t[1])});var n=Object(u.a)(e,!1),i=Object(r.y)(t);return n.unshift(["M",i[0],i[1]]),n}(s):h(s)}(a,n,o,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(i.a)({path:g},p)}),c){var v=function(t,e,n,r){var o=Object(i.g)(t),a=function(t,e){var n=new l.b({values:t}),i=Math.max(0,n.min);return e-n.scale(i)*e}(r,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}(g,n,o,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(i.a)({path:v},d)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),p={fill:"#416180",opacity:.05},d={fill:"#5B8FF9",opacity:.15,cursor:"move"},g={width:10,height:24},v={textBaseline:"middle",fill:"#000",opacity:.45},y={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:y})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,o=r.fill,a=r.stroke,s=r.radius,c=r.opacity,u=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:o,stroke:a,radius:s,opacity:c,cursor:u}});var l=1/3*n,h=2/3*n,f=1/4*i,p=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:l,y1:f,x2:l,y2:p,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:f,x2:h,y2:p,stroke:a,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()}),this.get("group").on("mouseleave",function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()})},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.a),b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(r.s)(i,"touches.0.pageX",i.pageX),e.prevY=Object(r.s)(i,"touches.0.pageY",i.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(r.s)(t,"touches.0.pageX",t.pageX),a=Object(r.s)(t,"touches.0.pageY",t.pageY),s=e.adjustOffsetRange((o-e.prevX)/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit("sliderchange",[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(i.d)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),i=this.get("end"),o=Object(r.c)(n,t,e),a=Object(r.c)(i,t,e);this.get("isInit")||n===o&&i===a||this.setValue([o,a])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(r.B)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(r.c)(t[0],e.min,e.max),end:Object(r.c)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:p,foregroundStyle:d,handlerStyle:g,textStyle:v}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(i.a)({},e);Object(r.I)(n)||(a.start=Object(r.c)(n,0,1)),Object(r.I)(o)||(a.end=Object(r.c)(o,0,1)),t.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(r.c)(this.get("start"),0,1)),this.set("end",Object(r.c)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,o=e.height,a=e.trendCfg,s=void 0===a?{}:a,c=e.minText,u=e.maxText,l=e.backgroundStyle,h=void 0===l?{}:l,p=e.foregroundStyle,d=void 0===p?{}:p,g=e.textStyle,v=void 0===g?{}:g,y=e.handlerStyle,b=void 0===y?{}:y;Object(r.gb)(Object(r.s)(s,"data"))&&(this.trend=this.addComponent(t,Object(i.a)({component:f,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i.a)({x:0,y:0,width:n,height:o},h)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(i.a)({y:o/2,textAlign:"right",text:c,silent:!1},v)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(i.a)({y:o/2,textAlign:"left",text:u,silent:!1},v)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(i.a)({y:0,height:o},d)});var x=Object(r.s)(b,"height",24);this.minHandler=this.addComponent(t,Object(i.a)({component:m,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-x)/2,width:n,height:x,cursor:"ew-resize"},b)),this.maxHandler=this.addComponent(t,Object(i.a)({component:m,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-x)/2,width:n,height:x,cursor:"ew-resize"},b))},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var i=this.cfg,o=i.width,a=i.minText,s=i.maxText,c=i.handlerStyle,u=i.start*o,l=i.end*o;this.trend&&(this.trend.update({width:o,height:i.height}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",u),t.attr("width",l-u);var h=Object(r.s)(c,"width",10);e.attr("text",a),n.attr("text",s);var f=this._dodgeText([u,l],e,n),p=f[0],d=f[1];this.minHandler&&(this.minHandler.update({x:u-h/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(r.j)(p,function(t,n){return e.attr(n,t)}),this.maxHandler&&(this.maxHandler.update({x:l-h/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(r.j)(d,function(t,e){return n.attr(e,t)})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,o=1-n;return Math.min(o,Math.max(r,t));case"maxHandler":return r=0-i,o=1-i,Math.min(o,Math.max(r,t));case"foreground":return r=0-n,o=1-i,Math.min(o,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,o,a=this.cfg,s=a.handlerStyle,c=a.width,u=Object(r.s)(s,"width",10),l=t[0],h=t[1],f=!1;l>h&&(l=(i=[h,l])[0],h=i[1],e=(o=[n,e])[0],n=o[1],f=!0);var p=e.getBBox(),d=n.getBBox(),g=p.width>l-2?{x:l+u/2+2,textAlign:"left"}:{x:l-u/2-2,textAlign:"right"},v=d.width>c-h-2?{x:h-u/2-2,textAlign:"right"}:{x:h+u/2+2,textAlign:"left"};return f?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.a)},fIp6:function(t,e,n){"use strict";function i(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var r,o,a,s;function c(t){r||(r=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function u(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function l(t,e){var n=function(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),i=parseFloat(u(t,"borderTopWidth"))||0,r=parseFloat(u(t,"paddingTop"))||0,o=parseFloat(u(t,"paddingBottom"))||0;return n+i+(parseFloat(u(t,"borderBottomWidth"))||0)+r+o+(parseFloat(u(t,"marginTop"))||0)+(parseFloat(u(t,"marginBottom"))||0)}function h(t,e){var n=function(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),i=parseFloat(u(t,"borderLeftWidth"))||0,r=parseFloat(u(t,"paddingLeft"))||0,o=parseFloat(u(t,"paddingRight"))||0,a=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0;return n+i+a+r+o+(parseFloat(u(t,"marginLeft"))||0)+s}function f(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",function(){return i}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return l}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return f})},fP0w:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",function(){return D}),n.d(e,"Circle",function(){return z}),n.d(e,"Base",function(){return d});var i={};n.r(i),n.d(i,"getDefault",function(){return y}),n.d(i,"ellipsisHead",function(){return m}),n.d(i,"ellipsisTail",function(){return b}),n.d(i,"ellipsisMiddle",function(){return x});var r={};n.r(r),n.d(r,"getDefault",function(){return S}),n.d(r,"reserveFirst",function(){return k}),n.d(r,"reserveLast",function(){return A}),n.d(r,"reserveBoth",function(){return I}),n.d(r,"equidistance",function(){return T}),n.d(r,"equidistanceWithReverseBoth",function(){return B});var o={};n.r(o),n.d(o,"getDefault",function(){return F}),n.d(o,"fixedAngle",function(){return E}),n.d(o,"unfixedAngle",function(){return P});var a={};n.r(a),n.d(a,"autoHide",function(){return r}),n.d(a,"autoRotate",function(){return o}),n.d(a,"autoEllipsis",function(){return i});var s=n("mrSG"),c=n("6JdA"),u=n("iTfj"),l=n("MeYt"),h=n("jqgP"),f=n("l3hu"),p=n("L16w"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},defaultCfg:{line:{style:{lineWidth:1,stroke:p.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:p.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p.a.textColor,fontFamily:p.a.fontFamily,fontWeight:"normal"},offset:10},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p.a.textColor,textBaseline:"middle",fontFamily:p.a.fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p.a.uncheckedColor}}}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(u.Y)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(u.j)(e,function(e,i){t[i]&&n.push(i)}),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(u.j)(n,function(n){e.setItemState(n,t,!1)})},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(u.l)(n,function(n){return e.hasState(n,t)})},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(u.L)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(u.L)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(u.Y)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,o=i.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),Object(u.j)(t,function(t){var i=t.point;r||(i=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(i,o);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})}),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var o=0;o<r-1;o++)for(var a=t[o],s=t[o+1],c=0;c<i;c++){var u=(c+1)/(i+1),l=(1-u)*a.tickValue+u*s.tickValue,h=this.getTickPoint(l),f=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:f,tickValue:l,id:"sub-"+a.id+"-"+c})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var r=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Object(u.s)(this.get("theme"),["tickLine","style"],{});r=Object(u.H)(r)?Object(u.Y)({},a,r(o,n,i)):r;var c=t.startPoint,l=t.endPoint;return Object(s.a)({x1:c.x,y1:c.y,x2:l.x,y2:l.y},r)},e.prototype.drawTick=function(t,e,n,i,r){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,i,r)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(u.j)(r,function(n,i){if(a.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,o,"tickLine",i,r)}else e.drawTick(n,o,"tickLine",i,r)}),i){var s=this.getSubTickLineItems(r);Object(u.j)(s,function(t,n){e.drawTick(t,o,"subTickLine",n,s)})}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(u.j)(e,function(e){e.point=t.getTickPoint(e.value),Object(u.I)(e.id)&&(e.id=e.name)})},e.prototype.drawTicks=function(t){var e=this;this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(u.j)(n,function(n){e.applyTickStates(n,t)})},e.prototype.getLabelAttrs=function(t,e,n){var i=this.get("label"),r=i.offset,o=i.rotate,a=i.formatter,s=this.getSidePoint(t.point,r),c=this.getSideVector(r,s),l=a?a(t.name,t,e):t.name,f=i.style;f=Object(u.H)(f)?Object(u.s)(this.get("theme"),["label","style"],{}):f;var p=Object(u.Y)({x:s.x,y:s.y,text:l,textAlign:this.getTextAnchor(c),textBaseline:this.getTextBaseline(c)},f);return o&&(p.matrix=Object(h.e)(s,o)),p},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(u.j)(n,function(t,r){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,n),delegateObject:{tick:t,item:t,index:r}})}),this.processOverlap(i);var r=i.getChildren(),o=Object(u.s)(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,c=a.formatter;if(Object(u.H)(s)){var l=r.map(function(t){return Object(u.s)(t.get("delegateObject"),"tick")});Object(u.j)(r,function(t,e){var n=t.get("delegateObject").tick,i=c?c(n.name,n,e):n.name,r=Object(u.Y)({},o,s(i,e,l));t.attr(r)})}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,o=void 0===r?0:r,a=t.autoRotate,s=e.fontSize,l=.5;"start"===n?l=0:"end"===n&&(l=1);var f=this.getTickPoint(l),p=this.getSidePoint(f,i||o+s/2),d=Object(u.Y)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if(Object(u.I)(g)&&a){var y=this.getAxisVector(f);v=c.a.angleTo(y,[1,0],!0)}if(v){var m=Object(h.e)(p,v);d.matrix=m}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),i=this.getElementId("label-"+t.id),r=e.findById(i);if(r){var o=Object(f.a)(t,"label",n);o&&r.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var c=Object(f.a)(t,"tickLine",n);c&&s.attr(c)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(f.a)(t,"label",n);s&&r.attr(s)}if(a){var c=Object(f.a)(t,"tickLine",n);c&&a.attr(c)}}else r&&r.attr(i.style),a&&a.attr(o.style)},e}(l.a),g=n("BgvD");function v(t,e,n,i){var r=e.getChildren(),o=!1;return Object(u.j)(r,function(e){var r=Object(g.a)(t,e,n,i);o=o||r}),o}function y(){return b}function m(t,e,n){return v(t,e,n,"head")}function b(t,e,n){return v(t,e,n,"tail")}function x(t,e,n){return v(t,e,n,"middle")}var O=n("5UbV");function j(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(h.d)(t.attr("matrix")):0)%360}function w(t,e,n,i){var r=!1,o=j(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(o));r=Object(O.i)(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a}else c=Math.abs(Math.sin(o)),r=Object(O.i)(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a;return r}function C(t,e,n,i){var r=(null==i?void 0:i.minGap)||0,o=e.getChildren().slice().filter(function(t){return t.get("visible")});if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,c=o[0],u=1;u<s;u++){var l=o[u];l.getBBox(),w(t,c,l,r)?(l.hide(),a=!0):c=l}return a}function M(t,e,n){var i=(null==n?void 0:n.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var o=!1,a=r[0],s=a.getBBox(),c=r[1],u=r.length,l=j(a),h=t?Math.abs(c.attr("y")-a.attr("y")):Math.abs(c.attr("x")-a.attr("x")),f=0;if(t){var p=Math.abs(Math.cos(l));f=Object(O.i)(p,0,Math.PI/180)?(Object(g.b)(r)+i)/h:(s.height/p+i)/h}else p=Math.abs(Math.sin(l)),f=Object(O.i)(p,0,Math.PI/180)?(Object(g.b)(r)+i)/h:(s.height/p+i)/h;if(f>1){f=Math.ceil(f);for(var d=0;d<u;d++)d%f!=0&&(r[d].hide(),o=!0)}return o}function S(){return T}function k(t,e,n,i){return C(t,e,!1,i)}function A(t,e,n,i){return C(t,e,!0,i)}function I(t,e,n,i){var r=(null==i?void 0:i.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,s=o.length,c=o[s-1],u=o[0],l=1;l<s-1;l++){var h=o[l];h.getBBox(),w(t,u,h,r)?(h.hide(),a=!0):u=h}return w(t,u,c,r)&&(u.hide(),a=!0),a}function T(t,e,n,i){var r=M(t,e,i);return C(t,e,!1)&&(r=!0),r}function B(t,e,n,i){var r=e.getChildren().slice(),o=M(t,e,i);if(r.length>2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),C(t,e,!1,i)&&(o=!0)),s.get("visible")||(s.show(),C(t,e,!0,i)&&(o=!0))}return o}function L(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var o,a=Object(g.b)(r);return(o=t?!!n&&a>n:a>Math.abs(r[1].attr("x")-r[0].attr("x")))&&function(t,e){Object(u.j)(t,function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(h.e)({x:n,y:i},e);t.attr("matrix",r)})}(r,i(n,a)),o}function F(){return E}function E(t,e,n,i){return L(t,e,n,function(){return Object(u.K)(i)?i:t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate})}function P(t,e,n){return L(t,e,n,function(e,n){if(!e)return t?p.a.verticalAxisRotate:p.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return(e>n||(i=Math.asin(e/n))>Math.PI/4)&&(i=Math.PI/4),i})}var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),o=Math.min(e.y,n.y,i.y),a=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(u.L)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(u.L)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end");return{x:e.x+(n.x-e.x)*t,y:e.y+(n.y-e.y)*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c.c.normalize([0,0],e),i=this.get("verticalFactor");return c.c.scale([0,0],[n[1],-1*n[0]],t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,c=a,l=0,h=0;o&&(l=o.style.fontSize,h=o.spacing),c&&(c=c-s-h-l);var f=this.get("overlapOrder");if(Object(u.j)(f,function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,c)}),o&&Object(u.I)(o.offset)){var p=t.getCanvasBBox();o.offset=s+(n?p.width:p.height)+h+l/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(u.I)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=this.isVertical(),s=!1,c=a[t];if(!0===e?(this.get("label"),s=c.getDefault()(o,n,i)):Object(u.H)(e)?s=e(o,n,i):Object(u.M)(e)?c[e.type]&&(s=c[e.type](o,n,i,e.cfg)):c[e]&&(s=c[e](o,n,i)),"autoRotate"===t){if(s){var l=n.getChildren(),h=this.get("verticalFactor");Object(u.j)(l,function(t){"center"===t.attr("textAlign")&&t.attr("textAlign",h>0?"end":"start")})}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(u.j)(f,function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())})}},e}(d),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s.a)(Object(s.a)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var c=this.getCirclePoint(o),u=this.getCirclePoint(a),l=Math.abs(a-o)>Math.PI?1:0;s=[["M",e,n],["L",c.x,c.y],["A",i,r,0,l,o>a?0:1,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle");return this.getCirclePoint(e+(n-e)*t)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),o=c.c.length(i);return c.c.scale(i,i,r*t/o),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e}(d)},"h4/5":function(t,e){},hJqF:function(t,e,n){"use strict";n.d(e,"d",function(){return l}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return f}),n.d(e,"a",function(){return g});var i=n("mrSG"),r=n("iTfj"),o=n("w02o"),a=n("YuPD"),s=n("tKoa"),c=n("DyAw");function u(t){var e=t.options,n=e.color,r=e.lineStyle,o=e.lineShape,c=e.point,u=e.seriesField;t.chart.data(e.data);var l=Object(a.b)({},t,{options:{shapeField:u,line:{color:n,style:r,shape:o},point:c&&Object(i.a)({color:n,shape:"circle"},c),label:void 0}}),h=Object(a.b)({},l,{options:{tooltip:!1}});return Object(s.d)(l),Object(s.e)(h),t}function l(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,u=i.xField,l=i.yField,h=i.data;return Object(a.e)(Object(o.f)(((e={})[u]=r,e[l]=s,e),((n={})[u]={type:"cat"},n[l]=Object(c.a)(h,l),n)))(t)}function h(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.yField;return e.axis(n.xField,!1!==i&&i),e.axis(o,!1!==r&&r),t}function f(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function p(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a.c)(e,"line");if(r){var c=r.callback,u=Object(i.f)(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(i.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.o)(u))})}else s.label(!1);return t}function d(t){var e=t.chart;return t.options.isStack&&Object(r.j)(e.geometries,function(t){t.adjust("stack")}),t}function g(t){return Object(a.e)(u,l,d,o.j,h,f,o.k,p,o.h,o.c,o.a,Object(o.b)(),o.e)(t)}},iTfj:function(t,e,n){"use strict";n.d(e,"f",function(){return r}),n.d(e,"z",function(){return r}),n.d(e,"i",function(){return a}),n.d(e,"m",function(){return y}),n.d(e,"n",function(){return m}),n.d(e,"o",function(){return b}),n.d(e,"q",function(){return x}),n.d(e,"t",function(){return O}),n.d(e,"cb",function(){return w}),n.d(e,"db",function(){return C}),n.d(e,"ib",function(){return S}),n.d(e,"ob",function(){return k}),n.d(e,"sb",function(){return A}),n.d(e,"y",function(){return I}),n.d(e,"S",function(){return T}),n.d(e,"l",function(){return o}),n.d(e,"k",function(){return B}),n.d(e,"hb",function(){return L}),n.d(e,"u",function(){return D}),n.d(e,"v",function(){return E}),n.d(e,"w",function(){return P}),n.d(e,"c",function(){return z}),n.d(e,"p",function(){return R}),n.d(e,"L",function(){return Y}),n.d(e,"W",function(){return G}),n.d(e,"Z",function(){return N}),n.d(e,"mb",function(){return V}),n.d(e,"r",function(){return H}),n.d(e,"x",function(){return W}),n.d(e,"R",function(){return d}),n.d(e,"rb",function(){return $}),n.d(e,"T",function(){return U}),n.d(e,"jb",function(){return Z}),n.d(e,"qb",function(){return K}),n.d(e,"B",function(){return h}),n.d(e,"C",function(){return Q}),n.d(e,"D",function(){return tt}),n.d(e,"H",function(){return u}),n.d(e,"I",function(){return l}),n.d(e,"J",function(){return et}),n.d(e,"K",function(){return _}),n.d(e,"M",function(){return f}),n.d(e,"N",function(){return v}),n.d(e,"O",function(){return M}),n.d(e,"P",function(){return c}),n.d(e,"Q",function(){return it}),n.d(e,"E",function(){return rt}),n.d(e,"eb",function(){return ot}),n.d(e,"d",function(){return at}),n.d(e,"e",function(){return ut}),n.d(e,"g",function(){return lt}),n.d(e,"X",function(){return ht}),n.d(e,"h",function(){return pt}),n.d(e,"j",function(){return p}),n.d(e,"A",function(){return dt}),n.d(e,"F",function(){return vt}),n.d(e,"G",function(){return yt}),n.d(e,"U",function(){return mt}),n.d(e,"V",function(){return xt}),n.d(e,"Y",function(){return ct}),n.d(e,"b",function(){return ct}),n.d(e,"s",function(){return Ot}),n.d(e,"fb",function(){return jt}),n.d(e,"bb",function(){return Ct}),n.d(e,"kb",function(){return Mt}),n.d(e,"lb",function(){return St}),n.d(e,"nb",function(){return q}),n.d(e,"pb",function(){return At}),n.d(e,"ab",function(){return It}),n.d(e,"gb",function(){return Tt}),n.d(e,"a",function(){return Bt});var i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},r=function(t,e){return!!i(t)&&t.indexOf(e)>-1},o=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,function(t){return!r(e,t)})},s={}.toString,c=function(t,e){return s.call(t)==="[object "+e+"]"},u=function(t){return c(t,"Function")},l=function(t){return null==t},h=function(t){return Array.isArray?Array.isArray(t):c(t,"Array")},f=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e},p=function(t,e){if(t)if(h(t))for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);else if(f(t))for(var r in t)if(t.hasOwnProperty(r)&&!1===e(t[r],r))break},d=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return p(t,function(n,i){u(t)&&"prototype"===i||e.push(i)}),e},g=function(t){return"object"==typeof t&&null!==t},v=function(t){if(!g(t)||!c(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},y=function(t,e){if(!h(t))return null;var n;if(u(e)&&(n=e),v(e)&&(n=function(t){return function(t,e){var n=d(e),i=n.length;if(l(t))return!i;for(var r=0;r<i;r+=1){var o=n[r];if(e[o]!==t[o]||!(o in t))return!1}return!0}(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null},m=function(t,e,n){void 0===n&&(n=0);for(var i=n;i<t.length;i++)if(e(t[i],i))return i;return-1},b=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i][e];if(!l(r)){n=h(r)?r[0]:r;break}}return n},x=function(t){if(!h(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},O=function(t){var e=t.filter(function(t){return!isNaN(t)});if(!e.length)return{min:0,max:0};if(h(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=Math.max.apply(null,e);return{min:Math.min.apply(null,e),max:r}},j=Array.prototype.splice,w=function(t,e,n){if(!h(t)&&!v(t))return t;var i=n;return p(t,function(t,n){i=e(i,t,n)}),i},C=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var s=t[r];e(s,r,t)&&(n.push(s),o.push(r))}return function(t,e){if(!i(t))return[];for(var n=t?e.length:0,r=n-1;n--;){var o=void 0,a=e[n];n!==r&&a===o||(o=a,j.call(t,a,1))}}(t,o),n},M=function(t){return c(t,"String")},S=function(t,e){var n;if(u(e))n=function(t,n){return e(t)-e(n)};else{var i=[];M(e)?i.push(e):h(e)&&(i=e),n=function(t,e){for(var n=0;n<i.length;n+=1){var r=i[n];if(t[r]>e[r])return 1;if(t[r]<e[r])return-1}return 0}}return t.sort(n),t},k=function(t){var e=[];return p(t,function(t){r(e,t)||e.push(t)}),e},A=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r][e];if(!l(o)){h(o)||(o=[o]);for(var a=0;a<o.length;a++){var s=o[a];i[s]||(n.push(s),i[s]=!0)}}}return n};function I(t){if(i(t))return t[0]}function T(t){if(i(t))return t[t.length-1]}var B=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},L=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},F=Object.prototype.hasOwnProperty,E=function(t,e){if(!e||!h(t))return{};for(var n,i={},r=u(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=r(a),F.call(i,n)?i[n].push(a):i[n]=[a]}return i},P=function(t,e){if(!e)return{0:t};if(!u(e)){var n=h(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}return E(t,e)},D=function(t,e){if(!e)return[t];var n=P(t,e),i=[];for(var r in n)i.push(n[r]);return i},z=function(t,e,n){return t<e?e:t>n?n:t},R=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},_=function(t){return c(t,"Number")};function Y(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var G=function(t,e){if(h(t)){var n,i,r=t[0];return n=u(e)?e(t[0]):t[0][e],p(t,function(t){(i=u(e)?e(t):t[e])>n&&(r=t,n=i)}),r}},N=function(t,e){return(t%e+e)%e},X=(Math,parseInt,Math.PI/180),V=function(t){return X*t},H=p,W=function(t,e){return t.hasOwnProperty(e)},$=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return p(t,function(n,i){u(t)&&"prototype"===i||e.push(n)}),e},q=function(t){return l(t)?"":t.toString()},U=function(t){return q(t).toLowerCase()},Z=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},K=function(t){var e=q(t);return e.charAt(0).toUpperCase()+e.substring(1)},J={}.toString,Q=function(t){return c(t,"Boolean")},tt=function(t){return c(t,"Date")},et=function(t){return null===t},nt=Object.prototype,it=function(t){return void 0===t},rt=function(t){return t instanceof Element||t instanceof HTMLDocument};function ot(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function at(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function st(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function ct(t,e,n,i){return e&&st(t,e),n&&st(t,n),i&&st(t,i),t}var ut=function t(e){if("object"!=typeof e||null===e)return e;var n;if(h(e)){n=[];for(var i=0,r=e.length;i<r;i++)n[i]="object"==typeof e[i]&&null!=e[i]?t(e[i]):e[i]}else for(var o in n={},e)n[o]="object"==typeof e[o]&&null!=e[o]?t(e[o]):e[o];return n},lt=function(t,e,n){var i;return function(){var r=this,o=arguments,a=function(){i=null,n||t.apply(r,o)},s=n&&!i;clearTimeout(i),i=setTimeout(a,e),s&&t.apply(r,o)}},ht=function(t,e){if(!u(t))throw new TypeError("Expected a function");var n=function n(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var o=e?e.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var s=t.apply(this,i);return a.set(o,s),s};return n.cache=new Map,n};function ft(t,e,n,i){for(var r in n=n||0,i=i||5,e)if(e.hasOwnProperty(r)){var o=e[r];null!==o&&v(o)?(v(t[r])||(t[r]={}),n<i?ft(t[r],o,n+1,i):t[r]=e[r]):h(o)?(t[r]=[],t[r]=t[r].concat(o)):void 0!==o&&(t[r]=o)}}var pt=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)ft(t,e[i]);return t},dt=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},gt=Object.prototype.hasOwnProperty,vt=function(t){if(l(t))return!0;if(i(t))return!t.length;var e=function(t){return J.call(t).replace(/^\[object /,"").replace(/]$/,"")}(t);if("Map"===e||"Set"===e)return!t.size;if(function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||nt)}(t))return!Object.keys(t).length;for(var n in t)if(gt.call(t,n))return!1;return!0},yt=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(M(e)||M(n))return!1;if(i(e)||i(n)){if(e.length!==n.length)return!1;for(var r=!0,o=0;o<e.length&&(r=t(e[o],n[o]));o++);return r}if(g(e)||g(n)){var a=Object.keys(e),s=Object.keys(n);if(a.length!==s.length)return!1;for(r=!0,o=0;o<a.length&&(r=t(e[a[o]],n[a[o]]));o++);return r}return!1},mt=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n},bt=function(t){return t},xt=function(t,e){void 0===e&&(e=bt);var n={};return f(t)&&!l(t)&&Object.keys(t).forEach(function(i){n[i]=e(t[i],i)}),n},Ot=function(t,e,n){for(var i=0,r=M(e)?e.split("."):e;t&&i<r.length;)t=t[r[i++]];return void 0===t||i<r.length?n:t},jt=function(t,e,n){var i=t,r=M(e)?e.split("."):e;return r.forEach(function(t,e){e<r.length-1?(f(i[t])||(i[t]=_(r[e+1])?[]:{}),i=i[t]):i[t]=n}),t},wt=Object.prototype.hasOwnProperty,Ct=function(t,e){if(null===t||!v(t))return{};var n={};return p(e,function(e){wt.call(t,e)&&(n[e]=t[e])}),n},Mt=function(t,e,n){var i,r,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),i=null,a=t.apply(r,o),i||(r=o=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var l=e-(u-s);return r=this,o=arguments,l<=0||l>e?(i&&(clearTimeout(i),i=null),s=u,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(c,l)),a};return u.cancel=function(){clearTimeout(i),s=0,i=r=o=null},u},St=function(t){return i(t)?Array.prototype.slice.call(t):[]},kt={},At=function(t){return kt[t=t||"g"]?kt[t]+=1:kt[t]=1,t+kt[t]},It=function(){};function Tt(t){return l(t)?0:i(t)?t.length:Object.keys(t).length}var Bt=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},j5sG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i,r=(i=n("NohK"))&&i.__esModule?i:{default:i};e.createSensor=function(t){var e=void 0,n=[],i=(0,r.default)(function(){n.forEach(function(e){e(t)})}),o=function(){e.disconnect(),n=[],e=void 0};return{element:t,bind:function(r){var o;e||((o=new ResizeObserver(i)).observe(t),i(),e=o),-1===n.indexOf(r)&&n.push(r)},destroy:o,unbind:function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&o()}}}},jqgP:function(t,e,n){"use strict";n.d(e,"e",function(){return o}),n.d(e,"f",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return h});var i=n("6JdA"),r=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=r),e?i.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?i.a.transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[0,0,0];return i.d.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function c(t,e){var n=[0,0];return i.c.transformMat3(n,e,t),n}function u(t,e){var n=c(t,[e.minX,e.minY]),i=c(t,[e.maxX,e.minY]),r=c(t,[e.minX,e.maxY]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),u=Math.min(n[1],i[1],r[1],o[1]),l=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:u,minX:a,minY:u,maxX:s,maxY:l,width:s-a,height:l-u}}function l(t,e,n,i){if(e){var r=o({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=a({x:e,y:n});t.attr("matrix",i)}},kXyF:function(t,e,n){"use strict";n.d(e,"b",function(){return Be}),n.d(e,"d",function(){return Fe}),n.d(e,"a",function(){return wt}),n.d(e,"c",function(){return wt}),n.d(e,"h",function(){return je}),n.d(e,"j",function(){return Ke}),n.d(e,"i",function(){return ae}),n.d(e,"g",function(){return St}),n.d(e,"f",function(){return pe}),n.d(e,"e",function(){return mn});var i,r,o,a,s,c,u,l=n("mrSG"),h=n("iTfj");!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(i||(i={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(r||(r={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(o||(o={})),function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(a||(a={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"}(s||(s={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(c||(c={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(u||(u={}));var f=["color","shape","size"],p={};function d(t,e){p[t]=e}var g=n("fIp6");function v(t){return"number"==typeof t&&!isNaN(t)}function y(t,e,n,i){var r=n,o=i;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);r=a.width?a.width:r,o=a.height?a.height:o}return{width:Math.max(v(r)?r:1,1),height:Math.max(v(o)?o:1,1)}}var m=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible;return n.visible=void 0===i||i,n}return Object(l.d)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(n("f6Jy").a),b=n("aFU3"),x=n("7s0d"),O=function(t,e){return Object(h.O)(e)?e:t.invert(t.scale(e))},j=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map(function(e,n){return t._toOriginParam(e,t.scales[n])});return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*(e*t-n)},t.prototype.getNames=function(){for(var t=this.names,e=Math.min(this.scales.length,t.length),n=[],i=0;i<e;i+=1)n.push(t[i]);return n},t.prototype.getFields=function(){return this.scales.map(function(t){return t.field})},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map(function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)})},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=t.names,r=void 0===i?[]:i,o=t.scales,a=void 0===o?[]:o,s=t.values,c=void 0===s?[]:s,u=t.callback;this.type=void 0===n?"base":n,this.scales=a,this.values=c,this.names=r,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(u){var i=u.apply(void 0,t);if(!Object(h.I)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(h.B)(t)?t.map(function(t){return O(e,t)}):O(e,t)},t}(),w=n("FqlA"),C=n("6UX8"),M=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(h.O)(n.values)&&(n.linear=!0),n.gradient=C.a.gradient(n.values),n}return Object(w.b)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(j),S=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(w.b)(e,t),e}(j),k=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(w.b)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(h.I)(t)||Object(h.I)(e)?[]:[Object(h.B)(t)?t.map(function(t){return i.scale(t)}):i.scale(t),Object(h.B)(e)?e.map(function(t){return r.scale(t)}):r.scale(e)]},e}(j),A=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(w.b)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(j),I=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(w.b)(e,t),e}(j),T=n("8vsG"),B={},L=function(t){return B[t.toLowerCase()]},F=function(t,e){if(L(t))throw new Error("Attribute type '"+t+"' existed.");B[t.toLowerCase()]=e};F("Color",M),F("Opacity",S),F("Position",k),F("Shape",A),F("Size",I);var E=n("6JdA"),P=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.end,n=t.matrix,i=void 0===n?[1,0,0,0,1,0,0,0,1]:n,r=t.isTransposed,o=void 0!==r&&r;this.start=t.start,this.end=e,this.matrix=i,this.originalMatrix=Object(w.c)(i),this.isTransposed=o}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(h.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(r=(n=[o,r])[0],o=n[1]),r+t*(o-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,o=i.end;return this.isReflect(e)&&(r=(n=[o,r])[0],o=n[1]),(t-r)/(o-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=[t,e,n];return E.d.transformMat3(i,i,this.matrix),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=E.b.invert([0,0,0,0,0,0,0,0,0],this.matrix),r=[t,e,n];return i&&E.d.transformMat3(r,r,i),r},t.prototype.convert=function(t){var e=this.convertPoint(t),n=this.applyMatrix(e.x,e.y,1);return{x:n[0],y:n[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return E.a.leftTranslate(e,e,[-n.x,-n.y]),E.a.leftRotate(e,e,t),E.a.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return E.a.leftTranslate(n,n,[-i.x,-i.y]),E.a.leftScale(n,n,[t,e]),E.a.leftTranslate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return E.a.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||Object(w.c)(this.originalMatrix)},t}(),D=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(w.b)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(n=(e=[i,n])[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[i,n])[0],i=e[1]),{x:n,y:i}},e}(P),z=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,s=e.innerRadius,c=void 0===s?0:s,u=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=c,n.radius=u,n.initial(),n}return Object(w.b)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(n=(e=[i,n])[0],i=e[1]);var r=this.convertDim(n,"x"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=E.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=E.a.angleTo(i,[1,0],!0),o=r*this.a;E.c.length(i)<o&&(o=E.c.length(i)),r=2*Math.floor((E.c.length(i)-o)/n)*Math.PI+r;var a=this.a*r,s=E.c.length(i)-a;s=Object(h.L)(s,0)?0:s;var c=this.invertDim(r,"x"),u=this.invertDim(s,"y");return c=Object(h.L)(c,0)?0:c,u=Object(h.L)(u,0)?0:u,this.isTransposed&&(c=(e=[u,c])[0],u=e[1]),{x:c,y:u}},e}(P),R=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,s=e.innerRadius,c=void 0===s?0:s,u=e.radius;return n.startAngle=r,n.endAngle=a,n.innerRadius=c,n.radius=u,n.initial(),n}return Object(w.b)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,o=Math.abs(n.minX)/i,a=Math.abs(n.minY)/r;this.circleCenter=this.height/r>this.width/i?{x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*(e=this.width/i)*r}:{x:this.center.x-(.5-o)*(e=this.height/r)*i,y:this.center.y-(.5-a)*this.height},this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(i=(e=[r,i])[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=[1,0,0,0,1,0,0,0,1];E.a.leftRotate(i,i,this.startAngle);var r=[1,0,0];E.d.transformMat3(r,r,i);var o=E.a.angleTo([r[0],r[1]],n,this.endAngle<this.startAngle);Object(h.L)(o,2*Math.PI)&&(o=0);var a=E.c.length(n),s=o/(this.endAngle-this.startAngle);s=this.endAngle-this.startAngle>0?s:-s;var c=this.invertDim(a,"y"),u={x:0,y:0};return u.x=this.isTransposed?c:s,u.y=this.isTransposed?s:c,u},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(P),_={},Y=function(t,e){_[t.toLowerCase()]=e};Y("rect",D),Y("cartesian",D),Y("polar",R),Y("helix",z);var G=n("17Tr"),N=G.Axis.Line,X=G.Axis.Circle,V=G.Grid.Line,H=G.Grid.Circle,W=G.Legend.Category,$=G.Legend.Continuous,q=G.Tooltip.Html;function U(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function Z(t,e,n,i,r,o){void 0===o&&(o=0);var a=U(t,e,n,i),s=U(t,e,n,r),c=U(t,e,o,i),u=U(t,e,o,r);if(r-i==2*Math.PI){var l=U(t,e,n,i+Math.PI),h=U(t,e,o,i+Math.PI),f=[["M",a.x,a.y],["A",n,n,0,1,1,l.x,l.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return o&&(f.push(["A",o,o,0,1,0,h.x,h.y]),f.push(["A",o,o,0,1,0,u.x,u.y])),f.push(["M",a.x,a.y]),f.push(["Z"]),f}var p=r-i<=Math.PI?0:1,d=[["M",a.x,a.y],["A",n,n,0,p,1,s.x,s.y],["L",u.x,u.y]];return o&&d.push(["A",o,o,0,p,0,c.x,c.y]),d.push(["L",a.x,a.y]),d.push(["Z"]),d}function K(t,e,n,i,r){var o=U(t,e,n,i),a=U(t,e,n,r);if(Object(h.L)(r-i,2*Math.PI)){var s=U(t,e,n,i+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var c=r-i<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,c,1,a.x,a.y]]}function J(t,e){var n,i,r=function(t){if(Object(h.F)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return Object(h.j)(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r}),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(n=r.maxY*a,i=r.minY*a):(n=r.maxX*a,i=r.minX*a),{startAngle:i+=o,endAngle:n+=o}}function Q(t,e){var n=t.attr(),i=e.attr();return Object(h.j)(n,function(t,e){void 0===i[e]&&(i[e]=void 0)}),i}function tt(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function et(t,e){return e.forEach(function(e){delete t[e]}),t}function nt(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var o=r[i];n[o]||(e.push(o),n[o]=!0)}return e}var it=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(h.j)(t,function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y}),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(h.j)(t,function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y}),n},t.prototype.cut=function(e,n){var i=e.width,o=e.height;switch(n){case r.TOP:case r.TOP_LEFT:case r.TOP_RIGHT:return t.fromRange(this.minX,this.minY+o,this.maxX,this.maxY);case r.RIGHT:case r.RIGHT_TOP:case r.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case r.BOTTOM:case r.BOTTOM_LEFT:case r.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-o);case r.LEFT:case r.LEFT_TOP:case r.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],i=e[3];return new t(this.x+i,this.y+n,this.width-i-e[1],this.height-n-e[2])},t.prototype.expand=function(e){var n=e[0],i=e[3];return new t(this.x-i,this.y-n,this.width+i+e[1],this.height+n+e[2])},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function rt(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function ot(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function at(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=tt(e.x,i.x,r.x)&&tt(e.y,i.y,r.y)}else{var o=t.invert(e);n=tt(o.x,0,1)&&tt(o.y,0,1)}return n}function st(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function ct(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),o=t.getHeight();if(t.isPolar){var a=t.startAngle,s=t.endAngle,c=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Z(c.x,c.y,u+e,a,a)},endState:function(t){return{path:Z(c.x,c.y,u+e,a,(s-a)*t+a)}},attrs:{path:Z(c.x,c.y,u+e,a,s)}}}return{type:"rect",startState:{x:n.x-e,y:i.y-e,width:t.isTransposed?r+2*e:0,height:t.isTransposed?0:o+2*e},endState:t.isTransposed?{height:o+2*e}:{width:r+2*e},attrs:{x:n.x-e,y:i.y-e,width:r+2*e,height:o+2*e}}}var ut=/^(?:(?!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]))?$/;function lt(t){return t.alias||t.field}function ht(t,e,n){var i,r=t.values.length;if(1===r)i=[.5,1];else{var o=0;i=function(t){return!!t.isPolar&&t.endAngle-t.startAngle==2*Math.PI}(e)?e.isTransposed?[(o=1/r*Object(h.s)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/r]:[o=1/r/2,1-o]}return i}function ft(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case r.TOP:e={x:0,y:1},n={x:1,y:1};break;case r.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case r.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case r.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var i=n.end;return{start:t.convert(n.start),end:t.convert(i)}}function pt(t){return t.start.x===t.end.x}function dt(t,e){var n=t.start,i=t.end;return pt(t)?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function gt(t,e){return Object(h.s)(t,["components","axis",e],{})}function vt(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,o=t.convert(t.isTransposed?{x:r?0:1,y:0}:{x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],c=o.y>i.y?E.c.angle(a,s):-1*E.c.angle(a,s),u=c+(e.end-e.start);return{center:i,radius:Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),startAngle:c,endAngle:u}}function yt(t,e){return Object(h.C)(t)?!1!==t&&{}:Object(h.s)(t,[e])}function mt(t,e){return Object(h.s)(t,"position",e)}function bt(t,e){return Object(h.s)(e,["title","text"],lt(t))}var xt=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(h.h)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.data,n=t.padding,i=this.view.createView({region:t.region,padding:void 0===n?this.cfg.padding:n});i.data(e||[]),t.view=i,this.beforeEachView(i,t);var r=this.cfg.eachView;return r&&r(i,t),this.afterEachView(i,t),i},t.prototype.createContainer=function(){return this.view.getLayer(i.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map(function(e){return t.facetToView(e)})},t.prototype.clearFacetViews=function(){var t=this;Object(h.j)(this.facets,function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)})},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(h.j)(t,function(t){var r=t[e];Object(h.I)(r)||i[r]||(n.push(r),i[r]=!0)}),n},t.prototype.getRegion=function(t,e,n,i){var r=1/(0===e?1:e),o=1/(0===t?1:t);return{start:{x:r*n,y:o*i},end:{x:r*(n+1),y:o*(i+1)}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries;if("rect"===Object(h.s)(i,"type","rect")&&r.length){Object(h.I)(n.axes)&&(n.axes={});var o=n.axes,a=r[0].getXYFields(),s=a[0],c=a[1],u=yt(o,s),l=yt(o,c);!1!==u&&(n.axes[s]=this.getXAxisOption(s,o,u,e)),!1!==l&&(n.axes[c]=this.getYAxisOption(c,o,l,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(h.k)(t,function(t){var n=t.field,i=t.value;return!(!Object(h.I)(i)&&n)||e[n]===i})}},t}(),Ot={},jt=function(t,e){Ot[Object(h.T)(t)]=e},wt=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(h.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(wt),Mt={};function St(t,e,n){Mt[t]={ActionClass:e,cfg:n}}function kt(t,e){var n=new Ct(e);return n.callback=t,n.name="callback",n}function At(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var o=e.convert({x:t[i],y:t[i+1]});n.push(o.x,o.y)}return n}function It(t,e){var n=e.isTransposed,i=t[1],r=e.convert({x:t[6],y:t[7]});return["A",i,i,0,0,n?0:1,r.x,r.y]}function Tt(t,e,n){for(var i=!!e,r=[],o=0,a=t.length;o<a;o+=2)r.push([t[o],t[o+1]]);var s,c,u,l=function(t,e,n,i){var r,o,a,s,c=[],u=!!i;if(u){a=[1/0,1/0],s=[-1/0,-1/0];for(var l=0,h=t.length;l<h;l++)a=E.c.min([0,0],a,p=t[l]),s=E.c.max([0,0],s,p);a=E.c.min([0,0],a,i[0]),s=E.c.max([0,0],s,i[1])}l=0;for(var f=t.length;l<f;l++){var p=t[l];if(n)r=t[l?l-1:f-1],o=t[(l+1)%f];else{if(0===l||l===f-1){c.push(p);continue}r=t[l-1],o=t[l+1]}var d=[0,0];d=E.c.sub(d,o,r),d=E.c.scale(d,d,.4);var g=E.c.distance(p,r),v=E.c.distance(p,o),y=g+v;0!==y&&(g/=y,v/=y);var m=E.c.scale([0,0],d,-g),b=E.c.scale([0,0],d,v),x=E.c.add([0,0],p,m),O=E.c.add([0,0],p,b);u&&(x=E.c.max([0,0],x,a),x=E.c.min([0,0],x,s),O=E.c.max([0,0],O,a),O=E.c.min([0,0],O,s)),c.push(x),c.push(O)}return n&&c.push(c.shift()),c}(r,0,i,n),h=r.length,f=[];for(o=0;o<h-1;o++)f.push(["C",(s=l[2*o])[0],s[1],(c=l[2*o+1])[0],c[1],(u=r[o+1])[0],u[1]]);return i&&f.push(["C",(s=l[h])[0],s[1],(c=l[h+1])[0],c[1],(u=r[0])[0],u[1]]),f}function Bt(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var o=t[i];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function Lt(t,e,n){var i=[],r=t[0],o=null;if(t.length<=2)return Bt(t,e);for(var a=0,s=t.length;a<s;a++){var c=t[a];o&&o.x===c.x&&o.y===c.y||(i.push(c.x),i.push(c.y),o=c)}var u=Tt(i,e,n||[[0,0],[1,1]]);return u.unshift(["M",r.x,r.y]),u}var Ft=n("LvGN");function Et(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function Pt(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function Dt(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function zt(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Rt(t){return t&&t.component&&t.component.isList()}function _t(t){return t&&t.component&&t.component.isSlider()}function Yt(t){var e=t.event.target;return e&&"mask"===e.get("name")}function Gt(t,e){var n,i,r;if("path"===t.event.target.get("type")){var o=function(t,e){var n=t.event.target,i=n.getCanvasBBox();return i.width>=e||i.height>=e?n.attr("path"):null}(t,e);if(!o)return;return n=o,i=Xt(t.view),r=$t(n),i.filter(function(t){var e,n,i=t.shape;return e="path"===i.get("type")?$t(i.attr("path")):[[(n=i.getCanvasBBox()).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]],Object(Ft.b)(r,e)})}var a=Et(t,e);return a?Wt(t.view,a):null}function Nt(t,e,n){var i=Et(t,n);if(!i)return null;var r=t.view,o=Jt(r,e,{x:i.x,y:i.y}),a=Jt(r,e,{x:i.maxX,y:i.maxY});return Wt(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function Xt(t){var e=t.geometries,n=[];return Object(h.j)(e,function(t){n=n.concat(t.elements)}),t.views&&t.views.length&&Object(h.j)(t.views,function(t){n=n.concat(Xt(t))}),n}function Vt(t,e){var n=t.geometries,i=[];return Object(h.j)(n,function(t){var n=t.getElementsBy(function(t){return t.hasState(e)});i=i.concat(n)}),i}function Ht(t,e){var n=t.getModel().data;return Object(h.B)(n)?n[0][e]:n[e]}function Wt(t,e){var n=Xt(t),i=[];return Object(h.j)(n,function(t){var n,r;(r=t.shape.getCanvasBBox()).minX>(n=e).maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY||i.push(t)}),i}function $t(t){var e=[];return Object(h.j)(t,function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var i=t.length;e.push([t[i-2],t[i-1]])}}),e}function qt(t){return t.getComponents().map(function(t){return t.component})}function Ut(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function Zt(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Kt(t){var e=t.parent,n=null;return e&&(n=e.views.filter(function(e){return e!==t})),n}function Jt(t,e,n){var i=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(i)}function Qt(t,e,n,i){var r=!1;return Object(h.j)(t,function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1}),r}function te(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(h.j)(t.views,function(t){if(n=te(t,e))return!1}),n}var ee=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find(function(e){return e.name===t})},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(h.s)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=qt(this.view),n=this.getCurrentPoint();return!!n&&!!e.find(function(e){var i=e.getBBox();return t?e.get("name")===t&&Zt(i,n):Zt(i,n)})},t.prototype.destroy=function(){this.view=null,this.event=null,Object(h.j)(this.actions.slice(),function(t){t.destroy()}),this.actions=null,this.cacheMap=null},t}();function ne(t,e){var n=t.split(":"),i=n[0],r=e.getAction(i)||function(t,e){var n=Mt[t],i=null;return n&&((i=new(0,n.ActionClass)(e,n.cfg)).name=t,i.init()),i}(i,e);if(!r)throw new Error("There is no action named "+i);return{action:r,methodName:n[1]}}function ie(t){var e=t.action,n=t.methodName;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n]()}var re=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return Object(l.d)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(h.j)(this.steps,function(e,n){Object(h.j)(e,function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)})})},e.prototype.clearEvents=function(){var t=this;Object(h.j)(this.steps,function(e,n){Object(h.j)(e,function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)})})},e.prototype.initContext=function(){var t=new ee(this.view);this.context=t;var e=this.steps;Object(h.j)(e,function(e){Object(h.j)(e,function(e){if(Object(h.H)(e.action))e.actionObject={action:kt(e.action,t),methodName:"execute"};else if(Object(h.O)(e.action))e.actionObject=ne(e.action,t);else if(Object(h.B)(e.action)){var n=e.action;e.actionObject=[],Object(h.j)(n,function(n){e.actionObject.push(ne(n,t))})}})})},e.prototype.isAllowStep=function(t){var e=this.currentStepName;if(e===t)return!0;if("showEnable"===t)return!0;if("processing"===t)return"start"===e;if("start"===t)return"processing"!==e;if("end"===t)return"processing"===e||"start"===e;if("rollback"===t){if(this.steps.end)return"end"===e;if("start"===e)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){"showEnable"!==t&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,r=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(h.B)(o)?Object(h.j)(o,function(t){i.event=r,ie(t)}):(i.event=r,ie(o)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};r[a]=e.debounce?Object(h.g)(s,e.debounce.wait,e.debounce.immediate):e.throttle?Object(h.kb)(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):s}return r[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}()),oe={};function ae(t,e){oe[Object(h.T)(t)]=e}function se(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},i=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),r=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},flipPage:!0,animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=J(t.getModel(),e),r=(i.startAngle+i.endAngle)/2,o=7.5*Math.cos(r),a=7.5*Math.sin(r);return{matrix:E.a.transform(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:Object(l.a)(Object(l.a)({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(l.a)(Object(l.a)({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(l.a)(Object(l.a)({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(l.a)(Object(l.a)({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(l.a)(Object(l.a)({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(l.a)(Object(l.a)({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(l.a)(Object(l.a)({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(l.a)(Object(l.a)({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}}},components:{axis:{common:i,top:Object(h.h)({},i,{position:"top",grid:null,title:null,verticalLimitLength:.5}),bottom:Object(h.h)({},i,{position:"bottom",grid:null,title:null,verticalLimitLength:.5}),left:Object(h.h)({},i,{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3}),right:Object(h.h)({},i,{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3}),circle:Object(h.h)({},i,{title:null,grid:Object(h.h)({},i.grid,{line:{type:"line"}})}),radius:Object(h.h)({},i,{title:null,grid:Object(h.h)({},i.grid,{line:{type:"circle"}})})},legend:{common:r,right:Object(h.h)({},r,{layout:"vertical",padding:t.legendVerticalPadding}),left:Object(h.h)({},r,{layout:"vertical",padding:t.legendVerticalPadding}),top:Object(h.h)({},r,{layout:"horizontal",padding:t.legendHorizontalPadding}),bottom:Object(h.h)({},r,{layout:"horizontal",padding:t.legendHorizontalPadding}),continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffSetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e[""+G.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+G.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+G.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+G.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+G.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+G.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8]}},scrollbar:{common:{padding:[8,8,8,8]}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var ce=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],ue=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],le=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=t.paletteQualitative10,i=void 0===n?ce:n,r=t.paletteQualitative20,o=t.paletteSemanticRed,a=t.paletteSemanticGreen,s=t.paletteSemanticYellow,c=t.fontFamily,u=t.brandColor,l=void 0===u?i[0]:u;return{backgroundColor:void 0===e?"transparent":e,brandColor:l,paletteQualitative10:i,paletteQualitative20:void 0===r?ue:r,paletteSemanticRed:void 0===o?"#F4664A":o,paletteSemanticGreen:void 0===a?"#30BF78":a,paletteSemanticYellow:void 0===s?"#FAAD14":s,fontFamily:void 0===c?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':c,axisLineBorderColor:"#BFBFBF",axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:"#595959",axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:"#BFBFBF",axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:"#D9D9D9",axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:"#8C8C8C",axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:"#D9D9D9",axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:"#8C8C8C",legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:l,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:"#595959",legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],sliderRailFillColor:"#D9D9D9",sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:"#8C8C8C",sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:"#F0F0F0",sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:"#BFBFBF",annotationArcBorderColor:"#D9D9D9",annotationArcBorder:1,annotationLineBorderColor:"#BFBFBF",annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:"#595959",annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:"#000",annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:"#BFBFBF",tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:"#595959",tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:"#595959",labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:"#FFFFFF",innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:"#595959",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:"#FFFFFF",overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:"#BFBFBF",pointFillColor:l,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:"#FFFFFF",pointBorderOpacity:1,pointActiveBorderColor:"#000",pointSelectedBorder:2,pointSelectedBorderColor:"#000",pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:l,hollowPointBorderOpacity:.95,hollowPointFillColor:"#FFFFFF",hollowPointActiveBorder:1,hollowPointActiveBorderColor:"#000",hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:"#000",hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:l,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:l,areaFillOpacity:.25,areaActiveFillColor:l,areaActiveFillOpacity:.5,areaSelectedFillColor:l,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:l,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:"#000",hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:"#000",hollowAreaInactiveBorderOpacity:.3,intervalFillColor:l,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:"#000",intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:"#000",intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:l,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:"#FFFFFF",hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:"#000",hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:"#000",hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};function he(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(l.f)(t,["styleSheet"]),r=le(n);return Object(h.h)({},se(r),i)}le();var fe={default:he({})};function pe(t){return Object(h.s)(fe,Object(h.T)(t),fe.default)}function de(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(h.L)(i,r)}function ge(t,e,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(e),s=r.invert(a.y);return Object(h.m)(t,function(t){var e=t._origin;return e[o][0]<=s&&e[o][1]>=s})||t[t.length-1]}var ve=Object(h.X)(function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,o=0;o<n;o++){var a=t.translate(e[o]);a<i&&(i=a),a>r&&(r=a)}return(r-i)/(n-1)});function ye(t){for(var e,n=0,i=function(t){var e=Object(h.rb)(t.attributes);return Object(h.l)(e,function(t){return Object(h.f)(f,t.type)})}(t);n<i.length;n++){var r=i[n],o=r.getScale(r.type);if(o&&o.isLinear){e=o;break}}var a=t.getXScale(),s=t.getYScale();return e||s||a}function me(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),o=n.getYScale(),a=r.field,s=o.field,c=null;if("heatmap"===i||"point"===i){for(var u=n.coordinate.invert(t),l=r.invert(u.x),f=o.invert(u.y),p=1/0,d=0;d<e.length;d++){var g=e[d],v=g._origin,y=Math.pow(v[a]-l,2)+Math.pow(v[s]-f,2);y<p&&(p=y,c=g)}return c}var m=e[0],b=e[e.length-1],x=function(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(t).x;return n.isPolar&&s>(1+o)/2&&(s=a),i.translate(i.invert(s))}(t,n),O=m._origin[a],j=m._origin[s],w=b._origin[a],C=o.isLinear&&Object(h.B)(j);if(Object(h.B)(O)){for(d=0;d<e.length;d++)if(r.translate((v=(T=e[d])._origin)[a][0])<=x&&r.translate(v[a][1])>=x){if(!C){c=T;break}Object(h.B)(c)||(c=[]),c.push(T)}Object(h.B)(c)&&(c=ge(c,t,n))}else{var M=void 0;if(r.isLinear||"timeCat"===r.type){if((x>r.translate(w)||x<r.translate(O))&&(x>r.max||x<r.min))return null;for(var S=0,k=e.length-1,A=void 0;S<=k;){var I=e[A=Math.floor((S+k)/2)]._origin[a];if(de(I,x,r))return e[A];r.translate(I)<=r.translate(x)?(S=A+1,b=e[A],M=e[A+1]):(0===k&&(b=e[0]),k=A-1)}}else{for(d=0;d<e.length;d++){var T;if(de((v=(T=e[d])._origin)[a],x,r)){if(!C){c=T;break}Object(h.B)(c)||(c=[]),c.push(T)}else r.translate(v[a])<=x&&(b=T,M=e[d+1])}Object(h.B)(c)&&(c=ge(c,t,n))}b&&M&&Math.abs(r.translate(b._origin[a])-x)>Math.abs(r.translate(M._origin[a])-x)&&(b=M)}var B=ve(n.getXScale());return!c&&Math.abs(r.translate(b._origin[a])-x)<=B/2&&(c=b),c}function be(t,e,n){void 0===n&&(n="");var i,r=t._origin,o=function(t,e,n){var i=n;n||(i=e.getAttribute("position").getFields()[0]);var r=e.scales;return r[i]?r[i].getText(t[i]):Object(h.x)(t,i)?t[i]:i}(r,e,n),a=e.tooltipOption,s=e.theme.defaultColor,c=[];function u(e,n){Object(h.I)(n)||""===n||c.push({title:o,data:r,mappingData:t,name:e,value:n,color:t.color||s,marker:!0})}if(Object(h.M)(a)){var f=a.fields,p=a.callback;if(p){var d=f.map(function(e){return t._origin[e]}),g=p.apply(void 0,d),v=Object(l.a)({data:t._origin,mappingData:t,title:o,color:t.color||s,marker:!0},g);c.push(v)}else for(var y=e.scales,m=0,b=f;m<b.length;m++){var x=b[m];if(!Object(h.I)(r[x])){var O=y[x];u(lt(O),i=O.getText(r[x]))}}}else{var j=ye(e);Object(h.I)(r[j.field])||(i=function(t,e){var n=t[e.field];return Object(h.B)(n)?n.map(function(t){return e.getText(t)}).join("-"):e.getText(n)}(r,j),u(function(t,e){var n,i=e.getGroupScales();return i.length&&(n=i[0]),n?n.getText(t[n.field]):lt(ye(e))}(r,e),i))}return c}function xe(t){void 0===t&&(t=0);var e=Object(h.B)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(l.g)(e,e);break;case 3:e=Object(l.g)(e,[e[1]]);break;default:e=e.slice(0,4)}return e}var Oe={};function je(t,e){Oe[t]=e}var we=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(h.hb)(e,function(e){return e[0]===t})},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,o="theta"===i,a=Object(l.a)({start:t,end:e},r),s=function(t){return _[t.toLowerCase()]}(o?"polar":i);return this.coordinate=new s(a),this.coordinate.type=i,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(l.a)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(h.j)(n,function(n){var i,r=n[0],o=n.slice(1);(Object(h.I)(t)||t.includes(r))&&(i=e.coordinate)[r].apply(i,o)})},t}(),Ce=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new b.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function Me(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,i].forEach(function(t){t&&t.layout()})}var Se=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,o=this.getScaleMeta(i);if(0===e.length&&o){var a=o.scale,s={type:a.type};a.isCategory&&(s.values=a.values),r=Object(h.h)(s,o.scaleDef,n)}var c=function(t,e,n){var i=e||[];if(Object(h.K)(t)||Object(h.I)(Object(h.o)(i,t))&&Object(h.F)(n))return new(Object(T.c)("identity"))({field:t.toString(),values:[t]});var r=Object(h.sb)(i,t),o=Object(h.s)(n,"type",function(t){var e="linear";return ut.test(t)?e="timeCat":Object(h.O)(t)&&(e="cat"),e}(r[0]));return new(Object(T.c)(o))(Object(l.a)({field:t,values:r},n))}(t,e,r);return this.cacheScale(c,n,i),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach(function(i,r){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,s=[];Object(h.j)(i,function(t){var e=n.getScale(t);a=Object(h.K)(e.max)?Math.max(a,e.max):a,o=Object(h.K)(e.min)?Math.min(o,e.min):o,Object(h.j)(e.values,function(t){s.includes(t)||s.push(t)})}),Object(h.j)(i,function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:o,max:a,values:s});else if(r.isCategory){var c=r.range,u=n.getScaleMeta(i);s&&!Object(h.s)(u,["scaleDef","range"])&&(c=ht(Object(h.h)({},r,{values:s}),t,e)),r.change({values:s,range:c})}})})},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}}(i.scale,t),i.scaleDef=e):this.scales.set(n,i={key:n,scale:t,scaleDef:e});var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var o=this.syncScales.get(r);o||this.syncScales.set(r,o=[]),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(h.S)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=this.syncScales.get(e.syncKey);if(n&&n.length){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach(function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1})},t.prototype.getSyncKey=function(t){var e=t.scaleDef,n=t.scale.field,i=Object(h.s)(e,["sync"]);return!0===i?n:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),ke=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.instance=function(e,n,i,r){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new t(e,n,i,r)},t.prototype.max=function(t){var e=t[1],n=t[2],i=t[3];return this.top=Math.max(this.top,t[0]),this.right=Math.max(this.right,e),this.bottom=Math.max(this.bottom,n),this.left=Math.max(this.left,i),this},t.prototype.shrink=function(t){var e=t[1],n=t[2],i=t[3];return this.top+=t[0],this.right+=e,this.bottom+=n,this.left+=i,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case r.TOP:case r.TOP_LEFT:case r.TOP_RIGHT:this.top+=i;break;case r.RIGHT:case r.RIGHT_TOP:case r.RIGHT_BOTTOM:this.right+=n;break;case r.BOTTOM:case r.BOTTOM_LEFT:case r.BOTTOM_RIGHT:this.bottom+=i;break;case r.LEFT:case r.LEFT_TOP:case r.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(l.g)([void 0],this.getPadding())))},t}();function Ae(t,e,n){var i=n.instance();e.forEach(function(t){t.autoPadding=i.max(t.autoPadding.getPadding())})}var Ie=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(Oe),n.scalePool=new Se,n.layoutFunc=Me,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var i=e.id,r=void 0===i?Object(h.pb)("view"):i,o=e.canvas,a=e.backgroundGroup,s=e.middleGroup,c=e.foregroundGroup,u=e.region,f=void 0===u?{start:{x:0,y:0},end:{x:1,y:1}}:u,p=e.padding,d=e.appendPadding,g=e.theme,v=e.options,y=e.limitInPlot,m=e.syncViewPadding;return n.parent=e.parent,n.canvas=o,n.backgroundGroup=a,n.middleGroup=s,n.foregroundGroup=c,n.region=f,n.padding=p,n.appendPadding=d,n.options=Object(l.a)(Object(l.a)({},n.options),v),n.limitInPlot=y,n.id=r,n.syncViewPadding=m,n.themeObject=Object(h.M)(g)?Object(h.h)({},pe("default"),he(g)):pe(g),n.init(),n}return Object(l.d)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t){void 0===t&&(t=!1),this.emit(a.BEFORE_RENDER),this.paint(t),this.emit(a.AFTER_RENDER),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0);this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)"annotation"===i[n].name?i[n].clear(!0):i[n].clear();this.createdScaleKeys.forEach(function(e,n){t.getRootView().scalePool.deleteScale(n)}),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(a.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.BEFORE_DESTROY);var e=this.interactions;Object(h.j)(e,function(t){t&&t.destroy()}),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++)n[i].destroy();this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++)n[i].changeVisible(e);var o=this.controllers;for(i=0,r=o.length;i<r;i++)o[i].changeVisible(e);return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(h.fb)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(h.H)(e)?(Object(h.fb)(this.options,["filters",t],e),this):(!e&&Object(h.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(h.C)(t)?Object(h.fb)(this.options,["axes"],t):Object(h.fb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(h.C)(t)?Object(h.fb)(this.options,["legends"],t):Object(h.O)(t)?Object(h.fb)(this.options,["legends",t],e):Object(h.fb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(h.O)(t)?Object(h.fb)(this.options,["scales",t],e):Object(h.M)(t)&&Object(h.j)(t,function(t,e){Object(h.fb)(n.options,["scales",e],t)}),this},e.prototype.tooltip=function(t){return Object(h.fb)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(h.O)(t)?Object(h.fb)(this.options,"coordinate",{type:t,cfg:e}):Object(h.fb)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=function(t){return Ot[Object(h.T)(t)]}(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,Object(l.a)(Object(l.a)({},e),{type:t})),this},e.prototype.animate=function(t){return Object(h.fb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(h.Y)(this.options,t),this.views.forEach(function(t){return t.destroy()}),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return Object(h.fb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(h.M)(t)?Object(h.h)({},this.themeObject,he(t)):pe(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=function(t,e,n){var i=function(t){return oe[Object(h.T)(t)]}(t);if(!i)return null;if(Object(h.N)(i)){var r=Object(h.Y)(Object(h.e)(i),n);return new re(e,r)}return new i(e,n)}(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.BEFORE_CHANGE_DATA),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++)e[n].changeData(t);this.emit(a.AFTER_CHANGE_DATA)},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(h.e)(this.options.scales),axes:Object(h.e)(this.options.axes),coordinate:Object(h.e)(this.coordinateController.getOption()),tooltip:Object(h.e)(this.options.tooltip),legends:Object(h.e)(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e(Object(l.a)(Object(l.a)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:1}),middleGroup:this.middleGroup.addGroup({zIndex:2}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:3}),theme:this.themeObject,padding:this.padding},t),{options:Object(l.a)(Object(l.a)({},n),Object(h.s)(t,"options",{}))}));return this.views.push(i),i},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(h.db)(this.views,function(e){return e===t})[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={};return this.geometries.map(function(e){var n=e.getYScale(),i=n.field;if(!t[i])return t[i]=!0,n})},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var o=e[i],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScaleByField=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===i.BG?this.backgroundGroup:t===i.MID?this.middleGroup:this.foregroundGroup},e.prototype.isPointInPlot=function(t){return at(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(h.q)(this.geometries.map(function(t){return t.getGroupAttributes()}))},e.prototype.getGroupScales=function(){var t=this.geometries.map(function(t){return t.getGroupScales()});return nt(Object(h.q)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(h.j)(t,function(t,i){r[i]&&(e=r[i].scale(t)),o[i]&&(n=o[i].scale(t))}),!Object(h.I)(e)&&!Object(h.I)(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(h.m)(this.controllers,function(e){return e.name===t})},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var o=e[i],a=o.dataArray;o.sort(a);for(var s=void 0,c=0,u=a.length;c<u;c++)(s=me(t,a[c],o))&&n.push(s)}var l=this.views;for(i=0,r=l.length;i<r;i++){var h=l[i].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++)t=t.concat(e[n].getComponents());return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(h.gb)(e)?t:Object(h.l)(t,function(t,n){return Object.keys(e).every(function(i){return(0,e[i])(t[i],t,n)})})},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=Object(h.s)(n,t);return Object(h.Q)(i)?e:e.filter(function(e,n){return i(e[t],e,n)})},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;Object(h.G)(e,i)&&Object(h.G)(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(a.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(h.s)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox;this.backgroundStyleRectShape.attr({fill:t,x:e.x,y:e.y,width:e.width,height:e.height})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=function(t){var e=t.padding;if(!function(t){return!Object(h.K)(t)&&!Object(h.B)(t)}(e))return new(ke.bind.apply(ke,Object(l.g)([void 0],xe(e))));var n=t.viewBBox,i=new ke,r=[],a=[],s=[];return Object(h.j)(t.getComponents(),function(t){var e=t.type;e===o.AXIS?r.push(t):[o.LEGEND,o.SLIDER,o.SCROLLBAR].includes(e)?a.push(t):e!==o.GRID&&e!==o.TOOLTIP&&s.push(t)}),Object(h.j)(r,function(t){var e=t.component.getLayoutBBox(),r=new it(e.x,e.y,e.width,e.height).exceed(n);i.max(r)}),Object(h.j)(a,function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),o=e.get("padding"),a=new it(r.x,r.y,r.width,r.height).expand(o);i.inc(a,n)}),Object(h.j)(s,function(t){var e=t.direction,n=t.component.getLayoutBBox(),r=new it(n.x,n.y,n.width,n.height);i.inc(r,e)}),i}(this).shrink(xe(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,i=e.length;n<i;n++)e[n].renderPaddingRecursive(t)},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Ae:Object(h.H)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,ke),this.views.forEach(function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()})),this.doLayout();for(var n=this.views,i=0,r=n.length;i<r;i++)n[i].renderLayoutRecursive(t)},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=ct(this.coordinateInstance);e.setClip({type:n.type,attrs:n.attrs})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var i=this.views,r=0,o=i.length;r<o;r++)i[r].renderPaintRecursive(t)},e.prototype.createScale=function(t,e,n,i){var r=Object(h.s)(this.options.scales,[t]),o=Object(l.a)(Object(l.a)({},r),n);return this.parent?this.parent.createScale(t,e,o,i):this.scalePool.createScale(t,e,o,i)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++)e[n].renderDataRecursive(t)},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var o=this.region,a=o.start,s=o.end,c=new it(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new it(t+n*a.x,e+i*a.y,n*(s.x-a.x),i*(s.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=Oe[t[e]];i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new Ce(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var i=this.isPointInPlot(n);if(i){var r="plot:"+e;t.type=r,this.emit(r,t),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!i?("mousemove"===e&&(t.type=c.MOUSE_LEAVE,this.emit(c.MOUSE_LEAVE,t)),t.type=c.LEAVE,this.emit(c.LEAVE,t)):!this.isPreMouseInPlot&&i&&("mousemove"===e&&(t.type=c.MOUSE_ENTER,this.emit(c.MOUSE_ENTER,t)),t.type=c.ENTER,this.emit(c.ENTER,t)),this.isPreMouseInPlot=i):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(t.type=c.MOUSE_LEAVE,this.emit(c.MOUSE_LEAVE,t)),t.type=c.LEAVE,this.emit(c.LEAVE,t),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){this.filteredData=this.filterData(this.options.data)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(h.s)(this.options,"scales",{}),i=this.geometries,r=0,o=i.length;r<o;r++){var a=i[r];a.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(s):a.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,o=void 0===r?{}:r,a=this.filteredData,s=0,c=t.length;s<c;s++){var u=t[s],l=o[u],h=this.getScaleKey(u);this.createScale(u,e.includes(u)?i:a,l,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++)nt(n[i].getScaleFields(),t,e);return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++)nt(n[i].getGroupFields(),t,e);return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(l.g)([this.getXScale()],this.getYScales()).filter(function(t){return!!t}),n=this.getCoordinate(),i=this.options.scales;Object(h.j)(e,function(e){var r=e.field;(e.isCategory||e.isIdentity)&&e.values&&!Object(h.s)(i,[r,"range"])&&(e.range=ht(e,n,t.theme))})},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){this.coordinateInstance=this.coordinateController.create(this.coordinateBBox.bl,this.coordinateBBox.tr)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,o=0;o<r.length;o++){var a=r[o];a.coordinate=n,a.canvasRegion=i,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++)this.getComponents()[e].component.render()},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,i=void 0===n?[]:n,r=e.interactions,o=void 0===r?[]:r,a=e.views,s=void 0===a?[]:a,c=e.annotations,u=void 0===c?[]:c,f=e.coordinate,p=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new we(f);for(var g=0;g<i.length;g++)this.createGeometry(i[g]);for(var v=0;v<o.length;v++){var y=o[v];this.interaction(y.type,y.cfg)}for(var m=0;m<s.length;m++)this.createView(s[m]);for(var b=this.getController("annotation"),x=0;x<u.length;x++)b.annotation(u[x]);p&&Object(h.j)(p,function(e,n){t.on(n,e)}),d&&Object(h.j)(d,function(e){var n=e.type,i=Object(l.f)(e,["type"]);t.facet(n,i)})},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg;if(this[e]){var i=this[e](void 0===n?{}:n);Object(h.j)(t,function(t,e){Object(h.H)(i[e])&&i[e](t)})}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(m);function Te(t,e){Ie.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(l.a)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var Be=function(t){function e(e){var n=this,i=e.container,r=e.width,o=e.height,a=e.autoFit,s=void 0!==a&&a,c=e.padding,u=e.appendPadding,f=e.renderer,d=void 0===f?"canvas":f,v=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,O=void 0===x||x,j=e.supportCSSTransform,w=void 0!==j&&j,C=e.defaultInteractions,M=void 0===C?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:C,S=e.options,k=e.limitInPlot,A=e.theme,I=e.syncViewPadding,T=Object(h.O)(i)?document.getElementById(i):i,B=Object(g.b)('<div style="position:relative;"></div>');T.appendChild(B);var L=y(T,s,r,o),F=new(function(t){var e=p[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e}(d).Canvas)(Object(l.a)({container:B,pixelRatio:v,localRefresh:b,supportCSSTransform:w},L));return(n=t.call(this,{parent:null,canvas:F,backgroundGroup:F.addGroup({zIndex:1}),middleGroup:F.addGroup({zIndex:2}),foregroundGroup:F.addGroup({zIndex:3}),padding:c,appendPadding:u,visible:O,options:S,limitInPlot:k,theme:A,syncViewPadding:I})||this).onResize=Object(h.g)(function(){n.forceFit()},300),n.ele=T,n.canvas=F,n.width=L.width,n.height=L.height,n.autoFit=s,n.localRefresh=b,n.renderer=d,n.wrapperElement=B,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return Object(l.d)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(h.j)(t,function(t){e.interaction(t)})},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){var e,n;t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(n=(e=this.wrapperElement).parentNode)&&n.removeChild(e),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=y(this.ele,!0,this.width,this.height);this.changeSize(t.width,t.height)}},e.prototype.updateCanvasStyle=function(){Object(g.e)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(Ie),Le=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(h.j)(this.components,function(t){t.component.destroy()}),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach(function(e){t?e.component.show():e.component.hide()}),this.visible=t)},t}(),Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Ce.fromData(e,"tooltip:show",Object(l.a)({items:n,title:i},t)));var o=this.getTooltipCfg(),a=o.follow,s=o.showMarkers,c=o.showCrosshairs,u=o.showContent,f=o.marker,p=this.items,d=this.title;if(Object(h.G)(d,i)&&Object(h.G)(p,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Ce.fromData(e,"tooltip:change",Object(l.a)({items:n,title:i},t))),u&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(h.Y)({},o,{items:n,title:i},a?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=i,c){var g=Object(h.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:r,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var i=this.tooltip;i&&i.hide(),this.view.emit("tooltip:hide",Ce.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,i=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),i&&i.clear(),this.reset()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,i=this.xCrosshair,r=this.yCrosshair;t?(e&&e.show(),n&&n.show(),i&&i.show(),r&&r.show()):(e&&e.hide(),n&&n.hide(),i&&i.hide(),r&&r.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){for(var n=0,i=e=Object(h.q)(e);n<i.length;n++)for(var r=0,o=i[n];r<o.length;r++){var a=o[r],s=a.mappingData,c=s.x,u=s.y;a.x=Object(h.B)(c)?c[c.length-1]:c,a.y=Object(h.B)(u)?u[u.length-1]:u}if(!1===this.getTooltipCfg().shared&&e.length>1){for(var l=e[0],f=Math.abs(t.y-l[0].y),p=0,d=e;p<d.length;p++){var g=d[p],v=Math.abs(t.y-g[0].y);v<=f&&(l=g,f=v)}e=[l]}return function(t){for(var e=[],n=function(n){var i=t[n];Object(h.m)(e,function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title})||e.push(i)},i=0;i<t.length;i++)n(i);return e}(Object(h.q)(e))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var i=e.getBoundingClientRect();return new it(i.x,i.y,i.width,i.height).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),i=t.getTheme(),r=Object(h.s)(i,["components","tooltip"],{}),o=Object(h.s)(n,"enterable",r.enterable);return Object(h.h)({},r,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(h.C)(t)||!Object(h.s)(t,"customContent"))return t;var e=t.customContent;return Object(l.a)(Object(l.a)({},t),{customContent:function(t,n){var i=e(t,n)||"";return Object(h.O)(i)?'<div class="g2-tooltip">'+i+"</div>":i}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new q(Object(l.a)(Object(l.a)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i<r.length;i++){var o=r[i],a=o.x,s=o.y,c=Object(l.a)(Object(l.a)({fill:o.color,symbol:"circle",shadowColor:o.color},e),{x:a,y:s});n.addShape("marker",{attrs:c})}},e.prototype.renderCrosshairs=function(t,e){var n=Object(h.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(at(n,t)){var i,r;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},r={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},r={x:t.x,y:n.start.y});else{var o=st(n,t),a=n.getCenter(),s=n.getRadius();r=U(a.x,a.y,s,o),i=a}var c=Object(h.h)({start:i,end:r,container:this.getTooltipCrosshairsGroup()},Object(h.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete c.type;var u=this.xCrosshair;u?u.update(c):(u=new G.Crosshair.Line(c)).init(),u.render(),u.show(),this.xCrosshair=u}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(at(n,t)){var i,r;if(n.isRect){var o=void 0,a=void 0;n.isTransposed?(o={x:t.x,y:n.end.y},a={x:t.x,y:n.start.y}):(o={x:n.start.x,y:t.y},a={x:n.end.x,y:t.y}),i={start:o,end:a},r="Line"}else i={center:n.getCenter(),radius:ot(n,t),startAngle:n.startAngle,endAngle:n.endAngle},r="Circle";delete(i=Object(h.h)({container:this.getTooltipCrosshairsGroup()},i,Object(h.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new G.Crosshair[r](i)).init():s.update(i):(s=new G.Crosshair[r](i)).init(),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(h.s)(n,["crosshairs","text"]),r=Object(h.s)(n,["crosshairs","follow"]),o=this.items;if(i){var a=this.getViewWithGeometry(this.view),s=o[0],c=a.getXScale(),u=a.getYScales()[0],l=void 0,f=void 0;if(r){var p=this.view.getCoordinate().invert(e);l=c.invert(p.x),f=u.invert(p.y)}else l=s.data[c.field],f=s.data[u.field];var d="x"===t?l:f;return Object(h.H)(i)?i=i(t,d,o,e):i.content=d,{text:i}}},e.prototype.getGuideGroup=function(){return this.guideGroup||(this.guideGroup=this.view.foregroundGroup.addGroup({name:"tooltipGuide",capture:!1})),this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.getTooltipItemsByHitShape=function(t,e,n){var i=[],r=t.container.getShape(e.x,e.y);if(r&&r.get("visible")&&r.get("origin")){var o=be(r.get("origin").mappingData,t,n);o.length&&i.push(o)}return i},e.prototype.getTooltipItemsByFindData=function(t,e,n){var i=[],r=t.dataArray;if(!Object(h.F)(r)){t.sort(r);for(var o=0,a=r;o<a.length;o++){var s=me(e,a[o],t);if(s){var c=t.getElementId(s);if("heatmap"===t.type||t.elementsMap[c].visible){var u=be(s,t,n);u.length&&i.push(u)}}}}return i},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=[],i=t.geometries,r=this.getTooltipCfg(),o=r.shared,a=r.title,s=r.reversed,c=0,u=i;c<u.length;c++){var l=u[c];if(l.visible&&!1!==l.tooltipOption){var h=l.type,f=void 0;(f=["point","edge","polygon"].includes(h)?this.getTooltipItemsByHitShape(l,e,a):["area","line","path","heatmap"].includes(h)||!1!==o?this.getTooltipItemsByFindData(l,e,a):this.getTooltipItemsByHitShape(l,e,a)).length&&(s&&f.reverse(),n.push(f))}}for(var p=0,d=t.views;p<d.length;p++)n=n.concat(this.findItemsFromView(d[p],e));return n},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(h.m)(t.views,function(t){return e.getViewWithGeometry(t)})},e}(Le),Ee={};function Pe(t){return Ee[t.toLowerCase()]}function De(t,e){Ee[t.toLowerCase()]=e}var ze={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Re={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},_e={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Ye(t,e,n){var i=Re[t];return i&&(Object(h.H)(i)&&(i=i(e)),i=Object(h.h)({},ze,i),n)?i[n]:i}function Ge(t,e,n){var i=Object(h.s)(t.get("origin"),"data","_origin"),r=e.animation,o=function(t,e){return{delay:Object(h.H)(t.delay)?t.delay(e):t.delay,easing:Object(h.H)(t.easing)?t.easing(e):t.easing,duration:Object(h.H)(t.duration)?t.duration(e):t.duration,callback:t.callback}}(e,i);if(r){var a=Pe(r);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Ne=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var i=e.container,r=e.offscreenGroup,o=e.visible,a=void 0===o||o;return n.shapeFactory=e.shapeFactory,n.container=i,n.offscreenGroup=r,n.visible=a,n}return Object(l.d)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var i=this.getOffscreenGroup(),r=e.drawShape(this.shapeType,t,i);r.cfg.data=this.data,r.cfg.origin=t,r.cfg.element=this,this.syncShapeStyle(n,r,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?Ge(n,i,{coordinate:e.coordinate,toAttrs:Object(l.a)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(t){t.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(t){t.hide()}))},e.prototype.setState=function(t,e){var n=this,i=n.states,r=n.shapeFactory,o=n.model,a=n.shape,s=n.shapeType,c=i.indexOf(t);if(e){if(c>-1)return;i.push(t),"active"!==t&&"selected"!==t||a.toFront()}else{if(-1===c)return;i.splice(c,1),"active"!==t&&"selected"!==t||a.toBack()}var u=r.drawShape(s,o,this.getOffscreenGroup());this.syncShapeStyle(a,u,i.length?i:["reset"],null),u.remove(!0);var l={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",l),Object(G.propagationDelegate)(this.shape,"statechange",l)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(h.j)(e,function(e){t.setState(e,!1)}),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach(function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)}),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeFactory,e=this.geometry.stateOption,n=t.theme[this.shapeType]||t.theme[t.defaultShapeType];this.statesStyle=Object(h.h)({},n,e)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(h.s)(n,[t,"style"],{}),r=i[e]||i;return Object(h.H)(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?Object(l.a)(Object(l.a)({},i),{callback:function(){var t;Object(h.H)(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(s.AFTER_DRAW_ANIMATE)}}):i}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var i=this.shapeFactory;if(this.shape=i.drawShape(this.shapeType,t,this.container),this.shape){this.setShapeInfo(this.shape,t);var r=this.shape.cfg.name;r?Object(h.O)(r)&&(this.shape.cfg.name=["element",r]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var o=this.getAnimateCfg(e?"enter":"appear");o&&(null===(n=this.geometry)||void 0===n||n.emit(s.BEFORE_DRAW_ANIMATE),Ge(this.shape,o,{coordinate:i.coordinate,toAttrs:Object(l.a)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;t.cfg.origin=e,t.cfg.element=this,t.isGroup()&&t.get("children").forEach(function(t){n.setShapeInfo(t,e)})},e.prototype.syncShapeStyle=function(t,e,n,i,r){var o,a=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var c=t.get("clipShape"),u=e.get("clipShape");if(this.syncShapeStyle(c,u,n,i),t.isGroup())for(var l=t.get("children"),f=e.get("children"),p=0;p<l.length;p++)this.syncShapeStyle(l[p],f[p],n,i,r+p);else{if(!Object(h.F)(n)&&!Object(h.G)(n,["reset"])){var d=t.get("name");Object(h.B)(d)&&(d=d[1]),Object(h.j)(n,function(t){var n=a.getStateStyle(t,d||r);e.attr(n)})}var g=Q(t,e);this.animate?i?(null===(o=this.geometry)||void 0===o||o.emit(s.BEFORE_DRAW_ANIMATE),Ge(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(h.F)(n)?(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(h.s)(t,"shape");return Object(h.B)(e)?e[0]:e},e}(m),Xe={},Ve={};function He(t,e){Xe[t.toLowerCase()]=e}function We(t,e){Ve[t.toLowerCase()]=e}var $e={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(h.s)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);n.getMarker||(n=this.getShape(this.defaultShapeType));var i=this.theme,r=Object(h.s)(i,[t,"default"],{}),o=n.getMarker(e);return Object(h.h)({},r,o)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},qe={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Ft.c)(t);return e.isPolar?function(t,e){var n,i,r=[];return Object(h.j)(e,function(o,a){switch(o[0].toLowerCase()){case"m":case"c":case"q":r.push(At(o,t));break;case"l":n=e[a-1],i=o,(t.isTransposed?n[n.length-2]===i[1]:n[n.length-1]===i[2])?r=r.concat(function(t,e,n){var i=n.isTransposed,r=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],u=i?"y":"x",l=Math.abs(s[u]-a[u])*(o-r),h=s[u]>=a[u]?1:0,f=l>Math.PI?1:0,p=n.convert(s),d=ot(n,p);if(d>=.5)if(l===2*Math.PI){var g=n.convert({x:(s.x+a.x)/2,y:(s.y+a.y)/2});c.push(["A",d,d,0,f,h,g.x,g.y]),c.push(["A",d,d,0,f,h,p.x,p.y])}else c.push(["A",d,d,0,f,h,p.x,p.y]);return c}(n,i,t)):r.push(At(o,t));break;case"a":r.push(It(o,t));break;case"z":default:r.push(o)}}),function(t){Object(h.j)(t,function(e,n){if("a"===e[0].toLowerCase()){var i=t[n-1],r=t[n+1];r&&"a"===r[0].toLowerCase()?i&&"l"===i[0].toLowerCase()&&(i[0]="M"):i&&"a"===i[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}})}(r),r}(e,n):function(t,e){var n=[];return Object(h.j)(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(At(e,t));break;case"a":n.push(It(e,t));break;case"z":default:n.push(e)}}),n}(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map(function(t){return e.convert(t)})},draw:function(t,e){}},Ue={};function Ze(t,e){var n=Object(h.qb)(t),i=Object(l.a)(Object(l.a)(Object(l.a)({},$e),e),{geometryType:t});return Ue[n]=i,i}function Ke(t,e,n){var i=Object(h.qb)(t),r=Ue[i],o=Object(l.a)(Object(l.a)({},qe),n);return r[e]=o,o}function Je(t){var e=Object(h.qb)(t);return Ue[e]}function Qe(t,e){return Object(h.hb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(n){return!Object(h.G)(t[n],e[n])})}function tn(t){return Object(h.B)(t)?t:t.split("*")}var en=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=e.labelsContainer,r=e.coordinate,o=e.data,a=e.sortable,s=void 0!==a&&a,c=e.visible,u=void 0===c||c,l=e.theme,h=e.scales,f=void 0===h?{}:h,p=e.scaleDefs,d=void 0===p?{}:p,g=e.intervalPadding,v=e.dodgePadding,y=e.maxColumnWidth,m=e.minColumnWidth,b=e.columnWidthRatio,x=e.roseWidthRatio,O=e.multiplePieWidthRatio;return n.container=e.container,n.labelsContainer=i,n.coordinate=r,n.data=o,n.sortable=s,n.visible=u,n.userTheme=l,n.scales=f,n.scaleDefs=d,n.intervalPadding=g,n.dodgePadding=v,n.maxColumnWidth=y,n.minColumnWidth=m,n.columnWidthRatio=b,n.roseWidthRatio=x,n.multiplePieWidthRatio=O,n}return Object(l.d)(e,t),e.prototype.position=function(t){var e=t;Object(h.N)(t)||(e={fields:tn(t)});var n=Object(h.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(h.fb)(e,"fields",n)),Object(h.fb)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(h.O)(t)||Object(h.N)(t))&&(e=[t]),Object(h.j)(e,function(t,n){Object(h.M)(t)||(e[n]={type:t})}),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(h.O)(t)){var n=tn(t);this.styleOption={fields:n,callback:e}}else this.styleOption=(n=t.fields)||t.callback||t.cfg?t:{cfg:t};return this},e.prototype.tooltip=function(t,e){if(Object(h.O)(t)){var n=tn(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(h.O)(t)){var i={},r=tn(t);i.fields=r,Object(h.H)(e)?i.callback=e:Object(h.N)(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=t.isCoordinateChanged,r=this.attributeOption,o=this.lastAttributeOption;Object(h.G)(r,o)?!e||!n&&Object(h.G)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=i},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(h.h)({},Ye(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={},this.getOffscreenGroup().clear();for(var n=this.beforeMapping(this.beforeMappingData),i=[],r=0,o=n.length;r<o;r++){var a=this.mapping(n[r]);i.push(a),this.createElements(a,r,t)}if(this.canDoGroupAnimation(t)){var s=this.container,c=this.type,u=this.coordinate,f=Object(h.s)(this.animateOption,"appear"),p=this.getYScale(),d=u.convert({x:0,y:p.scale(this.getYMinValue())});!function(t,e,n,i,r){if(_e[n]){var o=_e[n](i),a=Pe(Object(h.s)(o,"animation",""));if(a){var s=Object(l.a)(Object(l.a)(Object(l.a)({},ze.appear),o),e);t.stopAnimate(),a(t,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}(s,f,c,u,d)}this.labelOption&&this.renderLabels(Object(h.q)(i),t),this.dataArray=i,Object(h.j)(this.lastElementsMap,function(t){t.animate=e.animateOption,t.destroy()}),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=Object(l.a)({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(h.j)(this.attributes,function(e){f.includes(e.type)&&t.push(e)}),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(h.F)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,o=i.length;r<o;r++){var a=i[r];n.push(a.isIdentity?a.values:e[a.field])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter(function(e){return t(e)})},e.prototype.getElementId=function(t){var e=(t=Object(h.B)(t)?t[0]:t)._origin;if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,o,a=this.type,s=this.getXScale(),c=this.getYScale();r="identity"===s.type?s.values[0]:e[s.field||"x"],o="interval"===a||"schema"===a?""+r:"line"===a||"area"===a||"path"===a?a:r+"-"+e[c.field||"y"];for(var u=this.groupScales,l=(i=0,u.length);i<l;i++)o=o+"-"+e[u[i].field];var f=this.getAdjust("dodge");if(f){var p=f.dodgeBy;p&&(o=o+"-"+e[p])}return this.getAdjust("jitter")&&(o=o+"-"+t.x+"-"+t.y),o},e.prototype.getScaleFields=function(){var t=[],e={},n=this.attributeOption,i=this.labelOption,r=this.tooltipOption;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];a.fields?nt(a.fields,t,e):a.values&&nt(a.values,t,e)}return i&&i.fields&&nt(i.fields,t,e),Object(h.M)(r)&&r.fields&&nt(r.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++)n[i].changeVisible(e);e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getGroupFields=function(){for(var t=[],e={},n=0,i=f.length;n<i;n++){var r=this.attributeOption[f[n]];r&&r.fields&&nt(r.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields;return[t[0],t[1]]},e.prototype.getShapes=function(){return this.elements.map(function(t){return t.shape})},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++)t[i].sort(function(t,i){return e.translate(t._origin[n])-e.translate(i._origin[n])});this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Je(t))return this.shapeFactory||(this.shapeFactory=Object(h.e)(Je(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,i=this.getDrawCfg(t),r=this.getShapeFactory(),o=new Ne({shapeFactory:r,container:n,offscreenGroup:this.getOffscreenGroup()});return o.animate=this.animateOption,o.geometry=this,o.draw(i,e),o},e.prototype.getDrawCfg=function(t){var e=t._origin,n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=Object(h.s)(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);for(var i=this.lastElementsMap,r=this.elementsMap,o=this.elements,a=0,s=t.length;a<s;a++){var c=t[a],u=this.getElementId(c);r[u]&&(u=u+"-"+e+"-"+a);var l=i[u];if(l){var h=this.getDrawCfg(c),f=l.getModel();(this.isCoordinateChanged||Qe(h,f))&&(l.animate=this.animateOption,l.update(h)),delete i[u]}else l=this.createElement(c,n);o.push(l),r[u]=l}return o},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,i=e.type,r=e.isTransposed,o=Object(h.s)(t,["cfg","type"]);return o||(o="polar"===i?r?"pie":"polar":"theta"===i?"pie":"interval"===n||"polygon"===n?"interval":"base"),o},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(h.I)(e)||Object(h.M)(e))Object(h.M)(e)&&Object(h.G)(Object.keys(e),["values"])?Object(h.fb)(this.attributeOption,t,{fields:e.values}):Object(h.fb)(this.attributeOption,t,e);else{var i={};Object(h.K)(e)?i.values=[e]:i.fields=tn(e),n&&(Object(h.H)(n)?i.callback=n:i.values=n),Object(h.fb)(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,i=this.theme,r=this.shapeType;this.groupScales=[];var o={},a=function(a){if(n.hasOwnProperty(a)){var s=n[a];if(!s)return{value:void 0};var c=Object(l.a)({},s),u=c.callback,h=c.values,p=c.fields,d=(void 0===p?[]:p).map(function(e){var n=t.scales[e];return n.isCategory&&!o[e]&&f.includes(a)&&(t.groupScales.push(n),o[e]=!0),n});c.scales=d,"position"!==a&&1===d.length&&"identity"===d[0].type?c.values=d[0].values:u||h||("size"===a?c.values=i.sizes:"shape"===a?c.values=i.shapes[r]||[]:"color"===a&&(c.values=d.length?d[0].values.length<=10?i.colors10:i.colors20:i.colors10));var g=L(a);e[a]=new g(c)}};for(var s in n){var c=a(s);if("object"==typeof c)return c.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter(function(t){return t.isCategory}),n=this.groupData(t),i=[],r=0,o=n.length;r<o;r++){for(var a=n[r],s=[],c=0,u=a.length;c<u;c++){var l=a[c],h={};for(var f in l)h[f]=l[f];h._origin=l;for(var p=0,d=e;p<d.length;p++){var g=d[p],v=g.field;h[v]=g.translate(h[v])}s.push(h)}i.push(s)}var y=this.adjustData(i);return this.beforeMappingData=y,y},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,i=this.dodgePadding,r=this.theme,o=this.maxColumnWidth||r.maxColumnWidth,a=this.minColumnWidth||r.minColumnWidth,s=this.columnWidthRatio||r.columnWidthRatio,c=t;if(e){var u=this.getXScale(),f=this.getYScale(),p=u.field,d=f?f.field:null,g=rt(this.coordinate),v=u.values.length,y=this.getAttribute("size"),m=void 0;y&&(m=y.values[0]);for(var b=0,O=e.length;b<O;b++){var j=e[b],w=Object(l.a)({xField:p,yField:d,intervalPadding:n,dodgePadding:i,xDimensionLength:g,groupNum:v,defaultSize:m,maxColumnWidth:o,minColumnWidth:a,columnWidthRatio:s},j),C=j.type;if("dodge"===C){var M=[];if(u.isCategory||"identity"===u.type)M.push("x");else{if(f)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}w.adjustNames=M,w.dodgeRatio=s}else if("stack"===C){var S=this.coordinate;if(!f){w.height=S.getHeight();var k=this.getDefaultValue("size")||3;w.size=k}!S.isTransposed&&Object(h.I)(w.reverseOrder)&&(w.reverseOrder=!0)}var A=new(Object(x.getAdjust)(C))(w);c=A.process(c),this.adjusts[C]=A}}return c},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],o=0;o<e.length;o++){var a=e[o].field;r.push(a),Object(h.s)(n,[a,"values"])&&(i[a]=n[a].values)}return function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=Object(h.w)(t,e),r=[];if(1===e.length&&n[e[0]])for(var o=0,a=n[e[0]];o<a.length;o++){var s=i["_"+a[o]];s&&r.push(s)}else for(var c in i)i.hasOwnProperty(c)&&r.push(i[c]);return r}(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=Object(h.q)(e),i=t.field,r=t.min,o=t.max,a=0;a<n.length;a++){var s=n[a],c=Math.min.apply(null,s[i]),u=Math.max.apply(null,s[i]);c<r&&(r=c),u>o&&(o=u)}var l=this.scaleDefs,f={};r<t.min&&!Object(h.s)(l,[i,"min"])&&(f.min=r),o>t.max&&!Object(h.s)(l,[i,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,i=e.length;n<i;n++){var r=e[n];this.generateShapePoints(r);var o=e[n+1];o&&(this.generateShapePoints(o),r[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],o=this.createShapePointsCfg(r),a=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(a,o);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(h.B)(t))for(var i=0;i<t.length;i++)n.push(e.scale(t[i]));else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],o={_origin:r._origin,points:r.points,nextPoints:r.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],c=s.names,u=this.getAttributeValues(s,r);if(c.length>1)for(var l=0;l<u.length;l+=1){var f=u[l];o[c[l]]=Object(h.B)(f)&&1===f.length?f[0]:f}else o[c[0]]=1===u.length?u[0]:u}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,o=t.y,a=this.coordinate;if(Object(h.B)(r)&&Object(h.B)(o)){e=[],n=[];for(var s=0,c=0,u=r.length,l=o.length;s<u&&c<l;s+=1,c+=1)i=a.convert({x:r[s],y:o[c]}),e.push(i.x),n.push(i.y)}else if(Object(h.B)(o)){n=[];for(var f=0;f<o.length;f++)i=a.convert({x:r,y:o[f]}),e&&e!==i.x?(Object(h.B)(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}else if(Object(h.B)(r))for(e=[],f=0;f<r.length;f++)i=a.convert({x:r[f],y:o}),n&&n!==i.y?(Object(h.B)(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x);else{var p=a.convert({x:r,y:o});e=p.x,n=p.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=t.callback,r=t.cfg;if(r)return r;var o=(void 0===n?[]:n).map(function(t){return e[t]});return i.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),o&&(this.scaleDefs=o,this.idFields=[],Object(h.j)(o,function(t,n){t&&t.key&&e.idFields.push(n)})),r&&(this.theme=this.userTheme?Object(h.h)({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var i=this.getLabelType();n=new(0,Xe[i.toLowerCase()])(this),this.geometryLabel=n}n.render(t,e);var r=n.labelsRenderer.shapesMap;Object(h.j)(this.elementsMap,function(t,e){var n=function(t,e){var n=[];return Object(h.j)(e,function(e,i){i.split(" ")[0]===t&&n.push(e)}),n}(e,r);if(n.length){t.labelShape=n;for(var i=0;i<n.length;i++)for(var o=n[i].getChildren(),a=0;a<o.length;a++){var s=o[a];s.cfg.name=["element","label"],s.cfg.element=t}}})},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(h.s)(this.animateOption,"appear")||Object(h.s)(this.animateOption,"appear")&&void 0===Object(h.s)(this.animateOption,["appear","animation"]))},e}(m),nn=E.a.transform;function rn(t,e,n){var i=nn(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function on(t,e){var n=function(t,e){var n=t.attr(),i=n.x,r=n.y;return nn(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]])}(t,e);t.setMatrix(n)}function an(t){return t.find(function(t){return"text"===t.get("type")})}function sn(t,e,n){void 0===n&&(n=[0,0,0,0]);var i=t.getChildren()[0];if(i){var r=i.clone();e.rotate&&on(r,-e.rotate);var o=r.getCanvasBBox(),a=o.x,s=o.y,c=o.width,u=o.height;r.destroy();var l=n;return Object(h.I)(l)?l=[2,2,2,2]:Object(h.K)(l)&&(l=new Array(4).fill(l)),{x:a-l[3],y:s-l[0],width:c+l[1]+l[3],height:u+l[0]+l[2],rotation:e.rotate||0}}}function cn(t,e){var n=t.getBBox();return Object(h.hb)(e,function(t){var e,i,r,o=t.getBBox();return e=n,i=o,void 0===(r=2)&&(r=0),Math.max(0,Math.min(e.x+e.width+r,i.x+i.width+r)-Math.max(e.x-r,i.x-r))*Math.max(0,Math.min(e.y+e.height+r,i.y+i.height+r)-Math.max(e.y-r,i.y-r))>0})}function un(t,e,n){var i=n.data,r=n.origin,o=n.animateCfg,a=n.coordinate,s=Object(h.s)(o,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),t.getChildren().forEach(function(c,u){var l=e.getChildByIndex(u);if(l){c.set("data",i),c.set("origin",r),c.set("animateCfg",o),c.set("coordinate",a);var h=Q(c,l);s?Ge(c,s,{toAttrs:h,coordinate:a}):c.attr(h),l.isGroup()&&un(c,l,n)}else t.removeChild(c),c.remove(!0)}),Object(h.j)(e.getChildren(),function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))})}var ln=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.container;this.layout=t.layout,this.container=e}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,o=this.createOffscreenGroup();if(t.length){for(var a=0,s=t;a<s.length;a++){var c=s[a];c&&this.renderLabel(c,o)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var u=this.lastShapesMap,f=this.shapesMap;Object(h.j)(f,function(t,e){if(t.destroyed)delete f[e];else{if(u[e]){var o=t.get("data"),a=t.get("origin"),s=t.get("coordinate"),c=t.get("animateCfg"),p=u[e];un(p,f[e],{data:o,origin:a,animateCfg:c,coordinate:s}),i.shapesMap[e]=p}else{r.add(t);var d=Object(h.s)(t.get("animateCfg"),n?"enter":"appear");d&&Ge(t,d,{toAttrs:Object(l.a)({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}}),Object(h.j)(u,function(t){var e=Object(h.s)(t.get("animateCfg"),"leave");e?Ge(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)}),this.lastShapesMap=f,o.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.mappingData,o=t.coordinate,a=t.animate,s=t.content,c={id:i,elementId:t.elementId,data:t.data,origin:Object(l.a)(Object(l.a)({},r),{data:r._origin}),coordinate:o},u=e.addGroup(Object(l.a)({name:"label",animateCfg:!1!==this.animate&&null!==a&&!1!==a&&Object(h.h)({},this.animate,a)},c));if(s.isGroup&&s.isGroup()||s.isShape&&s.isShape()){var f=s.getCanvasBBox(),p=f.width,d=f.height,g=Object(h.s)(t,"textAlign","left"),v=t.x;"center"===g?v-=p/2:"right"!==g&&"end"!==g||(v-=p),rn(s,v,t.y-d/2),n=s,u.add(s)}else{var y=Object(h.s)(t,["style","fill"]);n=u.addShape("text",Object(l.a)({attrs:Object(l.a)(Object(l.a)({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(h.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(h.J)(y)?t.color:y})},c))}t.rotate&&on(n,t.rotate),this.shapesMap[i]=u},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var i=Object(h.B)(this.layout)?this.layout:[this.layout];Object(h.j)(i,function(i){var r,o=(r=Object(h.s)(i,"type",""),Ve[r.toLowerCase()]);if(o){var a=[],s=[];Object(h.j)(n.shapesMap,function(t,n){a.push(t),s.push(e[t.get("elementId")])}),o(t,a,s,n.region,i.cfg)}})}},t.prototype.renderLabelLine=function(t){var e=this;Object(h.j)(t,function(t){var n=Object(h.s)(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var o=Object(h.s)(t,"labelLine",{}),a=t.id,s=o.path;if(!s){var c=U(i.x,i.y,r,t.angle);s=[["M",c.x,c.y],["L",t.x,t.y]]}var u=e.shapesMap[a];u.destroyed||u.addShape("path",{capture:!1,attrs:Object(l.a)({path:s,stroke:t.color?t.color:Object(h.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}})},t.prototype.renderLabelBackground=function(t){var e=this;Object(h.j)(t,function(t){var n=Object(h.s)(t,"coordinate"),i=Object(h.s)(t,"background");if(i&&n){var r=t.id,o=e.shapesMap[r];if(!o.destroyed){var a=o.getChildren()[0];if(a){var s=sn(o,t,i.padding),c=s.rotation,u=Object(l.f)(s,["rotation"]),f=o.addShape("rect",{attrs:Object(l.a)(Object(l.a)({},u),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(f.setZIndex(-1),c){var p=a.getMatrix();f.setMatrix(p)}}}}})},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t){var e=this;Object(h.j)(t,function(t){if(t){var n=e.shapesMap[t.id];if(!n.destroyed){var i=n.findAll(function(t){return"path"!==t.get("type")});Object(h.j)(i,function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))})}}})},t}(),hn=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(h.j)(t,function(t,r){var o=i[r];if(!o||Object(h.I)(t.x)||Object(h.I)(t.y))n.push(null);else{var a=Object(h.B)(o.content)?o.content:[o.content];o.content=a;var s=a.length;Object(h.j)(a,function(i,r){if(Object(h.I)(i)||""===i)n.push(null);else{var a=Object(l.a)(Object(l.a)({},o),e.getLabelPoint(o,t,r));a.textAlign||(a.textAlign=e.getLabelAlign(a,r,s)),a.offset<=0&&(a.labelLine=null),n.push(a)}})}}),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes();i.render(n,r,e)},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,i=n.type,r=n.theme;return"polygon"===i||"interval"===i&&"middle"===e||t<0&&!["line","point","path"].includes(i)?Object(h.s)(r,"innerLabels",{}):Object(h.s)(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.type,r=e.theme;return"polygon"===i||t.offset<0&&!["line","point","path"].includes(i)?Object(h.h)({},n,r.innerLabels,t):Object(h.h)({},n,r.labels,t)},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var i=t.offset,r=this.getCoordinate().isTransposed,o=r?1:-1,a={x:0,y:0};return a[r?"x":"y"]=e>0||1===n?i*o:i*o*-1,a},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function o(e,n){var i,r,o=e;return Object(h.B)(o)&&(1===t.content.length?o.length<=2?o=o[e.length-1]:(i=o,r=0,Object(h.j)(i,function(t){r+=t}),o=r/i.length):o=o[n]),o}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"};if(e&&"polygon"===this.geometry.type){var s=function(t,e){if(Object(h.K)(t)&&Object(h.K)(e))return[t,e];for(var n,i,r=-1,o=0,a=0,s=t.length-1,c=0;++r<t.length;)c+=i=t[n=s]*e[s=r]-t[s]*e[n],o+=(t[n]+t[s])*i,a+=(e[n]+e[s])*i;return[o/(c*=3),a/c]}(e.x,e.y);a.x=s[0],a.y=s[1]}else a.x=o(e.x,n),a.y=o(e.y,n);var c=Object(h.B)(e.shape)?e.shape[0]:e.shape;if("funnel"===c||"pyramid"===c){var u=Object(h.s)(e,"nextPoints"),l=Object(h.s)(e,"points");if(u){var f=i.convert(l[1]),p=i.convert(u[1]);a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2}else"pyramid"===c&&(f=i.convert(l[1]),p=i.convert(l[2]),a.x=(f.x+p.x)/2,a.y=(f.y+p.y)/2)}t.position&&this.setLabelPosition(a,e,n,t.position);var d=this.getLabelOffsetPoint(t,n,r);return a.start={x:a.x,y:a.y},a.x+=d.x,a.y+=d.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var i="center";if(this.getCoordinate().isTransposed){var r=t.offset;i=r<0?"right":0===r?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),o=t._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" "+o[i.field]:"path"===n&&(a+=" "+o[i.field]+"-"+o[r.field]),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelOption,n=t.canvasRegion,i=t.animateOption,r=this.geometry.coordinate,o=this.labelsRenderer;return o||(o=new ln({container:t.labelsContainer,layout:Object(h.s)(e,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=n,o.animate=!!i&&Ye("label",r),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,o=n.coordinate,a=i.fields,s=i.callback,c=i.cfg,u=a.map(function(t){return r[t]}),f=[];return Object(h.j)(t,function(t,n){var i,r=t._origin,p=e.getLabelText(r,u);if(s){var d=a.map(function(t){return r[t]});if(i=s.apply(void 0,d),Object(h.I)(i))return void f.push(null)}var g=Object(l.a)(Object(l.a)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:o},c),i);Object(h.H)(g.position)&&(g.position=g.position(r,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);(g=Object(h.h)({},y,g)).offset=e.getLabelOffset(g.offset||0);var m=g.content;Object(h.H)(m)?g.content=m(r,t,n):Object(h.Q)(m)&&(g.content=p[0]),f.push(g)}),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(h.j)(e,function(e){var i=t[e.field];i=Object(h.B)(i)?i.map(function(t){return e.getText(t)}):e.getText(i),Object(h.I)(i)||""===i?n.push(null):n.push(i)}),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(h.K)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(h.j)(t.elementsMap,function(t,n){e[n]=t.shape}),Object(h.j)(t.getOffscreenGroup().getChildren(),function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n}),e},t}();function fn(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Object(l.g)([e],r)).join("")}else i=t.mapping(e).join("");return i||n}n("WXeg");var pn={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},dn=["line","cross","tick","plus","hyphen"];function gn(t){var e=t.symbol;Object(h.O)(e)&&pn[e]&&(t.symbol=pn[e])}function vn(t){return t.startsWith(r.LEFT)||t.startsWith(r.RIGHT)?"vertical":"horizontal"}function yn(t,e,n,i,r){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,s=e.getAttribute("color"),c=e.getAttribute("shape"),u=t.getTheme().defaultColor,l=e.coordinate.isPolar;return o.getTicks().map(function(n){var f,p=n.text,d=o.invert(n.value),g=0===t.filterFieldData(a,[(f={},f[a]=d,f)]).length;Object(h.j)(t.views,function(t){var e;t.filterFieldData(a,[(e={},e[a]=d,e)]).length||(g=!0)});var v=fn(s,d,u),y=fn(c,d,"point"),m=e.getShapeMarker(y,{color:v,isInPolar:l});return function(t,e){var n=t.symbol;Object(h.O)(n)&&-1!==dn.indexOf(n)&&(t.style=Object(h.h)({},t.style,{lineWidth:1,stroke:e,fill:null}))}(m=Object(h.h)({},i,m,r),v),gn(m),{id:d,name:p,value:d,marker:m,unchecked:g}})}return[]}var mn={getLegendItems:yn,translate:rn,rotate:on,zoom:function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,r=(n.minY+n.maxY)/2;t.applyToMatrix([i,r,1]);var o=nn(t.getMatrix(),[["t",-i,-r],["s",e,e],["t",i,r]]);t.setMatrix(o)},transform:nn,getAngle:J,polarToCartesian:U,getDelegationObject:Dt,getTooltipItems:be},bn=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],xn=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],On=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=t.paletteQualitative10,i=void 0===n?bn:n,r=t.paletteQualitative20,o=t.paletteSemanticRed,a=t.paletteSemanticGreen,s=t.paletteSemanticYellow,c=t.fontFamily,u=t.brandColor;return{backgroundColor:void 0===e?"#141414":e,brandColor:void 0===u?i[0]:u,paletteQualitative10:i,paletteQualitative20:void 0===r?xn:r,paletteSemanticRed:void 0===o?"#F4664A":o,paletteSemanticGreen:void 0===a?"#30BF78":a,paletteSemanticYellow:void 0===s?"#FAAD14":s,fontFamily:void 0===c?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':c,axisLineBorderColor:"#404040",axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:"#A6A6A6",axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:"#404040",axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:"#262626",axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:"#737373",axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:"#262626",axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:"#737373",legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:bn[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:"#A6A6A6",legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],sliderRailFillColor:"#262626",sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:"#737373",sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:"#F0F0F0",sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:"#BFBFBF",annotationArcBorderColor:"#262626",annotationArcBorder:1,annotationLineBorderColor:"#404040",annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:"#A6A6A6",annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:"#FFFFFF",annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:"#404040",tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:"#A6A6A6",tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:"#A6A6A6",labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:"#000",innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:"#A6A6A6",overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:"#000",overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:"#404040",pointFillColor:bn[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:"#000",pointBorderOpacity:1,pointActiveBorderColor:"#FFFFFF",pointSelectedBorder:2,pointSelectedBorderColor:"#FFFFFF",pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:bn[0],hollowPointBorderOpacity:.95,hollowPointFillColor:"#000",hollowPointActiveBorder:1,hollowPointActiveBorderColor:"#FFFFFF",hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:"#FFFFFF",hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:bn[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:bn[0],areaFillOpacity:.25,areaActiveFillColor:bn[0],areaActiveFillOpacity:.5,areaSelectedFillColor:bn[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:bn[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:"#FFFFFF",hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:"#FFFFFF",hollowAreaInactiveBorderOpacity:.3,intervalFillColor:bn[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:"#FFFFFF",intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:"#FFFFFF",intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:bn[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:"#000",hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:"#FFFFFF",hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:"#FFFFFF",hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}}(),jn=n("U8jP"),wn=n("v7Ed");function Cn(t){return!t&&(null==t||isNaN(t))}function Mn(t){if(Object(h.B)(t))return Cn(t[1].y);var e=t.y;return Object(h.B)(e)?Cn(e[0]):Cn(e)}function Sn(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var i=[],r=0,o=t.length;r<o;r++)Mn(c=t[r])||i.push(c);return[i]}var a=[],s=[];for(r=0,o=t.length;r<o;r++){var c;Mn(c=t[r])?s.length&&((1!==s.length||n)&&a.push(s),s=[]):s.push(c)}return s.length&&a.push(s),a}function kn(t,e,n,i){void 0===i&&(i="");var r=t.style,o=void 0===r?{}:r,a=t.defaultStyle,s=t.color,c=t.size,u=Object(l.a)(Object(l.a)({},a),o);return s&&(e&&(o.stroke||(u.stroke=s)),n&&(o.fill||(u.fill=s))),i&&Object(h.I)(o[i])&&!Object(h.I)(c)&&(u[i]=c),u}function An(t){var e=t.x;return(Object(h.B)(t.y)?t.y:[t.y]).map(function(t,n){return{x:Object(h.B)(e)?e[n]:e,y:t}})}var In={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv: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]]},vh: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]]},hvh: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]]},vhv: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]]}};function Tn(t,e){return{symbol:In[e],style:{lineWidth:2,r:6,stroke:t.color}}}function Bn(t,e,n,i,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Lt(t,!1,i)):(o=Bt(t,!1),e&&o.push(["Z"])),o);var o}function Ln(t,e,n,i,r,o){if(t.length){var a=t[0];return Object(h.B)(a.y)?function(t,e,n,i,r,o){var a=[],s=[];Object(h.j)(t,function(t){var e=An(t);a.push(e[1]),s.push(e[0])});var c=Bn(a,e,i,r,o),u=Bn(s,e,i,r,o);return n?c:c.concat(u)}(t,e,n,i,r,o):Bn(t,e,i,r,o)}return[]}Ze("line",{defaultShapeType:"line"}),Object(h.j)(["line","dot","dash","smooth"],function(t){Ke("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var o=this.coordinate,a=o.start,s=o.end;i=[[a.x,s.y],[s.x,a.y]]}var c=function(t,e,n){for(var i=t.isStack,r=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,s=kn(t,!0,!1,"lineWidth"),c=Sn(t.points,r,a),u=[],l=0,h=c.length;l<h;l++)u=u.concat(Ln(c[l],o,i,e,n,s));return s.path=u,s}(e,r,i);return n.addShape({type:"path",attrs:c,name:"line"})},getMarker:function(e){return Tn(e,t)}})});var Fn=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=e.showSinglePoint,o=void 0===r||r;return n.connectNulls=void 0!==i&&i,n.showSinglePoint=o,n}return Object(l.d)(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.lastElementsMap,r=this.elementsMap,o=this.elements,a=this.container,s=this.getElementId(t),c=this.getShapeInfo(t),u=i[s];if(u){var l=u.getModel();(this.isCoordinateChanged||Qe(l,c))&&(u.animate=this.animateOption,u.update(c)),delete i[s]}else{var h=this.getShapeFactory();(u=new Ne({shapeFactory:h,container:a,offscreenGroup:this.getOffscreenGroup()})).geometry=this,u.animate=this.animateOption,u.draw(c,n)}return o.push(u),r[s]=u,o},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(en);function En(t,e,n,i,r){var o=[];if(t.length){for(var a=[],s=[],c=0,u=t.length;c<u;c++){var l=t[c];a.push(l[1]),s.push(l[0])}s=s.reverse(),Object(h.j)([a,s],function(t,c){var u=[],l=i.parsePoints(t),h=l[0];1===a.length&&1===s.length?u=0===c?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&l.push({x:h.x,y:h.y}),u=n?Lt(l,!1,r):Bt(l,!1),c>0&&(u[0][0]="L")),o=o.concat(u)}),o.push(["Z"])}return o}function Pn(t,e,n,i,r){for(var o=kn(t,e,!e,"lineWidth"),a=t.isInCircle,s=Sn(t.points,t.connectNulls,t.showSinglePoint),c=[],u=0,l=s.length;u<l;u++)c=c.concat(En(s[u],a,n,i,r));return o.path=c,o}function Dn(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Ze("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Object(h.B)(t.y)?t.y:[n,t.y]).map(function(t){return{x:e,y:t}})}}),Ke("area","area",{draw:function(t,e){var n=Pn(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}});var zn=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=e.sortable,o=void 0===r||r,a=e.showSinglePoint,s=void 0!==a&&a;return n.startOnZero=void 0===i||i,n.sortable=o,n.showSinglePoint=s,n}return Object(l.d)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var o=t[i];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(Fn);Ze("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return An(t)}}),Ke("edge","line",{draw:function(t,e){var n=kn(t,!0,!1,"lineWidth"),i=Bt(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Rn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(l.d)(e,t),e}(en),_n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(l.d)(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.prepareRange(t),r=this.prepareSize(),o=Object(h.s)(this.styleOption,["style","shadowBlur"]);return Object(h.K)(o)||(o=r/2),this.prepareGreyScaleBlurredCircle(r,o),this.drawWithRange(t,i,r,o),null},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,i=-1/0;return t.forEach(function(t){var r=t._origin[e];r>i&&(i=r),r<n&&(n=r)}),n===i&&(n=i-1),[n,i]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(h.K)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r=this.coordinate,o=r.start,a=r.end,s=this.coordinate.getWidth(),c=this.coordinate.getHeight(),u=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var l=this.getShadowCanvasCtx();e&&(t=t.filter(function(t){return t._origin[u]<=e[1]&&t._origin[u]>=e[0]}));for(var h=this.scales[u],f=0,p=t;f<p.length;f++){var d=p[f],g=this.getDrawCfg(d),v=g.x,y=g.y,m=h.scale(d._origin[u]);this.drawGrayScaleBlurredCircle(v-o.x,y-a.y,n+i,m,l)}var b=l.getImageData(0,0,s,c);this.clearShadowCanvasCtx(),this.colorize(b),l.putImageData(b,0,0);var x=this.getImageShape();x.attr("x",o.x),x.attr("y",a.y),x.attr("width",s),x.attr("height",c),x.attr("img",l.canvas),x.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var o=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;r<n.length;r+=4){var o=n[r];if(Object(h.K)(o)){var a=i[o]?i[o]:C.a.rgb2arr(e.gradient(o/256));n[r-3]=a[0],n[r-2]=a[1],n[r-1]=a[2],n[r]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return Object(l.a)(Object(l.a)({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map(function(t){return t._origin})},e}(en);function Yn(t,e){void 0===e&&(e=!1);var n,i,r,o,a=t.x,s=t.y,c=t.y0,u=t.size;Object(h.B)(s)?(n=s[0],i=s[1]):(n=c,i=s),Object(h.B)(a)?(r=a[0],o=a[1]):(r=a-u/2,o=a+u/2);var l=[{x:r,y:n},{x:r,y:i}];return e?l.push({x:o,y:(i+n)/2}):l.push({x:o,y:i},{x:o,y:n}),l}function Gn(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,o=t.length;r<o;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function Nn(t,e,n){var i=[];return Object(h.I)(e)?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],n?["L",t[2].x,t[2].y]:["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Xn(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,o=t.beforeMappingData,a=r.length,s=rt(t.coordinate),c=t.intervalPadding,u=t.dodgePadding,l=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var v=function(t,e){var n=t.length,i=t;Object(h.O)(i[0])&&(i=t.map(function(t){return e.translate(t)}));for(var r=i[1]-i[0],o=2;o<n;o++){var a=i[o]-i[o-1];r>a&&(r=a)}return r}(r,i);r.length>(a=(i.max-i.min)/v)&&(a=r.length)}var y=i.range,m=1/a,b=1;if(n.isPolar?b=n.isTransposed&&a>1?d:g:(i.isLinear&&(m*=y[1]-y[0]),b=p),!Object(h.I)(c)&&c>=0?m=(1-c/s*(a-1))/a:m*=b,t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(h.q)(t);return Object(h.sb)(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);!Object(h.I)(u)&&u>=0?m=(m-u/s*(x-1))/x:!Object(h.I)(c)&&c>=0?(m*=b,m/=x):m/=x,m=m>=0?m:0}if(!Object(h.I)(l)&&l>=0){var O=l/s;m>O&&(m=O)}if(!Object(h.I)(f)&&f>=0){var j=f/s;m<j&&(m=j)}return m}Ze("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Yn(t)}}),Ke("interval","rect",{draw:function(t,e){var n=kn(t,!1,!0),i=this.parsePath(function(t,e,n){var i=n.getWidth(),r=n.getHeight(),o=[],a=(t[2].x-t[1].x)/2,s=n.isTransposed?a*r/i:a*i/r;return"round"===e?("rect"===n.type?(o.push(["M",t[0].x,t[0].y+s]),o.push(["L",t[1].x,t[1].y-s]),o.push(["A",a,a,0,0,1,t[2].x,t[2].y-s]),o.push(["L",t[3].x,t[3].y+s]),o.push(["A",a,a,0,0,1,t[0].x,t[0].y+s])):(o.push(["M",t[0].x,t[0].y]),o.push(["L",t[1].x,t[1].y]),o.push(["A",a,a,0,0,1,t[2].x,t[2].y]),o.push(["L",t[3].x,t[3].y]),o.push(["A",a,a,0,0,1,t[0].x,t[0].y])),o.push(["z"])):o=Gn(t),o}(t.points,n.lineCap,this.coordinate));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});var Vn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e}return Object(l.d)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");return r?(n=this.getAttributeValues(r,e)[0],n/=rt(this.coordinate)):(this.defaultSize||(this.defaultSize=Xn(this)),n=this.defaultSize),i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Math.max(Math.max.apply(null,e.values),e.max)});else{var n=this.scaleDefs,i=e.field,r=e.max;"time"!==e.type&&(e.min>0&&!Object(h.s)(n,[i,"min"])&&e.change({min:0}),r<=0&&!Object(h.s)(n,[i,"max"])&&e.change({max:0}))}},e}(en),Hn=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable;return n.sortable=void 0===i||i,n}return Object(l.d)(e,t),e}(Fn),Wn=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function $n(t,e,n,i,r){var o=kn(e,r,!r,"r"),a=t.parsePoints(e.points),s=a[0];if(e.isStack)s=a[1];else if(a.length>1){for(var c=n.addGroup(),u=0,h=a;u<h.length;u++){var f=h[u];c.addShape({type:"marker",attrs:Object(l.a)(Object(l.a)(Object(l.a)({},o),{symbol:pn[i]||i}),f)})}return c}return n.addShape({type:"marker",attrs:Object(l.a)(Object(l.a)(Object(l.a)({},o),{symbol:pn[i]||i}),s)})}Ze("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return An(t)}}),Object(h.j)(Wn,function(t){Ke("point","hollow-"+t,{draw:function(e,n){return $n(this,e,n,t,!0)},getMarker:function(e){return{symbol:pn[t]||t,style:{r:4.5,stroke:e.color,fill:null}}}})});var qn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(l.d)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(l.a)(Object(l.a)({},n),{isStack:!!this.getAdjust("stack")})},e}(en);Ze("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(h.j)(t.x,function(n,i){e.push({x:n,y:t.y[i]})}),e}}),Ke("polygon","polygon",{draw:function(t,e){if(!Object(h.F)(t.points)){var n=kn(t,!0,!0),i=this.parsePath(function(t){for(var e=t[0],n=1,i=[["M",e.x,e.y]];n<t.length;){var r=t[n];r.x===t[n-1].x&&r.y===t[n-1].y||(i.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return Object(h.G)(Object(h.S)(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}(t.points));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var Un=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return Object(l.d)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,o=i.y;if(!Object(h.B)(r)||!Object(h.B)(o)){var a=this.getXScale(),s=this.getYScale(),c=.5/a.values.length,u=.5/s.values.length;a.isCategory&&s.isCategory?(r=[r-c,r-c,r+c,r+c],o=[o-u,o+u,o+u,o-u]):Object(h.B)(r)?(r=[(n=r)[0],n[0],n[1],n[1]],o=[o-u/2,o+u/2,o+u/2,o-u/2]):Object(h.B)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],r=[r-c/2,r-c/2,r+c/2,r+c/2]),i.x=r,i.y=o}return i},e}(en),Zn=(Ze("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(l.d)(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");return r?(n=this.getAttributeValues(r,e)[0],n/=rt(this.coordinate)):(this.defaultSize||(this.defaultSize=Xn(this)),n=this.defaultSize),i.size=n,i},e}(en));function Kn(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function Jn(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(h.j)(n,function(t){i.push(t.x,t.y)}),i}function Qn(t){var e=Object(h.B)(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n;return{min:n,max:i,min1:r,max1:e.length>3?e[3]:i,median:e.length>2?e[2]:r}}function ti(t,e,n){var i,r=n/2;if(Object(h.B)(e)){var o=Qn(e),a=t-r,s=t+r;i=[[a,u=o.max],[s,u],[t,u],[t,p=o.max1],[a,f=o.min1],[a,p],[s,p],[s,f],[t,f],[t,c=o.min],[a,c],[s,c],[a,l=o.median],[s,l]]}else{e=Object(h.I)(e)?.5:e;var c,u,l,f,p,d=Qn(t),g=e-r,v=e+r;i=[[c=d.min,g],[c,v],[c,e],[f=d.min1,e],[f,g],[f,v],[p=d.max1,v],[p,g],[p,e],[u=d.max,e],[u,g],[u,v],[l=d.median,g],[l,v]]}return i.map(function(t){return{x:t[0],y:t[1]}})}function ei(t,e,n){var i=function(t){var e=(Object(h.B)(t)?t:[t]).sort(function(t,e){return e-t});return function(t,e,n){if(Object(h.O)(t))return t.padEnd(4,n);if(Object(h.B)(t)){var i=t.length;if(i<4)for(var r=4-i,o=0;o<r;o++)t.push(n)}return t}(e,0,e[e.length-1])}(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}function ni(t,e){var n=Math.abs(t[0].x-t[2].x),i=Math.abs(t[0].y-t[2].y),r=Math.min(n,i);return e&&(r=Object(h.c)(e,0,Math.min(n,i))),{x:(t[0].x+t[2].x)/2-(r/=2),y:(t[0].y+t[2].y)/2-r,width:2*r,height:2*r}}Ke("area","line",{draw:function(t,e){var n=Pn(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Ke("area","smooth",{draw:function(t,e){var n=Pn(t,!1,!0,this,Dn(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),Ke("area","smooth-line",{draw:function(t,e){var n=Pn(t,!0,!0,this,Dn(this.coordinate));return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}}),Ke("edge","arc",{draw:function(t,e){var n,i=kn(t,!0,!1,"lineWidth"),r=t.points,o=r.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var i=Jn(e,n),r=[["M",t.x,t.y]];return r.push(i),r}(r[0],r[1],a):(i.fill=i.stroke,n=function(t,e){var n=Jn(t[1],e),i=Jn(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}(r,a)),n=this.parsePath(n),e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:n})})}if("normal"===o)return n=K(((r=this.parsePoints(r))[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:n})});var s=Kn(r[1],r[3]),c=Kn(r[2],r[0]);return n=this.parsePath(n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],c,["Z"]]),i.fill=i.stroke,e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Ke("edge","smooth",{draw:function(t,e){var n=kn(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(function(t,e){var n=Kn(t,e),i=[["M",t.x,t.y]];return i.push(n),i}(i[0],i[1]));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Ke("edge","vhv",{draw:function(t,e){var n=kn(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:.6666666666666667*t.y+.3333333333333333*e.y}),n.push({x:e.x,y:.6666666666666667*t.y+.3333333333333333*e.y}),n.push(e);var i=[["M",t.x,t.y]];return Object(h.j)(n,function(t){i.push(["L",t.x,t.y])}),i}(i[0],i[1]));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Ke("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Yn(t)},draw:function(t,e){var n=kn(t,!1,!0),i=this.parsePath(Nn(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Ke("interval","hollow-rect",{draw:function(t,e){var n=kn(t,!0,!1),i=this.parsePath(Gn(t.points));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i}),name:"interval"})},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Ke("interval","line",{getPoints:function(t){return n=(e=t).x,i=e.y,r=e.y0,Object(h.B)(i)?i.map(function(t,e){return{x:Object(h.B)(n)?n[e]:n,y:t}}):[{x:n,y:r},{x:n,y:i}];var e,n,i,r},draw:function(t,e){var n=kn(t,!0,!1,"lineWidth"),i=et(Object(l.a)({},n),["fill"]),r=this.parsePath(Gn(t.points,!1));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Ke("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Yn(t,!0)},draw:function(t,e){var n=kn(t,!1,!0),i=this.parsePath(Nn(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Ke("interval","tick",{getPoints:function(t){return function(t){var e,n,i=t.x,r=t.y,o=t.y0,a=t.size;Object(h.B)(r)?(e=r[0],n=r[1]):(e=o,n=r);var s=i+a/2,c=i-a/2;return[{x:i,y:e},{x:i,y:n},{x:c,y:e},{x:s,y:e},{x:c,y:n},{x:s,y:n}]}(t)},draw:function(t,e){var n,i=kn(t,!0,!1),r=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:r}),name:"interval"})},getMarker:function(t){return{symbol: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]]},style:{r:5,stroke:t.color}}}}),Object(h.j)(["hv","vh","hvh","vhv"],function(t){Ke("line",t,{draw:function(e,n){var i=function(t,e){var n=Sn(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(h.j)(n,function(t){var n=function(t,e){var n=[];return Object(h.j)(t,function(i,r){var o=t[r+1];if(n.push(i),o){var a=function(t,e,n){var i,r=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(a+r)/2;i=[{x:c,y:o},{x:c,y:s}];break;case"vhv":var u=(o+s)/2;i=[{x:r,y:u},{x:a,y:u}]}return i}(i,o,e);n=n.concat(a)}}),n}(t,e);i=i.concat(function(t){return t.map(function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]})}(n))}),Object(l.a)(Object(l.a)({},kn(t,!0,!1,"lineWidth")),{path:i})}(e,t);return n.addShape({type:"path",attrs:i,name:"line"})},getMarker:function(e){return Tn(e,t)}})}),Object(h.j)(["cross","tick","plus","hyphen","line"],function(t){Ke("point",t,{draw:function(e,n){return $n(this,e,n,t,!0)},getMarker:function(e){return{symbol:pn[t],style:{r:4.5,stroke:e.color,fill:null}}}})}),Ke("point","image",{draw:function(t,e){var n=kn(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var o=e.addGroup(),a=0,s=i;a<s.length;a++){var c=s[a];o.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:t.shape[1]}})}return o}return e.addShape("image",{attrs:{x:r.x-n/2,y:r.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(h.j)(Wn,function(t){Ke("point",t,{draw:function(e,n){return $n(this,e,n,t,!1)},getMarker:function(e){return{symbol:pn[t]||t,style:{r:4.5,fill:e.color}}}})}),Ke("schema","box",{getPoints:function(t){return ti(t.x,t.y,t.size)},draw:function(t,e){var n,i=kn(t,!0,!1),r=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:r,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var i=ti(t,[e-6,e-3,e,e+3,e+6],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]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Ke("schema","candle",{getPoints:function(t){return ei(t.x,t.y,t.size)},draw:function(t,e){var n,i=kn(t,!0,!0),r=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:Object(l.a)(Object(l.a)({},i),{path:r,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=ei(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Ke("polygon","square",{draw:function(t,e){if(!Object(h.F)(t.points)){var n=kn(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(l.a)(Object(l.a)({},n),ni(i,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i){var r,o=t.prototype.getLabelOffsetPoint.call(this,e,n,i),a=this.getCoordinate().isTransposed?"x":"y",s=this.getLabelValueDir(e.mappingData);return Object(l.a)(Object(l.a)({},o),((r={})[a]=o[a]*s,r))},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(h.h)({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,o,a,s,c=this.getCoordinate(),u=c.isTransposed,l=e.points,f=c.convert(l[0]),p=c.convert(l[2]),d=this.getLabelValueDir(e),g=Object(h.B)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(h.s)(e,"nextPoints"),y=Object(h.s)(e,"points");if(v){var m=c.convert(y[0]),b=c.convert(y[1]),x=c.convert(v[0]),O=c.convert(v[1]);u?(r=Math.min(x.y,m.y),a=Math.max(x.y,m.y),o=(b.x+O.x)/2,s=(m.x+x.x)/2):(r=Math.min((b.y+O.y)/2,(m.y+x.y)/2),a=Math.max((b.y+O.y)/2,(m.y+x.y)/2),o=O.x,s=m.x)}else r=Math.min(p.y,f.y),a=Math.max(p.y,f.y),o=p.x,s=f.x}else r=Math.min(p.y,f.y),a=Math.max(p.y,f.y),o=p.x,s=f.x;switch(i){case"right":t.x=o,t.y=(r+a)/2,t.textAlign=Object(h.s)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=s,t.y=(r+a)/2,t.textAlign=Object(h.s)(t,"textAlign",d>0?"left":"right");break;case"bottom":u&&(t.x=(o+s)/2),t.y=a,t.textAlign=Object(h.s)(t,"textAlign","center"),t.textBaseline=Object(h.s)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":u&&(t.x=(o+s)/2),t.y=(r+a)/2,t.textAlign=Object(h.s)(t,"textAlign","center"),t.textBaseline=Object(h.s)(t,"textBaseline","middle");break;case"top":u&&(t.x=(o+s)/2),t.y=r,t.textAlign=Object(h.s)(t,"textAlign","center"),t.textBaseline=Object(h.s)(t,"textBaseline",d>0?"bottom":"top")}},e}(hn),ri=Math.PI/2,oi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(h.K)(t))n=t;else if(Object(h.O)(t)&&-1!==t.indexOf("%")){var i=e.getRadius();e.innerRadius>0&&(i*=1-e.innerRadius),n=.01*parseFloat(t)*i}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),i=this.geometry.getYScale();return Object(h.U)(n,function(t){if(t&&i){var e=i.scale(Object(h.s)(t.data,i.field));return Object(l.a)(Object(l.a)({},t),{percent:e})}return t})},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=t.offset;e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,u=this.getCirclePoint(s,a,i,c);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,u.start={x:i.x,y:i.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(h.B)(t.x)||Object(h.B)(t.y)?{x:Object(h.B)(t.x)?t.x[e]:t.x,y:Object(h.B)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return st(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),o=r.getCenter(),a=ot(r,n);if(0===a)return Object(l.a)(Object(l.a)({},o),{r:a});var s=t;return r.isTransposed&&a>e&&!i?s=t+2*Math.asin(e/(2*a)):a+=e,{x:o.x+a*Math.cos(s),y:o.y+a*Math.sin(s),r:a}},e.prototype.getLabelRotate=function(t,e,n){var i=t+ri;return n&&(i-=ri),i&&(i>ri?i-=Math.PI:i<-ri&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(h.j)(t,function(t){i.x+=t.x,i.y+=t.y}),i.x/=n,i.y/=n,i=e.convert(i)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(hn),ai=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(l.d)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(h.h)({},i,Object(h.s)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&((i=t)>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:Object(h.B)(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(h.B)(t.x)?t.x[1]:t.x,y:t.y[1]},o=st(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=st(n,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return Object(l.a)(Object(l.a)({},U(i.x,i.y,r,t)),{angle:t,r:r})},e}(oi);function si(t,e,n){var i=t.filter(function(t){return!t.invisible});i.sort(function(t,e){return t.y-e.y});var r,o=!0,a=n.minY,s=Math.abs(a-n.maxY),c=0,u=Number.MIN_VALUE,l=i.map(function(t){return t.y>c&&(c=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}});for(u-=a,c-a>s&&(s=c-a);o;)for(l.forEach(function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),s-t.size),t.pos=Math.max(0,t.pos)}),o=!1,r=l.length;r--;)if(r>0){var h=l[r-1],f=l[r];h.pos+h.size>f.pos&&(h.size+=f.size,h.targets=h.targets.concat(f.targets),h.pos+h.size>s&&(h.pos=s-h.size),l.splice(r,1),o=!0)}r=0,l.forEach(function(t){var n=a+e/2;t.targets.forEach(function(){i[r].y=t.pos+n,n+=e,r++})})}var ci=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=t.yGap,i=void 0===n?8:n;this.xGap=void 0===e?1:e,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=i;a+=1)e[a]||(e[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[n][a]=!0,e[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function ui(t,e,n,i){var r=t.getCanvasBBox(),o=r.width,a=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=a+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=a+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=a+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=a+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*a+2;break;case 6:s.y+=2*a+2;break;case 7:s.x+=o+1,s.textAlign="left";break;case 8:s.x-=o+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}var li=E.c.dot;function hi(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function fi(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function pi(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[fi(e[0],n,e[0]),fi(e[1],n,e[0]),fi(e[2],n,e[0]),fi(e[3],n,e[0])]:e}function di(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach(function(t){n.push(li([t.x,t.y],e))}),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function gi(t,e){if(!t.rotation&&!e.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(t,e);for(var n=pi(t),i=pi(e),r=Object(l.g)(hi(n),hi(i)),o=0;o<r.length;o++){var a=r[o];if(s=di(n,a),c=di(i,a),!(s.max>c.min&&s.min<c.max))return!1}var s,c;return!0}var vi,yi={"#5B8FF9":!0};function mi(t,e,n){return t.some(function(t){return n(t,e)})}function bi(t,e){return mi(t,e,function(t,e){var n,i,r,o=an(t),a=an(e);return n=o.getCanvasBBox(),i=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(n.x+n.width+r,i.x+i.width+r)-Math.max(n.x-r,i.x-r))*Math.max(0,Math.min(n.y+n.height+r,i.y+i.height+r)-Math.max(n.y-r,i.y-r))>0})}function xi(t,e,n){return t.some(function(t){return n(t,e)})}function Oi(t,e){return xi(t,e,function(t,e){var n,i,r,o=an(t),a=an(e);return n=o.getCanvasBBox(),i=a.getCanvasBBox(),void 0===(r=2)&&(r=0),Math.max(0,Math.min(n.x+n.width+r,i.x+i.width+r)-Math.max(n.x-r,i.x-r))*Math.max(0,Math.min(n.y+n.height+r,i.y+i.height+r)-Math.max(n.y-r,i.y-r))>0})}var ji=Object(h.X)(function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=(vi||(vi=document.createElement("canvas").getContext("2d")),vi);return s.font=[o,a,r,n+"px",i].join(" "),s.measureText(Object(h.O)(t)?t:"").width},function(t,e){return void 0===e&&(e={}),Object(l.g)([t],Object(h.rb)(e)).join("")});function wi(t,e,n,i,r){var o,a,s=n.start,c=n.end,u=n.getWidth(),l=n.getHeight();"y"===r?(o=s.x+u/2,a=i.y<s.y?i.y:s.y):"x"===r?(o=i.x>s.x?i.x:s.x,a=s.y+l/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+c.x)/2,a=(s.y+c.y)/2));var h=function(t,e,n){var i,r=e[0],o=e[1];return t.applyToMatrix([r,o,1]),"x"===n?(t.setMatrix(E.a.transform(t.getMatrix(),[["t",-r,-o],["s",.01,1],["t",r,o]])),i=E.a.transform(t.getMatrix(),[["t",-r,-o],["s",100,1],["t",r,o]])):"y"===n?(t.setMatrix(E.a.transform(t.getMatrix(),[["t",-r,-o],["s",1,.01],["t",r,o]])),i=E.a.transform(t.getMatrix(),[["t",-r,-o],["s",1,100],["t",r,o]])):"xy"===n&&(t.setMatrix(E.a.transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])),i=E.a.transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])),i}(t,[o,a],r);t.animate({matrix:h},e)}function Ci(t,e){var n,i=Object(jn.getArcParams)(t,e),r=i.startAngle,o=i.endAngle;return!Object(h.L)(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(h.L)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(r=(n=[o,r])[0],o=n[1]),Object(h.L)(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(h.L)(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function Mi(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Si(t){var e,n,i,r=t.filter(function(t){return"A"===t[0]||"a"===t[0]}),o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),c=t.indexOf(a),u=Mi(t[s-1]),l=Mi(t[c-1]),f=Ci(u,o),p=f.startAngle,d=f.endAngle,g=Ci(l,a),v=g.startAngle,y=g.endAngle;Object(h.L)(p,v)&&Object(h.L)(d,y)?(n=p,i=d):(n=Math.min(p,v),i=Math.max(d,y));var m=o[1],b=r[r.length-1][1];return m<b?(m=(e=[b,m])[0],b=e[1]):m===b&&(b=0),{startAngle:n,endAngle:i,radius:m,innerRadius:b}}function ki(t,e,n){if(t.isGroup())Object(h.j)(t.getChildren(),function(t){ki(t,e,n)});else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,o=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,o,1]),"zoomIn"===n){var a=E.a.transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]]);t.setMatrix(a),t.animate({matrix:E.a.transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])},e)}else t.animate({matrix:E.a.transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])},Object(l.a)(Object(l.a)({},e),{callback:function(){t.remove(!0)}}))}}function Ai(t){return[r.TOP,r.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.TOP?"bottom":"top"}}:[r.LEFT,r.RIGHT].includes(t)?{offsetX:t===r.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function Ii(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,i=-1*Math.PI/2+n*e,r=.5/(1+1/Math.sin(n/2)),o=Ii({x:.5,y:.5},.5-r,i),a=5*Math.PI/4,s=1*Math.PI/4;return{start:Ii(o,r,a),end:Ii(o,r,s)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.type,r=n.fields[0];if(!r)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,r),a=o.length,s=[];return o.forEach(function(n,c){var u=[{field:r,value:n,values:o}],l=Object(h.l)(t,e.getFacetDataFilter(u)),f={type:i,data:l,region:e.getRegion(a,c),columnValue:n,columnField:r,columnIndex:c,columnValuesLength:a,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};s.push(f)}),s},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e){var n=e.columnValue,i=e.view,o=Object(h.s)(t.cfg.title,"formatter"),a=Object(h.h)({position:["50%","0%"],content:o?o(n):n},Ai(r.TOP),t.cfg.title);i.annotation().text(a)})},e}(xt),Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.cols,i=this.cfg.fields[0];if(!i)throw new Error("No `fields` specified!");var r=this.getFieldValues(t,i),o=r.length,a=this.getPageCount(o,n=n||o),s=[];return r.forEach(function(c,u){var l=e.getRowCol(u,n),f=l.row,p=l.col,d=[{field:i,value:c,values:r}],g=Object(h.l)(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(a,n,p,f),columnValue:c,rowValue:c,columnField:i,rowField:null,columnIndex:p,rowIndex:f,columnValuesLength:n,rowValuesLength:a,total:o};s.push(v)}),s},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?Object(l.a)(Object(l.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e){var n=e.columnValue,i=e.view,o=Object(h.s)(t.cfg.title,"formatter"),a=Object(h.h)({position:["50%","0%"],content:o?o(n):n},Ai(r.TOP),t.cfg.title);i.annotation().text(a)})},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(xt),Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(l.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(l.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,o=r,a=[],s=0;s<o;s++)for(var c=n[s],u=0;u<r;u++){var l=n[u],h={type:i,data:t,region:this.getRegion(r,o,s,u),columnValue:c,rowValue:l,columnField:c,rowField:l,columnIndex:s,rowIndex:u,columnValuesLength:o,rowValuesLength:r};a.push(h)}return a},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l.a)(Object(l.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e,n){var i=e.columnIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,c=e.view;if(0===e.rowIndex){var u=Object(h.s)(t.cfg.columnTitle,"formatter"),l=Object(h.h)({position:["50%","0%"],content:u?u(a):a},Ai(r.TOP),t.cfg.columnTitle);c.annotation().text(l)}i===o-1&&(u=Object(h.s)(t.cfg.rowTitle,"formatter"),l=Object(h.h)({position:["100%","50%"],content:u?u(s):s},Ai(r.RIGHT),t.cfg.rowTitle),c.annotation().text(l))})},e}(xt),Fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,r=this.cfg.fields[0],o=[],a=1,s=1,c=[""],u=[""];return this.cfg.transpose?(c=this.getFieldValues(t,e=r).slice(0,2),a=c.length):(u=this.getFieldValues(t,n=r).slice(0,2),s=u.length),c.forEach(function(r,l){u.forEach(function(f,p){var d=[{field:e,value:r,values:c},{field:n,value:f,values:u}],g=Object(h.l)(t,i.getFacetDataFilter(d)),v={type:i.cfg.type,data:g,region:i.getRegion(s,a,l,p),columnValue:r,rowValue:f,columnField:e,rowField:n,columnIndex:l,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(v)})}),o},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?Object(l.a)(Object(l.a)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e,n){var i=e.columnValue,o=e.rowValue,a=e.view,s=Object(h.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=Object(h.h)({position:["50%","0%"],content:s?s(i):i},Ai(r.TOP),t.cfg.title);a.annotation().text(c)}else c=Object(h.h)({position:["100%","50%"],content:s?s(o):o},Ai(r.RIGHT),t.cfg.title),a.annotation().text(c)})},e}(xt),Ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(l.a)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(l.a)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=n[0],r=n[1],o=[],a=1,s=1,c=[""],u=[""];return i&&(c=this.getFieldValues(t,i),a=c.length),r&&(u=this.getFieldValues(t,r),s=u.length),c.forEach(function(n,l){u.forEach(function(f,p){var d=[{field:i,value:n,values:c},{field:r,value:f,values:u}],g=Object(h.l)(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(s,a,l,p),columnValue:n,rowValue:f,columnField:i,rowField:r,columnIndex:l,rowIndex:p,columnValuesLength:a,rowValuesLength:s};o.push(v)})}),o},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e,n){var i=e.columnIndex,o=e.columnValuesLength,a=e.columnValue,s=e.rowValue,c=e.view;if(0===e.rowIndex){var u=Object(h.s)(t.cfg.columnTitle,"formatter"),l=Object(h.h)({position:["50%","0%"],content:u?u(a):a},Ai(r.TOP),t.cfg.columnTitle);c.annotation().text(l)}i===o-1&&(u=Object(h.s)(t.cfg.rowTitle,"formatter"),l=Object(h.h)({position:["100%","50%"],content:u?u(s):s},Ai(r.RIGHT),t.cfg.rowTitle),c.annotation().text(l))})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?Object(l.a)(Object(l.a)({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?Object(l.a)(Object(l.a)({},n),{title:null}):n},e}(xt),Pi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(l.d)(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(h.h)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach(function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)})},e.prototype.getRegion=function(t,e,n,i){var r=1/e,o=1/t,a={x:r*n,y:o*i};return{start:a,end:{x:a.x+r,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e=this,n=[],i=0;t.forEach(function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=i,i++)}),n.forEach(function(t){t.columnValuesLength=n.length});for(var r=this.cfg.fields.length-1;r>=0;r--)for(var o=0,a=this.getFacetsByLevel(t,r);o<a.length;o++){var s=a[o];this.isLeaf(s)||(s.originColIndex=s.columnIndex,s.columnIndex=this.getRegionIndex(s.children),s.columnValuesLength=n.length)}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(t){t.rowIndex===e&&n.push(t)}),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields;if(!(r.length<e)){var o=[],a=r[e-1],s=this.getFieldValues(t,a);return s.forEach(function(r,c){var u=t.filter(i.getFacetDataFilter([{field:a,value:r,values:s}]));if(u.length){var l={type:i.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:a,rowField:"",columnIndex:c,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(u,e+1,n)};o.push(l),n.push(l)}}),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(h.j)(this.facets,function(e){var n=e.columnValue,i=e.view,o=Object(h.s)(t.cfg.title,"formatter"),a=Object(h.h)({position:["50%","0%"],content:o?o(n):n},Ai(r.TOP),t.cfg.title);i.annotation().text(a)})},e.prototype.drawLines=function(t){var e=this;t.forEach(function(t){e.isLeaf(t)||e.addFacetLines(t,t.children)})},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view.coordinateBBox,r={x:i.x+i.width/2,y:i.y+i.height};e.forEach(function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:r.x,y:r.y+(i.y-r.y)/2};n.drawLine([r,o,{x:i.x,y:o.y},i])})},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(h.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?Object(l.a)(Object(l.a)({},n),{title:null,label:null}):n},e}(xt);function Di(t,e){var n,i,r;switch(t){case"start":return 0;case"end":return 1;case"median":n=function(t){var e=Object(l.g)(t);e.sort(function(t,e){return t-e});var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}(e.isCategory?e.values.map(function(t,e){return e}):e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(i=e.values,r=Object(h.cb)(i,function(t,e){return t+(isNaN(e)||!Object(h.K)(e)?0:e)},0),0===i.length?0:r/i.length);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var zi=["regionFilter","shape"],Ri=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(i.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(i.BG).addGroup(),n.option=[],n}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender(function(){var e=new Map;Object(h.j)(t.option,function(n){if(Object(h.z)(zi,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}}),t.cache=t.syncCache(e)});var e=new Map;Object(h.j)(this.option,function(n){if(!Object(h.z)(zi,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}}),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(e){t.push(e)}),t},e.prototype.clearComponents=function(){this.getComponents().forEach(function(t){t.component.destroy()}),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach(function(e){e.animateOption&&e.once(s.AFTER_DRAW_ANIMATE,function(){t()})}):this.view.getRootView().once(a.AFTER_RENDER,function(){t()})},e.prototype.createAnnotation=function(t){var e=t.type,n=G.Annotation[Object(h.qb)(e)];if(n){var a=this.getAnnotationTheme(e),s=this.getAnnotationCfg(e,t,a);return{component:new n(s),layer:this.isTop(s)?i.FORE:i.BG,direction:r.NONE,type:o.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(l.a)({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(l.a)({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(l.a)({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(l.a)({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(l.a)({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(l.a)({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(l.a)({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(l.a)({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(l.a)({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(l.a)({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),i=Object(h.H)(t)?t.call(null,e,n):t,r=0,o=0;if(Object(h.B)(i)){var a=i[0],s=i[1];if(Object(h.O)(a)&&-1!==a.indexOf("%")&&!isNaN(a.slice(0,-1)))return this.parsePercentPosition(i);r=Di(a,e),o=Di(s,Object.values(n)[0])}else if(!Object(h.I)(i))for(var c=0,u=Object(h.R)(i);c<u.length;c++){var l=u[c],f=i[l];l===e.field&&(r=Di(f,e)),n[l]&&(o=Di(f,n[l]))}return this.view.getCoordinate().convert({x:r,y:o})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],s=r.field,c=this.view.getData(),u=Object(h.B)(t)?t[0]:t[s],l=Object(h.B)(e)?e[0]:e[s],f=[];return Object(h.j)(c,function(t,e){if(t[s]===u&&(n=e),e>=n){var r=i.parsePosition([t[s],t[a.field]]);r&&f.push(r)}if(t[s]===l)return!1}),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a=Math.min(r.x,o.x),s=Math.min(r.y,o.y);return{x:i.getWidth()*e+a,y:i.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(h.I)(e))return null;if("arc"===t){var s=e.end,c=this.parsePosition(k=e.start),u=this.parsePosition(s),f=st(r,c),p=st(r,u);f>p&&(p=2*Math.PI+p),a={center:r.getCenter(),radius:ot(r,c),startAngle:f,endAngle:p}}else if("image"===t)s=e.end,a={start:this.parsePosition(k=e.start),end:this.parsePosition(s),src:e.src};else if("line"===t)s=e.end,a={start:this.parsePosition(k=e.start),end:this.parsePosition(s),text:Object(h.s)(e,"text",null)};else if("region"===t)s=e.end,a={start:this.parsePosition(k=e.start),end:this.parsePosition(s)};else if("text"===t){var d=this.view.getData(),g=e,v=g.position,y=g.content,m=Object(l.f)(g,["position","content"]),b=y;Object(h.H)(y)&&(b=y(d)),a=Object(l.a)(Object(l.a)(Object(l.a)({},this.parsePosition(v)),m),{content:b})}else if("dataMarker"===t){v=e.position;var x=e.point,O=e.line,j=e.text,w=e.autoAdjust,C=e.direction;a=Object(l.a)(Object(l.a)({},this.parsePosition(v)),{coordinateBBox:this.getCoordinateBBox(),point:x,line:O,text:j,autoAdjust:w,direction:C})}else if("dataRegion"===t){var M=e.region,S=(j=e.text,e.lineLength);a={points:this.getRegionPoints(k=e.start,s=e.end),region:M,text:j,lineLength:S}}else if("regionFilter"===t){var k=e.start,A=(s=e.end,e.apply),I=e.color,T=this.view.geometries,B=[],L=function t(e){e&&(e.isGroup()?e.getChildren().forEach(function(e){return t(e)}):B.push(e))};Object(h.j)(T,function(t){A?Object(h.f)(A,t.type)&&Object(h.j)(t.elements,function(t){L(t.shape)}):Object(h.j)(t.elements,function(t){L(t.shape)})}),a={color:I,shapes:B,start:this.parsePosition(k),end:this.parsePosition(s)}}else if("shape"===t){var F=e,E=F.render,P=Object(l.f)(F,["render"]);a=Object(l.a)(Object(l.a)({},P),{render:function(t){if(Object(h.H)(e.render))return E(t,i.view,{parsePosition:i.parsePosition.bind(i)})}})}else if("html"===t){var D=e,z=D.html;v=D.position,P=Object(l.f)(D,["html","position"]),a=Object(l.a)(Object(l.a)(Object(l.a)({},P),this.parsePosition(v)),{parent:o.get("el").parentNode,html:function(t){return Object(h.H)(z)?z(t,i.view):z}})}var R=Object(h.h)({},n,Object(l.a)(Object(l.a)({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(R.container=this.getComponentContainer(R)),R.animate=this.view.getOptions().animate&&R.animate&&Object(h.s)(e,"animate",R.animate),R.animateOption=Object(h.h)({},ze,R.animateOption,e.animateOption),R},e.prototype.isTop=function(t){return Object(h.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(h.s)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);et(r,["container"]),e.component.update(r),Object(h.z)(zi,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(h.z)(zi,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach(function(t,e){n.set(e,t)}),n.forEach(function(t,i){Object(h.m)(e.option,function(t){return i===e.getCacheKey(t)})||(t.component.destroy(),n.delete(i))}),n},e.prototype.getCacheKey=function(t){return t},e}(Le);function _i(t,e){return Object(h.s)(t,["components","axis",e,"grid"],{})}function Yi(t,e,n,i){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce(function(e,o,a){var s=o.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var c=(e.value+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return o},o[0]),r}function Gi(t,e,n,i,r){var o=e.values.length,a=[],s=n.getTicks();return s.reduce(function(e,n){var s=n.value,c=((e?e.value:n.value)+s)/2;return a.push("x"===r?{points:[t.convert({x:i?s:c,y:0}),t.convert({x:i?s:c,y:1})]}:{points:Object(h.U)(Array(o+1),function(e,n){return t.convert({x:n/o,y:i?s:c})})}),n},s[0]),a}function Ni(t,e){var n=Object(h.s)(e,"grid");if(null===n)return!1;var i=Object(h.s)(t,"grid");return!(void 0===n&&null===i)}var Xi=["container"],Vi=Object(l.a)(Object(l.a)({},ze),{appear:null}),Hi=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.BG).addGroup(),n.axisContainer=n.view.getLayer(i.BG).addGroup(),n}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(h.j)(this.getComponents(),function(n){var i,r=n.component,a=n.direction,s=n.type,c=n.extra,u=c.dim,l=c.scale,h=c.alignTick;s===o.AXIS?e.isPolar?"x"===u?i=e.isTransposed?ft(e,a):vt(e):"y"===u&&(i=e.isTransposed?vt(e):ft(e,a)):i=ft(e,a):s===o.GRID&&(i=e.isPolar?{items:e.isTransposed?"x"===u?Gi(e,t.view.getYScales()[0],l,h,u):Yi(e,l,u,h):"x"===u?Yi(e,l,u,h):Gi(e,t.view.getXScale(),l,h,u),center:t.view.getCoordinate().getCenter()}:{items:Yi(e,l,u,h)}),r.update(i)})},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach(function(n,i){t.has(i)?e.set(i,n):n.component.destroy()}),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.axisContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.axisContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(e){t.push(e)}),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=yt(this.option,e.field);if(!1!==n){var o=mt(n,r.BOTTOM),a=i.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),u=this.getId("grid",e.field);if(s.isRect)(l=this.cache.get(c))?(et(p=this.getLineAxisCfg(e,n,o),Xi),l.component.update(p),t.set(c,l)):(l=this.createLineAxis(e,n,a,o,"x"),this.cache.set(c,l),t.set(c,l)),(f=this.cache.get(u))?(et(p=this.getLineGridCfg(e,n,o,"x"),Xi),f.component.update(p),t.set(u,f)):(f=this.createLineGrid(e,n,a,o,"x"))&&(this.cache.set(u,f),t.set(u,f));else if(s.isPolar){var l,f;if(l=this.cache.get(c))et(p=s.isTransposed?this.getLineAxisCfg(e,n,r.RADIUS):this.getCircleAxisCfg(e,n,o),Xi),l.component.update(p),t.set(c,l);else{if(s.isTransposed){if(Object(h.Q)(n))return;l=this.createLineAxis(e,n,a,r.RADIUS,"x")}else l=this.createCircleAxis(e,n,a,o,"x");this.cache.set(c,l),t.set(c,l)}if(f=this.cache.get(u)){var p;et(p=s.isTransposed?this.getCircleGridCfg(e,n,r.RADIUS,"x"):this.getLineGridCfg(e,n,r.CIRCLE,"x"),Xi),f.component.update(p),t.set(u,f)}else{if(s.isTransposed){if(Object(h.Q)(n))return;f=this.createCircleGrid(e,n,a,r.RADIUS,"x")}else f=this.createLineGrid(e,n,a,r.CIRCLE,"x");f&&(this.cache.set(u,f),t.set(u,f))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(h.j)(n,function(n,o){if(n&&!n.isIdentity){var a=n.field,s=yt(e.option,a);if(!1!==s){var c=i.BG,u=e.getId("axis",a),l=e.getId("grid",a),f=e.view.getCoordinate();if(f.isRect){var p=mt(s,0===o?r.LEFT:r.RIGHT);(d=e.cache.get(u))?(et(v=e.getLineAxisCfg(n,s,p),Xi),d.component.update(v),t.set(u,d)):(d=e.createLineAxis(n,s,c,p,"y"),e.cache.set(u,d),t.set(u,d)),(g=e.cache.get(l))?(et(v=e.getLineGridCfg(n,s,p,"y"),Xi),g.component.update(v),t.set(l,g)):(g=e.createLineGrid(n,s,c,p,"y"))&&(e.cache.set(l,g),t.set(l,g))}else if(f.isPolar){var d,g;if(d=e.cache.get(u))et(v=f.isTransposed?e.getCircleAxisCfg(n,s,r.CIRCLE):e.getLineAxisCfg(n,s,r.RADIUS),Xi),d.component.update(v),t.set(u,d);else{if(f.isTransposed){if(Object(h.Q)(s))return;d=e.createCircleAxis(n,s,c,r.CIRCLE,"y")}else d=e.createLineAxis(n,s,c,r.RADIUS,"y");e.cache.set(u,d),t.set(u,d)}if(g=e.cache.get(l)){var v;et(v=f.isTransposed?e.getLineGridCfg(n,s,r.CIRCLE,"y"):e.getCircleGridCfg(n,s,r.RADIUS,"y"),Xi),g.component.update(v),t.set(l,g)}else{if(f.isTransposed){if(Object(h.Q)(s))return;g=e.createLineGrid(n,s,c,r.CIRCLE,"y")}else g=e.createCircleGrid(n,s,c,r.RADIUS,"y");g&&(e.cache.set(l,g),t.set(l,g))}}}}})},e.prototype.createLineAxis=function(t,e,n,i,a){var s={component:new N(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===r.RADIUS?r.NONE:i,type:o.AXIS,extra:{dim:a,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,i,a){var s=this.getLineGridCfg(t,e,i,a);if(s){var c={component:new V(s),layer:n,direction:r.NONE,type:o.GRID,extra:{dim:a,scale:t,alignTick:Object(h.s)(s,"alignTick",!0)}};return c.component.init(),c}},e.prototype.createCircleAxis=function(t,e,n,i,r){var a={component:new X(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:o.AXIS,extra:{dim:r,scale:t}};return a.component.set("field",t.field),a.component.init(),a},e.prototype.createCircleGrid=function(t,e,n,i,a){var s=this.getCircleGridCfg(t,e,i,a);if(s){var c={component:new H(s),layer:n,direction:r.NONE,type:o.GRID,extra:{dim:a,scale:t,alignTick:Object(h.s)(s,"alignTick",!0)}};return c.component.init(),c}},e.prototype.getLineAxisCfg=function(t,e,n){var i=this.axisContainer,r=this.view.getCoordinate(),o=ft(r,n),a=bt(t,e),s=gt(this.view.getTheme(),n),c=Object(h.s)(e,["title"])?Object(h.h)({title:{style:{text:a}}},{title:Object(h.s)(gt(this.view.getTheme(),"common"),"title")},e):e,u=Object(h.h)(Object(l.a)(Object(l.a)({container:i},o),{ticks:t.getTicks().map(function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}),verticalFactor:r.isPolar?-1*dt(o,r.getCenter()):dt(o,r.getCenter()),theme:s}),s,c),f=this.getAnimateCfg(u),p=f.animate;u.animateOption=f.animateOption,u.animate=p;var d=pt(o),g=Object(h.s)(u,"verticalLimitLength",d?1/3:.5);if(g<=1){var v=this.view.getCanvas().get("width"),y=this.view.getCanvas().get("height");u.verticalLimitLength=g*(d?v:y)}return u},e.prototype.getLineGridCfg=function(t,e,n,i){if(Ni(gt(this.view.getTheme(),n),e)){var r=_i(this.view.getTheme(),n),o=Object(h.h)({container:this.gridContainer},r,Object(h.s)(e,"grid"),this.getAnimateCfg(e));return o.items=Yi(this.view.getCoordinate(),t,i,Object(h.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=this.axisContainer,o=this.view.getCoordinate(),a=t.getTicks().map(function(t){return{id:""+t.tickValue,name:t.text,value:t.value}});t.isCategory||Math.abs(o.endAngle-o.startAngle)!==2*Math.PI||a.pop();var s=bt(t,e),c=gt(this.view.getTheme(),r.CIRCLE),u=Object(h.s)(e,["title"])?Object(h.h)({title:{style:{text:s}}},{title:Object(h.s)(gt(this.view.getTheme(),"common"),"title")},e):e,f=Object(h.h)(Object(l.a)(Object(l.a)({container:i},vt(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:c}),c,u),p=this.getAnimateCfg(f),d=p.animateOption;return f.animate=p.animate,f.animateOption=d,f},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Ni(gt(this.view.getTheme(),n),e)){var o=_i(this.view.getTheme(),r.RADIUS),a=Object(h.h)({container:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,Object(h.s)(e,"grid"),this.getAnimateCfg(e)),s=Object(h.s)(a,"alignTick",!0),c="x"===i?this.view.getYScales()[0]:this.view.getXScale();return a.items=Gi(this.view.getCoordinate(),c,t,s,i),a}},e.prototype.getId=function(t,e){return t+"-"+e+"-"+this.view.getCoordinate().type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(h.s)(t,"animate"),animateOption:t&&t.animateOption?Object(h.h)({},Vi,t.animateOption):Vi}},e}(Le);function Wi(t,e,n){return n===r.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.TOP_LEFT||n===r.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.TOP_RIGHT||n===r.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.BOTTOM_LEFT||n===r.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.BOTTOM_RIGHT||n===r.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function $i(t,e){return Object(h.C)(t)?!1!==t&&{}:Object(h.s)(t,[e],t)}function qi(t){return Object(h.s)(t,"position",r.BOTTOM)}var Ui=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(h.j)(this.components,function(e){var n=e.component,i=e.direction,r=vn(i),o=t.getCategoryLegendSizeCfg(r),a=n.get("maxWidth"),s=n.get("maxHeight");n.update({maxWidth:Math.min(o.maxWidth,a||0),maxHeight:Math.min(o.maxHeight,s||0)});var c=n.get("padding"),u=n.getLayoutBBox(),l=new it(u.x,u.y,u.width,u.height).expand(c),h=Wi(t.view.viewBBox,l,i),f=h[0],p=h[1],d=Wi(t.layoutBBox,l,i),g=d[0],v=d[1],y=0,m=0;i.startsWith("top")||i.startsWith("bottom")?(y=f,m=v):(y=g,m=p),n.setLocation({x:y+c[3],y:m+c[0]}),t.layoutBBox=t.layoutBBox.cut(l,i)})},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(h.s)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var a=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);et(a,["container"]),r.component.update(a),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var c=i.FORE,u=qi(this.option);this.components.push({id:n,component:s,layer:c,direction:u,type:o.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends(function(n,i,r){var o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,c=$i(t.option,r.field);!1!==c&&(Object(h.s)(c,"custom")?s=t.getCategoryCfg(n,i,r,c,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,c):r.isCategory&&(s=t.getCategoryCfg(n,i,r,c))),s&&(et(s,["container"]),a.direction=qi(c),a.component.update(s),e[o]=!0)}else{var u=t.createFieldLegend(n,i,r);u&&(u.component.init(),t.components.push(u),e[o]=!0)}});var l=[];Object(h.j)(this.getComponents(),function(t){e[t.id]?l.push(t):t.component.destroy()}),this.components=l},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(h.j)(t.views,function(t){n=n.concat(e.getGeometries(t))}),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(h.j)(e,function(e){var i=e.getGroupAttributes();Object(h.j)(i,function(i){var r=i.getScale(i.type);r&&"identity"!==r.type&&!n[r.field]&&(t(e,i,r),n[r.field]=!0)})})}},e.prototype.createFieldLegend=function(t,e,n){var r,a=$i(this.option,n.field),s=i.FORE,c=qi(a);if(!1!==a&&(Object(h.s)(a,"custom")?r=this.createCustomLegend(t,e,n,a):n.isLinear?r=this.createContinuousLegend(t,e,n,a):n.isCategory&&(r=this.createCategoryLegend(t,e,n,a))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:c,type:o.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new W(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,i);return new $(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new W(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),o=Object(h.m)(r,function(t){return 0===t.value}),a=Object(h.m)(r,function(t){return 1===t.value}),s=r.map(function(t){var i=t.value,r=t.tickValue,o=e.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}});o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort(function(t,e){return t.value-e.value});var c={min:Object(h.y)(s).value,max:Object(h.S)(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=s.map(function(t){return t.attrValue}));var u=this.container,l=vn(qi(i)),f=Object(h.s)(i,"title");return f&&(f=Object(h.h)({text:lt(n)},f)),c.container=u,c.layout=l,c.title=f,c.animateOption=ze,this.mergeLegendCfg(c,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,o){var a=this.container,s=Object(h.s)(i,"position",r.BOTTOM),c=Object(h.s)(this.view.getTheme(),["components","legend",s,"marker"]),u=Object(h.s)(i,"marker"),l=vn(s),f=o?function(t,e,n){return n.map(function(n){var i=Object(h.h)({},t,e,n.marker);return gn(i),n.marker=i,n})}(c,u,i.items):yn(this.view,t,e,c,u),p=Object(h.s)(i,"title");p&&(p=Object(h.h)({text:n?lt(n):""},p));var d=this.getCategoryLegendSizeCfg(l);d.container=a,d.layout=l,d.items=f,d.title=p,d.animateOption=ze;var g=this.mergeLegendCfg(d,i,s);g.reversed&&g.items.reverse();var v=Object(h.s)(g,"maxItemWidth");return v&&v<=1&&(g.maxItemWidth=this.view.viewBBox.width*v),g},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=Object(h.s)(this.view.getTheme(),["components","legend",i],{});return Object(h.h)({},r,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return Object(h.m)(this.components,function(e){return e.id===t})},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,n=e.width,i=e.height;return"vertical"===t?{maxWidth:.25*n,maxHeight:i}:{maxWidth:n,maxHeight:.25*i}},e}(Le),Zi=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h.ab,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],i=t[1];n.start=e,n.end=i,n.changeViewData(e,i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(h.kb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(h.I)(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(h.F)(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],o=n[3],a=this.slider.component.getLayoutBBox(),s=new it(a.x,a.y,Math.min(a.width,e),a.height).expand(n),c=this.getMinMaxText(this.start,this.end),u=c.minText,h=c.maxText,f=Wi(this.view.viewBBox,s,r.BOTTOM)[1],p=Wi(this.view.coordinateBBox,s,r.BOTTOM)[0];this.slider.component.update(Object(l.a)(Object(l.a)({},this.getSliderCfg()),{x:p+o,y:f+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,r.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new G.Slider(Object(l.a)({container:this.container},t));return e.init(),{component:e,layer:i.FORE,direction:r.BOTTOM,type:o.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=Object(l.a)(Object(l.a)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(h.M)(this.option)){var e=Object(l.a)({data:this.getData()},Object(h.s)(this.option,"trendCfg",{}));t=Object(h.h)({},t,this.getThemeOptions(),this.option),t=Object(l.a)(Object(l.a)({},t),{trendCfg:e})}return t.start=Object(h.c)(Math.min(Object(h.I)(t.start)?0:t.start,Object(h.I)(t.end)?1:t.end),0,1),t.end=Object(h.c)(Math.max(Object(h.I)(t.start)?0:t.start,Object(h.I)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,o=i.ticks;return t.reduce(function(t,n){return n[r]===o[0]&&t.push(n[e.field]),t},[])}return t.map(function(t){return t[e.field]||0})},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(h.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(h.sb)(n,i.field),o=Object(h.gb)(n);if(!i||!o)return{};var a=Object(h.gb)(r),s=Math.floor(t*(a-1)),c=Math.floor(e*(a-1)),u=Object(h.s)(r,[s]),l=Object(h.s)(r,[c]),f=this.getSliderCfg().formatter;return f&&(u=f(u,n[s],s),l=f(l,n[c],c)),{minText:u,maxText:l}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(h.sb)(n,i.field),o=Object(h.gb)(n);if(i&&o){var a=Object(h.gb)(r),s=Math.floor(t*(a-1)),c=Math.floor(e*(a-1));this.view.filter(i.field,function(t,e){var n=r.indexOf(t);return!(n>-1)||tt(n,s,c)}),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(Le),Ki=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h.ab,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(h.c)(e,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(h.kb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(a.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(l.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),o=new it(i.x,i.y,Math.min(i.width,e),i.height).expand(n),a=this.getScrollbarComponentCfg(),s=void 0,c=void 0;if(a.isHorizontal){var u=Wi(this.view.viewBBox,o,r.BOTTOM)[1];s=Wi(this.view.coordinateBBox,o,r.BOTTOM)[0],c=u}else s=(u=Wi(this.view.viewBBox,o,r.RIGHT)[1],Wi(this.view.viewBBox,o,r.RIGHT))[0],c=u;s+=n[3],c+=n[0],this.scrollbar.component.update(this.trackLen?Object(l.a)(Object(l.a)({},a),{x:s,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(l.a)(Object(l.a)({},a),{x:s,y:c})),this.view.viewBBox=this.view.viewBBox.cut(o,a.isHorizontal?r.BOTTOM:r.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(h.s)(t,["components","slider","common"],{})},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.thumbLen;this.trackLen=n.trackLen,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(h.c)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,i=t[0],r=t[1],o="vertical"!==this.getValidScrollbarCfg().type,a=Object(h.sb)(this.data,this.xScaleCfg.field),s=o?a:a.reverse();this.yScalesCfg.forEach(function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})}),this.view.filter(this.xScaleCfg.field,function(t){var e=s.indexOf(t);return!(e>-1)||tt(e,i,r)}),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new G.Scrollbar(Object(l.a)(Object(l.a)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:i.FORE,direction:t?r.BOTTOM:r.RIGHT,type:o.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(l.a)(Object(l.a)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(l.a)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg();return Math.floor(("vertical"!==e.type?t.width:t.height)/e.categorySize)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.view.getOptions().data,n=Object(h.sb)(e,t.field);return Object(h.gb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=(this.view.getXScale(),this.getValidScrollbarCfg()),r=i.padding,o=i.width,a=i.height,s="vertical"!==i.type,c=r[0],u=r[1],f=r[2],p=r[3],d=s?{x:e.minX+p,y:n.maxY-a-f}:{x:n.maxX-o-u,y:e.minY+c},g=this.getStep(),v=this.getCnt(),y=s?e.width-p-u:e.height-c-f,m=Math.max(y*Object(h.c)(g/v,0,1),20);return Object(l.a)(Object(l.a)({},this.getThemeOptions()),{x:d.x,y:d.y,size:s?a:o,isHorizontal:s,trackLen:y,thumbLen:m,thumbOffset:0})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0};return Object(h.M)(this.option)&&(t=Object(l.a)(Object(l.a)({},t),this.option)),Object(h.M)(this.option)&&this.option.padding||(t.padding=[0,0,0,0]),t},e}(Le),Ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,n=t.getTooltipItems({x:e.x,y:e.y});if(!Object(h.G)(n,this.items)&&(this.items=n,n.length)){var i=t.getXScale().field,r=n[0].data[i],o=[],a=t.geometries;if(Object(h.j)(a,function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy(function(t){return t.getData()[i]===r});o=o.concat(e)}}),o.length){var s=t.getCoordinate(),c=o[0].shape.getCanvasBBox(),u=o[0].shape.getCanvasBBox(),l=c;Object(h.j)(o,function(t){var e=t.shape.getCanvasBBox();s.isTransposed?(e.minY<c.minY&&(c=e),e.maxY>u.maxY&&(u=e)):(e.minX<c.minX&&(c=e),e.maxX>u.maxX&&(u=e)),l.x=Math.min(e.minX,l.minX),l.y=Math.min(e.minY,l.minY),l.width=Math.max(e.maxX,l.maxX)-l.x,l.height=Math.max(e.maxY,l.maxY)-l.y});var f=t.backgroundGroup,p=t.coordinateBBox,d=void 0;if(s.isRect){var g=t.getXScale().isLinear?0:.25,v=void 0,y=void 0,m=void 0,b=void 0;s.isTransposed?(v=p.minX,y=Math.min(u.minY,c.minY)-g*u.height,m=p.width,b=l.height+2*g*u.height):(v=Math.min(c.minX,u.minX)-g*c.width,y=Math.min(p.minY,c.minY),m=l.width+2*g*c.width,b=p.height),d=[["M",v,y],["L",v+m,y],["L",v+m,y+b],["L",v,y+b],["Z"]]}else{var x=Object(h.y)(o),O=Object(h.S)(o),j=J(x.getModel(),s).startAngle,w=J(O.getModel(),s).endAngle,C=s.getCenter(),M=s.getRadius();d=Z(C.x,C.y,M,j,w,s.innerRadius*M)}this.regionPath?(this.regionPath.attr("path",d),this.regionPath.show()):this.regionPath=f.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:d,fill:"#CCD6EC",opacity:.3}})}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(wt),Qi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(l.d)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var i=this.timeStamp,r=+new Date;if(r-i>Object(h.s)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Object(h.G)(o,a)||this.showTooltip(n,a),this.timeStamp=r,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event;e.isCursorEntered({x:n.clientX,y:n.clientY})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(wt),tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.showTooltip=function(t,e){var n=Kt(t);Object(h.j)(n,function(n){var i=Jt(t,n,e);n.showTooltip(i)})},e.prototype.hideTooltip=function(t){var e=Kt(t);Object(h.j)(e,function(t){t.hideTooltip()})},e}(Qi),er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(l.d)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var i=this.location,r={x:t.x,y:t.y};i&&Object(h.G)(i,r)||this.showTooltip(r),this.timeStamp=n,this.location=r}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(Object(l.a)({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t=this.context.view,e=t.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},i=t.getTheme(),r=Object(h.s)(i,["components","tooltip","domStyles"],{}),o=new q({parent:e.get("el").parentNode,region:n,visible:!1,crosshairs:null,domStyles:r});o.init(),o.setCapture(!1),this.tooltip=o},e}(wt),nr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(l.d)(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){this.clearViewState(this.context.view)},e.prototype.clearViewState=function(t){var e=this,n=Vt(t,this.stateName);Object(h.j)(n,function(t){e.setElementState(t,!1)})},e}(wt);function ir(t){return Object(h.s)(t.get("delegateObject"),"item")}var rr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(l.d)(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter(function(n){return e.hasState(t,n)}).length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),o=Xt(i);this.setElementsStateByItem(o,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=te(this.context.view,e),r=Ht(t,e);return!Object(h.I)(r)&&n.name===i.getText(r)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(h.j)(t,function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)})},e.prototype.setStateEnable=function(t){var e=Pt(this.context);if(e)zt(this.context)&&this.setStateByElement(e,t);else{var n=Dt(this.context);if(Rt(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&ir(o.fromShape)===ir(o.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=Pt(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(nr),or=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.active=function(){this.setState()},e}(rr),ar=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(l.d)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,i=t.shape.getCanvasBBox(),r=e.shape.getCanvasBBox();return n?[["M",i.minX,i.minY],["L",r.minX,r.maxY],["L",r.maxX,r.maxY],["L",i.maxX,i.minY],["Z"]]:[["M",i.maxX,i.minY],["L",r.minX,r.minY],["L",r.minX,r.maxY],["L",i.maxX,i.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,i=this.getColorScale(n,t);if(i){var r=Ht(t,i.field);if(!this.cache[r]){var o=function(t,e,n){return Xt(t).filter(function(t){return Ht(t,e)===n})}(n,i.field,r),a=this.linkGroup.addGroup();this.cache[r]=a;var s=o.length;Object(h.j)(o,function(t,n){n<s-1&&e.addLinkShape(a,t,o[n+1])})}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Ht(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({capture:!1}));var e=Pt(t);e&&this.linkByElement(e)},e.prototype.unlink=function(){var t=Pt(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(wt),sr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return Object(l.d)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(Yt(this.context))t=Gt(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)};t=Wt(this.context.view,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Xt(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,r=Kt(i),o=t.map(function(t){return t.getModel().data}),a=i.getXScale().field,s=i.getYScales()[0].field;Object(h.j)(r,function(t){var i=Xt(t),r=i.filter(function(t){var e=t.getModel().data;return Qt(o,e,a,s)});n.setElementsState(r,e,i)})},e.prototype.setSiblingsState=function(t){var e=this,n=Kt(this.context.view);Yt(this.context)&&Object(h.j)(n,function(n){var i=Xt(n),r=Nt(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)})},e.prototype.setElementsState=function(t,e,n){var i=this;Object(h.j)(n,function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)})},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Kt(e);Object(h.j)(n,function(e){t.clearViewState(e)})}else this.clearViewState(e)},e}(nr),cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.active=function(){this.setState()},e}(sr),ur=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.setStateEnable=function(t){var e=Pt(this.context);if(e){if(!zt(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=Pt(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(nr),lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.active=function(){this.setState()},e}(ur);function hr(t){var e=Xt(t);Object(h.j)(e,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}function fr(t,e,n){Object(h.j)(t,function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))})}var pr=u.INACTIVE,dr=u.ACTIVE,gr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=dr,e}return Object(l.d)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;this.setHighlightBy(t,function(t){return r.isMathItem(t,e,n)},i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(pr)&&t.setState(pr,!1),t.setState(dr,!0)):t.hasState(dr)||t.setState(pr,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)Object(h.j)(t,function(t){i.setElementHighlight(t,e)});else{var r=Vt(this.context.view,dr),o=!0;Object(h.j)(r,function(t){if(!e(t))return o=!1,!1}),o?this.clear():Object(h.j)(t,function(t){e(t)&&(t.hasState(dr)&&t.setState(dr,!1),t.setState(pr,!0))})}},e.prototype.setElementState=function(t,e){var n=Xt(this.context.view);this.setHighlightBy(n,function(e){return t===e},e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){hr(this.context.view)},e}(rr),vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),o=Ht(t,r.field),a=Xt(n),s=a.filter(function(t){return Ht(t,r.field)===o});this.setHighlightBy(a,function(t){return s.includes(t)},e)}},e}(gr),yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(pr)&&t.setState(pr,!1),t.setState(dr,!0)):(t.setState(pr,!0),t.hasState(dr)&&t.setState(dr,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=Ht(t,i.field),o=Xt(n),a=o.filter(function(t){return Ht(t,i.field)===r});this.setHighlightBy(o,function(t){return a.includes(t)},e)},e.prototype.toggle=function(){var t=Pt(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(gr),mr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.clearViewState=function(t){hr(t)},e.prototype.highlight=function(){this.setState()},e.prototype.setElementsState=function(t,e,n){fr(n,function(e){return t.indexOf(e)>=0},e)},e}(sr),br=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){fr(Xt(this.context.view),function(e){return t===e},e)},e.prototype.clear=function(){hr(this.context.view)},e}(ur),xr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l.d)(e,t),e.prototype.selected=function(){this.setState()},e}(sr),Or=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l.d)(e,t),e.prototype.selected=function(){this.setState()},e}(rr),jr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l.d)(e,t),e.prototype.selected=function(){this.setState()},e}(ur),wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(l.d)(e,t),e.prototype.getTriggerListInfo=function(){var t=Dt(this.context),e=null;return Rt(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=qt(this.context.view),n=[];return Object(h.j)(e,function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)}),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(h.j)(e,function(e){e.clearItemsState(t.stateName)})},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=te(this.context.view,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter(function(n){return e.hasState(t,n)}).length},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=te(this.context.view,i),o=Ht(e,i),a=r.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=Pt(this.context);if(n){var i=this.getAllowComponents();Object(h.j)(i,function(i){e.setStateByElement(i,n,t)})}else{var r=Dt(this.context);if(Rt(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(h.j)(r,function(r){r.name===e&&i.setItemState(t,r,n)})},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(wt),Cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l.d)(e,t),e.prototype.active=function(){this.setState()},e}(wr),Mr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(l.d)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,function(t){return t.name===e},n)},e.prototype.setItemState=function(t,e,n){t.getItems(),this.setHighlightBy(t,function(t){return t===e},n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)Object(h.j)(i,function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)});else{var r=t.getItemsByState("active"),o=!0;Object(h.j)(r,function(t){if(!e(t))return o=!1,!1}),o?this.clear():Object(h.j)(i,function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))})}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t,e,n=this.getTriggerListInfo();if(n)e=(t=n.list).getItems(),Object(h.j)(e,function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)});else{var i=this.getAllowComponents();Object(h.j)(i,function(t){t.clearItemsState("active"),t.clearItemsState("inactive")})}},e}(wr),Sr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l.d)(e,t),e.prototype.selected=function(){this.setState()},e}(wr),kr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(l.d)(e,t),e.prototype.unchecked=function(){this.setState()},e}(wr),Ar=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return Object(l.d)(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e=this.context.event;this.context.view.emit("mask:"+t,{target:this.maskShape,shape:this.maskShape,points:this.points,x:e.x,y:e.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(l.a)({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.points;Object(h.j)(r,function(t){t.x+=n,t.y+=i}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(wt),Ir=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(l.d)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(h.S)(this.points),n=0,i=0,r=0;if(t.length){var o=t[0];n=Ut(o,e)/2,i=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:i,y:r,r:n}},e}(Ar),Tr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(l.d)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(h.y)(t),end:Object(h.S)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(Ar);function Br(t){t.x=Object(h.c)(t.x,0,1),t.y=Object(h.c)(t.y,0,1)}var Lr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(l.d)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),o=r.invert(Object(h.y)(n)),a=r.invert(Object(h.S)(n));return this.inPlot&&(Br(o),Br(a)),"x"===i?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(Tr),Fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(h.j)(t,function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(Ar),Er=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return Bt(t,!1);var n=t[0],i=[];Object(h.j)(t,function(t){i.push(t.x),i.push(t.y)});var r=Tt(i,!0,null);return r.unshift(["M",n.x,n.y]),r}(this.points)},e}(Fr),Pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(wt),Dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(h.j)(t.views,function(t){i.filterView(t,e,n)})},e.prototype.filter=function(){var t=Dt(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(Rt(t)){if(i){var r=n.getItemsByState("unchecked"),o=te(e,i),a=r.map(function(t){return t.name});this.filterView(e,i,a.length?function(t){var e=o.getText(t);return!a.includes(e)}:null),e.render(!0)}}else if(_t(t)){var s=n.getValue(),c=s[0],u=s[1];this.filterView(e,i,function(t){return t>=c&&t<=u}),e.render(!0)}}},e}(wt);function zr(t,e,n,i){var r=Math.min(n[e],i[e]),o=Math.max(n[e],i[e]),a=t.range,s=a[0],c=a[1];if(r<s&&(r=s),o>c&&(o=c),r===c&&o===c)return null;var u=t.invert(r),l=t.invert(o);if(t.isCategory){var h=t.values.indexOf(u),f=t.values.indexOf(l),p=t.values.slice(h,f+1);return function(t){return p.includes(t)}}return function(t){return t>=u&&t<=l}}var Rr,_r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(l.d)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Yt(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context.view,r=i.getCoordinate(),o=r.invert(e),a=r.invert(t);if(this.hasDim("x")){var s=i.getXScale(),c=zr(s,"x",o,a);this.filterView(i,s.field,c)}if(this.hasDim("y")){var u=i.getYScales()[0];c=zr(u,"y",o,a),this.filterView(i,u.field,c)}this.reRender(i)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(wt),Yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.filterView=function(t,e,n){var i=Kt(t);Object(h.j)(i,function(t){t.filter(e,n)})},e.prototype.reRender=function(t){var e=Kt(t);Object(h.j)(e,function(t){t.render(!0)})},e}(_r),Gr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.d)(e,t),e.prototype.filter=function(){var t=Dt(this.context),e=this.context.view,n=Xt(e);if(Yt(this.context)){var i=Gt(this.context,10);i&&Object(h.j)(n,function(t){i.includes(t)?t.show():t.hide()})}else if(t){var r=t.component,o=r.get("field");if(Rt(t)){if(o){var a=r.getItemsByState("unchecked"),s=te(e,o),c=a.map(function(t){return t.name});Object(h.j)(n,function(t){var e=Ht(t,o),n=s.getText(e);c.indexOf(n)>=0?t.hide():t.show()})}}else if(_t(t)){var u=r.getValue(),l=u[0],f=u[1];Object(h.j)(n,function(t){var e=Ht(t,o);e>=l&&e<=f?t.show():t.hide()})}}},e.prototype.clear=function(){var t=Xt(this.context.view);Object(h.j)(t,function(t){t.show()})},e.prototype.reset=function(){this.clear()},e}(wt),Nr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(l.d)(e,t),e.prototype.filter=function(){Yt(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Gt(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map(function(t){return t.getModel().data}),o=Kt(t);Object(h.j)(o,function(t){var e=Xt(t);Object(h.j)(e,function(t){var e=t.getModel().data;Qt(r,e,n,i)?t.show():t.hide()})})}},e.prototype.filterByBBox=function(){var t=this,e=Kt(this.context.view);Object(h.j)(e,function(e){var n=Nt(t.context,e,10),i=Xt(e);n&&Object(h.j)(i,function(t){n.includes(t)?t.show():t.hide()})})},e.prototype.reset=function(){var t=Kt(this.context.view);Object(h.j)(t,function(t){var e=Xt(t);Object(h.j)(e,function(t){t.show()})})},e}(wt),Xr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return Object(l.d)(e,t),e.prototype.getButtonCfg=function(){return Object(h.h)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(l.a)({text:t.text},t.textStyle)}).getBBox(),i=xe(t.padding),r=e.addShape({type:"rect",name:"button-rect",attrs:Object(l.a)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});r.toBack(),e.on("mouseenter",function(){r.attr(t.activeStyle)}),e.on("mouseleave",function(){r.attr(t.style)}),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),i=E.a.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(i)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(wt),Vr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(l.d)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):Ut(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.event;this.context.view.emit("dragend",{target:t.target,x:t.x,y:t.y})}this.starting=!1,this.dragStart=!1},e}(wt),Hr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return Object(l.d)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(Ut(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,i=E.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(i),n.foregroundGroup.setMatrix(i),n.middleGroup.setMatrix(i)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(wt),Wr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(l.d)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(wt),$r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(l.d)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(h.j)(e,function(e){var n=t.getScale(e);t.startCache[e]={min:n.min,max:n.max,values:n.values}})},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,c=this.context.view,u=this.dims;Object(h.j)(u,function(e){t.translateDim(e,{x:-1*a,y:-1*s})}),c.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],o=r.min,a=r.max,s=n[t]*(a-o);this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),i.scale(e.field,{nice:!1,min:o+s,max:a+s})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Wr),qr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(l.d)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(h.j)(n,function(n){e.zoomDim(n,t)}),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],o=r.max-r.min,a=e.min,s=e.max,c=n*o,u=a-c,l=s+c,h=(l-u)/o;l>u&&h<100&&h>.01&&i.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(Wr);function Ur(t){return t.isInPlot()}function Zr(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Rr=se(On),fe[Object(h.T)("dark")]=he(Rr),d("canvas",jn),d("svg",wn),Te("Polygon",Un),Te("Interval",Vn),Te("Schema",Zn),Te("Path",Fn),Te("Point",qn),Te("Line",Hn),Te("Area",zn),Te("Edge",Rn),Te("Heatmap",_n),He("base",hn),He("interval",ii),He("pie",ai),He("polar",oi),We("overlap",function(t,e,n,i){var r=new ci;Object(h.j)(e,function(t){for(var e=t.find(function(t){return"text"===t.get("type")}),n=e.attr(),i=n.x,o=n.y,a=!1,s=0;s<=8;s++){var c=ui(e,i,o,s);if(r.hasGap(c)){r.fillGap(c),a=!0;break}}a||t.remove(!0)}),r.destroy()}),We("distribute",function(t,e,n,i){if(t.length&&e.length){var r=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),s=o.getCenter();if(r>0){var c=2*(a+r)+28,u={start:o.start,end:o.end},l=[[],[]];t.forEach(function(t){t&&("right"===t.textAlign?l[0].push(t):l[1].push(t))}),l.forEach(function(t,n){var i=c/14;t.length>i&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(i,t.length-i)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,i,r,o){var a,s=!0,c=i.start,u=i.end,l=Math.min(c.y,u.y),f=Math.abs(c.y-u.y),p=0,d=Number.MIN_VALUE,g=e.map(function(t){return t.y>p&&(p=t.y),t.y<d&&(d=t.y),{size:14,targets:[t.y-l]}});for(d-=l,p-l>f&&(f=p-l);s;)for(g.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),f-t.size)}),s=!1,a=g.length;a--;)if(a>0){var v=g[a-1],y=g[a];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>f&&(v.pos=f-v.size),g.splice(a,1),s=!0)}a=0,g.forEach(function(t){var n=l+7;t.targets.forEach(function(){e[a].y=t.pos+n,n+=14,a++})});for(var m={},b=0,x=t;b<x.length;b++){var O=x[b];m[O.get("id")]=O}e.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=o?r.x+i:r.x-i}var a=m[t.id];a.attr("x",t.x),a.attr("y",t.y);var s=Object(h.m)(a.getChildren(),function(t){return"text"===t.get("type")});s&&(s.attr("y",t.y),s.attr("x",t.x))})}(e,t,0,u,s,n)})}Object(h.j)(t,function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=U(s.x,s.y,a,n),r=U(s.x,s.y,a+e/2,n),o=t.x+Object(h.s)(t,"offsetX",0),c=t.y+Object(h.s)(t,"offsetY",0),u={x:o-4*Math.cos(n),y:c-4*Math.sin(n)};Object(h.M)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+i.x,i.y+" Q"+r.x,r.y+" "+u.x,u.y].join(",")}})}}),We("fixed-overlap",function(t,e,n,i){var r=new ci;Object(h.j)(e,function(t){(function(t,e,n){void 0===n&&(n=100);var i,r=t.attr(),o=r.x,a=r.y,s=t.getCanvasBBox(),c=Math.sqrt(s.width*s.width+s.height*s.height),u=1,l=0,h=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var f,p=!1,d=0,g={};Math.min(Math.abs(l),Math.abs(h))<c&&d<n;)if(h=~~(i=[(f=.1*(u+=-1))*Math.cos(f),f*Math.sin(f)])[1],((l=~~i[0])||h)&&!g[l+"-"+h]&&(t.attr({x:o+l,y:a+h}),l+h<0&&t.attr("textAlign","right"),d++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),p=!0,g[l+"-"+h]=!0;break}return p})(t.find(function(t){return"text"===t.get("type")}),r)||t.remove(!0)}),r.destroy()}),We("hide-overlap",function(t,e,n,i){for(var r=0;r<e.length;r++){var o=e[r];if(e[r].get("visible"))for(var a=r+1;a<e.length;a++){var s=e[a];o&&s&&o!==s&&s.get("visible")&&gi(sn(o,t[r],Object(h.s)(t[r],"background.padding")),sn(s,t[a],Object(h.s)(t[a],"background.padding")))&&e[a].set("visible",!1)}}}),We("limit-in-shape",function(t,e,n,i){Object(h.j)(e,function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)})}),We("limit-in-canvas",function(t,e,n,i){Object(h.j)(e,function(t){var e=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,u=a.maxX,l=a.maxY,h=a.x,f=a.y,p=h,d=f;(s<e||u<e)&&(p=e),(c<n||l<n)&&(d=n),s>r?p=r-a.width:u>r&&(p-=u-r),c>o?d=o-a.height:l>o&&(d-=l-o),p===h&&d===f||rn(t,p-h,d-f)})}),We("limit-in-plot",function(t,e,n,i,r){if(!(e.length<=0)){var o=(null==r?void 0:r.direction)||["top","right","bottom","left"],a=(null==r?void 0:r.action)||"translate",s=(null==r?void 0:r.margin)||0,c=e[0].get("coordinate");if(c){var u=function(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return it.fromRange(a-e,s-e,a+r+e,s+o+e)}(c,s),l=u.minX,f=u.minY,p=u.maxX,d=u.maxY;Object(h.j)(e,function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,s=e.maxY,c=e.x,u=e.y,g=e.width,v=e.height,y=c,m=u;if(o.indexOf("left")>=0&&(n<l||r<l)&&(y=l),o.indexOf("top")>=0&&(i<f||s<f)&&(m=f),o.indexOf("right")>=0&&(n>p?y=p-g:r>p&&(y-=r-p)),o.indexOf("bottom")>=0&&(i>d?m=d-v:s>d&&(m-=s-d)),y!==c||m!==u){var b=y-c;"translate"===a?rn(t,b,m-u):"ellipsis"===a?t.findAll(function(t){return"text"===t.get("type")}).forEach(function(t){var e=Object(h.bb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=function(t,e,n){var i,r=ji("...",n);i=Object(h.O)(t)?t:Object(h.nb)(t);var o,a,s=e,c=[];if(ji(t,n)<=e)return t;for(;o=i.substr(0,16),!((a=ji(o,n))+r>s&&a>s);)if(c.push(o),s-=a,!(i=i.substr(16)))return c.join("");for(;o=i.substr(0,1),!((a=ji(o,n))+r>s);)if(c.push(o),s-=a,!(i=i.substr(1)))return c.join("");return c.join("")+"..."}(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}):t.hide()}})}}}),We("pie-outer",function(t,e,n,i){var r=Object(h.l)(t,function(t){return!Object(h.I)(t)}),o=e[0]&&e[0].get("coordinate");if(o){for(var a=o.getCenter(),s=o.getRadius(),c={},u=0,l=e;u<l.length;u++){var f=l[u];c[f.get("id")]=f}var p=Object(h.s)(r[0],"labelHeight",14),d=Object(h.s)(r[0],"offset",0);if(!(d<=0)){var g=Object(h.v)(r,function(t){return t.x<a.x?"left":"right"}),v=o.start,y=o.end,m=Math.min(2*(s+d+p),o.getHeight()),b=m/2,x={minX:v.x,maxX:y.x,minY:a.y-b,maxY:a.y+b};Object(h.j)(g,function(t,e){var n=Math.floor(m/p);t.length>n&&(t.sort(function(t,e){return e.percent-t.percent}),Object(h.j)(t,function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)})),si(t,p,x)}),Object(h.j)(g,function(t,e){Object(h.j)(t,function(t){var n="right"===e,i=c[t.id].getChildByIndex(0);if(i){var r=s+d,u=t.y-a.y,l=Math.pow(r,2),f=Math.pow(u,2),p=Math.sqrt(l-f>0?l-f:0),g=Math.abs(Math.cos(t.angle)*r);t.x=n?a.x+Math.max(p,g):a.x-Math.max(p,g)}i&&(i.attr("y",t.y),i.attr("x",t.x)),function(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,o=t.offset,a=U(n.x,n.y,i,r),s=t.x+Object(h.s)(t,"offsetX",0)*(Math.cos(r)>0?1:-1),c=t.y+Object(h.s)(t,"offsetY",0)*(Math.sin(r)>0?1:-1),u={x:s-4*Math.cos(r),y:c-4*Math.sin(r)},l=t.labelLine.smooth,f=[],p=u.x-n.x,d=Math.atan((u.y-n.y)/p);if(p<0&&(d+=Math.PI),!1===l){Object(h.M)(t.labelLine)||(t.labelLine={});var g=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&u.y>a.y&&(g=1),r>=0&&r<Math.PI/2&&u.y>a.y&&(g=1),r>=Math.PI/2&&r<Math.PI&&a.y>u.y&&(g=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>u.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),y=U(n.x,n.y,i+v,r),m=U(n.x,n.y,i+o/2,d);f.push("M "+a.x+" "+a.y),f.push("L "+y.x+" "+y.y),f.push("A "+n.x+" "+n.y+" 0 0 "+g+" "+m.x+" "+m.y),f.push("L "+u.x+" "+u.y)}else{y=U(n.x,n.y,i+(o/2>4?4:Math.max(o/2-1,0)),r);var b=a.x<n.x?1:-1;f.push("M "+u.x+" "+u.y),Math.abs((a.y-n.y)/(a.x-n.x)-(u.y-n.y)/(u.x-n.x))>Math.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+4*b,u.y,2*y.x-a.x,2*y.y-a.y,a.x,a.y]),f.push("L "+a.x+" "+a.y)}t.labelLine.path=f.join(" ")}}(t,o)})})}}}),We("adjust-color",function(t,e,n){if(0!==n.length){var i=n[0].get("element").geometry.theme,r=i.labels||{},o=r.fillColorLight,a=r.fillColorDark;n.forEach(function(t,n){var r=e[n].find(function(t){return"text"===t.get("type")}),s=it.fromObject(t.getBBox()),c=it.fromObject(r.getCanvasBBox()),u=!s.contains(c),l=function(t){var e=C.a.toRGB(t).toUpperCase();if(yi[e])return yi[e];var n=C.a.rgb2arr(e);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));u?r.attr(i.overflowLabels.style):l?o&&r.attr("fill",o):a&&r.attr("fill",a)})}}),We("interval-adjust-position",function(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null==r?void 0:r.geometry;o&&"interval"===o.type&&function(t,e,n){return!!t.getAdjust("stack")||e.every(function(e,i){return function(t,e,n){var i=t.coordinate,r=an(e),o=it.fromObject(r.getCanvasBBox()),a=it.fromObject(n.getBBox());return i.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,n[i])})}(o,e,n)&&n.forEach(function(t,n){!function(t,e,n){var i=t.coordinate,r=it.fromObject(n.getBBox());an(e).attr(i.isTransposed?{x:r.minX+r.width/2,textAlign:"center"}:{y:r.minY+r.height/2,textBaseline:"middle"})}(o,e[n],t)})}}),We("interval-hide-overlap",function(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null==r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(h.j)(t,function(t,i){i%n==0?e.push(t):t.set("visible",!1)}),e}(e),c=o.getXYFields()[0],u=[],l=[],f=Object(h.v)(s,function(t){return t.get("data")[c]}),p=Object(h.ob)(Object(h.U)(s,function(t){return t.get("data")[c]}));s.forEach(function(t){t.set("visible",!0)});var d=function(t){t&&(t.length&&l.push(t.pop()),l.push.apply(l,t))};for(Object(h.gb)(p)>0&&(a=p.shift(),d(f[a])),Object(h.gb)(p)>0&&(a=p.pop(),d(f[a])),Object(h.j)(p.reverse(),function(t){d(f[t])});l.length>0;){var g=l.shift();g.get("visible")&&(cn(g,u)?g.set("visible",!1):u.push(g))}}}}),We("point-adjust-position",function(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null==s?void 0:s.geometry;if(c&&"point"===c.type){var u=c.getXYFields(),l=u[0],f=u[1],p=Object(h.v)(e,function(t){return t.get("data")[l]}),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h.U)(Object(h.R)(p).reverse(),function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],r=e.sort(function(t,e){return t.get("data")[n]-t.get("data")[n]});return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}(c,p[t]);e.length;){var n=e.shift(),i=an(n);if(mi(d,n,function(t,e){return t.get("data")[l]===e.get("data")[l]&&t.get("data")[f]===e.get("data")[f]}))i.set("visible",!1);else{var r=!1;bi(d,n)&&(i.attr("y",i.attr("y")+2*g),r=bi(d,n)),r?i.set("visible",!1):d.push(n)}}})}}}),We("pie-spider",function(t,e,n,i){var r=e[0]&&e[0].get("coordinate");if(r){for(var o=r.getCenter(),a=r.getRadius(),s={},c=0,u=e;c<u.length;c++){var l=u[c];s[l.get("id")]=l}var f=Object(h.s)(t[0],"labelHeight",14),p=Math.max(Object(h.s)(t[0],"offset",0),4);Object(h.j)(t,function(t){if(Object(h.s)(s,t.id)){var e=t.x>o.x||t.x===o.x&&t.y>o.y,n=Object(h.I)(t.offsetX)?4:t.offsetX,i=U(o.x,o.y,a+4,t.angle);t.x=o.x+(e?1:-1)*(a+(p+n)),t.y=i.y}});var d=r.start,g=r.end,v=Object(h.v)(t,function(t){return t.x<o.x?"left":"right"}),y=2*(a+p)+f;Object(h.j)(v,function(t){var e=t.length*f;e>y&&(y=Math.min(e,Math.abs(d.y-g.y)))});var m={minX:d.x,maxX:g.x,minY:o.y-y/2,maxY:o.y+y/2};Object(h.j)(v,function(t,e){var n=y/f;t.length>n&&(t.sort(function(t,e){return e.percent-t.percent}),Object(h.j)(t,function(t,e){e>n&&(s[t.id].set("visible",!1),t.invisible=!0)})),si(t,f,m)});var b=m.minY,x=m.maxY;Object(h.j)(v,function(t,e){var n="right"===e;Object(h.j)(t,function(t){var e=Object(h.s)(s,t&&t.id);if(e)if(t.y<b||t.y>x)e.set("visible",!1);else{var i=e.getChildByIndex(0),o=i.getCanvasBBox();rn(i,t.x-(n?o.x:o.maxX),t.y-(o.y+o.height/2)),t.labelLine&&function(t,e,n){var i,r=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},s=U(r.x,r.y,o+4,t.angle),c={x:a.x,y:a.y},u={x:s.x,y:s.y},l=U(r.x,r.y,o,t.angle);if(a.y!==s.y){var f=n?4:-4;c.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(s.x,a.x-f),a.y<s.y?u.y=c.y:(u.y=s.y,u.x=Math.max(u.x,c.x-f))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(s.x,a.x-f),a.y>s.y?u.y=c.y:(u.y=s.y,u.x=Math.max(u.x,c.x-f))),t.angle>Math.PI/2&&(c.x=Math.min(s.x,a.x-f),a.y>s.y?u.y=c.y:(u.y=s.y,u.x=Math.min(u.x,c.x-f))),t.angle<-Math.PI/2&&(c.x=Math.min(s.x,a.x-f),a.y<s.y?u.y=c.y:(u.y=s.y,u.x=Math.min(u.x,c.x-f)))}i=["M "+a.x+","+a.y,"L "+c.x+","+c.y,"L "+u.x+","+u.y,"L "+s.x+","+s.y,"L "+l.x+","+l.y].join(" "),t.labelLine=Object(h.h)({},t.labelLine,{path:i})}(t,r,n)}})})}}),We("path-adjust-position",function(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null==s?void 0:s.geometry;if(c&&!(["path","line","area"].indexOf(c.type)<0)){var u=c.getXYFields(),l=u[0],f=u[1],p=Object(h.v)(e,function(t){return t.get("data")[l]}),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h.U)(Object(h.R)(p).reverse(),function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],r=e.sort(function(t,e){return t.get("data")[n]-t.get("data")[n]});return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}(c,p[t]);e.length;){var n=e.shift(),i=an(n);if(xi(d,n,function(t,e){return t.get("data")[l]===e.get("data")[l]&&t.get("data")[f]===e.get("data")[f]}))i.set("visible",!1);else{var r=!1;Oi(d,n)&&(i.attr("y",i.attr("y")+2*g),r=Oi(d,n)),r?i.set("visible",!1):d.push(n)}}})}}}),De("fade-in",function(t,e,n){var i={fillOpacity:Object(h.I)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(h.I)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(h.I)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}),De("fade-out",function(t,e,n){t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},e.duration,e.easing,function(){t.remove(!0)},e.delay)}),De("grow-in-x",function(t,e,n){wi(t,e,n.coordinate,n.minYPoint,"x")}),De("grow-in-xy",function(t,e,n){wi(t,e,n.coordinate,n.minYPoint,"xy")}),De("grow-in-y",function(t,e,n){wi(t,e,n.coordinate,n.minYPoint,"y")}),De("scale-in-x",function(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData.points,o=r[0].y-r[1].y>0?i.maxX:i.minX,a=(i.minY+i.maxY)/2;t.applyToMatrix([o,a,1]);var s=E.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(s),t.animate({matrix:E.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)}),De("scale-in-y",function(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,s,1]);var c=E.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:E.a.transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}),De("wave-in",function(t,e,n){var i=ct(n.coordinate,20),r=i.endState,o=t.setClip({type:i.type,attrs:i.startState});o.animate(r,Object(l.a)(Object(l.a)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),o.remove(!0)}}))}),De("zoom-in",function(t,e,n){ki(t,e,"zoomIn")}),De("zoom-out",function(t,e,n){ki(t,e,"zoomOut")}),De("position-update",function(t,e,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:o},e)}),De("sector-path-update",function(t,e,n){var i=n.toAttrs,r=n.coordinate,o=i.path||[],a=o.map(function(t){return t[0]});if(!(o.length<1)){var s=Si(o),c=s.startAngle,u=s.endAngle,f=s.radius,p=s.innerRadius,d=Si(t.attr("path")),g=d.startAngle,v=d.endAngle,y=r.getCenter(),m=c-g,b=u-v;t.animate(function(t){var e=g+t*m,n=v+t*b;return Object(l.a)(Object(l.a)({},i),{path:Object(h.G)(a,["M","A","A","Z"])?K(y.x,y.y,f,e,n):Z(y.x,y.y,f,e,n,p)})},Object(l.a)(Object(l.a)({},e),{callback:function(){t.attr("path",o)}}))}}),De("path-in",function(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate(function(t){return{lineDashOffset:(1-t)*i}},e)}),jt("rect",Ei),jt("mirror",Fi),jt("list",Bi),jt("matrix",Li),jt("circle",Ti),jt("tree",Pi),je("axis",Hi),je("legend",Ui),je("tooltip",Fe),je("annotation",Ri),je("slider",Zi),je("scrollbar",Ki),St("tooltip",Qi),St("sibling-tooltip",tr),St("ellipsis-text",er),St("element-active",or),St("element-single-active",lr),St("element-range-active",cr),St("element-highlight",gr),St("element-highlight-by-x",yr),St("element-highlight-by-color",vr),St("element-single-highlight",br),St("element-range-highlight",mr),St("element-sibling-highlight",mr,{effectSiblings:!0,effectByRecord:!0}),St("element-selected",Or),St("element-single-selected",jr),St("element-range-selected",xr),St("element-link-by-color",ar),St("active-region",Ji),St("list-active",Cr),St("list-selected",Sr),St("list-highlight",Mr),St("list-unchecked",kr),St("legend-item-highlight",Mr,{componentNames:["legend"]}),St("axis-label-highlight",Mr,{componentNames:["axis"]}),St("rect-mask",Tr),St("x-rect-mask",Lr,{dim:"x"}),St("y-rect-mask",Lr,{dim:"y"}),St("circle-mask",Ir),St("path-mask",Fr),St("smooth-path-mask",Er),St("cursor",Pr),St("data-filter",Dr),St("brush",_r),St("brush-x",_r,{dims:["x"]}),St("brush-y",_r,{dims:["y"]}),St("sibling-filter",Yr),St("sibling-x-filter",Yr),St("sibling-y-filter",Yr),St("element-filter",Gr),St("element-sibling-filter",Nr),St("element-sibling-filter-record",Nr,{byRecord:!0}),St("view-drag",Vr),St("view-move",Hr),St("scale-translate",$r),St("scale-zoom",qr),St("reset-button",Xr,{name:"reset-button",text:"reset"}),ae("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),ae("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),ae("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),ae("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),ae("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),ae("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),ae("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),ae("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),ae("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),ae("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),ae("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),ae("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),ae("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ur,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ur,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ur,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),ae("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),ae("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ur,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Ur,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Ur,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),ae("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Ur,action:"path-mask:start"},{trigger:"mousedown",isEnable:Ur,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),ae("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),ae("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),ae("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),ae("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),ae("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),ae("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),ae("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Zr(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Zr(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),ae("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]})},kwiP:function(t,e,n){"use strict";var i=n("mrSG"),r=n("zJSt"),o=n("u9/z"),a=n("SZbK");!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{percent:.2,color:a.a}},e.prototype.changeData=function(t){this.update({percent:t})},e.prototype.getSchemaAdaptor=function(){return o.a}}(r.a)},l3hu:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n("iTfj");function r(t,e,n){var r=e+"Style",o=null;return Object(i.j)(n,function(e,n){t[n]&&e[r]&&(o||(o={}),Object(i.Y)(o,e[r]))}),o}},lOPJ:function(t,e,n){"use strict";var i=n("FqlA"),r=n("iTfj"),o=n("0Xep"),a=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=e.dodgeRatio,a=void 0===r?o.b:r,s=e.dodgeBy,c=e.intervalPadding,u=e.dodgePadding,l=e.xDimensionLength,h=e.groupNum,f=e.defaultSize,p=e.maxColumnWidth,d=e.minColumnWidth,g=e.columnWidthRatio;return n.marginRatio=void 0===i?o.d:i,n.dodgeRatio=a,n.dodgeBy=s,n.intervalPadding=c,n.dodgePadding=u,n.xDimensionLegenth=l,n.groupNum=h,n.defaultSize=f,n.maxColumnWidth=p,n.minColumnWidth=d,n.columnWidthRatio=g,n}return Object(i.b)(e,t),e.prototype.process=function(t){var e=r.e(t),n=r.q(e),i=this.dodgeBy,o=i?r.u(n,i):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var o=this,a=this.getDistribution(t),s=this.groupData(n,t);return r.j(s,function(n,s){var c;c=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),r.j(n,function(e){var n=a[e[t]],r=n.indexOf(i);e[t]=o.getDodgeOffset(c,r,n.length)})}),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,o=this.dodgeRatio,a=this.marginRatio,s=this.intervalPadding,c=this.dodgePadding,u=t.pre,l=t.next,h=l-u;if(!r.I(s)&&r.I(c)&&s>=0)i=u+this.getIntervalOnlyOffset(n,e);else if(!r.I(c)&&r.I(s)&&c>=0)i=u+this.getDodgeOnlyOffset(n,e);else if(!r.I(s)&&!r.I(c)&&s>=0&&c>=0)i=u+this.getIntervalAndDodgeOffset(n,e);else{var f=h*o/n,p=a*f;i=(u+l)/2+(.5*(h-n*f-(n-1)*p)+((e+1)*f+e*p)-.5*f-.5*h)}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,o=n.xDimensionLegenth,a=n.groupNum,s=n.maxColumnWidth,c=n.minColumnWidth,u=n.columnWidthRatio,l=n.intervalPadding/o,h=(1-(a-1)*l)/a*n.dodgeRatio/(t-1),f=((1-l*(a-1))/a-h*(t-1))/t;return f=r.I(u)?f:1/a/t*u,r.I(s)||(f=Math.min(f,s/o)),r.I(c)||(f=Math.max(f,c/o)),((.5+e)*(f=i?i/o:f)+e*(h=((1-(a-1)*l)/a-t*f)/(t-1))+.5*l)*a-l/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,o=n.xDimensionLegenth,a=n.groupNum,s=n.maxColumnWidth,c=n.minColumnWidth,u=n.columnWidthRatio,l=n.dodgePadding/o,h=1*n.marginRatio/(a-1),f=((1-h*(a-1))/a-l*(t-1))/t;return f=u?1/a/t*u:f,r.I(s)||(f=Math.min(f,s/o)),r.I(c)||(f=Math.max(f,c/o)),((.5+e)*(f=i?i/o:f)+e*l+.5*(h=(1-(f*t+l*(t-1))*a)/(a-1)))*a-h/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.xDimensionLegenth,i=this.groupNum,r=this.intervalPadding/n,o=this.dodgePadding/n;return((.5+e)*(((1-r*(i-1))/i-o*(t-1))/t)+e*o+.5*r)*i-r/2},e.prototype.getDistribution=function(t){var e=this.cacheMap,n=e[t];return n||(n={},r.j(this.adjustDataArray,function(e,i){var o=r.sb(e,t);o.length||o.push(0),r.j(o,function(t){n[t]||(n[t]=[]),n[t].push(i)})}),e[t]=n),n},e}(n("Qci9").a);e.a=a},lr9b:function(t,e,n){"use strict";n.d(e,"a",function(){return y});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("n/J0");function u(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.groupField,s=n.color,c=Array.isArray(r)?"$$range$$":r,u=e.schema().position(i+"*"+c).shape("box");o&&u.color(o,s).adjust("dodge");var l=n.data;if(Array.isArray(r)){var h=r[0],f=r[1],p=r[2],d=r[3],g=r[4];l=Object(a.U)(l,function(t){return t.$$range$$=[t[h],t[f],t[p],t[d],t[g]],t})}return e.data(l),t}function l(t){var e=t.options,n=e.xField,i=e.data,r=e.outliersField,o=e.outliersStyle;if(!r)return t;var s=t.chart.createView({padding:e.padding});s.data(i),s.axis(!1);var c=s.point().position(n+"*"+r).shape("circle");return Object(a.H)(o)?c.style(n+"*"+r,function(t,e){var i;return o(((i={})[n]=t,i[r]=e,i))}):Object(a.M)(o)&&c.style(o),t}function h(t){var e,n,i=t.chart,r=t.options,a=r.meta,s=r.xAxis,u=r.yAxis,l=r.xField,h=r.yField,f=r.outliersField,p=Array.isArray(h)?"$$range$$":h,d={};f&&((e={})[f]={sync:"$$y_outliers$$"},e[p]={sync:"$$y_outliers$$"},d=e);var g=Object(o.b)(d,a,((n={})[l]=Object(o.k)(s,c.a),n[p]=Object(o.k)(u,c.a),n));return i.scale(g),t}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?"$$range$$":a;return e.axis(o,!1!==i&&i),!1===r?e.axis("$$range$$",!1):e.axis(s,r),t}function p(t){var e=t.chart,n=t.options,i=n.groupField;return i?e.legend(i,n.legend||{position:"bottom"}):e.legend(!1),t}function d(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,s=n.boxStyle,c=Object(o.c)(e,"schema"),u=Array.isArray(r)?"$$range$$":r;return Object(a.H)(s)?c.style(i+"*"+u,function(t,e){var n;return s(((n={})[i]=t,n[u]=e,n))}):Object(a.M)(s)&&c.style(s),t}function g(t){var e=t.options.tooltip;return void 0!==e&&t.chart.tooltip(e),t}function v(t){return Object(o.e)(u,l,h,f,d,p,g,s.c,s.a,s.j)(t)}var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){var e;return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{meta:(e={},e.$$range$$={min:0,alias:"low-q1-median-q3-high"},e),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,showCrosshairs:!0,shared:!0}})},e.prototype.getSchemaAdaptor=function(){return v},e}(r.a)},lt7v:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=null;function r(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},"ma/q":function(t,e,n){"use strict";n("kXyF"),n("zJSt"),n("Djfg");var i=n("XloR");n.d(e,"Line",function(){return i.a});var r=n("uw/B");n.d(e,"Area",function(){return r.a});var o=n("u9VJ");n.d(e,"Column",function(){return o.a});var a=n("Y+LX");n.d(e,"Bar",function(){return a.a});var s=n("Cr25");n.d(e,"Pie",function(){return s.a});var c=n("z4Vf");n.d(e,"Rose",function(){return c.a});var u=n("Mj7Y");n.d(e,"WordCloud",function(){return u.a});var l=n("tE4n");n.d(e,"Scatter",function(){return l.a});var h=n("y753");n.d(e,"Radar",function(){return h.a});var f=n("yqCL");n.d(e,"DualAxes",function(){return f.a}),n("mttH");var p=n("027J");n.d(e,"TinyColumn",function(){return p.a}),n("05BJ");var d=n("BwSJ");n.d(e,"Histogram",function(){return d.a}),n("kwiP"),n("YP77");var g=n("+wVF");n.d(e,"Heatmap",function(){return g.a});var v=n("lr9b");n.d(e,"Box",function(){return v.a});var y=n("/+3i");n.d(e,"Stock",function(){return y.a});var m=n("aLzy");n.d(e,"Funnel",function(){return m.a});var b=n("FAXy");n.d(e,"Liquid",function(){return b.a});var x=n("BYeR");n.d(e,"Bullet",function(){return x.a});var O=n("cBFB");n.d(e,"Sunburst",function(){return O.a});var j=n("XpFM");n.d(e,"Gauge",function(){return j.a});var w=n("FLLP");n.d(e,"Waterfall",function(){return w.a});var C=n("TEat");n.d(e,"RadialBar",function(){return C.a});var M=n("7ZbV");n.d(e,"BidirectionalBar",function(){return M.a});var S=n("eHqw");n.d(e,"Treemap",function(){return S.a});var k=n("rtSP");n.d(e,"Sankey",function(){return k.a});var A=n("Uo7R");n.d(e,"Chord",function(){return A.a}),n("7+4w"),n("YuPD"),n("tKoa"),n("46lQ")},mj6g:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return u});var i=n("mrSG"),r=n("iTfj"),o=n("YuPD");function a(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(r.s)(t,"fill")&&(e.color=t.fill);var i=Object(o.k)(t,n),a=i.shadowBlur,s=i.shadowOffsetX,c=i.shadowOffsetY;e["text-shadow"]=""+[i.shadowColor,(void 0===s?0:s)+"px",(void 0===c?0:c)+"px",(void 0===a?0:a)+"px"].join(" ");var u=Object(o.k)(t,n),l=u.lineWidth;return e["-webkit-text-stroke"]=""+[(void 0===l?0:l)+"px",u.stroke].join(" "),Object(r.j)(t,function(t,i){["fontSize"].includes(i)&&Object(r.K)(t)?e[Object(o.i)(i)]=t+"px":i&&!n.includes(i)&&(e[Object(o.i)(i)]=""+t)}),e}function s(t,e){t.style["pointer-events"]="none",Object(r.j)(e,function(e,n){n&&e&&(t.style[n]=e)})}var c=function(t,e,n){var c=e.statistic,u=e.plotType,l=c.title,h=c.content;[l,h].forEach(function(e,c){if(e){var f,p="";f=0===c?h?"translate(-50%, -100%)":"translate(-50%, -50%)":l?"translate(-50%, 0)":"translate(-50%, -50%)";var d=Object(r.H)(e.style)?e.style(n):e.style;t.annotation().html(Object(i.a)({position:["50%","50%"],html:function(t,o){var c=o.getCoordinate(),l=0;if("pie"===u||"ring-progress"===u)l=c.getRadius()*c.innerRadius*2;else if("liquid"===u){var h=Object(r.s)(o.geometries,[0,"elements",0,"shape"]);h&&(l=h.find(function(t){return"circle"===t.get("type")}).getCanvasBBox().width)}else l||(l=c.getWidth());s(t,Object(i.a)({width:l+"px",transform:f},a(d)));var g=o.getData();return e.customHtml?e.customHtml(t,o,n,g):(e.formatter&&(p=e.formatter(n,g)),p?Object(r.O)(p)?p:""+p:"<div></div>")},key:(0===c?"top":"bottom")+"-statistic"},Object(o.k)(e,["offsetX","offsetY","rotate","style","formatter"])))}})},u=function(t,e,n){var c=e.statistic;[c.title,c.content].forEach(function(e){if(e){var c="",u=Object(r.H)(e.style)?e.style(n):e.style;t.annotation().html(Object(i.a)({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),h=o.views[0].getCoordinate(),f=h.getCenter(),p=h.getRadius(),d=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*p,g=f.y+d-l.y.start-parseFloat(Object(r.s)(u,"fontSize",0)),v=l.getRadius()*l.innerRadius*2;s(t,Object(i.a)({width:v+"px",transform:"translate(-50%, "+g+"px)"},a(u)));var y=o.getData();return e.customHtml?e.customHtml(t,o,n,y):(e.formatter&&(c=e.formatter(n,y)),c?Object(r.O)(c)?c:""+c:"<div></div>")}},Object(o.k)(e,["offsetX","offsetY","rotate","style","formatter"])))}})}},mttH:function(t,e,n){"use strict";var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("w02o"),s=n("tKoa"),c=n("DyAw"),u=n("7cv3");function l(t){var e,n,i=t.chart,r=t.options,l=r.xAxis,h=r.yAxis,f=r.color,p=r.lineStyle,d=r.point,g=r.data.map(function(t,e){return{x:e,y:t}});i.data(g);var v=Object(o.b)({},t,{options:{xField:u.b,yField:u.c,line:{color:f,style:p},point:d}}),y=Object(o.b)({},v,{options:{tooltip:!1}});return Object(s.d)(v),Object(s.e)(y),i.axis(!1),i.legend(!1),Object(a.f)(((e={})[u.b]=l,e[u.c]=h,e),((n={})[u.b]={type:"cat"},n[u.c]=Object(c.a)(g,u.c),n))(t),t}function h(t){return Object(o.e)(l,a.j,a.k,a.a,Object(a.b)())(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:2,tooltip:Object(i.a)({},u.a)}},e.prototype.getSchemaAdaptor=function(){return h}}(r.a)},"n+fv":function(t,e,n){"use strict";n.r(e),n.d(e,"create",function(){return r}),n.d(e,"clone",function(){return o}),n.d(e,"length",function(){return a}),n.d(e,"fromValues",function(){return s}),n.d(e,"copy",function(){return c}),n.d(e,"set",function(){return u}),n.d(e,"add",function(){return l}),n.d(e,"subtract",function(){return h}),n.d(e,"multiply",function(){return f}),n.d(e,"divide",function(){return p}),n.d(e,"ceil",function(){return d}),n.d(e,"floor",function(){return g}),n.d(e,"min",function(){return v}),n.d(e,"max",function(){return y}),n.d(e,"round",function(){return m}),n.d(e,"scale",function(){return b}),n.d(e,"scaleAndAdd",function(){return x}),n.d(e,"distance",function(){return O}),n.d(e,"squaredDistance",function(){return j}),n.d(e,"squaredLength",function(){return w}),n.d(e,"negate",function(){return C}),n.d(e,"inverse",function(){return M}),n.d(e,"normalize",function(){return S}),n.d(e,"dot",function(){return k}),n.d(e,"cross",function(){return A}),n.d(e,"lerp",function(){return I}),n.d(e,"hermite",function(){return T}),n.d(e,"bezier",function(){return B}),n.d(e,"random",function(){return L}),n.d(e,"transformMat4",function(){return F}),n.d(e,"transformMat3",function(){return E}),n.d(e,"transformQuat",function(){return P}),n.d(e,"rotateX",function(){return D}),n.d(e,"rotateY",function(){return z}),n.d(e,"rotateZ",function(){return R}),n.d(e,"angle",function(){return _}),n.d(e,"zero",function(){return Y}),n.d(e,"str",function(){return G}),n.d(e,"exactEquals",function(){return N}),n.d(e,"equals",function(){return X}),n.d(e,"sub",function(){return H}),n.d(e,"mul",function(){return W}),n.d(e,"div",function(){return $}),n.d(e,"dist",function(){return q}),n.d(e,"sqrDist",function(){return U}),n.d(e,"len",function(){return Z}),n.d(e,"sqrLen",function(){return K}),n.d(e,"forEach",function(){return J});var i=n("yU0y");function r(){var t=new i.a(3);return i.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new i.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){return Math.hypot(t[0],t[1],t[2])}function s(t,e,n){var r=new i.a(3);return r[0]=t,r[1]=e,r[2]=n,r}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,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 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,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(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 y(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 m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(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,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function O(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])}function j(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function w(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function k(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function A(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=r*c-o*s,t[1]=o*a-i*c,t[2]=i*s-r*a,t}function I(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function T(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,u=a*(o-1),l=a*(3-2*o);return t[0]=e[0]*s+n[0]*c+i[0]*u+r[0]*l,t[1]=e[1]*s+n[1]*c+i[1]*u+r[1]*l,t[2]=e[2]*s+n[2]*c+i[2]*u+r[2]*l,t}function B(t,e,n,i,r,o){var a=1-o,s=a*a,c=o*o,u=s*a,l=3*o*s,h=3*c*a,f=c*o;return t[0]=e[0]*u+n[0]*l+i[0]*h+r[0]*f,t[1]=e[1]*u+n[1]*l+i[1]*h+r[1]*f,t[2]=e[2]*u+n[2]*l+i[2]*h+r[2]*f,t}function L(t,e){e=e||1;var n=2*i.c()*Math.PI,r=2*i.c()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function F(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/(a=a||1),t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function E(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function P(t,e,n){var i=n[0],r=n[1],o=n[2],a=e[0],s=e[1],c=e[2],u=r*c-o*s,l=o*a-i*c,h=i*s-r*a,f=r*h-o*l,p=o*u-i*h,d=i*l-r*u,g=2*n[3];return l*=g,h*=g,p*=2,d*=2,t[0]=a+(u*=g)+(f*=2),t[1]=s+l+p,t[2]=c+h+d,t}function D(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],c=Math.sqrt(n*n+i*i+r*r)*Math.sqrt(o*o+a*a+s*s),u=c&&k(t,e)/c;return Math.acos(Math.min(Math.max(u,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function G(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function X(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],c=e[2];return Math.abs(n-a)<=i.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i.b*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-c)<=i.b*Math.max(1,Math.abs(o),Math.abs(c))}var V,H=h,W=f,$=p,q=O,U=j,Z=a,K=w,J=(V=r(),function(t,e,n,i,r,o){var a,s;for(e||(e=3),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)V[0]=t[a],V[1]=t[a+1],V[2]=t[a+2],r(V,V,o),t[a]=V[0],t[a+1]=V[1],t[a+2]=V[2];return t})},"n/J0":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask"],r={GRADIENT:{CONTINUOUS:"#BAE7FF-#1890FF-#0050B3"}}},nCnq:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("cyZq");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function a(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(o(t,e))}function s(t,e){var n=e[1],r=e[2],s=Object(i.m)(Object(i.o)(e[3]),2*Math.PI),c=e[4],u=e[5],l=t[0],h=t[1],f=e[6],p=e[7],d=Math.cos(s)*(l-f)/2+Math.sin(s)*(h-p)/2,g=-1*Math.sin(s)*(l-f)/2+Math.cos(s)*(h-p)/2,v=d*d/(n*n)+g*g/(r*r);v>1&&(n*=Math.sqrt(v),r*=Math.sqrt(v));var y=n*n*(g*g)+r*r*(d*d),m=y?Math.sqrt((n*n*(r*r)-y)/y):1;c===u&&(m*=-1),isNaN(m)&&(m=0);var b=r?m*n*g/r:0,x=n?m*-r*d/n:0,O=(l+f)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/r],C=[(-1*d-b)/n,(-1*g-x)/r],M=a([1,0],w),S=a(w,C);return o(w,C)<=-1&&(S=Math.PI),o(w,C)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:O,cy:j,rx:Object(i.j)(t,[f,p])?0:n,ry:Object(i.j)(t,[f,p])?0:r,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:c,sweepFlag:u}}},nycV:function(t,e,n){"use strict";n.d(e,"c",function(){return h}),n.d(e,"b",function(){return f}),n.d(e,"a",function(){return p});var i=n("mrSG"),r=n("R5nb"),o=Math.sin,a=Math.cos,s=Math.atan2,c=Math.PI;function u(t,e,n,i,u,l,h){var f=e.stroke,p=e.lineWidth,d=s(i-l,n-u),g=new r.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(c/6)+","+10*o(c/6)+" L0,0 L"+10*a(c/6)+",-"+10*o(c/6),stroke:f,lineWidth:p}});g.translate(u,l),g.rotateAtPoint(u,l,d),t.set(h?"startArrowShape":"endArrowShape",g)}function l(t,e,n,c,u,l,h){var f=e.stroke,p=e.lineWidth,d=h?e.startArrow:e.endArrow,g=d.d,v=d.fill,y=d.stroke,m=d.lineWidth,b=Object(i.f)(d,["d","fill","stroke","lineWidth"]),x=s(c-l,n-u);g&&(u-=a(x)*g,l-=o(x)*g);var O=new r.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i.a)(Object(i.a)({},b),{stroke:y||f,lineWidth:m||p,fill:v})});O.translate(u,l),O.rotateAtPoint(u,l,x),t.set(h?"startArrowShape":"endArrowShape",O)}function h(t,e,n,i,r){var c=s(i-e,n-t);return{dx:a(c)*r,dy:o(c)*r}}function f(t,e,n,i,r,o){"object"==typeof e.startArrow?l(t,e,n,i,r,o,!0):e.startArrow?u(t,e,n,i,r,o,!0):t.set("startArrowShape",null)}function p(t,e,n,i,r,o){"object"==typeof e.endArrow?l(t,e,n,i,r,o,!1):e.endArrow?u(t,e,n,i,r,o,!1):t.set("startArrowShape",null)}},oyxB:function(t,n,i){"use strict";i.d(n,"a",function(){return xt}),i.d(n,"b",function(){return Bt}),i.d(n,"c",function(){return Lt});var r=i("fXoL"),o=i("R1ws"),a=i("ejfv"),s=i("u47x"),c=i("cH1L"),u=i("8LU1"),l=i("FtGj"),f=i("XNiG"),d=i("eNwd"),g=i("7Hc7"),v=i("LRne"),y=i("VRyK"),m=i("xgIS"),b=i("quSY"),x=i("1G5W"),O=i("3UWI"),j=i("JX91"),w=i("SxV6"),C=i("pLZG"),M=i("3E0/"),S=i("mrSG"),k=i("/KA4"),A=i("tyNb"),I=i("GU7r"),T=i("nLfN"),B=i("vxfF"),L=i("ofXK"),F=i("pdGh"),E=i("Nqz0"),P=i("FwiY"),D=i("2Suw"),z=i("79xS"),R=i("Q8cG"),_=i("/Kk4");function Y(t,e){if(1&t&&(r.Mb(0),r.Kb(1,"i",1),r.Lb()),2&t){var n=e.$implicit;r.zb(1),r.ec("nzType",n)}}var G=["contentTemplate"];function N(t,e){1&t&&r.cc(0)}function X(t,e){1&t&&r.cc(0,1)}var V=[[["","nz-tab-link",""]],"*"],H=["[nz-tab-link]","*"];function W(t,e){if(1&t&&(r.Mb(0),r.uc(1),r.Lb()),2&t){var n=r.Zb().$implicit;r.zb(1),r.vc(n.tab.label)}}var $=function(){return{visible:!1}};function q(t,e){if(1&t){var n=r.Pb();r.Ob(0,"li",8),r.Vb("click",function(){r.lc(n);var t=e.$implicit;return r.Zb(2).onSelect(t)})("contextmenu",function(t){r.lc(n);var i=e.$implicit;return r.Zb(2).onContextmenu(i,t)}),r.sc(1,W,2,1,"ng-container",9),r.Nb()}if(2&t){var i=e.$implicit;r.Bb("ant-tabs-dropdown-menu-item-disabled",i.disabled),r.ec("nzSelected",i.active)("nzDisabled",i.disabled),r.zb(1),r.ec("nzStringTemplateOutlet",i.tab.label)("nzStringTemplateOutletContext",r.gc(6,$))}}function U(t,e){if(1&t&&(r.Ob(0,"ul",6),r.sc(1,q,2,7,"li",7),r.Nb()),2&t){var n=r.Zb();r.zb(1),r.ec("ngForOf",n.items)}}function Z(t,e){if(1&t){var n=r.Pb();r.Ob(0,"button",10),r.Vb("click",function(){return r.lc(n),r.Zb().addClicked.emit()}),r.Nb()}if(2&t){var i=r.Zb();r.ec("addIcon",i.addIcon)}}var K=function(){return{minWidth:"46px"}},J=["navWarp"],Q=["navList"];function tt(t,e){if(1&t){var n=r.Pb();r.Ob(0,"button",8),r.Vb("click",function(){return r.lc(n),r.Zb().addClicked.emit()}),r.Nb()}if(2&t){var i=r.Zb();r.ec("addIcon",i.addIcon)}}function et(t,e){}function nt(t,e){if(1&t&&(r.Ob(0,"div",9),r.sc(1,et,0,0,"ng-template",10),r.Nb()),2&t){var n=r.Zb();r.zb(1),r.ec("ngTemplateOutlet",n.extraTemplate)}}var it=["*"],rt=["nz-tab-body",""];function ot(t,e){}function at(t,e){if(1&t&&(r.Mb(0),r.sc(1,ot,0,0,"ng-template",1),r.Lb()),2&t){var n=r.Zb();r.zb(1),r.ec("ngTemplateOutlet",n.content)}}function st(t,e){if(1&t&&(r.Mb(0),r.Kb(1,"i",1),r.Lb()),2&t){var n=e.$implicit;r.zb(1),r.ec("nzType",n)}}function ct(t,e){if(1&t&&(r.Mb(0),r.uc(1),r.Lb()),2&t){var n=r.Zb().$implicit;r.zb(1),r.vc(n.label)}}function ut(t,e){if(1&t){var n=r.Pb();r.Ob(0,"button",10),r.Vb("click",function(t){r.lc(n);var e=r.Zb().index;return r.Zb(2).onClose(e,t)}),r.Nb()}if(2&t){var i=r.Zb().$implicit;r.ec("closeIcon",i.nzCloseIcon)}}var lt=function(){return{visible:!0}};function ht(t,e){if(1&t){var n=r.Pb();r.Ob(0,"div",6),r.Vb("click",function(t){r.lc(n);var i=e.$implicit,o=e.index;return r.Zb(2).clickNavItem(i,o,t)})("contextmenu",function(t){r.lc(n);var i=e.$implicit;return r.Zb(2).contextmenuNavItem(i,t)}),r.Ob(1,"div",7),r.sc(2,ct,2,1,"ng-container",8),r.sc(3,ut,1,1,"button",9),r.Nb(),r.Nb()}if(2&t){var i=e.$implicit,o=e.index,a=r.Zb(2);r.qc("margin-right","horizontal"===a.position?a.nzTabBarGutter:null,"px")("margin-bottom","vertical"===a.position?a.nzTabBarGutter:null,"px"),r.Bb("ant-tabs-tab-active",a.nzSelectedIndex===o)("ant-tabs-tab-disabled",i.nzDisabled),r.zb(1),r.ec("disabled",i.nzDisabled)("tab",i)("active",a.nzSelectedIndex===o),r.Ab("tabIndex",a.getTabIndex(i,o))("aria-disabled",i.nzDisabled)("aria-selected",a.nzSelectedIndex===o&&!a.nzHideAll)("aria-controls",a.getTabContentId(o)),r.zb(1),r.ec("nzStringTemplateOutlet",i.label)("nzStringTemplateOutletContext",r.gc(18,lt)),r.zb(1),r.ec("ngIf",i.nzClosable&&a.closable&&!i.nzDisabled)}}function ft(t,e){if(1&t){var n=r.Pb();r.Ob(0,"nz-tabs-nav",4),r.Vb("tabScroll",function(t){return r.lc(n),r.Zb().nzTabListScroll.emit(t)})("selectFocusedIndex",function(t){return r.lc(n),r.Zb().setSelectedIndex(t)})("addClicked",function(){return r.lc(n),r.Zb().onAdd()}),r.sc(1,ht,4,19,"div",5),r.Nb()}if(2&t){var i=r.Zb();r.ec("ngStyle",i.nzTabBarStyle)("selectedIndex",i.nzSelectedIndex||0)("inkBarAnimated",i.inkBarAnimated)("addable",i.addable)("addIcon",i.nzAddIcon)("hideBar",i.nzHideAll)("position",i.position)("extraTemplate",i.nzTabBarExtraContent),r.zb(1),r.ec("ngForOf",i.tabs)}}function pt(t,e){if(1&t&&r.Kb(0,"div",11),2&t){var n=e.$implicit,i=e.index,o=r.Zb();r.ec("active",o.nzSelectedIndex==i&&!o.nzHideAll)("content",n.content)("forceRender",n.nzForceRender)("tabPaneAnimated",o.tabPaneAnimated)}}var dt=function(){var t=function(){function t(e){h(this,t),this.elementRef=e,this.addIcon="plus",this.element=this.elementRef.nativeElement}return p(t,[{key:"getElementWidth",value:function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0}},{key:"getElementHeight",value:function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l))},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(t,e){1&t&&r.sc(0,Y,2,1,"ng-container",0),2&t&&r.ec("nzStringTemplateOutlet",e.addIcon)},directives:[F.b,P.b],encapsulation:2}),t}(),gt=function(){var t=function(){function t(e,n,i){h(this,t),this.elementRef=e,this.ngZone=n,this.animationMode=i,this.position="horizontal",this.animated=!0}return p(t,[{key:"alignToElement",value:function(t){var e=this;this.ngZone.runOutsideAngular(function(){Object(a.b)(function(){return e.setStyles(t)})})}},{key:"setStyles",value:function(t){var e=this.elementRef.nativeElement;"horizontal"===this.position?(e.style.top="",e.style.height="",e.style.left=this.getLeftPosition(t),e.style.width=this.getElementWidth(t)):(e.style.left="",e.style.width="",e.style.top=this.getTopPosition(t),e.style.height=this.getElementHeight(t))}},{key:"getLeftPosition",value:function(t){return t?(t.offsetLeft||0)+"px":"0"}},{key:"getElementWidth",value:function(t){return t?(t.offsetWidth||0)+"px":"0"}},{key:"getTopPosition",value:function(t){return t?(t.offsetTop||0)+"px":"0"}},{key:"getElementHeight",value:function(t){return t?(t.offsetHeight||0)+"px":"0"}},{key:"_animated",get:function(){return"NoopAnimations"!==this.animationMode&&this.animated}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(r.z),r.Jb(o.a,8))},t.\u0275dir=r.Eb({type:t,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&r.Bb("ant-tabs-ink-bar-animated",e._animated)},inputs:{position:"position",animated:"animated"}}),t}(),vt=function(){var t=function t(e){h(this,t),this.templateRef=e};return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.L,1))},t.\u0275dir=r.Eb({type:t,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]}),t}(),yt=function(){var t=function t(e,n,i){h(this,t),this.elementRef=e,this.routerLink=n,this.routerLinkWithHref=i};return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(A.d,10),r.Jb(A.e,10))},t.\u0275dir=r.Eb({type:t,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]}),t}(),mt=function(){var t=function t(){h(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Eb({type:t,selectors:[["","nz-tab",""]],exportAs:["nzTab"]}),t}(),bt=new r.q("NZ_TAB_SET"),xt=function(){var t=function(){function t(e){h(this,t),this.closestTabSet=e,this.nzTitle="",this.nzClosable=!1,this.nzCloseIcon="close",this.nzDisabled=!1,this.nzForceRender=!1,this.nzSelect=new r.n,this.nzDeselect=new r.n,this.nzClick=new r.n,this.nzContextmenu=new r.n,this.template=null,this.isActive=!1,this.position=null,this.origin=null,this.stateChanges=new f.a}return p(t,[{key:"ngOnChanges",value:function(t){var e=t.nzTitle,n=t.nzDisabled,i=t.nzForceRender;(e||n||i)&&this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete()}},{key:"content",get:function(){return this.template||this.contentTemplate}},{key:"label",get:function(){var t;return this.nzTitle||(null===(t=this.nzTabLinkTemplateDirective)||void 0===t?void 0:t.templateRef)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(bt))},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tab"]],contentQueries:function(t,e,n){var i;(1&t&&(r.Cb(n,mt,!0,r.L),r.Cb(n,vt,!0),r.Cb(n,yt,!0)),2&t)&&(r.jc(i=r.Wb())&&(e.template=i.first),r.jc(i=r.Wb())&&(e.nzTabLinkTemplateDirective=i.first),r.jc(i=r.Wb())&&(e.linkDirective=i.first))},viewQuery:function(t,e){var n;(1&t&&r.pc(G,!0),2&t)&&(r.jc(n=r.Wb())&&(e.contentTemplate=n.first))},inputs:{nzTitle:"nzTitle",nzClosable:"nzClosable",nzCloseIcon:"nzCloseIcon",nzDisabled:"nzDisabled",nzForceRender:"nzForceRender"},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[r.xb],ngContentSelectors:H,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(t,e){1&t&&(r.dc(V),r.sc(0,N,1,0,"ng-template",null,0,r.tc),r.sc(2,X,1,0,"ng-template",null,1,r.tc))},encapsulation:2,changeDetection:0}),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzClosable",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzDisabled",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzForceRender",void 0),t}(),Ot=function(){var t=function(){function t(e){h(this,t),this.elementRef=e,this.disabled=!1,this.active=!1,this.el=e.nativeElement,this.parentElement=this.el.parentElement}return p(t,[{key:"focus",value:function(){this.el.focus()}},{key:"width",get:function(){return this.parentElement.offsetWidth}},{key:"height",get:function(){return this.parentElement.offsetHeight}},{key:"left",get:function(){return this.parentElement.offsetLeft}},{key:"top",get:function(){return this.parentElement.offsetTop}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["","nzTabNavItem",""]],inputs:{disabled:"disabled",active:"active",tab:"tab"}}),t}(),jt=function(){var t=function(){function t(e,n){h(this,t),this.cdr=e,this.elementRef=n,this.items=[],this.addable=!1,this.addIcon="plus",this.addClicked=new r.n,this.selected=new r.n,this.closeAnimationWaitTimeoutId=-1,this.menuOpened=!1,this.element=this.elementRef.nativeElement}return p(t,[{key:"onSelect",value:function(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}},{key:"onContextmenu",value:function(t,e){t.disabled||t.tab.nzContextmenu.emit(e)}},{key:"showItems",value:function(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}},{key:"menuVisChange",value:function(t){var e=this;t||(this.closeAnimationWaitTimeoutId=setTimeout(function(){e.menuOpened=!1,e.cdr.markForCheck()},150))}},{key:"getElementWidth",value:function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetWidth)||0}},{key:"getElementHeight",value:function(){var t;return(null===(t=this.element)||void 0===t?void 0:t.offsetHeight)||0}},{key:"ngOnDestroy",value:function(){clearTimeout(this.closeAnimationWaitTimeoutId)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.h),r.Jb(r.l))},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(t,e){2&t&&r.Bb("ant-tabs-nav-operations-hidden",0===e.items.length)},inputs:{items:"items",addable:"addable",addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement","nzVisibleChange","mouseenter"],["dropdownTrigger","nzDropdown"],["nz-icon","","nzType","ellipsis"],["menu","nzDropdownMenu"],["nz-menu","",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-menu",""],["nz-menu-item","","class","ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled","click","contextmenu",4,"ngFor","ngForOf"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"nzSelected","nzDisabled","click","contextmenu"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"addIcon","click"]],template:function(t,e){if(1&t&&(r.Ob(0,"button",0,1),r.Vb("nzVisibleChange",function(t){return e.menuVisChange(t)})("mouseenter",function(){return e.showItems()}),r.Kb(2,"i",2),r.Nb(),r.Ob(3,"nz-dropdown-menu",null,3),r.sc(5,U,2,1,"ul",4),r.Nb(),r.sc(6,Z,1,1,"button",5)),2&t){var n=r.kc(4);r.ec("nzDropdownMenu",n)("nzOverlayStyle",r.gc(5,K))("nzMatchWidthElement",null),r.zb(5),r.ec("ngIf",e.menuOpened),r.zb(1),r.ec("ngIf",e.addable)}},directives:[E.a,P.b,E.c,L.l,R.c,L.k,R.d,F.b,dt],encapsulation:2,changeDetection:0}),t}(),wt="undefined"!=typeof requestAnimationFrame?d.a:g.a,Ct=function(){var t=function(){function t(e,n,i,o,a){h(this,t),this.cdr=e,this.ngZone=n,this.viewportRuler=i,this.nzResizeObserver=o,this.dir=a,this.indexFocused=new r.n,this.selectFocusedIndex=new r.n,this.addClicked=new r.n,this.tabScroll=new r.n,this.position="horizontal",this.addable=!1,this.hideBar=!1,this.addIcon="plus",this.inkBarAnimated=!0,this.translate=null,this.transformX=0,this.transformY=0,this.pingLeft=!1,this.pingRight=!1,this.pingTop=!1,this.pingBottom=!1,this.hiddenItems=[],this.destroy$=new f.a,this._selectedIndex=0,this.wrapperWidth=0,this.wrapperHeight=0,this.scrollListWidth=0,this.scrollListHeight=0,this.operationWidth=0,this.operationHeight=0,this.addButtonWidth=0,this.addButtonHeight=0,this.selectedIndexChanged=!1,this.lockAnimationTimeoutId=-1,this.cssTransformTimeWaitingId=-1}return p(t,[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var t=this,e=this.dir?this.dir.change:Object(v.a)(null),n=this.viewportRuler.change(150),i=function(){t.updateScrollListPosition(),t.alignInkBarToSelectedTab()};this.keyManager=new s.c(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(0),Object(a.b)(i),Object(y.a)(this.nzResizeObserver.observe(this.navWarpRef),this.nzResizeObserver.observe(this.navListRef)).pipe(Object(x.a)(this.destroy$),Object(O.a)(16,wt)).subscribe(function(){i()}),Object(y.a)(e,n,this.items.changes).pipe(Object(x.a)(this.destroy$)).subscribe(function(){Promise.resolve().then(i),t.keyManager.withHorizontalOrientation(t.getLayoutDirection())}),this.keyManager.change.pipe(Object(x.a)(this.destroy$)).subscribe(function(e){t.indexFocused.emit(e),t.setTabFocus(e),t.scrollToTab(t.keyManager.activeItem)})}},{key:"ngAfterContentChecked",value:function(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}},{key:"ngOnDestroy",value:function(){clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId),this.destroy$.next(),this.destroy$.complete()}},{key:"onSelectedFromMenu",value:function(t){var e=this.items.toArray().findIndex(function(e){return e===t});-1!==e&&(this.keyManager.updateActiveItem(e),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}},{key:"onOffsetChange",value:function(t){if("horizontal"===this.position){if(-1===this.lockAnimationTimeoutId){if(this.transformX>=0&&t.x>0)return;if(this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0)return}t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(-1===this.lockAnimationTimeoutId){if(this.transformY>=0&&t.y>0)return;if(this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0)return}t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}},{key:"handleKeydown",value:function(t){var e=this.navWarpRef.nativeElement.contains(t.target);if(!Object(l.p)(t)&&e)switch(t.keyCode){case l.h:case l.m:case l.j:case l.c:this.lockAnimation(),this.keyManager.onKeydown(t);break;case l.e:case l.k:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}},{key:"isValidIndex",value:function(t){if(!this.items)return!0;var e=this.items?this.items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"scrollToTab",value:function(t){var e=this;if(this.items.find(function(e){return e===t})){var n=this.items.toArray();if("horizontal"===this.position){var i=this.transformX;if("rtl"===this.getLayoutDirection()){var r=n[0].left+n[0].width-t.left-t.width;r<this.transformX?i=r:r+t.width>this.transformX+this.wrapperWidth&&(i=r+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{var o=this.transformY;t.top<-this.transformY?o=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(o=-(t.top+t.height-this.wrapperHeight)),this.transformY=o,this.transformX=0,this.setTransform(0,o)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(function(){e.setVisibleRange()},150)}}},{key:"lockAnimation",value:function(){var t=this;-1===this.lockAnimationTimeoutId&&this.ngZone.runOutsideAngular(function(){t.navListRef.nativeElement.style.transition="none",t.lockAnimationTimeoutId=setTimeout(function(){t.navListRef.nativeElement.style.transition="",t.lockAnimationTimeoutId=-1},150)})}},{key:"setTransform",value:function(t,e){this.navListRef.nativeElement.style.transform="translate(".concat(t,"px, ").concat(e,"px)")}},{key:"clampTransformX",value:function(t){var e=this.wrapperWidth-this.scrollListWidth;return"rtl"===this.getLayoutDirection()?Math.max(Math.min(e,t),0):Math.min(Math.max(e,t),0)}},{key:"clampTransformY",value:function(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}},{key:"updateScrollListPosition",value:function(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}},{key:"resetSizes",value:function(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWarpRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWarpRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}},{key:"alignInkBarToSelectedTab",value:function(){var t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e&&this.inkBar.alignToElement(e.parentElement)}},{key:"setPingStatus",value:function(){var t={top:!1,right:!1,bottom:!1,left:!1},e=this.navWarpRef.nativeElement;"horizontal"===this.position?"rtl"===this.getLayoutDirection()?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(function(n){var i="ant-tabs-nav-wrap-ping-"+n;t[n]?e.classList.add(i):e.classList.remove(i)})}},{key:"setVisibleRange",value:function(){var t,n,i,r,o,a,s=this.items.toArray(),c={width:0,height:0,left:0,top:0,right:0},u=function(t){return"right"===n?s[0].left+s[0].width-s[t].left-s[t].width:(s[t]||c)[n]};"horizontal"===this.position?(t="width",r=this.wrapperWidth,o=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),a=this.addButtonWidth,i=Math.abs(this.transformX),"rtl"===this.getLayoutDirection()?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",r=this.wrapperHeight,o=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),a=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);var l=r;if(o+a>r&&(l=r-a),!s.length)return this.hiddenItems=[],void this.cdr.markForCheck();for(var h=s.length,f=h,p=0;p<h;p+=1)if(u(p)+(s[p]||c)[t]>i+l){f=p-1;break}for(var d=0,g=h-1;g>=0;g-=1)if(u(g)<i){d=g+1;break}var v=s.slice(0,d),y=s.slice(f+1);this.hiddenItems=[].concat(e(v),e(y)),this.cdr.markForCheck()}},{key:"getLayoutDirection",value:function(){return this.dir&&"rtl"===this.dir.value?"rtl":"ltr"}},{key:"setTabFocus",value:function(t){}},{key:"ngOnChanges",value:function(t){var e=t.position;e&&!e.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){var e=Object(u.f)(t);this._selectedIndex!==e&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}},{key:"focusIndex",get:function(){return this.keyManager?this.keyManager.activeItemIndex:0},set:function(t){this.isValidIndex(t)&&this.focusIndex!==t&&this.keyManager&&this.keyManager.setActiveItem(t)}},{key:"showAddButton",get:function(){return 0===this.hiddenItems.length&&this.addable}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.h),r.Jb(r.z),r.Jb(B.g),r.Jb(_.a),r.Jb(c.b,8))},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tabs-nav"]],contentQueries:function(t,e,n){var i;(1&t&&r.Cb(n,Ot,!0),2&t)&&(r.jc(i=r.Wb())&&(e.items=i))},viewQuery:function(t,e){var n;(1&t&&(r.pc(J,!0),r.pc(Q,!0),r.pc(jt,!0),r.xc(dt,!0),r.pc(gt,!0)),2&t)&&(r.jc(n=r.Wb())&&(e.navWarpRef=n.first),r.jc(n=r.Wb())&&(e.navListRef=n.first),r.jc(n=r.Wb())&&(e.operationRef=n.first),r.jc(n=r.Wb())&&(e.addBtnRef=n.first),r.jc(n=r.Wb())&&(e.inkBar=n.first))},hostAttrs:["role","tablist",1,"ant-tabs-nav"],hostBindings:function(t,e){1&t&&r.Vb("keydown",function(t){return e.handleKeydown(t)})},inputs:{position:"position",addable:"addable",hideBar:"hideBar",addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",selectedIndex:"selectedIndex",extraTemplate:"extraTemplate"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[r.xb],ngContentSelectors:it,decls:9,vars:16,consts:[[1,"ant-tabs-nav-wrap"],["navWarp",""],["nzTabScrollList","",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["navList",""],["nz-tab-add-button","",3,"addIcon","click",4,"ngIf"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addIcon","addable","items","addClicked","selected"],["class","ant-tabs-extra-content",4,"ngIf"],["nz-tab-add-button","",3,"addIcon","click"],[1,"ant-tabs-extra-content"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(r.dc(),r.Ob(0,"div",0,1),r.Ob(2,"div",2,3),r.Vb("offsetChange",function(t){return e.onOffsetChange(t)})("tabScroll",function(t){return e.tabScroll.emit(t)}),r.cc(4),r.sc(5,tt,1,1,"button",4),r.Kb(6,"div",5),r.Nb(),r.Nb(),r.Ob(7,"nz-tab-nav-operation",6),r.Vb("addClicked",function(){return e.addClicked.emit()})("selected",function(t){return e.onSelectedFromMenu(t)}),r.Nb(),r.sc(8,nt,2,1,"div",7)),2&t&&(r.Bb("ant-tabs-nav-wrap-ping-left",e.pingLeft)("ant-tabs-nav-wrap-ping-right",e.pingRight)("ant-tabs-nav-wrap-ping-top",e.pingTop)("ant-tabs-nav-wrap-ping-bottom",e.pingBottom),r.zb(5),r.ec("ngIf",e.showAddButton),r.zb(1),r.ec("hidden",e.hideBar)("position",e.position)("animated",e.inkBarAnimated),r.zb(1),r.ec("addIcon",e.addIcon)("addable",e.addable)("items",e.hiddenItems),r.zb(1),r.ec("ngIf",e.extraTemplate))},directives:function(){return[kt,L.l,gt,jt,dt,L.q]},encapsulation:2,changeDetection:0}),t}(),Mt=function(){var t=function t(){h(this,t),this.content=null,this.active=!1,this.tabPaneAnimated=!0,this.forceRender=!1};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Db({type:t,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:12,hostBindings:function(t,e){2&t&&(r.Ab("tabindex",e.active?0:-1)("aria-hidden",!e.active),r.qc("visibility",e.tabPaneAnimated?e.active?null:"hidden":null)("height",e.tabPaneAnimated?e.active?null:0:null)("overflow-y",e.tabPaneAnimated?e.active?null:"none":null)("display",e.tabPaneAnimated||e.active?null:"none"),r.Bb("ant-tabs-tabpane-active",e.active))},inputs:{content:"content",active:"active",tabPaneAnimated:"tabPaneAnimated",forceRender:"forceRender"},exportAs:["nzTabBody"],attrs:rt,decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&r.sc(0,at,2,1,"ng-container",0),2&t&&r.ec("ngIf",e.active||e.forceRender)},directives:[L.l,L.q],encapsulation:2,changeDetection:0}),t}(),St=Math.pow(.995,20),kt=function(){var t=function(){function t(e,n){var i=this;h(this,t),this.ngZone=e,this.elementRef=n,this.lastWheelDirection=null,this.lastWheelTimestamp=0,this.lastTimestamp=0,this.lastTimeDiff=0,this.lastMixedWheel=0,this.lastWheelPrevent=!1,this.touchPosition=null,this.lastOffset=null,this.motion=-1,this.unsubscribe=function(){},this.offsetChange=new r.n,this.tabScroll=new r.n,this.onTouchEnd=function(t){if(i.touchPosition){var e=i.lastOffset,n=i.lastTimeDiff;if(i.lastOffset=i.touchPosition=null,e){var r=e.x/n,o=e.y/n,a=Math.abs(r),s=Math.abs(o);if(Math.max(a,s)<.1)return;var c=r,u=o;i.motion=window.setInterval(function(){Math.abs(c)<.01&&Math.abs(u)<.01?window.clearInterval(i.motion):(c*=St,u*=St,i.onOffset(20*c,20*u,t))},20)}}},this.onTouchMove=function(t){if(i.touchPosition){t.preventDefault();var e=t.touches[0],n=e.screenX,r=e.screenY,o=n-i.touchPosition.x,a=r-i.touchPosition.y;i.onOffset(o,a,t);var s=Date.now();i.lastTimeDiff=s-i.lastTimestamp,i.lastTimestamp=s,i.lastOffset={x:o,y:a},i.touchPosition={x:n,y:r}}},this.onTouchStart=function(t){var e=t.touches[0],n=e.screenX,r=e.screenY;i.touchPosition={x:n,y:r},window.clearInterval(i.motion)},this.onWheel=function(t){var e,n=t.deltaX,r=t.deltaY,o=Math.abs(n),a=Math.abs(r);o===a?e="x"===i.lastWheelDirection?n:r:o>a?(e=n,i.lastWheelDirection="x"):(e=r,i.lastWheelDirection="y");var s=Date.now(),c=Math.abs(e);(s-i.lastWheelTimestamp>100||c-i.lastMixedWheel>10)&&(i.lastWheelPrevent=!1),i.onOffset(-e,-e,t),(t.defaultPrevented||i.lastWheelPrevent)&&(i.lastWheelPrevent=!0),i.lastWheelTimestamp=s,i.lastMixedWheel=c}}return p(t,[{key:"ngOnInit",value:function(){var t=this;this.unsubscribe=this.ngZone.runOutsideAngular(function(){var e=t.elementRef.nativeElement,n=Object(m.a)(e,"wheel"),i=Object(m.a)(e,"touchstart"),r=Object(m.a)(e,"touchmove"),o=Object(m.a)(e,"touchend"),a=new b.a;return a.add(t.subscribeWrap("wheel",n,t.onWheel)),a.add(t.subscribeWrap("touchstart",i,t.onTouchStart)),a.add(t.subscribeWrap("touchmove",r,t.onTouchMove)),a.add(t.subscribeWrap("touchend",o,t.onTouchEnd)),function(){a.unsubscribe()}})}},{key:"subscribeWrap",value:function(t,e,n){var i=this;return e.subscribe(function(e){i.tabScroll.emit({type:t,event:e}),e.defaultPrevented||n(e)})}},{key:"onOffset",value:function(t,e,n){var i=this;this.ngZone.run(function(){i.offsetChange.emit({x:t,y:e,event:n})})}},{key:"ngOnDestroy",value:function(){this.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.z),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}}),t}(),At=function(){var t=function t(){h(this,t),this.closeIcon="close"};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nz-icon","","nzTheme","outline",3,"nzType"]],template:function(t,e){1&t&&r.sc(0,st,2,1,"ng-container",0),2&t&&r.ec("nzStringTemplateOutlet",e.closeIcon)},directives:[F.b,P.b],encapsulation:2}),t}(),It=function t(){h(this,t)},Tt=0,Bt=function(){var t=function(){function t(e,n,i,o){h(this,t),this.nzConfigService=e,this.cdr=n,this.directionality=i,this.router=o,this._nzModuleName="tabs",this.nzTabPosition="top",this.nzCanDeactivate=null,this.nzAddIcon="plus",this.nzTabBarStyle=null,this.nzType="line",this.nzSize="default",this.nzAnimated=!0,this.nzTabBarGutter=void 0,this.nzHideAdd=!1,this.nzCentered=!1,this.nzHideAll=!1,this.nzLinkRouter=!1,this.nzLinkExact=!0,this.nzSelectChange=new r.n(!0),this.nzSelectedIndexChange=new r.n,this.nzTabListScroll=new r.n,this.nzClose=new r.n,this.nzAdd=new r.n,this.allTabs=new r.D,this.tabs=new r.D,this.dir="ltr",this.destroy$=new f.a,this.indexToSelect=0,this.selectedIndex=null,this.tabLabelSubscription=b.a.EMPTY,this.tabsSubscription=b.a.EMPTY,this.canDeactivateSubscription=b.a.EMPTY,this.tabSetId=Tt++}return p(t,[{key:"ngOnInit",value:function(){var t,e=this;this.dir=this.directionality.value,null===(t=this.directionality.change)||void 0===t||t.pipe(Object(x.a)(this.destroy$)).subscribe(function(t){e.dir=t,e.cdr.detectChanges()})}},{key:"ngOnDestroy",value:function(){this.destroy$.next(),this.destroy$.complete(),this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.tabsSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()}},{key:"ngAfterContentInit",value:function(){var t=this;Promise.resolve().then(function(){t.setUpRouter()}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabsSubscription=this.tabs.changes.subscribe(function(){if(t.clampTabIndex(t.indexToSelect)===t.selectedIndex)for(var e=t.tabs.toArray(),n=0;n<e.length;n++)if(e[n].isActive){t.indexToSelect=t.selectedIndex=n;break}t.subscribeToTabLabels(),t.cdr.markForCheck()})}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==e){var n=null==this.selectedIndex;n||this.nzSelectChange.emit(this.createChangeEvent(e)),Promise.resolve().then(function(){t.tabs.forEach(function(t,n){return t.isActive=n===e}),n||t.nzSelectedIndexChange.emit(e)})}this.tabs.forEach(function(n,i){n.position=i-e,null==t.selectedIndex||0!==n.position||n.origin||(n.origin=e-t.selectedIndex)}),this.selectedIndex!==e&&(this.selectedIndex=e,this.cdr.markForCheck())}},{key:"onClose",value:function(t,e){e.preventDefault(),e.stopPropagation(),this.nzClose.emit({index:t})}},{key:"onAdd",value:function(){this.nzAdd.emit()}},{key:"clampTabIndex",value:function(t){return Math.min(this.tabs.length-1,Math.max(t||0,0))}},{key:"createChangeEvent",value:function(t){var e=new It;return e.index=t,this.tabs&&this.tabs.length&&(e.tab=this.tabs.toArray()[t],this.tabs.forEach(function(e,n){n!==t&&e.nzDeselect.emit()}),e.tab.nzSelect.emit()),e}},{key:"subscribeToTabLabels",value:function(){var t=this;this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=Object(y.a).apply(void 0,e(this.tabs.map(function(t){return t.stateChanges}))).subscribe(function(){return t.cdr.markForCheck()})}},{key:"subscribeToAllTabChanges",value:function(){var t=this;this.allTabs.changes.pipe(Object(j.a)(this.allTabs)).subscribe(function(e){t.tabs.reset(e.filter(function(e){return e.closestTabSet===t})),t.tabs.notifyOnChanges()})}},{key:"canDeactivateFun",value:function(t,e){return"function"==typeof this.nzCanDeactivate?Object(k.n)(this.nzCanDeactivate(t,e)).pipe(Object(w.a)(),Object(x.a)(this.destroy$)):Object(v.a)(!0)}},{key:"clickNavItem",value:function(t,e,n){t.nzDisabled||(t.nzClick.emit(),this.isRouterLinkClickEvent(e,n)||this.setSelectedIndex(e))}},{key:"isRouterLinkClickEvent",value:function(t,e){var n,i,r=e.target;return!!this.nzLinkRouter&&!!(null===(i=null===(n=this.tabs.toArray()[t])||void 0===n?void 0:n.linkDirective)||void 0===i?void 0:i.elementRef.nativeElement.contains(r))}},{key:"contextmenuNavItem",value:function(t,e){t.nzDisabled||t.nzContextmenu.emit(e)}},{key:"setSelectedIndex",value:function(t){var e=this;this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,t).subscribe(function(n){n&&(e.nzSelectedIndex=t,e.tabNavBarRef.focusIndex=t,e.cdr.markForCheck())})}},{key:"getTabIndex",value:function(t,e){return t.nzDisabled?null:this.selectedIndex===e?0:-1}},{key:"getTabContentId",value:function(t){return"nz-tabs-".concat(this.tabSetId,"-tab-").concat(t)}},{key:"setUpRouter",value:function(){var t=this;if(this.nzLinkRouter){if(!this.router)throw new Error(z.a+" you should import 'RouterModule' if you want to use 'nzLinkRouter'!");this.router.events.pipe(Object(x.a)(this.destroy$),Object(C.a)(function(t){return t instanceof A.a}),Object(j.a)(!0),Object(M.a)(0)).subscribe(function(){t.updateRouterActive(),t.cdr.markForCheck()})}}},{key:"updateRouterActive",value:function(){if(this.router.navigated){var t=this.findShouldActiveTabIndex();t!==this.selectedIndex&&this.setSelectedIndex(t),this.nzHideAll=-1===t}}},{key:"findShouldActiveTabIndex",value:function(){var t=this.tabs.toArray(),e=this.isLinkActive(this.router);return t.findIndex(function(t){var n=t.linkDirective;return!!n&&(e(n.routerLink)||e(n.routerLinkWithHref))})}},{key:"isLinkActive",value:function(t){var e=this;return function(n){return!!n&&t.isActive(n.urlTree,e.nzLinkExact)}}},{key:"getTabContentMarginValue",value:function(){return 100*-(this.nzSelectedIndex||0)}},{key:"getTabContentMarginLeft",value:function(){return this.tabPaneAnimated&&"rtl"!==this.dir?this.getTabContentMarginValue()+"%":""}},{key:"getTabContentMarginRight",value:function(){return this.tabPaneAnimated&&"rtl"===this.dir?this.getTabContentMarginValue()+"%":""}},{key:"nzSelectedIndex",get:function(){return this.selectedIndex},set:function(t){this.indexToSelect=Object(u.f)(t,null)}},{key:"position",get:function(){return-1===["top","bottom"].indexOf(this.nzTabPosition)?"vertical":"horizontal"}},{key:"addable",get:function(){return"editable-card"===this.nzType&&!this.nzHideAdd}},{key:"closable",get:function(){return"editable-card"===this.nzType}},{key:"line",get:function(){return"line"===this.nzType}},{key:"inkBarAnimated",get:function(){return this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.inkBar)}},{key:"tabPaneAnimated",get:function(){return"horizontal"===this.position&&this.line&&("boolean"==typeof this.nzAnimated?this.nzAnimated:this.nzAnimated.tabPane)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Jb(D.a),r.Jb(r.h),r.Jb(c.b,8),r.Jb(A.c,8))},t.\u0275cmp=r.Db({type:t,selectors:[["nz-tabset"]],contentQueries:function(t,e,n){var i;(1&t&&r.Cb(n,xt,!0),2&t)&&(r.jc(i=r.Wb())&&(e.allTabs=i))},viewQuery:function(t,e){var n;(1&t&&r.xc(Ct,!0),2&t)&&(r.jc(n=r.Wb())&&(e.tabNavBarRef=n.first))},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(t,e){2&t&&r.Bb("ant-tabs-card","card"===e.nzType||"editable-card"===e.nzType)("ant-tabs-editable","editable-card"===e.nzType)("ant-tabs-editable-card","editable-card"===e.nzType)("ant-tabs-centered",e.nzCentered)("ant-tabs-rtl","rtl"===e.dir)("ant-tabs-top","top"===e.nzTabPosition)("ant-tabs-bottom","bottom"===e.nzTabPosition)("ant-tabs-left","left"===e.nzTabPosition)("ant-tabs-right","right"===e.nzTabPosition)("ant-tabs-default","default"===e.nzSize)("ant-tabs-small","small"===e.nzSize)("ant-tabs-large","large"===e.nzSize)},inputs:{nzTabPosition:"nzTabPosition",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:"nzHideAdd",nzCentered:"nzCentered",nzHideAll:"nzHideAll",nzLinkRouter:"nzLinkRouter",nzLinkExact:"nzLinkExact",nzSelectedIndex:"nzSelectedIndex",nzTabBarExtraContent:"nzTabBarExtraContent"},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabset"],features:[r.yb([{provide:bt,useExisting:t}])],decls:4,vars:16,consts:[[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked",4,"ngIf"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated",4,"ngFor","ngForOf"],[3,"ngStyle","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","tabScroll","selectFocusedIndex","addClicked"],["class","ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled","click","contextmenu",4,"ngFor","ngForOf"],[1,"ant-tabs-tab",3,"click","contextmenu"],["role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-close-button","",3,"closeIcon","click",4,"ngIf"],["nz-tab-close-button","",3,"closeIcon","click"],["nz-tab-body","",3,"active","content","forceRender","tabPaneAnimated"]],template:function(t,e){1&t&&(r.sc(0,ft,2,9,"nz-tabs-nav",0),r.Ob(1,"div",1),r.Ob(2,"div",2),r.sc(3,pt,1,4,"div",3),r.Nb(),r.Nb()),2&t&&(r.ec("ngIf",e.tabs.length),r.zb(2),r.qc("margin-left",e.getTabContentMarginLeft())("margin-right",e.getTabContentMarginRight()),r.Bb("ant-tabs-content-top","top"===e.nzTabPosition)("ant-tabs-content-bottom","bottom"===e.nzTabPosition)("ant-tabs-content-left","left"===e.nzTabPosition)("ant-tabs-content-right","right"===e.nzTabPosition)("ant-tabs-content-animated",e.tabPaneAnimated),r.zb(1),r.ec("ngForOf",e.tabs))},directives:[L.l,L.k,Ct,L.m,Ot,s.b,F.b,At,Mt],encapsulation:2}),Object(S.c)([Object(D.b)(),Object(S.e)("design:type",String)],t.prototype,"nzType",void 0),Object(S.c)([Object(D.b)(),Object(S.e)("design:type",String)],t.prototype,"nzSize",void 0),Object(S.c)([Object(D.b)(),Object(S.e)("design:type",Object)],t.prototype,"nzAnimated",void 0),Object(S.c)([Object(D.b)(),Object(S.e)("design:type",Number)],t.prototype,"nzTabBarGutter",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Boolean)],t.prototype,"nzHideAdd",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Boolean)],t.prototype,"nzCentered",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzHideAll",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzLinkRouter",void 0),Object(S.c)([Object(k.a)(),Object(S.e)("design:type",Object)],t.prototype,"nzLinkExact",void 0),t}(),Lt=function(){var t=function t(){h(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[c.a,L.c,I.b,P.c,F.a,T.b,s.a,B.b,E.b]]}),t}()},qaDU:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("mrSG"),r=n("kXyF"),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(i.g)(e):Object(i.g)(o);return r.e.transform(n,t)}},r0DC:function(t,e,n){"use strict";n.d(e,"b",function(){return u}),n.d(e,"a",function(){return l});var i=n("cyZq"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);Object(i.c)(n,function(t){var n=t.split(":");e.addColorStop(n[0],n[1])})}function u(t,e,n){if(Object(i.k)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var i,o,a=r.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),u=a[2],l=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:l.minX,y:l.minY},o={x:l.maxX,y:l.maxY}):.5*Math.PI<=s&&s<Math.PI?(i={x:l.maxX,y:l.minY},o={x:l.minX,y:l.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:l.maxX,y:l.maxY},o={x:l.minX,y:l.minY}):(i={x:l.minX,y:l.maxY},o={x:l.maxX,y:l.minY});var h=Math.tan(s),f=h*h,p=t.createLinearGradient(i.x,i.y,(o.x-i.x+h*(o.y-i.y))/(f+1)+i.x,h*(o.x-i.x+h*(o.y-i.y))/(f+1)+i.y);return c(u,p),p}(t,e,n);if("r"===n[0])return function(t,e,n){var i=o.exec(n),r=parseFloat(i[1]),a=parseFloat(i[2]),u=parseFloat(i[3]),l=i[4];if(0===u){var h=l.match(s);return h[h.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,v=t.createRadialGradient(f.minX+p*r,f.minY+d*a,0,f.minX+p/2,f.minY+d/2,u*g);return c(l,v),v}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,o=a.exec(n),s=o[1],c=o[2];function u(){i=t.createPattern(r,s),e.set("pattern",i),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return r=new Image,c.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=c,r.complete?u():(r.onload=u,r.src=r.src),i}(t,e,n)}return n}}function l(t){var e=0,n=0,r=0,o=0;return Object(i.g)(t)?1===t.length?e=n=r=o=t[0]:2===t.length?(e=r=t[0],n=o=t[1]):3===t.length?(e=t[0],n=o=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],o=t[3]):e=n=r=o=t,[e,n,r,o]}},rtSP:function(t,e,r){"use strict";r.d(e,"a",function(){return P});var o=r("mrSG"),a=r("zJSt"),s=r("w02o"),c=r("YuPD"),u=r("iTfj");function l(t,e){var i=0;if(void 0===e){var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;(a=+a)&&(i+=a)}}catch(h){o.e(h)}finally{o.f()}}else{var s,c=-1,u=n(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;(l=+e(l,++c,t))&&(i+=l)}}catch(h){u.e(h)}finally{u.f()}}return i}function h(t,e){var i;if(void 0===e){var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!=a&&(i<a||void 0===i&&a>=a)&&(i=a)}}catch(h){o.e(h)}finally{o.f()}}else{var s,c=-1,u=n(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;null!=(l=e(l,++c,t))&&(i<l||void 0===i&&l>=l)&&(i=l)}}catch(h){u.e(h)}finally{u.f()}}return i}function f(t,e){var i;if(void 0===e){var r,o=n(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!=a&&(i>a||void 0===i&&a>=a)&&(i=a)}}catch(h){o.e(h)}finally{o.f()}}else{var s,c=-1,u=n(t);try{for(u.s();!(s=u.n()).done;){var l=s.value;null!=(l=e(l,++c,t))&&(i>l||void 0===i&&l>=l)&&(i=l)}}catch(h){u.e(h)}finally{u.f()}}return i}function p(t){return t.target.depth}function d(t,e){return t.sourceLinks.length?t.depth:e-1}function g(t){return function(){return t}}function v(t,e){return m(t.source,e.source)||t.index-e.index}function y(t,e){return m(t.target,e.target)||t.index-e.index}function m(t,e){return t.y0-e.y0}function b(t){return t.value}function x(t){return t.index}function O(t){return t.nodes}function j(t){return t.links}function w(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function C(t){var e,i=n(t.nodes);try{for(i.s();!(e=i.n()).done;){var r,o=e.value,a=o.y0,s=a,c=n(o.sourceLinks);try{for(c.s();!(r=c.n()).done;){var u=r.value;u.y0=a+u.width/2,a+=u.width}}catch(p){c.e(p)}finally{c.f()}var l,h=n(o.targetLinks);try{for(h.s();!(l=h.n()).done;){var f=l.value;f.y1=s+f.width/2,s+=f.width}}catch(p){h.e(p)}finally{h.f()}}}catch(p){i.e(p)}finally{i.f()}}var M=Math.PI,S=2*M,k=S-1e-6;function A(){this._x0=this._y0=this._x1=this._y1=null,this._=""}A.prototype=(function(){return new A}).prototype={constructor:A,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){var o=this._x1,a=this._y1,s=(n=+n)-(t=+t),c=(i=+i)-(e=+e),u=o-t,l=a-e,h=u*u+l*l;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>1e-6)if(Math.abs(l*s-c*u)>1e-6&&r){var f=n-o,p=i-a,d=s*s+c*c,g=f*f+p*p,v=Math.sqrt(d),y=Math.sqrt(h),m=r*Math.tan((M-Math.acos((d+h-g)/(2*v*y)))/2),b=m/y,x=m/v;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*u)+","+(e+b*l)),this._+="A"+r+","+r+",0,0,"+ +(l*f>u*p)+","+(this._x1=t+x*s)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),c=t+a,u=e+s,l=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+u:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%S+S),h>k?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=u):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=M)+","+l+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var I={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?f(t.sourceLinks,p)-1:0},justify:d},T={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0},B=r("tKoa"),L=r("DyAw");function F(t){var e=t.chart,r=t.options,o=r.data,a=r.sourceField,s=r.targetField,c=r.weightField,p=r.color,M=r.nodeStyle,S=r.edgeStyle,k=r.label,A=r.tooltip,F=r.nodeAlign,E=r.nodePaddingRatio,P=r.nodeWidthRatio,D=r.nodeSort;e.legend(!1),e.tooltip(A),e.axis(!1);var z=function(t,e){var r=function(t){return Object(u.b)({},T,t)}(t),o=r.nodeId,a=r.nodeSort,s=r.nodeAlign,c=r.nodeWidth,p=r.nodePadding,M=function(){var t,e,r,o=0,a=0,s=1,c=1,u=24,p=8,M=x,S=d,k=O,A=j,I=6;function T(){var t={nodes:k.apply(null,arguments),links:A.apply(null,arguments)};return B(t),L(t),F(t),E(t),P(t),C(t),t}function B(t){var e,o=t.nodes,a=t.links,s=n(o.entries());try{for(s.s();!(e=s.n()).done;){var c=i(e.value,2),u=c[0],l=c[1];l.index=u,l.sourceLinks=[],l.targetLinks=[]}}catch(S){s.e(S)}finally{s.f()}var h,f=new Map(o.map(function(t,e){return[M(t,e,o),t]})),p=n(a.entries());try{for(p.s();!(h=p.n()).done;){var d=i(h.value,2),g=d[0],v=d[1];v.index=g;var y=v.source,m=v.target;"object"!=typeof y&&(y=v.source=w(f,y)),"object"!=typeof m&&(m=v.target=w(f,m)),y.sourceLinks.push(v),m.targetLinks.push(v)}}catch(S){p.e(S)}finally{p.f()}if(null!=r){var b,x=n(o);try{for(x.s();!(b=x.n()).done;){var O=b.value,j=O.sourceLinks,C=O.targetLinks;j.sort(r),C.sort(r)}}catch(S){x.e(S)}finally{x.f()}}}function L(t){var e,i=n(t.nodes);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.value=void 0===r.fixedValue?Math.max(l(r.sourceLinks,b),l(r.targetLinks,b)):r.fixedValue}}catch(o){i.e(o)}finally{i.f()}}function F(t){for(var e=t.nodes,i=e.length,r=new Set(e),o=new Set,a=0;r.size;){var s,c=n(r);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.depth=a;var l,h=n(u.sourceLinks);try{for(h.s();!(l=h.n()).done;){var f=l.value.target;o.add(f)}}catch(p){h.e(p)}finally{h.f()}}}catch(p){c.e(p)}finally{c.f()}if(++a>i)throw new Error("circular link");r=o,o=new Set}}function E(t){for(var e=t.nodes,i=e.length,r=new Set(e),o=new Set,a=0;r.size;){var s,c=n(r);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.height=a;var l,h=n(u.targetLinks);try{for(h.s();!(l=h.n()).done;){var f=l.value.source;o.add(f)}}catch(p){h.e(p)}finally{h.f()}}}catch(p){c.e(p)}finally{c.f()}if(++a>i)throw new Error("circular link");r=o,o=new Set}}function P(i){var r=function(t){var i,r=t.nodes,a=h(r,function(t){return t.depth})+1,c=(s-o-u)/(a-1),l=new Array(a),f=n(r);try{for(f.s();!(i=f.n()).done;){var p=i.value,d=Math.max(0,Math.min(a-1,Math.floor(S.call(null,p,a))));p.layer=d,p.x0=o+d*c,p.x1=p.x0+u,l[d]?l[d].push(p):l[d]=[p]}}catch(y){f.e(y)}finally{f.f()}if(e){var g,v=n(l);try{for(v.s();!(g=v.n()).done;){g.value.sort(e)}}catch(y){v.e(y)}finally{v.f()}}return l}(i);t=Math.min(p,(c-a)/(h(r,function(t){return t.length})-1)),function(e){var i,r=f(e,function(e){return(c-a-(e.length-1)*t)/l(e,b)}),o=n(e);try{for(o.s();!(i=o.n()).done;){var s,u=i.value,h=a,p=n(u);try{for(p.s();!(s=p.n()).done;){var d=s.value;d.y0=h,d.y1=h+d.value*r,h=d.y1+t;var g,v=n(d.sourceLinks);try{for(v.s();!(g=v.n()).done;){var y=g.value;y.width=y.value*r}}catch(O){v.e(O)}finally{v.f()}}}catch(O){p.e(O)}finally{p.f()}h=(c-h+t)/(u.length+1);for(var m=0;m<u.length;++m){var x=u[m];x.y0+=h*(m+1),x.y1+=h*(m+1)}N(u)}}catch(O){o.e(O)}finally{o.f()}}(r);for(var d=0;d<I;++d){var g=Math.pow(.99,d),v=Math.max(1-g,(d+1)/I);z(r,g,v),D(r,g,v)}}function D(t,i,r){for(var o=1,a=t.length;o<a;++o){var s,c=t[o],u=n(c);try{for(u.s();!(s=u.n()).done;){var l,h=s.value,f=0,p=0,d=n(h.targetLinks);try{for(d.s();!(l=d.n()).done;){var g=l.value,v=g.source,y=g.value*(h.layer-v.layer);f+=X(v,h)*y,p+=y}}catch(x){d.e(x)}finally{d.f()}if(p>0){var b=(f/p-h.y0)*i;h.y0+=b,h.y1+=b,G(h)}}}catch(x){u.e(x)}finally{u.f()}void 0===e&&c.sort(m),R(c,r)}}function z(t,i,r){for(var o=t.length-2;o>=0;--o){var a,s=t[o],c=n(s);try{for(c.s();!(a=c.n()).done;){var u,l=a.value,h=0,f=0,p=n(l.sourceLinks);try{for(p.s();!(u=p.n()).done;){var d=u.value,g=d.target,v=d.value*(g.layer-l.layer);h+=V(l,g)*v,f+=v}}catch(b){p.e(b)}finally{p.f()}if(f>0){var y=(h/f-l.y0)*i;l.y0+=y,l.y1+=y,G(l)}}}catch(b){c.e(b)}finally{c.f()}void 0===e&&s.sort(m),R(s,r)}}function R(e,n){var i=e.length>>1,r=e[i];Y(e,r.y0-t,i-1,n),_(e,r.y1+t,i+1,n),Y(e,c,e.length-1,n),_(e,a,0,n)}function _(e,n,i,r){for(;i<e.length;++i){var o=e[i],a=(n-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function Y(e,n,i,r){for(;i>=0;--i){var o=e[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function G(t){var e=t.sourceLinks,i=t.targetLinks;if(void 0===r){var o,a=n(i);try{for(a.s();!(o=a.n()).done;){o.value.source.sourceLinks.sort(y)}}catch(u){a.e(u)}finally{a.f()}var s,c=n(e);try{for(c.s();!(s=c.n()).done;){s.value.target.targetLinks.sort(v)}}catch(u){c.e(u)}finally{c.f()}}}function N(t){if(void 0===r){var e,i=n(t);try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.sourceLinks,s=o.targetLinks;a.sort(y),s.sort(v)}}catch(c){i.e(c)}finally{i.f()}}}function X(e,i){var r,o=e.y0-(e.sourceLinks.length-1)*t/2,a=n(e.sourceLinks);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.target,u=s.width;if(c===i)break;o+=u+t}}catch(g){a.e(g)}finally{a.f()}var l,h=n(i.targetLinks);try{for(h.s();!(l=h.n()).done;){var f=l.value,p=f.source,d=f.width;if(p===e)break;o-=d}}catch(g){h.e(g)}finally{h.f()}return o}function V(e,i){var r,o=i.y0-(i.targetLinks.length-1)*t/2,a=n(i.targetLinks);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.source,u=s.width;if(c===e)break;o+=u+t}}catch(g){a.e(g)}finally{a.f()}var l,h=n(e.sourceLinks);try{for(h.s();!(l=h.n()).done;){var f=l.value,p=f.target,d=f.width;if(p===i)break;o-=d}}catch(g){h.e(g)}finally{h.f()}return o}return T.update=function(t){return C(t),t},T.nodeId=function(t){return arguments.length?(M="function"==typeof t?t:g(t),T):M},T.nodeAlign=function(t){return arguments.length?(S="function"==typeof t?t:g(t),T):S},T.nodeSort=function(t){return arguments.length?(e=t,T):e},T.nodeWidth=function(t){return arguments.length?(u=+t,T):u},T.nodePadding=function(e){return arguments.length?(p=t=+e,T):p},T.nodes=function(t){return arguments.length?(k="function"==typeof t?t:g(t),T):k},T.links=function(t){return arguments.length?(A="function"==typeof t?t:g(t),T):A},T.linkSort=function(t){return arguments.length?(r=t,T):r},T.size=function(t){return arguments.length?(o=a=0,s=+t[0],c=+t[1],T):[s-o,c-a]},T.extent=function(t){return arguments.length?(o=+t[0][0],s=+t[1][0],a=+t[0][1],c=+t[1][1],T):[[o,a],[s,c]]},T.iterations=function(t){return arguments.length?(I=+t,T):I},T}().nodeSort(a).links(function(t){return t.links}).nodeWidth(c).nodePadding(p).nodeAlign(function(t){return(Object(u.O)(t)?I[t]:Object(u.H)(t)?t:null)||d}(s)).extent([[0,0],[1,1]]).nodeId(o)(e);return M.nodes.forEach(function(t){var e=t.x0,n=t.x1,i=t.y0,r=t.y1;t.x=[e,n,n,e],t.y=[i,i,r,r]}),M.links.forEach(function(t){var e=t.source.x1,n=t.target.x0;t.x=[e,e,n,n];var i=t.width/2;t.y=[t.y0+i,t.y0-i,t.y1+i,t.y1-i]}),M}({nodeAlign:F,nodePadding:E,nodeWidth:P,nodeSort:D},Object(L.b)(o,a,s,c)),R=z.links,_=z.nodes.map(function(t){return{x:t.x,y:t.y,name:t.name}}),Y=R.map(function(t){return{source:t.source.name,target:t.target.name,name:t.source.name||t.target.name,x:t.x,y:t.y,value:t.value}}),G=e.createView();G.data(_),Object(B.f)({chart:G,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:p,style:M},label:k,tooltip:!1}});var N=e.createView();return N.data(Y),Object(B.b)({chart:N,options:{xField:"x",yField:"y",seriesField:"name",edge:{color:p,style:S,shape:"arc"},tooltip:A,state:{active:{style:{opacity:.8,lineWidth:0}}}}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0},y:{sync:!0,nice:!0},name:{sync:"color"}}),t}function E(t){return Object(c.e)(F,s.c,s.a,s.j)(t)}var P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}return Object(o.d)(e,t),e.prototype.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},label:{fields:["x","name"],callback:function(t,e){var n=1===t[1];return{style:{fill:"#545454",textAlign:n?"end":"start"},offsetX:n?-8:8,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value"],formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01}},e.prototype.getSchemaAdaptor=function(){return E},e}(a.a)},sYIZ:function(t,e,n){"use strict";var i=n("mrSG"),r=n("aFU3");function o(t,e,n){var i=t.getTotalMatrix();if(i){var o=function(t,e){if(e){var n=Object(r.invert)(e);return Object(r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[o[0],o[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=o(t,e,n);if(t.isClipped(i[0],i[1]))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}function s(t,e,n){if(!a(t,e,n))return null;for(var i=null,r=t.getChildren(),c=r.length-1;c>=0;c--){var u=r[c];if(u.isGroup())i=s(u,e,n);else if(a(u,e,n)){var l=u,h=o(u,e,n);l.isInShape(h[0],h[1])&&(i=u)}if(i)break}return i}var c=n("R5nb"),u=n("wq2r"),l=n("cyZq"),h=n("9eUa"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return u.a},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(l.d)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?s(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=Object(h.f)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=Object(h.g)(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(l.a)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),Object(h.a)(t,this),Object(h.d)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),Object(h.a)(t,this),Object(h.b)(this,n,i),Object(h.d)(t,n,i),t.restore()):e.length&&Object(h.c)(e),Object(l.c)(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=Object(l.n)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e}(r.AbstractCanvas);e.a=f},sqD9:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var i=n("mrSG"),r=n("iTfj");function o(t){return"number"==typeof t&&!isNaN(t)}function a(t,e,n,a){var s=Object(r.cb)(t,function(t,i){var r=i[n],a=t.has(r)?t.get(r):0,s=i[e];return a=o(s)?a+s:a,t.set(r,a),t},new Map);return Object(r.U)(t,function(t){var r,c=t[e],u=t[n],l=o(c)?c/s.get(u):0;return Object(i.a)(Object(i.a)({},t),((r={})[a]=l,r))})}},sstZ:function(t,e,n){"use strict";n.d(e,"j",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"b",function(){return s});var i=n("iTfj");function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",function(){return i.I}),n.d(e,"d",function(){return i.H}),n.d(e,"h",function(){return i.O}),n.d(e,"f",function(){return i.M}),n.d(e,"i",function(){return i.Y}),n.d(e,"a",function(){return i.j}),n.d(e,"k",function(){return i.qb});var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),i=!1;n;){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},tE4n:function(t,e,n){"use strict";n.d(e,"a",function(){return E});var r=n("mrSG"),o=n("zJSt"),a=n("YuPD"),s=n("iTfj"),c=n("tKoa"),u=n("w02o");function l(t,e,n,i){t=t.filter(function(t){var i=e(t),r=n(t);return null!=i&&isFinite(i)&&null!=r&&isFinite(r)}),i&&t.sort(function(t,n){return e(t)-e(n)});for(var r,o,a,s=t.length,c=new Float64Array(s),u=new Float64Array(s),l=0,h=0,f=0;f<s;)a=t[f],c[f]=r=+e(a),u[f]=o=+n(a),l+=(r-l)/++f,h+=(o-h)/f;for(var p=0;p<s;++p)c[p]-=l,u[p]-=h;return[c,u,l,h]}function h(t,e,n,i){for(var r=0,o=0,a=t.length;o<a;o++){var s=t[o],c=+e(s),u=+n(s);null!=c&&isFinite(c)&&null!=u&&isFinite(u)&&i(c,u,r++)}}function f(t,e,n,i,r){var o=0,a=0;return h(t,e,n,function(t,e){var n=e-r(t),s=e-i;o+=n*n,a+=s*s}),1-o/a}function p(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function d(t,e,n){for(var i=Math.log(e-t)*Math.LOG10E+1|0,r=1*Math.pow(10,-i/2-1),o=[s(t),s(e)],a=0;c(o)&&a<1e4;);return o;function s(t){return[t,n(t)]}function c(t){a++;for(var e,n=t.length,i=!1,o=0;o<n-1;o++){var c=t[o],u=[((e=[c,t[o+1]])[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2],l=s(u[0]),h=p([c,u]),f=p([c,l]);Math.abs(h-f)>r&&(t.splice(o+1,0,l),i=!0)}return i}}function g(t,e,n,i){var r=i-t*t,o=Math.abs(r)<1e-24?0:(n-t*e)/r;return[e-o*t,o]}var v=function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var o=0,a=0,s=0,c=0,u=0,l=t?+t[0]:1/0,p=t?+t[1]:-1/0;h(r,e,n,function(e,n){++o,a+=(e-a)/o,s+=(n-s)/o,c+=(e*n-c)/o,u+=(e*e-u)/o,t||(e<l&&(l=e),e>p&&(p=e))});var d=i(g(a,s,c,u),2),v=d[0],y=d[1],m=function(t){return y*t+v},b=[[l,m(l)],[p,m(p)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=f(r,e,n,s,m),b}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r};function y(t){t.sort(function(t,e){return t-e});var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var i=t[e],r=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>r&&t[o]-i<=i-t[r];)n[0]=++r,n[1]=o,++o}var x=function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var o,a,s,c,u=i(l(r,e,n),4),p=u[0],g=u[1],v=u[2],y=u[3],m=p.length,b=0,x=0,O=0,j=0,w=0;for(o=0;o<m;)a=p[o],s=g[o++],b+=((c=a*a)-b)/o,x+=(c*a-x)/o,O+=(c*c-O)/o,j+=(a*s-j)/o,w+=(c*s-w)/o;var C=0,M=0,S=t?+t[0]:1/0,k=t?+t[1]:-1/0;h(r,e,n,function(e,n){M++,C+=(n-C)/M,t||(e<S&&(S=e),e>k&&(k=e))});var A=O-b*b,I=b*A-x*x,T=(w*b-j*x)/I,B=(j*A-w*x)/I,L=-T*b,F=function(t){return T*(t-=v)*t+B*t+L+y},E=d(S,k,F);return E.a=T,E.b=B-2*T*v,E.c=L-B*v+T*v*v+y,E.predict=F,E.rSquared=f(r,e,n,C,F),E}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},O={exp:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var o=0,a=0,s=0,c=0,u=0,l=0,p=t?+t[0]:1/0,v=t?+t[1]:-1/0;h(r,e,n,function(e,n){var i=Math.log(n),r=e*n;++o,a+=(n-a)/o,c+=(r-c)/o,l+=(e*r-l)/o,s+=(n*i-s)/o,u+=(r*i-u)/o,t||(e<p&&(p=e),e>v&&(v=e))});var y=i(g(c/a,s/a,u/a,l/a),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},O=d(p,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=f(r,e,n,a,x),O}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},linear:v,loess:function(){var t=function(t){return t[0]},e=function(t){return t[1]},n=.3;function r(r){for(var o=i(l(r,t,e,!0),4),a=o[0],s=o[1],c=o[2],u=o[3],h=a.length,f=Math.max(2,~~(n*h)),p=new Float64Array(h),d=new Float64Array(h),v=new Float64Array(h).fill(1),x=-1;++x<=2;){for(var O=[0,f-1],j=0;j<h;++j){for(var w=a[j],C=O[0],M=O[1],S=0,k=0,A=0,I=0,T=0,B=1/Math.abs(a[w-a[C]>a[M]-w?C:M]-w||1),L=C;L<=M;++L){var F=a[L],E=s[L],P=m(Math.abs(w-F)*B)*v[L],D=F*P;S+=P,k+=D,A+=E*P,I+=E*D,T+=F*D}var z=i(g(k/S,A/S,I/S,T/S),2),R=z[0],_=z[1];p[j]=R+_*w,d[j]=Math.abs(s[j]-p[j]),b(a,j+1,O)}if(2===x)break;var Y=y(d);if(Math.abs(Y)<1e-12)break;for(var G,N,X=0;X<h;++X)G=d[X]/(6*Y),v[X]=G>=1?1e-12:(N=1-G*G)*N}return function(t,e,n,i){for(var r,o=t.length,a=[],s=0,c=0,u=[];s<o;++s)r=t[s]+n,u[0]===r?u[1]+=(e[s]-u[1])/++c:(c=0,u[1]+=i,u=[r,e[s]],a.push(u));return u[1]+=i,a}(a,p,c,u)}return r.bandwidth=function(t){return arguments.length?(n=t,r):n},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(t){return arguments.length?(e=t,r):e},r},log:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var o=0,a=0,s=0,c=0,u=0,l=t?+t[0]:1/0,p=t?+t[1]:-1/0;h(r,e,n,function(e,n){var i=Math.log(e);++o,a+=(i-a)/o,s+=(n-s)/o,c+=(i*n-c)/o,u+=(i*i-u)/o,t||(e<l&&(l=e),e>p&&(p=e))});var v=i(g(a,s,c,u),2),y=v[0],m=v[1],b=function(t){return m*Math.log(t)+y},x=d(l,p,b);return x.a=m,x.b=y,x.predict=b,x.rSquared=f(r,e,n,s,b),x}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},poly:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]},r=3;function o(o){if(1===r){var a=v().x(e).y(n).domain(t)(o);return a.coefficients=[a.b,a.a],delete a.a,delete a.b,a}if(2===r){var s=x().x(e).y(n).domain(t)(o);return s.coefficients=[s.c,s.b,s.a],delete s.a,delete s.b,delete s.c,s}var c,u,p,g,y,m=i(l(o,e,n),4),b=m[0],O=m[1],j=m[2],w=m[3],C=b.length,M=[],S=[],k=r+1,A=0,I=0,T=t?+t[0]:1/0,B=t?+t[1]:-1/0;for(h(o,e,n,function(e,n){++I,A+=(n-A)/I,t||(e<T&&(T=e),e>B&&(B=e))}),c=0;c<k;++c){for(p=0,g=0;p<C;++p)g+=Math.pow(b[p],c)*O[p];for(M.push(g),y=new Float64Array(k),u=0;u<k;++u){for(p=0,g=0;p<C;++p)g+=Math.pow(b[p],c+u);y[u]=g}S.push(y)}S.push(M);var L=function(t){var e,n,i,r,o,a=t.length-1,s=[];for(e=0;e<a;++e){for(r=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][r])&&(r=n);for(i=e;i<a+1;++i)o=t[i][e],t[i][e]=t[i][r],t[i][r]=o;for(n=e+1;n<a;++n)for(i=a;i>=e;i--)t[i][n]-=t[i][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,i=n+1;i<a;++i)o+=t[i][n]*s[i];s[n]=(t[a][n]-o)/t[n][n]}return s}(S),F=function(t){var e=w+L[0]+L[1]*(t-=j)+L[2]*t*t;for(c=3;c<k;++c)e+=L[c]*Math.pow(t,c);return e},E=d(T,B,F);return E.coefficients=function(t,e,n,i){var r,o,a,s,c=Array(t);for(r=0;r<t;++r)c[r]=0;for(r=t-1;r>=0;--r)for(a=e[r],s=1,c[r]+=a,o=1;o<=r;++o)s*=(r+1-o)/o,c[r-o]+=a*Math.pow(n,o)*s;return c[0]+=i,c}(k,L,-j,w),E.predict=F,E.rSquared=f(o,e,n,A,F),E}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(e=t,o):e},o.y=function(t){return arguments.length?(n=t,o):n},o.order=function(t){return arguments.length?(r=t,o):r},o},pow:function(){var t,e=function(t){return t[0]},n=function(t){return t[1]};function r(r){var o=0,a=0,s=0,c=0,u=0,l=0,p=t?+t[0]:1/0,v=t?+t[1]:-1/0;h(r,e,n,function(e,n){var i=Math.log(e),r=Math.log(n);++o,a+=(i-a)/o,s+=(r-s)/o,c+=(i*r-c)/o,u+=(i*i-u)/o,l+=(n-l)/o,t||(e<p&&(p=e),e>v&&(v=e))});var y=i(g(a,s,c,u),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},O=d(p,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=f(r,e,n,l,x),O}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(e=t,r):e},r.y=function(t){return arguments.length?(n=t,r):n},r},quad:x},j=function(t){var e,n=t.meta,i=void 0===n?{}:n,o=t.xField,a=t.yField,c=t.data,u=c[0][o],l=c[0][a],h=u>0,f=l>0,p=function(t,e,n){var r=Object(s.s)(i,[t,e]);return Object(s.K)(r)?r:"x"===n?{min:h?0:2*u,max:h?2*u:0}[e]:{min:f?0:2*l,max:f?2*l:0}[e]};return Object(r.a)(Object(r.a)({},i),((e={})[o]=Object(r.a)(Object(r.a)({},i[o]),{min:p(o,"min","x"),max:p(o,"max","x")}),e[a]=Object(r.a)(Object(r.a)({},i[a]),{min:p(a,"min","y"),max:p(a,"max","y")}),e))};function w(t){var e=t.options,n=e.data;return 1===(void 0===n?[]:n).length?Object(a.b)({},t,{options:Object(r.a)(Object(r.a)({},e),{meta:j(e)})}):t}function C(t){var e=t.chart,n=t.options,i=n.data,o=n.type,s=n.color,u=n.shape,l=n.size,h=n.pointStyle,f=n.shapeField,p=n.colorField,d=n.xField,g=n.yField,v=n.sizeField,y=n.tooltip;y&&!y.fields&&(y=Object(r.a)(Object(r.a)({},y),{fields:[d,g,p,v,f]})),e.data(i),Object(c.e)(Object(a.b)({},t,{options:{seriesField:p,point:{color:s,shape:u,size:l,style:h},tooltip:y}}));var m=Object(a.c)(e,"point");return o&&m.adjust(o),t}function M(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,s=n.yField;return Object(a.e)(Object(u.f)(((e={})[o]=i,e[s]=r,e)))(t)}function S(t){var e=t.chart,n=t.options,i=n.yAxis,r=n.yField;return e.axis(n.xField,n.xAxis),e.axis(r,i),t}function k(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.shapeField,a=n.sizeField;return(Object(s.C)(i)?i:i||o||r)?(e.legend(r||o,i),a&&e.legend(a,!1)):e.legend(!1),t}function A(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.c)(e,"point");if(i){var c=i.callback,u=Object(r.f)(i,["callback"]);s.label({fields:[o],callback:c,cfg:Object(a.o)(u)})}else s.label(!1);return t}function I(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,o=void 0===i?0:i,s=e.yBaseline,c=void 0===s?0:s,l=e.labels,h=e.regionStyle,f=e.lineStyle,p=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(o,c);new Array(4).join(",").split(",").forEach(function(t,e){n.push(Object(r.a)(Object(r.a)({type:"region",top:!1},p.regionStyle[e].position),{style:Object(a.b)({},p.regionStyle[e].style,null==h?void 0:h[e])}),Object(r.a)({type:"text",top:!0},Object(a.b)({},p.labelStyle[e],null==l?void 0:l[e])))}),n.push({type:"line",top:!1,start:["min",c],end:["max",c],style:Object(a.b)({},p.lineStyle,f)},{type:"line",top:!1,start:[o,"min"],end:[o,"max"],style:Object(a.b)({},p.lineStyle,f)})}return Object(a.e)(Object(u.b)(n))(t)}function T(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var o=i.style,c=i.top,u=void 0!==c&&c,l={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:u,render:function(t,i){var c=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),u=function(t){var e=t.options,n=e.xField,i=e.yField,r=e.data,o=e.regressionLine,c=o.type,u=void 0===c?"linear":c,l=o.algorithm;return function(t,e){var n=e.view,i=e.options,r=i.yField,o=n.getScaleByField(i.xField),s=n.getScaleByField(r),c=t.map(function(t){return n.getCoordinate().convert({x:o.scale(t[0]),y:s.scale(t[1])})});return Object(a.h)(c,!1)}(l?Object(s.B)(l)?l:l(r):O[u]().x(function(t){return t[n]}).y(function(t){return t[i]})(r),t)}({view:i,options:e});c.addShape("path",{name:"regression-line",attrs:Object(r.a)(Object(r.a)({path:u},l),o)})}})}return t}function B(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function L(t){return Object(a.e)(w,C,M,S,k,B,A,u.c,I,u.a,u.j,T)(t)}var F=n("kXyF");Object(F.i)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]});var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e}return Object(r.d)(e,t),e.prototype.getSchemaAdaptor=function(){return L},e.prototype.getDefaultOptions=function(){return Object(a.b)({},t.prototype.getDefaultOptions.call(this),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},e}(o.a)},tKoa:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"e",function(){return l}),n.d(e,"c",function(){return f}),n.d(e,"f",function(){return p.a}),n.d(e,"b",function(){return d});var i=n("mrSG"),r=n("5HRO"),o=n("YuPD"),a=n("WOQw");function s(t){var e=t.options,n=e.area,s=e.xField,c=e.yField,u=e.seriesField,l=e.smooth,h=e.tooltip,f=Object(r.a)(h,[s,c,u]),p=f.fields,d=f.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"area",colorField:u,tooltipFields:p,mapping:Object(i.a)({shape:l?"smooth":"area",tooltip:d},n)}})):t}var c=n("iTfj");function u(t){var e=t.options,n=e.line,i=e.stepType,s=e.xField,u=e.yField,l=e.seriesField,h=e.smooth,f=e.connectNulls,p=e.tooltip,d=Object(r.a)(p,[s,u,l]),g=d.fields,v=d.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"line",colorField:l,tooltipFields:g,mapping:Object(c.h)({shape:i||(h?"smooth":"line"),tooltip:v},n),args:{connectNulls:f}}})):t}function l(t){var e=t.options,n=e.point,s=e.xField,c=e.yField,u=e.seriesField,l=e.sizeField,h=e.shapeField,f=e.tooltip,p=Object(r.a)(f,[s,c,u,l,h]),d=p.fields,g=p.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"point",colorField:u,shapeField:h,tooltipFields:d,mapping:Object(i.a)({tooltip:g},n)}})):t}var h=n("kXyF");function f(t){var e=t.options,n=e.xField,s=e.yField,u=e.interval,l=e.seriesField,f=e.tooltip,p=e.minColumnWidth,d=e.maxColumnWidth,g=Object(r.a)(f,[n,s,l]),v=g.fields,y=g.formatter,m=(u?Object(a.a)(Object(o.b)({},t,{options:{type:"interval",colorField:l,tooltipFields:v,mapping:Object(i.a)({tooltip:y},u),args:{minColumnWidth:p,maxColumnWidth:d}}})):t).ext;return function(t){var e=t.chart,n=t.options,i=t.ext,r=n.seriesField,a=n.isStack,s=n.marginRatio,u=n.widthRatio,l=n.theme,f=[];return r&&(n.isGroup&&f.push({type:"dodge",dodgeBy:n.groupField||r,marginRatio:s}),a&&f.push({type:"stack",marginRatio:s})),f.length&&(null==i?void 0:i.geometry)&&(null==i?void 0:i.geometry).adjust(f),Object(c.I)(u)||e.theme(Object(o.b)({},Object(c.M)(l)?l:Object(h.f)(l),{columnWidthRatio:u})),t}(Object(i.a)(Object(i.a)({},t),{ext:m}))}var p=n("KMYG");function d(t){var e=t.options,n=e.edge,s=e.xField,c=e.yField,u=e.seriesField,l=e.tooltip,h=Object(r.a)(l,[s,c,u]),f=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.b)({},t,{options:{type:"edge",colorField:u,tooltipFields:f,mapping:Object(i.a)({tooltip:p},n)}})):t}},tdXX:function(t,e){},"tvR+":function(t,e,n){"use strict";var i=n("DdT1"),r=n("I4jL"),o=n("IeU1"),a=n("CSvP");e.a=function(){var t=r.a,e=!1,n=1,s=1,c=[0],u=a.a,l=a.a,h=a.a,f=a.a,p=a.a;function d(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),c=[0],e&&t.eachBefore(i.a),t}function g(e){var n=c[e.depth],i=e.x0+n,r=e.y0+n,o=e.x1-n,a=e.y1-n;o<i&&(i=o=(i+o)/2),a<r&&(r=a=(r+a)/2),e.x0=i,e.y0=r,e.x1=o,e.y1=a,e.children&&(n=c[e.depth+1]=u(e)/2,i+=p(e)-n,r+=l(e)-n,(o-=h(e)-n)<i&&(i=o=(i+o)/2),(a-=f(e)-n)<r&&(r=a=(r+a)/2),t(e,i,r,o,a))}return d.round=function(t){return arguments.length?(e=!!t,d):e},d.size=function(t){return arguments.length?(n=+t[0],s=+t[1],d):[n,s]},d.tile=function(e){return arguments.length?(t=Object(o.b)(e),d):t},d.padding=function(t){return arguments.length?d.paddingInner(t).paddingOuter(t):d.paddingInner()},d.paddingInner=function(t){return arguments.length?(u="function"==typeof t?t:Object(a.b)(+t),d):u},d.paddingOuter=function(t){return arguments.length?d.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):d.paddingTop()},d.paddingTop=function(t){return arguments.length?(l="function"==typeof t?t:Object(a.b)(+t),d):l},d.paddingRight=function(t){return arguments.length?(h="function"==typeof t?t:Object(a.b)(+t),d):h},d.paddingBottom=function(t){return arguments.length?(f="function"==typeof t?t:Object(a.b)(+t),d):f},d.paddingLeft=function(t){return arguments.length?(p="function"==typeof t?t:Object(a.b)(+t),d):p},d}},tvuL:function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",function(){return c}),n.d(e,"fillPath",function(){return I}),n.d(e,"fillPathByDiff",function(){return L}),n.d(e,"formatPath",function(){return P}),n.d(e,"intersection",function(){return k}),n.d(e,"parsePathArray",function(){return v}),n.d(e,"parsePathString",function(){return s}),n.d(e,"pathToAbsolute",function(){return l}),n.d(e,"pathToCurve",function(){return d}),n.d(e,"rectPath",function(){return j});var i=n("iTfj"),r="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i.B)(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 String(t).replace(o,function(i,r,o){var s=[],c=r.toLowerCase();if(o.replace(a,function(t,e){e&&s.push(+e)}),"m"===c&&s.length>2&&(n.push([r].concat(s.splice(0,2))),c="l",r="m"===r?"l":"L"),"o"===c&&1===s.length&&n.push([r,s[0]]),"r"===c)n.push([r].concat(s));else for(;s.length>=e[c]&&(n.push([r].concat(s.splice(0,e[c]))),e[c]););return t}),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(6*o[1].x-o[0].x+o[2].x)/6,(6*o[1].y-o[0].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),c=t+n*Math.cos(-r*a);o=[["M",s,e+n*Math.sin(-i*a)],["A",n,n,0,+(r-i>180),0,c,e+n*Math.sin(-r*a)]]}else o=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},l=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,l=0,h=0;"M"===t[0][0]&&(a=r=+t[0][1],l=o=+t[0][2],h++,i[0]=["M",r,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,v=t.length;g<v;g++){if(i.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+r,p[7]=+d[7]+o;break;case"V":p[1]=+d[1]+o;break;case"H":p[1]=+d[1]+r;break;case"R":for(var y=2,m=(n=[r,o].concat(d.slice(1))).length;y<m;y++)n[y]=+n[y]+r,n[++y]=+n[y]+o;i.pop(),i=i.concat(c(n,f));break;case"O":i.pop(),(n=u(r,o,d[1],d[2])).push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(u(r,o,d[1],d[2],d[3])),p=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+d[1]+r,l=+d[2]+o;break;default:for(y=1,m=d.length;y<m;y++)p[y]=+d[y]+(y%2?r:o)}else if("R"===e)n=[r,o].concat(d.slice(1)),i.pop(),i=i.concat(c(n,f)),p=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),(n=u(r,o,d[1],d[2])).push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(u(r,o,d[1],d[2],d[3])),p=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)p[b]=d[b];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":r=+a,o=+l;break;case"H":r=p[1];break;case"V":o=p[1];break;case"M":a=p[p.length-2],l=p[p.length-1];break;default:r=p[p.length-2],o=p[p.length-1]}}return i},h=function(t,e,n,i){return[t,e,n,i,n,i]},f=function(t,e,n,i,r,o){var a=1/3,s=2/3;return[a*t+s*n,a*e+s*i,a*r+s*n,a*o+s*i,r,o]},p=function t(e,n,i,r,o,a,s,c,u,l){i===r&&(i+=1);var h,f,p,d,g,v=120*Math.PI/180,y=Math.PI/180*(+o||0),m=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(l)f=l[0],p=l[1],d=l[2],g=l[3];else{e=(h=b(e,n,-y)).x,n=h.y,u=(h=b(c,u,-y)).y,e===(c=h.x)&&n===u&&(c+=1,u+=1);var x=(e-c)/2,O=(n-u)/2,j=x*x/(i*i)+O*O/(r*r);j>1&&(i*=j=Math.sqrt(j),r*=j);var w=i*i,C=r*r,M=(a===s?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));d=M*i*O/r+(e+c)/2,g=M*-r*x/i+(n+u)/2,f=Math.asin(((n-g)/r).toFixed(9)),p=Math.asin(((u-g)/r).toFixed(9)),f=e<d?Math.PI-f:f,p=c<d?Math.PI-p:p,f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),s&&f>p&&(f-=2*Math.PI),!s&&p>f&&(p-=2*Math.PI)}var S=p-f;if(Math.abs(S)>v){var k=p,A=c,I=u;p=f+v*(s&&p>f?1:-1),m=t(c=d+i*Math.cos(p),u=g+r*Math.sin(p),i,r,o,0,s,A,I,[p,k,d,g])}S=p-f;var T=Math.cos(f),B=Math.sin(f),L=Math.cos(p),F=Math.sin(p),E=Math.tan(S/4),P=4/3*i*E,D=4/3*r*E,z=[e,n],R=[e+P*B,n-D*T],_=[c+P*F,u-D*L],Y=[c,u];if(R[0]=2*z[0]-R[0],R[1]=2*z[1]-R[1],l)return[R,_,Y].concat(m);for(var G=[],N=0,X=(m=[R,_,Y].concat(m).join().split(",")).length;N<X;N++)G[N]=N%2?b(m[N-1],m[N],y).y:b(m[N],m[N+1],y).x;return G},d=function(t,e){var n,i=l(t),r=e&&l(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],c=[],u="",d="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(f(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(f(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var m=0;m<n;m++){i[m]&&(u=i[m][0]),"C"!==u&&(s[m]=u,m&&(d=s[m-1])),i[m]=g(i[m],o,d),"A"!==s[m]&&"C"===u&&(s[m]="C"),v(i,m),r&&(r[m]&&(u=r[m][0]),"C"!==u&&(c[m]=u,m&&(d=c[m-1])),r[m]=g(r[m],a,d),"A"!==c[m]&&"C"===u&&(c[m]="C"),v(r,m)),y(i,r,o,a,m),y(r,i,a,o,m);var b=i[m],x=r&&r[m],O=b.length,j=r&&x.length;o.x=b[O-2],o.y=b[O-1],o.bx=parseFloat(b[O-4])||o.x,o.by=parseFloat(b[O-3])||o.y,a.bx=r&&(parseFloat(x[j-4])||a.x),a.by=r&&(parseFloat(x[j-3])||a.y),a.x=r&&x[j-2],a.y=r&&x[j-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},y=function(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n},m=function(t,e,n,i,r,o,a,s,c){null===c&&(c=1);for(var u=(c=c>1?1:c<0?0:c)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,p=0;p<12;p++){var d=u*l[p]+u,g=y(d,t,n,r,a),v=y(d,e,i,o,s);f+=h[p]*Math.sqrt(g*g+v*v)}return u*f},b=function(t,e,n,i,r,o,a,s){for(var c,u,l,h,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*a,l=3*n-3*t):(u=6*e-12*i+6*o,c=-3*e+9*i-9*o+3*s,l=3*i-3*e),Math.abs(c)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-l/u)>0&&h<1&&f.push(h)}else{var g=u*u-4*l*c,v=Math.sqrt(g);if(!(g<0)){var y=(-u+v)/(2*c);y>0&&y<1&&f.push(y);var m=(-u-v)/(2*c);m>0&&m<1&&f.push(m)}}for(var b,x=f.length,O=x;x--;)p[0][x]=(b=1-(h=f[x]))*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*a,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*o+h*h*h*s;return p[0][O]=t,p[1][O]=e,p[0][O+1]=a,p[1][O+1]=s,p[0].length=p[1].length=O+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])}}},x=function(t,e,n,i,r,o,a,s){if(!(Math.max(t,n)<Math.min(r,a)||Math.min(t,n)>Math.max(r,a)||Math.max(e,i)<Math.min(o,s)||Math.min(e,i)>Math.max(o,s))){var c=(t-n)*(o-s)-(e-i)*(r-a);if(c){var u=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/c,l=((t*i-e*n)*(o-s)-(e-i)*(r*s-o*a))/c,h=+u.toFixed(2),f=+l.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(r,a).toFixed(2)||h>+Math.max(r,a).toFixed(2)||f<+Math.min(e,i).toFixed(2)||f>+Math.max(e,i).toFixed(2)||f<+Math.min(o,s).toFixed(2)||f>+Math.max(o,s).toFixed(2)))return{x:u,y:l}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},w=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:j(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e,n,r,o,a,s,c){Object(i.B)(t)||(t=[t,e,n,r,o,a,s,c]);var u=b.apply(null,t);return w(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},M=function(t,e,n,i,r,o,a,s,c){var u=1-c,l=Math.pow(u,3),h=Math.pow(u,2),f=c*c,p=f*c,d=t+2*c*(n-t)+f*(r-2*n+t),g=e+2*c*(i-e)+f*(o-2*i+e),v=n+2*c*(r-n)+f*(a-2*r+n),y=i+2*c*(o-i)+f*(s-2*o+i);return{x:l*t+3*h*c*n+3*u*c*c*r+p*a,y:l*e+3*h*c*i+3*u*c*c*o+p*s,m:{x:d,y:g},n:{x:v,y:y},start:{x:u*t+c*n,y:u*e+c*i},end:{x:u*r+c*a,y:u*o+c*s},alpha:90-180*Math.atan2(d-v,g-y)/Math.PI}},S=function(t,e,n){if(i=C(t),r=C(e),i=w(i),r=w(r),!(O(r,i.x,i.y)||O(r,i.x2,i.y)||O(r,i.x,i.y2)||O(r,i.x2,i.y2)||O(i,r.x,r.y)||O(i,r.x2,r.y)||O(i,r.x,r.y2)||O(i,r.x2,r.y2)||(i.x<r.x2&&i.x>r.x||r.x<i.x2&&r.x>i.x)&&(i.y<r.y2&&i.y>r.y||r.y<i.y2&&r.y>i.y)))return n?0:[];for(var i,r,o=~~(m.apply(0,t)/8),a=~~(m.apply(0,e)/8),s=[],c=[],u={},l=n?0:[],h=0;h<o+1;h++){var f=M.apply(0,t.concat(h/o));s.push({x:f.x,y:f.y,t:h/o})}for(h=0;h<a+1;h++)f=M.apply(0,e.concat(h/a)),c.push({x:f.x,y:f.y,t:h/a});for(h=0;h<o;h++)for(var p=0;p<a;p++){var d=s[h],g=s[h+1],v=c[p],y=c[p+1],b=Math.abs(g.x-d.x)<.001?"y":"x",j=Math.abs(y.x-v.x)<.001?"y":"x",S=x(d.x,d.y,g.x,g.y,v.x,v.y,y.x,y.y);if(S){if(u[S.x.toFixed(4)]===S.y.toFixed(4))continue;u[S.x.toFixed(4)]=S.y.toFixed(4);var k=d.t+Math.abs((S[b]-d[b])/(g[b]-d[b]))*(g.t-d.t),A=v.t+Math.abs((S[j]-v[j])/(y[j]-v[j]))*(y.t-v.t);k>=0&&k<=1&&A>=0&&A<=1&&(n?l+=1:l.push({x:S.x,y:S.y,t1:k,t2:A}))}}return l},k=function(t,e){return function(t,e,n){var i,r,o,a,s,c,u,l,h,f;t=d(t),e=d(e);for(var p=[],g=0,v=t.length;g<v;g++){var y=t[g];if("M"===y[0])i=s=y[1],r=c=y[2];else{"C"===y[0]?(h=[i,r].concat(y.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,c,s,c],i=s,r=c);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=u=x[1],a=l=x[2];else{"C"===x[0]?(f=[o,a].concat(x.slice(1)),o=f[6],a=f[7]):(f=[o,a,o,a,u,l,u,l],o=u,a=l);for(var O=S(h,f,void 0),j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=m,O[j].bez1=h,O[j].bez2=f;p=p.concat(O)}}}}return p}(t,e)};function A(t,e){var n=[],i=[];return t.length&&function t(e,r){if(1===e.length)n.push(e[0]),i.push(e[0]);else{for(var o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&i.push(e[a+1]),o[a]=[(1-r)*e[a][0]+r*e[a+1][0],(1-r)*e[a][1]+r*e[a+1][1]];t(o,r)}}(t,e),{left:n,right:i.reverse()}}var I=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<i-n;a++)t.push(t[0]);return t}for(a=0;a<i;a++){var s=Math.floor(r*a);o[s]=(o[s]||0)+1}var c=o.reduce(function(e,i,r){return e.concat(r===n?t[n]:function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"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,a=1/n,s=0;s<n-1;s++){var c=A(o,a/(1-a*s));r.push(c.left),o=c.right}return r.push(o),r.map(function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e.concat(t[t.length-1])})}(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i}(t[r],t[r+1],i))},[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c},T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i.j)(t,function(t,i){if(t!==e[i])return n=!1,!1}),n};function B(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var L=function(t,e){var n=function(t,e){var n,i=t.length,r=e.length,o=0;if(0===i||0===r)return null;for(var a=[],s=0;s<=i;s++)a[s]=[],a[s][0]={min:s};for(var c=0;c<=r;c++)a[0][c]={min:c};for(s=1;s<=i;s++)for(n=t[s-1],c=1;c<=r;c++)o=T(n,e[c-1])?0:1,a[s][c]=B(a[s-1][c].min+1,a[s][c-1].min+1,a[s-1][c-1].min+o);return a}(t,e),i=t.length,r=e.length,o=[],a=1,s=1;if(n[i][r].min!==i){for(var c=1;c<=i;c++){var u=n[c][c].min;s=c;for(var l=a;l<=r;l++)n[c][l].min<u&&(u=n[c][l].min,s=l);n[c][a=s].type&&o.push({index:c-1,type:n[c][a].type})}for(c=o.length-1;c>=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=r-(i=t.length);if(i<r)for(c=0;c<h;c++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function F(t,e,n){for(var i,r=[].concat(t),o=1/(n+1),a=E(e)[0],s=1;s<=n;s++)o*=s,0===(i=Math.floor(t.length*o))?r.unshift([a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]):r.splice(i,0,[a[0]*o+t[i][0]*(1-o),a[1]*o+t[i][1]*(1-o)]);return r}function E(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 P=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=E(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],2)}t[i]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=F(n,t[i-1],1)}t[i]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[i]=e[i]}return t}},u3os:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var i=n("P4Qj");e.bind=function(t,e){var n=(0,i.getSensor)(t);return n.bind(e),function(){n.unbind(e)}},e.clear=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)},e.ver="1.0.1"},u47x:function(e,n,i){"use strict";i.d(n,"a",function(){return I}),i.d(n,"b",function(){return k}),i.d(n,"c",function(){return j}),i.d(n,"d",function(){return M});var r=i("ofXK"),o=i("fXoL"),s=i("nLfN"),u=i("XNiG"),f=i("quSY"),d=i("LRne"),g=i("FtGj"),v=i("vkgz"),y=i("Kj3r"),m=i("pLZG"),b=i("lJxs"),x=(i("IzEk"),i("8LU1")),O=i("GU7r"),j=function(e){a(i,e);var n=c(i);function i(){var t;return h(this,i),(t=n.apply(this,arguments))._origin="program",t}return p(i,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(e){t(l(i.prototype),"setActiveItem",this).call(this,e),this.activeItem&&this.activeItem.focus(this._origin)}}]),i}(function(){function t(e){var n=this;h(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new u.a,this._typeaheadSubscription=f.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new u.a,this.change=new u.a,e instanceof o.D&&e.changes.subscribe(function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return p(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(v.a)(function(e){return t._pressedLetters.push(e)}),Object(y.a)(e),Object(m.a)(function(){return t._pressedLetters.length>0}),Object(b.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i<n.length+1;i++){var r=(t._activeItemIndex+i)%n.length,o=n[r];if(!t._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(r);break}}t._pressedLetters=[]}),this}},{key:"withHomeAndEnd",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case g.l:return void this.tabOut.next();case g.c:if(this._vertical&&i){this.setNextItemActive();break}return;case g.m:if(this._vertical&&i){this.setPreviousItemActive();break}return;case g.j:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case g.h:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case g.g:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case g.d:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Object(g.p)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=g.a&&n<=g.n||n>=g.o&&n<=g.i)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof o.D?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}());"undefined"!=typeof Element&∈var w=new o.q("cdk-focus-monitor-default-options"),C=Object(s.e)({passive:!0,capture:!0}),M=function(){var t=function(){function t(e,n,i,r){var o=this;h(this,t),this._ngZone=e,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!o._lastTouchTarget){var e=function(t){return 0===t.buttons}(t)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=S(t),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(t){for(var e=S(t),n="focus"===t.type?o._onFocus:o._onBlur,i=e;i;i=i.parentElement)n.call(o,t,i)},this._document=i,this._detectionMode=(null==r?void 0:r.detectionMode)||0}return p(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(x.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(d.a)(null);var i=Object(s.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new u.a,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=Object(x.e)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=Object(x.e)(t);i===this._getDocument().activeElement&&this._elementInfo.has(i)?this._originChanged(i,e,this._elementInfo.get(i)):(this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=S(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===S(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,C),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,C)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,C),t.addEventListener("mousedown",e._documentMousedownListener,C),t.addEventListener("touchstart",e._documentTouchstartListener,C),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,C),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,C),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var i=this._getDocument(),r=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,C),i.removeEventListener("mousedown",this._documentMousedownListener,C),i.removeEventListener("touchstart",this._documentTouchstartListener,C),r.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(o.z),o.Sb(s.a),o.Sb(r.d,8),o.Sb(w,8))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(o.z),Object(o.Sb)(s.a),Object(o.Sb)(r.d,8),Object(o.Sb)(w,8))},token:t,providedIn:"root"}),t}();function S(t){return t.composedPath?t.composedPath()[0]:t.target}var k=function(){var t=function(){function t(e,n){h(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new o.n}return p(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l),o.Jb(M))},t.\u0275dir=o.Eb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),A=function(){var t=function(){function t(e,n){h(this,t),this._platform=e,this._document=n}return p(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(s.a),o.Sb(r.d))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(s.a),Object(o.Sb)(r.d))},token:t,providedIn:"root"}),t}(),I=function(){var t=function t(e){h(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)(o.Sb(A))},imports:[[s.b,O.b]]}),t}()},u60a:function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",function(){return i}),n.d(e,"TITLE_CLASS",function(){return r}),n.d(e,"LIST_CLASS",function(){return o}),n.d(e,"LIST_ITEM_CLASS",function(){return a}),n.d(e,"MARKER_CLASS",function(){return s}),n.d(e,"VALUE_CLASS",function(){return c}),n.d(e,"NAME_CLASS",function(){return u}),n.d(e,"CROSSHAIR_X",function(){return l}),n.d(e,"CROSSHAIR_Y",function(){return h});var i="g2-tooltip",r="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",s="g2-tooltip-marker",c="g2-tooltip-value",u="g2-tooltip-name",l="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},"u9/z":function(t,e,n){"use strict";n.d(e,"b",function(){return c}),n.d(e,"a",function(){return l});var i=n("iTfj"),r=n("YuPD"),o=n("w02o"),a=n("tKoa"),s=n("SZbK");function c(t){var e=t.chart,n=t.options,o=n.percent,c=n.progressStyle,u=n.color,l=n.barWidthRatio,h=Object(i.c)(o,0,1);e.data([{type:"current",percent:h},{type:"target",percent:1-h}]);var f=Object(r.b)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:l,interval:{style:c,color:Object(i.O)(u)?[u,s.a[1]]:u}}});return Object(a.c)(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function u(t){return t.chart.coordinate("rect").transpose(),t}function l(t){return Object(r.e)(c,Object(o.f)({}),u,o.a,o.j,Object(o.b)())(t)}},u9VJ:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("DMQx"),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return a.a},e}(r.a)},uCX8:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",function(){return h}),n.d(e,"Text",function(){return f}),n.d(e,"Arc",function(){return p}),n.d(e,"Region",function(){return d}),n.d(e,"Image",function(){return g}),n.d(e,"DataMarker",function(){return v}),n.d(e,"DataRegion",function(){return y}),n.d(e,"RegionFilter",function(){return m}),n.d(e,"Shape",function(){return b}),n.d(e,"Html",function(){return O});var i=n("mrSG"),r=n("iTfj"),o=n("MeYt"),a=n("BgvD"),s=n("jqgP"),c=n("5UbV");function u(t,e){var n=e.x,o=e.y,u=e.content,l=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(i.a)({x:0,y:0,text:u},l)}),O=Object(c.c)(Object(r.s)(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(a.a)(!v,x,j,y)}if(m){var w=Object(r.s)(m,"style",{}),C=x.getCanvasBBox(),M=C.minX,S=C.minY,k=C.width,A=C.height;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i.a)({x:M-O[3],y:S-O[0],width:k+O[1]+O[3],height:A+O[0]+O[2]},w)}).toBack()}Object(s.c)(b,n,o),Object(s.b)(b,p,n,o)}var l=n("L16w"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:l.a.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:l.a.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:l.a.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(i.a)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var i;return((i="start"===n?0:"center"===n?.5:Object(r.O)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r.K)(n)?n:1)>1||i<0)&&(i=1),{x:Object(c.g)(t.x,e.x,i),y:Object(c.g)(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.content,o=e.style,a=e.offsetX,s=e.offsetY,c=e.autoRotate,l=e.maxLength,h=e.autoEllipsis,f=e.ellipsisPosition,p=e.background,d=e.isVertical,g=void 0!==d&&d,v=this.getLabelPoint(n,i,e.position),y=v.x+a,m=v.y+s,b={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:m,content:r,style:o,maxLength:l,autoEllipsis:h,ellipsisPosition:f,background:p,isVertical:g};if(c){var x=[i.x-n.x,i.y-n.y];b.rotate=Math.atan2(x[1],x[0])}u(t,b)},e}(o.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:l.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.a.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("content"),o=this.get("style");u(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:i,content:r,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("rotate");Object(s.c)(t,n,i),Object(s.b)(t,r,n,i)}},e}(o.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=Object(c.e)(e,n,i),a=Object(c.e)(e,n,r),s=r-i>Math.PI?1:0,u=[["M",o.x,o.y]];if(r-i==2*Math.PI){var l=Object(c.e)(e,n,i+Math.PI);u.push(["A",n,n,0,s,1,l.x,l.y]),u.push(["A",n,n,0,s,1,a.x,a.y])}else u.push(["A",n,n,0,s,1,a.x,a.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(i.a)({path:e},n)})},e}(o.a),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:l.a.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),o=Object(c.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i.a)({x:o.x,y:o.y,width:o.width,height:o.height},r)})},e}(o.a),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Object(c.k)({start:t,end:e}),o=this.get("src");return Object(i.a)({x:r.x,y:r.y,img:o,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:l.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:l.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:l.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(r.s)(this.get("line"),"display")&&this.renderLine(t),Object(r.s)(this.get("text"),"display")&&this.renderText(t),Object(r.s)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,o=e.text,a=Object(i.f)(e,["x","y","text"]),s=this.get("text"),c=s.background,l=s.maxLength,h=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition;u(t,{x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:c,maxLength:l,autoEllipsis:h,isVertival:f,ellipsisPosition:p})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),o=Object(r.s)(this.get("line"),"length",0),a=this.get("coordinateBBox"),c=t.getBBox(),u=c.minX,l=c.maxX,h=c.minY,f=c.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(p){if(n+u<=a.minX){var v=a.minX-(n+u);Object(s.c)(p,p.attr("x")+v,p.attr("y"))}n+l>=a.maxX&&(v=n+l-a.maxX,Object(s.c)(p,p.attr("x")-v,p.attr("y")))}if("upward"===e&&i+h<=a.minY||"upward"!==e&&i+f>=a.maxY){var y=void 0,m=void 0;"upward"===e&&i+h<=a.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*m]]),Object(s.c)(p,p.attr("x"),(o+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(r.s)(this.get("line"),"display"),e=Object(r.s)(this.get("point"),"style",{}),n=Object(r.s)(this.get("line"),"style",{}),o=Object(r.s)(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(r.s)(this.get("line"),"length",0):0,c="upward"===a?-1:1;return{point:Object(i.a)({x:0,y:0},e),line:Object(i.a)({path:[["M",0,0],["L",0,s*c]]},n),text:Object(i.a)({x:0,y:(s+2)*c,text:Object(r.s)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.a),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:l.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:l.a.textColor,fontFamily:l.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(r.s)(this.get("region"),"style",{}),n=(Object(r.s)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(c.j)(o),s=[];s.push(["M",o[0].x,a.minY-n]),o.forEach(function(t){s.push(["L",t.x,t.y])}),s.push(["L",o[o.length-1].x,o[o.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i.a)({path:s},e)}),u(t,Object(i.a)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text")))}},e}(o.a),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r.j)(this.get("shapes"),function(t,n){var i=t.get("type"),a=Object(r.e)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:a})});var a=Object(c.k)({start:n,end:i});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.a),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"shape",draw:r.ab})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r.H)(e)&&e(t)},e}(o.a),x=n("fIp6"),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c.a)(t);var n=Object(r.H)(e)?e(t):e;Object(r.E)(n)?t.appendChild(n):Object(r.O)(n)&&t.appendChild(Object(x.b)(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),c=Object(x.d)(t),u=Object(x.c)(t),l={x:n,y:i};"middle"===r?l.x-=Math.round(c/2):"right"===r&&(l.x-=Math.round(c)),"middle"===o?l.y-=Math.round(u/2):"bottom"===o&&(l.y-=Math.round(u)),a&&(l.x+=a),s&&(l.y+=s),Object(x.e)(t,{position:"absolute",left:l.x+"px",top:l.y+"px",zIndex:this.get("zIndex")})},e}(n("de35").a)},"uw/B":function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("tKoa"),u=n("hJqF"),l=n("sqD9");function h(t,e,n,i,r){return r?Object(l.a)(t,e,n,i):t}function f(t){var e=t.chart,n=t.options,r=n.areaStyle,a=n.color,s=n.point,u=n.line,l=n.isPercent,f=n.xField,p=n.yField,d=n.tooltip,g=n.seriesField,v=h(n.data,p,f,p,l);e.data(v);var y=l?Object(i.a)({formatter:function(t){return{name:t[g]||t[f],value:(100*Number(t[p])).toFixed(2)+"%"}}},d):d,m=Object(o.b)({},t,{options:{area:{color:a,style:r},line:u&&Object(i.a)({color:a},u),point:s&&Object(i.a)({color:a},s),tooltip:y,label:void 0}}),b=Object(o.b)({},m,{options:{tooltip:!1}});return Object(c.a)(m),Object(c.d)(b),Object(c.e)(b),t}function p(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o.c)(e,"area");if(r){var c=r.callback,u=Object(i.f)(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(i.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(o.o)(u))})}else s.label(!1);return t}function d(t){var e=t.chart,n=t.options;return(n.isPercent||n.isStack)&&Object(a.j)(e.geometries,function(t){t.adjust("stack")}),t}function g(t){return Object(o.e)(f,u.d,d,s.j,u.b,u.c,s.k,p,s.h,Object(s.b)(),s.c,s.a,s.e)(t)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField;this.chart.changeData(h(t,n,e.xField,n,e.isPercent))},e.prototype.getSchemaAdaptor=function(){return g},e}(r.a)},uzHj:function(t,e){},v7Ed:function(t,e,n){"use strict";n.r(e),n.d(e,"version",function(){return c});var i=n("aN7R");n.d(e,"Shape",function(){return i});var r=n("aFU3");for(var o in r)["default","Canvas","Group","Shape","version"].indexOf(o)<0&&function(t){n.d(e,t,function(){return r[t]})}(o);var a=n("wClo");n.d(e,"Canvas",function(){return a.a});var s=n("5z4m");n.d(e,"Group",function(){return s.a});var c="0.5.6"},vIgC:function(t,e,n){"use strict";n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return s});var i=n("sstZ"),r=n("lt7v");function o(t,e,n){var r=1;return Object(i.h)(t)&&(r=t.split("\n").length),r>1?e*r+function(t,e){return e?e-t:.14*t}(e,n)*(r-1):e}function a(t,e){var n=Object(r.a)(),o=0;if(Object(i.e)(t)||""===t)return o;if(n.save(),n.font=e,Object(i.h)(t)&&t.includes("\n")){var a=t.split("\n");Object(i.a)(a,function(t){var e=n.measureText(t).width;o<e&&(o=e)})}else o=n.measureText(t).width;return n.restore(),o}function s(t){return[t.fontStyle,t.fontVariant,t.fontWeight,t.fontSize+"px",t.fontFamily].join(" ").trim()}},vk7d:function(t,e){},w02o:function(t,e,n){"use strict";n.d(e,"d",function(){return s}),n.d(e,"k",function(){return c}),n.d(e,"c",function(){return u}),n.d(e,"a",function(){return l}),n.d(e,"j",function(){return h}),n.d(e,"i",function(){return f}),n.d(e,"h",function(){return p}),n.d(e,"g",function(){return d}),n.d(e,"f",function(){return g}),n.d(e,"b",function(){return v}),n.d(e,"e",function(){return y});var i=n("mrSG"),r=n("iTfj"),o=n("n/J0"),a=n("YuPD");function s(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.seriesField;return!1===i?e.legend(!1):(r||o)&&e.legend(r||o,i),t}function c(t){var e=t.options.tooltip;return void 0!==e&&t.chart.tooltip(e),t}function u(t){var e=t.chart,n=t.options.interactions;return Object(r.j)(n,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})}),t}function l(t){var e=t.chart,n=t.options.animation;return e.animate("boolean"!=typeof n||n),Object(r.j)(e.geometries,function(t){t.animate(n)}),t}function h(t){var e=t.options.theme;return e&&t.chart.theme(e),t}function f(t){var e=t.chart,n=t.options.state;return n&&Object(r.j)(e.geometries,function(t){t.state(n)}),t}function p(t){return t.chart.option("slider",t.options.slider),t}function d(t){return t.chart.option("scrollbar",t.options.scrollbar),t}function g(t,e){return function(n){var i=n.chart,s=n.options,c={};return Object(r.j)(t,function(t,e){c[e]=Object(a.k)(t,o.a)}),c=Object(a.b)({},e,s.meta,c),i.scale(c),n}}function v(t){return function(e){var n=e.options,o=e.chart.getController("annotation");return Object(r.j)(Object(i.g)(n.annotations||[],t||[]),function(t){o.annotation(t)}),e}}function y(t){var e=t.chart,n=t.options,i=n.yAxis,o=n.limitInPlot,s=o;return Object(r.M)(i)&&Object(r.I)(o)&&(s=!!Object.values(Object(a.k)(i,["min","max","minLimit","maxLimit"])).some(function(t){return!Object(r.I)(t)})),e.limitInPlot=s,t}},wClo:function(t,e,n){"use strict";var i=n("mrSG"),r=n("aFU3"),o=n("IvmH"),a=n("c0lT"),s=n("APlK"),c=n("c+wO"),u=n("aN7R"),l=n("5z4m"),h=n("iTfj"),f=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,p=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,d=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(d);if(!e)return"";var n="";return e.sort(function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])}),Object(h.j)(e,function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'}),n}var v=function(){function t(t){this.cfg={};var e=null,n=Object(h.pb)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,r=f.exec(t),o=Object(h.Z)(Object(h.mb)(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(o),c=s*s,u=(i.x-n.x+s*(i.y-n.y))/(c+1)+n.x,l=s*(i.x-n.x+s*(i.y-n.y))/(c+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",u),e.setAttribute("y2",l),e.innerHTML=g(a)}(t,e=Object(c.b)("linearGradient")):function(t,e){var n=p.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",o),e.innerHTML=g(a)}(t,e=Object(c.b)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),y={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},m={x:"-40%",y:"-40%",width:"200%",height:"200%"},b=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(c.b)("filter");return Object(h.j)(m,function(t,n){e.setAttribute(n,t)}),this.el=e,this.id=Object(h.pb)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(h.j)(Object.keys(i),function(t){if(i[t]!==e[t])return n=!1,!1}),n},t.prototype.update=function(t,e){var n=this.cfg;return n[y[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){e.innerHTML='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />'},t}(),x=function(){function t(t,e){this.cfg={};var n=Object(c.b)("marker"),i=Object(h.pb)("marker_");n.setAttribute("id",i);var r=Object(c.b)("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;Object(h.B)(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),O=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c.b)("clipPath");return this.el=e,this.id=Object(h.pb)("clip_"),e.id=this.id,e.appendChild(t.cfg.el),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),j=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,w=function(){function t(t){this.cfg={};var e=Object(c.b)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c.b)("image");e.appendChild(n);var i=Object(h.pb)("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=j.exec(t)[2];n.setAttribute("href",r);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return r.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=r,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),C=function(){function t(t){var e=Object(c.b)("defs"),n=Object(h.pb)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new x(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new v(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new x(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new O(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),M=function(t){function e(e){return t.call(this,Object(i.a)(Object(i.a)({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(i.d)(e,t),e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return l.a},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!o.a[i.tagName]){for(var r=i.parentNode;r&&!o.a[r.tagName];)r=r.parentNode;i=r}return this.find(function(t){return t.get("el")===i})},e.prototype.createDom=function(){var t=Object(c.b)("svg"),e=new C(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&Object(c.d)(this,function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0})}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?Object(s.c)(this):"clip"===t?Object(s.a)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s.a)(this,t),e.length&&Object(a.a)(t,e)},e}(r.AbstractCanvas);e.a=M},wq2r:function(t,e,n){"use strict";var i=n("mrSG"),r=n("aFU3"),o=n("R5nb"),a=n("9eUa"),s=n("iTfj"),c=n("cyZq"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.onCanvasChange=function(t){Object(a.h)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.a)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s.j)(t,function(t){var i=t.cfg.cacheCanvasBBox;i&&t.cfg.isInView&&(e.push(i.minX,i.maxX),n.push(i.minY,i.maxY))});var i=null;if(e.length){var r=Math.min.apply(null,e),o=Math.max.apply(null,e),a=Math.min.apply(null,n),u=Math.max.apply(null,n);i={minX:r,minY:a,x:r,y:a,maxX:o,maxY:u,width:o-r,height:u-a};var l=this.cfg.canvas;if(l){var h=l.getViewRange();this.set("isInView",Object(c.f)(i,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children;n.length&&(!e||this.cfg.refresh)&&(t.save(),Object(a.a)(t,this),this._applyClip(t,this.getClip()),Object(a.d)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r.AbstractGroup);e.a=u},x3EW:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",function(){return s}),n.d(e,"Circle",function(){return c}),n.d(e,"Line",function(){return u});var i=n("mrSG"),r=n("iTfj"),o=n("MeYt"),a=n("L16w"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.a.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0);return this.get("closed")?n=n.concat(r):(r[0][0]="L",(n=n.concat(r)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),o=this.get("alternateColor"),a=null;Object(r.j)(i,function(s,c){var u=s.id||c;if(n){var l=e.getPathStyle();l=Object(r.H)(l)?l(s,c,i):l;var h=e.getElementId("line-"+u),f=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(r.Y)({path:f},l)})}if(o&&c>0){var p=e.getElementId("region-"+u),d=c%2==0;Object(r.O)(o)?d&&e.drawAlternateRegion(p,t,a.points,s.points,o):e.drawAlternateRegion(p,t,a.points,s.points,d?o[1]:o[0])}a=s})},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(o.a),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,i,o=this.getLineType(),a=this.get("closed"),s=[];if(t.length)if("circle"===o){var c=this.get("center"),u=t[0],l=(n=u.x-c.x,i=u.y-c.y,Math.sqrt(n*n+i*i)),h=e?0:1;a?(s.push(["M",c.x,c.y-l]),s.push(["A",l,l,0,0,h,c.x,c.y+l]),s.push(["A",l,l,0,0,h,c.x,c.y-l]),s.push(["Z"])):Object(r.j)(t,function(t,e){s.push(0===e?["M",t.x,t.y]:["A",l,l,0,0,h,t.x,t.y])})}else Object(r.j)(t,function(t,e){s.push(0===e?["M",t.x,t.y]:["L",t.x,t.y])}),a&&s.push(["Z"]);return s},e}(s),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(r.j)(t,function(t,n){e.push(0===n?["M",t.x,t.y]:["L",t.x,t.y])}),e},e}(s)},y753:function(t,e,n){"use strict";n.d(e,"a",function(){return m});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("w02o"),s=n("tKoa");function c(t){var e=t.options,n=e.lineStyle,r=e.color,a=e.point,c=e.area;t.chart.data(e.data);var u=Object(o.b)({},t,{options:{line:{style:n,color:r},point:a?Object(i.a)({color:r},a):a,area:c?Object(i.a)({color:r},c):c,label:void 0}}),l=Object(o.b)({},u,{options:{tooltip:!1}});return Object(s.d)(u),Object(s.e)(l),Object(s.a)(l),t}function u(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,s=n.xField,c=n.yField;return Object(o.e)(Object(a.f)(((e={})[s]=i,e[c]=r,e)))(t)}function l(t){return t.chart.coordinate("polar",{radius:t.options.radius}),t}function h(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return e.axis(n.xField,n.xAxis),e.axis(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o.c)(e,"line");if(r){var c=r.callback,u=Object(i.f)(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o.o)(u)})}else s.label(!1);return t}function p(t){return Object(o.e)(c,u,a.j,l,h,a.d,a.k,f,a.c,a.a,Object(a.b)())(t)}var d=n("kXyF"),g=n("iTfj"),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,o=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var s=this.view.geometries[0],c=a[0].name,u=[];return s.dataArray.forEach(function(t){t.forEach(function(t){var e=d.e.getTooltipItems(t,s)[0];if(!r&&e&&e.name===c){var n=Object(g.I)(o)?c:o;u.push(Object(i.a)(Object(i.a)({},e),{name:e.title,title:n}))}else r&&e&&(n=Object(g.I)(o)?e.name||c:o,u.push(Object(i.a)(Object(i.a)({},e),{name:e.title,title:n})))})}),u}return[]},e}(d.d);Object(d.h)("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.d)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(d.a);Object(d.g)("radar-tooltip",y),Object(d.i)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return p},e}(r.a)},yU0y:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o});var i=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;Math,Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},yUfG:function(t,e,n){"use strict";function i(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function o(t,e){return Math.max(t,e.y)}n.r(e),n.d(e,"cluster",function(){return a}),n.d(e,"hierarchy",function(){return s.c}),n.d(e,"pack",function(){return M}),n.d(e,"packSiblings",function(){return O}),n.d(e,"packEnclose",function(){return c}),n.d(e,"partition",function(){return I.a}),n.d(e,"stratify",function(){return E}),n.d(e,"tree",function(){return G}),n.d(e,"treemap",function(){return N.a}),n.d(e,"treemapBinary",function(){return X}),n.d(e,"treemapDice",function(){return V.a}),n.d(e,"treemapSlice",function(){return H.a}),n.d(e,"treemapSliceDice",function(){return W}),n.d(e,"treemapSquarify",function(){return $.a}),n.d(e,"treemapResquarify",function(){return q});var a=function(){var t=i,e=1,n=1,a=!1;function s(i){var s,c=0;i.eachAfter(function(e){var n=e.children;n?(e.x=function(t){return t.reduce(r,0)/t.length}(n),e.y=function(t){return 1+t.reduce(o,0)}(n)):(e.x=s?c+=t(e,s):0,e.y=0,s=e)});var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),h=u.x-t(u,l)/2,f=l.x+t(l,u)/2;return i.eachAfter(a?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-h)/(f-h)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(a=!1,e=+t[0],n=+t[1],s):a?null:[e,n]},s.nodeSize=function(t){return arguments.length?(a=!0,e=+t[0],n=+t[1],s):a?[e,n]:null},s},s=n("a8tM"),c=function(t){for(var e,n,i=0,r=(t=function(t){for(var e,n,i=t.length;i;)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];i<r;)e=t[i],n&&h(n,e)?++i:(n=p(o=u(o,e)),i=0);return n};function u(t,e){var n,i;if(f(e,t))return[e];for(n=0;n<t.length;++n)if(l(e,t[n])&&f(d(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(l(d(t[n],t[i]),e)&&l(d(t[n],e),t[i])&&l(d(t[i],e),t[n])&&f(g(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function l(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function h(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function f(t,e){for(var n=0;n<e.length;++n)if(!h(t,e[n]))return!1;return!0}function p(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return d(t[0],t[1]);case 3:return g(t[0],t[1],t[2])}var e}function d(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,s=e.r,c=o-n,u=a-i,l=s-r,h=Math.sqrt(c*c+u*u);return{x:(n+o+c/h*l)/2,y:(i+a+u/h*l)/2,r:(h+r+s)/2}}function g(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,s=e.y,c=e.r,u=n.x,l=n.y,h=n.r,f=i-a,p=i-u,d=r-s,g=r-l,v=c-o,y=h-o,m=i*i+r*r-o*o,b=m-a*a-s*s+c*c,x=m-u*u-l*l+h*h,O=p*d-f*g,j=(d*x-g*b)/(2*O)-i,w=(g*v-d*y)/O,C=(p*b-f*x)/(2*O)-r,M=(f*y-p*v)/O,S=w*w+M*M-1,k=2*(o+j*w+C*M),A=j*j+C*C-o*o,I=-(S?(k+Math.sqrt(k*k-4*S*A))/(2*S):A/k);return{x:i+j+w*I,y:r+C+M*I,r:I}}function v(t,e,n){var i,r,o,a,s=t.x-e.x,c=t.y-e.y,u=s*s+c*c;u?(r=e.r+n.r,a=t.r+n.r,(r*=r)>(a*=a)?(i=(u+a-r)/(2*u),o=Math.sqrt(Math.max(0,a/u-i*i)),n.x=t.x-i*s-o*c,n.y=t.y-i*c+o*s):(i=(u+r-a)/(2*u),o=Math.sqrt(Math.max(0,r/u-i*i)),n.x=e.x+i*s-o*c,n.y=e.y+i*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function y(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function m(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function b(t){this._=t,this.next=null,this.previous=null}function x(t){if(!(o=(e=t,t="object"==typeof e&&"length"in e?e:Array.from(e)).length))return 0;var e,n,i,r,o,a,s,u,l,h,f,p;if((n=t[0]).x=0,n.y=0,!(o>1))return n.r;if(n.x=-(i=t[1]).r,i.x=n.r,i.y=0,!(o>2))return n.r+i.r;v(i,n,r=t[2]),n=new b(n),i=new b(i),r=new b(r),n.next=r.previous=i,i.next=n.previous=r,r.next=i.previous=n;t:for(u=3;u<o;++u){v(n._,i._,r=t[u]),r=new b(r),l=i.next,h=n.previous,f=i._.r,p=n._.r;do{if(f<=p){if(y(l._,r._)){n.next=i=l,i.previous=n,--u;continue t}f+=l._.r,l=l.next}else{if(y(h._,r._)){(n=h).next=i,i.previous=n,--u;continue t}p+=h._.r,h=h.previous}}while(l!==h.next);for(r.previous=n,r.next=i,n.next=i.previous=i=r,a=m(n);(r=r.next)!==i;)(s=m(r))<a&&(n=r,a=s);i=n.next}for(n=[i._],r=i;(r=r.next)!==i;)n.push(r._);for(r=c(n),u=0;u<o;++u)(n=t[u]).x-=r.x,n.y-=r.y;return r.r}var O=function(t){return x(t),t},j=n("IeU1"),w=n("CSvP");function C(t){return Math.sqrt(t.value)}var M=function(){var t=null,e=1,n=1,i=w.a;function r(r){return r.x=e/2,r.y=n/2,t?r.eachBefore(S(t)).eachAfter(k(i,.5)).eachBefore(A(1)):r.eachBefore(S(C)).eachAfter(k(w.a,1)).eachAfter(k(i,r.r/Math.min(e,n))).eachBefore(A(Math.min(e,n)/(2*r.r))),r}return r.radius=function(e){return arguments.length?(t=Object(j.a)(e),r):t},r.size=function(t){return arguments.length?(e=+t[0],n=+t[1],r):[e,n]},r.padding=function(t){return arguments.length?(i="function"==typeof t?t:Object(w.b)(+t),r):i},r};function S(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function k(t,e){return function(n){if(i=n.children){var i,r,o,a=i.length,s=t(n)*e||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=x(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function A(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var I=n("+Nd1"),T={depth:-1},B={};function L(t){return t.id}function F(t){return t.parentId}var E=function(){var t=L,e=F;function n(n){var i,r,o,a,c,u,l,h=Array.from(n),f=h.length,p=new Map;for(r=0;r<f;++r)c=h[r]=new s.a(i=h[r]),null!=(u=t(i,r,n))&&(u+="")&&(l=c.id=u,p.set(l,p.has(l)?B:c)),null!=(u=e(i,r,n))&&(u+="")&&(c.parent=u);for(r=0;r<f;++r)if(u=(c=h[r]).parent){if(!(a=p.get(u)))throw new Error("missing: "+u);if(a===B)throw new Error("ambiguous: "+u);a.children?a.children.push(c):a.children=[c],c.parent=a}else{if(o)throw new Error("multiple roots");o=c}if(!o)throw new Error("no root");if(o.parent=T,o.eachBefore(function(t){t.depth=t.parent.depth+1,--f}).eachBefore(s.b),o.parent=null,f>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(j.b)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(j.b)(t),n):e},n};function P(t,e){return t.parent===e.parent?1:2}function D(t){var e=t.children;return e?e[0]:t.t}function z(t){var e=t.children;return e?e[e.length-1]:t.t}function R(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function _(t,e,n){return t.a.parent===e.parent?t.a:n}function Y(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Y.prototype=Object.create(s.a.prototype);var G=function(){var t=P,e=1,n=1,i=null;function r(r){var c=function(t){for(var e,n,i,r,o,a=new Y(t,0),s=[a];e=s.pop();)if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new Y(i[r],r)),n.parent=e;return(a.parent=new Y(null,0)).children=[a],a}(r);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),i)r.eachBefore(s);else{var u=r,l=r,h=r;r.eachBefore(function(t){t.x<u.x&&(u=t),t.x>l.x&&(l=t),t.depth>h.depth&&(h=t)});var f=u===l?1:t(u,l)/2,p=f-u.x,d=e/(l.x+f+p),g=n/(h.depth||1);r.eachBefore(function(t){t.x=(t.x+p)*d,t.y=t.depth*g})}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){!function(t){for(var e,n=0,i=0,r=t.children,o=r.length;--o>=0;)(e=r[o]).z+=n,e.m+=n,n+=e.s+(i+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=function(e,n,i){if(n){for(var r,o=e,a=e,s=n,c=o.parent.children[0],u=o.m,l=a.m,h=s.m,f=c.m;s=z(s),o=D(o),s&&o;)c=D(c),(a=z(a)).a=e,(r=s.z+h-o.z-u+t(s._,o._))>0&&(R(_(s,e,i),e,r),u+=r,l+=r),h+=s.m,u+=o.m,f+=c.m,l+=a.m;s&&!z(a)&&(a.t=s,a.m+=h-l),o&&!D(c)&&(c.t=o,c.m+=u-f,i=e)}return i}(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r},N=n("tvR+"),X=function(t,e,n,i,r){var o,a,s=t.children,c=s.length,u=new Array(c+1);for(u[0]=a=o=0;o<c;++o)u[o+1]=a+=s[o].value;!function t(e,n,i,r,o,a,c){if(e>=n-1){var l=s[e];return l.x0=r,l.y0=o,l.x1=a,void(l.y1=c)}for(var h=u[e],f=i/2+h,p=e+1,d=n-1;p<d;){var g=p+d>>>1;u[g]<f?p=g+1:d=g}f-u[p-1]<u[p]-f&&e+1<p&&--p;var v=u[p]-h,y=i-v;if(a-r>c-o){var m=i?(r*y+a*v)/i:a;t(e,p,v,r,o,m,c),t(p,n,y,m,o,a,c)}else{var b=i?(o*y+c*v)/i:c;t(e,p,v,r,o,a,b),t(p,n,y,r,b,a,c)}}(0,c,t.value,e,n,i,r)},V=n("FPPI"),H=n("7IPS"),W=function(t,e,n,i,r){(1&t.depth?H.a:V.a)(t,e,n,i,r)},$=n("I4jL"),q=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,c,u,l,h=-1,f=a.length,p=t.value;++h<f;){for(c=(s=a[h]).children,u=s.value=0,l=c.length;u<l;++u)s.value+=c[u].value;s.dice?Object(V.a)(s,n,i,r,p?i+=(o-i)*s.value/p:o):Object(H.a)(s,n,i,p?n+=(r-n)*s.value/p:r,o),p-=s.value}else t._squarify=a=Object($.c)(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}($.b)},yqCL:function(t,e,n){"use strict";n.d(e,"a",function(){return P});var i,r,o=n("mrSG"),a=n("zJSt"),s=n("YuPD"),c=n("iTfj"),u=n("w02o"),l=n("sqD9"),h=n("4Olw");!function(t){t.Left="Left",t.Right="Right"}(i||(i={})),function(t){t.Line="line",t.Column="column"}(r||(r={}));var f={nice:!0,label:{autoHide:!0,autoRotate:!1}},p=Object(o.a)(Object(o.a)({},f),{position:"left"}),d=Object(o.a)(Object(o.a)({},f),{position:"right",grid:null});function g(t){return Object(c.s)(t,"geometry")===r.Line}function v(t){return Object(c.s)(t,"geometry")===r.Column}function y(t,e,n){return v(n)?Object(s.b)({},{geometry:r.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(o.a)({geometry:r.Line},n)}function m(t,e,n){var i,r,o=t[0],a=t[1];return Object(c.B)(e)?(n&&console.warn("yAxis should be object."),(i={})[o]=e[0],i[a]=e[1],i):Object(s.b)(((r={})[o]=void 0,r[a]=void 0,r),e)}function b(t,e){return e===i.Left?!1!==t&&Object(s.b)({},p,t):e===i.Right?!1!==t&&Object(s.b)({},d,t):t}var x=n("kXyF");function O(t){var e=t.view,n=t.geometryOption,i=t.yField,r=t.legend,o=Object(c.s)(r,"marker"),a=Object(s.c)(e,g(n)?"line":"interval");if(!n.seriesField){var u=a.getAttribute("color").values[0],l=o||(g(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:u}}:{symbol:"square",style:{fill:u}});return[{value:i,name:Object(c.s)(e,"options.scales."+i+".alias")||i,marker:l,isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return Object(c.cb)(h,function(t,n){var i=x.e.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(i)},[])}var j=n("tKoa");function w(t){var e,n=t.options,i=n.geometryOptions,o=void 0===i?[]:i,a=n.xField,u=n.yField,l=Object(c.k)(o,function(t){var e=t.geometry;return e===r.Line||void 0===e});return Object(s.b)({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:l?[0,1]:void 0},e),tooltip:{showMarkers:l,showCrosshairs:l,shared:!0,crosshairs:{type:"x"}},interactions:l?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:m(u,n.yAxis,"yAxis should be object."),geometryOptions:[y(0,u[0],o[0]),y(0,u[1],o[1])],annotations:m(u,n.annotations,"annotations should be object.")}})}function C(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.geometryOptions,u=n.data,h=n.tooltip,f={line:0,column:1};return[Object(o.a)(Object(o.a)({},a[0]),{id:"left-axes-view",data:u[0],yField:r[0]}),Object(o.a)(Object(o.a)({},a[1]),{id:"right-axes-view",data:u[1],yField:r[1]})].sort(function(t,e){return-f[t.geometry]+f[e.geometry]}).forEach(function(t){var n=t.id,r=t.data,a=t.yField,u=v(t)&&t.isPercent,f=u?Object(l.a)(r,a,i,a):r,p=e.createView({id:n}).data(f),d=u?Object(o.a)({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},h):h;!function(t){var e=t.options,n=t.chart,i=e.geometryOption,r=i.isStack,a=i.color,u=i.seriesField,l=i.groupField,h=i.isGroup,f=["xField","yField"];if(g(i)){Object(j.d)(Object(s.b)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(s.k)(e,f)),i),{line:{color:i.color,style:i.lineStyle}})})),Object(j.e)(Object(s.b)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(s.k)(e,f)),i),{point:i.point&&Object(o.a)({color:a,shape:"circle"},i.point)})}));var p=[];h&&p.push({type:"dodge",dodgeBy:l||u,customOffset:0}),r&&p.push({type:"stack"}),p.length&&Object(c.j)(n.geometries,function(t){t.adjust(p)})}v(i)&&Object(j.c)(Object(s.b)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(s.k)(e,f)),i),{widthRatio:i.columnWidthRatio,interval:Object(o.a)(Object(o.a)({},Object(s.k)(i,["color"])),{style:i.columnStyle})})}))}({chart:p,options:{xField:i,yField:a,tooltip:d,geometryOption:t}})}),t}function M(t){var e,n=t.chart,i=t.options.geometryOptions,r=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",function(){Object(c.j)(i,function(t,e){var i=Object(h.a)(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var a=i.getGroupScales(),s=Object(c.s)(a,[0,"values","length"],1),u=r.slice(o,o+s).concat(0===e?[]:r);i.geometries.forEach(function(e){t.seriesField?e.color(t.seriesField,u):e.color(u[0])}),o+=s}}),n.render(!0)}),t}function S(t){var e,n,i=t.chart,r=t.options,o=r.xAxis,a=r.yAxis,c=r.xField,l=r.yField;return Object(u.f)(((e={})[c]=o,e[l[0]]=a[l[0]],e))(Object(s.b)({},t,{chart:Object(h.a)(i,"left-axes-view")})),Object(u.f)(((n={})[c]=o,n[l[1]]=a[l[1]],n))(Object(s.b)({},t,{chart:Object(h.a)(i,"right-axes-view")})),t}function k(t){var e=t.chart,n=t.options,r=Object(h.a)(e,"left-axes-view"),o=Object(h.a)(e,"right-axes-view"),a=n.xField,s=n.yField,c=n.xAxis,u=n.yAxis;return e.axis(a,!1),e.axis(s[0],!1),e.axis(s[1],!1),r.axis(a,c),r.axis(s[0],b(u[s[0]],i.Left)),o.axis(a,!1),o.axis(s[1],b(u[s[1]],i.Right)),t}function A(t){var e=t.chart,n=t.options.tooltip,i=Object(h.a)(e,"left-axes-view"),r=Object(h.a)(e,"right-axes-view");return e.tooltip(n),i.tooltip({shared:!0}),r.tooltip({shared:!0}),t}function I(t){var e=t.chart;return Object(u.c)(Object(s.b)({},t,{chart:Object(h.a)(e,"left-axes-view")})),Object(u.c)(Object(s.b)({},t,{chart:Object(h.a)(e,"right-axes-view")})),t}function T(t){var e=t.chart,n=t.options,i=n.yField,r=n.annotations;return Object(u.b)(Object(c.s)(r,[i[0]]))(Object(s.b)({},t,{chart:Object(h.a)(e,"left-axes-view"),options:{annotations:Object(c.s)(r,[i[0]])}})),Object(u.b)(Object(c.s)(r,[i[1]]))(Object(s.b)({},t,{chart:Object(h.a)(e,"right-axes-view"),options:{annotations:Object(c.s)(r,[i[1]])}})),t}function B(t){var e=t.chart;return Object(u.a)(Object(s.b)({},t,{chart:Object(h.a)(e,"left-axes-view")})),Object(u.a)(Object(s.b)({},t,{chart:Object(h.a)(e,"right-axes-view")})),t}function L(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return Object(u.e)(Object(s.b)({},t,{chart:Object(h.a)(e,"left-axes-view"),options:{yAxis:r[i[0]]}})),Object(u.e)(Object(s.b)({},t,{chart:Object(h.a)(e,"right-axes-view"),options:{yAxis:r[i[1]]}})),t}function F(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,o=n.yField,a=n.data,u=Object(h.a)(e,"left-axes-view"),l=Object(h.a)(e,"right-axes-view");return!1===i?e.legend(!1):Object(c.M)(i)&&!0===i.custom?e.legend(i):(e.once("beforepaint",function(){var t=a[0].length?O({view:u,geometryOption:r[0],yField:o[0],legend:i}):[],n=a[1].length?O({view:l,geometryOption:r[1],yField:o[1],legend:i}):[];e.legend(Object(s.b)({},i,{custom:!0,items:t.concat(n)}))}),e.on("legend-item:click",function(t){var n=Object(c.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,a=i.viewId;if(i.isGeometry){if(Object(c.n)(o,function(t){return t===r})>-1){var s=Object(c.s)(Object(h.a)(e,a),"geometries");Object(c.j)(s,function(t){t.changeVisible(!n.item.unchecked)})}}else{var u=Object(c.s)(e.getController("legend"),"option.items",[]);Object(c.j)(e.views,function(t){var n=t.getGroupScales();Object(c.j)(n,function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,function(t){return!Object(c.m)(u,function(e){return e.value===t}).unchecked})}),e.render(!0)})}}})),t}function E(t){return Object(s.e)(w,C,S,k,L,A,I,T,u.j,B,M,F)(t)}var P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return Object(o.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(s.b)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return E},e}(a.a)},z4Vf:function(t,e,n){"use strict";n.d(e,"a",function(){return v});var i=n("mrSG"),r=n("zJSt"),o=n("YuPD"),a=n("iTfj"),s=n("w02o"),c=n("tKoa");function u(t){var e=t.options,n=e.sectorStyle,i=e.color;return t.chart.data(e.data),Object(o.e)(c.c)(Object(o.b)({},t,{options:{marginRatio:1,interval:{style:n,color:i}}})),t}function l(t){var e=t.chart,n=t.options,r=n.label,s=n.xField,c=Object(o.c)(e,"interval");if(!1===r)c.label(!1);else if(Object(a.M)(r)){var u=r.callback,l=r.fields,h=Object(i.f)(r,["callback","fields"]),f=h.offset,p=h.layout;(void 0===f||f>=0)&&(p=p?Object(a.B)(p)?p:[p]:[],h.layout=Object(a.l)(p,function(t){return"limit-in-shape"!==t.type}),h.layout.length||delete h.layout),c.label({fields:l||[s],callback:u,cfg:Object(o.o)(h)})}else Object(o.j)(o.a.WARN,null===r,"the label option must be an Object."),c.label({fields:[s]});return t}function h(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return!1===i?e.legend(!1):r&&e.legend(r,i),t}function f(t){var e=t.options;return t.chart.coordinate({type:"polar",cfg:{radius:e.radius,innerRadius:e.innerRadius}}),t}function p(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,c=n.yField;return Object(o.e)(Object(s.f)(((e={})[a]=i,e[c]=r,e)))(t)}function d(t){var e=t.chart,n=t.options,i=n.yAxis,r=n.yField;return e.axis(n.xField,n.xAxis||!1),e.axis(r,i||!1),t}function g(t){Object(o.e)(u,p,l,f,d,h,s.k,s.c,s.a,s.j,Object(s.b)(),s.i)(t)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return Object(i.d)(e,t),e.prototype.getDefaultOptions=function(){return Object(o.b)({},t.prototype.getDefaultOptions.call(this),{xAxis:!1,yAxis:!1,legend:{position:"right",offsetX:-10},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},e.prototype.getSchemaAdaptor=function(){return g},e}(r.a)},zJSt:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("mrSG"),r=n("kXyF"),o=n("iTfj"),a=n("f6Jy"),s=n("u3os"),c=n("YuPD"),u=function(t){function e(e,n){var i=t.call(this)||this;return i.type="base",i.container="string"==typeof e?document.getElementById(e):e,i.options=Object(c.b)({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return Object(i.d)(e,t),e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.padding,a=t.appendPadding,s=t.renderer,c=t.pixelRatio,u=t.syncViewPadding,l=t.supportCSSTransform,h=t.limitInPlot;this.chart=new r.b(Object(i.a)(Object(i.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{padding:o,appendPadding:a,renderer:s,pixelRatio:c,localRefresh:!1,syncViewPadding:u,supportCSSTransform:l,limitInPlot:h})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(c.g)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)})},e.prototype.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(c.b)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=Object(c.f)(this.chart);Object(o.j)(i,function(i){e(i.getData())&&i.setState(t,n)})},e.prototype.getStates=function(){var t=Object(c.f)(this.chart),e=[];return Object(o.j)(t,function(t){var n=t.getData(),i=t.getStates();Object(o.j)(i,function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})})}),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.appendPadding;this.chart.padding=e.padding,this.chart.appendPadding=n,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(s.bind)(this.container,function(){var e=Object(c.g)(t.container);e.width===t.chart.width&&e.height===t.chart.height||t.triggerResize()}))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a.a)},zK8m:function(t,e,n){"use strict";var i=n("mrSG"),r=n("iTfj"),o=n("6JdA"),a=n("sstZ"),s=n("aSjE"),c=n("LmB6"),u=o.a.transform,l=["zIndex","capture","visible","type"],h=["repeat"];function f(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function p(t,e){var n={},i=e.attr();return Object(r.j)(t,function(t,e){-1!==h.indexOf(e)||Object(r.G)(i[e],t)||(n[e]=t)}),n}function d(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(r.j)(t,function(t){n+i<t.startTime+t.delay+t.duration&&o>t.delay&&Object(r.j)(e.toAttrs,function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])})}),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r.Y)(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i.d)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],o=e[1];if(!i)return this.attrs;if(Object(r.M)(i)){for(var a in i)this.setAttr(a,i[a]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,o),this.afterAttrsChange(((t={})[i]=o,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(a.j)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s.b)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e,n=this.attr("matrix");e=t&&n?Object(s.b)(t,n):n||t,this.set("totalMatrix",e),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s.c)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s.a)(e);if(n)return Object(s.c)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase()[Object(r.qb)(t.type)];i&&(n=new i({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){return this.cfg.clipShape||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r.j)(e,function(t,i){n[i]=Object(r.B)(e[i])?function(t){for(var e=[],n=0;n<t.length;n++)Object(r.B)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[i]):e[i]});var i=new(0,this.constructor)({attrs:n});return Object(r.j)(l,function(e){i.set(e,t.get(e))}),i},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.isCanvas&&this.isCanvas();if(n||this.get("canvas")){this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.set("timeline",i));var o=this.get("animations")||[];i.timer||i.initTimer();var a,s,c,u,l,h=t[0],g=t[1],v=t[2],y=void 0===v?"easeLinear":v,m=t[3],b=void 0===m?r.ab:m,x=t[4],O=void 0===x?0:x;Object(r.H)(h)?(a=h,h={}):Object(r.M)(h)&&h.onFrame&&(a=h.onFrame,s=h.repeat),Object(r.M)(g)?(g=(l=g).duration,y=l.easing||"easeLinear",O=l.delay||0,s=l.repeat||s||!1,b=l.callback||r.ab,c=l.pauseCallback||r.ab,u=l.resumeCallback||r.ab):(Object(r.K)(b)&&(O=b,b=null),Object(r.H)(y)?(b=y,y="easeLinear"):y=y||"easeLinear");var j=p(h,this),w={fromAttrs:f(j,this),toAttrs:j,duration:g,easing:y,repeat:s,callback:b,pauseCallback:c,resumeCallback:u,delay:O,startTime:i.getTime(),id:Object(r.pb)(),onFrame:a,pathFormatted:!1};o.length>0?o=d(o,w):i.addAnimator(this),o.push(w),this.set("animations",o),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r.j)(n,function(n){t&&e.attr(n.onFrame?n.onFrame(1):n.toAttrs),n.callback&&n.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r.j)(e,function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(r.j)(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.g)(s,n))return"break";Object(r.B)(u)?Object(r.j)(u,function(t){i.emitDelegateEvent(s,t,e)}):c.emitDelegateEvent(s,u,e)}},c=this,u=0;u<o.length&&"break"!==s(u);u++);},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+":"+n.type;(i[r]||i["*"])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=u(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=u(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=u(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),o=u(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=u(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(c.a);e.a=g}}])}();