(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.antv"],{"000e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
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])},i(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 a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)}},"00f9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=n("73ec");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 a=e.find("filter",r);a||(a=e.addShadow(r)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")}function a(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]);i=i.join(","),-1===i.indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function o(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 a=e.addClip(n);r.setAttribute("clip-path","url(#"+a+")")}}else r.removeAttribute("clip-path")}},"060b":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return d}));var i=n("8937"),r="…";function a(t){for(var e=0,n=0;n<t.length;n++)e+=o(t,n);return e}function o(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function s(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var s=0,c=0;s<e;){var l=o(t,c);if(!(s+l<=e))break;a+=t[c],s+=o(t,c),c++}a+=r}else if("head"===n){for(s=0,c=i-1;s<e;){l=o(t,c);if(!(s+l<=e))break;a+=t[c],s+=o(t,c),c--}a=r+a}else{for(var h="",u="",p=(s=0,0),f=i-1;s<e;){var d=o(t,p),g=!1;d+s<=e&&(h+=t[p],p++,s+=d,g=!0);var v=o(t,f);if(v+s<=e&&(u=t[f]+u,s+=v,f--,g=!0),!g)break}a=h+r+u}return a}var c="…",l=2,h=400;function u(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(i["H"])(e)?"":""+e})),n=0,r=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var c=e[a].charCodeAt(s);o+=c>=19968&&c<=40869?2:1}o>n&&(n=o,r=a)}return t[r].getBBox().width}function p(t){if(t.length>h)return u(t);var e=0;return Object(i["j"])(t,(function(t){var n=t.getBBox(),i=n.width;e<i&&(e=i)})),e}function f(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function d(t,e,n,r){var o;void 0===r&&(r="tail");var h=null!==(o=e.attr("text"))&&void 0!==o?o:"";if("tail"===r){var u=Object(i["ab"])(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),p=Object(i["r"])(h,n,u,"…");return h!==p?(e.attr("text",p),e.set("tip",h),!0):(e.set("tip",null),!1)}var d=f(t,e),g=a(h),v=!1;if(n<d){var y=Math.floor(n/d*g)-l,m=void 0;m=y>=0?s(h,y,r):c,m&&(e.attr("text",m),v=!0)}return v?e.set("tip",h):e.set("tip",null),v}},"0a1f":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var i,r=n("9ab4"),a=n("e945"),o=n("7c8a"),s=n("8937"),c=n("75ed"),l=n("e546"),h=n("bbad"),u=n("2f5e"),p=(i={},i[""+h["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:u["a"].fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+h["TITLE_CLASS"]]={marginBottom:"4px"},i[""+h["LIST_CLASS"]]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+h["LIST_ITEM_CLASS"]]={listStyleType:"none",marginBottom:"4px"},i[""+h["MARKER_CLASS"]]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+h["VALUE_CLASS"]]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+h["CROSSHAIR_X"]]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+h["CROSSHAIR_Y"]]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i);function f(t,e,n,i,r){var a={left:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.y+r.height};return a}function d(t,e,n,i,r,a){var o=t,s=e;switch(a){case"left":o=t-i-n,s=e-r/2;break;case"right":o=t+n,s=e-r/2;break;case"top":o=t-i/2,s=e-r-n;break;case"bottom":o=t-i/2,s=e+n;break;default:o=t+n,s=e-r-n;break}return{x:o,y:s}}function g(t,e,n,i,r,a,o){var s=d(t,e,n,i,r,a);if(o){var c=f(s.x,s.y,i,r,o);"auto"===a?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===a||"bottom"===a?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-i),"top"===a&&c.top&&(s.y=e+n),"bottom"===a&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-r),"left"===a&&c.left&&(s.x=t+n),"right"===a&&c.right&&(s.x=t-i-n))}return s}function v(t,e){var n=!1;return Object(s["j"])(e,(function(e){if(Object(s["w"])(t,e))return n=!0,!1})),n}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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="'+h["CONTAINER_CLASS"]+'"><div class="'+h["TITLE_CLASS"]+'"></div><ul class="'+h["LIST_CLASS"]+'"></ul></div>',itemTpl:'<li class="'+h["LIST_ITEM_CLASS"]+'" data-index={index}>\n          <span class="'+h["MARKER_CLASS"]+'" style="background:{color}"></span>\n          <span class="'+h["NAME_CLASS"]+'">{name}</span>:\n          <span class="'+h["VALUE_CLASS"]+'">{value}</span>\n        </li>',xCrosshairTpl:'<div class="'+h["CROSSHAIR_X"]+'"></div>',yCrosshairTpl:'<div class="'+h["CROSSHAIR_Y"]+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:h["CONTAINER_CLASS"],crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:p})},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(o["e"])(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o["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(o["e"])(n,{display:e}),i&&Object(o["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){this.get("customContent")?this.renderCustomContent():(v(e,["title","showTitle"])&&this.resetTitle(),Object(s["w"])(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(),a=r.offsetX,s=r.offsetY,c=this.get("position"),h=this.get("region"),u=this.getContainer(),p=this.getBBox(),f=p.width,d=p.height;h&&(t=Object(l["k"])(h));var v=g(e,n,i,f,d,c,t);Object(o["e"])(u,{left:Object(l["l"])(v.x+a),top:Object(l["l"])(v.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["D"])(n)?n:Object(o["b"])(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(h["TITLE_CLASS"])[0],n=t.getElementsByClassName(h["LIST_CLASS"])[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},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(l["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(o["e"])(n,{left:Object(l["l"])(i),top:Object(l["l"])(e.y),height:Object(l["l"])(e.height)}):Object(o["e"])(n,{top:Object(l["l"])(i),left:Object(l["l"])(e.x),width:Object(l["l"])(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=h[i],a=this.get(e),s=this.get("parent");return a||(a=Object(o["b"])(this.get(n)),this.applyStyle(r,a),s.appendChild(a),this.set(e,a)),a},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=a["a"].toCSSGradient(t.color),c=Object(r["a"])(Object(r["a"])({},t),{color:i}),l=Object(s["hb"])(e,c),h=Object(o["b"])(l);n.appendChild(h)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(l["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"]),m=y},1183:function(t,e,n){"use strict";n.d(e,"e",(function(){return x})),n.d(e,"b",(function(){return M})),n.d(e,"a",(function(){return _})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return z})),n.d(e,"f",(function(){return i}));var i={};n.r(i),n.d(i,"distance",(function(){return a})),n.d(i,"isNumberEqual",(function(){return o})),n.d(i,"getBBoxByArray",(function(){return s})),n.d(i,"getBBoxRange",(function(){return c})),n.d(i,"piMod",(function(){return l}));var r=n("8937");function a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(r["W"])(t),i=Object(r["W"])(e),a=Object(r["U"])(t),o=Object(r["U"])(e);return{x:n,y:i,width:a-n,height:o-i}}function c(t,e,n,i){return{minX:Object(r["W"])([t,n]),maxX:Object(r["U"])([t,n]),minY:Object(r["W"])([e,i]),maxY:Object(r["U"])([e,i])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var h=n("6711"),u={box:function(t,e,n,i){return s([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);if(s<0)return a(t,e,r,o);var c=(n-t)*(n-t)+(i-e)*(i-e);return s>c?a(n,i,r,o):this.pointToLine(t,e,n,i,r,o)},pointToLine:function(t,e,n,i,r,a){var o=[n-t,i-e];if(h["exactEquals"](o,[0,0]))return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e));var s=[-o[1],o[0]];h["normalize"](s,s);var c=[r-t,a-e];return Math.abs(h["dot"](c,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},p=1e-4;function f(t,e,n,i,r,o){var s,c=1/0,l=[n,i],h=20;o&&o>200&&(h=o/10);for(var u=1/h,f=u/10,d=0;d<=h;d++){var g=d*u,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],y=a(l[0],l[1],v[0],v[1]);y<c&&(s=g,c=y)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]}}c=1/0;for(d=0;d<32;d++){if(f<p)break;var b=s-f,x=s+f;v=[r.apply(null,t.concat([b])),r.apply(null,e.concat([b]))],y=a(l[0],l[1],v[0],v[1]);if(b>=0&&y<c)s=b,c=y;else{var O=[r.apply(null,t.concat([x])),r.apply(null,e.concat([x]))],j=a(l[0],l[1],O[0],O[1]);x<=1&&j<c?(s=x,c=j):f*=.5}}return{x:r.apply(null,t.concat([s])),y:r.apply(null,e.concat([s]))}}function d(t,e){for(var n=0,i=t.length,r=0;r<i;r++){var o=t[r],s=e[r],c=t[(r+1)%i],l=e[(r+1)%i];n+=a(o,s,c,l)}return n/2}function g(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function v(t,e,n){var i=t+n-2*e;if(o(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}function y(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function m(t,e,n,i,r,a,o){var s=g(t,n,r,o),c=g(e,i,a,o),l=u.pointAt(t,e,n,i,o),h=u.pointAt(n,i,r,a,o);return[[t,e,l.x,l.y,s,c],[s,c,h.x,h.y,r,a]]}function b(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=m(t,e,n,i,r,o,.5),l=c[0],h=c[1];return l.push(s-1),h.push(s-1),b.apply(null,l)+b.apply(null,h)}var x={box:function(t,e,n,i,r,a){var o=v(t,n,r)[0],c=v(e,i,a)[0],l=[t,r],h=[e,a];return void 0!==o&&l.push(g(t,n,r,o)),void 0!==c&&h.push(g(e,i,a,c)),s(l,h)},length:function(t,e,n,i,r,a){return b(t,e,n,i,r,a,3)},nearestPoint:function(t,e,n,i,r,a,o,s){return f([t,n,r],[e,i,a],o,s,g)},pointDistance:function(t,e,n,i,r,o,s,c){var l=this.nearestPoint(t,e,n,i,r,o,s,c);return a(l.x,l.y,s,c)},interpolationAt:g,pointAt:function(t,e,n,i,r,a,o){return{x:g(t,n,r,o),y:g(e,i,a,o)}},divide:function(t,e,n,i,r,a,o){return m(t,e,n,i,r,a,o)},tangentAngle:function(t,e,n,i,r,a,o){var s=y(t,n,r,o),c=y(e,i,a,o),h=Math.atan2(c,s);return l(h)}};function O(t,e,n,i,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*n*r*r*a+i*r*r*r}function j(t,e,n,i,r){var a=1-r;return 3*(a*a*(e-t)+2*a*r*(n-e)+r*r*(i-n))}function w(t,e,n,i){var r,a,s,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,h=3*e-3*t,u=[];if(o(c,0))o(l,0)||(r=-h/l,r>=0&&r<=1&&u.push(r));else{var p=l*l-4*c*h;o(p,0)?u.push(-l/(2*c)):p>0&&(s=Math.sqrt(p),r=(-l+s)/(2*c),a=(-l-s)/(2*c),r>=0&&r<=1&&u.push(r),a>=0&&a<=1&&u.push(a))}return u}function C(t,e,n,i,r,a,o,s,c){var l=O(t,n,r,o,c),h=O(e,i,a,s,c),p=u.pointAt(t,e,n,i,c),f=u.pointAt(n,i,r,a,c),d=u.pointAt(r,a,o,s,c),g=u.pointAt(p.x,p.y,f.x,f.y,c),v=u.pointAt(f.x,f.y,d.x,d.y,c);return[[t,e,p.x,p.y,g.x,g.y,l,h],[l,h,v.x,v.y,d.x,d.y,o,s]]}function S(t,e,n,i,r,a,o,s,c){if(0===c)return d([t,n,r,o],[e,i,a,s]);var l=C(t,e,n,i,r,a,o,s,.5),h=l[0],u=l[1];return h.push(c-1),u.push(c-1),S.apply(null,h)+S.apply(null,u)}var M={extrema:w,box:function(t,e,n,i,r,a,o,c){for(var l=[t,o],h=[e,c],u=w(t,n,r,o),p=w(e,i,a,c),f=0;f<u.length;f++)l.push(O(t,n,r,o,u[f]));for(f=0;f<p.length;f++)h.push(O(e,i,a,c,p[f]));return s(l,h)},length:function(t,e,n,i,r,a,o,s){return S(t,e,n,i,r,a,o,s,3)},nearestPoint:function(t,e,n,i,r,a,o,s,c,l,h){return f([t,n,r,o],[e,i,a,s],c,l,O,h)},pointDistance:function(t,e,n,i,r,o,s,c,l,h,u){var p=this.nearestPoint(t,e,n,i,r,o,s,c,l,h,u);return a(p.x,p.y,l,h)},interpolationAt:O,pointAt:function(t,e,n,i,r,a,o,s,c){return{x:O(t,n,r,o,c),y:O(e,i,a,s,c)}},divide:function(t,e,n,i,r,a,o,s,c){return C(t,e,n,i,r,a,o,s,c)},tangentAngle:function(t,e,n,i,r,a,o,s,c){var h=j(t,n,r,o,c),u=j(e,i,a,s,c);return l(Math.atan2(u,h))}};function A(t,e){var n=Math.abs(t);return e>0?n:-1*n}var k={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,r,a){var o=n,s=i;if(0===o||0===s)return{x:t,y:e};for(var c,l,h=r-t,u=a-e,p=Math.abs(h),f=Math.abs(u),d=o*o,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=o*Math.cos(v),l=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/o,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-m,O=l-b,j=p-m,w=f-b,C=Math.hypot(O,x),S=Math.hypot(w,j),M=C*Math.asin((x*w-O*j)/(C*S)),k=M/Math.sqrt(d+g-c*c-l*l);v+=k,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+A(c,h),y:e+A(l,u)}},pointDistance:function(t,e,n,i,r,o){var s=this.nearestPoint(t,e,n,i,r,o);return a(s.x,s.y,r,o)},pointAt:function(t,e,n,i,r){var a=2*Math.PI*r;return{x:t+n*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(t,e,n,i,r){var a=2*Math.PI*r,o=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return l(o)}};function T(t,e,n,i,r,a,o,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function L(t,e,n,i,r,a,o,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function B(t,e,n){return Math.atan(-e/t*Math.tan(n))}function P(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function I(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function E(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function F(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function D(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function R(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var _={box:function(t,e,n,i,r,a,o){for(var s=B(n,i,r),c=1/0,l=-1/0,h=[a,o],u=2*-Math.PI;u<=2*Math.PI;u+=Math.PI){var p=s+u;a<o?a<p&&p<o&&h.push(p):o<p&&p<a&&h.push(p)}for(u=0;u<h.length;u++){var f=I(t,e,n,i,r,h[u]);f<c&&(c=f),f>l&&(l=f)}var d=P(n,i,r),g=1/0,v=-1/0,y=[a,o];for(u=2*-Math.PI;u<=2*Math.PI;u+=Math.PI){var m=d+u;a<o?a<m&&m<o&&y.push(m):o<m&&m<a&&y.push(m)}for(u=0;u<y.length;u++){var b=E(t,e,n,i,r,y[u]);b<g&&(g=b),b>v&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,i,r,a,o){},nearestPoint:function(t,e,n,i,r,a,o,s,c){var l=R(s-t,c-e,-r),h=l[0],u=l[1],p=k.nearestPoint(0,0,n,i,h,u),f=F(n,i,p.x,p.y);f<a?p=D(n,i,a):f>o&&(p=D(n,i,o));var d=R(p.x,p.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,o,s,c,l){var h=this.nearestPoint(t,e,n,i,c,l);return a(h.x,h.y,c,l)},pointAt:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a;return{x:I(t,e,n,i,r,c),y:E(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a,h=T(t,e,n,i,r,a,o,c),u=L(t,e,n,i,r,a,o,c);return l(Math.atan2(u,h))}};function H(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]),c={from:r,to:o,length:s};n.push(c),e+=s}return{segments:n,totalLength:e}}function G(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}function Y(t,e){if(e>1||e<0||t.length<2)return null;var n=H(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s<i.length;s++){var c=i[s],l=c.from,h=c.to,p=c.length/r;if(e>=a&&e<=a+p){var f=(e-a)/p;o=u.pointAt(l[0],l[1],h[0],h[1],f);break}a+=p}return o}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=H(t),i=n.segments,r=n.totalLength,a=0,o=0,s=0;s<i.length;s++){var c=i[s],l=c.from,h=c.to,u=c.length/r;if(e>=a&&e<=a+u){o=Math.atan2(h[1]-l[1],h[0]-l[0]);break}a+=u}return o}function X(t,e,n){for(var i=1/0,r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=u.pointDistance(a[0],a[1],o[0],o[1],e,n);s<i&&(i=s)}return i}var z={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 s(e,n)},length:function(t){return G(t)},pointAt:function(t,e){return Y(t,e)},pointDistance:function(t,e,n){return X(t,e,n)},tangentAngle:function(t,e){return N(t,e)}}},1243:function(t,e,n){"use strict";var i=n("9ab4"),r=n("7b46"),a=n("330d"),o=n("b2cb"),s=n("8937"),c=n("74f4"),l=n("ea1d"),h=n("6730"),u=n("54ca"),p=n("b6fb"),f=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},d=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},g=[1,0,0,0,1,0,0,0,1];function v(t,e,n){var i={},r=e.fromAttrs,a=e.toAttrs;if(!t.destroyed){var o;for(var c in a)if(!Object(s["F"])(r[c],a[c]))if("path"===c){var u=a[c],v=r[c];u.length>v.length?(u=p["parsePathString"](a[c]),v=p["parsePathString"](r[c]),v=p["fillPathByDiff"](v,u),v=p["formatPath"](v,u),e.fromAttrs.path=v,e.toAttrs.path=u):e.pathFormatted||(u=p["parsePathString"](a[c]),v=p["parsePathString"](r[c]),v=p["formatPath"](v,u),e.fromAttrs.path=v,e.toAttrs.path=u,e.pathFormatted=!0),i[c]=[];for(var y=0;y<u.length;y++){for(var m=u[y],b=v[y],x=[],O=0;O<m.length;O++)Object(s["J"])(m[O])&&b&&Object(s["J"])(b[O])?(o=Object(l["a"])(b[O],m[O]),x.push(o(n))):x.push(m[O]);i[c].push(x)}}else if("matrix"===c){var j=Object(h["a"])(r[c]||g,a[c]||g),w=j(n);i[c]=w}else f(c)&&d(a[c])?i[c]=a[c]:Object(s["G"])(a[c])||(o=Object(l["a"])(r[c],a[c]),i[c]=o(n));t.attr(i)}}function y(t,e,n){var i,r=e.startTime,a=e.delay;if(n<r+a||e._paused)return!1;var o=e.duration,s=e.easing,c=Object(u["a"])(s);if(n=n-r-e.delay,e.repeat)i=n%o/o,i=c(i);else{if(i=n/o,!(i<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;i=c(i)}if(e.onFrame){var l=e.onFrame(i);t.attr(l)}else v(t,e,i);return!1}var m=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,r=!1;this.timer=c["a"]((function(a){if(i.current=a,i.animators.length>0){for(var o=i.animators.length-1;o>=0;o--)if(t=i.animators[o],t.destroyed)i.removeAnimator(o);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=y(t,n,a),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(o)}var c=i.canvas.get("autoDraw");c||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}(),b=m,x=n("e5e2"),O=40,j=0,w=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function C(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function S(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(o["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var M=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){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,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(o["a"])(w,(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(o["a"])(w,(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,a){var o=new x["a"](t,e);return o.fromShape=r,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(i),o},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],a=!1;if(r)r.call(this,n,i,e);else{var o=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?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(a||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,c=s.get("el");c.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===j&&(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(n.button===j){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();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,h=o.clientX-t.clientX,u=o.clientY-t.clientY,p=h*h+u*u;l>120||p>O?s&&s.get("draggable")?(a=this.mousedownShape,a.set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),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,a){var o=this._getEventObj(t,e,n,i,r,a);if(i){o.shape=i,C(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||S(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;C(c,t,o)}},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}(),A=M,k="px",T=Object(r["a"])(),L=T&&"firefox"===T.name,B=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(i["c"])(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(o["h"])(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new A({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new b(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");o["c"]&&(n.style.width=t+k,n.style.height=e+k)},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");o["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(L&&!Object(o["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(o["e"])(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},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"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.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}(a["a"]);e["a"]=B},"147d":function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return r})),n.d(e,"registerAdjust",(function(){return a}));n("41c8"),n("59b0");var i={},r=function(t){return i[t.toLowerCase()]},a=function(t,e){if(r(t))throw new Error("Adjust type '"+t+"' existed.");i[t.toLowerCase()]=e}},"22f9":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"}},"29ab":function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("d177"),o=n("41c8");function s(t,e){return(e-t)*Math.random()+t}var c=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["p"](e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,a=this.groupData(n,t);return r["j"](a,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*a["c"];return s(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var a=this,o=this.getAdjustRange(e,n,i);return r["j"](t,(function(t){t[e]=a.getAdjustOffset(o)})),t},e}(o["a"]);e["a"]=c},"2e60":function(t,e,n){"use strict";var i=n("9ab4"),r=n("7fa2"),a=n("b2cb"),o=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(a["i"])(i,e),n}return Object(i["c"])(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"]=o},"2ef1":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return S})),n.d(e,"b",(function(){return D}));var i=n("8937"),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;function o(t){var e=t||[];return Object(i["A"])(e)?e:Object(i["N"])(e)?(e=e.match(r),Object(i["j"])(e,(function(t,n){if(t=t.match(a),t[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}var s=o,c=n("20e7");function l(t,e,n,i){var r,a,o,s,l,h,u,p=[],f=!!i;if(f){o=i[0],s=i[1];for(var d=0,g=t.length;d<g;d+=1){var v=t[d];o=c["b"].min([0,0],o,v),s=c["b"].max([0,0],s,v)}}d=0;for(var y=t.length;d<y;d+=1){v=t[d];if(0!==d||n)if(d!==y-1||n){var m=[d?d-1:y-1,d-1][n?0:1];r=t[m],a=t[n?(d+1)%y:d+1];var b=[0,0];b=c["b"].sub(b,a,r),b=c["b"].scale(b,b,e);var x=c["b"].distance(v,r),O=c["b"].distance(v,a),j=x+O;0!==j&&(x/=j,O/=j);var w=c["b"].scale([0,0],b,-x),C=c["b"].scale([0,0],b,O);h=c["b"].add([0,0],v,w),l=c["b"].add([0,0],v,C),l=c["b"].min([0,0],l,c["b"].max([0,0],a,v)),l=c["b"].max([0,0],l,c["b"].min([0,0],a,v)),w=c["b"].sub([0,0],l,v),w=c["b"].scale([0,0],w,-x/O),h=c["b"].add([0,0],v,w),h=c["b"].min([0,0],h,c["b"].max([0,0],r,v)),h=c["b"].max([0,0],h,c["b"].min([0,0],r,v)),C=c["b"].sub([0,0],v,h),C=c["b"].scale([0,0],C,O/x),l=c["b"].add([0,0],v,C),f&&(h=c["b"].max([0,0],h,o),h=c["b"].min([0,0],h,s),l=c["b"].max([0,0],l,o),l=c["b"].min([0,0],l,s)),p.push(u),p.push(h),u=l}else h=v,p.push(u),p.push(h);else u=v}return n&&p.push(p.shift()),p}function h(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,r=[],a=0,o=t.length;a<o;a+=2)r.push([t[a],t[a+1]]);var s,c,h,u=l(r,.4,i,n),p=r.length,f=[];for(a=0;a<p-1;a+=1)s=u[2*a],c=u[2*a+1],h=r[a+1],f.push(["C",s[0],s[1],c[0],c[1],h[0],h[1]]);return i&&(s=u[p],c=u[p+1],h=r[0],f.push(["C",s[0],s[1],c[0],c[1],h[0],h[1]])),f}var u=h;var p="\t\n\v\f\r   ᠎             　\u2028\u2029",f=new RegExp("([a-z])["+p+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+p+"]*,?["+p+"]*)+)","ig"),d=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+p+"]*,?["+p+"]*","ig");function g(t){if(!t)return null;if(Object(i["A"])(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(f,(function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(d,(function(t,e){e&&a.push(+e)})),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}var v=/[a-z]/;function y(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function m(t){var e=g(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++){var r=e[i][0];if(v.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,c=0,l=0,h=0,u=e[0];"M"!==u[0]&&"m"!==u[0]||(o=+u[1],s=+u[2],c=o,l=s,h++,a[0]=["M",o,s]);i=h;for(var p=e.length;i<p;i++){var f=e[i],d=a[i-1],m=[],b=(r=f[0],r.toUpperCase());if(r!==b)switch(m[0]=b,b){case"A":m[1]=f[1],m[2]=f[2],m[3]=f[3],m[4]=f[4],m[5]=f[5],m[6]=+f[6]+o,m[7]=+f[7]+s;break;case"V":m[1]=+f[1]+s;break;case"H":m[1]=+f[1]+o;break;case"M":c=+f[1]+o,l=+f[2]+s,m[1]=c,m[2]=l;break;default:for(var x=1,O=f.length;x<O;x++)m[x]=+f[x]+(x%2?o:s)}else m=e[i];switch(b){case"Z":o=+c,s=+l;break;case"H":o=m[1],m=["L",o,s];break;case"V":s=m[1],m=["L",o,s];break;case"T":o=m[1],s=m[2];var j=y([d[1],d[2]],[d[3],d[4]]);m=["Q",j[0],j[1],o,s];break;case"S":o=m[m.length-2],s=m[m.length-1];var w=d.length,C=y([d[w-4],d[w-3]],[d[w-2],d[w-1]]);m=["C",C[0],C[1],m[1],m[2],o,s];break;case"M":c=m[m.length-2],l=m[m.length-1];break;default:o=m[m.length-2],s=m[m.length-1]}a.push(m)}return a}Math.PI;function b(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function x(t,e){return b(t)*b(e)?(t[0]*e[0]+t[1]*e[1])/(b(t)*b(e)):1}function O(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))}function j(t,e){return t[0]===e[0]&&t[1]===e[1]}function w(t,e){var n=e[1],r=e[2],a=Object(i["Y"])(Object(i["kb"])(e[3]),2*Math.PI),o=e[4],s=e[5],c=t[0],l=t[1],h=e[6],u=e[7],p=Math.cos(a)*(c-h)/2+Math.sin(a)*(l-u)/2,f=-1*Math.sin(a)*(c-h)/2+Math.cos(a)*(l-u)/2,d=p*p/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var g=n*n*(f*f)+r*r*(p*p),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;o===s&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*f/r:0,m=n?v*-r*p/n:0,b=(c+h)/2+Math.cos(a)*y-Math.sin(a)*m,w=(l+u)/2+Math.sin(a)*y+Math.cos(a)*m,C=[(p-y)/n,(f-m)/r],S=[(-1*p-y)/n,(-1*f-m)/r],M=O([1,0],C),A=O(C,S);return x(C,S)<=-1&&(A=Math.PI),x(C,S)>=1&&(A=0),0===s&&A>0&&(A-=2*Math.PI),1===s&&A<0&&(A+=2*Math.PI),{cx:b,cy:w,rx:j(t,[h,u])?0:n,ry:j(t,[h,u])?0:r,startAngle:M,endAngle:M+A,xRotation:a,arcFlag:o,sweepFlag:s}}function C(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function S(t){t=s(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,c=0;c<o;c++){var l=t[c];i=t[c+1];var h=l[0],u={command:h,prePoint:n,params:l,startTangent:null,endTangent:null};switch(h){case"M":r=[l[1],l[2]],a=c;break;case"A":var p=w(n,l);u["arcParams"]=p;break;default:break}if("Z"===h)n=r,i=t[a+1];else{var f=l.length;n=[l[f-2],l[f-1]]}i&&"Z"===i[0]&&(i=t[a],e[a]&&(e[a].prePoint=n)),u["currentPoint"]=n,e[a]&&j(n,e[a].currentPoint)&&(e[a].prePoint=u.prePoint);var d=i?[i[i.length-2],i[i.length-1]]:null;u["nextPoint"]=d;var g=u.prePoint;if(["L","H","V"].includes(h))u.startTangent=[g[0]-n[0],g[1]-n[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===h){var v=[l[1],l[2]];u.startTangent=[g[0]-v[0],g[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===h){var y=e[c-1];v=C(y.currentPoint,g);"Q"===y.command?(u.command="Q",u.startTangent=[g[0]-v[0],g[1]-v[1]],u.endTangent=[n[0]-v[0],n[1]-v[1]]):(u.command="TL",u.startTangent=[g[0]-n[0],g[1]-n[1]],u.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===h){var m=[l[1],l[2]],b=[l[3],l[4]];u.startTangent=[g[0]-m[0],g[1]-m[1]],u.endTangent=[n[0]-b[0],n[1]-b[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[m[0]-b[0],m[1]-b[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[b[0]-m[0],b[1]-m[1]])}else if("S"===h){y=e[c-1],m=C(y.currentPoint,g),b=[l[1],l[2]];"C"===y.command?(u.command="C",u.startTangent=[g[0]-m[0],g[1]-m[1]],u.endTangent=[n[0]-b[0],n[1]-b[1]]):(u.command="SQ",u.startTangent=[g[0]-b[0],g[1]-b[1]],u.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===h){var x=.001,O=u["arcParams"]||{},S=O.cx,M=void 0===S?0:S,A=O.cy,k=void 0===A?0:A,T=O.rx,L=void 0===T?0:T,B=O.ry,P=void 0===B?0:B,I=O.sweepFlag,E=void 0===I?0:I,F=O.startAngle,D=void 0===F?0:F,R=O.endAngle,_=void 0===R?0:R;0===E&&(x*=-1);var H=L*Math.cos(D-x)+M,G=P*Math.sin(D-x)+k;u.startTangent=[H-r[0],G-r[1]];var Y=L*Math.cos(D+_+x)+M,N=P*Math.sin(D+_-x)+k;u.endTangent=[g[0]-Y,g[1]-N]}e.push(u)}return e}var M=function(t,e,n){return t>=e&&t<=n};function A(t,e,n,i){var r=.001,a={x:n.x-t.x,y:n.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},c=o.x*s.y-o.y*s.x,l=c*c,h=o.x*o.x+o.y*o.y,u=s.x*s.x+s.y*s.y,p=null;if(l>r*h*u){var f=(a.x*s.y-a.y*s.x)/c,d=(a.x*o.y-a.y*o.x)/c;M(f,0,1)&&M(d,0,1)&&(p={x:t.x+f*o.x,y:t.y+f*o.y})}return p}var k=1e-6;function T(t){return Math.abs(t)<k?0:t<0?-1:1}function L(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 B(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(L(o,s,[e,n]))return!0;T(o[1]-n)>0!==T(s[1]-n)>0&&T(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function P(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],a=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function I(t,e){var n=!1;return Object(i["j"])(t,(function(t){if(A(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function E(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 F(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function D(t,e){if(t.length<2||e.length<2)return!1;var n=E(t),r=E(e);if(!F(n,r))return!1;var a=!1;if(Object(i["j"])(e,(function(e){if(B(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(i["j"])(t,(function(t){if(B(e,t[0],t[1]))return a=!0,!1})),a)return!0;var o=P(t),s=P(e),c=!1;return Object(i["j"])(s,(function(t){if(I(o,t))return c=!0,!1})),c}},"2f5e":function(t,e,n){"use strict";e["a"]={fontFamily:'\n  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,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},"31a1":function(t,e,n){"use strict";var i=n("9ab4"),r=n("ccaf"),a=n("6928"),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["c"])(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,o=t.maxY;if(e){var s=Object(a["c"])(e,[t.minX,t.minY]),c=Object(a["c"])(e,[t.maxX,t.minY]),l=Object(a["c"])(e,[t.minX,t.maxY]),h=Object(a["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],h[0]),r=Math.max(s[0],c[0],l[0],h[0]),i=Math.min(s[1],c[1],l[1],h[1]),o=Math.max(s[1],c[1],l[1],h[1])}var u=this.attrs;if(u.shadowColor){var p=u.shadowBlur,f=void 0===p?0:p,d=u.shadowOffsetX,g=void 0===d?0:d,v=u.shadowOffsetY,y=void 0===v?0:v,m=n-f+g,b=r+f+g,x=i-f+y,O=o+f+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),o=Math.max(o,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:o,width:r-n,height:o-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];r=this.invertFromMatrix(r);var a=r[0],o=r[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(i&&i.isHit(a,o))return!0}return!1},e}(r["a"]);e["a"]=o},"31e6":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("d7ff"),o=n("8ea8"),s=n("e546"),c=n("3665"),l="update_status",h=["visible","tip","delegateObject"],u=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},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(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.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(o["a"])(n,e)),e},e.prototype.on=function(t,e,n){var i=this.get("group");return i.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){var n=this.get("group");n.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(a["a"])(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},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,a=Object(i["f"])(e,["id","component"]),o=new r(Object(i["a"])(Object(i["a"])({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+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(o["f"])(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(r["H"])(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,a=this.get("animate"),o=this.get("animateOption"),c=t.getChildren().slice(0);Object(r["j"])(c,(function(t){var c=t.get("id"),p=i.getElementById(c),f=t.get("name");if(p)if(t.get("isComponent")){var d=t.get("component"),g=p.get("component"),v=Object(r["ab"])(d.cfg,Object(r["i"])(Object(r["P"])(d.cfg),u));g.update(v),p.set(l,"update")}else{var y=i.getReplaceAttrs(p,t);a&&o.update?i.updateAnimation(f,p,y,o.update):p.attr(y),t.isGroup()&&i.updateElements(t,p),Object(r["j"])(h,(function(e){p.set(e,t.get(e))})),Object(s["m"])(p,t),n=p,p.set(l,"update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var b=m.indexOf(n);m.splice(b+1,0,t)}else m.unshift(t);if(i.registerElement(t),t.set(l,"add"),t.get("isComponent")){d=t.get("component");d.set("container",e)}else t.isGroup()&&i.registerNewGroup(t);if(n=t,a){var x=i.get("isInit")?o.appear:o.enter;x&&i.addAnimation(f,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(r["j"])(e,(function(t){t.set(l,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,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(r["X"])(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(l,"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(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var i=this.get("animate"),a=this.get("animateOption");Object(r["j"])(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&a.leave){var l=Object(r["X"])({callback:function(){t.removeElement(s)}},a.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c["a"]);e["a"]=p},"330d":function(t,e,n){"use strict";var i=n("9ab4"),r=n("ccaf"),a=n("b2cb"),o={},s="_INDEX";function c(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function l(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a["j"])(t.getChildren(),e)}function u(t){return function(e,n){var i=t(e,n);return 0===i?e[s]-n[s]:i}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));r.length>0?Object(a["a"])(r,(function(r){var a=r.getBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;o<t&&(t=o),s>e&&(e=s),c<n&&(n=c),l>i&&(i=l)})):(t=0,e=0,n=0,i=0);var o={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return o},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));r.length>0?Object(a["a"])(r,(function(r){var a=r.getCanvasBBox(),o=a.minX,s=a.maxX,c=a.minY,l=a.maxY;o<t&&(t=o),s>e&&(e=s),c<n&&(n=c),l>i&&(i=l)})):(t=0,e=0,n=0,i=0);var o={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return o},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(a["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(a["f"])(n)?i=n:i["type"]=n;var r=o[i.type];r||(r=Object(a["k"])(i.type),o[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(a["d"])(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!Object(a["b"])(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=0;o--){var s=t[o];if(Object(a["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&&h(r,t,!1),t.set("parent",this),e&&c(t,e),i&&l(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=this.getChildren();Object(a["a"])(t,(function(t,e){return t[s]=e,t})),t.sort(u((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),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){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.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(a["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(a["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"]=p},3665:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o={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["c"])(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(a["j"])(t,(function(t,i){var r=e.get(i),o=t;r!==t&&(Object(a["L"])(t)&&n[i]&&(o=Object(a["h"])({},n[i],t)),e.set(i,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(a["w"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(a["w"])(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=o[n];return Object(a["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(a["j"])(e,(function(e,n){var i=t.get(n);if(Object(a["L"])(i)){var r=Object(a["h"])({},e,i);t.set(n,r)}}))},e}(r["Base"]);e["a"]=s},"41c8":function(t,e,n){"use strict";var i=n("8937"),r=n("d177"),a=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i,a=t.dimValuesMap;this.adjustNames=r,this.xField=e,this.yField=n,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===o?0:o-1],r=n[o===s-1?s-1:o+1],0!==o?i+=(e-i)/2:i-=(r-e)/2,o!==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["u"](t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,a=e.yField,o=i["b"]({},this.dimValuesMap),s=[];if(n&&this.isAdjust("x")&&s.push(n),a&&this.isAdjust("y")&&s.push(a),s.forEach((function(e){o&&o[e]||(o[e]=i["qb"](t,e).sort((function(t,e){return t-e})))})),!a&&this.isAdjust("y")){var c="y";o[c]=[r["a"],1]}return o},t}();e["a"]=a},4799: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,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return m})),n.d(e,"Line",(function(){return w})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return z})),n.d(e,"Polygon",(function(){return W})),n.d(e,"Polyline",(function(){return Z})),n.d(e,"Rect",(function(){return tt})),n.d(e,"Text",(function(){return nt}));var i={};n.r(i),n.d(i,"Base",(function(){return h})),n.d(i,"Circle",(function(){return p})),n.d(i,"Ellipse",(function(){return g})),n.d(i,"Image",(function(){return m})),n.d(i,"Line",(function(){return w})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return z})),n.d(i,"Polygon",(function(){return W})),n.d(i,"Polyline",(function(){return Z})),n.d(i,"Rect",(function(){return tt})),n.d(i,"Text",(function(){return nt}));var r=n("9ab4"),a=n("6855"),o=n("7326"),s=n("f5e5"),c=n("c2ad"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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(a["getBBoxMethod"])(t),i=n(this),r=e/2,o=i.x-r,s=i.y-r,c=i.x+i.width+r,l=i.y+i.height+r;return{x:o,minX:o,y:s,minY:s,width:i.width+e,height:i.height+e,maxX:c,maxY:l}},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(o["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(o["f"])(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",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,a=e.fillOpacity;this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(o["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}(a["AbstractShape"]),h=l,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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 a=this.attr(),s=a.x,c=a.y,l=a.r,h=r/2,u=Object(o["b"])(s,c,t,e);return i&&n?u<=l+h:i?u<=l:!!n&&(u>=l-h&&u<=l+h)},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}(h),p=u;function f(t,e,n,i){return t/(n*n)+e/(i*i)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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 a=this.attr(),o=r/2,s=a.x,c=a.y,l=a.rx,h=a.ry,u=(t-s)*(t-s),p=(e-c)*(e-c);return i&&n?f(u,p,l+o,h+o)<=1:i?f(u,p,l,h)<=1:!!n&&(f(u,p,l-o,h-o)>=1&&f(u,p,l+o,h+o)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,a,0,0,2*Math.PI,!1);else{var o=r>a?r:a,s=r>a?1:r/a,c=r>a?a/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(h),g=d;function v(t){return t instanceof HTMLElement&&Object(o["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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(o["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)):v(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(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,a=e.height,s=e.sx,c=e.sy,l=e.swidth,h=e.sheight,u=e.img;(u instanceof Image||v(u))&&(Object(o["i"])(s)||Object(o["i"])(c)||Object(o["i"])(l)||Object(o["i"])(h)?t.drawImage(u,n,i,r,a):t.drawImage(u,s,c,l,h,n,i,r,a))},e}(h),m=y,b=n("1183");function x(t,e,n,i,r,a,o){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,i),h=Math.max(e,i),u=r/2;return a>=s-u&&a<=c+u&&o>=l-u&&o<=h+u&&b["c"].pointToLine(t,e,n,i,a,o)<=r/2}var O=n("9f27"),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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,a=t.startArrow,o=t.endArrow;a&&O["b"](this,t,i,r,e,n),o&&O["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr(),o=a.x1,s=a.y1,c=a.x2,l=a.y2;return x(o,s,c,l,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(c=O["c"](n,i,r,a,e.startArrow.d)),s&&s.d&&(l=O["c"](n,i,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-l.dx,a-l.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(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return b["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return b["c"].pointAt(n,i,r,a,t)},e}(h),w=j,C=n("8937"),S=n("2ef1"),M={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"]]}},A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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(C["H"])(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,a=i.y,s=i.symbol||"circle",c=this._getR(i);if(Object(o["h"])(s))t=s,n=t(r,a,c),n=Object(S["d"])(n);else{if(t=e.Symbols[s],!t)return console.warn(s+" marker is not supported."),null;n=t(r,a,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=M,e}(h),k=A;function T(t,e,n){var i=Object(a["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var L=1e-6;function B(t){return Math.abs(t)<L?0:t<0?-1:1}function P(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 I(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(P(o,s,[e,n]))return!0;B(o[1]-n)>0!==B(s[1]-n)>0&&B(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var E=n("e897"),F=n("9fe7");function D(t,e,n,i,r,a,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(l<i||l>r)return!1;var h={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(o["b"])(h.x,h.y,s,c)<=a/2}var R=E["a"].transform;function _(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i],a=r[0];if("C"===a||"A"===a||"Q"===a){e=!0;break}}return e}function H(t,e,n,i,r){for(var a=!1,s=e/2,c=0;c<t.length;c++){var l=t[c],h=l.currentPoint,u=l.params,p=l.prePoint,f=l.box;if(!f||Object(o["e"])(f.x-s,f.y-s,f.width+e,f.height+e,n,i)){switch(l.command){case"L":case"Z":a=x(p[0],p[1],h[0],h[1],e,n,i);break;case"Q":var d=b["e"].pointDistance(p[0],p[1],u[1],u[2],u[3],u[4],n,i);a=d<=e/2;break;case"C":var g=b["b"].pointDistance(p[0],p[1],u[1],u[2],u[3],u[4],u[5],u[6],n,i,r);a=g<=e/2;break;case"A":var v=l.arcParams,y=v.cx,m=v.cy,O=v.rx,j=v.ry,w=v.startAngle,C=v.endAngle,S=v.xRotation,M=[n,i,1],A=O>j?O:j,k=O>j?1:O/j,T=O>j?j/O:1,L=R(null,[["t",-y,-m],["r",-S],["s",1/k,1/T]]);F["transformMat3"](M,M,L),a=D(0,0,A,w,C,e,M[0],M[1]);break;default:break}if(a)break}}return a}function G(t){for(var e=t.length,n=[],i=[],r=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([o[1],o[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([o[1],o[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}}var Y=Object(r["a"])({hasArc:_,extractPolygons:G,isPointInStroke:H},a["PathUtil"]);function N(t,e,n){for(var i=!1,r=0;r<t.length;r++){var a=t[r];if(i=I(a,e,n),i)break}return i}var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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(S["d"])(t);var e=Y.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(S["e"])(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();O["b"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}if(n){i=this.getEndTangent();O["a"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var c=this.getTotalLength();s=Y.isPointInStroke(a,r,t,e,c)}if(!s&&i)if(o)s=T(this,t,e);else{var l=this.attr("path"),h=Y.extractPolygons(l);s=N(h.polygons,t,e)||N(h.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(C["H"])(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(C["j"])(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var a=r[n];if(Object(C["H"])(a)||Object(C["H"])(n))return null;var o=a.length,s=r[n+1];return b["b"].pointAt(a[o-2],a[o-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",Y.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(C["j"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=b["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(C["j"])(s,(function(c,l){n=s[l+1],i=c.length,n&&(t=[],t[0]=a/r,e=b["b"].length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/r,o.push(t))})),this.set("tCache",o)):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,a=e[n-1].endTangent;t=[],a?(t.push([r[0]-a[0],r[1]-a[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(h),z=X;function V(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var s=t[o][0],c=t[o][1],l=t[o+1][0],h=t[o+1][1];if(x(s,c,l,h,e,n,i))return!0}if(r){var u=t[0],p=t[a-1];if(x(u[0],u[1],p[0],p[1],e,n,i))return!0}return!1}var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr().points,o=!1;return n&&(o=V(a,r,t,e,!0)),!o&&i&&(o=I(a,t,e)),o},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var i=0;i<n.length;i++){var r=n[i];0===i?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(h),W=q,U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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.startArrow,r=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];i&&O["b"](this,t,n[1][0],n[1][1],o,s),r&&O["a"](this,t,n[a-2][0],n[a-2][1],c,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr().points;return V(a,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,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],c=n[a-1][0],l=n[a-1][1];if(i&&i.d){var h=O["c"](o,s,n[1][0],n[1][1],i.d);o+=h.dx,s+=h.dy}if(r&&r.d){h=O["c"](n[a-2][0],n[a-2][1],c,l,r.d);c-=h.dx,l-=h.dy}t.beginPath(),t.moveTo(o,s);for(var u=0;u<a-1;u++){var p=n[u];t.lineTo(p[0],p[1])}t.lineTo(c,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(C["H"])(e)?(this.set("totalLength",b["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(C["j"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),b["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,a=[];Object(C["j"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=b["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},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),Z=U,Q=n("af40");function K(t,e,n,i,r,a,s){var c=r/2;return Object(o["e"])(t-c,e-c,n,r,a,s)||Object(o["e"])(t+n-c,e-c,r,i,a,s)||Object(o["e"])(t+c,e+i-c,n,r,a,s)||Object(o["e"])(t-c,e+c,r,i,a,s)}function J(t,e,n,i,r,a,o,s){return x(t+r,e,t+n-r,e,a,o,s)||x(t+n,e+r,t+n,e+i-r,a,o,s)||x(t+n-r,e+i,t+r,e+i,a,o,s)||x(t,e+i-r,t,e+r,a,o,s)||D(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,a,o,s)||D(t+n-r,e+i-r,r,0,.5*Math.PI,a,o,s)||D(t+r,e+i-r,r,.5*Math.PI,Math.PI,a,o,s)||D(t+r,e+r,r,Math.PI,1.5*Math.PI,a,o,s)}var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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 a=this.attr(),s=a.x,c=a.y,l=a.width,h=a.height,u=a.radius;if(u){var p=!1;return n&&(p=J(s,c,l,h,u,r,t,e)),!p&&i&&(p=T(this,t,e)),p}var f=r/2;return i&&n?Object(o["e"])(s-f,c-f,l+f,h+f,t,e):i?Object(o["e"])(s,c,l,h,t,e):n?K(s,c,l,h,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,a=e.height,o=e.radius;if(t.beginPath(),0===o)t.rect(n,i,r,a);else{var s=Object(Q["a"])(o),c=s[0],l=s[1],h=s[2],u=s[3];t.moveTo(n+c,i),t.lineTo(n+r-l,i),0!==l&&t.arc(n+r-l,i+l,l,-Math.PI/2,0),t.lineTo(n+r,i+a-h),0!==h&&t.arc(n+r-h,i+a-h,h,0,Math.PI/2),t.lineTo(n+u,i+a),0!==u&&t.arc(n+u,i+a-u,u,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}(h),tt=$,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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(a["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(o["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,l=r.y,h=1*r.fontSize,u=this._getSpaceingY(),p=Object(a["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(o["c"])(e,(function(e,r){i=l+r*(u+h)-p+h,"middle"===s&&(i+=p-h-(p-h)/2),"top"===s&&(i+=p-h),Object(o["i"])(e)||(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,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;Object(o["i"])(s)||(e?t.fillText(s,i,r):t.strokeText(s,i,r))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&(Object(o["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,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}(h),nt=et},"53c8":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var i=n("4799");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var a in r)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("b182");n.d(e,"Canvas",(function(){return o["a"]}));var s=n("c2ad");n.d(e,"Group",(function(){return s["a"]}));var c=n("9c29");n.d(e,"getArcParams",(function(){return c["a"]}));var l="0.5.12"},"54ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("fb77"),r={};function a(t){return r[t.toLowerCase()]||i[t]}function o(t,e){r[t.toLowerCase()]=e}},"59b0":function(t,e){},6855:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return m}));var i=n("b6fb");n.d(e,"PathUtil",(function(){return i}));var r=n("e1c6");for(var a in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("b5d5");for(var a in o)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var s=n("e5e2");n.d(e,"Event",(function(){return s["a"]}));var c=n("2e60");n.d(e,"Base",(function(){return c["a"]}));var l=n("1243");n.d(e,"AbstractCanvas",(function(){return l["a"]}));var h=n("f83c");n.d(e,"AbstractGroup",(function(){return h["a"]}));var u=n("31a1");n.d(e,"AbstractShape",(function(){return u["a"]}));var p=n("d4c6");n.d(e,"getBBoxMethod",(function(){return p["a"]})),n.d(e,"registerBBox",(function(){return p["b"]}));var f=n("bc88");n.d(e,"getTextHeight",(function(){return f["b"]})),n.d(e,"assembleFont",(function(){return f["a"]}));var d=n("b2cb");n.d(e,"isAllowCapture",(function(){return d["b"]}));var g=n("6928");n.d(e,"multiplyVec2",(function(){return g["c"]})),n.d(e,"invert",(function(){return g["a"]}));var v=n("96de");n.d(e,"getOffScreenContext",(function(){return v["a"]}));var y=n("54ca");n.d(e,"registerEasing",(function(){return y["b"]}));var m="0.5.11"},"68de":function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return p})),n.d(e,"Circle",(function(){return g})),n.d(e,"Dom",(function(){return y})),n.d(e,"Ellipse",(function(){return b})),n.d(e,"Image",(function(){return O})),n.d(e,"Line",(function(){return C})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return L})),n.d(e,"Polygon",(function(){return P})),n.d(e,"Polyline",(function(){return E})),n.d(e,"Rect",(function(){return R})),n.d(e,"Text",(function(){return z}));var i={};n.r(i),n.d(i,"Base",(function(){return p})),n.d(i,"Circle",(function(){return g})),n.d(i,"Dom",(function(){return y})),n.d(i,"Ellipse",(function(){return b})),n.d(i,"Image",(function(){return O})),n.d(i,"Line",(function(){return C})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return L})),n.d(i,"Polygon",(function(){return P})),n.d(i,"Polyline",(function(){return E})),n.d(i,"Rect",(function(){return R})),n.d(i,"Text",(function(){return z}));var r=n("9ab4"),a=n("6855"),o=n("00f9"),s=n("73ec"),c=n("7349"),l=n("22f9"),h=n("e73e"),u=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["c"])(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 h["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(a["getBBoxMethod"])(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,o=e.width,s=e.height,c=this.getHitLineWidth(),l=c/2,h=i-l,u=r-l,p=i+o+l,f=r+s+l;return{x:h,y:u,minX:h,minY:u,maxX:p,maxY:f,width:o+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(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&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(o["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,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,c=n.strokeOpacity,h=n.lineWidth,u=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&&u.setAttribute(l["b"]["fillOpacity"],s)),this.canStroke&&h>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),c&&u.setAttribute(l["b"]["strokeOpacity"],c),h&&u.setAttribute(l["b"]["lineWidth"],h))},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)){var r=t.find("gradient",n);r||(r=t.addGradient(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else i.setAttribute(l["b"][e],n);else i.setAttribute(l["b"][e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,a=i.shadowOffsetY,s=i.shadowBlur,c=i.shadowColor;(r||a||s||c)&&Object(o["b"])(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Object(o["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"),r=i.get("el").getBoundingClientRect(),a=t+r.left,o=e+r.top,s=document.elementFromPoint(a,o);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a["AbstractShape"]),p=u,f=n("8937"),d=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["c"])(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):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(p),g=d,v=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["c"])(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){l["b"][e]&&i.setAttribute(l["b"][e],t)})),"function"===typeof n["html"]){var r=n["html"].call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var a=i.childNodes,o=a.length-1;o>=0;o--)i.removeChild(a[o]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n["html"]},e}(p),y=v,m=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["c"])(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):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(p),b=m,x=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["c"])(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):l["b"][e]&&r.setAttribute(l["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["N"])(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["N"])(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}(p),O=x,j=n("1183"),w=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["c"])(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 a=Object(f["L"])(e)?t.addArrow(n,l["b"][r]):t.getDefaultArrow(n,l["b"][r]);i.setAttribute(l["b"][r],"url(#"+a+")")}else i.removeAttribute(l["b"][r]);else l["b"][r]&&i.setAttribute(l["b"][r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return j["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return j["c"].pointAt(n,i,r,a,t)},e}(p),C=w,S={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"]]}},M={get:function(t){return S[t]},register:function(t,e){S[t]=e},remove:function(t){delete S[t]},getAll:function(){return S}},A=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["c"])(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(f["A"])(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,a=e.symbol||"circle";return t=Object(f["G"])(a)?a:M.get(a),t?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=M,e}(p),k=A,T=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["c"])(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,a){if("path"===a&&Object(f["A"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(f["L"])(e)?t.addArrow(i,l["b"][a]):t.getDefaultArrow(i,l["b"][a]);r.setAttribute(l["b"][a],"url(#"+o+")")}else r.removeAttribute(l["b"][a]);else l["b"][a]&&r.setAttribute(l["b"][a],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}(p),L=T,B=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["c"])(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["A"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(p),P=B,I=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["c"])(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["A"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(f["H"])(e)?(this.set("totalLength",j["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)})),j["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,a=[];Object(f["j"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=j["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},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}(p),E=I;function F(t){var e=0,n=0,i=0,r=0;return Object(f["A"])(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}}var D=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["c"])(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"),a=!1,o=["x","y","width","height","radius"];Object(f["j"])(e||i,(function(t,e){-1===o.indexOf(e)||a?-1===o.indexOf(e)&&l["b"][e]&&r.setAttribute(l["b"][e],t):(r.setAttribute("d",n._assembleRect(i)),a=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var o=F(a);Object(f["A"])(a)?1===a.length?o.r1=o.r2=o.r3=o.r4=a[0]:2===a.length?(o.r1=o.r3=a[0],o.r2=o.r4=a[1]):3===a.length?(o.r1=a[0],o.r2=o.r4=a[1],o.r3=a[2]):(o.r1=a[0],o.r2=a[1],o.r3=a[2],o.r4=a[3]):o.r1=o.r2=o.r3=o.r4=a;var s=[["M "+(e+o.r1)+","+n],["l "+(i-o.r1-o.r2)+",0"],["a "+o.r2+","+o.r2+",0,0,1,"+o.r2+","+o.r2],["l 0,"+(r-o.r2-o.r3)],["a "+o.r3+","+o.r3+",0,0,1,"+-o.r3+","+o.r3],["l "+(o.r3+o.r4-i)+",0"],["a "+o.r4+","+o.r4+",0,0,1,"+-o.r4+","+-o.r4],["l 0,"+(o.r4+o.r1-r)],["a "+o.r1+","+o.r1+",0,0,1,"+o.r1+","+-o.r1],["z"]];return s.join(" ")},e}(p),R=D,_=n("7b46"),H=.3,G={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Y={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},N={left:"left",start:"left",center:"middle",right:"end",end:"end"},X=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["c"])(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(o["c"])(n):l["b"][e]&&r.setAttribute(l["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(_["a"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",Y[n]||"alphabetic"):t.setAttribute("alignment-baseline",G[n]||"baseline"),t.setAttribute("text-anchor",N[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,a=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var o=t.split("\n"),s=o.length-1,c="";Object(f["j"])(o,(function(t,e){0===e?"alphabetic"===a?c+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===a?c+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===a?c+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===a?c+='<tspan x="'+i+'" dy="-'+(s+H)+'em">'+t+"</tspan>":"hanging"===a&&(c+='<tspan x="'+i+'" dy="'+(-(s-1)-H)+'em">'+t+"</tspan>"):c+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(p),z=X},6928:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],h=t[7],u=t[8],p=e[0],f=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]=p*i+f*o+d*l,n[1]=p*r+f*s+d*h,n[2]=p*a+f*c+d*u,n[3]=g*i+v*o+y*l,n[4]=g*r+v*s+y*h,n[5]=g*a+v*c+y*u,n[6]=m*i+b*o+x*l,n[7]=m*r+b*s+x*h,n[8]=m*a+b*c+x*u,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 a(t){var e=[],n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],h=t[8],u=h*o-s*l,p=-h*a+s*c,f=l*a-o*c,d=n*u+i*p+r*f;return d?(d=1/d,e[0]=u*d,e[1]=(-h*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(h*n-r*c)*d,e[5]=(-s*n+r*a)*d,e[6]=f*d,e[7]=(-l*n+i*c)*d,e[8]=(o*n-i*a)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}))},7326:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return l}));var i=n("8937");function r(){return window?window.devicePixelRatio:1}function a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=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 l(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return i["H"]})),n.d(e,"k",(function(){return i["N"]})),n.d(e,"h",(function(){return i["G"]})),n.d(e,"g",(function(){return i["A"]})),n.d(e,"c",(function(){return i["j"]})),n.d(e,"o",(function(){return i["kb"]})),n.d(e,"m",(function(){return i["Y"]})),n.d(e,"n",(function(){return i["db"]})),n.d(e,"a",(function(){return i["d"]}))},7349:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("00f9"),r=n("73ec");function a(t,e){e.forEach((function(e){e.draw(t)}))}function o(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],c=t.get("el");if("remove"===e){var l=t.get("isClipShape");if(l){var h=c&&c.parentNode,u=h&&h.parentNode;h&&u&&u.removeChild(h)}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 p=t.get("children");p&&p.length&&Object(r["d"])(t,(function(t,e){return p.indexOf(t)-p.indexOf(e)?1:0}))}else"clear"===e?c&&(c.innerHTML=""):"matrix"===e?Object(i["c"])(t):"clip"===e?Object(i["a"])(t,a):"attr"===e||"add"===e&&t.draw(a)}}},"73ec":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return c}));var i=n("8937"),r=n("22f9");function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function o(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=a(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(i)}return i}function s(t,e){var n=t.get("el"),r=Object(i["jb"])(n.children).sort(e),a=document.createDocumentFragment();r.forEach((function(t){a.appendChild(t)})),n.appendChild(a)}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],a=i.indexOf(t);if(r){if(a>e)n.insertBefore(t,r);else if(a<e){var o=i[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},"75ed":function(t,e,n){"use strict";var i=n("9ab4"),r=n("7c8a"),a=n("8937"),o=n("e546"),s=n("3665"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,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(o["b"])(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(o["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(a["H"])(t)){t=this.createDom();var e=this.get("parent");Object(a["N"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(a["N"])(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(a["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(o["h"])(e,n)){var i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(a["j"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(a["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(a["w"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(s["a"]);e["a"]=c},"7c50":function(t,e,n){"use strict";n.d(e,"a",(function(){return M}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},c={fill:"#CACED4",opacity:.85},l=n("2ef1"),h=n("f2fb");function u(t){return Object(r["S"])(t,(function(t,e){var n=0===e?"M":"L",i=t[0],r=t[1];return[n,i,r]}))}function p(t){return u(t)}function f(t){if(t.length<=2)return p(t);var e=[];Object(r["j"])(t,(function(t){Object(r["F"])(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l["a"])(e,!1),i=Object(r["x"])(t),a=i[0],o=i[1];return n.unshift(["M",a,o]),n}function d(t,e,n,i){void 0===i&&(i=!0);var a=new h["b"]({values:t}),o=new h["a"]({values:Object(r["S"])(t,(function(t,e){return e}))}),s=Object(r["S"])(t,(function(t,i){return[o.scale(i)*e,n-a.scale(t)*n]}));return i?f(s):p(s)}function g(t,e){var n=new h["b"]({values:t}),i=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(i)*e}function v(t,e,n,r){var a=Object(i["h"])(t),o=g(r,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:o,lineStyle:s,areaStyle:c})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,s=e.isArea,c=e.backgroundStyle,l=e.lineStyle,h=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:r},c)});var u=d(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(i["a"])({path:u},l)}),s){var p=v(u,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(i["a"])({path:p},h)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a["a"]),m={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:m})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,a=r.fill,o=r.stroke,s=r.radius,c=r.opacity,l=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:a,stroke:o,radius:s,opacity:c,cursor:l}});var h=1/3*n,u=2/3*n,p=1/4*i,f=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:h,y1:p,x2:h,y2:f,stroke:o,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:u,y1:p,x2:u,y2:f,stroke:o,cursor:l}})},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}(a["a"]),x={fill:"#416180",opacity:.05},O={fill:"#5B8FF9",opacity:.15,cursor:"move"},j=10,w={width:j,height:24},C={textBaseline:"middle",fill:"#000",opacity:.45},S="sliderchange",M=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["q"])(i,"touches.0.pageX",i.pageX),e.prevY=Object(r["q"])(i,"touches.0.pageY",i.pageY);var a=e.getContainerDOM();a.addEventListener("mousemove",e.onMouseMove),a.addEventListener("mouseup",e.onMouseUp),a.addEventListener("mouseleave",e.onMouseUp),a.addEventListener("touchmove",e.onMouseMove),a.addEventListener("touchend",e.onMouseUp),a.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 a=Object(r["q"])(t,"touches.0.pageX",t.pageX),o=Object(r["q"])(t,"touches.0.pageY",t.pageY),s=a-e.prevX,c=e.adjustOffsetRange(s/n);e.updateStartEnd(c),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=a,e.prevY=o,e.draw(),e.emit(S,[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["c"])(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"),a=Object(r["c"])(n,t,e),o=Object(r["c"])(i,t,e);this.get("isInit")||n===a&&i===o||this.setValue([a,o])},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["A"])(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:x,foregroundStyle:O,handlerStyle:w,textStyle:C}})},e.prototype.update=function(e){var n=e.start,a=e.end,o=Object(i["a"])({},e);Object(r["H"])(n)||(o.start=Object(r["c"])(n,0,1)),Object(r["H"])(a)||(o.end=Object(r["c"])(a,0,1)),t.prototype.update.call(this,o),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.start,e.end,e.width),a=e.height,o=e.trendCfg,s=void 0===o?{}:o,c=e.minText,l=e.maxText,h=e.backgroundStyle,u=void 0===h?{}:h,p=e.foregroundStyle,f=void 0===p?{}:p,d=e.textStyle,g=void 0===d?{}:d,v=Object(r["h"])({},m,this.cfg.handlerStyle);Object(r["fb"])(Object(r["q"])(s,"data"))&&(this.trend=this.addComponent(t,Object(i["a"])({component:y,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:a},u)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(i["a"])({y:a/2,textAlign:"right",text:c,silent:!1},g)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(i["a"])({y:a/2,textAlign:"left",text:l,silent:!1},g)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(i["a"])({y:0,height:a},f)});var x=Object(r["q"])(v,"width",j),O=Object(r["q"])(v,"height",24);this.minHandler=this.addComponent(t,{component:b,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-O)/2,width:x,height:O,cursor:"ew-resize",style:v}),this.maxHandler=this.addComponent(t,{component:b,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-O)/2,width:x,height:O,cursor:"ew-resize",style:v})},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,a=i.start,o=i.end,s=i.width,c=i.minText,l=i.maxText,h=i.handlerStyle,u=i.height,p=a*s,f=o*s;this.trend&&(this.trend.update({width:s,height:u}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",f-p);var d=Object(r["q"])(h,"width",j);e.attr("text",c),n.attr("text",l);var g=this._dodgeText([p,f],e,n),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(r["j"])(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(r["j"])(y,(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,a=1-n;return Math.min(a,Math.max(r,t));case"maxHandler":r=0-i,a=1-i;return Math.min(a,Math.max(r,t));case"foreground":r=0-n,a=1-i;return Math.min(a,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;break}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,a,o=this.cfg,s=o.handlerStyle,c=o.width,l=2,h=Object(r["q"])(s,"width",j),u=t[0],p=t[1],f=!1;u>p&&(i=[p,u],u=i[0],p=i[1],a=[n,e],e=a[0],n=a[1],f=!0);var d=e.getBBox(),g=n.getBBox(),v=d.width>u-l?{x:u+h/2+l,textAlign:"left"}:{x:u-h/2-l,textAlign:"right"},y=g.width>c-p-l?{x:p-h/2-l,textAlign:"right"}:{x:p+h/2+l,textAlign:"left"};return f?[y,v]:[v,y]},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}(a["a"])},"7c8a":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,a,o,s;function c(){r=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:a,th:a,"*":document.createElement("div")}}function l(t){r||c();var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}function h(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 u(t,e){var n=h(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function p(t,e){var n=u(t,e),i=parseFloat(h(t,"borderTopWidth"))||0,r=parseFloat(h(t,"paddingTop"))||0,a=parseFloat(h(t,"paddingBottom"))||0,o=parseFloat(h(t,"borderBottomWidth"))||0,s=parseFloat(h(t,"marginTop"))||0,c=parseFloat(h(t,"marginBottom"))||0;return n+i+o+r+a+s+c}function f(t,e){var n=h(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=f(t,e),i=parseFloat(h(t,"borderLeftWidth"))||0,r=parseFloat(h(t,"paddingLeft"))||0,a=parseFloat(h(t,"paddingRight"))||0,o=parseFloat(h(t,"borderRightWidth"))||0,s=parseFloat(h(t,"marginRight"))||0,c=parseFloat(h(t,"marginLeft"))||0;return n+i+o+r+a+c+s}function g(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 l})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return g}))},"7cfd":function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return G})),n.d(e,"Circle",(function(){return N})),n.d(e,"Base",(function(){return g}));var i={};n.r(i),n.d(i,"getDefault",(function(){return m})),n.d(i,"ellipsisHead",(function(){return b})),n.d(i,"ellipsisTail",(function(){return x})),n.d(i,"ellipsisMiddle",(function(){return O}));var r={};n.r(r),n.d(r,"getDefault",(function(){return k})),n.d(r,"reserveFirst",(function(){return T})),n.d(r,"reserveLast",(function(){return L})),n.d(r,"reserveBoth",(function(){return B})),n.d(r,"equidistance",(function(){return P})),n.d(r,"equidistanceWithReverseBoth",(function(){return I}));var a={};n.r(a),n.d(a,"getDefault",(function(){return D})),n.d(a,"fixedAngle",(function(){return R})),n.d(a,"unfixedAngle",(function(){return _}));var o={};n.r(o),n.d(o,"autoHide",(function(){return r})),n.d(o,"autoRotate",(function(){return a})),n.d(o,"autoEllipsis",(function(){return i}));var s=n("9ab4"),c=n("e897"),l=n("8937"),h=n("31e6"),u=n("8ea8"),p=n("9778"),f=n("2f5e"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(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:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:f["a"].lineColor}},tickLine:{style:{lineWidth:1,stroke:f["a"].lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:f["a"].lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:f["a"].textColor,fontFamily:f["a"].fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:f["a"].textColor,textBaseline:"middle",fontFamily:f["a"].fontFamily,textAlign:"center"},iconStyle:{fill:f["a"].descriptionIconFill,stroke:f["a"].descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:f["a"].uncheckedColor}}},optimize:{enable:!0,threshold:400}},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(l["X"])(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(l["j"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l["j"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l["l"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(l["K"])(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(l["K"])(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(l["X"])({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,a=i.length,o=1,s=t.length;return s>=2&&(o=t[1].value-t[0].value),Object(l["j"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-o/2));var s=e.getSidePoint(i,a);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 a=0;a<r-1;a++)for(var o=t[a],s=t[a+1],c=0;c<i;c++){var l=(c+1)/(i+1),h=(1-l)*o.tickValue+l*s.tickValue,u=this.getTickPoint(h),p=this.getSidePoint(u,n.length);e.push({startPoint:u,endPoint:p,tickValue:h,id:"sub-"+o.id+"-"+c})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var r=this.get(e).style,a={points:[t.startPoint,t.endPoint]},o=Object(l["q"])(this.get("theme"),["tickLine","style"],{});r=Object(l["G"])(r)?Object(l["X"])({},o,r(a,n,i)):r;var c=t.startPoint,h=t.endPoint;return Object(s["a"])({x1:c.x,y1:c.y,x2:h.x,y2:h.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),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),o=this.get("tickLine");if(Object(l["j"])(r,(function(n,i){if(o.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,a,"tickLine",i,r)}else e.drawTick(n,a,"tickLine",i,r)})),i){var s=this.getSubTickLineItems(r);Object(l["j"])(s,(function(t,n){e.drawTick(t,a,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(l["j"])(e,(function(e){e.point=t.getTickPoint(e.value),Object(l["H"])(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(l["j"])(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Object(l["fb"])(e);if(n>t.threshold){var i=Math.ceil(n/t.threshold),r=e.filter((function(t,e){return e%i===0}));this.set("ticks",r),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var i=this.get("label"),r=i.offset,a=i.offsetX,o=i.offsetY,s=i.rotate,c=i.formatter,h=this.getSidePoint(t.point,r),p=this.getSideVector(r,h),f=c?c(t.name,t,e):t.name,d=i.style;d=Object(l["G"])(d)?Object(l["q"])(this.get("theme"),["label","style"],{}):d;var g=Object(l["X"])({x:h.x+a,y:h.y+o,text:f,textAlign:this.getTextAnchor(p),textBaseline:this.getTextBaseline(p)},d);return s&&(g.matrix=Object(u["e"])(h,s)),g},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(l["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(),a=Object(l["q"])(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,c=o.formatter;if(Object(l["G"])(s)){var h=r.map((function(t){return Object(l["q"])(t.get("delegateObject"),"tick")}));Object(l["j"])(r,(function(t,e){var n=t.get("delegateObject").tick,i=c?c(n.name,n,e):n.name,r=Object(l["X"])({},a,s(i,e,h));t.attr(r)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,a=void 0===r?0:r,o=t.autoRotate,s=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var p=this.getTickPoint(h),f=this.getSidePoint(p,i||a+s/2),d=Object(l["X"])({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(l["H"])(g)&&o){var y=this.getAxisVector(p),m=[1,0];v=c["a"].angleTo(y,m,!0)}if(v){var b=Object(u["e"])(f,v);d.matrix=b}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),i=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,i,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),r=e.getBBox(),a=r.maxX,o=r.maxY,c=r.height,l=this.get("title").iconStyle,h=4,u=c/2,p=u/6,f=a+h,d=o-c/2,g=[f+u,d-u],v=g[0],y=g[1],m=[v+u,y+u],b=m[0],x=m[1],O=[v,x+u],j=O[0],w=O[1],C=[f,y+u],S=C[0],M=C[1],A=[f+u,d-c/4],k=A[0],T=A[1],L=[k,T+p],B=L[0],P=L[1],I=[B,P+p],E=I[0],F=I[1],D=[E,F+3*u/4],R=D[0],_=D[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(s["a"])({path:[["M",v,y],["A",u,u,0,0,1,b,x],["A",u,u,0,0,1,j,w],["A",u,u,0,0,1,S,M],["A",u,u,0,0,1,v,y],["M",k,T],["L",B,P],["M",E,F],["L",R,_]],lineWidth:p,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:d-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),a=e.findById(r);if(a){var o=Object(p["a"])(t,"label",i);o&&a.attr(o)}var s=this.getElementId("tickline-"+t.id),c=e.findById(s);if(c){var l=Object(p["a"])(t,"tickLine",i);l&&c.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(p["a"])(t,"label",n);s&&r.attr(s)}if(o){var c=Object(p["a"])(t,"tickLine",n);c&&o.attr(c)}}else r&&r.attr(i.style),o&&o.attr(a.style)},e}(h["a"]),g=d,v=n("060b");function y(t,e,n,i){var r=e.getChildren(),a=!1;return Object(l["j"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);a=a||r})),a}function m(){return x}function b(t,e,n){return y(t,e,n,"head")}function x(t,e,n){return y(t,e,n,"tail")}function O(t,e,n){return y(t,e,n,"middle")}var j=n("e546");function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function C(t){var e=w(t)?Object(u["d"])(t.attr("matrix")):0;return e%360}function S(t,e,n,i){var r=!1,a=C(e),o=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(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}else{c=Math.abs(Math.sin(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}return r}function M(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],l=c,h=1;h<s;h++){var u=a[h],p=(u.getBBox(),S(t,l,u,r));p?(u.hide(),o=!0):l=u}return o}function A(t,e,n){var i=(null===n||void 0===n?void 0:n.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var a=!1,o=r[0],s=o.getBBox(),c=r[1],l=r.length,h=C(o),u=t?Math.abs(c.attr("y")-o.attr("y")):Math.abs(c.attr("x")-o.attr("x")),p=0;if(t){var f=Math.abs(Math.cos(h));if(Object(j["i"])(f,0,Math.PI/180)){var d=Object(v["b"])(r);p=(d+i)/u}else p=(s.height/f+i)/u}else{f=Math.abs(Math.sin(h));if(Object(j["i"])(f,0,Math.PI/180)){d=Object(v["b"])(r);p=(d+i)/u}else p=(s.height/f+i)/u}if(p>1){p=Math.ceil(p);for(var g=0;g<l;g++)g%p!==0&&(r[g].hide(),a=!0)}return a}function k(){return P}function T(t,e,n,i){return M(t,e,!1,i)}function L(t,e,n,i){return M(t,e,!0,i)}function B(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,s=a.length,c=a[0],l=a[s-1],h=c,u=1;u<s-1;u++){var p=a[u],f=(p.getBBox(),S(t,h,p,r));f?(p.hide(),o=!0):h=p}var d=S(t,h,l,r);return d&&(h.hide(),o=!0),o}function P(t,e,n,i){var r=A(t,e,i);return M(t,e,!1)&&(r=!0),r}function I(t,e,n,i){var r=e.getChildren().slice(),a=A(t,e,i);if(r.length>2){var o=r[0],s=r[r.length-1];o.get("visible")||(o.show(),M(t,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),M(t,e,!0,i)&&(a=!0))}return a}function E(t,e){Object(l["j"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(u["e"])({x:n,y:i},e);t.attr("matrix",r)}))}function F(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var a=Object(v["b"])(r),o=!1;if(t)o=!!n&&a>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));o=a>s}if(o){var c=i(n,a);E(r,c)}return o}function D(){return R}function R(t,e,n,i){return F(t,e,n,(function(){return Object(l["J"])(i)?i:t?f["a"].verticalAxisRotate:f["a"].horizontalAxisRotate}))}function _(t,e,n){return F(t,e,n,(function(e,n){if(!e)return t?f["a"].verticalAxisRotate:f["a"].horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return e>n?i=Math.PI/4:(i=Math.asin(e/n),i>Math.PI/4&&(i=Math.PI/4)),i}))}var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(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),a=Math.min(e.y,n.y,i.y),o=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:a,minX:r,minY:a,maxX:o,maxY:s,width:o-r,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l["K"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l["K"])(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),i=e.get("end"),r=i.x-n.x,a=i.y-n.y;return{x:n.x+r*t,y:n.y+a*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c["c"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return c["c"].scale([0,0],r,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"),a=this.get("title"),o=this.get("verticalLimitLength"),s=r.offset,c=o,h=0,u=0;a&&(h=a.style.fontSize,u=a.spacing),c&&(c=c-s-u-h);var p=this.get("overlapOrder");if(Object(l["j"])(p,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,c)})),a&&Object(l["H"])(a.offset)){var f=t.getCanvasBBox(),d=n?f.width:f.height;a.offset=s+d+u+h/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["H"])(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=this.isVertical(),s=!1,c=o[t];if(!0===e){this.get("label");s=c.getDefault()(a,n,i)}else if(Object(l["G"])(e))s=e(a,n,i);else if(Object(l["L"])(e)){var h=e;c[h.type]&&(s=c[h.type](a,n,i,h.cfg))}else c[e]&&(s=c[e](a,n,i));if("autoRotate"===t){if(s){var u=n.getChildren(),p=this.get("verticalFactor");Object(l["j"])(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=p>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l["j"])(f,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),G=H,Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["c"])(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,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===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(a),l=this.getCirclePoint(o),h=Math.abs(o-a)>Math.PI?1:0,u=a>o?0:1;s=[["M",e,n],["L",c.x,c.y],["A",i,r,0,h,u,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),i=e+(n-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),a=c["c"].length(i);return c["c"].scale(i,i,r*t/a),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.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["H"])(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),a=n.offset,o=r,s=0,c=0;i&&(s=i.style.fontSize,c=i.spacing),o&&(o=o-a-c-s);var h=this.get("overlapOrder");if(Object(l["j"])(h,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,o)})),i&&Object(l["H"])(i.offset)){var u=t.getCanvasBBox().height;i.offset=a+u+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=!1,s=o[t];if(i>0)if(!0===e)a=s.getDefault()(!1,n,i);else if(Object(l["G"])(e))a=e(!1,n,i);else if(Object(l["L"])(e)){var c=e;s[c.type]&&(a=s[c.type](!1,n,i,c.cfg))}else s[e]&&(a=s[e](!1,n,i));if("autoRotate"===t){if(a){var h=n.getChildren(),u=this.get("verticalFactor");Object(l["j"])(h,(function(t){var e=t.attr("textAlign");if("center"===e){var n=u>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);Object(l["j"])(p,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),N=Y},"7fa2":function(t,e,n){"use strict";var i="*",r=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)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this._events[t]||[],o=this._events[i]||[],s=function(i){for(var r=i.length,a=0;a<r;a++)if(i[a]){var o=i[a],s=o.callback,c=o.once;c&&(i.splice(a,1),0===i.length&&delete e._events[t],r--,a--),s.apply(e,n)}};s(a),s(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"]=r},8937:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"y",(function(){return o})),n.d(e,"i",(function(){return h})),n.d(e,"m",(function(){return L})),n.d(e,"n",(function(){return P})),n.d(e,"p",(function(){return E})),n.d(e,"s",(function(){return _})),n.d(e,"bb",(function(){return z})),n.d(e,"cb",(function(){return q})),n.d(e,"mb",(function(){return U})),n.d(e,"qb",(function(){return Z})),n.d(e,"x",(function(){return Q})),n.d(e,"Q",(function(){return K})),n.d(e,"l",(function(){return c})),n.d(e,"k",(function(){return $})),n.d(e,"gb",(function(){return et})),n.d(e,"t",(function(){return ot})),n.d(e,"u",(function(){return rt})),n.d(e,"v",(function(){return at})),n.d(e,"c",(function(){return ct})),n.d(e,"o",(function(){return ht})),n.d(e,"K",(function(){return dt})),n.d(e,"U",(function(){return F})),n.d(e,"W",(function(){return D})),n.d(e,"Y",(function(){return vt})),n.d(e,"kb",(function(){return bt})),n.d(e,"w",(function(){return Ot})),n.d(e,"P",(function(){return j})),n.d(e,"pb",(function(){return wt})),n.d(e,"R",(function(){return Mt})),n.d(e,"hb",(function(){return kt})),n.d(e,"ob",(function(){return Lt})),n.d(e,"A",(function(){return y})),n.d(e,"B",(function(){return Ft})),n.d(e,"C",(function(){return Rt})),n.d(e,"G",(function(){return d})),n.d(e,"H",(function(){return v})),n.d(e,"I",(function(){return Ht})),n.d(e,"J",(function(){return pt})),n.d(e,"L",(function(){return m})),n.d(e,"M",(function(){return k})),n.d(e,"N",(function(){return W})),n.d(e,"O",(function(){return zt})),n.d(e,"D",(function(){return qt})),n.d(e,"db",(function(){return Wt})),n.d(e,"d",(function(){return Ut})),n.d(e,"e",(function(){return Jt})),n.d(e,"g",(function(){return te})),n.d(e,"V",(function(){return ee})),n.d(e,"h",(function(){return ae})),n.d(e,"j",(function(){return x})),n.d(e,"z",(function(){return se})),n.d(e,"E",(function(){return he})),n.d(e,"F",(function(){return pe})),n.d(e,"S",(function(){return de})),n.d(e,"T",(function(){return ve})),n.d(e,"X",(function(){return Qt})),n.d(e,"b",(function(){return Qt})),n.d(e,"q",(function(){return ye})),n.d(e,"eb",(function(){return me})),n.d(e,"ab",(function(){return xe})),n.d(e,"ib",(function(){return Oe})),n.d(e,"jb",(function(){return je})),n.d(e,"lb",(function(){return Ct})),n.d(e,"nb",(function(){return Ce})),n.d(e,"Z",(function(){return Se})),n.d(e,"fb",(function(){return Me})),n.d(e,"r",(function(){return Le})),n.d(e,"a",(function(){return Pe}));var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,a=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=a,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n},c=s,l=function(t,e){return void 0===e&&(e=[]),c(t,(function(t){return!o(e,t)}))},h=l,u={}.toString,p=function(t,e){return u.call(t)==="[object "+e+"]"},f=p,d=function(t){return f(t,"Function")},g=function(t){return null===t||void 0===t},v=g,y=function(t){return Array.isArray?Array.isArray(t):f(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(y(t)){for(var i=0,r=t.length;i<r;i++)if(n=e(t[i],i),!1===n)break}else if(m(t))for(var a in t)if(t.hasOwnProperty(a)&&(n=e(t[a],a),!1===n))break}var x=b,O=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(i)})),e},j=O;function w(t,e){var n=j(e),i=n.length;if(v(t))return!i;for(var r=0;r<i;r+=1){var a=n[r];if(e[a]!==t[a]||!(a in t))return!1}return!0}var C=w,S=function(t){return"object"===typeof t&&null!==t},M=S,A=function(t){if(!M(t)||!f(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},k=A;function T(t,e){if(!y(t))return null;var n;if(d(e)&&(n=e),k(e)&&(n=function(t){return C(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null}var L=T;var B=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i],a=r[e];if(!v(a)){n=y(a)?a[0]:a;break}}return n},P=B,I=function(t){if(!y(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},E=I,F=function(t){if(y(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},D=function(t){if(y(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},R=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(y(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=F(e),a=D(e);return{min:a,max:r}},_=R,H=Array.prototype,G=(H.splice,H.indexOf,Array.prototype.splice),Y=function(t,e){if(!r(t))return[];var n=t?e.length:0,i=n-1;while(n--){var a=void 0,o=e[n];n!==i&&o===a||(a=o,G.call(t,o,1))}return t},N=Y,X=function(t,e,n){if(!y(t)&&!k(t))return t;var i=n;return x(t,(function(t,n){i=e(i,t,n)})),i},z=X,V=function(t,e){var n=[];if(!r(t))return n;var i=-1,a=[],o=t.length;while(++i<o){var s=t[i];e(s,i,t)&&(n.push(s),a.push(i))}return N(t,a),n},q=V,W=function(t){return f(t,"String")};function U(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var a=t[i];e.has(a)||(n.push(a),e.set(a,!0))}return n}var Z=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[e];if(!v(o)){y(o)||(o=[o]);for(var s=0;s<o.length;s++){var c=o[s];i[c]||(n.push(c),i[c]=!0)}}}return n};function Q(t){if(r(t))return t[0]}function K(t){if(r(t)){var e=t;return e[e.length-1]}}var J=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},$=J,tt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},et=tt,nt=Object.prototype.hasOwnProperty;function it(t,e){if(!e||!y(t))return{};for(var n,i={},r=d(e)?e:function(t){return t[e]},a=0;a<t.length;a++){var o=t[a];n=r(o),nt.call(i,n)?i[n].push(o):i[n]=[o]}return i}var rt=it;function at(t,e){if(!e)return{0:t};if(!d(e)){var n=y(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 rt(t,e)}var ot=function(t,e){if(!e)return[t];var n=at(t,e),i=[];for(var r in n)i.push(n[r]);return i};var st=function(t,e,n){return t<e?e:t>n?n:t},ct=st,lt=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))},ht=lt,ut=function(t){return f(t,"Number")},pt=ut,ft=(Number.isInteger&&Number.isInteger,1e-5);function dt(t,e,n){return void 0===n&&(n=ft),Math.abs(t-e)<n}var gt=function(t,e){return(t%e+e)%e},vt=gt,yt=(Math.PI,parseInt,Math.PI/180),mt=function(t){return yt*t},bt=mt,xt=function(t,e){return t.hasOwnProperty(e)},Ot=xt,jt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(n)})),e},wt=jt,Ct=function(t){return v(t)?"":t.toString()},St=function(t){return Ct(t).toLowerCase()},Mt=St;function At(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}var kt=At,Tt=function(t){var e=Ct(t);return e.charAt(0).toUpperCase()+e.substring(1)},Lt=Tt,Bt={}.toString,Pt=function(t){return Bt.call(t).replace(/^\[object /,"").replace(/]$/,"")},It=Pt,Et=function(t){return f(t,"Boolean")},Ft=Et,Dt=function(t){return f(t,"Date")},Rt=Dt,_t=function(t){return null===t},Ht=_t,Gt=Object.prototype,Yt=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||Gt;return t===n},Nt=Yt,Xt=function(t){return void 0===t},zt=Xt,Vt=function(t){return t instanceof Element||t instanceof HTMLDocument},qt=Vt;function Wt(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function Ut(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}function Zt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Qt(t,e,n,i){return e&&Zt(t,e),n&&Zt(t,n),i&&Zt(t,i),t}var Kt=function(t){if("object"!==typeof t||null===t)return t;var e;if(y(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=Kt(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"===typeof t[r]&&null!=t[r]?e[r]=Kt(t[r]):e[r]=t[r];return e},Jt=Kt;function $t(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}}var te=$t,ee=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,i);return o.set(a,s),s};return n.cache=new Map,n},ne=5;function ie(t,e,n,i){for(var r in n=n||0,i=i||ne,e)if(e.hasOwnProperty(r)){var a=e[r];null!==a&&k(a)?(k(t[r])||(t[r]={}),n<i?ie(t[r],a,n+1,i):t[r]=e[r]):y(a)?(t[r]=[],t[r]=t[r].concat(a)):void 0!==a&&(t[r]=a)}}var re=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)ie(t,e[i]);return t},ae=re,oe=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i},se=oe,ce=Object.prototype.hasOwnProperty;function le(t){if(v(t))return!0;if(r(t))return!t.length;var e=It(t);if("Map"===e||"Set"===e)return!t.size;if(Nt(t))return!Object.keys(t).length;for(var n in t)if(ce.call(t,n))return!1;return!0}var he=le,ue=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(W(t)||W(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(n=ue(t[i],e[i]),!n)break;return n}if(M(t)||M(e)){var a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;for(n=!0,i=0;i<a.length;i++)if(n=ue(t[a[i]],e[a[i]]),!n)break;return n}return!1},pe=ue,fe=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n},de=fe,ge=function(t){return t},ve=function(t,e){void 0===e&&(e=ge);var n={};return m(t)&&!v(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},ye=function(t,e,n){var i=0,r=W(e)?e.split("."):e;while(t&&i<r.length)t=t[r[i++]];return void 0===t||i<r.length?n:t},me=function(t,e,n){var i=t,r=W(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(m(i[t])||(i[t]=pt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},be=Object.prototype.hasOwnProperty,xe=function(t,e){if(null===t||!k(t))return{};var n={};return x(e,(function(e){be.call(t,e)&&(n[e]=t[e])})),n},Oe=function(t,e,n){var i,r,a,o,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Date.now(),i=null,o=t.apply(r,a),i||(r=a=null)},l=function(){var l=Date.now();s||!1!==n.leading||(s=l);var h=e-(l-s);return r=this,a=arguments,h<=0||h>e?(i&&(clearTimeout(i),i=null),s=l,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(c,h)),o};return l.cancel=function(){clearTimeout(i),s=0,i=r=a=null},l},je=function(t){return r(t)?Array.prototype.slice.call(t):[]},we={},Ce=function(t){return t=t||"g",we[t]?we[t]+=1:we[t]=1,t+we[t]},Se=function(){};function Me(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}var Ae,ke=n("9ab4"),Te=ee((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return Ae||(Ae=document.createElement("canvas").getContext("2d")),Ae.font=[a,o,r,n+"px",i].join(" "),Ae.measureText(W(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(ke["h"])([t],wt(e)).join("")})),Le=function(t,e,n,i){void 0===i&&(i="...");var r,a,o=16,s=Te(i,n),c=W(t)?t:Ct(t),l=e,h=[];if(Te(t,n)<=e)return t;while(1){if(r=c.substr(0,o),a=Te(r,n),a+s>l&&a>l)break;if(h.push(r),l-=a,c=c.substr(o),!c)return h.join("")}while(1){if(r=c.substr(0,1),a=Te(r,n),a+s>l)break;if(h.push(r),l-=a,c=c.substr(1),!c)return h.join("")}return""+h.join("")+i},Be=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}(),Pe=Be},"8ea8":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return u}));var i=n("e897"),r=[1,0,0,0,1,0,0,0,1];function a(t,e,n){if(void 0===n&&(n=r),!e)return null;var a=i["a"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return a}function o(t,e){return t.x||t.y?i["a"].transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return i["d"].transformMat3(n,e,t),Math.atan2(n[1],n[0])}function c(t,e){var n=[0,0];return i["c"].transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),i=c(t,[e.maxX,e.minY]),r=c(t,[e.minX,e.maxY]),a=c(t,[e.maxX,e.maxY]),o=Math.min(n[0],i[0],r[0],a[0]),s=Math.max(n[0],i[0],r[0],a[0]),l=Math.min(n[1],i[1],r[1],a[1]),h=Math.max(n[1],i[1],r[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:h,width:s-o,height:h-l}}function h(t,e,n,i){if(e){var r=a({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function u(t,e,n){var i=o({x:e,y:n});t.attr("matrix",i)}},"917c":function(t,e,n){"use strict";n.d(e,"a",(function(){return vi}));var i,r,a,o=n("9ab4"),s=n("8937");(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"}(a||(a={}));var c,l,h,u,p={FORE:3,MID:2,BG:1};(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"})(c||(c={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate",t["BEFORE_RENDER_LABEL"]="beforerenderlabel",t["AFTER_RENDER_LABEL"]="afterrenderlabel"}(l||(l={})),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"}(h||(h={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(u||(u={}));var f=["color","shape","size"],d="_origin",g=1,v=1,y=.25,m={};function b(t){var e=m[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function x(t,e){m[t]=e}var O=n("7c8a");function j(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)}}function w(t){return"number"===typeof t&&!isNaN(t)}function C(t,e,n,i){var r=n,a=i;if(e){var o=j(t);r=o.width?o.width:r,a=o.height?o.height:a}return{width:Math.max(w(r)?r:g,g),height:Math.max(w(a)?a:v,v)}}function S(t){var e=t.parentNode;e&&e.removeChild(t)}var M=n("7fa2"),A=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return Object(o["c"])(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(M["a"]),k=A,T=n("6855"),L=n("eecd"),B=function(t,e){return Object(s["N"])(e)?e:t.invert(t.scale(e))},P=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=e*t-n,r=this.values[n],a=n===e?r:this.values[n+1];return r+(a-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},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=void 0===n?"base":n,r=t.names,a=void 0===r?[]:r,o=t.scales,c=void 0===o?[]:o,l=t.values,h=void 0===l?[]:l,u=t.callback;this.type=i,this.scales=c,this.values=h,this.names=a,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(s["H"])(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(s["A"])(t)?t.map((function(t){return B(e,t)})):B(e,t)},t}(),I=P,E=n("e945"),F=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(s["N"])(n.values)&&(n.linear=!0),n.gradient=E["a"].gradient(n.values),n}return Object(o["c"])(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(I),D=F,R=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(o["c"])(e,t),e}(I),_=R,H=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(o["c"])(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(s["H"])(t)||Object(s["H"])(e)?[]:[Object(s["A"])(t)?t.map((function(t){return i.scale(t)})):i.scale(t),Object(s["A"])(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(I),G=H,Y=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(o["c"])(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(I),N=Y,X=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(o["c"])(e,t),e}(I),z=X,V=n("f2fb"),q={},W=function(t){return q[t.toLowerCase()]},U=function(t,e){if(W(t))throw new Error("Attribute type '".concat(t,"' existed."));q[t.toLowerCase()]=e};U("Color",D),U("Opacity",_),U("Position",G),U("Shape",N),U("Size",z);var Z=n("e897"),Q=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.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,a=t.isTransposed,s=void 0!==a&&a;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=Object(o["g"])([],r),this.isTransposed=s}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(s["b"])(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(n=[a,r],r=n[0],a=n[1]),r+t*(a-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(n=[a,r],r=n[0],a=n[1]),(t-r)/(a-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return Z["d"].transformMat3(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=Z["b"].invert([0,0,0,0,0,0,0,0,0],i),a=[t,e,n];return r&&Z["d"].transformMat3(a,a,r),a},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},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 Z["a"].leftTranslate(e,e,[-n.x,-n.y]),Z["a"].leftRotate(e,e,t),Z["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 Z["a"].leftTranslate(n,n,[-i.x,-i.y]),Z["a"].leftScale(n,n,[t,e]),Z["a"].leftTranslate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return Z["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(o["g"])([],this.originalMatrix)},t}(),K=Q,J=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return Object(o["c"])(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&&(e=[i,n],n=e[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&&(e=[i,n],n=e[0],i=e[1]),{x:n,y:i}},e}(K),$=J,tt=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,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(o["c"])(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&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),a=this.a*r,o=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(a+o),y:this.center.y+Math.sin(r)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=Z["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=Z["a"].angleTo(i,[1,0],!0),a=r*this.a;Z["c"].length(i)<a&&(a=Z["c"].length(i));var o=Math.floor((Z["c"].length(i)-a)/n);r=2*o*Math.PI+r;var c=this.a*r,l=Z["c"].length(i)-c;l=Object(s["K"])(l,0)?0:l;var h=this.invertDim(r,"x"),u=this.invertDim(l,"y");return h=Object(s["K"])(h,0)?0:h,u=Object(s["K"])(u,0)?0:u,this.isTransposed&&(e=[u,h],h=e[0],u=e[1]),{x:h,y:u}},e}(K),et=tt,nt=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,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,c=void 0===s?0:s,l=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=c,n.radius=l,n.initial(),n}return Object(o["c"])(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,a=Math.abs(n.minX)/i,o=Math.abs(n.minY)/r;this.height/r>this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-a)*e*i,y:this.center.y-(.5-o)*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&&(e=[r,i],i=e[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,n=this.getCenter(),i=[t.x-n.x,t.y-n.y],r=this,a=r.startAngle,o=r.endAngle;this.isReflect("x")&&(e=[o,a],a=e[0],o=e[1]);var c=[1,0,0,0,1,0,0,0,1];Z["a"].leftRotate(c,c,a);var l=[1,0,0];Z["d"].transformMat3(l,l,c);var h=[l[0],l[1]],u=Z["a"].angleTo(h,i,o<a);Object(s["K"])(u,2*Math.PI)&&(u=0);var p=Z["c"].length(i),f=u/(o-a);f=o-a>0?f:-f;var d=this.invertDim(p,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:f,g.y=this.isTransposed?f:d,g},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}(K),it=nt,rt={},at=function(t){return rt[t.toLowerCase()]},ot=function(t,e){rt[t.toLowerCase()]=e};ot("rect",$),ot("cartesian",$),ot("polar",it),ot("helix",et);var st=n("d7b4"),ct=st["Axis"].Line,lt=st["Axis"].Circle,ht=st["Grid"].Line,ut=st["Grid"].Circle,pt=st["Legend"].Category,ft=st["Legend"].Continuous,dt=st["Tooltip"].Html;function gt(t){if(Object(s["E"])(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return Object(s["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}}function vt(t){return 1===Array.from(new Set(t)).length}function yt(t){return(Object(s["W"])(t)+Object(s["U"])(t))/2}function mt(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function bt(t,e,n,i,r,a){void 0===a&&(a=0);var o=mt(t,e,n,i),s=mt(t,e,n,r),c=mt(t,e,a,i),l=mt(t,e,a,r);if(r-i===2*Math.PI){var h=mt(t,e,n,i+Math.PI),u=mt(t,e,a,i+Math.PI),p=[["M",o.x,o.y],["A",n,n,0,1,1,h.x,h.y],["A",n,n,0,1,1,s.x,s.y],["M",c.x,c.y]];return a&&(p.push(["A",a,a,0,1,0,u.x,u.y]),p.push(["A",a,a,0,1,0,l.x,l.y])),p.push(["M",o.x,o.y]),p.push(["Z"]),p}var f=r-i<=Math.PI?0:1,d=[["M",o.x,o.y],["A",n,n,0,f,1,s.x,s.y],["L",l.x,l.y]];return a&&d.push(["A",a,a,0,f,0,c.x,c.y]),d.push(["L",o.x,o.y]),d.push(["Z"]),d}function xt(t,e,n,i,r){var a=mt(t,e,n,i),o=mt(t,e,n,r);if(Object(s["K"])(r-i,2*Math.PI)){var c=mt(t,e,n,i+Math.PI);return[["M",a.x,a.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,a.x,a.y],["A",n,n,0,1,0,c.x,c.y],["A",n,n,0,1,0,a.x,a.y],["Z"]]}var l=r-i<=Math.PI?0:1;return[["M",a.x,a.y],["A",n,n,0,l,1,o.x,o.y]]}function Ot(t,e){var n,i,r=t.points,a=gt(r),o=e.startAngle,s=e.endAngle,c=s-o;return e.isTransposed?(n=a.maxY*c,i=a.minY*c):(n=a.maxX*c,i=a.minX*c),n+=o,i+=o,{startAngle:i,endAngle:n}}function jt(t,e){if(Object(s["J"])(t)&&Object(s["J"])(e))return[t,e];if(t=t,e=e,vt(t)||vt(e))return[yt(t),yt(e)];var n,i,r=-1,a=0,o=0,c=t.length-1,l=0;while(++r<t.length)n=c,c=r,l+=i=t[n]*e[c]-t[c]*e[n],a+=(t[n]+t[c])*i,o+=(e[n]+e[c])*i;return l*=3,[a/l,o/l]}function wt(t,e){var n=t.attr(),i=e.attr();return Object(s["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}function Ct(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function St(t,e,n){if(Object(s["N"])(t))return t.padEnd(e,n);if(Object(s["A"])(t)){var i=t.length;if(i<e)for(var r=e-i,a=0;a<r;a++)t.push(n)}return t}function Mt(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function At(t,e,n){var i,r;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var a=Object(o["i"])(t),s=a.next();!s.done;s=a.next()){var c=s.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(l){i={error:l}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return e}var kt=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(s["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(s["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,a=e.height;switch(n){case r.TOP:case r.TOP_LEFT:case r.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,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-a);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=Object(o["e"])(e,4),i=n[0],r=n[1],a=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-r,this.height-i-a)},t.prototype.expand=function(e){var n=Object(o["e"])(e,4),i=n[0],r=n[1],a=n[2],s=n[3];return new t(this.x-s,this.y-i,this.width+s+r,this.height+i+a)},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 Tt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function Lt(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 Bt(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function Pt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function It(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Ct(e.x,i.x,r.x)&&Ct(e.y,i.y,r.y)}else{var a=t.invert(e);n=Ct(a.x,0,1)&&Ct(a.y,0,1)}return n}function Et(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Ft(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,a=t.getWidth(),o=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:bt(l.x,l.y,h+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=bt(l.x,l.y,h+e,s,n);return{path:i}},attrs:{path:bt(l.x,l.y,h+e,s,c)}}}return n=t.isTransposed?{height:o+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:o+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:a+2*e,height:o+2*e}}}function Dt(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),a=t.getHeight(),o=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return kt.fromRange(o-e,s-e,o+r+e,s+a+e)}var Rt=/^(?:(?!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 _t(t){var e="linear";return Rt.test(t)?e="timeCat":Object(s["N"])(t)&&(e="cat"),e}function Ht(t,e,n,i){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&f.includes(n)&&["interval"].includes(i)||t.isCategory?"cat":t.type}function Gt(t,e,n){var i=e||[];if(Object(s["J"])(t)||Object(s["H"])(Object(s["n"])(i,t))&&Object(s["E"])(n)){var r=Object(V["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(s["qb"])(i,t),c=Object(s["q"])(n,"type",_t(a[0])),l=Object(V["c"])(c);return new l(Object(o["a"])({field:t,values:a},n))}function Yt(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)}}function Nt(t){return t.alias||t.field}function Xt(t,e,n){var i,r=t.values,a=r.length;if(1===a)i=[.5,1];else{var o=1,c=0;Bt(e)?e.isTransposed?(o=Object(s["q"])(n,"widthRatio.multiplePie",1/1.3),c=1/a*o,i=[c/2,1-c/2]):i=[0,1-1/a]:(c=1/a/2,i=[c,1-c])}return i}function zt(t){var e=t.values.filter((function(t){return!Object(s["H"])(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(o["g"])(Object(o["g"])([],Object(o["e"])(e),!1),[Object(s["H"])(t.max)?-1/0:t.max],!1))}function Vt(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}}function qt(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}}function Wt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Vt(e):t.isPolar&&(n=qt(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function Ut(t){var e=t.start,n=t.end;return e.x===n.x}function Zt(t,e){var n=t.start,i=t.end,r=Ut(t);return r?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function Qt(t,e){var n=Object(s["q"])(t,["components","axis"],{});return Object(s["h"])({},Object(s["q"])(n,["common"],{}),Object(s["h"])({},Object(s["q"])(n,[e],{})))}function Kt(t,e,n){var i=Object(s["q"])(t,["components","axis"],{});return Object(s["h"])({},Object(s["q"])(i,["common","title"],{}),Object(s["h"])({},Object(s["q"])(i,[e,"title"],{})),n)}function Jt(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,a=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],c=a.y>i.y?Z["c"].angle(o,s):-1*Z["c"].angle(o,s),l=c+(e.end-e.start),h=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:h,startAngle:c,endAngle:l}}function $t(t,e){return Object(s["B"])(t)?!1!==t&&{}:Object(s["q"])(t,[e])}function te(t,e){return Object(s["q"])(t,"position",e)}function ee(t,e){return Object(s["q"])(e,["title","text"],Nt(t))}var ne=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(s["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.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,a=this.view.createView({region:e,padding:r});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){var t=this.view.getLayer(i.FORE);return t.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(s["j"])(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height,i=this.cfg.spacing;return i.map((function(t,i){return Object(s["J"])(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(s["j"])(t,(function(t){var r=t[e];Object(s["H"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=Object(o["e"])(this.parseSpacing(),2),a=r[0],s=r[1],c=(1+a)/(0===e?1:e)-a,l=(1+s)/(0===t?1:t)-s,h={x:(c+a)*n,y:(l+s)*i},u={x:h.x+c,y:h.y+l};return{start:h,end:u}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries,a=Object(s["q"])(i,"type","rect");if("rect"===a&&r.length){Object(s["H"])(n.axes)&&(n.axes={});var c=n.axes,l=Object(o["e"])(r[0].getXYFields(),2),h=l[0],u=l[1],p=$t(c,h),f=$t(c,u);!1!==p&&(n.axes[h]=this.getXAxisOption(h,c,p,e)),!1!==f&&(n.axes[u]=this.getYAxisOption(u,c,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(s["k"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(s["H"])(i)&&n)||e[n]===i}))}},t}(),ie={},re=function(t){return ie[Object(s["R"])(t)]},ae=function(t,e){ie[Object(s["R"])(t)]=e},oe=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(s["b"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),se=oe,ce=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(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}(se),le=ce,he={};function ue(t,e){var n=he[t],i=null;if(n){var r=n.ActionClass,a=n.cfg;i=new r(e,a),i.name=t,i.init()}return i}function pe(t,e,n){he[t]={ActionClass:e,cfg:n}}function fe(t,e){var n=new le(e);return n.callback=t,n.name="callback",n}function de(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 a=t[i];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}function ge(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var a=e.convert({x:t[i],y:t[i+1]});n.push(a.x,a.y)}return n}function ve(t,e){var n=e.isTransposed,i=t[1],r=t[6],a=t[7],o=e.convert({x:r,y:a}),s=n?0:1;return["A",i,i,0,0,s,o.x,o.y]}function ye(t,e,n){var i=n.isTransposed,r=n.startAngle,a=n.endAngle,o="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},c=[],l=i?"y":"x",h=Math.abs(s[l]-o[l])*(a-r),u=s[l]>=o[l]?1:0,p=h>Math.PI?1:0,f=n.convert(s),d=Pt(n,f);if(d>=.5)if(h===2*Math.PI){var g={x:(s.x+o.x)/2,y:(s.y+o.y)/2},v=n.convert(g);c.push(["A",d,d,0,p,u,v.x,v.y]),c.push(["A",d,d,0,p,u,f.x,f.y])}else c.push(["A",d,d,0,p,u,f.x,f.y]);return c}function me(t){Object(s["j"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],a=t[n+1];a&&"a"===a[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}}))}var be=function(t,e,n,i){var r,a,s,c,l,h,u,p,f=[],d=!!i;if(d){r=Object(o["e"])(i,2),c=r[0],l=r[1];for(var g=0,v=t.length;g<v;g++){var y=t[g];c=Z["c"].min([0,0],c,y),l=Z["c"].max([0,0],l,y)}}g=0;for(var m=t.length;g<m;g++){y=t[g];if(0!==g||n)if(g!==m-1||n){a=t[n?g?g-1:m-1:g-1],s=t[n?(g+1)%m:g+1];var b=[0,0];b=Z["c"].sub(b,s,a),b=Z["c"].scale(b,b,e);var x=Z["c"].distance(y,a),O=Z["c"].distance(y,s),j=x+O;0!==j&&(x/=j,O/=j);var w=Z["c"].scale([0,0],b,-x),C=Z["c"].scale([0,0],b,O);u=Z["c"].add([0,0],y,w),h=Z["c"].add([0,0],y,C),h=Z["c"].min([0,0],h,Z["c"].max([0,0],s,y)),h=Z["c"].max([0,0],h,Z["c"].min([0,0],s,y)),w=Z["c"].sub([0,0],h,y),w=Z["c"].scale([0,0],w,-x/O),u=Z["c"].add([0,0],y,w),u=Z["c"].min([0,0],u,Z["c"].max([0,0],a,y)),u=Z["c"].max([0,0],u,Z["c"].min([0,0],a,y)),C=Z["c"].sub([0,0],y,u),C=Z["c"].scale([0,0],C,O/x),h=Z["c"].add([0,0],y,C),d&&(u=Z["c"].max([0,0],u,c),u=Z["c"].min([0,0],u,l),h=Z["c"].max([0,0],h,c),h=Z["c"].min([0,0],h,l)),f.push(p),f.push(u),p=h}else u=y,f.push(p),f.push(u);else p=y}return n&&f.push(f.shift()),f};function xe(t,e,n){for(var i=!!e,r=[],a=0,o=t.length;a<o;a+=2)r.push([t[a],t[a+1]]);var s,c,l,h=be(r,.4,i,n),u=r.length,p=[];for(a=0;a<u-1;a++)s=h[2*a],c=h[2*a+1],l=r[a+1],p.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]]);return i&&(s=h[u],c=h[u+1],l=r[0],p.push(["C",s[0],s[1],c[0],c[1],l[0],l[1]])),p}function Oe(t,e){return de(t,e)}function je(t,e,n){var i=[],r=t[0],a=null;if(t.length<=2)return Oe(t,e);for(var o=0,s=t.length;o<s;o++){var c=t[o];a&&a.x===c.x&&a.y===c.y||(i.push(c.x),i.push(c.y),a=c)}var l=n||[[0,0],[1,1]],h=xe(i,e,l);return h.unshift(["M",r.x,r.y]),h}function we(t,e){var n=[];return Object(s["j"])(e,(function(e){var i=e[0];switch(i.toLowerCase()){case"m":case"l":case"c":n.push(ge(e,t));break;case"a":n.push(ve(e,t));break;case"z":default:n.push(e);break}})),n}function Ce(t,e){var n,i,r,a,o=[];return Object(s["j"])(e,(function(s,c){var l=s[0];switch(l.toLowerCase()){case"m":case"c":case"q":o.push(ge(s,t));break;case"l":n=e[c-1],i=s,r=t.isTransposed,a=r?n[n.length-2]===i[1]:n[n.length-1]===i[2],a?o=o.concat(ye(n,i,t)):o.push(ge(s,t));break;case"a":o.push(ve(s,t));break;case"z":default:o.push(s);break}})),me(o),o}var Se=n("2ef1");function Me(t,e){var n=t.event,i=n.target;return ke(i,e)}function Ae(t,e){var n=t.getCanvasBBox(),i=n.width,r=n.height;return i>0&&r>0&&(i>=e||r>=e)}function ke(t,e){var n=t.getCanvasBBox();return Ae(t,e)?n:null}function Te(t,e){var n=t.event.maskShapes;return n.map((function(t){return ke(t,e)})).filter((function(t){return!!t}))}function Le(t,e){var n=t.event,i=n.target;return Be(i,e)}function Be(t,e){return Ae(t,e)?t.attr("path"):null}function Pe(t,e){var n=t.event.maskShapes;return n.map((function(t){return Be(t,e)}))}function Ie(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Ee(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function Fe(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function De(t){return t&&t.component&&t.component.isList()}function Re(t){return t&&t.component&&t.component.isSlider()}function _e(t){var e=t.event,n=e.target;return n&&"mask"===(null===n||void 0===n?void 0:n.get("name"))||He(t)}function He(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function Ge(t,e){var n=t.event.target;if(He(t))return Ye(t,e);if("path"===n.get("type")){var i=Le(t,e);if(!i)return;return Je(t.view,i)}var r=Me(t,e);return r?Qe(t.view,r):null}function Ye(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Pe(t,e);return i.length>0?i.flatMap((function(e){return Je(t.view,e)})):null}var r=Te(t,e);return r.length>0?r.flatMap((function(e){return Qe(t.view,e)})):null}function Ne(t,e,n){if(He(t))return ze(t,e,n);var i=Me(t,n);return i?Xe(i,t,e):null}function Xe(t,e,n){var i=e.view,r=on(i,n,{x:t.x,y:t.y}),a=on(i,n,{x:t.maxX,y:t.maxY}),o={minX:r.x,minY:r.y,maxX:a.x,maxY:a.y};return Qe(n,o)}function ze(t,e,n){var i=Te(t,n);return i.length>0?i.flatMap((function(n){return Xe(n,t,e)})):null}function Ve(t){var e=t.geometries,n=[];return Object(s["j"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(s["j"])(t.views,(function(t){n=n.concat(Ve(t))})),n}function qe(t,e,n){var i=Ve(t);return i.filter((function(t){return Ue(t,e)===n}))}function We(t,e){var n=t.geometries,i=[];return Object(s["j"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function Ue(t,e){var n,i=t.getModel(),r=i.data;return n=Object(s["A"])(r)?r[0][e]:r[e],n}function Ze(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Qe(t,e){var n=Ve(t),i=[];return Object(s["j"])(n,(function(t){var n=t.shape,r=n.getCanvasBBox();Ze(e,r)&&i.push(t)})),i}function Ke(t){var e=[];return Object(s["j"])(t,(function(t){var n=t[0];if("A"!==n)for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function Je(t,e){var n=Ve(t),i=Ke(e),r=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Ke(n.attr("path"));else{var r=n.getCanvasBBox();e=Tt(r)}return Object(Se["b"])(i,e)}));return r}function $e(t){return t.getComponents().map((function(t){return t.component}))}function tn(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function en(t,e){if(t.length<=2)return Oe(t,!1);var n=t[0],i=[];Object(s["j"])(t,(function(t){i.push(t.x),i.push(t.y)}));var r=xe(i,e,null);return r.unshift(["M",n.x,n.y]),r}function nn(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function rn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function an(t,e){var n=t.getCoordinate();return n.invert(e)}function on(t,e,n){var i=an(t,n);return e.getCoordinate().convert(i)}function sn(t,e,n,i){var r=!1;return Object(s["j"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function cn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(s["j"])(t.views,(function(t){if(n=cn(t,e),n)return!1})),n}var ln=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;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return Object(s["q"])(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=$e(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&nn(i,n):nn(i,n)}))},t.prototype.destroy=function(){Object(s["j"])(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),hn=ln,un=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}(),pn=un;function fn(t,e,n){var i=t.split(":"),r=i[0],a=e.getAction(r)||ue(r,e);if(!a)throw new Error("There is no action named ".concat(r));var o=i[1];return{action:a,methodName:o,arg:n}}function dn(t){var e=t.action,n=t.methodName,i=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](i)}var gn={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},vn=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(o["c"])(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(s["j"])(this.steps,(function(e,n){Object(s["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(s["j"])(this.steps,(function(e,n){Object(s["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new hn(t);this.context=e;var n=this.steps;Object(s["j"])(n,(function(t){Object(s["j"])(t,(function(t){if(Object(s["G"])(t.action))t.actionObject={action:fe(t.action,e),methodName:"execute"};else if(Object(s["N"])(t.action))t.actionObject=fn(t.action,e,t.arg);else if(Object(s["A"])(t.action)){var n=t.action,i=Object(s["A"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(s["j"])(n,(function(n,r){t.actionObject.push(fn(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===gn.SHOW_ENABLE)return!0;if(t===gn.PROCESSING)return e===gn.START;if(t===gn.START)return e!==gn.PROCESSING;if(t===gn.END)return e===gn.PROCESSING||e===gn.START;if(t===gn.ROLLBACK){if(n[gn.END])return e===gn.END;if(e===gn.START)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){t!==gn.SHOW_ENABLE&&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,a=e.actionObject;if(e.action&&a){var o=this.getKey(t,e);if(!r[o]){var c=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(s["A"])(a)?Object(s["j"])(a,(function(t){i.event=r,dn(t)})):(i.event=r,dn(a)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[o]=Object(s["g"])(c,e.debounce.wait,e.debounce.immediate):e.throttle?r[o]=Object(s["ib"])(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[o]=c}return r[o]}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}(pn),yn=vn,mn={};function bn(t){return mn[Object(s["R"])(t)]}function xn(t,e){mn[Object(s["R"])(t)]=e}function On(t,e,n){var i=bn(t);if(!i)return null;if(Object(s["M"])(i)){var r=Object(s["X"])(Object(s["e"])(i),n);return new yn(e,r)}var a=i;return new a(e,n)}function jn(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},iconStyle:{fill:t.axisDescriptionIconFillColor}},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}}function wn(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"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function Cn(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=jn(t),r=wn(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,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=Ot(t.getModel(),e),r=i.startAngle,a=i.endAngle,o=(r+a)/2,s=7.5,c=s*Math.cos(o),l=s*Math.sin(o);return{matrix:Z["a"].transform(null,[["t",c,l]])}}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(o["a"])(Object(o["a"])({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(o["a"])(Object(o["a"])({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(o["a"])(Object(o["a"])({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(o["a"])(Object(o["a"])({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(o["a"])(Object(o["a"])({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(o["a"])(Object(o["a"])({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(o["a"])(Object(o["a"])({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(o["a"])(Object(o["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}}},violin:{violin:{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}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(s["h"])({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(s["h"])({},i.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{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["".concat(st["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:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(st["TOOLTIP_CSS_CONST"].TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(st["TOOLTIP_CSS_CONST"].LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(st["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(st["TOOLTIP_CSS_CONST"].MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(st["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],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},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 Sn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Mn={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},An=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],kn=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Tn=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ln=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?An:e,i=t.paletteQualitative20,r=void 0===i?kn:i,a=t.brandColor,s=void 0===a?n[0]:a,c={backgroundColor:"transparent",brandColor:s,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Tn,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"',axisLineBorderColor:Sn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Sn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Mn[85],axisTickLineBorderColor:Sn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Sn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Sn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Sn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Sn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:s,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Sn[65],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],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Sn[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Sn[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Sn[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Sn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Sn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Sn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Sn[25],annotationArcBorderColor:Sn[15],annotationArcBorder:1,annotationLineBorderColor:Sn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Sn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Sn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Sn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Sn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Sn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Mn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Sn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Mn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Sn[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:s,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Mn[100],pointBorderOpacity:1,pointActiveBorderColor:Sn[100],pointSelectedBorder:2,pointSelectedBorderColor:Sn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:s,hollowPointBorderOpacity:.95,hollowPointFillColor:Mn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Sn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Sn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:s,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:s,areaFillOpacity:.25,areaActiveFillColor:s,areaActiveFillOpacity:.5,areaSelectedFillColor:s,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:s,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Sn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Sn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:s,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Sn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Sn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:s,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Mn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Sn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Sn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(o["a"])(Object(o["a"])({},c),t)};Ln();function Bn(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(o["f"])(t,["styleSheet"]),r=Ln(n);return Object(s["h"])({},Cn(r),i)}var Pn=Bn({}),In={default:Pn};function En(t){return Object(s["q"])(In,Object(s["R"])(t),In.default)}function Fn(t,e){In[Object(s["R"])(t)]=Bn(e)}function Dn(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(s["K"])(i,r)}function Rn(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,a=r[r.length-1],o=r[0],s=n.invert(t),c=s.x;return n.isPolar&&c>(1+a)/2&&(c=o),i.translate(i.invert(c))}function _n(t,e,n){var i=n.coordinate,r=n.getYScale(),a=r.field,o=i.invert(e),c=r.invert(o.y),l=Object(s["m"])(t,(function(t){var e=t[d];return e[a][0]<=c&&e[a][1]>=c}));return l||t[t.length-1]}var Hn=Object(s["V"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function Gn(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),a=e.scales,o=Object(s["G"])(n)||!n?r[0]:n,c=a[o],l=c?c.getText(t[o]):t[o]||o;return Object(s["G"])(n)?n(l,t):l}function Yn(t){var e=Object(s["pb"])(t.attributes);return Object(s["l"])(e,(function(t){return Object(s["f"])(f,t.type)}))}function Nn(t){var e,n,i,r=Yn(t);try{for(var a=Object(o["i"])(r),c=a.next();!c.done;c=a.next()){var l=c.value,h=l.getScale(l.type);if(h&&h.isLinear){var u=Object(s["q"])(t.scaleDefs,h.field),p=Ht(h,u,l.type,t.type);if("cat"!==p){i=h;break}}}}catch(g){e={error:g}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var f=t.getXScale(),d=t.getYScale();return i||d||f}function Xn(t,e){var n=e.field,i=t[n];if(Object(s["A"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function zn(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var a=Nn(e);return Nt(a)}function Vn(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),a=n.getYScale(),o=r.field,c=a.field,l=null;if("heatmap"===i||"point"===i){for(var h=n.coordinate,u=h.invert(t),p=r.invert(u.x),f=a.invert(u.y),g=1/0,v=0;v<e.length;v++){var y=e[v],m=y[d],b=Math.pow(m[o]-p,2)+Math.pow(m[c]-f,2);b<g&&(g=b,l=y)}return l}var x=e[0],O=e[e.length-1],j=Rn(t,n),w=x[d][o],C=x[d][c],S=O[d][o],M=a.isLinear&&Object(s["A"])(C);if(Object(s["A"])(w)){for(v=0;v<e.length;v++){var A=e[v];m=A[d];if(r.translate(m[o][0])<=j&&r.translate(m[o][1])>=j){if(!M){l=A;break}Object(s["A"])(l)||(l=[]),l.push(A)}}Object(s["A"])(l)&&(l=_n(l,t,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(S)||j<r.translate(w))&&(j>r.max||j<r.min))return null;var T=0,L=e.length-1,B=void 0;while(T<=L){B=Math.floor((T+L)/2);var P=e[B][d][o];if(Dn(P,j,r))return e[B];r.translate(P)<=r.translate(j)?(T=B+1,O=e[B],k=e[B+1]):(0===L&&(O=e[0]),L=B-1)}}else{for(v=0;v<e.length;v++){A=e[v],m=A[d];if(Dn(m[o],j,r)){if(!M){l=A;break}Object(s["A"])(l)||(l=[]),l.push(A)}else r.translate(m[o])<=j&&(O=A,k=e[v+1])}Object(s["A"])(l)&&(l=_n(l,t,n))}O&&k&&Math.abs(r.translate(O[d][o])-j)>Math.abs(r.translate(k[d][o])-j)&&(O=k)}var I=Hn(n.getXScale());return!l&&Math.abs(r.translate(O[d][o])-j)<=I/2&&(l=O),l}function qn(t,e,n,i){var r,a;void 0===n&&(n=""),void 0===i&&(i=!1);var c,l,h=t[d],u=Gn(h,e,n),p=e.tooltipOption,f=e.theme.defaultColor,g=[];function v(e,n){if(i||!Object(s["H"])(n)&&""!==n){var r={title:u,data:h,mappingData:t,name:e,value:n,color:t.color||f,marker:!0};g.push(r)}}if(Object(s["L"])(p)){var y=p.fields,m=p.callback;if(m){var b=y.map((function(e){return t[d][e]})),x=m.apply(void 0,Object(o["g"])([],Object(o["e"])(b),!1)),O=Object(o["a"])({data:t[d],mappingData:t,title:u,color:t.color||f,marker:!0},x);g.push(O)}else{var j=e.scales;try{for(var w=Object(o["i"])(y),C=w.next();!C.done;C=w.next()){var S=C.value;if(!Object(s["H"])(h[S])){var M=j[S];c=Nt(M),l=M.getText(h[S]),v(c,l)}}}catch(k){r={error:k}}finally{try{C&&!C.done&&(a=w.return)&&a.call(w)}finally{if(r)throw r.error}}}}else{var A=Nn(e);l=Xn(h,A),c=zn(h,e),v(c,l)}return g}function Wn(t,e,n,i){var r,a,c=i.showNil,l=[],h=t.dataArray;if(!Object(s["E"])(h)){t.sort(h);try{for(var u=Object(o["i"])(h),p=u.next();!p.done;p=u.next()){var f=p.value,d=Vn(e,f,t);if(d){var g=t.getElementId(d),v=t.elementsMap[g];if("heatmap"===t.type||v.visible){var y=qn(d,t,n,c);y.length&&l.push(y)}}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}}return l}function Un(t,e,n,i){var r=i.showNil,a=[],o=t.container,s=o.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var c=s.get("origin").mappingData,l=qn(c,t,n,r);l.length&&a.push(l)}return a}function Zn(t,e,n){var i,r,a=[],s=t.geometries,c=n.shared,l=n.title,h=n.reversed;try{for(var u=Object(o["i"])(s),p=u.next();!p.done;p=u.next()){var f=p.value;if(f.visible&&!1!==f.tooltipOption){var d=f.type,g=void 0;g=["point","edge","polygon"].includes(d)?Un(f,e,l,n):["area","line","path","heatmap"].includes(d)||!1!==c?Wn(f,e,l,n):Un(f,e,l,n),g.length&&(h&&g.reverse(),a.push(g))}}}catch(v){i={error:v}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(i)throw i.error}}return a}function Qn(t,e,n){var i,r,a=Zn(t,e,n);try{for(var s=Object(o["i"])(t.views),c=s.next();!c.done;c=s.next()){var l=c.value;a=a.concat(Zn(l,e,n))}}catch(h){i={error:h}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function Kn(t){return!Object(s["J"])(t)&&!Object(s["A"])(t)}function Jn(t){void 0===t&&(t=0);var e=Object(s["A"])(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(o["g"])(Object(o["g"])([],Object(o["e"])(e),!1),Object(o["e"])(e),!1);break;case 3:e=Object(o["g"])(Object(o["g"])([],Object(o["e"])(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var $n={};function ti(t,e){$n[t]=e}function ei(){return Object.keys($n)}function ni(t){return $n[t]}var ii=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(s["gb"])(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,a="theta"===i,s=Object(o["a"])({start:t,end:e},r),c=at(a?"polar":i);return this.coordinate=new c(s),this.coordinate.type=i,a&&(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(o["a"])({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(s["j"])(n,(function(n){var i,r=Object(o["e"])(n),a=r[0],c=r.slice(1),l=!!Object(s["H"])(t)||t.includes(a);l&&(i=e.coordinate)[a].apply(i,Object(o["g"])([],Object(o["e"])(c),!1))}))},t}(),ri=ii,ai=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 T["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=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),oi=ai;function si(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),a=t.getController("scrollbar");[e,r,a,n,i].forEach((function(t){t&&t.layout()}))}var ci=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,a=this.getScaleMeta(i);if(0===e.length&&a){var o=a.scale,c={type:o.type};o.isCategory&&(c.values=o.values),r=Object(s["h"])(c,a.scaleDef,n)}var l=Gt(t,e,r);return this.cacheScale(l,n,i),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(i,r){var a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,c=[];Object(s["j"])(i,(function(t){var e=n.getScale(t);o=Object(s["J"])(e.max)?Math.max(o,e.max):o,a=Object(s["J"])(e.min)?Math.min(a,e.min):a,Object(s["j"])(e.values,(function(t){c.includes(t)||c.push(t)}))})),Object(s["j"])(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:a,max:o,values:c});else if(r.isCategory){var l=r.range,h=n.getScaleMeta(i);c&&!Object(s["q"])(h,["scaleDef","range"])&&(l=Xt(Object(s["h"])({},r,{values:c}),t,e)),r.change({values:c,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(Yt(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var a=this.syncScales.get(r);a||(a=[],this.syncScales.set(r,a)),a.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(s["Q"])(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=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,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.scale,n=t.scaleDef,i=e.field,r=Object(s["q"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),li=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=Object(o["e"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,a),this},t.prototype.shrink=function(t){var e=Object(o["e"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top+=n,this.right+=i,this.bottom+=r,this.left+=a,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;break;default:break}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(o["g"])([void 0],Object(o["e"])(this.getPadding()),!1)))},t}();function hi(t){var e=t.padding;if(!Kn(e))return new(li.bind.apply(li,Object(o["g"])([void 0],Object(o["e"])(Jn(e)),!1)));var n=t.viewBBox,i=new li,r=[],c=[],l=[];return Object(s["j"])(t.getComponents(),(function(t){var e=t.type;e===a.AXIS?r.push(t):[a.LEGEND,a.SLIDER,a.SCROLLBAR].includes(e)?c.push(t):e!==a.GRID&&e!==a.TOOLTIP&&l.push(t)})),Object(s["j"])(r,(function(t){var e=t.component,r=e.getLayoutBBox(),a=new kt(r.x,r.y,r.width,r.height),o=a.exceed(n);i.max(o)})),Object(s["j"])(c,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=e.get("padding"),o=new kt(r.x,r.y,r.width,r.height).expand(a);i.inc(o,n)})),Object(s["j"])(l,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=new kt(r.x,r.y,r.width,r.height);i.inc(a,n)})),i}function ui(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var pi=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=ei(),n.scalePool=new ci,n.layoutFunc=si,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(s["nb"])("view"):i,a=e.parent,c=e.canvas,l=e.backgroundGroup,h=e.middleGroup,u=e.foregroundGroup,p=e.region,f=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,d=e.padding,g=e.appendPadding,v=e.theme,y=e.options,m=e.limitInPlot,b=e.syncViewPadding;return n.parent=a,n.canvas=c,n.backgroundGroup=l,n.middleGroup=h,n.foregroundGroup=u,n.region=f,n.padding=d,n.appendPadding=g,n.options=Object(o["a"])(Object(o["a"])({},n.options),y),n.limitInPlot=m,n.id=r,n.syncViewPadding=b,n.themeObject=Object(s["L"])(v)?Object(s["h"])({},En("default"),Bn(v)):En(v),n.init(),n}return Object(o["c"])(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,e){void 0===t&&(t=!1),this.emit(c.BEFORE_RENDER,oi.fromData(this,c.BEFORE_RENDER,e)),this.paint(t),this.emit(c.AFTER_RENDER,oi.fromData(this,c.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(c.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),e[n].labelsContainer.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(c.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(c.BEFORE_DESTROY);var e=this.interactions;Object(s["j"])(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){var a=n[i];a.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++){var a=n[i];a.changeVisible(e)}var o=this.controllers;for(i=0,r=o.length;i<r;i++){var s=o[i];s.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(s["eb"])(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(s["G"])(e)?(Object(s["eb"])(this.options,["filters",t],e),this):(!e&&Object(s["q"])(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(s["B"])(t)?Object(s["eb"])(this.options,["axes"],t):Object(s["eb"])(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(s["B"])(t)?Object(s["eb"])(this.options,["legends"],t):Object(s["N"])(t)?(Object(s["eb"])(this.options,["legends",t],e),Object(s["M"])(e)&&(null===e||void 0===e?void 0:e.selected)&&Object(s["eb"])(this.options,["filters",t],(function(t){var n;return null===(n=null===e||void 0===e?void 0:e.selected[t])||void 0===n||n}))):Object(s["eb"])(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(s["N"])(t)?Object(s["eb"])(this.options,["scales",t],e):Object(s["L"])(t)&&Object(s["j"])(t,(function(t,e){Object(s["eb"])(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(s["eb"])(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(s["N"])(t)?Object(s["eb"])(this.options,"coordinate",{type:t,cfg:e}):Object(s["eb"])(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=re(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,Object(o["a"])(Object(o["a"])({},e),{type:t})),this},e.prototype.animate=function(t){return Object(s["eb"])(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(s["X"])(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 \"".concat(t,'", please change another one.'));return Object(s["eb"])(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(s["L"])(t)?Object(s["h"])({},this.themeObject,Bn(t)):En(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=On(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(c.BEFORE_CHANGE_DATA,oi.fromData(this,c.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.changeData(t)}this.emit(c.AFTER_CHANGE_DATA,oi.fromData(this,c.AFTER_CHANGE_DATA,null))},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(s["e"])(this.options.scales),axes:Object(s["e"])(this.options.axes),coordinate:Object(s["e"])(this.coordinateController.getOption()),tooltip:Object(s["e"])(this.options.tooltip),legends:Object(s["e"])(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e(Object(o["a"])(Object(o["a"])({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:p.BG}),middleGroup:this.middleGroup.addGroup({zIndex:p.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:p.FORE}),theme:this.themeObject,padding:this.padding},t),{options:Object(o["a"])(Object(o["a"])({},n),Object(s["q"])(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(s["cb"])(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={},e=[];return this.geometries.forEach((function(n){var i=n.getYScale(),r=i.field;t[r]||(t[r]=!0,e.push(i))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var a=e[i],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(s["bb"])(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===i.BG?this.backgroundGroup:t===i.MID?this.middleGroup:(i.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return It(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(s["p"])(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return At(Object(s["p"])(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),a=this.getScalesByDim("y");if(Object(s["j"])(t,(function(t,i){r[i]&&(e=r[i].scale(t)),a[i]&&(n=a[i].scale(t))})),!Object(s["H"])(e)&&!Object(s["H"])(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(s["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 a=e[i],o=a.dataArray;a.sort(o);for(var s=void 0,c=0,l=o.length;c<l;c++){var h=o[c];s=Vn(t,h,a),s&&n.push(s)}}var u=this.views;for(i=0,r=u.length;i<r;i++){var p=u[i],f=p.getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(s["fb"])(e)?t:Object(s["l"])(t,(function(t,n){var i=Object.keys(e);return i.every((function(i){var r=e[i];return r(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=Object(s["q"])(n,t);return Object(s["O"])(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(s["F"])(e,i)&&Object(s["F"])(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(c.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(c.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(s["q"])(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,n=e.x,i=e.y,r=e.width,a=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:i,width:r,height:a})}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=hi(this).shrink(Jn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();var e=this.controllers.find((function(t){return"tooltip"===t.name}));e.update();for(var n=this.views,i=0,r=n.length;i<r;i++){var a=n[i];a.renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?ui:Object(s["G"])(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,li),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++){var a=n[i];a.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Ft(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){var c=a[o];c.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,i){var r=Object(s["q"])(this.options.scales,[t]),a=Object(o["a"])(Object(o["a"])({},r),n);return this.parent?this.parent.createScale(t,e,a,i):this.scalePool.createScale(t,e,a,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++){var r=e[n];r.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 a=this.region,o=a.start,s=a.end,c=new kt(t+n*o.x,e+i*o.y,n*(s.x-o.x),i*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(c)||(this.viewBBox=new kt(t+n*o.x,e+i*o.y,n*(s.x-o.x),i*(s.y-o.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=t[e],r=ni(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new oi(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,i=t.y,r={x:n,y:i},a=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(a.includes(e)){var o=this.isPointInPlot(r),s=t.clone();if(o){var c="plot:".concat(e);s.type=c,this.emit(c,s),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!o?("mousemove"===e&&(s.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,s)),s.type=h.LEAVE,this.emit(h.LEAVE,s)):!this.isPreMouseInPlot&&o&&("mousemove"===e&&(s.type=h.MOUSE_ENTER,this.emit(h.MOUSE_ENTER,s)),s.type=h.ENTER,this.emit(h.ENTER,s)),this.isPreMouseInPlot=o):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(s.type=h.MOUSE_LEAVE,this.emit(h.MOUSE_LEAVE,s)),s.type=h.LEAVE,this.emit(h.LEAVE,s),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(s["q"])(this.options,"scales",{}),i=this.geometries,r=0,a=i.length;r<a;r++){var o=i[r];o.scales=this.getGeometryScales();var c={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?o.update(c):o.init(c)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,a=void 0===r?{}:r,o=this.filteredData,s=0,c=t.length;s<c;s++){var l=t[s],h=a[l],u=this.getScaleKey(l);this.createScale(l,e.includes(l)?i:o,h,u),this.createdScaleKeys.set(u,!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=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],a=r.getScaleFields();At(a,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,i=0;i<n.length;i++){var r=n[i],a=r.getGroupFields();At(a,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(o["g"])([this.getXScale()],Object(o["e"])(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),i=this.options.scales;Object(s["j"])(e,(function(e){var r=e.field,a=e.values,o=e.isCategory,c=e.isIdentity;(o||c)&&a&&!Object(s["q"])(i,[r,"range"])&&(e.range=Xt(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(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},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,a=0;a<r.length;a++){var o=r[a];o.coordinate=n,o.canvasRegion=i,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=this.getComponents(),n=0;n<e.length;n++){var i=e[n];i.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,a=void 0===r?[]:r,c=e.views,l=void 0===c?[]:c,h=e.annotations,u=void 0===h?[]:h,p=e.coordinate,f=e.events,d=e.facets;this.coordinateController?p&&this.coordinateController.update(p):this.coordinateController=new ri(p);for(var g=0;g<i.length;g++){var v=i[g];this.createGeometry(v)}for(var y=0;y<a.length;y++){var m=a[y],b=m.type,x=m.cfg;this.interaction(b,x)}for(var O=0;O<l.length;O++){var j=l[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<u.length;C++){var S=u[C];w.annotation(S)}f&&Object(s["j"])(f,(function(e,n){t.on(n,e)})),d&&Object(s["j"])(d,(function(e){var n=e.type,i=Object(o["f"])(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var r=this[e](i);Object(s["j"])(t,(function(t,e){Object(s["G"])(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(k);function fi(t,e){pi.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(o["a"])({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var di=pi,gi=function(t){function e(e){var n=this,i=e.container,r=e.width,a=e.height,c=e.autoFit,l=void 0!==c&&c,h=e.padding,u=e.appendPadding,f=e.renderer,d=void 0===f?"canvas":f,g=e.pixelRatio,v=e.localRefresh,y=void 0===v||v,m=e.visible,x=void 0===m||m,j=e.supportCSSTransform,w=void 0!==j&&j,S=e.defaultInteractions,M=void 0===S?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:S,A=e.options,k=e.limitInPlot,T=e.theme,L=e.syncViewPadding,B=Object(s["N"])(i)?document.getElementById(i):i,P=Object(O["b"])('<div style="position:relative;"></div>');B.appendChild(P);var I=C(B,l,r,a),E=b(d),F=new E.Canvas(Object(o["a"])({container:P,pixelRatio:g,localRefresh:y,supportCSSTransform:w},I));return n=t.call(this,{parent:null,canvas:F,backgroundGroup:F.addGroup({zIndex:p.BG}),middleGroup:F.addGroup({zIndex:p.MID}),foregroundGroup:F.addGroup({zIndex:p.FORE}),padding:h,appendPadding:u,visible:x,options:A,limitInPlot:k,theme:T,syncViewPadding:L})||this,n.onResize=Object(s["g"])((function(){n.forceFit()}),300),n.ele=B,n.canvas=F,n.width=I.width,n.height=I.height,n.autoFit=l,n.localRefresh=y,n.renderer=d,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return Object(o["c"])(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(s["j"])(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(c.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(c.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),S(this.wrapperElement),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=C(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(O["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}(di),vi=gi,yi=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(s["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}();function mi(t){for(var e=[],n=function(n){var i=t[n],r=Object(s["m"])(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i<t.length;i++)n(i);return e}var bi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(o["c"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},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",oi.fromData(e,"tooltip:show",Object(o["a"])({items:n,title:i},t)));var a=this.getTooltipCfg(),c=a.follow,l=a.showMarkers,h=a.showCrosshairs,u=a.showContent,p=a.marker,f=this.items,d=this.title;if(Object(s["F"])(d,i)&&Object(s["F"])(f,n)?(this.tooltip&&c&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",oi.fromData(e,"tooltip:change",Object(o["a"])({items:n,title:i},t))),(Object(s["G"])(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(s["X"])({},a,{items:this.getItemsAfterProcess(n),title:i},c?t:{})),this.tooltip.show()),l&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=i,h){var g=Object(s["q"])(a,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:r,a)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,i=this.yCrosshair;n&&n.hide(),i&&i.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",oi.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,e=t.tooltip,n=t.xCrosshair,i=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear(),(null===e||void 0===e?void 0:e.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},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,n=e.tooltip,i=e.tooltipMarkersGroup,r=e.xCrosshair,a=e.yCrosshair;t?(n&&n.show(),i&&i.show(),r&&r.show(),a&&a.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),a&&a.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,i,r,a,c,l=this.findItemsFromView(this.view,t);if(l.length){l=Object(s["p"])(l);try{for(var h=Object(o["i"])(l),u=h.next();!u.done;u=h.next()){var p=u.value;try{for(var f=(i=void 0,Object(o["i"])(p)),d=f.next();!d.done;d=f.next()){var g=d.value,v=g.mappingData,y=v.x,m=v.y;g.x=Object(s["A"])(y)?y[y.length-1]:y,g.y=Object(s["A"])(m)?m[m.length-1]:m}}catch(M){i={error:M}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(i)throw i.error}}}}catch(A){e={error:A}}finally{try{u&&!u.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}var b=this.getTooltipCfg().shared;if(!1===b&&l.length>1){var x=l[0],O=Math.abs(t.y-x[0].y);try{for(var j=Object(o["i"])(l),w=j.next();!w.done;w=j.next()){var C=w.value,S=Math.abs(t.y-C[0].y);S<=O&&(x=C,O=S)}}catch(k){a={error:k}}finally{try{w&&!w.done&&(c=j.return)&&c.call(j)}finally{if(a)throw a.error}}l=[x]}return mi(Object(s["p"])(l))}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(),r=i.x,a=i.y,o=i.width,s=i.height;return new kt(r,a,o,s).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(s["q"])(i,["components","tooltip"],{}),a=Object(s["q"])(n,"enterable",r.enterable);return Object(s["h"])({},r,n,{capture:!(!a&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(s["B"])(t)||!Object(s["q"])(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return Object(s["N"])(i)?'<div class="g2-tooltip">'+i+"</div>":i};return Object(o["a"])(Object(o["a"])({},t),{customContent:n})},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 dt(Object(o["a"])(Object(o["a"])({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,r=this.getTooltipMarkersGroup(),a=this.view.getRootView(),c=a.limitInPlot;try{for(var l=Object(o["i"])(t),h=l.next();!h.done;h=l.next()){var u=h.value,p=u.x,f=u.y;if(c||(null===r||void 0===r?void 0:r.getClip())){var d=Ft(a.getCoordinate()),g=d.type,v=d.attrs;null===r||void 0===r||r.setClip({type:g,attrs:v})}else null===r||void 0===r||r.setClip(void 0);var y=this.view.getTheme(),m=Object(s["q"])(y,["components","tooltip","marker"],{}),b=Object(o["a"])(Object(o["a"])({fill:u.color,symbol:"circle",shadowColor:u.color},Object(s["G"])(e)?Object(o["a"])(Object(o["a"])({},m),e(u)):e),{x:p,y:f});r.addShape("marker",{attrs:b})}}catch(x){n={error:x}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(s["q"])(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,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect)r.isTransposed?(n={x:r.start.x,y:t.y},i={x:r.end.x,y:t.y}):(n={x:t.x,y:r.end.y},i={x:t.x,y:r.start.y});else{var a=Et(r,t),o=r.getCenter(),c=r.getRadius();i=mt(o.x,o.y,c,a),n=o}var l=Object(s["h"])({start:n,end:i,container:this.getTooltipCrosshairsGroup()},Object(s["q"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var h=this.xCrosshair;h?h.update(l):(h=new st["Crosshair"].Line(l),h.init()),h.render(),h.show(),this.xCrosshair=h},e.prototype.renderYCrosshairs=function(t,e){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect){var a=void 0,o=void 0;r.isTransposed?(a={x:t.x,y:r.end.y},o={x:t.x,y:r.start.y}):(a={x:r.start.x,y:t.y},o={x:r.end.x,y:t.y}),n={start:a,end:o},i="Line"}else n={center:r.getCenter(),radius:Pt(r,t),startAngle:r.startAngle,endAngle:r.endAngle},i="Circle";n=Object(s["h"])({container:this.getTooltipCrosshairsGroup()},n,Object(s["q"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete n.type;var c=this.yCrosshair;c?r.isRect&&"circle"===c.get("type")||!r.isRect&&"line"===c.get("type")?(c=new st["Crosshair"][i](n),c.init()):c.update(n):(c=new st["Crosshair"][i](n),c.init()),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(s["q"])(n,["crosshairs","text"]),r=Object(s["q"])(n,["crosshairs","follow"]),a=this.items;if(i){var o=this.getViewWithGeometry(this.view),c=a[0],l=o.getXScale(),h=o.getYScales()[0],u=void 0,p=void 0;if(r){var f=this.view.getCoordinate().invert(e);u=l.invert(f.x),p=h.invert(f.y)}else u=c.data[l.field],p=c.data[h.field];var d="x"===t?u:p;return Object(s["G"])(i)?i=i(t,d,a,e):i.content=d,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var r=this.getTooltipCfg(),a=Zn(t,e,r);try{for(var s=Object(o["i"])(t.views),c=s.next();!c.done;c=s.next()){var l=c.value;a=a.concat(this.findItemsFromView(l,e))}}catch(h){n={error:h}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(s["m"])(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(t){return t};return n(t)},e}(yi),xi=bi,Oi={};function ji(t){return Oi[t.toLowerCase()]}function wi(t,e){Oi[t.toLowerCase()]=e}var Ci={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Si={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"}}},Mi={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){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Ai(t,e){return{delay:Object(s["G"])(t.delay)?t.delay(e):t.delay,easing:Object(s["G"])(t.easing)?t.easing(e):t.easing,duration:Object(s["G"])(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function ki(t,e,n){var i=Si[t];return i&&(Object(s["G"])(i)&&(i=i(e)),i=Object(s["h"])({},Ci,i),n)?i[n]:i}function Ti(t,e,n){var i=Object(s["q"])(t.get("origin"),"data",d),r=e.animation,a=Ai(e,i);if(r){var o=ji(r);o&&o(t,a,n)}else t.animate(n.toAttrs,a)}function Li(t,e,n,i,r){if(Mi[n]){var a=Mi[n](i),c=ji(Object(s["q"])(a,"animation",""));if(c){var l=Object(o["a"])(Object(o["a"])(Object(o["a"])({},Ci.appear),a),e);t.stopAnimate(),c(t,l,{coordinate:i,minYPoint:r,toAttrs:null})}}}var Bi="element-background",Pi=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var i=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=a,n.visible=c,n.elementIndex=o,n}return Object(o["c"])(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,n=e.shapeFactory,i=e.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var r=this.getOffscreenGroup(),a=n.drawShape(this.shapeType,t,r);a.cfg.data=this.data,a.cfg.origin=t,a.cfg.element=this,this.syncShapeStyle(i,a,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,i=e.shape;if(i){var r=this.getAnimateCfg("leave");r?Ti(i,r,{coordinate:n.coordinate,toAttrs:Object(o["a"])({},i.attr())}):i.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=[],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,a=n.model,o=n.shape,s=n.shapeType,c=i.indexOf(t);if(e){if(c>-1)return;i.push(t),"active"!==t&&"selected"!==t||null===o||void 0===o||o.toFront()}else{if(-1===c)return;if(i.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,h=l.sortZIndex,u=l.zIndexReversed,p=u?this.geometry.elements.length-this.elementIndex:this.elementIndex;h?o.setZIndex(p):o.set("zIndex",p)}}var f=r.drawShape(s,a,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,f,i,null):this.syncShapeStyle(o,f,["reset"],null),f.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(st["propagationDelegate"])(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(s["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,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,a=i.defaultShapeType,o=i.theme[e]||i.theme[a];this.statesStyle=Object(s["h"])({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(s["q"])(n,[t,"style"],{}),r=i[e]||i;return Object(s["G"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?Object(o["a"])(Object(o["a"])({},i),{callback:function(){var t;Object(s["G"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.AFTER_DRAW_ANIMATE)}}):i}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var i=this,r=i.shapeFactory,a=i.container,c=i.shapeType;if(this.shape=r.drawShape(c,t,a),this.shape){this.setShapeInfo(this.shape,t);var h=this.shape.cfg.name;h?Object(s["N"])(h)&&(this.shape.cfg.name=["element",h]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",p=this.getAnimateCfg(u);p&&(null===(n=this.geometry)||void 0===n||n.emit(l.BEFORE_DRAW_ANIMATE),Ti(this.shape,p,{coordinate:r.coordinate,toAttrs:Object(o["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;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var i=t.get("children");i.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,i,r){var a,o=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var c=t.get("clipShape"),h=e.get("clipShape");if(this.syncShapeStyle(c,h,n,i),t.isGroup())for(var u=t.get("children"),p=e.get("children"),f=0;f<u.length;f++)this.syncShapeStyle(u[f],p[f],n,i,r+f);else{if(!Object(s["E"])(n)&&!Object(s["F"])(n,["reset"])){var d=t.get("name");Object(s["A"])(d)&&(d=d[1]),Object(s["j"])(n,(function(t){if(e.get("name")!==Bi){var n=o.getStateStyle(t,d||r);e.attr(n)}}))}var g=wt(t,e);this.animate?i?(null===(a=this.geometry)||void 0===a||a.emit(l.BEFORE_DRAW_ANIMATE),Ti(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(s["E"])(n)?t.attr(g):(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(s["q"])(t,"shape");return Object(s["A"])(e)?e[0]:e},e}(k),Ii=Pi,Ei={},Fi={};function Di(t){return Ei[t.toLowerCase()]}function Ri(t,e){Ei[t.toLowerCase()]=e}function _i(t){return Fi[t.toLowerCase()]}function Hi(t,e){Fi[t.toLowerCase()]=e}var Gi={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(s["q"])(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,a=Object(s["q"])(r,[t,"default"],{}),o=n.getMarker(e);return Object(s["h"])({},a,o)},drawShape:function(t,e,n){var i=this.getShape(t);return i.draw(e,n)}},Yi={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Se["c"])(t);return n=e.isPolar?Ce(e,n):we(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Ni={};function Xi(t,e){var n=Object(s["ob"])(t),i=Object(o["a"])(Object(o["a"])(Object(o["a"])({},Gi),e),{geometryType:t});return Ni[n]=i,i}function zi(t,e,n){var i=Object(s["ob"])(t),r=Ni[i],a=Object(o["a"])(Object(o["a"])({},Yi),n);return r[e]=a,a}function Vi(t){var e=Object(s["ob"])(t);return Ni[e]}function qi(t,e,n){var i,r;if(void 0===n&&(n={}),!e)return[t];var a=Object(s["v"])(t,e),c=[];if(1===e.length&&n[e[0]]){var l=n[e[0]];try{for(var h=Object(o["i"])(l),u=h.next();!u.done;u=h.next()){var p=u.value,f=a["_".concat(p)];f&&c.push(f)}}catch(v){i={error:v}}finally{try{u&&!u.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}}else for(var d in a)if(a.hasOwnProperty(d)){var g=a[d];c.push(g)}return c}function Wi(t,e){return Object(s["gb"])(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(s["F"])(t[n],e[n])}))}function Ui(t){return Object(s["A"])(t)?t:t.split("*")}function Zi(t,e){for(var n=[],i=[],r=[],a=new Map,o=0;o<e.length;o++){var s=e[o];t[s]?i.push(s):n.push(s),a.set(s,!0)}return Object.keys(t).forEach((function(t){a.has(t)||r.push(t)})),{added:n,updated:i,removed:r}}var Qi=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.container,r=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,c=void 0!==s&&s,l=e.visible,h=void 0===l||l,u=e.theme,p=e.scales,f=void 0===p?{}:p,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,C=e.sortZIndex,S=e.useDeferredLabel;return n.container=i,n.labelsContainer=r,n.coordinate=a,n.data=o,n.sortable=c,n.visible=h,n.userTheme=u,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=C,n.useDeferredLabel=S?"number"===typeof S?S:1/0:null,n}return Object(o["c"])(e,t),e.prototype.position=function(t){var e=t;Object(s["M"])(t)||(e={fields:Ui(t)});var n=Object(s["q"])(e,"fields");return 1===n.length&&(n.unshift("1"),Object(s["eb"])(e,"fields",n)),Object(s["eb"])(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(s["N"])(t)||Object(s["M"])(t))&&(e=[t]),Object(s["j"])(e,(function(t,n){Object(s["L"])(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(s["N"])(t)){var n=Ui(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),a=i.cfg;this.styleOption=n||r||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(s["N"])(t)){var n=Ui(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(s["N"])(t)){var i={},r=Ui(t);i.fields=r,Object(s["G"])(e)?i.callback=e:Object(s["M"])(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,a=r.attributeOption,o=r.lastAttributeOption;Object(s["F"])(a,o)?!e||!n&&Object(s["F"])(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),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(s["h"])({},ki(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var n=this.getOffscreenGroup();n.clear();var i=this.beforeMappingData,r=this.beforeMapping(i);this.dataArray=new Array(r.length);for(var a=0;a<r.length;a++){var c=r[a];this.dataArray[a]=this.mapping(c)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var l=this.container,h=this.type,u=this.coordinate,p=Object(s["q"])(this.animateOption,"appear"),f=this.getYScale(),d=u.convert({x:0,y:f.scale(this.getYMinValue())});Li(l,p,h,u,d)}if(this.labelOption){var g=this.useDeferredLabel,v=function(){return e.renderLabels(Object(s["p"])(e.dataArray),t)}.bind(this);if("number"===typeof g){var y="number"===typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var m=y&&y!==1/0?{timeout:y}:void 0;window.requestIdleCallback(v,m)}else setTimeout(v,y)}else v()}this.lastAttributeOption=Object(o["a"])({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,i=t.offscreenGroup;e&&e.clear(),n&&n.clear(),i&&i.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();var e=this.container;e.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(s["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(s["E"])(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,a=i.length;r<a;r++){var s=i[r],c=s.field;s.isIdentity?n.push(s.values):n.push(e[c])}return t.mapping.apply(t,Object(o["g"])([],Object(o["e"])(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){t=Object(s["A"])(t)?t[0]:t;var e=t[d];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,a,o=this.type,c=this.getXScale(),l=this.getYScale(),h=c.field||"x",u=l.field||"y",p=e[u];r="identity"===c.type?c.values[0]:e[h],a="interval"===o||"schema"===o?"".concat(r):"line"===o||"area"===o||"path"===o?o:"".concat(r,"-").concat(p);for(var f=this.groupScales,g=(i=0,f.length);i<g;i++){var v=f[i],y=v.field;a="".concat(a,"-").concat(e[y])}var m=this.getAdjust("dodge");if(m){var b=m.dodgeBy;b&&(a="".concat(a,"-").concat(e[b]))}return this.getAdjust("jitter")&&(a="".concat(a,"-").concat(t.x,"-").concat(t.y)),a},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this,i=n.attributeOption,r=n.labelOption,a=n.tooltipOption;for(var o in i)if(i.hasOwnProperty(o)){var c=i[o];c.fields?At(c.fields,t,e):c.values&&At(c.values,t,e)}return r&&r.fields&&At(r.fields,t,e),Object(s["L"])(a)&&a.fields&&At(a.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++){var a=n[i];a.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.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){var i=(null===n||void 0===n?void 0:n.fields)||[];i.forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,i=f.length;n<i;n++){var r=f[n],a=this.attributeOption[r];a&&a.fields&&At(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=Object(o["e"])(this.attributeOption.position.fields,2),e=t[0],n=t[1];return[e,n]},e.prototype.getXField=function(){return Object(s["q"])(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(s["q"])(this.getXYFields(),[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++){var r=t[i];r.sort((function(t,i){return e.translate(t[d][n])-e.translate(i[d][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(Vi(t))return this.shapeFactory||(this.shapeFactory=Object(s["e"])(Vi(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this.normalizeValues(t[n.field],n);return e=i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var i=this.container,r=this.getDrawCfg(t),a=this.getShapeFactory(),o=new Ii({shapeFactory:a,container:i,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return o.animate=this.animateOption,o.geometry=this,o.draw(r,n),o},e.prototype.getDrawCfg=function(t){var e=t[d],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(s["q"])(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,i,r,a,s,c;void 0===e&&(e=!1);for(var l=new Map,h=[],u=new Map,p=0,f=0;f<t.length;f++)for(var d=t[f],g=0;g<d.length;g++){var v=d[g],y=this.getElementId(v),m=l.has(y)?"".concat(y,"-").concat(f,"-").concat(g):y;h.push(m),l.set(m,v),u.set(m,p),p++}this.elements=new Array(p);var b=Zi(this.lastElementsMap,h),x=b.added,O=b.updated,j=b.removed;try{for(var w=Object(o["i"])(x),C=w.next();!C.done;C=w.next()){y=C.value,v=l.get(y),f=u.get(y);var S=this.createElement(v,f,e);this.elements[f]=S,this.elementsMap[y]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(P){n={error:P}}finally{try{C&&!C.done&&(i=w.return)&&i.call(w)}finally{if(n)throw n.error}}try{for(var M=Object(o["i"])(O),A=M.next();!A.done;A=M.next()){y=A.value,S=this.lastElementsMap[y],v=l.get(y);var k=this.getDrawCfg(v),T=S.getModel();f=u.get(y);(this.isCoordinateChanged||Wi(k,T))&&(S.animate=this.animateOption,S.update(k)),this.elements[f]=S,this.elementsMap[y]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-f:f)}}catch(I){r={error:I}}finally{try{A&&!A.done&&(a=M.return)&&a.call(M)}finally{if(r)throw r.error}}this.container&&this.container.sort();try{for(var L=Object(o["i"])(j),B=L.next();!B.done;B=L.next()){y=B.value,S=this.lastElementsMap[y];S.animate=this.animateOption,S.destroy()}}catch(E){s={error:E}}finally{try{B&&!B.done&&(c=L.return)&&c.call(L)}finally{if(s)throw s.error}}},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,i=t.type,r=n.type,a=n.isTransposed,o=Object(s["q"])(e,["cfg","type"]);return o||(o="polar"===r?a?"pie":"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),o},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,i=e.max;return t=n>=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(s["H"])(e)||Object(s["L"])(e))Object(s["L"])(e)&&Object(s["F"])(Object.keys(e),["values"])?Object(s["eb"])(this.attributeOption,t,{fields:e.values}):Object(s["eb"])(this.attributeOption,t,e);else{var i={};Object(s["J"])(e)?i.values=[e]:i.fields=Ui(e),n&&(Object(s["G"])(n)?i.callback=n:i.values=n),Object(s["eb"])(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,i=e.attributeOption,r=e.theme,a=e.shapeType;this.groupScales=[];var c={},l=function(e){if(i.hasOwnProperty(e)){var l=i[e];if(!l)return{value:void 0};var h=Object(o["a"])({},l),u=h.callback,p=h.values,d=h.fields,g=void 0===d?[]:d,v=g.map((function(n){var i=t.scales[n];if(!c[n]&&f.includes(e)){var r=Ht(i,Object(s["q"])(t.scaleDefs,n),e,t.type);"cat"===r&&(t.groupScales.push(i),c[n]=!0)}return i}));h.scales=v,"position"!==e&&1===v.length&&"identity"===v[0].type?h.values=v[0].values:u||p||("size"===e?h.values=r.sizes:"shape"===e?h.values=r.shapes[a]||[]:"color"===e&&(v.length?h.values=v[0].values.length<=10?r.colors10:r.colors20:h.values=r.colors10));var y=W(e);n[e]=new y(h)}};for(var h in i){var u=l(h);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales,r=i.filter((function(t){return t.isCategory})),a=this.groupData(t),s=[],c=0,l=a.length;c<l;c++){for(var h=a[c],u=[],p=0,f=h.length;p<f;p++){var g=h[p],v={};for(var y in g)v[y]=g[y];v[d]=g;try{for(var m=(e=void 0,Object(o["i"])(r)),b=m.next();!b.done;b=m.next()){var x=b.value,O=x.field;v[O]=x.translate(v[O])}}catch(w){e={error:w}}finally{try{b&&!b.done&&(n=m.return)&&n.call(m)}finally{if(e)throw e.error}}u.push(v)}s.push(u)}var j=this.adjustData(s);return this.beforeMappingData=j,j},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.theme,c=this.maxColumnWidth||a.maxColumnWidth,l=this.minColumnWidth||a.minColumnWidth,h=this.columnWidthRatio||a.columnWidthRatio,u=t;if(e){var p=this.getXScale(),f=this.getYScale(),d=p.field,g=f?f.field:null,v=Lt(this.coordinate),y=p.values.length,m=this.getAttribute("size"),b=void 0;m&&(b=m.values[0]);for(var x=0,O=e.length;x<O;x++){var j=e[x],w=Object(o["a"])({xField:d,yField:g,intervalPadding:i,dodgePadding:r,xDimensionLength:v,groupNum:y,defaultSize:b,maxColumnWidth:c,minColumnWidth:l,columnWidthRatio:h},j),C=j.type;if("dodge"===C){var S=[];if(p.isCategory||"identity"===p.type)S.push("x");else{if(f)throw new Error("dodge is not support linear attribute, please use category attribute!");S.push("y")}w.adjustNames=S,w.dodgeRatio=h}else if("stack"===C){var M=this.coordinate;if(!f){w.height=M.getHeight();var A=this.getDefaultValue("size")||3;w.size=A}!M.isTransposed&&Object(s["H"])(w.reverseOrder)&&(w.reverseOrder=!0)}var k=Object(L["getAdjust"])(C);w.dimValuesMap={},p&&p.values&&(w.dimValuesMap[p.field]=p.values.map((function(t){return p.translate(t)})));var T=new k(w);u=T.process(u),this.adjusts[C]=T}}return u},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],a=0;a<e.length;a++){var o=e[a],c=o.field;r.push(c),Object(s["q"])(n,[c,"values"])&&(i[c]=n[c].values)}return qi(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=Object(s["p"])(e),i=t.field,r=t.min,a=t.max,o=0;o<n.length;o++){var c=n[o],l=Math.min.apply(null,c[i]),h=Math.max.apply(null,c[i]);l<r&&(r=l),h>a&&(a=h)}var u=this.scaleDefs,p={};r<t.min&&!Object(s["q"])(u,[i,"min"])&&(p.min=r),a>t.max&&!Object(s["q"])(u,[i,"max"])&&(p.max=a),t.change(p)},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 a=e[n+1];a&&(this.generateShapePoints(a),r[0].nextPoints=a[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],a=this.createShapePointsCfg(r),o=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(o,a);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(s["A"])(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],a={_origin:r[d],points:r.points,nextPoints:r.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var c=e[o],l=c.names,h=this.getAttributeValues(c,r);if(l.length>1)for(var u=0;u<h.length;u+=1){var p=h[u],f=l[u];a[f]=Object(s["A"])(p)&&1===p.length?p[0]:p}else a[l[0]]=1===h.length?h[0]:h}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,a=t.y,o=this.coordinate;if(Object(s["A"])(r)&&Object(s["A"])(a)){e=[],n=[];for(var c=0,l=0,h=r.length,u=a.length;c<h&&l<u;c+=1,l+=1)i=o.convert({x:r[c],y:a[l]}),e.push(i.x),n.push(i.y)}else if(Object(s["A"])(a)){n=[];for(var p=0;p<a.length;p++){var f=a[p];i=o.convert({x:r,y:f}),e&&e!==i.x?(Object(s["A"])(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if(Object(s["A"])(r)){e=[];for(p=0;p<r.length;p++){var d=r[p];i=o.convert({x:d,y:a}),n&&n!==i.y?(Object(s["A"])(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var g=o.convert({x:r,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,a=t.cfg;if(a)return a;var s=i.map((function(t){return e[t]}));return r.apply(void 0,Object(o["g"])([],Object(o["e"])(s),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),a&&(this.scaleDefs=a,this.idFields=[],Object(s["j"])(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?Object(s["h"])({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),Object(o["b"])(this,void 0,void 0,(function(){var n,i,r,a,c,h,u,p,f,d,g,v,y=this;return Object(o["d"])(this,(function(m){switch(m.label){case 0:return n=this.geometryLabel,this.emit(l.BEFORE_RENDER_LABEL),n||(i=this.getLabelType(),r=Di(i),n=new r(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:m.sent(),a=n.labelsRenderer.shapesMap,c=new Map,Object(s["j"])(a,(function(t,e){for(var n=t.getChildren()||[],i=0;i<n.length;i++){var r=n[i],a=y.elementsMap[r.get("elementId")||e.split(" ")[0]];if(a){r.cfg.name=["element","label"],r.cfg.element=a;var o=c.get(a)||new Set;o.add(t),c.set(a,o)}}}));try{for(h=Object(o["i"])(c.entries()),u=h.next();!u.done;u=h.next())p=Object(o["e"])(u.value,2),f=p[0],d=p[1],f.labelShape=Object(o["g"])([],Object(o["e"])(d),!1)}catch(b){g={error:b}}finally{try{u&&!u.done&&(v=h.return)&&v.call(h)}finally{if(g)throw g.error}}return this.emit(l.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(s["q"])(this.animateOption,"appear")||Object(s["q"])(this.animateOption,"appear")&&void 0===Object(s["q"])(this.animateOption,["appear","animation"]))},e}(k),Ki=Qi,Ji=Z["a"].transform;function $i(t,e,n){var i=Ji(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function tr(t,e){var n=t.attr(),i=n.x,r=n.y,a=Ji(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]]);return a}function er(t,e){var n=tr(t,e);t.setMatrix(n)}function nr(t){return t.find((function(t){return"text"===t.get("type")}))}function ir(t,e,n){void 0===n&&(n=[0,0,0,0]);var i=t&&t.getChildren()[0];if(i){var r=i.clone();(null===e||void 0===e?void 0:e.rotate)&&er(r,-e.rotate);var a=r.getCanvasBBox(),o=a.x,c=a.y,l=a.width,h=a.height;r.destroy();var u=n;return Object(s["H"])(u)?u=[2,2,2,2]:Object(s["J"])(u)&&(u=new Array(4).fill(u)),{x:o-u[3],y:c-u[0],width:l+u[1]+u[3],height:h+u[0]+u[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function rr(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function ar(t,e){var n=t.getBBox();return Object(s["gb"])(e,(function(t){var e=t.getBBox();return rr(n,e,2)>0}))}function or(t,e,n){var i=n.data,r=n.origin,a=n.animateCfg,o=n.coordinate,c=Object(s["q"])(a,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",a),t.set("coordinate",o),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(s,l){var h=e.getChildByIndex(l);if(h){s.set("data",i),s.set("origin",r),s.set("animateCfg",a),s.set("coordinate",o);var u=wt(s,h);c?Ti(s,c,{toAttrs:u,coordinate:o}):s.attr(u),h.isGroup()&&or(s,h,n)}else t.removeChild(s),s.remove(!0)})),Object(s["j"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var sr=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(o["b"])(this,void 0,void 0,(function(){var i,r,a,c,l,h,u,p,f=this;return Object(o["d"])(this,(function(d){switch(d.label){case 0:if(i={},r=this.createOffscreenGroup(),!t.length)return[3,2];try{for(a=Object(o["i"])(t),c=a.next();!c.done;c=a.next())l=c.value,l&&(i[l.id]=this.renderLabel(l,r))}catch(g){u={error:g}}finally{try{c&&!c.done&&(p=a.return)&&p.call(a)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,i)];case 1:d.sent(),this.renderLabelLine(t,i),this.renderLabelBackground(t,i),this.adjustLabel(t,i),d.label=2;case 2:return h=this.shapesMap,Object(s["j"])(i,(function(t,e){if(t.destroyed)delete i[e];else{if(h[e]){var r=t.get("data"),a=t.get("origin"),c=t.get("coordinate"),l=t.get("animateCfg"),u=h[e];or(u,i[e],{data:r,origin:a,animateCfg:l,coordinate:c}),i[e]=u}else{if(f.container.destroyed)return;f.container.add(t);var p=Object(s["q"])(t.get("animateCfg"),n?"enter":"appear");p&&Ti(t,p,{toAttrs:Object(o["a"])({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),Object(s["j"])(h,(function(t){var e=Object(s["q"])(t.get("animateCfg"),"leave");e?Ti(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=i,r.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,a=t.data,c=t.mappingData,l=t.coordinate,h=t.animate,u=t.content,p=t.capture,f={id:i,elementId:r,capture:p,data:a,origin:Object(o["a"])(Object(o["a"])({},c),{data:c[d]}),coordinate:l},g=e.addGroup(Object(o["a"])({name:"label",animateCfg:!1!==this.animate&&null!==h&&!1!==h&&Object(s["h"])({},this.animate,h)},f));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var v=u.getCanvasBBox(),y=v.width,m=v.height,b=Object(s["q"])(t,"textAlign","left"),x=t.x,O=t.y-m/2;"center"===b?x-=y/2:"right"!==b&&"end"!==b||(x-=y),$i(u,x,O),n=u,g.add(u)}else{var j=Object(s["q"])(t,["style","fill"]);n=g.addShape("text",Object(o["a"])({attrs:Object(o["a"])(Object(o["a"])({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(s["q"])(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(s["I"])(j)?t.color:j})},f))}return t.rotate&&er(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return Object(o["b"])(this,void 0,void 0,(function(){var i,r=this;return Object(o["d"])(this,(function(a){switch(a.label){case 0:return this.layout?(i=Object(s["A"])(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map((function(i){var a=_i(Object(s["q"])(i,"type",""));if(a){var o=[],c=[];return Object(s["j"])(n,(function(t,n){o.push(t),c.push(e[t.get("elementId")])})),a(t,o,c,r.region,i.cfg)}})))]):[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(s["j"])(t,(function(t){var n=Object(s["q"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var a=Object(s["q"])(t,"labelLine",{}),c=t.id,l=a.path;if(!l){var h=mt(i.x,i.y,r,t.angle);l=[["M",h.x,h.y],["L",t.x,t.y]]}var u=e[c];u.destroyed||u.addShape("path",{capture:!1,attrs:Object(o["a"])({path:l,stroke:t.color?t.color:Object(s["q"])(t,["style","fill"],"#000"),fill:null},a.style),id:c,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(s["j"])(t,(function(t){var n=Object(s["q"])(t,"coordinate"),i=Object(s["q"])(t,"background");if(i&&n){var r=t.id,a=e[r];if(!a.destroyed){var c=a.getChildren()[0];if(c){var l=ir(a,t,i.padding),h=l.rotation,u=Object(o["f"])(l,["rotation"]),p=a.addShape("rect",{attrs:Object(o["a"])(Object(o["a"])({},u),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),h){var f=c.getMatrix();p.setMatrix(f)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t,e){Object(s["j"])(t,(function(t){if(t){var n=t.id,i=e[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));Object(s["j"])(r,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}(),cr=sr;function lr(t){var e=0;return Object(s["j"])(t,(function(t){e+=t})),e/t.length}var hr=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(s["j"])(t,(function(t,r){var a=i[r];if(!a||Object(s["H"])(t.x)||Object(s["H"])(t.y))n.push(null);else{var c=Object(s["A"])(a.content)?a.content:[a.content];a.content=c;var l=c.length;Object(s["j"])(c,(function(i,r){if(Object(s["H"])(i)||""===i)n.push(null);else{var c=Object(o["a"])(Object(o["a"])({},a),e.getLabelPoint(a,t,r));c.textAlign||(c.textAlign=e.getLabelAlign(c,r,l)),c.offset<=0&&(c.labelLine=null),n.push(c)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(o["b"])(this,void 0,void 0,(function(){var n,i,r;return Object(o["d"])(this,(function(a){switch(a.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes(),[4,i.render(n,r,e)];case 1:return a.sent(),[2]}}))}))},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(s["q"])(r,"innerLabels",{}):Object(s["q"])(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,a=n.theme;return e="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(s["h"])({},i,a.innerLabels,t):Object(s["h"])({},i,a.labels,t),e},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(),a=r.isTransposed,o=a?"x":"y",s=a?1:-1,c={x:0,y:0};return c[o]=e>0||1===n?i*s:i*s*-1,c},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function a(e,n,i){void 0===i&&(i=!1);var r=e;return Object(s["A"])(r)&&(r=1===t.content.length?i?lr(r):r.length<=2?r[e.length-1]:lr(r):r[n]),r}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(s["A"])(e.shape)?e.shape[0]:e.shape,l="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var h=jt(e.x,e.y);o.x=h[0],o.y=h[1]}else"interval"!==this.geometry.type||l?(o.x=a(e.x,n),o.y=a(e.y,n)):(o.x=a(e.x,n,!0),o.y=a(e.y,n));if(l){var u=Object(s["q"])(e,"nextPoints"),p=Object(s["q"])(e,"points");if(u){var f=i.convert(p[1]),d=i.convert(u[1]);o.x=(f.x+d.x)/2,o.y=(f.y+d.y)/2}else if("pyramid"===c){f=i.convert(p[1]),d=i.convert(p[2]);o.x=(f.x+d.x)/2,o.y=(f.y+d.y)/2}}t.position&&this.setLabelPosition(o,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,r);return o.start={x:o.x,y:o.y},o.x+=g.x,o.y+=g.y,o.color=e.color,o},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var a=t.offset;i=a<0?"right":0===a?"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(),a=t[d],o=e.getElementId(t);return"line"===n||"area"===n?o+=" ".concat(a[i.field]):"path"===n&&(o+=" ".concat(a[i.field],"-").concat(a[r.field])),o},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,a=this.geometry.coordinate,o=this.labelsRenderer;return o||(o=new cr({container:e,layout:Object(s["q"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=i,o.animate=!!r&&ki("label",a),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,c=i,l=c.fields,h=c.callback,u=c.cfg,p=l.map((function(t){return r[t]})),f=[];return Object(s["j"])(t,(function(t,n){var i,r=t[d],c=e.getLabelText(r,p);if(h){var g=l.map((function(t){return r[t]}));if(i=h.apply(void 0,Object(o["g"])([],Object(o["e"])(g),!1)),Object(s["H"])(i))return void f.push(null)}var v=Object(o["a"])(Object(o["a"])({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},u),i);Object(s["G"])(v.position)&&(v.position=v.position(r,t,n));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);v=Object(s["h"])({},m,v),v.offset=e.getLabelOffset(v.offset||0);var b=v.content;Object(s["G"])(b)?v.content=b(r,t,n):Object(s["O"])(b)&&(v.content=c[0]),f.push(v)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(s["j"])(e,(function(e){var i=t[e.field];i=Object(s["A"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(s["H"])(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(s["J"])(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(s["j"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(s["j"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),ur=hr;function pr(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(o["g"])([e],Object(o["e"])(r),!1)).join("")}else i=t.mapping(e).join("");return i||n}var fr={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]]}},dr=["line","cross","tick","plus","hyphen"];function gr(t,e){return Object(s["G"])(e)?e(t):Object(s["h"])({},t,e)}function vr(t,e){var n=t.symbol;if(Object(s["N"])(n)&&-1!==dr.indexOf(n)){var i=Object(s["q"])(t,"style",{}),r=Object(s["q"])(i,"lineWidth",1),a=i.stroke||i.fill||e;t.style=Object(s["h"])({},t.style,{lineWidth:r,stroke:a,fill:null})}}function yr(t){var e=t.symbol;Object(s["N"])(e)&&fr[e]&&(t.symbol=fr[e])}function mr(t){return t.startsWith(r.LEFT)||t.startsWith(r.RIGHT)?"vertical":"horizontal"}function br(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var c=a.field,l=e.getAttribute("color"),h=e.getAttribute("shape"),u=t.getTheme().defaultColor,p=e.coordinate.isPolar;return a.getTicks().map((function(n,f){var d,g=n.text,v=n.value,y=g,m=a.invert(v),b=0===t.filterFieldData(c,[(d={},d[c]=m,d)]).length;Object(s["j"])(t.views,(function(t){var e;t.filterFieldData(c,[(e={},e[c]=m,e)]).length||(b=!0)}));var x=pr(l,m,u),O=pr(h,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:p}),w=r;return Object(s["G"])(w)&&(w=w(y,f,Object(o["a"])({name:y,value:m},Object(s["h"])({},i,j)))),j=Object(s["h"])({},i,j,Mt(Object(o["a"])({},w),["style"])),vr(j,x),w&&w.style&&(j.style=gr(j.style,w.style)),yr(j),{id:m,name:y,value:m,marker:j,unchecked:b}}))}return[]}function xr(t,e,n){return n.map((function(n,i){var r=e;Object(s["G"])(r)&&(r=r(n.name,i,Object(s["h"])({},t,n)));var a=Object(s["G"])(n.marker)?n.marker(n.name,i,Object(s["h"])({},t,n)):n.marker,o=Object(s["h"])({},t,r,a);return yr(o),n.marker=o,n}))}function Or(t,e){var n=Object(s["q"])(t,["components","legend"],{});return Object(s["h"])({},Object(s["q"])(n,["common"],{}),Object(s["h"])({},Object(s["q"])(n,[e],{})))}function jr(t){return!t&&(null===t||void 0===t||isNaN(t))}function wr(t){if(Object(s["A"])(t))return jr(t[1].y);var e=t.y;return Object(s["A"])(e)?jr(e[0]):jr(e)}function Cr(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,a=t.length;r<a;r++){var o=t[r];wr(o)||i.push(o)}return[i]}var s=[],c=[];for(r=0,a=t.length;r<a;r++){o=t[r];wr(o)?c.length&&((1!==c.length||n)&&s.push(c),c=[]):c.push(o)}return c.length&&s.push(c),s}function Sr(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];if(i){var r=0===n?"M":"L";e.push([r,i.x,i.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e}function Mr(t){for(var e=t.length/2,n=[],i=[],r=0;r<t.length;r++)r<e?n.push(t[r]):i.push(t[r]);var a=je(n,!1),o=je(i,!1);i.length&&a.push(["L",i[0].x,i[0].y]),o.shift();var s=a.concat(o);return n.length&&s.push(["L",n[0].x,n[0].y]),s.push(["z"]),s}function Ar(t,e,n,i){void 0===i&&(i="");var r=t.style,a=void 0===r?{}:r,c=t.defaultStyle,l=t.color,h=t.size,u=Object(o["a"])(Object(o["a"])({},c),a);return l&&(e&&(a.stroke||(u.stroke=l)),n&&(a.fill||(u.fill=l))),i&&Object(s["H"])(a[i])&&!Object(s["H"])(h)&&(u[i]=h),u}function kr(t){return Object(s["h"])({},{fill:"#CCD6EC",fillOpacity:.3},Object(s["q"])(t,["background","style"]))}function Tr(t){var e=t.x,n=Object(s["A"])(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:Object(s["A"])(e)?e[n]:e,y:t}}))}var Lr={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 Br(t,e){var n=t.color;return{symbol:Lr[e],style:{lineWidth:2,r:6,stroke:n}}}function Pr(t,e,n){for(var i=t.isStack,r=t.connectNulls,a=t.isInCircle,o=t.showSinglePoint,s=Ar(t,!0,!1,"lineWidth"),c=Cr(t.points,r,o),l=[],h=0,u=c.length;h<u;h++){var p=c[h];l=l.concat(Fr(p,a,i,e,n,s))}return s.path=l,s}function Ir(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}),a=je(t,!1,i)):(a=Oe(t,!1),e&&a.push(["Z"])),a);var a}function Er(t,e,n,i,r,a){var o=[],c=[];Object(s["j"])(t,(function(t){var e=Tr(t);o.push(e[1]),c.push(e[0])}));var l=Ir(o,e,i,r,a),h=Ir(c,e,i,r,a);return n?l:l.concat(h)}function Fr(t,e,n,i,r,a){if(t.length){var o=t[0];return Object(s["A"])(o.y)?Er(t,e,n,i,r,a):Ir(t,e,i,r,a)}return[]}Xi("line",{defaultShapeType:"line"});Object(s["j"])(["line","dot","dash","smooth"],(function(t){zi("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var a=this.coordinate,o=a.start,s=a.end;i=[[o.x,s.y],[s.x,o.y]]}var c=Pr(e,r,i),l=n.addShape({type:"path",attrs:c,name:"line",capture:!r});return l},getMarker:function(e){return Br(e,t)}})}));var Dr={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Rr={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},_r=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Hr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Gr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Yr=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?_r:e,i=t.paletteQualitative20,r=void 0===i?Hr:i,a=t.brandColor,s=void 0===a?n[0]:a,c={backgroundColor:"#141414",brandColor:s,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Gr,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"',axisLineBorderColor:Rr[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Rr[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Dr[85],axisTickLineBorderColor:Rr[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Rr[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Rr[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Rr[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Rr[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:_r[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Rr[65],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],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Rr[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Rr[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Rr[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Rr[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Rr[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Dr[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Dr[25],annotationArcBorderColor:Rr[15],annotationArcBorder:1,annotationLineBorderColor:Rr[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Rr[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Rr[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Rr[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Rr[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Rr[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Dr[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Rr[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Dr[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Rr[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:_r[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Dr[100],pointBorderOpacity:1,pointActiveBorderColor:Rr[100],pointSelectedBorder:2,pointSelectedBorderColor:Rr[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:_r[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Dr[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Rr[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Rr[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:_r[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:_r[0],areaFillOpacity:.25,areaActiveFillColor:_r[0],areaActiveFillOpacity:.5,areaSelectedFillColor:_r[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:_r[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Rr[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Rr[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:_r[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Rr[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Rr[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:_r[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Dr[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Rr[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Rr[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(o["a"])(Object(o["a"])({},c),t)},Nr=Yr(),Xr=n("53c8"),zr=n("bfb1"),Vr=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=r,n.showSinglePoint=o,n}return Object(o["c"])(e,t),e.prototype.updateElements=function(t,e){var n,i,r,a,s,c;void 0===e&&(e=!1);for(var l=new Map,h=new Map,u=[],p=0,f=0;f<t.length;f++){var d=t[f],g=this.getElementId(d);u.push(g),l.set(g,d),h.set(g,p),p++}this.elements=new Array(p);var v=Zi(this.lastElementsMap,u),y=v.added,m=v.updated,b=v.removed;try{for(var x=Object(o["i"])(y),O=x.next();!O.done;O=x.next()){g=O.value,d=l.get(g);var j=this.getShapeFactory(),w=this.getShapeInfo(d),C=(f=h.get(g),new Ii({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:f}));C.geometry=this,C.animate=this.animateOption,C.draw(w,e),this.elementsMap[g]=C,this.elements[f]=C}}catch(L){n={error:L}}finally{try{O&&!O.done&&(i=x.return)&&i.call(x)}finally{if(n)throw n.error}}try{for(var S=Object(o["i"])(m),M=S.next();!M.done;M=S.next()){g=M.value,d=l.get(g),C=this.lastElementsMap[g],f=h.get(g),w=this.getShapeInfo(d);var A=C.getModel();(this.isCoordinateChanged||Wi(A,w))&&(C.animate=this.animateOption,C.update(w)),this.elementsMap[g]=C,this.elements[f]=C}}catch(B){r={error:B}}finally{try{M&&!M.done&&(a=S.return)&&a.call(S)}finally{if(r)throw r.error}}try{for(var k=Object(o["i"])(b),T=k.next();!T.done;T=k.next()){g=T.value,C=this.lastElementsMap[g];C.animate=this.animateOption,C.destroy()}}catch(P){s={error:P}}finally{try{T&&!T.done&&(c=k.return)&&c.call(k)}finally{if(s)throw s.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var a=t[i];e.push({x:a.x,y:a.y}),n.push(a[d])}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}(Ki),qr=Vr;function Wr(t,e,n,i,r){var a=[];if(t.length){for(var o=[],c=[],l=0,h=t.length;l<h;l++){var u=t[l];o.push(u[1]),c.push(u[0])}c=c.reverse(),Object(s["j"])([o,c],(function(t,s){var l=[],h=i.parsePoints(t),u=h[0];1===o.length&&1===c.length?l=0===s?[["M",u.x-.5,u.y],["L",u.x+.5,u.y]]:[["L",u.x+.5,u.y],["L",u.x-.5,u.y]]:(e&&h.push({x:u.x,y:u.y}),l=n?je(h,!1,r):Oe(h,!1),s>0&&(l[0][0]="L")),a=a.concat(l)})),a.push(["Z"])}return a}function Ur(t,e,n,i,r){for(var a=Ar(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,h=Cr(c,o,l),u=[],p=0,f=h.length;p<f;p++){var d=h[p];u=u.concat(Wr(d,s,n,i,r))}return a.path=u,a}function Zr(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Xi("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,i=Object(s["A"])(t.y)?t.y:[n,t.y];return i.map((function(t){return{x:e,y:t}}))}});zi("area","area",{draw:function(t,e){var n=Ur(t,!1,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;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:e,fillOpacity:1}}}});var Qr=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=void 0===i||i,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,c=void 0!==s&&s;return n.startOnZero=r,n.sortable=o,n.showSinglePoint=c,n}return Object(o["c"])(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var a=t[i];e.push(a.points),n.push(a[d])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(qr),Kr=Qr;Xi("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return Tr(t)}});zi("edge","line",{draw:function(t,e){var n=Ar(t,!0,!1,"lineWidth"),i=Oe(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Jr=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(o["c"])(e,t),e}(Ki),$r=Jr,ta=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(o["c"])(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var i=t[n],r=this.prepareRange(i),a=this.prepareSize(),o=Object(s["q"])(this.styleOption,["cfg","shadowBlur"]);Object(s["J"])(o)||(o=a/2),this.prepareGreyScaleBlurredCircle(a,o),this.drawWithRange(i,r,a,o)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!==typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],i=1/0,r=-1/0;return t.forEach((function(t){var e=t[d][n];e>r&&(r=e),e<i&&(i=e)})),i===r&&(i=r-1),[i,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(s["J"])(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,a,s=this.coordinate,c=s.start,l=s.end,h=this.coordinate.getWidth(),u=this.coordinate.getHeight(),p=this.getAttribute("color"),f=p.getFields()[0];this.clearShadowCanvasCtx();var g=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[d][f]<=e[1]&&t[d][f]>=e[0]})));var v=this.scales[f];try{for(var y=Object(o["i"])(t),m=y.next();!m.done;m=y.next()){var b=m.value,x=this.getDrawCfg(b),O=x.x,j=x.y,w=v.scale(b[d][f]);this.drawGrayScaleBlurredCircle(O-c.x,j-l.y,n+i,w,g)}}catch(M){r={error:M}}finally{try{m&&!m.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}var C=g.getImageData(0,0,h,u);this.clearShadowCanvasCtx(),this.colorize(C),g.putImageData(C,0,0);var S=this.getImageShape();S.attr("x",c.x),S.attr("y",l.y),S.attr("width",h),S.attr("height",u),S.attr("img",g.canvas),S.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 a=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(a,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 a=n[r];if(Object(s["J"])(a)){var o=i[a]?i[a]:E["a"].rgb2arr(e.gradient(a/256));n[r-3]=o[0],n[r-2]=o[1],n[r-1]=o[2],n[r]=a}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[d]}));return Object(o["a"])(Object(o["a"])({},e),{mappingData:t,data:n})},e}(Ki),ea=ta;function na(t){var e,n,i,r,a,c,l=t.x,h=t.y,u=t.y0,p=t.size;Object(s["A"])(h)?(e=Object(o["e"])(h,2),i=e[0],r=e[1]):(i=u,r=h),Object(s["A"])(l)?(n=Object(o["e"])(l,2),a=n[0],c=n[1]):(a=l-p/2,c=l+p/2);var f=[{x:a,y:i},{x:a,y:r}];return f.push({x:c,y:r},{x:c,y:i}),f}function ia(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,a=t.length;r<a;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function ra(t,e){var n=0,i=0,r=0,a=0;return Object(s["A"])(t)?1===t.length?n=i=r=a=t[0]:2===t.length?(n=r=t[0],i=a=t[1]):3===t.length?(n=t[0],i=a=t[1],r=t[2]):(n=t[0],i=t[1],r=t[2],a=t[3]):n=i=r=a=t,n+i>e&&(n=n?e/(1+i/n):0,i=e-n),r+a>e&&(r=r?e/(1+a/r):0,a=e-r),[n||0,i||0,r||0,a||0]}function aa(t,e,n){var i=[];if(n.isRect){var r=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},a=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=Object(s["q"])(t,["background","style","radius"]);if(c){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),u=Object(o["e"])(ra(c,Math.min(l,h)),4),p=u[0],f=u[1],d=u[2],g=u[3],v=n.isTransposed&&n.isReflect("y"),y=v?0:1,m=function(t){return v?-t:t};i.push(["M",r.x,a.y+m(p)]),0!==p&&i.push(["A",p,p,0,0,y,r.x+p,a.y]),i.push(["L",a.x-f,a.y]),0!==f&&i.push(["A",f,f,0,0,y,a.x,a.y+m(f)]),i.push(["L",a.x,r.y-m(d)]),0!==d&&i.push(["A",d,d,0,0,y,a.x-d,r.y]),i.push(["L",r.x+g,r.y]),0!==g&&i.push(["A",g,g,0,0,y,r.x,r.y-m(g)])}else i.push(["M",r.x,r.y]),i.push(["L",a.x,r.y]),i.push(["L",a.x,a.y]),i.push(["L",r.x,a.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var b=n.getCenter(),x=Ot(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};p=Math.sqrt(w(b.x-e[0].x)+w(b.y-e[0].y)),f=Math.sqrt(w(b.x-e[2].x)+w(b.y-e[2].y));i=bt(b.x,b.y,p,n.startAngle,n.endAngle,f)}else i=bt(b.x,b.y,n.getRadius(),O,j)}return i}function oa(t,e,n){var i=n.getWidth(),r=n.getHeight(),a="rect"===n.type,o=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*r/i:s*i/r;return"round"===e?(a?(o.push(["M",t[0].x,t[0].y+c]),o.push(["L",t[1].x,t[1].y-c]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),o.push(["L",t[3].x,t[3].y+c]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(o.push(["M",t[0].x,t[0].y]),o.push(["L",t[1].x,t[1].y]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y]),o.push(["L",t[3].x,t[3].y]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y])),o.push(["z"])):o=ia(t),o}function sa(t,e,n){var i=[];return Object(s["H"])(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["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 ca(t,e){return[e,t]}function la(t,e,n){var i,r,a,s,c,l,h,u=Object(o["e"])(Object(o["g"])([],Object(o["e"])(t),!1),4),p=u[0],f=u[1],d=u[2],g=u[3],v=Object(o["e"])("number"===typeof n?Array(4).fill(n):n,4),y=v[0],m=v[1],b=v[2],x=v[3];e.isTransposed&&(i=Object(o["e"])(ca(f,g),2),f=i[0],g=i[1]),e.isReflect("y")&&(r=Object(o["e"])(ca(p,f),2),p=r[0],f=r[1],a=Object(o["e"])(ca(d,g),2),d=a[0],g=a[1]),e.isReflect("x")&&(s=Object(o["e"])(ca(p,g),2),p=s[0],g=s[1],c=Object(o["e"])(ca(f,d),2),f=c[0],d=c[1]);var O=[],j=function(t){return Math.abs(t)};return l=Object(o["e"])(ra([y,m,b,x],Math.min(j(g.x-p.x),j(f.y-p.y))).map((function(t){return j(t)})),4),y=l[0],m=l[1],b=l[2],x=l[3],e.isTransposed&&(h=Object(o["e"])([x,y,m,b],4),y=h[0],m=h[1],b=h[2],x=h[3]),p.y<f.y?(O.push(["M",g.x,g.y+b]),0!==b&&O.push(["A",b,b,0,0,0,g.x-b,g.y]),O.push(["L",p.x+x,p.y]),0!==x&&O.push(["A",x,x,0,0,0,p.x,p.y+x]),O.push(["L",f.x,f.y-y]),0!==y&&O.push(["A",y,y,0,0,0,f.x+y,f.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y-m]),O.push(["L",g.x,g.y+b]),O.push(["z"])):g.x<p.x?(O.push(["M",d.x+m,d.y]),0!==m&&O.push(["A",m,m,0,0,0,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,0,g.x+b,g.y]),O.push(["L",p.x-x,p.y]),0!==x&&O.push(["A",x,x,0,0,0,p.x,p.y-x]),O.push(["L",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,0,f.x-y,f.y]),O.push(["L",d.x+m,d.y]),O.push(["z"])):(O.push(["M",f.x,f.y+y]),0!==y&&O.push(["A",y,y,0,0,1,f.x+y,f.y]),O.push(["L",d.x-m,d.y]),0!==m&&O.push(["A",m,m,0,0,1,d.x,d.y+m]),O.push(["L",g.x,g.y-b]),0!==b&&O.push(["A",b,b,0,0,1,g.x-b,g.y]),O.push(["L",p.x+x,p.y]),0!==x&&O.push(["A",x,x,0,0,1,p.x,p.y-x]),O.push(["L",f.x,f.y+y]),O.push(["z"])),O}Xi("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return na(t)}});zi("interval","rect",{draw:function(t,e){var n,i=Ar(t,!1,!0),r=e,a=null===t||void 0===t?void 0:t.background;if(a){r=e.addGroup({name:"interval-group"});var s=kr(t),c=aa(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},s),{path:c}),capture:!1,zIndex:-1,name:Bi})}n=i.radius&&this.coordinate.isRect?la(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(oa(t.points,i.lineCap,this.coordinate));var l=r.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},i),{path:n}),name:"interval"});return a?r:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function ha(t,e){var n=t.length,i=t;Object(s["N"])(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],a=2;a<n;a++){var o=i[a]-i[a-1];r>o&&(r=o)}return r}function ua(t,e){if(e){var n=Object(s["p"])(t),i=Object(s["qb"])(n,e);return i.length}return t.length}function pa(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,a=t.beforeMappingData,o=r.length,c=Lt(t.coordinate),l=t.intervalPadding,h=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var v=ha(r,i);o=(i.max-i.min)/v,r.length>o&&(o=r.length)}var y=i.range,m=1/o,b=1;if(n.isPolar?b=n.isTransposed&&o>1?d:g:(i.isLinear&&(m*=y[1]-y[0]),b=f),!Object(s["H"])(l)&&l>=0){var x=l/c;m=(1-(o-1)*x)/o}else m*=b;if(t.getAdjust("dodge")){var O=t.getAdjust("dodge"),j=O.dodgeBy,w=ua(a,j);if(!Object(s["H"])(h)&&h>=0){var C=h/c;m=(m-C*(w-1))/w}else!Object(s["H"])(l)&&l>=0?(m*=b,m/=w):m/=w;m=m>=0?m:0}if(!Object(s["H"])(u)&&u>=0){var S=u/c;m>S&&(m=S)}if(!Object(s["H"])(p)&&p>=0){var M=p/c;m<M&&(m=M)}return m}var fa=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=e.background;return n.background=i,n}return Object(o["c"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var a=this.coordinate,o=Lt(a);n/=o}else this.defaultSize||(this.defaultSize=pa(this)),n=this.defaultSize;return 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:zt(e)});else{var n=this.scaleDefs,i=e.field,r=e.min,a=e.max,o=e.type;"time"!==o&&(r>0&&!Object(s["q"])(n,[i,"min"])&&e.change({min:0}),a<=0&&!Object(s["q"])(n,[i,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Ki),da=fa,ga=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0!==i&&i;return n.sortable=r,n}return Object(o["c"])(e,t),e}(qr),va=ga,ya=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],ma=["cross","tick","plus","hyphen","line"];function ba(t,e,n,i,r){var a,s,c=Ar(e,r,!r,"r"),l=t.parsePoints(e.points),h=l[0];if(e.isStack)h=l[1];else if(l.length>1){var u=n.addGroup();try{for(var p=Object(o["i"])(l),f=p.next();!f.done;f=p.next()){var d=f.value;u.addShape({type:"marker",attrs:Object(o["a"])(Object(o["a"])(Object(o["a"])({},c),{symbol:fr[i]||i}),d)})}}catch(g){a={error:g}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return u}return n.addShape({type:"marker",attrs:Object(o["a"])(Object(o["a"])(Object(o["a"])({},c),{symbol:fr[i]||i}),h)})}Xi("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return Tr(t)}});Object(s["j"])(ya,(function(t){zi("point","hollow-".concat(t),{draw:function(e,n){return ba(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:fr[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var xa=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(o["c"])(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(o["a"])(Object(o["a"])({},n),{isStack:!!this.getAdjust("stack")})},e}(Ki),Oa=xa;function ja(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(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(s["F"])(Object(s["Q"])(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}Xi("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(s["j"])(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});zi("polygon","polygon",{draw:function(t,e){if(!Object(s["E"])(t.points)){var n=Ar(t,!0,!0),i=this.parsePath(ja(t.points));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var wa=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(o["c"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,a=i.y;if(!Object(s["A"])(r)||!Object(s["A"])(a)){var o=this.getXScale(),c=this.getYScale(),l=o.values.length,h=c.values.length,u=.5/l,p=.5/h;o.isCategory&&c.isCategory?(r=[r-u,r-u,r+u,r+u],a=[a-p,a+p,a+p,a-p]):Object(s["A"])(r)?(n=r,r=[n[0],n[0],n[1],n[1]],a=[a-p/2,a+p/2,a+p/2,a-p/2]):Object(s["A"])(a)&&(n=a,a=[n[0],n[1],n[1],n[0]],r=[r-u/2,r-u/2,r+u/2,r+u/2]),i.x=r,i.y=a}return i},e}(Ki),Ca=wa,Sa=(Xi("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(o["c"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var a=this.coordinate,o=Lt(a);n/=o}else this.defaultSize||(this.defaultSize=pa(this)),n=this.defaultSize;return i.size=n,i},e}(Ki)),Ma=Sa;function Aa(t){if(!Object(s["A"])(t))return[];var e=Object(s["U"])(t);return Object(s["S"])(t,(function(t){return t/e}))}Xi("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],i=Aa(t._size);return Object(s["j"])(t.y,(function(r,a){var o=i[a]*e,s=0===a,c=a===t.y.length-1;n.push({isMin:s,isMax:c,x:t.x-o,y:r}),n.unshift({isMin:s,isMax:c,x:t.x+o,y:r})})),n}});zi("violin","violin",{draw:function(t,e){var n=Ar(t,!0,!0),i=this.parsePath(Sr(t.points));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i}),name:"violin"})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:e}}}});var ka=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return Object(o["c"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var a=this.coordinate,o=Lt(a);n/=o}else this.defaultSize||(this.defaultSize=pa(this)),n=this.defaultSize;return i.size=n,i._size=Object(s["q"])(e[d],[this._sizeField]),i},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(Ki),Ta=ka;function La(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 Ba(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(s["j"])(n,(function(t){i.push(t.x,t.y)})),i}function Pa(t,e,n){var i=Ba(e,n),r=[["M",t.x,t.y]];return r.push(i),r}function Ia(t,e){var n=Ba(t[1],e),i=Ba(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}function Ea(t,e){var n=La(t,e),i=[["M",t.x,t.y]];return i.push(n),i}zi("area","line",{draw:function(t,e){var n=Ur(t,!0,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;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:e,fill:null}}}}),zi("area","smooth",{draw:function(t,e){var n=this.coordinate,i=Ur(t,!1,!0,this,Zr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;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:e,fillOpacity:1}}}}),zi("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=Ur(t,!0,!0,this,Zr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;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:e,fill:null}}}}),zi("edge","arc",{draw:function(t,e){var n,i=Ar(t,!0,!1,"lineWidth"),r=t.points,a=r.length>2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=Pa(r[0],r[1],s):(i.fill=i.stroke,n=Ia(r,s)),n=this.parsePath(n),e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=xt((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(o["a"])(Object(o["a"])({},i),{path:n})});var c=La(r[1],r[3]),l=La(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],c,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),zi("edge","smooth",{draw:function(t,e){var n=Ar(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Ea(i[0],i[1]));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Fa=1/3;function Da(t,e){var n=[];n.push({x:t.x,y:t.y*(1-Fa)+e.y*Fa}),n.push({x:e.x,y:t.y*(1-Fa)+e.y*Fa}),n.push(e);var i=[["M",t.x,t.y]];return Object(s["j"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function Ra(t){var e=t.x,n=t.y,i=t.y0;return Object(s["A"])(n)?n.map((function(t,n){return{x:Object(s["A"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function _a(t){var e,n,i,r=t.x,a=t.y,c=t.y0,l=t.size;Object(s["A"])(a)?(e=Object(o["e"])(a,2),n=e[0],i=e[1]):(n=c,i=a);var h=r+l/2,u=r-l/2;return[{x:r,y:n},{x:r,y:i},{x:u,y:n},{x:h,y:n},{x:u,y:i},{x:h,y:i}]}function Ha(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}zi("edge","vhv",{draw:function(t,e){var n=Ar(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Da(i[0],i[1]));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),zi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,na(t)},draw:function(t,e){var n=Ar(t,!1,!0),i=this.parsePath(sa(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),zi("interval","hollow-rect",{draw:function(t,e){var n=Ar(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=kr(t),s=aa(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},a),{path:s}),capture:!1,zIndex:-1,name:Bi})}var c=this.parsePath(ia(t.points)),l=i.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:c}),name:"interval"});return r?i:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),zi("interval","line",{getPoints:function(t){return Ra(t)},draw:function(t,e){var n=Ar(t,!0,!1,"lineWidth"),i=Mt(Object(o["a"])({},n),["fill"]),r=this.parsePath(ia(t.points,!1)),a=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},i),{path:r}),name:"interval"});return a},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),zi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,na(t)},draw:function(t,e){var n=Ar(t,!1,!0),i=this.parsePath(sa(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),zi("interval","tick",{getPoints:function(t){return _a(t)},draw:function(t,e){var n=Ar(t,!0,!1),i=this.parsePath(Ha(t.points)),r=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;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:e}}}});var Ga=function(t,e,n){var i,r=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":i=[{x:o,y:a}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(o+r)/2;i=[{x:c,y:a},{x:c,y:s}];break;case"vhv":var l=(a+s)/2;i=[{x:r,y:l},{x:o,y:l}];break;default:break}return i};function Ya(t,e){var n=[];return Object(s["j"])(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=Ga(i,a,e);n=n.concat(o)}})),n}function Na(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function Xa(t,e){var n=Cr(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(s["j"])(n,(function(t){var n=Ya(t,e);i=i.concat(Na(n))})),Object(o["a"])(Object(o["a"])({},Ar(t,!0,!1,"lineWidth")),{path:i})}function za(t){var e=Object(s["A"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,a=e.length>3?e[3]:i,o=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:a,median:o}}function Va(t,e,n){var i,r=n/2;if(Object(s["A"])(e)){var a=za(e),o=a.min,c=a.max,l=a.median,h=a.min1,u=a.max1,p=t-r,f=t+r;i=[[p,c],[f,c],[t,c],[t,u],[p,h],[p,u],[f,u],[f,h],[t,h],[t,o],[p,o],[f,o],[p,l],[f,l]]}else{e=Object(s["H"])(e)?.5:e;var d=za(t),g=(o=d.min,c=d.max,l=d.median,h=d.min1,u=d.max1,e-r),v=e+r;i=[[o,g],[o,v],[o,e],[h,e],[h,g],[h,v],[u,v],[u,g],[u,e],[c,e],[c,g],[c,v],[l,g],[l,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function qa(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function Wa(t){var e=Object(s["A"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return St(n,4,n[n.length-1])}function Ua(t,e,n){var i=Wa(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 Za(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function Qa(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);e&&(r=Object(s["c"])(e,0,Math.min(n,i))),r/=2;var a=(t[0].x+t[2].x)/2,o=(t[0].y+t[2].y)/2;return{x:a-r,y:o-r,width:2*r,height:2*r}}Object(s["j"])(["hv","vh","hvh","vhv"],(function(t){zi("line",t,{draw:function(e,n){var i=Xa(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Br(e,t)}})})),Object(s["j"])(ma,(function(t){zi("point",t,{draw:function(e,n){return ba(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:fr[t],style:{r:4.5,stroke:n,fill:null}}}})})),zi("point","image",{draw:function(t,e){var n,i,r=Ar(t,!1,!1,"r").r,a=this.parsePoints(t.points),s=a[0];if(t.isStack)s=a[1];else if(a.length>1){var c=e.addGroup();try{for(var l=Object(o["i"])(a),h=l.next();!h.done;h=l.next()){var u=h.value;c.addShape("image",{attrs:{x:u.x-r/2,y:u.y-r,width:r,height:r,img:t.shape[1]}})}}catch(p){n={error:p}}finally{try{h&&!h.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:s.x-r/2,y:s.y-r,width:r,height:r,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(s["j"])(ya,(function(t){zi("point",t,{draw:function(e,n){return ba(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:fr[t]||t,style:{r:4.5,fill:n}}}})})),zi("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Va(e,n,i)},draw:function(t,e){var n=Ar(t,!0,!1),i=this.parsePath(qa(t.points)),r=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e-6,e-3,e,e+3,e+6],r=Va(t,i,n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),zi("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Ua(e,n,i)},draw:function(t,e){var n=Ar(t,!0,!0),i=this.parsePath(Za(t.points)),r=e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e+7.5,e+3,e-3,e-7.5],r=Ua(t,i,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),zi("polygon","square",{draw:function(t,e){if(!Object(s["E"])(t.points)){var n=Ar(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(o["a"])(Object(o["a"])({},n),Qa(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),zi("violin","smooth",{draw:function(t,e){var n=Ar(t,!0,!0),i=this.parsePath(Mr(t.points));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),zi("violin","hollow",{draw:function(t,e){var n=Ar(t,!0,!1),i=this.parsePath(Sr(t.points));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),zi("violin","hollow-smooth",{draw:function(t,e){var n=Ar(t,!0,!1),i=this.parsePath(Mr(t.points));return e.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var Ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,r){var a,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),c=this.getCoordinate(),l=c.isTransposed,h=l?"x":"y",u=this.getLabelValueDir(e.mappingData);return s=Object(o["a"])(Object(o["a"])({},s),(a={},a[h]=s[h]*u,a)),c.isReflect("x")&&(s=Object(o["a"])(Object(o["a"])({},s),{x:-1*s.x})),c.isReflect("y")&&(s=Object(o["a"])(Object(o["a"])({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(s["h"])({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,a,o,c,l=this.getCoordinate(),h=l.isTransposed,u=e.points,p=l.convert(u[0]),f=l.convert(u[2]),d=this.getLabelValueDir(e),g=Object(s["A"])(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(s["q"])(e,"nextPoints"),y=Object(s["q"])(e,"points");if(v){var m=l.convert(y[0]),b=l.convert(y[1]),x=l.convert(v[0]),O=l.convert(v[1]);h?(r=Math.min(x.y,m.y),o=Math.max(x.y,m.y),a=(b.x+O.x)/2,c=(m.x+x.x)/2):(r=Math.min((b.y+O.y)/2,(m.y+x.y)/2),o=Math.max((b.y+O.y)/2,(m.y+x.y)/2),a=O.x,c=m.x)}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,c=p.x}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,c=p.x;switch(i){case"right":t.x=a,t.y=(r+o)/2,t.textAlign=Object(s["q"])(t,"textAlign",d>0?"left":"right");break;case"left":t.x=c,t.y=(r+o)/2,t.textAlign=Object(s["q"])(t,"textAlign",d>0?"left":"right");break;case"bottom":h&&(t.x=(a+c)/2),t.y=o,t.textAlign=Object(s["q"])(t,"textAlign","center"),t.textBaseline=Object(s["q"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":h&&(t.x=(a+c)/2),t.y=(r+o)/2,t.textAlign=Object(s["q"])(t,"textAlign","center"),t.textBaseline=Object(s["q"])(t,"textBaseline","middle");break;case"top":h&&(t.x=(a+c)/2),t.y=r,t.textAlign=Object(s["q"])(t,"textAlign","center"),t.textBaseline=Object(s["q"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(ur),Ja=Ka,$a=Math.PI/2,to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(s["J"])(t))n=t;else if(Object(s["N"])(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(s["S"])(n,(function(t){if(t&&i){var e=i.scale(Object(s["q"])(t.data,i.field));return Object(o["a"])(Object(o["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,a=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 o=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,o,i,c);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,c):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(s["A"])(t.x)||Object(s["A"])(t.y)?{x:Object(s["A"])(t.x)?t.x[e]:t.x,y:Object(s["A"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Et(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),s=Pt(r,n);if(0===s)return Object(o["a"])(Object(o["a"])({},a),{r:s});var c=t;if(r.isTransposed&&s>e&&!i){var l=Math.asin(e/(2*s));c=t+2*l}else s+=e;return{x:a.x+s*Math.cos(c),y:a.y+s*Math.sin(c),r:s}},e.prototype.getLabelRotate=function(t,e,n){var i=t+$a;return n&&(i-=$a),i&&(i>$a?i-=Math.PI:i<-$a&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(s["j"])(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(ur),eo=to,no=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(o["c"])(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(s["h"])({},i,Object(s["q"])(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,i>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),i=n.getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.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(s["A"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(s["A"])(t.x)?t.x[1]:t.x,y:t.y[1]},a=Et(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=Et(n,r);a>=o&&(o+=2*Math.PI),e=a+(o-a)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return Object(o["a"])(Object(o["a"])({},mt(i.x,i.y,r,t)),{angle:t,r:r})},e}(eo),io=no,ro=4;function ao(t,e,n,i,r,a){var c,l,h,u=!0,p=i.start,f=i.end,d=Math.min(p.y,f.y),g=Math.abs(p.y-f.y),v=0,y=Number.MIN_VALUE,m=e.map((function(t){return t.y>v&&(v=t.y),t.y<y&&(y=t.y),{size:n,targets:[t.y-d]}}));y-=d,v-d>g&&(g=v-d);while(u){m.forEach((function(t){var e=(Math.min.apply(y,t.targets)+Math.max.apply(y,t.targets))/2;t.pos=Math.min(Math.max(y,e-t.size/2),g-t.size)})),u=!1,h=m.length;while(h--)if(h>0){var b=m[h-1],x=m[h];b.pos+b.size>x.pos&&(b.size+=x.size,b.targets=b.targets.concat(x.targets),b.pos+b.size>g&&(b.pos=g-b.size),m.splice(h,1),u=!0)}}h=0,m.forEach((function(t){var i=d+n/2;t.targets.forEach((function(){e[h].y=t.pos+i,i+=n,h++}))}));var O={};try{for(var j=Object(o["i"])(t),w=j.next();!w.done;w=j.next()){var C=w.value;O[C.get("id")]=C}}catch(S){c={error:S}}finally{try{w&&!w.done&&(l=j.return)&&l.call(j)}finally{if(c)throw c.error}}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=a?r.x+i:r.x-i}var o=O[t.id];o.attr("x",t.x),o.attr("y",t.y);var c=Object(s["m"])(o.getChildren(),(function(t){return"text"===t.get("type")}));c&&(c.attr("y",t.y),c.attr("x",t.x))}))}function oo(t,e,n,i){if(t.length&&e.length){var r=t[0]?t[0].offset:0,a=e[0].get("coordinate"),o=a.getRadius(),c=a.getCenter();if(r>0){var l=14,h=o+r,u=2*h+2*l,p={start:a.start,end:a.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=u/l;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})),ao(e,t,l,p,c,n)}))}Object(s["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=mt(c.x,c.y,o,n),r=mt(c.x,c.y,o+e/2,n),a=t.x+Object(s["q"])(t,"offsetX",0),l=t.y+Object(s["q"])(t,"offsetY",0),h={x:a-Math.cos(n)*ro,y:l-Math.sin(n)*ro};Object(s["L"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(h.x),h.y].join(",")}}))}}function so(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,a=!0,o=n.minY,s=n.maxY,c=Math.abs(o-s),l=0,h=Number.MIN_VALUE,u=i.map((function(t){return t.y>l&&(l=t.y),t.y<h&&(h=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));h-=o,l-o>c&&(c=l-o);while(a){u.forEach((function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),a=!1,r=u.length;while(r--)if(r>0){var p=u[r-1],f=u[r];p.pos+p.size>f.pos&&(p.size+=f.size,p.targets=p.targets.concat(f.targets),p.pos+p.size>c&&(p.pos=c-p.size),u.splice(r,1),a=!0)}}r=0,u.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var co=4;function lo(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,a=t.offset,o=mt(n.x,n.y,i,r),c=t.x+Object(s["q"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+Object(s["q"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),h={x:c-Math.cos(r)*co,y:l-Math.sin(r)*co},u=t.labelLine.smooth,p=[],f=h.x-n.x,d=h.y-n.y,g=Math.atan(d/f);if(f<0&&(g+=Math.PI),!1===u){Object(s["L"])(t.labelLine)||(t.labelLine={});var v=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&h.y>o.y&&(v=1),r>=0&&r<Math.PI/2&&h.y>o.y&&(v=1),r>=Math.PI/2&&r<Math.PI&&o.y>h.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&o.y>h.y&&(v=1);var y=a/2>4?4:Math.max(a/2-1,0),m=mt(n.x,n.y,i+y,r),b=mt(n.x,n.y,i+a/2,g),x=0;p.push("M ".concat(o.x," ").concat(o.y)),p.push("L ".concat(m.x," ").concat(m.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(v," ").concat(b.x," ").concat(b.y)),p.push("L ".concat(h.x," ").concat(h.y))}else{m=mt(n.x,n.y,i+(a/2>4?4:Math.max(a/2-1,0)),r);var O=o.x<n.x?1:-1;p.push("M ".concat(h.x," ").concat(h.y));var j=(o.y-n.y)/(o.x-n.x),w=(h.y-n.y)/(h.x-n.x);Math.abs(j-w)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",h.x+4*O,h.y,2*m.x-o.x,2*m.y-o.y,o.x,o.y]),p.push("L ".concat(o.x," ").concat(o.y))}t.labelLine.path=p.join(" ")}}function ho(t,e,n,i){var r,a,c=Object(s["l"])(t,(function(t){return!Object(s["H"])(t)})),l=e[0]&&e[0].get("coordinate");if(l){var h=l.getCenter(),u=l.getRadius(),p={};try{for(var f=Object(o["i"])(e),d=f.next();!d.done;d=f.next()){var g=d.value;p[g.get("id")]=g}}catch(M){r={error:M}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}var v=Object(s["q"])(c[0],"labelHeight",14),y=Object(s["q"])(c[0],"offset",0);if(!(y<=0)){var m="left",b="right",x=Object(s["u"])(c,(function(t){return t.x<h.x?m:b})),O=l.start,j=l.end,w=Math.min(2*(u+y+v),l.getHeight()),C=w/2,S={minX:O.x,maxX:j.x,minY:h.y-C,maxY:h.y+C};Object(s["j"])(x,(function(t,e){var n=Math.floor(w/v);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["j"])(t,(function(t,e){e+1>n&&(p[t.id].set("visible",!1),t.invisible=!0)}))),so(t,v,S)})),Object(s["j"])(x,(function(t,e){Object(s["j"])(t,(function(t){var n=e===b,i=p[t.id],r=i.getChildByIndex(0);if(r){var a=u+y,o=t.y-h.y,s=Math.pow(a,2),c=Math.pow(o,2),f=s-c>0?s-c:0,d=Math.sqrt(f),g=Math.abs(Math.cos(t.angle)*a);t.x=n?h.x+Math.max(d,g):h.x-Math.max(d,g)}r&&(r.attr("y",t.y),r.attr("x",t.x)),lo(t,l)}))}))}}}var uo=4,po=4,fo=4;function go(t,e,n){var i=e.getCenter(),r=e.getRadius(),a={x:t.x-(n?fo:-fo),y:t.y},o=mt(i.x,i.y,r+uo,t.angle),c={x:a.x,y:a.y},l={x:o.x,y:o.y},h=mt(i.x,i.y,r,t.angle),u="";if(a.y!==o.y){var p=n?4:-4;c.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(o.x,a.x-p),a.y<o.y?l.y=c.y:(l.y=o.y,l.x=Math.max(l.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(o.x,a.x-p),a.y>o.y?l.y=c.y:(l.y=o.y,l.x=Math.max(l.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(o.x,a.x-p),a.y>o.y?l.y=c.y:(l.y=o.y,l.x=Math.min(l.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(o.x,a.x-p),a.y<o.y?l.y=c.y:(l.y=o.y,l.x=Math.min(l.x,c.x-p)))}u=["M ".concat(a.x,",").concat(a.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(o.x,",").concat(o.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=Object(s["h"])({},t.labelLine,{path:u})}function vo(t,e,n,i){var r,a,c=e[0]&&e[0].get("coordinate");if(c){var l=c.getCenter(),h=c.getRadius(),u={};try{for(var p=Object(o["i"])(e),f=p.next();!f.done;f=p.next()){var d=f.value;u[d.get("id")]=d}}catch(M){r={error:M}}finally{try{f&&!f.done&&(a=p.return)&&a.call(p)}finally{if(r)throw r.error}}var g=Object(s["q"])(t[0],"labelHeight",14),v=Math.max(Object(s["q"])(t[0],"offset",0),uo);Object(s["j"])(t,(function(t){if(t){var e=Object(s["q"])(u,[t.id]);if(e){var n=t.x>l.x||t.x===l.x&&t.y>l.y,i=Object(s["H"])(t.offsetX)?po:t.offsetX,r=mt(l.x,l.y,h+uo,t.angle),a=v+i;t.x=l.x+(n?1:-1)*(h+a),t.y=r.y}}}));var y=c.start,m=c.end,b="left",x="right",O=Object(s["u"])(t,(function(t){return t.x<l.x?b:x})),j=2*(h+v)+g;Object(s["j"])(O,(function(t){var e=t.length*g;e>j&&(j=Math.min(e,Math.abs(y.y-m.y)))}));var w={minX:y.x,maxX:m.x,minY:l.y-j/2,maxY:l.y+j/2};Object(s["j"])(O,(function(t,e){var n=j/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["j"])(t,(function(t,e){e>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),so(t,g,w)}));var C=w.minY,S=w.maxY;Object(s["j"])(O,(function(t,e){var n=e===x;Object(s["j"])(t,(function(t){var e=Object(s["q"])(u,t&&[t.id]);if(e)if(t.y<C||t.y>S)e.set("visible",!1);else{var i=e.getChildByIndex(0),r=i.getCanvasBBox(),a={x:n?r.x:r.maxX,y:r.y+r.height/2};$i(i,t.x-a.x,t.y-a.y),t.labelLine&&go(t,c,n)}}))}))}}function yo(t,e,n,i){Object(s["j"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,a=i.maxY,o=t.getCanvasBBox(),s=o.minX,c=o.minY,l=o.maxX,h=o.maxY,u=o.x,p=o.y,f=o.width,d=o.height,g=u,v=p;(s<e||l<e)&&(g=e),(c<n||h<n)&&(v=n),s>r?g=r-f:l>r&&(g-=l-r),c>a?v=a-d:h>a&&(v-=h-a),g===u&&v===p||$i(t,g-u,v-p)}))}function mo(t,e,n,i){Object(s["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)}))}var bo=100,xo=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=a;c<=o;c++)if(n[s][c]){e=!1;break}}else if(n[s][a]||n[s][o]){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),a=Math.round(t.maxY),o=n;o<=i;o+=1)e[o]||(e[o]={});for(o=n;o<=i;o+=this.xGap){for(var s=r;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=r;o<=a;o+=1)e[n][o]=!0,e[i][o]=!0;if(1!==this.xGap)for(o=n;o<=i;o+=1)e[o][r]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Oo(t,e,n){void 0===n&&(n=bo);var i,r=-1,a=t.attr(),o=a.x,s=a.y,c=t.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),h=-r,u=0,p=0,f=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(c))return e.fillGap(c),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(u),Math.abs(p))<l&&g<n)if(i=f(h+=r),u=~~i[0],p=~~i[1],(u||p)&&!v["".concat(u,"-").concat(p)]&&(t.attr({x:o+u,y:s+p}),u+p<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v["".concat(u,"-").concat(p)]=!0;break}return d}function jo(t,e,n,i){var r=t.getCanvasBBox(),a=r.width,o=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function wo(t,e,n,i){var r=new xo;Object(s["j"])(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));Oo(e,r)||t.remove(!0)})),r.destroy()}function Co(t,e,n,i){var r=new xo;Object(s["j"])(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,a=n.y,o=!1,s=0;s<=8;s++){var c=jo(e,i,a,s);if(r.hasGap(c)){r.fillGap(c),o=!0;break}}o||t.remove(!0)})),r.destroy()}function So(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function Mo(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function Ao(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 ko(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?[Ao(e[0],n,e[0]),Ao(e[1],n,e[0]),Ao(e[2],n,e[0]),Ao(e[3],n,e[0])]:e}function To(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(So([t.x,t.y],e))})),{min:Math.min.apply(Math,Object(o["g"])([],Object(o["e"])(n),!1)),max:Math.max.apply(Math,Object(o["g"])([],Object(o["e"])(n),!1))}}function Lo(t,e){return t.max>e.min&&t.min<e.max}function Bo(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function Po(t){return["x","y","width","height"].every((function(e){return Bo(t[e])}))}function Io(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)}function Eo(t,e,n){if(void 0===n&&(n=0),!Po(t)||!Po(e))return!1;if(!t.rotation&&!e.rotation)return Io(t,e,n);for(var i=ko(t),r=ko(e),a=Mo(i).concat(Mo(r)),o=0;o<a.length;o++){var s=a[o],c=To(i,s),l=To(r,s);if(!Lo(c,l))return!1}return!0}var Fo=function(){function t(t){var e=this;this.queue=[],this.worker=new Worker(t),this.worker.onmessage=function(t){var n;null===(n=e.queue.shift())||void 0===n||n.resolve(t)},this.worker.onmessageerror=function(t){var n;console.warn("[AntV G2] Web worker is not available"),null===(n=e.queue.shift())||void 0===n||n.reject(t)}}return t.prototype.post=function(t,e){var n=this;return new Promise((function(i,r){n.queue.push({resolve:i,reject:r});try{n.worker.postMessage(t)}catch(a){console.warn("[AntV G2] Web worker is not available"),Object(s["G"])(e)&&e()}}))},t.prototype.destroy=function(){this.worker.terminate()},t}();function Do(t){if("undefined"!==typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){e=new window.BlobBuilder,e.append(t.toString()),e=e.getBlob()}return new Fo(URL.createObjectURL(e))}}var Ro=function(t){function e(){function t(t,e){return(t[0]||0)*(e[0]||0)+(t[1]||0)*(e[1]||0)+(t[2]||0)*(e[2]||0)}function e(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function n(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 i(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}],i=t.rotation;return i?[n(e[0],i,e[0]),n(e[1],i,e[0]),n(e[2],i,e[0]),n(e[3],i,e[0])]:e}function r(e,n){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach((function(e){i.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,i),max:Math.max.apply(null,i)}}function a(t,e){return t.max>e.min&&t.min<e.max}function o(t){return"number"===typeof t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function s(t){return["x","y","width","height"].every((function(e){return o(t[e])}))}function c(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)}function l(t,n,o){if(void 0===o&&(o=0),!s(t)||!s(n))return!1;if(!t.rotation&&!n.rotation)return c(t,n,o);for(var l=i(t),h=i(n),u=e(l).concat(e(h)),p=0;p<u.length;p++){var f=u[p],d=r(l,f),g=r(h,f);if(!a(d,g))return!1}return!0}return{intersect:l}}var n=e().intersect;function i(t){for(var e=t.slice(),i=0;i<e.length;i++){var r=e[i];if(r.visible)for(var a=i+1;a<e.length;a++){var o=e[a];r!==o&&o.visible&&n(r,o)&&(o.visible=!1)}}return e}var r={"hide-overlap":i};try{var a=JSON.parse(t.data);if(!a||!a.type||!r[a.type])return;var o=a.type,s=a.items,c=r[o](s);self.postMessage(c)}catch(t){throw t}},_o="\n   self.onmessage = ".concat(Ro.toString(),"\n"),Ho=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var i=e[n];if(i.visible)for(var r=n+1;r<e.length;r++){var a=e[r];i!==a&&a.visible&&Eo(i,a)&&(a.visible=!1)}}return e},Go=new Map,Yo=Do(_o);function No(t,e,n,i){return Object(o["b"])(this,void 0,void 0,(function(){var n,i,r,a,c,l;return Object(o["d"])(this,(function(h){switch(h.label){case 0:return n=e.map((function(e,n){return Object(o["a"])(Object(o["a"])({},ir(e,t[n],Object(s["q"])(t[n],"background.padding"))),{visible:!0})})),i=JSON.stringify(n),r=function(t){return Go.set(i,t),Object(s["j"])(t,(function(t,n){var i=t.visible,r=e[n];i?null===r||void 0===r||r.show():null===r||void 0===r||r.hide()})),t},Go.get(i)?(r(Go.get(i)),[3,7]):[3,1];case 1:if(!Yo)return[3,6];h.label=2;case 2:return h.trys.push([2,4,,5]),a=JSON.stringify({type:"hide-overlap",items:n}),[4,Yo.post(a,(function(){return r(Ho(n))}))];case 3:return c=h.sent(),r(Array.isArray(c.data)?c.data:[]),[3,5];case 4:return l=h.sent(),console.error(l),r(Ho(n)),[3,5];case 5:return[3,7];case 6:r(Ho(n)),h.label=7;case 7:return[2]}}))}))}var Xo,zo={"#5B8FF9":!0},Vo=function(t){var e=E["a"].toRGB(t).toUpperCase();if(zo[e])return zo[e];var n=Object(o["e"])(E["a"].rgb2arr(e),3),i=n[0],r=n[1],a=n[2],s=(299*i+587*r+114*a)/1e3<128;return s};function qo(t,e,n){if(0!==n.length){var i=n[0].get("element"),r=i.geometry.theme,a=r.labels||{},o=a.fillColorLight,s=a.fillColorDark;n.forEach((function(t,n){var i=e[n],a=i.find((function(t){return"text"===t.get("type")})),c=kt.fromObject(t.getBBox()),l=kt.fromObject(a.getCanvasBBox()),h=!c.contains(l),u=t.attr("fill"),p=Vo(u);h?a.attr(r.overflowLabels.style):p?o&&a.attr("fill",o):s&&a.attr("fill",s)}))}}function Wo(t,e,n){var i=t.coordinate,r=nr(e),a=kt.fromObject(r.getCanvasBBox()),o=kt.fromObject(n.getBBox());return i.isTransposed?o.height>=a.height:o.width>=a.width}function Uo(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return Wo(t,e,r)}))}function Zo(t,e,n){var i=t.coordinate,r=kt.fromObject(n.getBBox()),a=nr(e);i.isTransposed?a.attr({x:r.minX+r.width/2,textAlign:"center"}):a.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function Qo(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var o=Uo(a,e,n);o&&n.forEach((function(t,n){var i=e[n];Zo(a,i,t)}))}}}function Ko(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(s["j"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function Jo(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var c,l=Ko(e),h=Object(o["e"])(a.getXYFields(),1),u=h[0],p=[],f=[],d=Object(s["u"])(l,(function(t){return t.get("data")[u]})),g=Object(s["mb"])(Object(s["S"])(l,(function(t){return t.get("data")[u]})));l.forEach((function(t){t.set("visible",!0)}));var v=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,Object(o["g"])([],Object(o["e"])(t),!1)))};Object(s["fb"])(g)>0&&(c=g.shift(),v(d[c])),Object(s["fb"])(g)>0&&(c=g.pop(),v(d[c])),Object(s["j"])(g.reverse(),(function(t){v(d[t])}));while(f.length>0){var y=f.shift();y.get("visible")&&(ar(y,p)?y.set("visible",!1):p.push(y))}}}}function $o(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,Object(o["g"])([],Object(o["e"])(r),!1)),i}function ts(t,e,n){return t.some((function(t){return n(t,e)}))}function es(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function ns(t,e){return ts(t,e,(function(t,e){var n=nr(t),i=nr(e);return es(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function is(t,e,n,i,r){var a,c;if(0!==n.length){var l=null===(a=n[0])||void 0===a?void 0:a.get("element"),h=null===l||void 0===l?void 0:l.geometry;if(h&&"point"===h.type){var u=Object(o["e"])(h.getXYFields(),2),p=u[0],f=u[1],d=Object(s["u"])(e,(function(t){return t.get("data")[p]})),g=[],v=r&&r.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;Object(s["S"])(Object(s["P"])(d).reverse(),(function(t){var e=$o(h,d[t]);while(e.length){var n=e.shift(),i=nr(n);if(ts(g,n,(function(t,e){return t.get("data")[p]===e.get("data")[p]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=ns(g,n),a=!1;r&&(i.attr("y",i.attr("y")+2*v),a=ns(g,n)),a?i.set("visible",!1):g.push(n)}}}))}}}function rs(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,Object(o["g"])([],Object(o["e"])(r),!1)),i}function as(t,e,n){return t.some((function(t){return n(t,e)}))}function os(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function ss(t,e){return as(t,e,(function(t,e){var n=nr(t),i=nr(e);return os(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function cs(t,e,n,i,r){var a,c;if(0!==n.length){var l=null===(a=n[0])||void 0===a?void 0:a.get("element"),h=null===l||void 0===l?void 0:l.geometry;if(h&&!(["path","line","area"].indexOf(h.type)<0)){var u=Object(o["e"])(h.getXYFields(),2),p=u[0],f=u[1],d=Object(s["u"])(e,(function(t){return t.get("data")[p]})),g=[],v=r&&r.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;Object(s["S"])(Object(s["P"])(d).reverse(),(function(t){var e=rs(h,d[t]);while(e.length){var n=e.shift(),i=nr(n);if(as(g,n,(function(t,e){return t.get("data")[p]===e.get("data")[p]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=ss(g,n),a=!1;r&&(i.attr("y",i.attr("y")+2*v),a=ss(g,n)),a?i.set("visible",!1):g.push(n)}}}))}}}function ls(){return Xo||(Xo=document.createElement("canvas").getContext("2d")),Xo}var hs=Object(s["V"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant,c=ls();return c.font=[a,o,r,"".concat(n,"px"),i].join(" "),c.measureText(Object(s["N"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(o["g"])([t],Object(o["e"])(Object(s["pb"])(e)),!1).join("")})),us=function(t,e,n){var i,r=16,a=hs("...",n);i=Object(s["N"])(t)?t:Object(s["lb"])(t);var o,c,l=e,h=[];if(hs(t,n)<=e)return t;while(1){if(o=i.substr(0,r),c=hs(o,n),c+a>l&&c>l)break;if(h.push(o),l-=c,i=i.substr(r),!i)return h.join("")}while(1){if(o=i.substr(0,1),c=hs(o,n),c+a>l)break;if(h.push(o),l-=c,i=i.substr(1),!i)return h.join("")}return"".concat(h.join(""),"...")};function ps(t,e,n,i,r){if(!(e.length<=0)){var a=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],o=(null===r||void 0===r?void 0:r.action)||"translate",c=(null===r||void 0===r?void 0:r.margin)||0,l=e[0].get("coordinate");if(l){var h=Dt(l,c),u=h.minX,p=h.minY,f=h.maxX,d=h.maxY;Object(s["j"])(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,c=e.maxY,l=e.x,h=e.y,g=e.width,v=e.height,y=l,m=h;if(a.indexOf("left")>=0&&(n<u||r<u)&&(y=u),a.indexOf("top")>=0&&(i<p||c<p)&&(m=p),a.indexOf("right")>=0&&(n>f?y=f-g:r>f&&(y-=r-f)),a.indexOf("bottom")>=0&&(i>d?m=d-v:c>d&&(m-=c-d)),y!==l||m!==h){var b=y-l;if("translate"===o)$i(t,b,m-h);else if("ellipsis"===o){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(s["ab"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=us(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}function fs(t,e,n){var i={fillOpacity:Object(s["H"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(s["H"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(s["H"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function ds(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,a=e.duration,o=e.delay;t.animate(i,a,r,(function(){t.remove(!0)}),o)}function gs(t,e,n){var i,r=Object(o["e"])(e,2),a=r[0],s=r[1];return t.applyToMatrix([a,s,1]),"x"===n?(t.setMatrix(Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]])),i=Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])):"y"===n?(t.setMatrix(Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]])),i=Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])):"xy"===n&&(t.setMatrix(Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,.01],["t",a,s]])),i=Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",100,100],["t",a,s]])),i}function vs(t,e,n,i,r){var a,o,s=n.start,c=n.end,l=n.getWidth(),h=n.getHeight();"y"===r?(a=s.x+l/2,o=i.y<s.y?i.y:s.y):"x"===r?(a=i.x>s.x?i.x:s.x,o=s.y+h/2):"xy"===r&&(n.isPolar?(a=n.getCenter().x,o=n.getCenter().y):(a=(s.x+c.x)/2,o=(s.y+c.y)/2));var u=gs(t,[a,o],r);t.animate({matrix:u},e)}function ys(t,e,n){var i=n.coordinate,r=n.minYPoint;vs(t,e,i,r,"x")}function ms(t,e,n){var i=n.coordinate,r=n.minYPoint;vs(t,e,i,r,"y")}function bs(t,e,n){var i=n.coordinate,r=n.minYPoint;vs(t,e,i,r,"xy")}function xs(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function Os(t,e,n){var i=n.toAttrs,r=i.x,a=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:a},e)}function js(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=r.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var c=Z["a"].transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(c),t.animate({matrix:Z["a"].transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function ws(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=r.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,s,1]);var c=Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(c),t.animate({matrix:Z["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function Cs(t,e){var n,i=Object(Xr["getArcParams"])(t,e),r=i.startAngle,a=i.endAngle;return!Object(s["K"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(s["K"])(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(n=Object(o["e"])([a,r],2),r=n[0],a=n[1]),Object(s["K"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(s["K"])(a,-.5*Math.PI)&&!Object(s["K"])(r,a)&&(a=1.5*Math.PI),{startAngle:r,endAngle:a}}function Ss(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function Ms(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=r[0],c=r.length>1?r[1]:r[0],l=t.indexOf(a),h=t.indexOf(c),u=Ss(t[l-1]),p=Ss(t[h-1]),f=Cs(u,a),d=f.startAngle,g=f.endAngle,v=Cs(p,c),y=v.startAngle,m=v.endAngle;Object(s["K"])(d,y)&&Object(s["K"])(g,m)?(n=d,i=g):(n=Math.min(d,y),i=Math.max(g,m));var b=a[1],x=r[r.length-1][1];return b<x?(e=Object(o["e"])([x,b],2),b=e[0],x=e[1]):b===x&&(x=0),{startAngle:n,endAngle:i,radius:b,innerRadius:x}}function As(t,e,n){var i=n.toAttrs,r=n.coordinate,a=i.path||[],c=a.map((function(t){return t[0]}));if(!(a.length<1)){var l=Ms(a),h=l.startAngle,u=l.endAngle,p=l.radius,f=l.innerRadius,d=Ms(t.attr("path")),g=d.startAngle,v=d.endAngle,y=r.getCenter(),m=h-g,b=u-v;0!==m||0!==b?t.animate((function(t){var e=g+t*m,n=v+t*b;return Object(o["a"])(Object(o["a"])({},i),{path:Object(s["F"])(c,["M","A","A","Z"])?xt(y.x,y.y,p,e,n):bt(y.x,y.y,p,e,n,f)})}),Object(o["a"])(Object(o["a"])({},e),{callback:function(){t.attr("path",a),Object(s["G"])(e.callback)&&e.callback()}})):t.attr("path",a)}}function ks(t,e,n){var i=Ft(n.coordinate,20),r=i.type,a=i.startState,c=i.endState,l=t.setClip({type:r,attrs:a});n.toAttrs&&t.attr(n.toAttrs),l.animate(c,Object(o["a"])(Object(o["a"])({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),l.remove(!0),Object(s["G"])(e.callback)&&e.callback()}}))}function Ts(t,e,n){if(t.isGroup())Object(s["j"])(t.getChildren(),(function(t){Ts(t,e,n)}));else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,a,1]),"zoomIn"===n){var c=Z["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]]);t.setMatrix(c),t.animate({matrix:Z["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,100],["t",r,a]])},e)}else t.animate({matrix:Z["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]])},Object(o["a"])(Object(o["a"])({},e),{callback:function(){t.remove(!0),Object(s["G"])(e.callback)&&e.callback()}}))}}function Ls(t,e,n){Ts(t,e,"zoomIn")}function Bs(t,e,n){Ts(t,e,"zoomOut")}function Ps(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 Is(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getDefaultCfg=function(){return Object(s["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=.5,i={x:.5,y:.5},r=2*Math.PI/t,a=-1*Math.PI/2+r*e,o=n/(1+1/Math.sin(r/2)),s=Is(i,n-o,a),c=5*Math.PI/4,l=1*Math.PI/4;return{start:Is(s,o,c),end:Is(s,o,l)}},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.fields,r=n.type,a=Object(o["e"])(i,1),c=a[0];if(!c)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,c),h=l.length,u=[];return l.forEach((function(n,i){var a=[{field:c,value:n,values:l}],o=Object(s["l"])(t,e.getFacetDataFilter(a)),p={type:r,data:o,region:e.getRegion(h,i),columnValue:n,columnField:c,columnIndex:i,columnValuesLength:h,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(p)})),u},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(s["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(s["q"])(t.cfg.title,"formatter"),o=Object(s["h"])({position:["50%","0%"],content:a?a(n):n},Ps(r.TOP),t.cfg.title);i.annotation().text(o)}))},e}(ne),Fs=Es,Ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getDefaultCfg=function(){return Object(s["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.fields,i=this.cfg.cols,r=Object(o["e"])(n,1),a=r[0];if(!a)throw new Error("No `fields` specified!");var c=this.getFieldValues(t,a),l=c.length;i=i||l;var h=this.getPageCount(l,i),u=[];return c.forEach((function(n,r){var o=e.getRowCol(r,i),p=o.row,f=o.col,d=[{field:a,value:n,values:c}],g=Object(s["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(h,i,f,p),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:f,rowIndex:p,columnValuesLength:i,rowValuesLength:h,total:l};u.push(v)})),u},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(o["a"])(Object(o["a"])({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(s["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(s["q"])(t.cfg.title,"formatter"),o=Object(s["h"])({position:["50%","0%"],content:a?a(n):n},Ps(r.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),i=t%e;return{row:n,col:i}},e}(ne),Rs=Ds,_s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getDefaultCfg=function(){return Object(s["h"])({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(o["a"])({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(o["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,a=r,o=[],s=0;s<a;s++)for(var c=n[s],l=0;l<r;l++){var h=n[l],u={type:i,data:t,region:this.getRegion(r,a,s,l),columnValue:c,rowValue:h,columnField:c,rowField:h,columnIndex:s,rowIndex:l,columnValuesLength:a,rowValuesLength:r};o.push(u)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(o["a"])(Object(o["a"])({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(s["j"])(this.facets,(function(e,n){var i=e.columnIndex,a=e.rowIndex,o=e.columnValuesLength,c=(e.rowValuesLength,e.columnValue),l=e.rowValue,h=e.view;if(0===a){var u=Object(s["q"])(t.cfg.columnTitle,"formatter"),p=Object(s["h"])({position:["50%","0%"],content:u?u(c):c},Ps(r.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(i===o-1){u=Object(s["q"])(t.cfg.rowTitle,"formatter"),p=Object(s["h"])({position:["100%","50%"],content:u?u(l):l},Ps(r.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e}(ne),Hs=_s,Gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getDefaultCfg=function(){return Object(s["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=Object(o["e"])(this.cfg.fields,1),a=r[0],c=[],l=1,h=1,u=[""],p=[""];return this.cfg.transpose?(e=a,u=this.getFieldValues(t,e).slice(0,2),l=u.length):(n=a,p=this.getFieldValues(t,n).slice(0,2),h=p.length),u.forEach((function(r,a){p.forEach((function(o,f){var d=[{field:e,value:r,values:u},{field:n,value:o,values:p}],g=Object(s["l"])(t,i.getFacetDataFilter(d)),v={type:i.cfg.type,data:g,region:i.getRegion(h,l,a,f),columnValue:r,rowValue:o,columnField:e,rowField:n,columnIndex:a,rowIndex:f,columnValuesLength:l,rowValuesLength:h};c.push(v)}))})),c},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?Object(o["a"])(Object(o["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(s["j"])(this.facets,(function(e,n){var i=e.columnValue,a=e.rowValue,o=e.view,c=Object(s["q"])(t.cfg.title,"formatter");if(t.cfg.transpose){var l=Object(s["h"])({position:["50%","0%"],content:c?c(i):i},Ps(r.TOP),t.cfg.title);o.annotation().text(l)}else{l=Object(s["h"])({position:["100%","50%"],content:c?c(a):a},Ps(r.RIGHT),t.cfg.title);o.annotation().text(l)}}))},e}(ne),Ys=Gs,Ns=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(s["h"])({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(o["a"])({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(o["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=Object(o["e"])(this.cfg.fields,2),i=n[0],r=n[1],a=[],c=1,l=1,h=[""],u=[""];return i&&(h=this.getFieldValues(t,i),c=h.length),r&&(u=this.getFieldValues(t,r),l=u.length),h.forEach((function(n,o){u.forEach((function(p,f){var d=[{field:i,value:n,values:h},{field:r,value:p,values:u}],g=Object(s["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(l,c,o,f),columnValue:n,rowValue:p,columnField:i,rowField:r,columnIndex:o,rowIndex:f,columnValuesLength:c,rowValuesLength:l};a.push(v)}))})),a},e.prototype.renderTitle=function(){var t=this;Object(s["j"])(this.facets,(function(e,n){var i=e.columnIndex,a=e.rowIndex,o=e.columnValuesLength,c=e.columnValue,l=e.rowValue,h=e.view;if(0===a){var u=Object(s["q"])(t.cfg.columnTitle,"formatter"),p=Object(s["h"])({position:["50%","0%"],content:u?u(c):c},Ps(r.TOP),t.cfg.columnTitle);h.annotation().text(p)}if(i===o-1){u=Object(s["q"])(t.cfg.rowTitle,"formatter"),p=Object(s["h"])({position:["100%","50%"],content:u?u(l):l},Ps(r.RIGHT),t.cfg.rowTitle);h.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?Object(o["a"])(Object(o["a"])({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?Object(o["a"])(Object(o["a"])({},n),{title:null}):n},e}(ne),Xs=Ns,zs=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(o["c"])(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(c.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(s["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){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(i),i.children=this.getChildFacets(t,1,n),this.setRegion(n),n},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,a=1/t,o={x:r*n,y:a*i},s={x:o.x+r,y:o.y+2*a/3};return{start:o,end:s}},e.prototype.forceColIndex=function(t){var e,n,i=this,r=[],a=0;t.forEach((function(t){i.isLeaf(t)&&(r.push(t),t.columnIndex=a,a++)})),r.forEach((function(t){t.columnValuesLength=r.length}));for(var s=this.cfg.fields.length,c=s-1;c>=0;c--){var l=this.getFacetsByLevel(t,c);try{for(var h=(e=void 0,Object(o["i"])(l)),u=h.next();!u.done;u=h.next()){var p=u.value;this.isLeaf(p)||(p.originColIndex=p.columnIndex,p.columnIndex=this.getRegionIndex(p.children),p.columnValuesLength=r.length)}}catch(f){e={error:f}}finally{try{u&&!u.done&&(n=h.return)&&n.call(h)}finally{if(e)throw e.error}}}},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],n=t[t.length-1];return(n.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,a=r.length;if(!(a<e)){var o=[],s=r[e-1],c=this.getFieldValues(t,s);return c.forEach((function(r,a){var l=[{field:s,value:r,values:c}],h=t.filter(i.getFacetDataFilter(l));if(h.length){var u={type:i.cfg.type,data:h,region:null,columnValue:r,rowValue:"",columnField:s,rowField:"",columnIndex:a,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(h,e+1,n)};o.push(u),n.push(u)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(s["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(s["q"])(t.cfg.title,"formatter"),o=Object(s["h"])({position:["50%","0%"],content:a?a(n):n},Ps(r.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view,r=i.coordinateBBox,a={x:r.x+r.width/2,y:r.y+r.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},r={x:a.x,y:a.y+(i.y-a.y)/2},o={x:i.x,y:r.y};n.drawLine([a,r,o,i])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(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){0===n?e.push(["M",t.x,t.y]):e.push(["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(s["b"])({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?Object(o["a"])(Object(o["a"])({},n),{title:null,label:null}):n},e}(ne),Vs=zs;function qs(t){var e=Object(o["g"])([],Object(o["e"])(t),!1);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}function Ws(t){var e=Object(s["bb"])(t,(function(t,e){return t+(isNaN(e)||!Object(s["J"])(e)?0:e)}),0);return 0===t.length?0:e/t.length}function Us(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?qs(e.values.map((function(t,e){return e}))):qs(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:Ws(e.values);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;break}return e.scale(n)}var Zs=["regionFilter","shape"],Qs=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(o["c"])(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(s["j"])(t.option,(function(n){if(Object(s["y"])(Zs,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(s["j"])(this.option,(function(n){if(!Object(s["y"])(Zs,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){var e=!1;this.view.getOptions().animate&&this.view.geometries.forEach((function(n){n.animateOption&&(n.once(l.AFTER_DRAW_ANIMATE,(function(){t()})),e=!0)})),e||this.view.getRootView().once(c.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=st["Annotation"][Object(s["ob"])(e)];if(n){var o=this.getAnnotationTheme(e),c=this.getAnnotationCfg(e,t,o);if(!c)return null;var l=new n(c);return{component:l,layer:this.isTop(c)?i.FORE:i.BG,direction:r.NONE,type:a.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(o["a"])({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(o["a"])({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(o["a"])({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(o["a"])({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(o["a"])({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(o["a"])({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(o["a"])({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(o["a"])({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(o["a"])({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(o["a"])({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,i=this.view.getXScale(),r=this.view.getScalesByDim("y"),a=Object(s["G"])(t)?t.call(null,i,r):t,c=0,l=0;if(Object(s["A"])(a)){var h=Object(o["e"])(a,2),u=h[0],p=h[1];if(Object(s["N"])(u)&&-1!==u.indexOf("%")&&!isNaN(u.slice(0,-1)))return this.parsePercentPosition(a);c=Us(u,i),l=Us(p,Object.values(r)[0])}else if(!Object(s["H"])(a))try{for(var f=Object(o["i"])(Object(s["P"])(a)),d=f.next();!d.done;d=f.next()){var g=d.value,v=a[g];g===i.field&&(c=Us(v,i)),r[g]&&(l=Us(v,r[g]))}}catch(y){e={error:y}}finally{try{d&&!d.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return isNaN(c)||isNaN(l)?null:this.view.getCoordinate().convert({x:c,y:l})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),a=this.view.getScalesByDim("y"),o=Object.values(a)[0],c=r.field,l=this.view.getData(),h=Object(s["A"])(t)?t[0]:t[c],u=Object(s["A"])(e)?e[0]:e[c],p=[];return Object(s["j"])(l,(function(t,e){if(t[c]===h&&(n=e),e>=n){var r=i.parsePosition([t[c],t[o.field]]);r&&p.push(r)}if(t[c]===u)return!1})),p},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,a=i.end,o={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)},s=i.getWidth()*e+o.x,c=i.getHeight()*n+o.y;return{x:s,y:c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+i,maxY:a.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),a=this.view.getCanvas(),c={};if(Object(s["H"])(e))return null;var l=e.start,h=e.end,u=e.position,p=this.parsePosition(l),f=this.parsePosition(h),d=this.parsePosition(u);if(!(!["arc","image","line","region","regionFilter"].includes(t)||p&&f))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if("arc"===t){var g=e,v=(g.start,g.end,Object(o["f"])(g,["start","end"])),y=Et(r,p),m=Et(r,f);y>m&&(m=2*Math.PI+m),c=Object(o["a"])(Object(o["a"])({},v),{center:r.getCenter(),radius:Pt(r,p),startAngle:y,endAngle:m})}else if("image"===t){var b=e;b.start,b.end,v=Object(o["f"])(b,["start","end"]);c=Object(o["a"])(Object(o["a"])({},v),{start:p,end:f,src:e.src})}else if("line"===t){var x=e;x.start,x.end,v=Object(o["f"])(x,["start","end"]);c=Object(o["a"])(Object(o["a"])({},v),{start:p,end:f,text:Object(s["q"])(e,"text",null)})}else if("region"===t){var O=e;O.start,O.end,v=Object(o["f"])(O,["start","end"]);c=Object(o["a"])(Object(o["a"])({},v),{start:p,end:f})}else if("text"===t){var j=this.view.getData(),w=e,C=(w.position,w.content),S=(v=Object(o["f"])(w,["position","content"]),C);Object(s["G"])(C)&&(S=C(j)),c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},d),v),{content:S})}else if("dataMarker"===t){var M=e,A=(M.position,M.point),k=M.line,T=M.text,L=M.autoAdjust,B=M.direction;v=Object(o["f"])(M,["position","point","line","text","autoAdjust","direction"]);c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},v),d),{coordinateBBox:this.getCoordinateBBox(),point:A,line:k,text:T,autoAdjust:L,direction:B})}else if("dataRegion"===t){var P=e,I=P.start,E=P.end,F=P.region,D=(T=P.text,P.lineLength);v=Object(o["f"])(P,["start","end","region","text","lineLength"]);c=Object(o["a"])(Object(o["a"])({},v),{points:this.getRegionPoints(I,E),region:F,text:T,lineLength:D})}else if("regionFilter"===t){var R=e,_=(R.start,R.end,R.apply),H=R.color,G=(v=Object(o["f"])(R,["start","end","apply","color"]),this.view.geometries),Y=[],N=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return N(t)})):Y.push(t))};Object(s["j"])(G,(function(t){_?Object(s["f"])(_,t.type)&&Object(s["j"])(t.elements,(function(t){N(t.shape)})):Object(s["j"])(t.elements,(function(t){N(t.shape)}))})),c=Object(o["a"])(Object(o["a"])({},v),{color:H,shapes:Y,start:p,end:f})}else if("shape"===t){var X=e,z=X.render,V=Object(o["f"])(X,["render"]),q=function(t){if(Object(s["G"])(e.render))return z(t,i.view,{parsePosition:i.parsePosition.bind(i)})};c=Object(o["a"])(Object(o["a"])({},V),{render:q})}else if("html"===t){var W=e,U=W.html,Z=(W.position,V=Object(o["f"])(W,["html","position"]),function(t){return Object(s["G"])(U)?U(t,i.view):U});c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},V),d),{parent:a.get("el").parentNode,html:Z})}var Q=Object(s["h"])({},n,Object(o["a"])(Object(o["a"])({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Q.container=this.getComponentContainer(Q)),Q.animate=this.view.getOptions().animate&&Q.animate&&Object(s["q"])(e,"animate",Q.animate),Q.animateOption=Object(s["h"])({},Ci,Q.animateOption,e.animateOption),Q},e.prototype.isTop=function(t){return Object(s["q"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(s["q"])(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);r&&Mt(r,["container"]),e.component.update(Object(o["a"])(Object(o["a"])({},r||{}),{visible:!!r})),Object(s["y"])(Zs,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(s["y"])(Zs,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(s["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}(yi),Ks=Qs;function Js(t,e){var n=Object(s["h"])({},Object(s["q"])(t,["components","axis","common"]),Object(s["q"])(t,["components","axis",e]));return Object(s["q"])(n,["grid"],{})}function $s(t,e,n,i){var r=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.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(o){var c=e.value,l=(c+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),r}function tc(t,e,n,i,r){var a=e.values.length,o=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,l=n.value,h=(c+l)/2;return"x"===r?o.push({points:[t.convert({x:i?l:h,y:0}),t.convert({x:i?l:h,y:1})]}):o.push({points:Object(s["S"])(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:h})}))}),n}),c[0]),o}function ec(t,e){var n=Object(s["q"])(e,"grid");if(null===n)return!1;var i=Object(s["q"])(t,"grid");return!(void 0===n&&null===i)}var nc=["container"],ic=Object(o["a"])(Object(o["a"])({},Ci),{appear:null}),rc=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.gridForeContainer=n.view.getLayer(i.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.FORE).addGroup(),n}return Object(o["c"])(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(s["j"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,s=n.type,c=n.extra,l=c.dim,h=c.scale,u=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===l?i=e.isTransposed?Wt(e,o):Jt(e):"y"===l&&(i=e.isTransposed?Jt(e):Wt(e,o)):i=Wt(e,o);else if(s===a.GRID)if(e.isPolar){var p=void 0;p=e.isTransposed?"x"===l?tc(e,t.view.getYScales()[0],h,u,l):$s(e,h,l,u):"x"===l?$s(e,h,l,u):tc(e,t.view.getXScale(),h,u,l),i={items:p,center:t.view.getCoordinate().getCenter()}}else i={items:$s(e,h,l,u)};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.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.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=$t(this.option,e.field);if(!1!==n){var a=te(n,r.BOTTOM),o=i.BG,c="x",l=this.view.getCoordinate(),h=this.getId("axis",e.field),u=this.getId("grid",e.field);if(l.isRect){var p=this.cache.get(h);if(p){var f=this.getLineAxisCfg(e,n,a);Mt(f,nc),p.component.update(f),t.set(h,p)}else p=this.createLineAxis(e,n,o,a,c),this.cache.set(h,p),t.set(h,p);var d=this.cache.get(u);if(d){f=this.getLineGridCfg(e,n,a,c);Mt(f,nc),d.component.update(f),t.set(u,d)}else d=this.createLineGrid(e,n,o,a,c),d&&(this.cache.set(u,d),t.set(u,d))}else if(l.isPolar){p=this.cache.get(h);if(p){f=l.isTransposed?this.getLineAxisCfg(e,n,r.RADIUS):this.getCircleAxisCfg(e,n,a);Mt(f,nc),p.component.update(f),t.set(h,p)}else{if(l.isTransposed){if(Object(s["O"])(n))return;p=this.createLineAxis(e,n,o,r.RADIUS,c)}else p=this.createCircleAxis(e,n,o,a,c);this.cache.set(h,p),t.set(h,p)}d=this.cache.get(u);if(d){f=l.isTransposed?this.getCircleGridCfg(e,n,r.RADIUS,c):this.getLineGridCfg(e,n,r.CIRCLE,c);Mt(f,nc),d.component.update(f),t.set(u,d)}else{if(l.isTransposed){if(Object(s["O"])(n))return;d=this.createCircleGrid(e,n,o,r.RADIUS,c)}else d=this.createLineGrid(e,n,o,r.CIRCLE,c);d&&(this.cache.set(u,d),t.set(u,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(s["j"])(n,(function(n,a){if(n&&!n.isIdentity){var o=n.field,c=$t(e.option,o);if(!1!==c){var l=i.BG,h="y",u=e.getId("axis",o),p=e.getId("grid",o),f=e.view.getCoordinate();if(f.isRect){var d=te(c,0===a?r.LEFT:r.RIGHT),g=e.cache.get(u);if(g){var v=e.getLineAxisCfg(n,c,d);Mt(v,nc),g.component.update(v),t.set(u,g)}else g=e.createLineAxis(n,c,l,d,h),e.cache.set(u,g),t.set(u,g);var y=e.cache.get(p);if(y){v=e.getLineGridCfg(n,c,d,h);Mt(v,nc),y.component.update(v),t.set(p,y)}else y=e.createLineGrid(n,c,l,d,h),y&&(e.cache.set(p,y),t.set(p,y))}else if(f.isPolar){g=e.cache.get(u);if(g){v=f.isTransposed?e.getCircleAxisCfg(n,c,r.CIRCLE):e.getLineAxisCfg(n,c,r.RADIUS);Mt(v,nc),g.component.update(v),t.set(u,g)}else{if(f.isTransposed){if(Object(s["O"])(c))return;g=e.createCircleAxis(n,c,l,r.CIRCLE,h)}else g=e.createLineAxis(n,c,l,r.RADIUS,h);e.cache.set(u,g),t.set(u,g)}y=e.cache.get(p);if(y){v=f.isTransposed?e.getLineGridCfg(n,c,r.CIRCLE,h):e.getCircleGridCfg(n,c,r.RADIUS,h);Mt(v,nc),y.component.update(v),t.set(p,y)}else{if(f.isTransposed){if(Object(s["O"])(c))return;y=e.createLineGrid(n,c,l,r.CIRCLE,h)}else y=e.createCircleGrid(n,c,l,r.RADIUS,h);y&&(e.cache.set(p,y),t.set(p,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,o){var s={component:new ct(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===r.RADIUS?r.NONE:i,type:a.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,i,o){var c=this.getLineGridCfg(t,e,i,o);if(c){var l={component:new ht(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["q"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new lt(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:a.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,i,o){var c=this.getCircleGridCfg(t,e,i,o);if(c){var l={component:new ut(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["q"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(s["q"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=Wt(r,n),c=ee(t,e),l=Qt(this.view.getTheme(),n),h=Object(s["q"])(e,["title"])?Object(s["h"])({title:{style:{text:c}}},{title:Kt(this.view.getTheme(),n,e.title)},e):e,u=Object(s["h"])(Object(o["a"])(Object(o["a"])({container:i},a),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Zt(a,r.getCenter()):Zt(a,r.getCenter()),theme:l}),l,h),p=this.getAnimateCfg(u),f=p.animate,d=p.animateOption;u.animateOption=d,u.animate=f;var g=Ut(a),v=Object(s["q"])(u,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");u.verticalLimitLength=v*(g?y:m)}return u},e.prototype.getLineGridCfg=function(t,e,n,i){if(ec(Qt(this.view.getTheme(),n),e)){var r=Js(this.view.getTheme(),n),a=Object(s["h"])({container:Object(s["q"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(s["q"])(e,"grid"),this.getAnimateCfg(e));return a.items=$s(this.view.getCoordinate(),t,i,Object(s["q"])(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(s["q"])(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),c=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(a.endAngle-a.startAngle)!==2*Math.PI||c.length&&(c[c.length-1].name="");var l=ee(t,e),h=Qt(this.view.getTheme(),r.CIRCLE),u=Object(s["q"])(e,["title"])?Object(s["h"])({title:{style:{text:l}}},{title:Kt(this.view.getTheme(),n,e.title)},e):e,p=Object(s["h"])(Object(o["a"])(Object(o["a"])({container:i},Jt(this.view.getCoordinate())),{ticks:c,verticalFactor:1,theme:h}),h,u),f=this.getAnimateCfg(p),d=f.animate,g=f.animateOption;return p.animate=d,p.animateOption=g,p},e.prototype.getCircleGridCfg=function(t,e,n,i){if(ec(Qt(this.view.getTheme(),n),e)){var a=Js(this.view.getTheme(),r.RADIUS),o=Object(s["h"])({container:Object(s["q"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(s["q"])(e,"grid"),this.getAnimateCfg(e)),c=Object(s["q"])(o,"alignTick",!0),l="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=tc(this.view.getCoordinate(),l,t,c,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(s["q"])(t,"animate"),animateOption:t&&t.animateOption?Object(s["h"])({},ic,t.animateOption):ic}},e}(yi),ac=rc;function oc(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 sc(t,e){return Object(s["B"])(t)?!1!==t&&{}:Object(s["q"])(t,[e],t)}function cc(t){return Object(s["q"])(t,"position",r.BOTTOM)}var lc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(o["c"])(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(s["j"])(this.components,(function(e){var n=e.component,i=e.direction,r=mr(i),a=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(r,a,s),l=n.get("maxWidth"),h=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,l||0),maxHeight:Math.min(c.maxHeight,h||0)});var u=n.get("padding"),p=n.getLayoutBBox(),f=new kt(p.x,p.y,p.width,p.height).expand(u),d=Object(o["e"])(oc(t.view.viewBBox,f,i),2),g=d[0],v=d[1],y=Object(o["e"])(oc(t.layoutBBox,f,i),2),m=y[0],b=y[1],x=0,O=0;i.startsWith("top")||i.startsWith("bottom")?(x=g,O=b):(x=m,O=v),n.setLocation({x:x+u[3],y:O+u[0]}),t.layoutBBox=t.layoutBBox.cut(f,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,i,r){var a=t.getId(r.field),o=t.getComponentById(a);if(o){var c=void 0,l=sc(t.option,r.field);!1!==l&&(Object(s["q"])(l,"custom")?c=t.getCategoryCfg(n,i,r,l,!0):r.isLinear?c=t.getContinuousCfg(n,i,r,l):r.isCategory&&(c=t.getCategoryCfg(n,i,r,l))),c&&(Mt(c,["container"]),o.direction=cc(l),o.component.update(c),e[a]=!0)}else{var h=t.createFieldLegend(n,i,r);h&&(h.component.init(),t.components.push(h),e[a]=!0)}};if(Object(s["q"])(this.option,"custom")){var r="global-custom",o=this.getComponentById(r);if(o){var c=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Mt(c,["container"]),o.component.update(c),e[r]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var h=i.FORE,u=cc(this.option);this.components.push({id:r,component:l,layer:h,direction:u,type:a.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends(n);var p=[];Object(s["j"])(this.getComponents(),(function(t){e[t.id]?p.push(t):t.component.destroy()})),this.components=p},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(s["j"])(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};Object(s["j"])(n,(function(e){var n=e.getGroupAttributes();Object(s["j"])(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=sc(this.option,n.field),c=i.FORE,l=cc(o);if(!1!==o&&(Object(s["q"])(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:c,direction:l,type:a.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new pt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,Mt(i,["value"]));return new ft(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new pt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),a=Object(s["m"])(r,(function(t){return 0===t.value})),o=Object(s["m"])(r,(function(t){return 1===t.value})),c=r.map((function(t){var i=t.value,r=t.tickValue,a=e.mapping(n.invert(i)).join("");return{value:r,attrValue:a,color:a,scaleValue:i}}));a||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),o||c.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),c.sort((function(t,e){return t.value-e.value}));var l={min:Object(s["x"])(c).value,max:Object(s["Q"])(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=c.map((function(t){return t.attrValue})));var h=this.container,u=cc(i),p=mr(u),f=Object(s["q"])(i,"title");return f&&(f=Object(s["h"])({text:Nt(n)},f)),l.container=h,l.layout=p,l.title=f,l.animateOption=Ci,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,a){var o=this.container,c=Object(s["q"])(i,"position",r.BOTTOM),l=Or(this.view.getTheme(),c),h=Object(s["q"])(l,["marker"]),u=Object(s["q"])(i,"marker"),p=mr(c),f=Object(s["q"])(l,["pageNavigator"]),d=Object(s["q"])(i,"pageNavigator"),g=a?xr(h,u,i.items):br(this.view,t,e,h,u),v=Object(s["q"])(i,"title");v&&(v=Object(s["h"])({text:n?Nt(n):""},v));var y=Object(s["q"])(i,"maxWidthRatio"),m=Object(s["q"])(i,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(p,y,m);b.container=o,b.layout=p,b.items=g,b.title=v,b.animateOption=Ci,b.pageNavigator=Object(s["h"])({},f,d);var x=this.mergeLegendCfg(b,i,c);x.reversed&&x.items.reverse();var O=Object(s["q"])(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=Or(this.view.getTheme(),i);return Object(s["h"])({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(s["m"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=y),void 0===n&&(n=y);var i=this.view.viewBBox,r=i.width,a=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:a}:{maxWidth:r,maxHeight:a*n}},e}(yi),hc=lc,uc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["Z"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(o["e"])(t,2),i=e[0],r=e[1];n.start=i,n.end=r,n.changeViewData(i,r)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(s["ib"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o["c"])(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(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.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(s["H"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(s["E"])(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=Object(o["e"])(n,4),a=i[0],s=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),l=new kt(c.x,c.y,Math.min(c.width,e),c.height).expand(n),h=this.getMinMaxText(this.start,this.end),u=h.minText,p=h.maxText,f=Object(o["e"])(oc(this.view.viewBBox,l,r.BOTTOM),2),d=(f[0],f[1]),g=Object(o["e"])(oc(this.view.coordinateBBox,l,r.BOTTOM),2),v=g[0];g[1];this.slider.component.update(Object(o["a"])(Object(o["a"])({},this.getSliderCfg()),{x:v+s,y:d+a,width:this.width,start:this.start,end:this.end,minText:u,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(l,r.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new st["Slider"](Object(o["a"])({container:this.container},t));return e.init(),{component:e,layer:i.FORE,direction:r.BOTTOM,type:a.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(o["a"])(Object(o["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(s["L"])(this.option)){var e=Object(o["a"])({data:this.getData()},Object(s["q"])(this.option,"trendCfg",{}));t=Object(s["h"])({},t,this.getThemeOptions(),this.option),t=Object(o["a"])(Object(o["a"])({},t),{trendCfg:e})}return t.start=Object(s["c"])(Math.min(Object(s["H"])(t.start)?0:t.start,Object(s["H"])(t.end)?1:t.end),0,1),t.end=Object(s["c"])(Math.max(Object(s["H"])(t.start)?0:t.start,Object(s["H"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(o["e"])(this.view.getYScales(),1),n=e[0],i=this.view.getGroupScales();if(i.length){var r=i[0],a=r.field,s=r.ticks;return t.reduce((function(t,e){return e[a]===s[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s["q"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,a=Object(s["qb"])(n,i.field);i.isLinear&&(a=a.sort());var o=r?a:a.reverse(),c=Object(s["fb"])(n);if(!i||!c)return{};var l=Object(s["fb"])(o),h=Math.round(t*(l-1)),u=Math.round(e*(l-1)),p=Object(s["q"])(o,[h]),f=Object(s["q"])(o,[u]),d=this.getSliderCfg().formatter;return d&&(p=d(p,n[h],h),f=d(f,n[u],u)),{minText:p,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(s["fb"])(n);if(i&&r){var a=!0,o=Object(s["qb"])(n,i.field),c=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=a?c:c.reverse(),h=Object(s["fb"])(l),u=Math.round(t*(h-1)),p=Math.round(e*(h-1));this.view.filter(i.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||Ct(n,u,p)})),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}(yi),pc=uc,fc=0,dc=8,gc=32,vc=20,yc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["Z"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(s["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(s["ib"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o["c"])(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(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.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(),a=new kt(i.x,i.y,Math.min(i.width,e),i.height).expand(n),s=this.getScrollbarComponentCfg(),c=void 0,l=void 0;if(s.isHorizontal){var h=Object(o["e"])(oc(this.view.viewBBox,a,r.BOTTOM),2),u=(h[0],h[1]),p=Object(o["e"])(oc(this.view.coordinateBBox,a,r.BOTTOM),2),f=p[0];p[1];c=f,l=u}else{var d=Object(o["e"])(oc(this.view.viewBBox,a,r.RIGHT),2),g=(d[0],u=d[1],Object(o["e"])(oc(this.view.viewBBox,a,r.RIGHT),2));f=g[0],g[1];c=f,l=u}c+=n[3],l+=n[0],this.trackLen?this.scrollbar.component.update(Object(o["a"])(Object(o["a"])({},s),{x:c,y:l,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(o["a"])(Object(o["a"])({},s),{x:c,y:l})),this.view.viewBBox=this.view.viewBBox.cut(a,s.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.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s["q"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(s["q"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=Object(o["f"])(n,["thumbHighlightColor"]);return{default:Object(s["h"])({},Object(s["q"])(e,["default","style"],{}),r),hover:Object(s["h"])({},Object(s["q"])(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.trackLen,r=n.thumbLen;this.trackLen=i,this.thumbLen=r,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(s["c"])(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,i=Object(o["e"])(t,2),r=i[0],a=i[1],c=this.getValidScrollbarCfg().type,l="vertical"!==c,h=Object(s["qb"])(this.data,this.xScaleCfg.field),u=this.view.getXScale().isLinear?h.sort((function(t,e){return Number(t)-Number(e)})):h,p=l?u:u.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=p.indexOf(t);return!(e>-1)||Ct(e,r,a)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new st["Scrollbar"](Object(o["a"])(Object(o["a"])({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:i.FORE,direction:e?r.BOTTOM:r.RIGHT,type:a.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(o["a"])(Object(o["a"])({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(o["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(),n=e.type,i=e.categorySize,r="vertical"!==n;return Math.floor((r?t.width:t.height)/i)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(s["qb"])(e,t.field);return Object(s["fb"])(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,a=i.padding,c=i.width,l=i.height,h=i.style,u="vertical"!==r,p=Object(o["e"])(a,4),f=p[0],d=p[1],g=p[2],v=p[3],y=u?{x:e.minX+v,y:n.maxY-l-g}:{x:n.maxX-c-d,y:e.minY+f},m=this.getStep(),b=this.getCnt(),x=u?e.width-v-d:e.height-f-g,O=Math.max(x*Object(s["c"])(m/b,0,1),vc);return Object(o["a"])(Object(o["a"])({},this.getThemeOptions()),{x:y.x,y:y.y,size:u?l:c,isHorizontal:u,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(h)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:gc,width:dc,height:dc,padding:[0,0,0,0],animate:!0,style:{}};return Object(s["L"])(this.option)&&(t=Object(o["a"])(Object(o["a"])({},t),this.option)),Object(s["L"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[fc,0,fc,0]:[0,fc,0,fc]),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=Object(o["g"])([],Object(o["e"])(n),!1).reverse()),n},e}(yi),mc=yc,bc={fill:"#CCD6EC",opacity:.3};function xc(t,e,n){var i,r,a,c,l,h,u=Qn(t,e,n);if(u.length){u=Object(s["p"])(u);try{for(var p=Object(o["i"])(u),f=p.next();!f.done;f=p.next()){var d=f.value;try{for(var g=(a=void 0,Object(o["i"])(d)),v=g.next();!v.done;v=g.next()){var y=v.value,m=y.mappingData,b=m.x,x=m.y;y.x=Object(s["A"])(b)?b[b.length-1]:b,y.y=Object(s["A"])(x)?x[x.length-1]:x}}catch(k){a={error:k}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}}catch(T){i={error:T}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}var O=n.shared;if(!1===O&&u.length>1){var j=u[0],w=Math.abs(e.y-j[0].y);try{for(var C=Object(o["i"])(u),S=C.next();!S.done;S=C.next()){var M=S.value,A=Math.abs(e.y-M[0].y);A<=w&&(j=M,w=A)}}catch(L){l={error:L}}finally{try{S&&!S.done&&(h=C.return)&&h.call(C)}finally{if(l)throw l.error}}u=[j]}return Object(s["mb"])(Object(s["p"])(u))}return[]}var Oc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,i=e.getController("tooltip").getTooltipCfg(),r=xc(e,{x:n.x,y:n.y},i);if(!Object(s["F"])(r,this.items)&&(this.items=r,r.length)){var a=e.getXScale().field,c=r[0].data[a],l=[],h=e.geometries;if(Object(s["j"])(h,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[a]===c}));l=l.concat(e)}})),l.length){var u=e.getCoordinate(),p=l[0].shape.getCanvasBBox(),f=l[0].shape.getCanvasBBox(),d=p;Object(s["j"])(l,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<p.minY&&(p=e),e.maxY>f.maxY&&(f=e)):(e.minX<p.minX&&(p=e),e.maxX>f.maxX&&(f=e)),d.x=Math.min(e.minX,d.minX),d.y=Math.min(e.minY,d.minY),d.width=Math.max(e.maxX,d.maxX)-d.x,d.height=Math.max(e.maxY,d.maxY)-d.y}));var g=e.backgroundGroup,v=e.coordinateBBox,y=void 0;if(u.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(s["H"])(O)&&(x=Object(s["H"])(x)?m.isLinear?0:.25:x,O=u.isTransposed?x*f.height:x*p.width);var j=void 0,w=void 0,C=void 0,S=void 0;u.isTransposed?(j=v.minX,w=Math.min(f.minY,p.minY)-O,C=v.width,S=d.height+2*O):(j=Math.min(p.minX,f.minX)-O,w=v.minY,C=d.width+2*O,S=v.height),y=[["M",j,w],["L",j+C,w],["L",j+C,w+S],["L",j,w+S],["Z"]]}else{var M=Object(s["x"])(l),A=Object(s["Q"])(l),k=Ot(M.getModel(),u).startAngle,T=Ot(A.getModel(),u).endAngle,L=u.getCenter(),B=u.getRadius(),P=u.innerRadius*B;y=bt(L.x,L.y,B,k,T,P)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var I=Object(s["q"])(t,"style",bc);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(o["a"])(Object(o["a"])({},I),{path:y})})}}}},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}(se),jc=Oc,wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["c"])(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,i=n.isTooltipLocked();if(!i){var r=this.timeStamp,a=+new Date,o=Object(s["q"])(t.view.getOptions(),"tooltip.showDelay",16);if(a-r>o){var c=this.location,l={x:e.x,y:e.y};c&&Object(s["F"])(c,l)||this.showTooltip(n,l),this.timeStamp=a,this.location=l}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;e.isCursorEntered({x:i,y:r})||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}(se),Cc=wc,Sc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.showTooltip=function(t,e){var n=rn(t);Object(s["j"])(n,(function(n){var i=on(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=rn(t);Object(s["j"])(e,(function(t){t.hideTooltip()}))},e}(Cc),Mc=Sc,Ac=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["c"])(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,a={x:e.x,y:e.y};r&&Object(s["F"])(r,a)||this.showTooltip(a),this.timeStamp=i,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=i.get("tip");this.tooltip.update(Object(o["a"])({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=e.getTheme(),a=Object(s["q"])(r,["components","tooltip","domStyles"],{}),c=new dt({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:Object(o["a"])({},Object(s["h"])({},a,(t={},t[st["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[st["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(se),kc=Ac,Tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(o["c"])(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(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=We(t,this.stateName);Object(s["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(se),Lc=Tc;function Bc(t){return Object(s["q"])(t.get("delegateObject"),"item")}var Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(o["c"])(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,i=n.filter((function(n){return e.hasState(t,n)}));return!!i.length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),a=Ve(i);this.setElementsStateByItem(a,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,r=cn(i,e),a=Ue(t,e);return!Object(s["H"])(a)&&n.name===r.getText(a)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(s["j"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=Ie(this.context);if(e)Fe(this.context)&&this.setStateByElement(e,t);else{var n=Ee(this.context);if(De(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var a=this.context.event.gEvent;if(a&&a.fromShape&&a.toShape&&Bc(a.fromShape)===Bc(a.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=Ie(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Lc),Ic=Pc,Ec=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.active=function(){this.setState()},e}(Ic),Fc=Ec,Dc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(o["c"])(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var i=t.getScaleByField(n.getFields()[0]);return i},e.prototype.getLinkPath=function(t,e){var n=this.context.view,i=n.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),a=e.shape.getCanvasBBox(),o=i?[["M",r.minX,r.minY],["L",a.minX,a.maxY],["L",a.maxX,a.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",a.minX,a.minY],["L",a.minX,a.maxY],["L",r.maxX,r.maxY],["Z"]];return o},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(o["a"])(Object(o["a"])({},Object(s["h"])({},r,Object(s["G"])(i)?i(r,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,i=this.context.view,r=this.getColorScale(i,t);if(r){var a=Ue(t,r.field);if(!this.cache[a]){var o=qe(i,r.field,a),c=this.linkGroup,l=c.addGroup();this.cache[a]=l;var h=o.length;Object(s["j"])(o,(function(t,i){if(i<h-1){var r=o[i+1];n.addLinkShape(l,t,r,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Ue(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=Ie(e);n&&this.linkByElement(n,null===t||void 0===t?void 0:t.style)},e.prototype.unlink=function(){var t=Ie(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}(se),Rc=Dc,_c=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(o["c"])(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(_e(this.context))t=Ge(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)},r=this.context.view;t=Qe(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Ve(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=rn(i),a=t.map((function(t){return t.getModel().data})),o=i.getXScale().field,c=i.getYScales()[0].field;Object(s["j"])(r,(function(t){var i=Ve(t),r=i.filter((function(t){var e=t.getModel().data;return sn(a,e,o,c)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=rn(n);_e(this.context)&&Object(s["j"])(i,(function(n){var i=Ve(n),r=Ne(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(s["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=rn(e);Object(s["j"])(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Lc),Hc=_c,Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.active=function(){this.setState()},e}(Hc),Yc=Gc,Nc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.setStateEnable=function(t){var e=Ie(this.context);if(e){if(!Fe(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=Ie(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Lc),Xc=Nc,zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.active=function(){this.setState()},e}(Xc),Vc=zc,qc="inactive",Wc="active";function Uc(t){var e=Ve(t);Object(s["j"])(e,(function(t){t.hasState(Wc)&&t.setState(Wc,!1),t.hasState(qc)&&t.setState(qc,!1)}))}function Zc(t,e,n){Object(s["j"])(t,(function(t){e(t)?(t.hasState(qc)&&t.setState(qc,!1),t.setState(Wc,n)):(t.hasState(Wc)&&t.setState(Wc,!1),t.setState(qc,n))}))}var Qc,Kc=u.INACTIVE,Jc=u.ACTIVE,$c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Jc,e}return Object(o["c"])(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this,a=function(t){return r.isMathItem(t,e,n)};this.setHighlightBy(t,a,i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Kc)&&t.setState(Kc,!1),t.setState(Jc,!0)):t.hasState(Jc)||t.setState(Kc,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)Object(s["j"])(t,(function(t){i.setElementHighlight(t,e)}));else{var r=We(this.context.view,Jc),a=!0;Object(s["j"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(s["j"])(t,(function(t){e(t)&&(t.hasState(Jc)&&t.setState(Jc,!1),t.setState(Kc,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Ve(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Uc(t)},e}(Ic),tl=$c,el=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(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]),a=Ue(t,r.field),o=Ve(n),s=o.filter((function(t){return Ue(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)}},e}(tl),nl=el,il=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Kc)&&t.setState(Kc,!1),t.setState(Jc,!0)):(t.setState(Kc,!0),t.hasState(Jc)&&t.setState(Jc,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=Ue(t,i.field),a=Ve(n),o=a.filter((function(t){return Ue(t,i.field)===r}));this.setHighlightBy(a,(function(t){return o.includes(t)}),e)},e.prototype.toggle=function(){var t=Ie(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(tl),rl=il;(function(t){t["BEFORE_HIGHLIGHT"]="element-range-highlight:beforehighlight",t["AFTER_HIGHLIGHT"]="element-range-highlight:afterhighlight",t["BEFORE_CLEAR"]="element-range-highlight:beforeclear",t["AFTER_CLEAR"]="element-range-highlight:afterclear"})(Qc||(Qc={}));var al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.clearViewState=function(t){Uc(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n=t.event,i=this.getIntersectElements(),r={view:e,event:n,highlightElements:i};e.emit(Qc.BEFORE_HIGHLIGHT,oi.fromData(e,Qc.BEFORE_HIGHLIGHT,r)),this.setState(),e.emit(Qc.AFTER_HIGHLIGHT,oi.fromData(e,Qc.AFTER_HIGHLIGHT,r))},e.prototype.clear=function(){var e=this.context.view;e.emit(Qc.BEFORE_CLEAR,oi.fromData(e,Qc.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(Qc.AFTER_CLEAR,oi.fromData(e,Qc.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Zc(n,(function(e){return t.indexOf(e)>=0}),e)},e}(Hc),ol=al,sl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Ve(n);Zc(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Uc(t)},e}(Xc),cl=sl,ll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Hc),hl=ll,ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Ic),pl=ul,fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(Xc),dl=fl,gl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(o["c"])(e,t),e.prototype.getTriggerListInfo=function(){var t=Ee(this.context),e=null;return De(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=$e(e),i=[];return Object(s["j"])(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(s["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=this.context.view,r=cn(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return e.hasState(t,n)}));return 0===i.length}return!0},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,a=cn(r,i),o=Ue(e,i),s=a.getText(o);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=Ie(this.context);if(n){var i=this.getAllowComponents();Object(s["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Ee(this.context);if(De(r)){var a=r.item,o=r.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(a,o)&&this.setItemState(o,a,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(s["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}(se),vl=gl,yl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["c"])(e,t),e.prototype.active=function(){this.setState()},e}(vl),ml=yl,bl="inactive",xl="active";function Ol(t){var e=t.getItems();Object(s["j"])(e,(function(e){t.hasState(e,xl)&&t.setItemState(e,xl,!1),t.hasState(e,bl)&&t.setItemState(e,bl,!1)}))}var jl="inactive",wl="active",Cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=wl,e.ignoreItemStates=["unchecked"],e}return Object(o["c"])(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(s["j"])(i,(function(n){e(n)?(t.hasState(n,jl)&&t.setItemState(n,jl,!1),t.setItemState(n,wl,!0)):t.hasState(n,wl)||t.setItemState(n,jl,!0)}));else{var r=t.getItemsByState(wl),a=!0;Object(s["j"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(s["j"])(i,(function(n){e(n)&&(t.hasState(n,wl)&&t.setItemState(n,wl,!1),t.setItemState(n,jl,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Ol(t.list);else{var e=this.getAllowComponents();Object(s["j"])(e,(function(t){t.clearItemsState(wl),t.clearItemsState(jl)}))}},e}(vl),Sl=Cl,Ml=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["c"])(e,t),e.prototype.selected=function(){this.setState()},e}(vl),Al=Ml,kl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(o["c"])(e,t),e.prototype.unchecked=function(){this.setState()},e}(vl),Tl=kl,Ll="unchecked",Bl="checked",Pl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Bl,e}return Object(o["c"])(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var i=t.getItems();n&&Object(s["j"])(i,(function(n){e(n)?(t.hasState(n,Ll)&&t.setItemState(n,Ll,!1),t.setItemState(n,Bl,!0)):t.hasState(n,Bl)||t.setItemState(n,Ll,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(s["gb"])(e.getItems(),(function(t){return e.hasState(t,Ll)}));i||e.hasState(n,Ll)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(s["j"])(t,(function(t){t.clearItemsState(Bl),t.clearItemsState(Ll)}))},e}(vl),Il=Pl,El="unchecked",Fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.toggle=function(){var t,e,n,i,r,a,s,c,l=this.getTriggerListInfo();if(null===l||void 0===l?void 0:l.item){var h=l.list,u=l.item,p=h.getItems(),f=p.filter((function(t){return!h.hasState(t,El)})),d=p.filter((function(t){return h.hasState(t,El)})),g=f[0];if(p.length===f.length)try{for(var v=Object(o["i"])(p),y=v.next();!y.done;y=v.next()){var m=y.value;h.setItemState(m,El,m.id!==u.id)}}catch(S){t={error:S}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(p.length-d.length===1)if(g.id===u.id)try{for(var b=Object(o["i"])(p),x=b.next();!x.done;x=b.next()){m=x.value;h.setItemState(m,El,!1)}}catch(M){n={error:M}}finally{try{x&&!x.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}else try{for(var O=Object(o["i"])(p),j=O.next();!j.done;j=O.next()){m=j.value;h.setItemState(m,El,m.id!==u.id)}}catch(A){r={error:A}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(r)throw r.error}}else try{for(var w=Object(o["i"])(p),C=w.next();!C.done;C=w.next()){m=C.value;h.setItemState(m,El,m.id!==u.id)}}catch(k){s={error:k}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(s)throw s.error}}}},e}(vl),Dl=Fl,Rl="showRadio",_l="legend-radio-tip",Hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["c"])(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Rl,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,Rl,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date,r=this.context.event.target;if(i-n>16&&"legend-item-radio"===r.get("name")){var a=this.location,o={x:e.x,y:e.y};this.timeStamp=i,this.location=o,a&&Object(s["F"])(a,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),a=r.x,s=r.y;this.tooltip.update(Object(o["a"])(Object(o["a"])({title:i.get("tip")},t),{x:t.x+a,y:t.y+s})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=(t={},t[st["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[st["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(_l)&&document.body.removeChild(document.getElementById(_l));var n=new dt({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:_l});n.init(),n.setCapture(!1),this.tooltip=n},e}(vl),Gl=Hl,Yl=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(o["c"])(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="mask:".concat(t),n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(o["a"])({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),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(s["j"])(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(s["h"])({},this.getMaskAttrs(),t);this.maskShape.attr(e)},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}(se),Nl=Yl;function Xl(t){var e=Object(s["Q"])(t),n=0,i=0,r=0;if(t.length){var a=t[0];n=tn(a,e)/2,i=(e.x+a.x)/2,r=(e.y+a.y)/2}return{x:i,y:r,r:n}}var zl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(o["c"])(e,t),e.prototype.getMaskAttrs=function(){return Xl(this.points)},e}(Nl),Vl=zl;function ql(t){return{start:Object(s["x"])(t),end:Object(s["Q"])(t)}}function Wl(t,e){var n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return{x:n,y:i,width:r,height:a}}var Ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o["c"])(e,t),e.prototype.getRegion=function(){return ql(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return Wl(e,n)},e}(Nl),Zl=Ul;function Ql(t){t.x=Object(s["c"])(t.x,0,1),t.y=Object(s["c"])(t.y,0,1)}function Kl(t,e,n,i){var r=null,a=null,o=i.invert(Object(s["x"])(t)),c=i.invert(Object(s["Q"])(t));return n&&(Ql(o),Ql(c)),"x"===e?(r=i.convert({x:o.x,y:0}),a=i.convert({x:c.x,y:1})):(r=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:c.y})),{start:r,end:a}}var Jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o["c"])(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return Kl(this.points,this.dim,this.inPlot,t)},e}(Zl),$l=Jl;function th(t){var e=[];return t.length&&(Object(s["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e}function eh(t){return{path:th(t)}}var nh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getMaskPath=function(){return th(this.points)},e.prototype.getMaskAttrs=function(){return eh(this.points)},e.prototype.addPoint=function(){this.resize()},e}(Nl),ih=nh;function rh(t){return en(t,!0)}function ah(t){return{path:rh(t)}}var oh,sh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.getMaskPath=function(){return rh(this.points)},e.prototype.getMaskAttrs=function(){return ah(this.points)},e}(ih),ch=sh,lh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(o["c"])(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="".concat(this.maskType,":").concat(t),n=this.context.view,i=this.context.event,r={type:this.shapeType,name:this.maskType,get:function(t){return r.hasOwnProperty(t)?r[t]:void 0}};n.emit(e,{target:r,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:i.x,y:i.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],i=this.getMaskAttrs(n),r=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(o["a"])({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(r)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!1),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.getCurMaskShapeIndex();r>-1&&(this.recordPoints[r].forEach((function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,i){var r=Object(s["h"])({},e.getMaskAttrs(n),t);e.maskShapes[i].attr(r)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(o["g"])([],Object(o["e"])(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(o["g"])(Object(o["g"])([],Object(o["e"])(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(o["g"])(Object(o["g"])([],Object(o["e"])(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,i=n.width,r=n.height,a=n.r,o=0===i||0===r||0===a;return!o&&e.isHit(t.x,t.y)}))},e}(se),hh=lh,uh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o["c"])(e,t),e.prototype.getRegion=function(t){return ql(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n=e.start,i=e.end;return Wl(n,i)},e}(hh),ph=uh,fh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o["c"])(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return Kl(t,this.dim,this.inPlot,e)},e}(ph),dh=fh,gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=Xl,e}return Object(o["c"])(e,t),e}(hh),vh=gh,yh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=th,e.getMaskAttrs=eh,e}return Object(o["c"])(e,t),e.prototype.addPoint=function(){this.resize()},e}(hh),mh=yh,bh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=rh,e.getMaskAttrs=ah,e}return Object(o["c"])(e,t),e}(mh),xh=bh,Oh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.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.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(se),jh=Oh,wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(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(s["j"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Ee(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(De(t)){if(i){var r=n.getItemsByState("unchecked"),a=cn(e,i),s=r.map((function(t){return t.name}));s.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Re(t)){var c=n.getValue(),l=Object(o["e"])(c,2),h=l[0],u=l[1];this.filterView(e,i,(function(t){return t>=h&&t<=u})),e.render(!0)}}},e}(se),Ch=wh;function Sh(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),s=Object(o["e"])(t.range,2),c=s[0],l=s[1];if(r<c&&(r=c),a>l&&(a=l),r===l&&a===l)return null;var h=t.invert(r),u=t.invert(a);if(t.isCategory){var p=t.values.indexOf(h),f=t.values.indexOf(u),d=t.values.slice(p,f+1);return function(t){return d.includes(t)}}return function(t){return t>=h&&t<=u}}(function(t){t["FILTER"]="brush-filter-processing",t["RESET"]="brush-filter-reset",t["BEFORE_FILTER"]="brush-filter:beforefilter",t["AFTER_FILTER"]="brush-filter:afterfilter",t["BEFORE_RESET"]="brush-filter:beforereset",t["AFTER_RESET"]="brush-filter:afterreset"})(oh||(oh={}));var Mh=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(o["c"])(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(_e(this.context)){var n=this.context.event.target,i=n.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.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 r=this.context,a=r.view,o=r.event,s={view:a,event:o,dims:this.dims};a.emit(oh.BEFORE_FILTER,oi.fromData(a,oh.BEFORE_FILTER,s));var c=a.getCoordinate(),l=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var u=a.getXScale(),p=Sh(u,"x",l,h);this.filterView(a,u.field,p)}if(this.hasDim("y")){var f=a.getYScales()[0];p=Sh(f,"y",l,h);this.filterView(a,f.field,p)}this.reRender(a,{source:oh.FILTER}),a.emit(oh.AFTER_FILTER,oi.fromData(a,oh.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(oh.BEFORE_RESET,oi.fromData(t,oh.BEFORE_RESET,{})),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,{source:oh.RESET}),t.emit(oh.AFTER_RESET,oi.fromData(t,oh.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(se),Ah=Mh,kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.filterView=function(t,e,n){var i=rn(t);Object(s["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=rn(t);Object(s["j"])(e,(function(t){t.render(!0)}))},e}(Ah),Th=kh,Lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.filter=function(){var t=Ee(this.context),e=this.context.view,n=Ve(e);if(_e(this.context)){var i=Ge(this.context,10);i&&Object(s["j"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,a=r.get("field");if(De(t)){if(a){var c=r.getItemsByState("unchecked"),l=cn(e,a),h=c.map((function(t){return t.name}));Object(s["j"])(n,(function(t){var e=Ue(t,a),n=l.getText(e);h.indexOf(n)>=0?t.hide():t.show()}))}}else if(Re(t)){var u=r.getValue(),p=Object(o["e"])(u,2),f=p[0],d=p[1];Object(s["j"])(n,(function(t){var e=Ue(t,a);e>=f&&e<=d?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Ve(this.context.view);Object(s["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(se),Bh=Lh,Ph=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(o["c"])(e,t),e.prototype.filter=function(){_e(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Ge(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),a=rn(t);Object(s["j"])(a,(function(t){var e=Ve(t);Object(s["j"])(e,(function(t){var e=t.getModel().data;sn(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=rn(e);Object(s["j"])(n,(function(e){var n=Ne(t.context,e,10),i=Ve(e);n&&Object(s["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=rn(this.context.view);Object(s["j"])(t,(function(t){var e=Ve(t);Object(s["j"])(e,(function(t){t.show()}))}))},e}(se),Ih=Ph,Eh=10,Fh=5,Dh=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(o["c"])(e,t),e.prototype.getButtonCfg=function(){return Object(s["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(o["a"])({text:t.text},t.textStyle)}),i=n.getBBox(),r=Jn(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:Object(o["a"])({x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),a=Z["a"].transform(null,[["t",n.x-r.width-Eh,n.y+r.height+Fh]]);i.setMatrix(a)},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}(se),Rh=Dh,_h=4,Hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(o["c"])(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}):tn(t,this.startPoint)>_h&&(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.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(se),Gh=Hh,Yh=5,Nh=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(o["c"])(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(),n=tn(t,e);if(n>Yh&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=Z["a"].transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},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}(se),Xh=Nh,zh="x",Vh="y",qh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[zh,Vh],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(o["c"])(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(zh),this.resetDim(Vh);var t=this.context.view;t.render(!0)},e}(se),Wh=qh,Uh=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(o["c"])(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(s["j"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,a=n.values;t.startCache[e]={min:i,max:r,values:a}}))},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),a=n.invert(i),o=a.x-r.x,c=a.y-r.y,l=this.context.view,h=this.dims;Object(s["j"])(h,(function(e){t.translateDim(e,{x:-1*o,y:-1*c})})),l.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],a=r.min,o=r.max,s=o-a,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),i.scale(e.field,{nice:!1,min:a+c,max:o+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Wh),Zh=Uh,Qh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(o["c"])(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(s["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],a=r.max-r.min,o=e.min,s=e.max,c=n*a,l=o-c,h=s+c,u=h-l,p=u/a;h>l&&p<100&&p>.01&&i.scale(e.field,{nice:!1,min:o-c,max:s+c})},e}(Wh),Kh=Qh;function Jh(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var $h=1,tu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,i=e.event;if(n.getOptions().scrollbar){var r=(null===t||void 0===t?void 0:t.wheelDelta)||$h,a=n.getController("scrollbar"),o=n.getXScale(),c=n.getOptions().data,l=Object(s["fb"])(Object(s["qb"])(c,o.field)),h=Object(s["fb"])(o.values),u=a.getValue(),p=Math.floor((l-h)*u),f=p+(Jh(i)?r:-r),d=r/(l-h)/1e4,g=Object(s["c"])(f/(l-h)+d,0,1);a.setValue(g)}},e}(se),eu=tu,nu="aixs-description-tooltip",iu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["c"])(e,t),e.prototype.show=function(){var t=this.context,e=Ee(t).axis,n=e.cfg.title,i=n.description,r=n.text,a=n.descriptionTooltipStyle,o=t.event,s=o.x,c=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n          <div class="'.concat(st["TOOLTIP_CSS_CONST"].CONTAINER_CLASS,'" style={').concat(a,'}>\n            <div class="').concat(st["TOOLTIP_CSS_CONST"].TITLE_CLASS,'">\n              字段说明：').concat(i,"\n            </div>\n          </div>\n        ")},x:s,y:c}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=new dt({parent:n.get("el").parentNode,region:i,visible:!1,containerId:nu,domStyles:Object(o["a"])({},Object(s["h"])({},(t={},t[st["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[st["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(se),ru=iu;function au(t){return t.isInPlot()}function ou(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Fn("dark",Cn(Nr)),x("canvas",Xr),x("svg",zr),fi("Polygon",Ca),fi("Interval",da),fi("Schema",Ma),fi("Path",qr),fi("Point",Oa),fi("Line",va),fi("Area",Kr),fi("Edge",$r),fi("Heatmap",ea),fi("Violin",Ta),Ri("base",ur),Ri("interval",Ja),Ri("pie",io),Ri("polar",eo),Hi("overlap",Co),Hi("distribute",oo),Hi("fixed-overlap",wo),Hi("hide-overlap",No),Hi("limit-in-shape",mo),Hi("limit-in-canvas",yo),Hi("limit-in-plot",ps),Hi("pie-outer",ho),Hi("adjust-color",qo),Hi("interval-adjust-position",Qo),Hi("interval-hide-overlap",Jo),Hi("point-adjust-position",is),Hi("pie-spider",vo),Hi("path-adjust-position",cs),wi("fade-in",fs),wi("fade-out",ds),wi("grow-in-x",ys),wi("grow-in-xy",bs),wi("grow-in-y",ms),wi("scale-in-x",js),wi("scale-in-y",ws),wi("wave-in",ks),wi("zoom-in",Ls),wi("zoom-out",Bs),wi("position-update",Os),wi("sector-path-update",As),wi("path-in",xs),ae("rect",Xs),ae("mirror",Ys),ae("list",Rs),ae("matrix",Hs),ae("circle",Fs),ae("tree",Vs),ti("axis",ac),ti("legend",hc),ti("tooltip",xi),ti("annotation",Ks),ti("slider",pc),ti("scrollbar",mc),pe("tooltip",Cc),pe("sibling-tooltip",Mc),pe("ellipsis-text",kc),pe("element-active",Fc),pe("element-single-active",Vc),pe("element-range-active",Yc),pe("element-highlight",tl),pe("element-highlight-by-x",rl),pe("element-highlight-by-color",nl),pe("element-single-highlight",cl),pe("element-range-highlight",ol),pe("element-sibling-highlight",ol,{effectSiblings:!0,effectByRecord:!0}),pe("element-selected",pl),pe("element-single-selected",dl),pe("element-range-selected",hl),pe("element-link-by-color",Rc),pe("active-region",jc),pe("list-active",ml),pe("list-selected",Al),pe("list-highlight",Sl),pe("list-unchecked",Tl),pe("list-checked",Il),pe("list-focus",Dl),pe("list-radio",Gl),pe("legend-item-highlight",Sl,{componentNames:["legend"]}),pe("axis-label-highlight",Sl,{componentNames:["axis"]}),pe("axis-description",ru),pe("rect-mask",Zl),pe("x-rect-mask",$l,{dim:"x"}),pe("y-rect-mask",$l,{dim:"y"}),pe("circle-mask",Vl),pe("path-mask",ih),pe("smooth-path-mask",ch),pe("rect-multi-mask",ph),pe("x-rect-multi-mask",dh,{dim:"x"}),pe("y-rect-multi-mask",dh,{dim:"y"}),pe("circle-multi-mask",vh),pe("path-multi-mask",mh),pe("smooth-path-multi-mask",xh),pe("cursor",jh),pe("data-filter",Ch),pe("brush",Ah),pe("brush-x",Ah,{dims:["x"]}),pe("brush-y",Ah,{dims:["y"]}),pe("sibling-filter",Th),pe("sibling-x-filter",Th,{dims:"x"}),pe("sibling-y-filter",Th,{dims:"y"}),pe("element-filter",Bh),pe("element-sibling-filter",Ih),pe("element-sibling-filter-record",Ih,{byRecord:!0}),pe("view-drag",Gh),pe("view-move",Xh),pe("scale-translate",Zh),pe("scale-zoom",Kh),pe("reset-button",Rh,{name:"reset-button",text:"reset"}),pe("mousewheel-scroll",eu),xn("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"}]}),xn("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:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),xn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),xn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),xn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),xn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),xn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),xn("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"]}]}),xn("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"]}]}),xn("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"]}]}),xn("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"]}]}),xn("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"]}]}),xn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:au,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:au,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:au,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"]}]}),xn("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"]}]}),xn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:au,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:au,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:au,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),xn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:au,action:"path-mask:start"},{trigger:"mousedown",isEnable:au,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"}]}),xn("brush-x-multi",{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:"mousedown",isEnable:au,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!He(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),xn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),xn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),xn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),xn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),xn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),xn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),xn("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),xn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return ou(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!ou(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),xn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),xn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},"94e3":function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("d177"),o=n("41c8"),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?a["d"]:i,o=e.dodgeRatio,s=void 0===o?a["b"]:o,c=e.dodgeBy,l=e.intervalPadding,h=e.dodgePadding,u=e.xDimensionLength,p=e.groupNum,f=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=h,n.xDimensionLegenth=u,n.groupNum=p,n.defaultSize=f,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["p"](e),i=this.dodgeBy,a=i?r["t"](n,i):e;return this.cacheMap={},this.adjustDataArray=a,this.mergeData=n,this.adjustData(a,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var a=this,o=this.customOffset,s=this.getDistribution(t),c=this.groupData(n,t);return r["j"](c,(function(n,c){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(c),e),r["j"](n,(function(e){var n=e[t],c=s[n],h=c.indexOf(i);if(r["H"](o))e[t]=a.getDodgeOffset(l,h,c.length);else{var u=l.pre,p=l.next;e[t]=r["G"](o)?o(e,l):(u+p)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,a=this,o=a.dodgeRatio,s=a.marginRatio,c=a.intervalPadding,l=a.dodgePadding,h=t.pre,u=t.next,p=u-h;if(!r["H"](c)&&r["H"](l)&&c>=0){var f=this.getIntervalOnlyOffset(n,e);i=h+f}else if(!r["H"](l)&&r["H"](c)&&l>=0){f=this.getDodgeOnlyOffset(n,e);i=h+f}else if(!r["H"](c)&&!r["H"](l)&&c>=0&&l>=0){f=this.getIntervalAndDodgeOffset(n,e);i=h+f}else{var d=p*o/n,g=s*d;f=.5*(p-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*p;i=(h+u)/2+f}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,h=n.minColumnWidth,u=n.columnWidthRatio,p=a/o,f=(1-(s-1)*p)/s*c/(t-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=r["H"](u)?d:1/s/t*u,!r["H"](l)){var g=l/o;d=Math.min(d,g)}if(!r["H"](h)){var v=h/o;d=Math.max(d,v)}d=i?i/o:d,f=((1-(s-1)*p)/s-t*d)/(t-1);var y=((.5+e)*d+e*f+.5*p)*s-p/2;return y},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,h=n.minColumnWidth,u=n.columnWidthRatio,p=a/o,f=1*c/(s-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=u?1/s/t*u:d,!r["H"](l)){var g=l/o;d=Math.min(d,g)}if(!r["H"](h)){var v=h/o;d=Math.max(d,v)}d=i?i/o:d,f=(1-(d*t+p*(t-1))*s)/(s-1);var y=((.5+e)*d+e*p+.5*f)*s-f/2;return y},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=i/a,c=r/a,l=((1-s*(o-1))/o-c*(t-1))/t,h=((.5+e)*l+e*c+.5*s)*o-s/2;return h},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},r["j"](e,(function(e,n){var a=r["qb"](e,t);a.length||a.push(0),r["j"](a,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(o["a"]);e["a"]=s},"96de":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}},9778:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t,e,n){var r=e+"Style",a=null;return Object(i["j"])(n,(function(e,n){t[n]&&e[r]&&(a||(a={}),Object(i["X"])(a,e[r]))})),a}},"9c29":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7326");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(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],l=e[5],h=t[0],u=t[1],p=e[6],f=e[7],d=Math.cos(s)*(h-p)/2+Math.sin(s)*(u-f)/2,g=-1*Math.sin(s)*(h-p)/2+Math.cos(s)*(u-f)/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===l&&(m*=-1),isNaN(m)&&(m=0);var b=r?m*n*g/r:0,x=n?m*-r*d/n:0,O=(h+p)/2+Math.cos(s)*b-Math.sin(s)*x,j=(u+f)/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],S=o([1,0],w),M=o(w,C);return a(w,C)<=-1&&(M=Math.PI),a(w,C)>=1&&(M=0),0===l&&M>0&&(M-=2*Math.PI),1===l&&M<0&&(M+=2*Math.PI),{cx:O,cy:j,rx:Object(i["j"])(t,[p,f])?0:n,ry:Object(i["j"])(t,[p,f])?0:r,startAngle:S,endAngle:S+M,xRotation:s,arcFlag:c,sweepFlag:l}}},"9f27":function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var i=n("9ab4"),r=n("4799"),a=Math.sin,o=Math.cos,s=Math.atan2,c=Math.PI;function l(t,e,n,i,l,h,u){var p=e.stroke,f=e.lineWidth,d=n-l,g=i-h,v=s(g,d),y=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*o(c/6)+","+10*a(c/6)+" L0,0 L"+10*o(c/6)+",-"+10*a(c/6),stroke:p,lineWidth:f}});y.translate(l,h),y.rotateAtPoint(l,h,v),t.set(u?"startArrowShape":"endArrowShape",y)}function h(t,e,n,c,l,h,u){var p=e.startArrow,f=e.endArrow,d=e.stroke,g=e.lineWidth,v=u?p:f,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,O=Object(i["f"])(v,["d","fill","stroke","lineWidth"]),j=n-l,w=c-h,C=s(w,j);y&&(l-=o(C)*y,h-=a(C)*y);var S=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["a"])(Object(i["a"])({},O),{stroke:b||d,lineWidth:x||g,fill:m})});S.translate(l,h),S.rotateAtPoint(l,h,C),t.set(u?"startArrowShape":"endArrowShape",S)}function u(t,e,n,i,r){var c=s(i-e,n-t);return{dx:o(c)*r,dy:a(c)*r}}function p(t,e,n,i,r,a){"object"===typeof e.startArrow?h(t,e,n,i,r,a,!0):e.startArrow?l(t,e,n,i,r,a,!0):t.set("startArrowShape",null)}function f(t,e,n,i,r,a){"object"===typeof e.endArrow?h(t,e,n,i,r,a,!1):e.endArrow?l(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}},af40:function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var i=n("7326"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^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 l(t,e,n){var i,a,o=r.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],h=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:h.minX,y:h.minY},a={x:h.maxX,y:h.maxY}):.5*Math.PI<=s&&s<Math.PI?(i={x:h.maxX,y:h.minY},a={x:h.minX,y:h.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:h.maxX,y:h.maxY},a={x:h.minX,y:h.minY}):(i={x:h.minX,y:h.maxY},a={x:h.maxX,y:h.minY});var u=Math.tan(s),p=u*u,f=(a.x-i.x+u*(a.y-i.y))/(p+1)+i.x,d=u*(a.x-i.x+u*(a.y-i.y))/(p+1)+i.y,g=t.createLinearGradient(i.x,i.y,f,d);return c(l,g),g}function h(t,e,n){var i=a.exec(n),r=parseFloat(i[1]),o=parseFloat(i[2]),l=parseFloat(i[3]),h=i[4];if(0===l){var u=h.match(s);return u[u.length-1].split(":")[1]}var p=e.getBBox(),f=p.maxX-p.minX,d=p.maxY-p.minY,g=Math.sqrt(f*f+d*d)/2,v=t.createRadialGradient(p.minX+f*r,p.minY+d*o,0,p.minX+f/2,p.minY+d/2,l*g);return c(h,v),v}function u(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,a=o.exec(n),s=a[1],c=a[2];function l(){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?l():(r.onload=l,r.src=r.src),i}function p(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(Object(i["k"])(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return l(t,e,n);if("r"===n[0])return h(t,e,n);if("p"===n[0])return u(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function f(t){var e=0,n=0,r=0,a=0;return Object(i["g"])(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,[e,n,r,a]}},b182:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855");function a(t,e){if(e){var n=Object(r["invert"])(e);return Object(r["multiplyVec2"])(n,t)}return t}function o(t,e,n){var i=t.getTotalMatrix();if(i){var r=a([e,n,1],i),o=r[0],s=r[1];return[o,s]}return[e,n]}function s(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),a=i[0],s=i[1];if(t.isClipped(a,s))return!1}var c=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}function c(t,e,n){if(!s(t,e,n))return null;for(var i=null,r=t.getChildren(),a=r.length,l=a-1;l>=0;l--){var h=r[l];if(h.isGroup())i=c(h,e,n);else if(s(h,e,n)){var u=h,p=o(h,e,n),f=p[0],d=p[1];u.isInShape(f,d)&&(i=h)}if(i)break}return i}var l=n("4799"),h=n("c2ad"),u=n("7326"),p=n("f5e5"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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 l},e.prototype.getGroupBase=function(){return h["a"]},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(u["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"),a=this.getPixelRatio();r.width=a*e,r.height=a*n,a>1&&i.scale(a,a)},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){var i;return i=this.get("quickHit")?c(this,e,n):t.prototype.getShape.call(this,e,n,null),i},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=Object(p["f"])(e),t){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;var i=this.get("clipView");i&&(t=Object(p["g"])(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(u["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(p["a"])(t,this),Object(p["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(p["a"])(t,this),Object(p["b"])(this,n,i),Object(p["d"])(t,n,i),t.restore()):e.length&&Object(p["c"])(e),Object(u["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(u["n"])((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(r["AbstractCanvas"]);e["a"]=f},b2cb:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"g",(function(){return o})),n.d(e,"b",(function(){return s}));var i=n("8937");function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return i["H"]})),n.d(e,"d",(function(){return i["G"]})),n.d(e,"h",(function(){return i["N"]})),n.d(e,"f",(function(){return i["L"]})),n.d(e,"i",(function(){return i["X"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["ob"]}));var a="undefined"!==typeof window&&"undefined"!==typeof window.document;function o(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},b5d5:function(t,e){},b6fb: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 R})),n.d(e,"formatPath",(function(){return G})),n.d(e,"intersection",(function(){return T})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return h})),n.d(e,"pathToCurve",(function(){return d})),n.d(e,"rectPath",(function(){return j}));var i=n("8937"),r="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i["A"])(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(a,(function(i,r,a){var s=[],c=r.toLowerCase();if(a.replace(o,(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 while(s.length>=e[c])if(n.push([r].concat(s.splice(0,e[c]))),!e[c])break;return t})),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var a=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),c=t+n*Math.cos(-r*o),l=e+n*Math.sin(-i*o),h=e+n*Math.sin(-r*o);a=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,h]]}else a=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return a},h=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,h=0,u=0;"M"===t[0][0]&&(r=+t[0][1],a=+t[0][2],o=r,h=a,u++,i[0]=["M",r,a]);for(var p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,d=void 0,g=u,v=t.length;g<v;g++){if(i.push(f=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+r,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+r;break;case"R":n=[r,a].concat(d.slice(1));for(var y=2,m=n.length;y<m;y++)n[y]=+n[y]+r,n[++y]=+n[y]+a;i.pop(),i=i.concat(c(n,p));break;case"O":i.pop(),n=l(r,a,d[1],d[2]),n.push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(l(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":o=+d[1]+r,h=+d[2]+a;break;default:for(y=1,m=d.length;y<m;y++)f[y]=+d[y]+(y%2?r:a)}else if("R"===e)n=[r,a].concat(d.slice(1)),i.pop(),i=i.concat(c(n,p)),f=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),n=l(r,a,d[1],d[2]),n.push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(l(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)f[b]=d[b];if(e=e.toUpperCase(),"O"!==e)switch(f[0]){case"Z":r=+o,a=+h;break;case"H":r=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],h=f[f.length-1];break;default:r=f[f.length-2],a=f[f.length-1]}}return i},u=function(t,e,n,i){return[t,e,n,i,n,i]},p=function(t,e,n,i,r,a){var o=1/3,s=2/3;return[o*t+s*n,o*e+s*i,o*r+s*n,o*a+s*i,r,a]},f=function(t,e,n,i,r,a,o,s,c,l){n===i&&(n+=1);var h,u,p,d,g,v=120*Math.PI/180,y=Math.PI/180*(+r||0),m=[],b=function(t,e,n){var i=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return{x:i,y:r}};if(l)u=l[0],p=l[1],d=l[2],g=l[3];else{h=b(t,e,-y),t=h.x,e=h.y,h=b(s,c,-y),s=h.x,c=h.y,t===s&&e===c&&(s+=1,c+=1);var x=(t-s)/2,O=(e-c)/2,j=x*x/(n*n)+O*O/(i*i);j>1&&(j=Math.sqrt(j),n*=j,i*=j);var w=n*n,C=i*i,S=(a===o?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));d=S*n*O/i+(t+s)/2,g=S*-i*x/n+(e+c)/2,u=Math.asin(((e-g)/i).toFixed(9)),p=Math.asin(((c-g)/i).toFixed(9)),u=t<d?Math.PI-u:u,p=s<d?Math.PI-p:p,u<0&&(u=2*Math.PI+u),p<0&&(p=2*Math.PI+p),o&&u>p&&(u-=2*Math.PI),!o&&p>u&&(p-=2*Math.PI)}var M=p-u;if(Math.abs(M)>v){var A=p,k=s,T=c;p=u+v*(o&&p>u?1:-1),s=d+n*Math.cos(p),c=g+i*Math.sin(p),m=f(s,c,n,i,r,0,o,k,T,[p,A,d,g])}M=p-u;var L=Math.cos(u),B=Math.sin(u),P=Math.cos(p),I=Math.sin(p),E=Math.tan(M/4),F=4/3*n*E,D=4/3*i*E,R=[t,e],_=[t+F*B,e-D*L],H=[s+F*I,c-D*P],G=[s,c];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,H,G].concat(m);m=[_,H,G].concat(m).join().split(",");for(var Y=[],N=0,X=m.length;N<X;N++)Y[N]=N%2?b(m[N-1],m[N],y).y:b(m[N],m[N+1],y).x;return Y},d=function(t,e){var n,i=h(t),r=e&&h(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],c=[],l="",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(f.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(p(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(p(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(u(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(u(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(u(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(u(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var a=t[e];while(a.length)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var m=0;m<n;m++){i[m]&&(l=i[m][0]),"C"!==l&&(s[m]=l,m&&(d=s[m-1])),i[m]=g(i[m],a,d),"A"!==s[m]&&"C"===l&&(s[m]="C"),v(i,m),r&&(r[m]&&(l=r[m][0]),"C"!==l&&(c[m]=l,m&&(d=c[m-1])),r[m]=g(r[m],o,d),"A"!==c[m]&&"C"===l&&(c[m]="C"),v(r,m)),y(i,r,a,o,m),y(r,i,o,a,m);var b=i[m],x=r&&r[m],O=b.length,j=r&&x.length;a.x=b[O-2],a.y=b[O-1],a.bx=parseFloat(b[O-4])||a.x,a.by=parseFloat(b[O-3])||a.y,o.bx=r&&(parseFloat(x[j-4])||o.x),o.by=r&&(parseFloat(x[j-3])||o.y),o.x=r&&x[j-2],o.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){var a=-3*e+9*n-9*i+3*r,o=t*a+6*e-12*n+6*i;return t*o-3*e+3*n},m=function(t,e,n,i,r,a,o,s,c){null===c&&(c=1),c=c>1?1:c<0?0:c;for(var l=c/2,h=12,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d<h;d++){var g=l*u[d]+l,v=y(g,t,n,r,o),m=y(g,e,i,a,s),b=v*v+m*m;f+=p[d]*Math.sqrt(b)}return l*f},b=function(t,e,n,i,r,a,o,s){for(var c,l,h,u,p=[],f=[[],[]],d=0;d<2;++d)if(0===d?(l=6*t-12*n+6*r,c=-3*t+9*n-9*r+3*o,h=3*n-3*t):(l=6*e-12*i+6*a,c=-3*e+9*i-9*a+3*s,h=3*i-3*e),Math.abs(c)<1e-12){if(Math.abs(l)<1e-12)continue;u=-h/l,u>0&&u<1&&p.push(u)}else{var g=l*l-4*h*c,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*c);y>0&&y<1&&p.push(y);var m=(-l-v)/(2*c);m>0&&m<1&&p.push(m)}}var b,x=p.length,O=x;while(x--)u=p[x],b=1-u,f[0][x]=b*b*b*t+3*b*b*u*n+3*b*u*u*r+u*u*u*o,f[1][x]=b*b*b*e+3*b*b*u*i+3*b*u*u*a+u*u*u*s;return f[0][O]=t,f[1][O]=e,f[0][O+1]=o,f[1][O+1]=s,f[0].length=f[1].length=O+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},x=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)<Math.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var c=(t*i-e*n)*(r-o)-(t-n)*(r*s-a*o),l=(t*i-e*n)*(a-s)-(e-i)*(r*s-a*o),h=(t-n)*(a-s)-(e-i)*(r-o);if(h){var u=c/h,p=l/h,f=+u.toFixed(2),d=+p.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(r,o).toFixed(2)||f>+Math.max(r,o).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:u,y:p}}}},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 a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=v,a},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){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},S=function(t,e,n,r,a,o,s,c){Object(i["A"])(t)||(t=[t,e,n,r,a,o,s,c]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},M=function(t,e,n,i,r,a,o,s,c){var l=1-c,h=Math.pow(l,3),u=Math.pow(l,2),p=c*c,f=p*c,d=h*t+3*u*c*n+3*l*c*c*r+f*o,g=h*e+3*u*c*i+3*l*c*c*a+f*s,v=t+2*c*(n-t)+p*(r-2*n+t),y=e+2*c*(i-e)+p*(a-2*i+e),m=n+2*c*(r-n)+p*(o-2*r+n),b=i+2*c*(a-i)+p*(s-2*a+i),x=l*t+c*n,O=l*e+c*i,j=l*r+c*o,w=l*a+c*s,C=90-180*Math.atan2(v-m,y-b)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:b},start:{x:x,y:O},end:{x:j,y:w},alpha:C}},A=function(t,e,n){var i=S(t),r=S(e);if(!C(i,r))return n?0:[];for(var a=m.apply(0,t),o=m.apply(0,e),s=~~(a/8),c=~~(o/8),l=[],h=[],u={},p=n?0:[],f=0;f<s+1;f++){var d=M.apply(0,t.concat(f/s));l.push({x:d.x,y:d.y,t:f/s})}for(f=0;f<c+1;f++){d=M.apply(0,e.concat(f/c));h.push({x:d.x,y:d.y,t:f/c})}for(f=0;f<s;f++)for(var g=0;g<c;g++){var v=l[f],y=l[f+1],b=h[g],O=h[g+1],j=Math.abs(y.x-v.x)<.001?"y":"x",w=Math.abs(O.x-b.x)<.001?"y":"x",A=x(v.x,v.y,y.x,y.y,b.x,b.y,O.x,O.y);if(A){if(u[A.x.toFixed(4)]===A.y.toFixed(4))continue;u[A.x.toFixed(4)]=A.y.toFixed(4);var k=v.t+Math.abs((A[j]-v[j])/(y[j]-v[j]))*(y.t-v.t),T=b.t+Math.abs((A[w]-b[w])/(O[w]-b[w]))*(O.t-b.t);k>=0&&k<=1&&T>=0&&T<=1&&(n?p+=1:p.push({x:A.x,y:A.y,t1:k,t2:T}))}}return p},k=function(t,e,n){var i,r,a,o,s,c,l,h,u,p;t=d(t),e=d(e);for(var f=n?0:[],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]?(u=[i,r].concat(y.slice(1)),i=u[6],r=u[7]):(u=[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])a=l=x[1],o=h=x[2];else{"C"===x[0]?(p=[a,o].concat(x.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,l,h,l,h],a=l,o=h);var O=A(u,p,n);if(n)f+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=m,O[j].bez1=u,O[j].bez2=p;f=f.concat(O)}}}}}return f},T=function(t,e){return k(t,e)};function L(t,e){var n=[],i=[];function r(t,e){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&i.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];r(a,e)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function B(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 a=i,o=1/n,s=0;s<n-1;s++){var c=o/(1-o*s),l=L(a,c);r.push(l.left),a=l.right}r.push(a);var h=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=e.concat(t[t.length-1]),e}));return h}var P=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(B(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=n-1;a++)i.push(r)}return i},I=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<i-n;o++)t.push(t[0]);return t}for(o=0;o<i;o++){var s=Math.floor(r*o);a[s]=(a[s]||0)+1}var c=a.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(P(t[r],t[r+1],i))}),[]);return c.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||c.push("Z"),c},E=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 F(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 D=function(t,e){var n,i,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],c=0;c<=r;c++)s[c]=[],s[c][0]={min:c};for(var l=0;l<=a;l++)s[0][l]={min:l};for(c=1;c<=r;c++){n=t[c-1];for(l=1;l<=a;l++){i=e[l-1],o=E(n,i)?0:1;var h=s[c-1][l].min+1,u=s[c][l-1].min+1,p=s[c-1][l-1].min+o;s[c][l]=F(h,u,p)}}return s},R=function(t,e){var n=D(t,e),i=t.length,r=e.length,a=[],o=1,s=1;if(n[i][r].min!==i){for(var c=1;c<=i;c++){var l=n[c][c].min;s=c;for(var h=o;h<=r;h++)n[c][h].min<l&&(l=n[c][h].min,s=h);o=s,n[c][o].type&&a.push({index:c-1,type:n[c][o].type})}for(c=a.length-1;c>=0;c--)o=a[c].index,"add"===a[c].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}i=t.length;var u=r-i;if(i<r)for(c=0;c<u;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 _(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),o=H(e)[0],s=1;s<=n;s++)a*=s,i=Math.floor(t.length*a),0===i?r.unshift([o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]);return r}function H(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;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":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var G=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=H(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=_(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=_(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=_(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}},b825:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return p})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return v})),n.d(e,"Region",(function(){return m})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return C})),n.d(e,"RegionFilter",(function(){return M})),n.d(e,"Shape",(function(){return k})),n.d(e,"Html",(function(){return P}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("060b"),s=n("8ea8"),c=n("e546");function l(t,e){var n=e.x,a=e.y,l=e.content,h=e.style,u=e.id,p=e.name,f=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:u+"-group",name:p+"-group",attrs:{x:n,y:a}}),x=b.addShape({type:"text",id:u,name:p,attrs:Object(i["a"])({x:0,y:0,text:l},h)}),O=Object(c["c"])(Object(r["q"])(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o["a"])(!v,x,j,y)}if(m){var w=Object(r["q"])(m,"style",{}),C=x.getCanvasBBox(),S=C.minX,M=C.minY,A=C.width,k=C.height,T=b.addShape("rect",{id:u+"-bg",name:u+"-bg",attrs:Object(i["a"])({x:S-O[3],y:M-O[0],width:A+O[1]+O[3],height:k+O[0]+O[2]},w)});T.toBack()}Object(s["c"])(b,n,a),Object(s["b"])(b,f,n,a)}var h=n("2f5e"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:h["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:h["a"].fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:h["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["N"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["J"])(n)?n:1,(i>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.position,a=e.content,o=e.style,s=e.offsetX,c=e.offsetY,h=e.autoRotate,u=e.maxLength,p=e.autoEllipsis,f=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,i,r),m=y.x+s,b=y.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:a,style:o,maxLength:u,autoEllipsis:p,ellipsisPosition:f,background:d,isVertical:v};if(h){var O=[i.x-n.x,i.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(a["a"]),p=u,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:h["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:h["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"),a=this.get("style"),o=this.getElementId("text"),s=this.get("name")+"-text",c=this.get("maxLength"),h=this.get("autoEllipsis"),u=this.get("isVertical"),p=this.get("ellipsisPosition"),f=this.get("background"),d=this.get("rotate"),g={id:o,name:s,x:n,y:i,content:r,style:a,maxLength:c,autoEllipsis:h,isVertical:u,ellipsisPosition:p,background:f,rotate:d};l(t,g)},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}(a["a"]),d=f,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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,a=Object(c["e"])(e,n,i),o=Object(c["e"])(e,n,r),s=r-i>Math.PI?1:0,l=[["M",a.x,a.y]];if(r-i===2*Math.PI){var h=Object(c["e"])(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,h.x,h.y]),l.push(["A",n,n,0,s,1,o.x,o.y])}else l.push(["A",n,n,0,s,1,o.x,o.y]);return l},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}(a["a"]),v=g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:h["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"),a=Object(c["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a["a"]),m=y,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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}),a=this.get("src");return Object(i["a"])({x:r.x,y:r.y,img:a,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}(a["a"]),x=b,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:h["a"].lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:h["a"].textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:h["a"].fontFamily}}}})},e.prototype.renderInner=function(t){Object(r["q"])(this.get("line"),"display")&&this.renderLine(t),Object(r["q"])(this.get("text"),"display")&&this.renderText(t),Object(r["q"])(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,a=e.text,o=Object(i["f"])(e,["x","y","text"]),s=this.get("text"),c=s.background,h=s.maxLength,u=s.autoEllipsis,p=s.isVertival,f=s.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:c,maxLength:h,autoEllipsis:u,isVertival:p,ellipsisPosition:f};l(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),a=Object(r["q"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,h=c.maxX,u=c.minY,p=c.maxY,f=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o&&f){var v=f.attr("x"),y=f.attr("y"),m=d.getCanvasBBox(),b=m.width,x=m.height,O=0,j=0;if(n+l<=o.minX)if("leftward"===e)O=1;else{var w=o.minX-(n+l);v=f.attr("x")+w}else if(n+h>=o.maxX)if("rightward"===e)O=-1;else{w=n+h-o.maxX;v=f.attr("x")-w}if(O&&(g&&g.attr("path",[["M",0,0],["L",a*O,0]]),v=(a+2+b)*O),i+u<=o.minY)if("upward"===e)j=1;else{w=o.minY-(i+u);y=f.attr("y")+w}else if(i+p>=o.maxY)if("downward"===e)j=-1;else{w=i+p-o.maxY;y=f.attr("y")-w}j&&(g&&g.attr("path",[["M",0,0],["L",0,a*j]]),y=(a+2+x)*j),v===f.attr("x")&&y===f.attr("y")||Object(s["c"])(f,v,y)}},e.prototype.getShapeAttrs=function(){var t=Object(r["q"])(this.get("line"),"display"),e=Object(r["q"])(this.get("point"),"style",{}),n=Object(r["q"])(this.get("line"),"style",{}),a=Object(r["q"])(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(r["q"])(this.get("line"),"length",0):0,c=0,l=0,h="top",u="start";switch(o){case"upward":l=-1,h="bottom";break;case"downward":l=1,h="top";break;case"leftward":c=-1,u="end";break;case"rightward":c=1,u="start";break}return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",s*c,s*l]]},n),text:Object(i["a"])({x:(s+2)*c,y:(s+2)*l,text:Object(r["q"])(this.get("text"),"content",""),textBaseline:h,textAlign:u},a)}},e}(a["a"]),j=O,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:h["a"].regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:h["a"].textColor,fontFamily:h["a"].fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(r["q"])(this.get("region"),"style",{}),n=(Object(r["q"])(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=Object(c["j"])(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({path:s},e)});var h=Object(i["a"])({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));l(t,h)}},e}(a["a"]),C=w,S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["j"])(this.get("shapes"),(function(t,n){var i=t.get("type"),o=Object(r["e"])(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=Object(c["k"])({start:n,end:i});a.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(a["a"]),M=S,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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["Z"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["G"])(e)&&e(t)},e}(a["a"]),k=A,T=n("7c8a"),L=n("75ed"),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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" style="position:absolute"></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["G"])(e)?e(t):e;if(Object(r["D"])(n))t.appendChild(n);else if(Object(r["N"])(n)||Object(r["J"])(n)){var i=Object(T["b"])(""+n);i&&t.appendChild(i)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),c=Object(T["d"])(t),l=Object(T["c"])(t),h={x:n,y:i};"middle"===r?h.x-=Math.round(c/2):"right"===r&&(h.x-=Math.round(c)),"middle"===a?h.y-=Math.round(l/2):"bottom"===a&&(h.y-=Math.round(l)),o&&(h.x+=o),s&&(h.y+=s),Object(T["e"])(t,{position:"absolute",left:h.x+"px",top:h.y+"px",zIndex:this.get("zIndex")})},e}(L["a"]),P=B},bb31:function(t,e){},bbad: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 a})),n.d(e,"LIST_ITEM_CLASS",(function(){return o})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return c})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return h})),n.d(e,"CROSSHAIR_Y",(function(){return u}));var i="g2-tooltip",r="g2-tooltip-title",a="g2-tooltip-list",o="g2-tooltip-list-item",s="g2-tooltip-marker",c="g2-tooltip-value",l="g2-tooltip-name",h="g2-tooltip-crosshair-x",u="g2-tooltip-crosshair-y"},bc88:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("b2cb"),r=n("96de");function a(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var a=o(e,n);return e*r+a*(r-1)}return e}function o(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),a=0;if(Object(i["e"])(t)||""===t)return a;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var o=t.split("\n");Object(i["a"])(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a}function c(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,a=t.fontVariant;return[r,a,i,e+"px",n].join(" ").trim()}},be4e:function(t,e){},bfb1:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return c}));var i=n("68de");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var a in r)["default","Canvas","Group","Shape","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("c029");n.d(e,"Canvas",(function(){return o["a"]}));var s=n("e73e");n.d(e,"Group",(function(){return s["a"]}));var c="0.5.6"},c029:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("22f9"),o=n("7349"),s=n("00f9"),c=n("73ec"),l=n("68de"),h=n("e73e"),u=n("8937"),p=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,f=/^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(u["j"])(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function v(t,e){var n,i,r=p.exec(t),a=Object(u["Y"])(Object(u["kb"])(parseFloat(r[1])),2*Math.PI),o=r[2];a>=0&&a<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=a&&a<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=a&&a<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(a),c=s*s,l=(i.x-n.x+s*(i.y-n.y))/(c+1)+n.x,h=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",l),e.setAttribute("y2",h),e.innerHTML=g(o)}function y(t,e){var n=f.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),a=parseFloat(n[3]),o=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",a),e.innerHTML=g(o)}var m=function(){function t(t){this.cfg={};var e=null,n=Object(u["nb"])("gradient_");return"l"===t.toLowerCase()[0]?(e=Object(c["b"])("linearGradient"),v(t,e)):(e=Object(c["b"])("radialGradient"),y(t,e)),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}(),b=m,x={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},O={x:"-40%",y:"-40%",width:"200%",height:"200%"},j=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(c["b"])("filter");return Object(u["j"])(O,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(u["nb"])("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(u["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[x[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n      dx="'+(t.dx||0)+'"\n      dy="'+(t.dy||0)+'"\n      stdDeviation="'+(t.blur?t.blur/10:0)+'"\n      flood-color="'+(t.color?t.color:"#000")+'"\n      flood-opacity="'+(t.opacity?t.opacity:1)+'"\n      />';e.innerHTML=n},t}(),w=j,C=function(){function t(t,e){this.cfg={};var n=Object(c["b"])("marker"),i=Object(u["nb"])("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 a=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===a?this._setDefaultPath(e,r):(this.cfg=a,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(u["A"])(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}(),S=C,M=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c["b"])("clipPath");this.el=e,this.id=Object(u["nb"])("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),A=M,k=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,T=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(u["nb"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=k.exec(t),a=r[2];n.setAttribute("href",a);var o=new Image;function s(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return a.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=a,o.complete?s():(o.onload=s,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),L=T,B=function(){function t(t){var e=Object(c["b"])("defs"),n=Object(u["nb"])("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 S(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 b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new S(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new L(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new A(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),P=B,I=function(t){function e(e){return t.call(this,Object(i["a"])(Object(i["a"])({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(i["c"])(e,t),e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return h["a"]},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!a["a"][i.tagName]){var r=i.parentNode;while(r&&!a["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 P(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(o["a"])(t,e)},e}(r["AbstractCanvas"]);e["a"]=I},c2ad:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("4799"),o=n("f5e5"),s=n("8937"),c=n("7326"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.onCanvasChange=function(t){Object(o["h"])(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(o["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=Object(s["W"])(e),a=Object(s["U"])(e),o=Object(s["W"])(n),l=Object(s["U"])(n);i={minX:r,minY:o,x:r,y:o,maxX:a,maxY:l,width:a-r,height:l-o};var h=this.cfg.canvas;if(h){var u=h.getViewRange();this.set("isInView",Object(c["f"])(i,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children,i=!e||this.cfg.refresh;n.length&&i&&(t.save(),Object(o["a"])(t,this),this._applyClip(t,this.getClip()),Object(o["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"]=l},c771:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return u})),n.d(e,"Line",(function(){return f}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("2f5e"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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:o["a"].lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.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),a=this.get("closed");return a?n=n.concat(r):(r[0][0]="L",n=n.concat(r),n.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"),a=this.get("alternateColor"),o=null;Object(r["j"])(i,(function(s,c){var l=s.id||c;if(n){var h=e.getPathStyle();h=Object(r["G"])(h)?h(s,c,i):h;var u=e.getElementId("line-"+l),p=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:u,attrs:Object(r["X"])({path:p},h)})}if(a&&c>0){var f=e.getElementId("region-"+l),d=c%2===0;if(Object(r["N"])(a))d&&e.drawAlternateRegion(f,t,o.points,s.points,a);else{var g=d?a[1]:a[0];e.drawAlternateRegion(f,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var a=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:r}})},e}(a["a"]),c=s;function l(t,e,n,i){var r=n-t,a=i-e;return Math.sqrt(r*r+a*a)}var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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=this.getLineType(),i=this.get("closed"),a=[];if(t.length)if("circle"===n){var o=this.get("center"),s=t[0],c=l(o.x,o.y,s.x,s.y),h=e?0:1;i?(a.push(["M",o.x,o.y-c]),a.push(["A",c,c,0,0,h,o.x,o.y+c]),a.push(["A",c,c,0,0,h,o.x,o.y-c]),a.push(["Z"])):Object(r["j"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["A",c,c,0,0,h,t.x,t.y])}))}else Object(r["j"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])})),i&&a.push(["Z"]);return a},e}(c),u=h,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c),f=p},ccaf:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("e897"),o=n("b2cb"),s=n("6928"),c=n("2e60"),l=a["a"].transform,h="matrix",u=["zIndex","capture","visible","type"],p=["repeat"],f=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(r["A"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function y(t,e){var n={},i=e.attr();return Object(r["j"])(t,(function(t,e){-1!==p.indexOf(e)||Object(r["F"])(i[e],t)||(n[e]=t)})),n}function m(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,a=e.duration,o=Object.prototype.hasOwnProperty;return Object(r["j"])(t,(function(t){n+i<t.startTime+t.delay+t.duration&&a>t.delay&&Object(r["j"])(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["X"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["c"])(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],a=e[1];if(!i)return this.attrs;if(Object(r["L"])(i)){for(var o in i)this.setAttr(o,i[o]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,a),this.afterAttrsChange((t={},t[i]=a,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(o["j"])(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(h,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(h)},e.prototype.setMatrix=function(t){this.attr(h,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=this.attr("matrix"),n=null;n=t&&e?Object(s["b"])(t,e):e||t,this.set("totalMatrix",n),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(),a=Object(r["ob"])(t.type),o=i[a];o&&(n=new o({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(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r["j"])(e,(function(t,i){Object(r["A"])(e[i])?n[i]=g(e[i]):n[i]=e[i]}));var i=this.constructor,a=new i({attrs:n});return Object(r["j"])(u,(function(e){a.set(e,t.get(e))})),a},e.prototype.destroy=function(){var e=this.destroyed;e||(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];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var i=this.get("animations")||[];n.timer||n.initTimer();var a,o,s,c,l,h=t[0],u=t[1],p=t[2],f=void 0===p?"easeLinear":p,d=t[3],g=void 0===d?r["Z"]:d,b=t[4],x=void 0===b?0:b;Object(r["G"])(h)?(a=h,h={}):Object(r["L"])(h)&&h.onFrame&&(a=h.onFrame,o=h.repeat),Object(r["L"])(u)?(l=u,u=l.duration,f=l.easing||"easeLinear",x=l.delay||0,o=l.repeat||o||!1,g=l.callback||r["Z"],s=l.pauseCallback||r["Z"],c=l.resumeCallback||r["Z"]):(Object(r["J"])(g)&&(x=g,g=null),Object(r["G"])(f)?(g=f,f="easeLinear"):f=f||"easeLinear");var O=y(h,this),j={fromAttrs:v(O,this),toAttrs:O,duration:u,easing:f,repeat:o,callback:g,pauseCallback:s,resumeCallback:c,delay:x,startTime:n.getTime(),id:Object(r["nb"])(),onFrame:a,pathFormatted:!1};i.length>0?i=m(i,j):n.addAnimator(this),i.push(j),this.set("animations",i),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&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(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"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["j"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o["g"])(s,n))return"break";Object(r["A"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l<a.length;l++){var h=s(l);if("break"===h)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+f+n.type;(i[r]||i[d])&&(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=l(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=l(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=l(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(),a=l(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=l(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(c["a"]);e["a"]=b},d177: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 a})),n.d(e,"c",(function(){return o}));var i=0,r=.5,a=.5,o=.05},d4c6:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var i=new Map;function r(t,e){i.set(t,e)}function a(t){return i.get(t)}var o=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,a=e.height;return{x:n,y:i,width:r,height:a}},s=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}},c=n("1183");function l(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 h(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,a=null;return n&&(r=n.getCanvasBBox(),e=l(e,r)),i&&(a=i.getCanvasBBox(),e=l(e,a)),e}var u=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;a<n.length;a++){var o=n[a];i.push(o[0]),r.push(o[1])}var s=c["f"].getBBoxByArray(i,r),l=s.x,u=s.y,p=s.width,f=s.height,d={minX:l,minY:u,maxX:l+p,maxY:u+f};return d=h(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},p=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;a<n.length;a++){var o=n[a];i.push(o[0]),r.push(o[1])}return c["f"].getBBoxByArray(i,r)},f=n("bc88"),d=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,a=e.fontSize,o=e.lineHeight,s=e.font;s||(s=Object(f["a"])(e));var c,l=Object(f["c"])(r,s);if(l){var h=e.textAlign,u=e.textBaseline,p=Object(f["b"])(r,a,o),d={x:n,y:i-p};h&&("end"===h||"right"===h?d.x-=l:"center"===h&&(d.x-=l/2)),u&&("top"===u?d.y+=p:"middle"===u&&(d.y+=p/2)),c={x:d.x,y:d.y,width:l,height:p}}else c={x:n,y:i,width:0,height:0};return c},g=n("2ef1"),v=n("8937");function y(t,e){for(var n=[],i=[],r=[],a=0;a<t.length;a++){var o=t[a],s=o.currentPoint,l=o.params,h=o.prePoint,u=void 0;switch(o.command){case"Q":u=c["e"].box(h[0],h[1],l[1],l[2],l[3],l[4]);break;case"C":u=c["b"].box(h[0],h[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var p=o.arcParams;u=c["a"].box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(s[0]),i.push(s[1]);break}u&&(o.box=u,n.push(u.x,u.x+u.width),i.push(u.y,u.y+u.height)),e&&("L"===o.command||"M"===o.command)&&o.prePoint&&o.nextPoint&&r.push(o)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var f=Object(v["W"])(n),d=Object(v["W"])(i),g=Object(v["U"])(n),y=Object(v["U"])(i);if(0===r.length)return{x:f,y:d,width:g-f,height:y-d};for(a=0;a<r.length;a++){o=r[a],s=o.currentPoint;var b=void 0;s[0]===f?(b=m(o,e),f-=b.xExtra):s[0]===g&&(b=m(o,e),g+=b.xExtra),s[1]===d?(b=m(o,e),d-=b.yExtra):s[1]===y&&(b=m(o,e),y+=b.yExtra)}return{x:f,y:d,width:g-f,height:y-d}}function m(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,a=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),o=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((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!c||0===Math.sin(c)||Object(v["K"])(c,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),h=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));l=l>Math.PI/2?Math.PI-l:l,h=h>Math.PI/2?Math.PI-h:h;var u={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(h-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return u}var b=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,a=t.get("segments")||Object(g["e"])(n),o=y(a,r),s=o.x,c=o.y,l=o.width,u=o.height,p={minX:s,minY:c,maxX:s+l,maxY:c+u};return p=h(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}},x=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,a),l=Math.max(i,a),u={minX:o,maxX:s,minY:c,maxY:l};return u=h(t,u),{x:u.minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}},O=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;return{x:n-r,y:i-a,width:2*r,height:2*a}};r("rect",o),r("image",o),r("circle",s),r("marker",s),r("polyline",u),r("polygon",p),r("text",d),r("path",b),r("line",x),r("ellipse",O)},d7b4:function(t,e,n){"use strict";var i=n("b825");n.d(e,"Annotation",(function(){return i}));var r=n("7cfd");n.d(e,"Axis",(function(){return r}));var a=n("ff7f");n.d(e,"Crosshair",(function(){return a}));var o=n("c771");n.d(e,"Grid",(function(){return o}));var s=n("e5b1");n.d(e,"Legend",(function(){return s}));var c=n("0a1f");n.d(e,"Tooltip",(function(){return c}));n("3665"),n("31e6"),n("75ed");var l=n("7c50");n.d(e,"Slider",(function(){return l["a"]}));var h=n("deef");n.d(e,"Scrollbar",(function(){return h["a"]}));n("be4e"),n("bb31");var u=n("d7ff");n.d(e,"propagationDelegate",(function(){return u["a"]}));var p=n("bbad");n.d(e,"TOOLTIP_CSS_CONST",(function(){return p}))},d7ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6855");function r(t,e,n){var r=new i["Event"](e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var a=t.getParent();while(a)a.emitDelegation(e,r),r.propagationPath.push(a),a=a.getParent()}},deef:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("9ab4"),r=n("7c8a"),a=n("8937"),o=n("31e6"),s={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},c={default:s,hover:{thumbColor:"rgba(0,0,0,0.2)"}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=a["Z"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(a["q"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(a["q"])(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 o=e.isMobile?Object(a["q"])(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(a["q"])(t,"touches.0.clientY"):t.clientY,c=i?o:s,l=c-e.startPos;e.startPos=c,e.updateThumbOffset(r+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM(),c=s.getBoundingClientRect(),l=t.clientX,h=t.clientY,u=i?l-c.left-r-o/2:h-c.top-a-o/2,p=e.validateRange(u);e.updateThumbOffset(p)},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["c"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(a["c"])(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(a["c"])(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(a["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:c})},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,o=Object(a["h"])({},c,r).default,s=o.lineCap,l=o.trackColor,h=o.size,u=Object(a["q"])(this.cfg,"size",h),p=this.get("isHorizontal")?{x1:0+u/2,y1:u/2,x2:n-u/2,y2:u/2,lineWidth:u,stroke:l,lineCap:s}:{x1:u/2,y1:0+u/2,x2:u/2,y2:n-u/2,lineWidth:u,stroke:l,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:p})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,o=Object(a["h"])({},c,r).default,s=o.size,l=o.lineCap,h=o.thumbColor,u=Object(a["q"])(this.cfg,"size",s),p=this.get("isHorizontal")?{x1:n+u/2,y1:u/2,x2:n+i-u/2,y2:u/2,lineWidth:u,stroke:h,lineCap:l,cursor:"default"}:{x1:u/2,y1:n+u/2,x2:u/2,y2:n+i-u/2,lineWidth:u,stroke:h,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:p})},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);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.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,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:o+a/2,x2:o+r-a/2}):s.attr({y1:o+a/2,y2:o+r-a/2}),this.emitOffsetChange(o)}},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(a["c"])(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(o["a"])},e1c6:function(t,e){},e546:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return u})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return y})),n.d(e,"f",(function(){return m}));var i=n("8937");function r(t){var e=0,n=0,r=0,a=0;return Object(i["J"])(t)?e=n=r=a=t:Object(i["A"])(t)&&(e=t[0],r=Object(i["H"])(t[1])?t[0]:t[1],a=Object(i["H"])(t[2])?t[0]:t[2],n=Object(i["H"])(t[3])?r:t[3]),[e,r,a,n]}function a(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=0;i--)t.removeChild(e[i])}function o(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),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-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),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}function l(t,e,n,i){var r=t+n,a=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(a)?0:a}}function h(t,e,n){return(1-n)*t+e*n}function u(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function p(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}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 d(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return l(n,i,r-n,a-i)}function g(t){var e,n=t.getClip(),r=n&&n.getBBox();if(t.isGroup()){var a=1/0,o=-1/0,s=1/0,c=-1/0,h=t.getChildren();h.length>0?Object(i["j"])(h,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=g(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]),l=t.applyToMatrix([e.maxX,e.maxY,1]),h=Math.min(n[0],i[0],r[0],l[0]),u=Math.max(n[0],i[0],r[0],l[0]),p=Math.min(n[1],i[1],r[1],l[1]),f=Math.max(n[1],i[1],r[1],l[1]);h<a&&(a=h),u>o&&(o=u),p<s&&(s=p),f>c&&(c=f)}})):(a=0,o=0,s=0,c=0),e=l(a,s,o-a,c-s)}else e=t.getBBox();return r?d(e,r):e}function v(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 y(t){return t+"px"}function m(t,e,n,i){var r=p(t,e),a=i/r,o=0;return"start"===n?o=0-a:"end"===n&&(o=1+a),{x:h(t.x,e.x,o),y:h(t.y,e.y,o)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return b})),n.d(e,"Continuous",(function(){return w})),n.d(e,"Base",(function(){return p}));var i=n("9ab4"),r=n("8937"),a=n("060b"),o=n("8ea8"),s=n("9778"),c=n("2f5e"),l=n("31e6"),h=n("e546"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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,a=e.height;return n&&(r=Math.min(r,n)),i&&(a=Math.min(a,i)),Object(h["b"])(e.minX,e.minY,r,a)},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(h["c"])(e.padding),a=Object(i["a"])({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i["a"])({text:o,x:e.x,y:e.y},a)}),c=s.getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(h["c"])(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l["a"]),p=u,f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:c["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c["a"].fontFamily,fontWeight:"normal",lineHeight:12},g="navigation-arrow-right",v="navigation-arrow-left",y={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},m=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["c"])(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:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},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"}},pageNavigator:f,itemName:{spacing:16,style:d},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:d,spacing:6},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["X"])(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(),a=r.indexOf(t),o=this.createOffScreenGroup(),s=this.drawItem(t,a,this.getItemHeight(),o);this.updateElements(s,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"}),a=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),c=this.get("itemMarginBottom"),l=this.get("currentPoint"),h=l.x,u=l.y,p=this.get("layout"),f=this.get("items"),d=!1,g=0,v=this.get("maxWidth"),y=this.get("maxHeight");Object(r["j"])(f,(function(t,n){var r=e.drawItem(t,n,a,i),f=r.getBBox(),m=o||f.width;m>g&&(g=m),"horizontal"===p?(v&&v<l.x+m-h&&(d=!0,l.x=h,l.y+=a+c),e.moveElementTo(r,l),l.x+=m+s):(y&&y<l.y+a+c-u&&(d=!0,l.x+=g+s,l.y=u,g=0),e.moveElementTo(r,l),l.y+=a+c)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=h,this.startY=u,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(r["G"])(e)){var n=this.getItems();n.forEach((function(r,a){var o=Object(i["a"])(Object(i["a"])({},d),e(r,a,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,a){var o=Object(i["a"])(Object(i["a"])(Object(i["a"])({x:0,y:a/2},e.style),{symbol:Object(r["q"])(n.marker,"symbol","circle")}),Object(r["q"])(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),c=s.getBBox();s.attr("x",c.width/2);var l=s.attr(),h=l.stroke,u=l.fill;return h&&s.set("isStroke",!0),u&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,a,o,s,c){var l=n.formatter,h=n.style,u=Object(i["a"])(Object(i["a"])({x:s,y:o/2,text:l?l(a[e],a,c):a[e]},d),Object(r["G"])(h)?h(a,c,this.getItems()):h);return this.addShape(t,{type:"text",id:this.getElementId("item-"+a.id+"-"+e),name:"legend-item-"+e,attrs:u})},e.prototype.drawRadio=function(t,e,n,r,a){var o,s,c=e.style||{},l=null!==(o=c.r)&&void 0!==o?o:r/2,h=3.6*l/8,u=[a+l,r/2-l],p=u[0],f=u[1],d=[p+l,f+l],g=d[0],v=d[1],y=[p,v+l],m=y[0],b=y[1],x=[a,f+l],O=x[0],j=x[1],w=n.showRadio,C=Object(i["a"])(Object(i["a"])({path:[["M",p,f],["A",l,l,0,0,1,g,v],["L",g-h,v],["L",g,v],["A",l,l,0,0,1,m,b],["L",m,b-h],["L",m,b],["A",l,l,0,0,1,O,j],["L",O+h,j],["L",O,j],["A",l,l,0,0,1,p,f],["L",p,f+h]],stroke:"#000000",fill:"#ffffff"},c),{opacity:w?null!==(s=null===c||void 0===c?void 0:c.opacity)&&void 0!==s?s:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:C});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,o){var s="item-"+t.id,c=this.addGroup(o,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),l=this.addGroup(c,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),h=this.get("marker"),u=this.get("itemName"),p=this.get("itemValue"),f=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),v=0;if(h){var y=this.drawMarker(l,h,t,n),m=h.spacing,b=Object(r["q"])(t,["marker","spacing"]);Object(r["J"])(b)&&(m=b),v=y.getBBox().maxX+m}if(u){var x=this.drawItemText(l,"name",u,t,n,v,e);g&&Object(a["a"])(!0,x,Object(r["c"])(g-v,0,g)),v=x.getBBox().maxX+u.spacing}if(p){var O=this.drawItemText(l,"value",p,t,n,v,e);g&&(p.alignRight?(O.attr({textAlign:"right",x:g}),Object(a["a"])(!0,O,Object(r["c"])(g-v,0,g),"head")):Object(a["a"])(!0,O,Object(r["c"])(g-v,0,g))),v=O.getBBox().maxX+p.spacing}if(d&&this.drawRadio(l,d,t,n,v),f){var j=l.getBBox(),w=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(i["a"])({x:0,y:0,width:j.width,height:n},f.style)});w.toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,a=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),c=this.get("maxWidth"),l=this.get("maxHeight"),h=this.get("itemWidth"),u=this.get("itemSpacing"),p=this.getItemHeight(),d=Object(r["h"])({},f,this.get("pageNavigator")),g=this.drawNavigation(t,o,"00/00",d),v=g.getBBox(),y={x:i,y:a},m=1,b=0,x=0,O=0,j=this.get("itemMarginBottom");function w(t,e){var n=t.getBBox(),i=h||n.width,r=e.x+i+u+v.width;return r>c}if("horizontal"===o){var C=this.get("maxRow")||1,S=p+(1===C?0:j),M=c-u-v.width-v.minX;this.pageHeight=S*C,this.pageWidth=M,Object(r["j"])(s,(function(t){var e=t.getBBox(),r=h||e.width;(b&&b<y.x+r+u||w(t,y))&&(1===m&&(b=y.x+u,n.moveElementTo(g,{x:M,y:y.y+p/2-v.height/2-v.minY})),m+=1,y.x=i,y.y+=S),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:r+u,height:p}}),y.x+=r+u}))}else{Object(r["j"])(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),O=x,x+=u,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,p+j);var A=Math.floor(this.pageHeight/(p+j));Object(r["j"])(s,(function(t,e){0!==e&&e%A===0&&(m+=1,y.x+=x,y.y=a),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:i+O/2-v.width/2-v.minX,y:l-v.height-v.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(r["q"])(a.marker,"style",{}),l=c.size,h=void 0===l?12:l,u=Object(i["f"])(c,["size"]),p=this.drawArrow(s,o,v,"horizontal"===e?"up":"left",h,u);p.on("click",this.onNavigationBack);var f=p.getBBox();o.x+=f.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(i["a"])({x:o.x,y:o.y+h/2,text:n,textBaseline:"middle"},Object(r["q"])(a.text,"style"))}),y=d.getBBox();o.x+=y.width+2;var m=this.drawArrow(s,o,g,"horizontal"===e?"down":"right",h,u);return m.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(r["h"])({},f,this.get("pageNavigator")),n=e.marker.style,i=n.fill,a=n.opacity,o=n.inactiveFill,s=n.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),h=t?t.findById(this.getElementId(v)):this.getElementByLocalId(v),u=t?t.findById(this.getElementId(g)):this.getElementByLocalId(g);l.attr("text",c),h.attr("opacity",1===this.currentPageIndex?s:a),h.attr("fill",1===this.currentPageIndex?o:i),h.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),u.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:a),u.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:i),u.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var p=h.getBBox().maxX+2;l.attr("x",p),p+=l.getBBox().width+2,this.updateArrowPath(u,{x:p,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,s){var c=e.x,l=e.y,h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["a"])({size:a,direction:r,path:[["M",c+a/2,l],["L",c,l+a],["L",c+a,l+a],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Object(o["e"])({x:c+a/2,y:l+a/2},y[r])),h},e.prototype.updateArrowPath=function(t,e){var n=e.x,i=e.y,r=t.attr(),a=r.size,s=r.direction,c=Object(o["e"])({x:n+a/2,y:i+a/2},y[s]);t.attr("path",[["M",n+a/2,i],["L",n,i+a],["L",n+a,i+a],["Z"]]),t.attr("matrix",c)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),a="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Object(o["f"])(a)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var a=e.getChildren(),o=this.get("itemStates");Object(r["j"])(a,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Object(s["a"])(t,i,o);r&&(e.attr(r),"marker"!==i||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}(p),b=m,x=1.4,O=.4,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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(),r=i[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[0];r>n&&(r=n),e.setValue([r,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),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),c=r-i;c<0?a[0]+c>s.min?e.setValue([a[0]+c,a[1]+c]):e.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+c<s.max?e.setValue([a[0]+c,a[1]+c]):e.setValue([s.max-o,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"),a=n.style,o=n.align,s=n.formatter,c=this.get(t),l=this.getLabelAlignAttrs(t,o),h="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(h),name:"legend-label-"+t,attrs:Object(i["a"])(Object(i["a"])({x:0,y:0,text:Object(r["G"])(s)?s(c):c},a),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),i="center",r="middle";return n?(i="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",i="min"===t?"start":"end"):(i="start",r="middle"),{textAlign:i,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),a=r.size,o=r.defaultLength,s=r.type,c=this.isVertical(),l=o,h=n,u=i;h||(h=c?a:l),u||(u=c?l:a);var p=[];return"color"===s?(p.push(["M",t,e]),p.push(["L",t+h,e]),p.push(["L",t+h,e+u]),p.push(["L",t,e+u]),p.push(["Z"])):(p.push(["M",t+h,e]),p.push(["L",t+h,e+u]),p.push(["L",t,e+u]),p.push(["Z"])),p},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(i["a"])({path:this.getRailPath(0,0)},n)})},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++){var r=i/(n-1);e+=" "+r+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return Object(r["e"])(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,a=this.getCurrentValue(),o=a[0],s=a[1],c=this.getRailBBox(t),l=this.getPointByValue(o,t),h=this.getPointByValue(s,t),u=this.isVertical();return u?(e=c.minX,n=l.y,i=c.width,r=h.y-l.y):(e=l.x,n=c.minY,i=h.x-l.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["X"])({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(),a=this.getClipTrackAttrs(t);r?r.attr(a):i.setClip({type:"rect",attrs:a})},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=n.max,a=(t-i)/(r-i),o=this.getRailBBox(e),s=this.isVertical(),c={x:0,y:0};return s?(c.x=o.minX+o.width/2,c.y=Object(h["g"])(o.minY,o.maxY,a)):(c.x=Object(h["g"])(o.minX,o.maxX,a),c.y=o.minY+o.height/2),c},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,a=i.max,o=this.getRailCanvasBBox(),s=this.isVertical(),c=this.get("step");n=s?(e-o.minY)/o.height:(t-o.minX)/o.width;var l=Object(h["g"])(r,a,n);if(c){var u=Math.round((l-r)/c);l=r+u*c}return l>a&&(l=a),l<r&&(l=r),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(i["h"])(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(i["h"])(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,a=e.x,o=e.y,s=r*x,c=r/2,l=r/6;if(n){var h=a+s*O;i.push(["M",a,o]),i.push(["L",h,o+c]),i.push(["L",a+s,o+c]),i.push(["L",a+s,o-c]),i.push(["L",h,o-c]),i.push(["Z"]),i.push(["M",h,o+l]),i.push(["L",a+s-2,o+l]),i.push(["M",h,o-l]),i.push(["L",a+s-2,o-l])}else{var u=o+s*O;i.push(["M",a,o]),i.push(["L",a-c,u]),i.push(["L",a-c,o+s]),i.push(["L",a+c,o+s]),i.push(["L",a+c,u]),i.push(["Z"]),i.push(["M",a-l,u]),i.push(["L",a-l,o+s-2]),i.push(["M",a+l,u]),i.push(["L",a+l,o+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),c=t.findById(s),l=this.isVertical();c?c.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(i["a"])(Object(i["a"])({path:o},a.style),{cursor:l?"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 a=this.isVertical(),o=a?"height":"width",s=this.get("label"),c=s.align,l=s.spacing,h=this.get("max"+Object(r["ob"])(o));if(h){var u="rail"===c?n[o]+t[o]+e[o]+2*l:n[o],p=u-h;p>0&&this.changeRailLength(i,o,n[o]-p)}},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"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),h=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+h/2}),this.changeRailPosition(n,i.x+c.width+o,i.y),e.attr({x:i.x+c.width+s.width+2*o,y:i.y+h/2})):"top"===a?(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+o)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+o}),e.attr({x:i.x+s.width,y:i.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+o),e.attr({x:i.x,y:i.y+c.height+s.height+2*o});else if("right"===a)t.attr({x:i.x+s.width+o,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+o,y:i.y+s.height});else{var h=Math.max(c.width,l.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+h+o,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(p),w=j},e5e2: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(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e["a"]=i},e73e:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o=n("68de"),s=n("7349"),c=n("00f9"),l=n("22f9"),h=n("73ec"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(h["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 o},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(a["j"])(e||n,(function(t,e){l["b"][e]&&i.setAttribute(l["b"][e],t)})),Object(c["c"])(this)},e}(r["AbstractGroup"]);e["a"]=u},e897:function(t,e,n){"use strict";n.d(e,"b",(function(){return r["a"]})),n.d(e,"c",(function(){return r["b"]})),n.d(e,"d",(function(){return r["c"]})),n.d(e,"a",(function(){return i}));var i={};n.r(i),n.d(i,"leftTranslate",(function(){return a})),n.d(i,"leftRotate",(function(){return o})),n.d(i,"leftScale",(function(){return s})),n.d(i,"transform",(function(){return l})),n.d(i,"direction",(function(){return h})),n.d(i,"angleTo",(function(){return u})),n.d(i,"vertical",(function(){return p}));var r=n("20e7");function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromTranslation(i,n),r["a"].multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromRotation(i,n),r["a"].multiply(t,i,e)}function s(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r["a"].fromScaling(i,n),r["a"].multiply(t,i,e)}function c(t,e,n){return r["a"].multiply(t,n,e)}function l(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,r=e.length;i<r;i++){var l=e[i];switch(l[0]){case"t":a(n,n,[l[1],l[2]]);break;case"s":s(n,n,[l[1],l[2]]);break;case"r":o(n,n,l[1]);break;case"m":c(n,n,l[1]);break;default:break}}return n}function h(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var i=r["b"].angle(t,e),a=h(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i}function p(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},e945:function(t,e,n){"use strict";var i=n("8937"),r=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},l=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},h=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function u(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var p,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},g=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),a=i*n-r,o=t[r],s=r===i?o:t[r+1];return u([h(o,s,a,0),h(o,s,a,1),h(o,s,a,2)])},v=function(t){if("#"===t[0]&&7===t.length)return t;p||(p=l()),p.style.color=t;var e=document.defaultView.getComputedStyle(p,"").getPropertyValue("color"),n=r.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=u(i),e},y=function(t){var e=Object(i["N"])(t)?t.split("-"):t,n=Object(i["S"])(e,(function(t){return f(-1===t.indexOf("#")?v(t):t)}));return function(t){return g(n,t)}},m=function(t){if(c(t)){var e,n=void 0;if("l"===t[0]){var r=a.exec(t),l=+r[1]+90;n=r[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=o.exec(t);n=r[4]}var h=n.match(s);return Object(i["j"])(h,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==h.length-1&&(e+=", ")})),e+=")",e}return t};e["a"]={rgb2arr:f,gradient:y,toRGB:Object(i["V"])(v),toCSSGradient:m}},eecd:function(t,e,n){"use strict";var i=n("147d");n.d(e,"getAdjust",(function(){return i["getAdjust"]}));n("41c8");var r=n("94e3"),a=n("29ab"),o=n("f05a"),s=n("f7a9");n("59b0");Object(i["registerAdjust"])("Dodge",r["a"]),Object(i["registerAdjust"])("Jitter",a["a"]),Object(i["registerAdjust"])("Stack",o["a"]),Object(i["registerAdjust"])("Symmetric",s["a"])},f05a:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),o=r["a"],s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,a=e.height,o=void 0===a?NaN:a,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,h=void 0!==l&&l;return n.adjustNames=r,n.height=o,n.size=c,n.reverseOrder=h,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=this,n=e.yField,i=e.reverseOrder,r=n?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,a=e.yField,s=e.reverseOrder,c=s?this.reverse(t):t,l=new o,h=new o;return c.map((function(t){return t.map((function(t){var e,o=r["q"](t,n,0),s=r["q"](t,[a]),c=o.toString();if(s=r["A"](s)?s[1]:s,!r["H"](s)){var u=s>=0?l:h;u.has(c)||u.set(c,0);var p=u.get(c),f=s+p;return u.set(c,f),Object(i["a"])(Object(i["a"])({},t),(e={},e[a]=[p,f],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,a=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,h=new o;return l.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],l=2*o/a;h.has(s)||h.set(s,l/2);var u=h.get(s);return h.set(s,u+l),Object(i["a"])(Object(i["a"])({},t),(n={},n[c]=u,n))}))}))},e}(a["a"]);e["a"]=s},f2fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return L})),n.d(e,"c",(function(){return V}));var i=n("8937"),r={};function a(t){return r[t]}function o(t,e){r[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(i["b"])(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i["S"])(this.ticks,(function(e,n){return Object(i["L"])(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(i["H"])(r)||!Object(i["G"])(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i["b"])(this,this.__cfg__),this.setDomain(),Object(i["E"])(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(i["N"])(t)){var n=a(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i["G"])(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return Object(i["J"])(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=s,l=n("9ab4"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return Object(l["c"])(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(i["J"])(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=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=e;return Object(i["J"])(e)&&!this.values.includes(e)&&(a=this.values[a]),t.prototype.getText.apply(this,Object(l["h"])([a],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i["H"])(this.getConfig("min"))&&(this.min=0),Object(i["H"])(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(c),u=h,p=n("1789"),f=function(t){return function(e,n,r,a){var o=Object(i["H"])(r)?0:r,s=Object(i["H"])(a)?e.length:a;while(o<s){var c=o+s>>>1;t(e[c])>n?s=c:o=c+1}return o}},d="format";function g(t,e){var n=p[d]||p["default"][d];return n(t,e)}function v(t){return Object(i["N"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i["C"])(t)&&(t=t.getTime()),t}var y=1e3,m=60*y,b=60*m,x=24*b,O=31*x,j=365*x,w=[["HH:mm:ss",y],["HH:mm:ss",10*y],["HH:mm:ss",30*y],["HH:mm",m],["HH:mm",10*m],["HH:mm",30*m],["HH",b],["HH",6*b],["HH",12*b],["YYYY-MM-DD",x],["YYYY-MM-DD",4*x],["YYYY-WW",7*x],["YYYY-MM",O],["YYYY-MM",4*O],["YYYY-MM",6*O],["YYYY",380*x]];function C(t,e,n){var r=(e-t)/n,a=f((function(t){return t[1]}))(w,r)-1,o=w[a];return a<0?o=w[0]:a>=w.length&&(o=Object(i["Q"])(w)),o}var S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(l["c"])(e,t),e.prototype.translate=function(t){t=v(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i["J"])(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 i=r?r(i,e):g(i,this.mask),i}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(i["j"])(e,(function(t,n){e[n]=v(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(u),M=S,A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(l["c"])(e,t),e.prototype.scale=function(t){if(Object(i["H"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),r=this.max,a=this.min;if(r===a)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i["x"])(e),r=Object(i["Q"])(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i["H"])(this.minLimit)||(this.min=n),Object(i["H"])(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i["s"])(this.values),e=t.min,n=t.max;Object(i["H"])(this.min)&&(this.min=e),Object(i["H"])(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(i["l"])(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(c),k=A,T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(l["c"])(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}(k),L=T;function B(t,e){var n,i=Math.E;return n=e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t),n}function P(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function I(t,e,n){Object(i["H"])(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i["j"])(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(l["c"])(e,t),e.prototype.invert=function(t){var e,n=this.base,i=P(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,o=this.positiveMin;if(o){if(0===t)return 0;e=P(n,o/n);var s=1/(i-e)*a;if(t<s)return t/s*o}else e=P(n,this.min);var c=(t-r)/a,l=c*(i-e)+e;return Math.pow(n,l)},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=I(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,r=this.base,a=this.positiveMin;return a&&(n=1*a/r),i=t<a?t/a/(P(r,e)-P(r,n)):(P(r,t)-P(r,n))/(P(r,e)-P(r,n)),i},e}(k),F=E,D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(l["c"])(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=B(n,this.max),r=B(n,this.min),a=e*(i-r)+r,o=a>=0?1:-1;return Math.pow(a,n)*o},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,r=(B(i,t)-B(i,n))/(B(i,e)-B(i,n));return r},e}(k),R=D,_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(l["c"])(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):g(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i["N"])(n)||Object(i["C"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return v(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(i["H"])(e)&&Object(i["J"])(e)||(this.min=this.translate(this.min)),Object(i["H"])(n)&&Object(i["J"])(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],a=1/0,o=a,s=0;Object(i["j"])(t,(function(t){var e=v(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s<e&&(s=e),r.push(e)})),t.length>1&&(this.minTickInterval=o-a),Object(i["H"])(e)&&(this.min=a),Object(i["H"])(n)&&(this.max=s)}},e}(L),H=_,G=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(l["c"])(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),a=Math.floor(r*(n-1));if(a>=n-1)return Object(i["Q"])(e);if(a<0)return Object(i["x"])(e);var o=e[a],s=e[a+1],c=a/(n-1),l=(a+1)/(n-1);return o+(r-c)/(l-c)*(s-o)},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(i["Q"])(e)!==this.max&&e.push(this.max),Object(i["x"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i["x"])(e))return 0;if(t>Object(i["Q"])(e))return 1;var n=0;return Object(i["j"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(k),Y=G,N=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(l["c"])(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Y),X=N,z={};function V(t){return z[t]}function q(t,e){if(V(t))throw new Error("type '"+t+"' existed.");z[t]=e}var W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(l["c"])(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i["J"])(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}(c),U=W;function Z(t){var e=t.values,n=t.tickInterval,r=t.tickCount,a=t.showLast;if(Object(i["J"])(n)){var o=Object(i["l"])(e,(function(t,e){return e%n===0})),s=Object(i["Q"])(e);return a&&Object(i["Q"])(o)!==s&&o.push(s),o}var c=e.length,l=t.min,h=t.max;if(Object(i["H"])(l)&&(l=0),Object(i["H"])(h)&&(h=e.length-1),!Object(i["J"])(r)||r>=c)return e.slice(l,h+1);if(r<=0||h<=0)return[];for(var u=1===r?c:Math.floor(c/(r-1)),p=[],f=l,d=0;d<r;d++){if(f>=h)break;f=Math.min(l+d*u,h),d===r-1&&a?p.push(e[h]):p.push(e[f])}return p}function Q(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new et;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}var K=5,J=Math.sqrt(50),$=Math.sqrt(10),tt=Math.sqrt(2),et=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=K);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],c=this._domain[o];return c<s&&(e=[c,s],s=e[0],c=e[1],n=[o,a],a=n[0],o=n[1]),i=it(s,c,t),i>0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=it(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=it(s,c,t)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=K),nt(this._domain[0],this._domain[this._domain.length-1],t||K)},t}();function nt(t,e,n){var i,r,a,o,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(o=it(t,e,n))||!isFinite(o))return[];if(o>0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));while(++s<r)a[s]=(t+s)*o}else{t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(r=Math.ceil(t-e+1));while(++s<r)a[s]=(t-s)/o}return i&&a.reverse(),a}function it(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=J?10:a>=$?5:a>=tt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=J?10:a>=$?5:a>=tt?2:1)}function rt(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function at(t,e,n){var r=rt(t,n,"floor"),a=rt(e,n,"ceil");r=Object(i["o"])(r,n),a=Object(i["o"])(a,n);for(var o=[],s=Math.max((a-r)/(Math.pow(2,12)-1),n),c=r;c<=a;c+=s){var l=Object(i["o"])(c,s);o.push(l)}return{min:r,max:a,ticks:o}}function ot(t,e,n){var r,a=t.minLimit,o=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,h=void 0===l?5:l,u=Object(i["H"])(a)?Object(i["H"])(e)?s:e:a,p=Object(i["H"])(o)?Object(i["H"])(n)?c:n:o;if(u>p&&(r=[u,p],p=r[0],u=r[1]),h<=2)return[u,p];for(var f=(p-u)/(h-1),d=[],g=0;g<h;g++)d.push(u+f*g);return d}function st(t){var e=t.min,n=t.max,r=t.tickInterval,a=t.minLimit,o=t.maxLimit,s=Q(t);return Object(i["H"])(a)&&Object(i["H"])(o)?r?at(e,n,r).ticks:s:ot(t,Object(i["x"])(s),Object(i["Q"])(s))}function ct(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var lt=[1,5,2,2.5,4,3],ht=100*Number.EPSILON;function ut(t,e){return(t%e+e)%e}function pt(t){return Math.round(1e12*t)/1e12}function ft(t,e,n,r,a,o){var s=Object(i["fb"])(e),c=Object(i["z"])(e,t),l=0,h=ut(r,o);return(h<ht||o-h<ht)&&r<=0&&a>=0&&(l=1),1-c/(s-1)-n+l}function dt(t,e,n){var r=Object(i["fb"])(e),a=Object(i["z"])(e,t),o=1;return 1-a/(r-1)-n+o}function gt(t,e,n,i,r,a){var o=(t-1)/(a-r),s=(e-1)/(Math.max(a,i)-Math.min(n,r));return 2-Math.max(o/s,s/o)}function vt(t,e){return t>=e?2-(t-1)/(e-1):1}function yt(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 mt(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function bt(){return 1}function xt(t,e,n,r,a,o){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===a&&(a=lt),void 0===o&&(o=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var c=n||5,l=(e-t)/c;return{min:t,max:e,ticks:Array(c).fill(null).map((function(e,n){return ct(t+l*n)}))}}var h={score:-2,lmin:0,lmax:0,lstep:0},u=1;while(u<1/0){for(var p=0;p<a.length;p+=1){var f=a[p],d=dt(f,a,u);if(o[0]*d+o[1]+o[2]+o[3]<h.score){u=1/0;break}var g=2;while(g<1/0){var v=vt(g,s);if(o[0]*d+o[1]+o[2]*v+o[3]<h.score)break;var y=(e-t)/(g+1)/u/f,m=Math.ceil(Math.log10(y));while(m<1/0){var b=u*f*Math.pow(10,m),x=mt(t,e,b*(g-1));if(o[0]*d+o[1]*x+o[2]*v+o[3]<h.score)break;var O=Math.floor(e/b)*u-(g-1)*u,j=Math.ceil(t/b)*u;if(O<=j){c=j-O;for(var w=0;w<=c;w+=1){var C=O+w,S=C*(b/u),M=S+b*(g-1),A=b,k=ft(f,a,u,S,M,A),T=yt(t,e,S,M),L=gt(g,s,t,e,S,M),B=bt(),P=o[0]*k+o[1]*T+o[2]*L+o[3]*B;P>h.score&&(!r||S<=t&&M>=e)&&(h.lmin=S,h.lmax=M,h.lstep=A,h.score=P)}}m+=1}g+=1}}u+=1}var I=ct(h.lmax),E=ct(h.lmin),F=ct(h.lstep),D=Math.floor(pt((I-E)/F))+1,R=new Array(D);R[0]=ct(E);for(p=1;p<D;p++)R[p]=ct(R[p-1]+F);return{min:Math.min(t,Object(i["x"])(R)),max:Math.max(e,Object(i["Q"])(R)),ticks:R}}function Ot(t){var e=t.min,n=t.max,r=t.tickCount,a=t.nice,o=t.tickInterval,s=t.minLimit,c=t.maxLimit,l=xt(e,n,r,a).ticks;return Object(i["H"])(s)&&Object(i["H"])(c)?o?at(e,n,o).ticks:l:ot(t,Object(i["x"])(l),Object(i["Q"])(l))}function jt(t){var e,n=t.base,i=t.tickCount,r=t.min,a=t.max,o=t.values,s=P(n,a);if(r>0)e=Math.floor(P(n,r));else{var c=I(o,n,a);e=Math.floor(P(n,c))}for(var l=s-e,h=Math.ceil(l/i),u=[],p=e;p<s+h;p+=h)u.push(Math.pow(n,p));return r<=0&&u.unshift(0),u}function wt(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var r=1.5,a=.5+1.5*r,o=e-t,s=o/i,c=Math.pow(10,Math.floor(Math.log10(s))),l=c;2*c-s<r*(s-l)&&(l=2*c,5*c-s<a*(s-l)&&(l=5*c,10*c-s<r*(s-l)&&(l=10*c)));for(var h=Math.ceil(e/l),u=Math.floor(t/l),p=Math.max(h*l,e),f=Math.min(u*l,t),d=Math.floor((p-f)/l)+1,g=new Array(d),v=0;v<d;v++)g[v]=ct(f+v*l);return{min:f,max:p,ticks:g}}function Ct(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(B(e,t.max)),r=Math.floor(B(e,t.min)),a=wt(r,i,n).ticks;return a.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function St(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function Mt(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],a=0;a<e;a++){var o=a/(e-1);r.push(St(i,o))}return r}function At(t){var e=t.min,n=t.max,r=t.tickCount,a=t.tickInterval,o=t.minLimit,s=t.maxLimit,c=wt(e,n,r).ticks;return Object(i["H"])(o)&&Object(i["H"])(s)?a?at(e,n,a).ticks:c:ot(t,Object(i["x"])(c),Object(i["Q"])(c))}function kt(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,a=t.tickCount;if(r)a=Math.ceil((n-e)/r);else{r=C(e,n,a)[1];var o=(n-e)/r,s=o/a;s>1&&(r*=Math.ceil(s)),i&&r<i&&(r=i)}r=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),r);for(var c=[],l=e;l<n+r;l+=r)c.push(l);return c}function Tt(t){var e=Z(Object(l["a"])({showLast:!0},t));return e}function Lt(t){return new Date(t).getFullYear()}function Bt(t){return new Date(t,0,1).getTime()}function Pt(t){return new Date(t).getMonth()}function It(t,e){var n=Lt(t),i=Lt(e),r=Pt(t),a=Pt(e);return 12*(i-n)+(a-r)%12}function Et(t,e){return new Date(t,e,1).getTime()}function Ft(t,e){return Math.ceil((e-t)/x)}function Dt(t,e){return Math.ceil((e-t)/b)}function Rt(t,e){return Math.ceil((e-t)/6e4)}function _t(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickCount,a=t.tickInterval,o=[];a||(a=(n-e)/r,i&&a<i&&(a=i)),a=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),a);var s=Lt(e);if(a>j)for(var c=Lt(n),l=Math.ceil(a/j),h=s;h<=c+l;h+=l)o.push(Bt(h));else if(a>O){var u=Math.ceil(a/O),p=Pt(e),f=It(e,n);for(h=0;h<=f+u;h+=u)o.push(Et(s,h+p))}else if(a>x){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),w=d.getDate(),C=Math.ceil(a/x),S=Ft(e,n);for(h=0;h<S+C;h+=C)o.push(new Date(g,v,w+h).getTime())}else if(a>b){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),C=d.getDate();var M=d.getHours(),A=Math.ceil(a/b),k=Dt(e,n);for(h=0;h<=k+A;h+=A)o.push(new Date(g,v,C,M+h).getTime())}else if(a>m){var T=Rt(e,n),L=Math.ceil(a/m);for(h=0;h<=T+L;h+=L)o.push(e+h*m)}else{var B=a;B<y&&(B=y);var P=Math.floor(e/y)*y,I=Math.ceil((n-e)/y),E=Math.ceil(B/y);for(h=0;h<I+E;h+=E)o.push(P+h*y)}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 '+a+") is too small, increase the value to solve the problem!"),o}o("cat",Z),o("time-cat",Tt),o("wilkinson-extended",Ot),o("r-pretty",At),o("time",kt),o("time-pretty",_t),o("log",jt),o("pow",Ct),o("quantile",Mt),o("d3-linear",st),q("cat",u),q("category",u),q("identity",U),q("linear",L),q("log",F),q("pow",R),q("time",H),q("timeCat",M),q("quantize",Y),q("quantile",X)},f5e5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return f})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var i=n("8937"),r=n("af40"),a=n("9c29"),o=n("7326"),s=n("9f27"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var a in n){var o=n[a],s=c[a]?c[a]:a;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?Object(i["A"])(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=Object(r["b"])(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}}function h(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 u(t,e,n){var r=t.get("refreshElements");Object(i["j"])(r,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),r[0]===t?d(e,n):p(e,n)}function p(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()&&p(i.cfg.children,e);else{var r=g(i,e);i.cfg.refresh=r,r&&i.isGroup()&&p(i.cfg.children,e)}}}function f(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&f(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.visible&&(i.cfg.refresh=!0,i.isGroup()&&d(i.get("children"),e))}}function g(t,e){var n=t.cfg.cacheCanvasBBox,i=t.cfg.isInView&&n&&Object(o["f"])(n,e);return i}function v(t,e,n,i){var r=n.path,o=n.startArrow,c=n.endArrow;if(r){var l=[0,0],h=[0,0],u={dx:0,dy:0};e.beginPath();for(var p=0;p<r.length;p++){var f=r[p],d=f[0];if(0===p&&o&&o.d){var g=t.getStartTangent();u=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],o.d)}else if(p===r.length-2&&"Z"===r[p+1][0]&&c&&c.d){var v=r[p+1];if("Z"===v[0]){g=t.getEndTangent();u=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],c.d)}}else if(p===r.length-1&&c&&c.d&&"Z"!==r[0]){g=t.getEndTangent();u=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],c.d)}var y=u.dx,m=u.dy;switch(d){case"M":e.moveTo(f[1]-y,f[2]-m),h=[f[1],f[2]];break;case"L":e.lineTo(f[1]-y,f[2]-m);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-y,f[4]-m);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-y,f[6]-m);break;case"A":var b=void 0;i?(b=i[p],b||(b=Object(a["a"])(l,f),i[p]=b)):b=Object(a["a"])(l,f);var x=b.cx,O=b.cy,j=b.rx,w=b.ry,C=b.startAngle,S=b.endAngle,M=b.xRotation,A=b.sweepFlag;if(e.ellipse)e.ellipse(x,O,j,w,M,C,S,1-A);else{var k=j>w?j:w,T=j>w?1:j/w,L=j>w?w/j:1;e.translate(x,O),e.rotate(M),e.scale(T,L),e.arc(0,0,k,C,S,1-A),e.scale(1/T,1/L),e.rotate(-M),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)l=h;else{var B=f.length;l=[f[B-2],f[B-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){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),a=r&&!(!r.width||!r.height);i&&a?e=Object(o["l"])(n,r):i?e=n:a&&(e=r)}return e}function b(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return Object(i["j"])(t,(function(t){var i=m(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:Object(i["W"])(e),minY:Object(i["W"])(n),maxX:Object(i["U"])(r),maxY:Object(i["U"])(a)}}function x(t,e){return t&&e&&Object(o["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}},f7a9:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),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["p"](t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return r["S"](t,(function(t){return r["S"](t,(function(t){var e,n,l=t[o],h=t[a];if(r["A"](l)){var u=(c-s[h])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=r["S"](l,(function(t){return u+t})),e))}var p=(c-l)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[o]=[p,l+p],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,a=n.yField,o=r["u"](t,(function(t){return t[i]}));return r["T"](o,(function(t){return e.getDimMaxValue(t,a)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["S"](t,(function(t){return r["q"](t,e,[])})),i=r["p"](n);return Math.max.apply(Math,i)},e}(a["a"]);e["a"]=o},f83c:function(t,e,n){"use strict";var i=n("9ab4"),r=n("330d"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["c"])(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++){var r=n[i];e.add(r.clone())}return e},e}(r["a"]);e["a"]=a},ff7f:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return g})),n.d(e,"Base",(function(){return u})),n.d(e,"Html",(function(){return w}));var i,r=n("9ab4"),a=n("e546"),o=n("8937"),s=n("31e6"),c=n("8ea8"),l=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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:l["a"].lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l["a"].textColor,textAlign:"center",textBaseline:"middle",fontFamily:l["a"].fontFamily}},textBackground:{padding:5,style:{stroke:l["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,a=e.content;if(!Object(o["H"])(a)){var s=this.getTextPoint(),l=null;if(i){var h=this.getRotateAngle();l=Object(c["e"])(s,h)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r["a"])(Object(r["a"])(Object(r["a"])({},s),{text:a,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),i=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r["a"])({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var o=n.getBBox(),s=Object(a["c"])(i.padding),c=i.style,l=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r["a"])({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},c)});l.toBack()}},e}(s["a"]),u=h,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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),a="start"===i?r-Math.PI/2:r+Math.PI/2;return a},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return Object(a["f"])(e,n,r,o)},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}(u),f=p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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,i=this.get("text").position,r="start"===i?e+Math.PI/2:n-Math.PI/2;return r},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,o=i.radius,s=i.startAngle,c=i.endAngle,l="start"===e?s:c,h=this.getRotateAngle()-Math.PI,u=Object(a["e"])(r,o,l),p=Math.cos(h)*n,f=Math.sin(h)*n;return{x:u.x+p,y:u.y+f}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=null;if(r-i===2*Math.PI){var s=e.x,c=e.y;o=[["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 l=Object(a["e"])(e,n,i),h=Object(a["e"])(e,n,r),u=Math.abs(r-i)>Math.PI?1:0,p=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,u,p,h.x,h.y]]}return o},e}(u),g=d,v=n("7c8a"),y=n("75ed"),m="g2-crosshair",b=m+"-line",x=m+"-text",O=(i={},i[""+m]={position:"relative"},i[""+b]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+x]={position:"absolute",color:l["a"].textColor,fontFamily:l["a"].fontFamily},i),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["c"])(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="'+m+'"></div>',crosshairTpl:'<div class="'+b+'"></div>',textTpl:'<span class="'+x+'">{content}</span>',domStyles:null,containerClassName:m,defaultStyles:O,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(v["b"])(e);t.appendChild(n),this.applyStyle(b,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,o=i.offset;return Object(a["f"])(e,n,r,o)},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(o["hb"])(this.get("textTpl"),t);e=Object(v["b"])(r),i.appendChild(e),this.applyStyle(x,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(v["e"])(t,{width:"1px",height:Object(a["l"])(Math.abs(n.y-e.y))}):Object(v["e"])(t,{height:"1px",width:Object(a["l"])(Math.abs(n.x-e.x))}),Object(v["e"])(t,{top:Object(a["l"])(r),left:Object(a["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;case"left":break}Object(v["e"])(t,{top:Object(a["l"])(i.y),left:Object(a["l"])(i.x)})}},e.prototype.updateInner=function(e){Object(o["w"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),w=j}}]);