(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45cffeea"],{"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;n0&&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=19968&&c<=40869?2:1}o>n&&(n=o,r=a)}return t[r].getBBox().width}function p(t){if(t.length>u)return h(t);var e=0;return Object(i["j"])(t,(function(t){var n=t.getBBox(),i=n.width;e=0?s(u,y,r):c,m&&(e.attr("text",m),v=!0)}return v?e.set("tip",u):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"),u=n("bbad"),h=n("2f5e"),p=(i={},i[""+u["CONTAINER_CLASS"]]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:h["a"].fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+u["TITLE_CLASS"]]={marginBottom:"4px"},i[""+u["LIST_CLASS"]]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+u["LIST_ITEM_CLASS"]]={listStyleType:"none",marginBottom:"4px"},i[""+u["MARKER_CLASS"]]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+u["VALUE_CLASS"]]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+u["CROSSHAIR_X"]]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+u["CROSSHAIR_Y"]]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i);function f(t,e,n,i,r){var a={left:tr.x+r.width,top:er.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["y"])(t,e))return n=!0,!1})),n}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u["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["y"])(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"),u=this.get("region"),h=this.getContainer(),p=this.getBBox(),f=p.width,d=p.height;u&&(t=Object(l["k"])(u));var v=g(e,n,i,f,d,c,t);Object(o["e"])(h,{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["F"])(n)?n:Object(o["b"])(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(u["TITLE_CLASS"])[0],n=t.getElementsByClassName(u["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=u[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["pb"])(e,c),u=Object(o["b"])(l);n.appendChild(u)})),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 O})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return Y})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return V})),n.d(e,"f",(function(){return i}));var i={};function r(t){return Math.min.apply(null,t)}function a(t){return Math.max.apply(null,t)}function o(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function s(t,e){return Math.abs(t-e)<.001}function c(t,e){var n=r(t),i=r(e),o=a(t),s=a(e);return{x:n,y:i,width:o-n,height:s-i}}function l(t,e,n,i){return{minX:r([t,n]),maxX:a([t,n]),minY:r([e,i]),maxY:a([e,i])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,"distance",(function(){return o})),n.d(i,"isNumberEqual",(function(){return s})),n.d(i,"getBBoxByArray",(function(){return c})),n.d(i,"getBBoxRange",(function(){return l})),n.d(i,"piMod",(function(){return u}));var h=n("6711"),p={box:function(t,e,n,i){return c([t,n],[e,i])},length:function(t,e,n,i){return o(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,a){var s=(n-t)*(r-t)+(i-e)*(a-e);if(s<0)return o(t,e,r,a);var c=(n-t)*(n-t)+(i-e)*(i-e);return s>c?o(n,i,r,a):this.pointToLine(t,e,n,i,r,a)},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)}},f=1e-4;function d(t,e,n,i,r,a){var s,c=1/0,l=[n,i],u=20;a&&a>200&&(u=a/10);for(var h=1/u,p=h/10,d=0;d<=u;d++){var g=d*h,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],y=o(l[0],l[1],v[0],v[1]);y=0&&y=0?[r]:[]}function m(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function b(t,e,n,i,r,a,o){var s=v(t,n,r,o),c=v(e,i,a,o),l=p.pointAt(t,e,n,i,o),u=p.pointAt(n,i,r,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,r,a]]}function x(t,e,n,i,r,a,s){if(0===s)return(o(t,e,n,i)+o(n,i,r,a)+o(t,e,r,a))/2;var c=b(t,e,n,i,r,a,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),x.apply(null,l)+x.apply(null,u)}var O={box:function(t,e,n,i,r,a){var o=y(t,n,r)[0],s=y(e,i,a)[0],l=[t,r],u=[e,a];return void 0!==o&&l.push(v(t,n,r,o)),void 0!==s&&u.push(v(e,i,a,s)),c(l,u)},length:function(t,e,n,i,r,a){return x(t,e,n,i,r,a,3)},nearestPoint:function(t,e,n,i,r,a,o,s){return d([t,n,r],[e,i,a],o,s,v)},pointDistance:function(t,e,n,i,r,a,s,c){var l=this.nearestPoint(t,e,n,i,r,a,s,c);return o(l.x,l.y,s,c)},interpolationAt:v,pointAt:function(t,e,n,i,r,a,o){return{x:v(t,n,r,o),y:v(e,i,a,o)}},divide:function(t,e,n,i,r,a,o){return b(t,e,n,i,r,a,o)},tangentAngle:function(t,e,n,i,r,a,o){var s=m(t,n,r,o),c=m(e,i,a,o),l=Math.atan2(c,s);return u(l)}};function j(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 C(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,o,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(s(c,0))s(l,0)||(r=-u/l,r>=0&&r<=1&&h.push(r));else{var p=l*l-4*c*u;s(p,0)?h.push(-l/(2*c)):p>0&&(o=Math.sqrt(p),r=(-l+o)/(2*c),a=(-l-o)/(2*c),r>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h}function M(t,e,n,i,r,a,o,s,c){var l=j(t,n,r,o,c),u=j(e,i,a,s,c),h=p.pointAt(t,e,n,i,c),f=p.pointAt(n,i,r,a,c),d=p.pointAt(r,a,o,s,c),g=p.pointAt(h.x,h.y,f.x,f.y,c),v=p.pointAt(f.x,f.y,d.x,d.y,c);return[[t,e,h.x,h.y,g.x,g.y,l,u],[l,u,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 g([t,n,r,o],[e,i,a,s]);var l=M(t,e,n,i,r,a,o,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),S.apply(null,u)+S.apply(null,h)}var A={extrema:w,box:function(t,e,n,i,r,a,o,s){for(var l=[t,o],u=[e,s],h=w(t,n,r,o),p=w(e,i,a,s),f=0;f0?n:-1*n}var B={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,u=r-t,h=a-e,p=Math.abs(u),f=Math.abs(h),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,C=f-b,w=Math.hypot(O,x),M=Math.hypot(C,j),S=w*Math.asin((x*C-O*j)/(w*M)),A=S/Math.sqrt(d+g-c*c-l*l);v+=A,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+k(c,u),y:e+k(l,h)}},pointDistance:function(t,e,n,i,r,a){var s=this.nearestPoint(t,e,n,i,r,a);return o(s.x,s.y,r,a)},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 u(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 P(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 I(t,e,n){return Math.atan(-e/t*Math.tan(n))}function E(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function L(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function F(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function D(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function R(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function _(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var Y={box:function(t,e,n,i,r,a,o){for(var s=I(n,i,r),c=1/0,l=-1/0,u=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var p=s+h;al&&(l=f)}var d=E(n,i,r),g=1/0,v=-1/0,y=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;av&&(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=_(s-t,c-e,-r),u=l[0],h=l[1],p=B.nearestPoint(0,0,n,i,u,h),f=D(n,i,p.x,p.y);fo&&(p=R(n,i,o));var d=_(p.x,p.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,a,s,c,l){var u=this.nearestPoint(t,e,n,i,c,l);return o(u.x,u.y,c,l)},pointAt:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a;return{x:L(t,e,n,i,r,c),y:F(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a,l=T(t,e,n,i,r,a,o,c),h=P(t,e,n,i,r,a,o,c);return u(Math.atan2(h,l))}};function X(t){for(var e=0,n=[],i=0;i1||e<0||t.length<2)return null;var n=X(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=a&&e<=a+h){var f=(e-a)/h;o=p.pointAt(l[0],l[1],u[0],u[1],f);break}a+=h}return o}function z(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=X(t),i=n.segments,r=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=h}return o}function H(t,e,n){for(var i=1/0,r=0;rv.length?(l=p["parsePathString"](a[c]),v=p["parsePathString"](r[c]),v=p["fillPathByDiff"](v,l),v=p["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=p["parsePathString"](a[c]),v=p["parsePathString"](r[c]),v=p["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y0){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,C=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function w(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(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 S=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"])(C,(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"])(C,(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,u=o.clientX-t.clientX,h=o.clientY-t.clientY,p=u*u+h*h;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,w(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||M(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;w(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=S,k="px",B=Object(r["a"])(),T=B&&"firefox"===B.name,P=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["b"])(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(T&&!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"]=P},"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}},"1a0e":function(t,e,n){"use strict";var i=n("9ab4"),r=n("612d");(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i["b"])(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;iv.length?(l=p["c"](a[c]),v=p["c"](r[c]),v=p["a"](v,l),v=p["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=p["c"](a[c]),v=p["c"](r[c]),v=p["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y0){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("c1e2"),O=40,j=0,C=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function w(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(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 S=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"])(C,(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"])(C,(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,u=o.clientX-t.clientX,h=o.clientY-t.clientY,p=u*u+h*h;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,w(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||M(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;w(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=S,k="px",B=Object(r["a"])(),T=B&&"firefox"===B.name;(function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}Object(i["b"])(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(T&&!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))}})(a["a"])},"20e7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return R})),n.d(e,"c",(function(){return _}));var i={};n.r(i),n.d(i,"create",(function(){return a})),n.d(i,"fromMat4",(function(){return o})),n.d(i,"clone",(function(){return s})),n.d(i,"copy",(function(){return c})),n.d(i,"fromValues",(function(){return l})),n.d(i,"set",(function(){return u})),n.d(i,"identity",(function(){return h})),n.d(i,"transpose",(function(){return p})),n.d(i,"invert",(function(){return f})),n.d(i,"adjoint",(function(){return d})),n.d(i,"determinant",(function(){return g})),n.d(i,"multiply",(function(){return v})),n.d(i,"translate",(function(){return y})),n.d(i,"rotate",(function(){return m})),n.d(i,"scale",(function(){return b})),n.d(i,"fromTranslation",(function(){return x})),n.d(i,"fromRotation",(function(){return O})),n.d(i,"fromScaling",(function(){return j})),n.d(i,"fromMat2d",(function(){return C})),n.d(i,"fromQuat",(function(){return w})),n.d(i,"normalFromMat4",(function(){return M})),n.d(i,"projection",(function(){return S})),n.d(i,"str",(function(){return A})),n.d(i,"frob",(function(){return k})),n.d(i,"add",(function(){return B})),n.d(i,"subtract",(function(){return T})),n.d(i,"multiplyScalar",(function(){return P})),n.d(i,"multiplyScalarAndAdd",(function(){return I})),n.d(i,"exactEquals",(function(){return E})),n.d(i,"equals",(function(){return L})),n.d(i,"mul",(function(){return F})),n.d(i,"sub",(function(){return D}));var r=n("c94d");function a(){var t=new r["a"](9);return r["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function s(t){var e=new r["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function l(t,e,n,i,a,o,s,c,l){var u=new r["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=a,u[5]=o,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,i,r,a,o,s,c,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function p(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*o-s*l,p=-u*a+s*c,f=l*a-o*c,d=n*h+i*p+r*f;return d?(d=1/d,t[0]=h*d,t[1]=(-u*i+r*l)*d,t[2]=(s*i-r*o)*d,t[3]=p*d,t[4]=(u*n-r*c)*d,t[5]=(-s*n+r*a)*d,t[6]=f*d,t[7]=(-l*n+i*c)*d,t[8]=(o*n-i*a)*d,t):null}function d(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=o*u-s*l,t[1]=r*l-i*u,t[2]=i*s-r*o,t[3]=s*c-a*u,t[4]=n*u-r*c,t[5]=r*a-n*s,t[6]=a*l-o*c,t[7]=i*c-n*l,t[8]=n*o-i*a,t}function g(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return e*(l*a-o*c)+n*(-l*r+o*s)+i*(c*r-a*s)}function v(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],p=n[0],f=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=p*i+f*o+d*l,t[1]=p*r+f*s+d*u,t[2]=p*a+f*c+d*h,t[3]=g*i+v*o+y*l,t[4]=g*r+v*s+y*u,t[5]=g*a+v*c+y*h,t[6]=m*i+b*o+x*l,t[7]=m*r+b*s+x*u,t[8]=m*a+b*c+x*h,t}function y(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],p=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=c,t[6]=p*i+f*o+l,t[7]=p*r+f*s+u,t[8]=p*a+f*c+h,t}function m(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*i+p*o,t[1]=f*r+p*s,t[2]=f*a+p*c,t[3]=f*o-p*i,t[4]=f*s-p*r,t[5]=f*c-p*a,t[6]=l,t[7]=u,t[8]=h,t}function b(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function O(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function j(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function C(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function w(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,c=r+r,l=n*o,u=i*o,h=i*s,p=r*o,f=r*s,d=r*c,g=a*o,v=a*s,y=a*c;return t[0]=1-h-d,t[3]=u-y,t[6]=p+v,t[1]=u+y,t[4]=1-l-d,t[7]=f-g,t[2]=p-v,t[5]=f+g,t[8]=1-l-h,t}function M(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],p=e[10],f=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*s-i*o,b=n*c-r*o,x=n*l-a*o,O=i*c-r*s,j=i*l-a*s,C=r*l-a*c,w=u*g-h*d,M=u*v-p*d,S=u*y-f*d,A=h*v-p*g,k=h*y-f*g,B=p*y-f*v,T=m*B-b*k+x*A+O*S-j*M+C*w;return T?(T=1/T,t[0]=(s*B-c*k+l*A)*T,t[1]=(c*S-o*B-l*M)*T,t[2]=(o*k-s*S+l*w)*T,t[3]=(r*k-i*B-a*A)*T,t[4]=(n*B-r*S+a*M)*T,t[5]=(i*S-n*k-a*w)*T,t[6]=(g*C-v*j+y*O)*T,t[7]=(v*x-d*C-y*b)*T,t[8]=(d*j-g*x+y*m)*T,t):null}function S(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function A(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function B(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function T(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function I(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function L(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=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 Math.abs(n-p)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-f)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(a-d)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-m)<=r["b"]*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))}var F=v,D=T,R=n("6711"),_=n("9fe7")},2251:function(t,e,n){"use strict";var i=n("9ab4"),r=n("7fa2"),a=n("f049"),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["b"])(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},"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"}},"258a":function(t,e,n){"use strict";var i=n("9ab4"),r=n("53a3"),a=n("bb0c");(function(t){function e(e){return t.call(this,e)||this}Object(i["b"])(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]),u=Object(a["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),r=Math.max(s[0],c[0],l[0],u[0]),i=Math.min(s[1],c[1],l[1],u[1]),o=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var p=h.shadowBlur,f=void 0===p?0:p,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.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}})(r["a"])},"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["q"](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["b"])(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 h})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return M})),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["C"])(e)?e:Object(i["Q"])(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,u,h,p=[],f=!!i;if(f){o=i[0],s=i[1];for(var d=0,g=t.length;d2&&(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=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(o=+h[1],s=+h[2],c=o,l=s,u++,a[0]=["M",o,s]);i=u;for(var p=e.length;i1&&(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+u)/2+Math.cos(a)*y-Math.sin(a)*m,C=(l+h)/2+Math.sin(a)*y+Math.cos(a)*m,w=[(p-y)/n,(f-m)/r],M=[(-1*p-y)/n,(-1*f-m)/r],S=O([1,0],w),A=O(w,M);return x(w,M)<=-1&&(A=Math.PI),x(w,M)>=1&&(A=0),0===s&&A>0&&(A-=2*Math.PI),1===s&&A<0&&(A+=2*Math.PI),{cx:b,cy:C,rx:j(t,[u,h])?0:n,ry:j(t,[u,h])?0:r,startAngle:S,endAngle:S+A,xRotation:a,arcFlag:o,sweepFlag:s}}function w(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function M(t){t=s(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,c=0;c=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,u=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,p=null;if(l>r*u*h){var f=(a.x*s.y-a.y*s.x)/c,d=(a.x*o.y-a.y*o.x)/c;S(f,0,1)&&S(d,0,1)&&(p={x:t.x+f*o.x,y:t.y+f*o.y})}return p}var k=1e-6;function B(t){return Math.abs(t)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}function I(t){for(var e=[],n=t.length,i=0;i1){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 E(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 L(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.maxXt.maxY||e.maxY=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]),u=Object(a["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),r=Math.max(s[0],c[0],l[0],u[0]),i=Math.min(s[1],c[1],l[1],u[1]),o=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var p=h.shadowBlur,f=void 0===p?0:p,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.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",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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["c"])(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["K"])(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["hb"])(d.cfg,Object(r["i"])(Object(r["T"])(d.cfg),h));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"])(u,(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["db"])(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["db"])({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("8937"),a=n("ccaf"),o=n("b2cb"),s={},c="_INDEX";function l(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function u(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){u(t,e)}))}}function h(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(o["j"])(t.getChildren(),e)}function p(t){return function(e,n){var i=t(e,n);return 0===i?e[c]-n[c]:i}}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(a),e=Object(r["Y"])(a),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(a),e=Object(r["Y"])(a),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(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(o["a"])(t,(function(t,e){return t[c]=e,t})),t.sort(p((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(o["a"])(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(a["a"]);e["a"]=f},3665:function(t,e,n){"use strict";var i=n("9ab4"),r=n("a94d"),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["b"])(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["O"])(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["y"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(a["y"])(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["O"])(i)){var r=Object(a["h"])({},e,i);t.set(n,r)}}))},e}(r["Base"]);e["a"]=s},"3cbe":function(t,e,n){"use strict";var i=new Map;function r(t,e){i.set(t,e)}var a=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}},o=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}},s=n("1183");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){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,a=null;return n&&(r=n.getCanvasBBox(),e=c(e,r)),i&&(a=i.getCanvasBBox(),e=c(e,a)),e}var u=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}var m=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,a=t.get("segments")||Object(d["e"])(n),o=v(a,r),s=o.x,c=o.y,u=o.width,h=o.height,p={minX:s,minY:c,maxX:s+u,maxY:c+h};return p=l(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}},b=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),u=Math.max(i,a),h={minX:o,maxX:s,minY:c,maxY:u};return h=l(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},x=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",a),r("image",a),r("circle",o),r("marker",o),r("polyline",u),r("polygon",h),r("text",f),r("path",m),r("line",b),r("ellipse",x)},"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;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,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["w"](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={},s=[];if(n&&this.isAdjust("x")&&s.push(n),a&&this.isAdjust("y")&&s.push(a),s.forEach((function(e){o[e]=i["yb"](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},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,i="/";e.cwd=function(){return i},e.chdir=function(e){t||(t=n("df7c")),i=t.resolve(e,i)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},4799:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),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 C})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return H})),n.d(e,"Polygon",(function(){return q})),n.d(e,"Polyline",(function(){return U})),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 u})),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 C})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return H})),n.d(i,"Polygon",(function(){return q})),n.d(i,"Polyline",(function(){return U})),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["b"])(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"]),u=l,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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,u=r/2,h=Object(o["b"])(s,c,t,e);return i&&n?h<=l+u:i?h<=l:!!n&&(h>=l-u&&h<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(u),p=h;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["b"])(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,u=a.ry,h=(t-s)*(t-s),p=(e-c)*(e-c);return i&&n?f(h,p,l+o,u+o)<=1:i?f(h,p,l,u)<=1:!!n&&(f(h,p,l-o,u-o)>=1&&f(h,p,l+o,u+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}(u),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["b"])(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,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(o["i"])(s)||Object(o["i"])(c)||Object(o["i"])(l)||Object(o["i"])(u)?t.drawImage(h,n,i,r,a):t.drawImage(h,s,c,l,u,n,i,r,a))},e}(u),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),u=Math.max(e,i),h=r/2;return a>=s-h&&a<=c+h&&o>=l-h&&o<=u+h&&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["b"])(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}(u),C=j,w=n("8937"),M=n("2ef1"),S={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["b"])(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(w["K"])(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(M["d"])(n);else{if(t=e.Symbols[s],!t)return 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=S,e}(u),k=A;function B(t,e,n){var i=Object(a["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var T=1e-6;function P(t){return Math.abs(t)0!==P(s[1]-n)>0&&P(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var L=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(lr)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(o["b"])(u.x,u.y,s,c)<=a/2}var R=L["a"].transform;function _(t){for(var e=!1,n=t.length,i=0;ij?O:j,k=O>j?1:O/j,B=O>j?j/O:1,T=R(null,[["t",-y,-m],["r",-M],["s",1/k,1/B]]);F["transformMat3"](S,S,T),a=D(0,0,A,C,w,e,S[0],S[1]);break;default:break}if(a)break}}return a}function X(t){for(var e=t.length,n=[],i=[],r=[],a=0;a0&&i.push(r),{polygons:n,polylines:i}}var N=Object(r["a"])({hasArc:_,extractPolygons:X,isPointInStroke:Y},a["PathUtil"]);function G(t,e,n){for(var i=!1,r=0;r=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var a=r[n];if(Object(w["K"])(a)||Object(w["K"])(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",N.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(w["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(w["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}(u),H=z;function V(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o=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(w["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}(u),U=K,Z=n("af40");function Q(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 $(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 J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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,u=a.height,h=a.radius;if(h){var p=!1;return n&&(p=$(s,c,l,u,h,r,t,e)),!p&&i&&(p=B(this,t,e)),p}var f=r/2;return i&&n?Object(o["e"])(s-f,c-f,l+f,u+f,t,e):i?Object(o["e"])(s,c,l,u,t,e):n?Q(s,c,l,u,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(Z["a"])(o),c=s[0],l=s[1],u=s[2],h=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-u),0!==u&&t.arc(n+r-u,i+a-u,u,0,Math.PI/2),t.lineTo(n+h,i+a),0!==h&&t.arc(n+h,i+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+c),0!==c&&t.arc(n+c,i+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),tt=J,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(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,u=1*r.fontSize,h=this._getSpaceingY(),p=Object(a["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(o["c"])(e,(function(e,r){i=l+r*(h+u)-p+u,"middle"===s&&(i+=p-u-(p-u)/2),"top"===s&&(i+=p-u),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}(u),nt=et},"51de":function(t,e,n){"use strict";function i(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.d(e,"b",(function(){return i})),e["a"]=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;nt.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["db"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["b"])(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;n0?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["C"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(a),e=Object(r["Y"])(a),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(a),e=Object(r["Y"])(a),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(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(o["a"])(t,(function(t,e){return t[c]=e,t})),t.sort(p((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(o["a"])(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(o["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(a["a"]);e["a"]=f},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"fromValues",(function(){return o})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(function(){return j})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return w})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return B})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat2",(function(){return P})),n.d(e,"transformMat2d",(function(){return I})),n.d(e,"transformMat3",(function(){return E})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return F})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return R})),n.d(e,"str",(function(){return _})),n.d(e,"exactEquals",(function(){return Y})),n.d(e,"equals",(function(){return X})),n.d(e,"len",(function(){return N})),n.d(e,"sub",(function(){return G})),n.d(e,"mul",(function(){return z})),n.d(e,"div",(function(){return H})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return W})),n.d(e,"sqrLen",(function(){return q})),n.d(e,"forEach",(function(){return K}));var i=n("c94d");function r(){var t=new i["a"](2);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t){var e=new i["a"](2);return e[0]=t[0],e[1]=t[1],e}function o(t,e){var n=new i["a"](2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function c(t,e,n){return t[0]=e,t[1]=n,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function C(t){var e=t[0],n=t[1];return e*e+n*n}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function B(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t}function T(t,e){e=e||1;var n=2*i["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function I(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function E(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function F(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+a*a),s=o&&(n*r+i*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function _(t){return"vec2("+t[0]+", "+t[1]+")"}function Y(t,e){return t[0]===e[0]&&t[1]===e[1]}function X(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(o))}var N=j,G=u,z=h,H=p,V=x,W=O,q=C,K=function(){var t=r();return function(e,n,i,r,a,o){var s,c;for(n||(n=2),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),c&&h.setAttribute(l["b"]["strokeOpacity"],c),u&&h.setAttribute(l["b"]["lineWidth"],u))},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=h,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["b"])(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["b"])(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["b"])(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["b"])(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["Q"])(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["Q"])(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"),C=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["b"])(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["O"])(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),w=C,M={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"]]}},S={get:function(t){return M[t]},register:function(t,e){M[t]=e},remove:function(t){delete M[t]},getAll:function(){return M}},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["b"])(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["C"])(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["I"])(a)?a:S.get(a),t?t(n,i,r):null},e.symbolsFactory=S,e}(p),k=A,B=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["b"])(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["C"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(f["O"])(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),T=B,P=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["b"])(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["C"])(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),I=P,E=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["b"])(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["C"])(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["K"])(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),L=E;function F(t){var e=0,n=0,i=0,r=0;return Object(f["C"])(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["b"])(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["C"])(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"),Y=.3,X={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},N={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},G={left:"left",start:"left",center:"middle",right:"end",end:"end"},z=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["b"])(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",N[n]||"alphabetic"):t.setAttribute("alignment-baseline",X[n]||"baseline"),t.setAttribute("text-anchor",G[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+=''+t+"":"top"===a?c+=''+t+"":"middle"===a?c+=''+t+"":"bottom"===a?c+=''+t+"":"hanging"===a&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(p),H=z},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],u=t[7],h=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*u,n[2]=p*a+f*c+d*h,n[3]=g*i+v*o+y*l,n[4]=g*r+v*s+y*u,n[5]=g*a+v*c+y*h,n[6]=m*i+b*o+x*l,n[7]=m*r+b*s+x*u,n[8]=m*a+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function 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],u=t[8],h=u*o-s*l,p=-u*a+s*c,f=l*a-o*c,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(u*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.maxXt.maxY||e.maxYe)n.insertBefore(t,r);else if(a=0&&e._call.call(null,t),e=e._next;--a}function b(){u=(l=p.now())+h,a=o=0;try{m()}finally{a=0,O(),u=0}}function x(){var t=p.now(),e=t-l;e>c&&(h-=e,l=t)}function O(){var t,e,n=i,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,j(a)}function j(t){if(!a){o&&(o=clearTimeout(o));var e=t-u;e>24?(t<1/0&&(o=setTimeout(b,t-p.now()-h)),s&&(s=clearInterval(s))):(s||(l=p.now(),s=setInterval(x,c)),a=1,f(b))}}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,j()},stop:function(){this._call&&(this._call=null,this._time=1/0,j())}}},"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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{container:null,containerTpl:"
    ",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["K"])(t)){t=this.createDom();var e=this.get("parent");Object(a["Q"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(a["Q"])(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["y"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(s["a"]);e["a"]=c},"7b46":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var i=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,a=e.length;rp&&(i=[p,h],h=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>h-l?{x:h+u/2+l,textAlign:"left"}:{x:h-u/2-l,textAlign:"right"},y=g.width>c-p-l?{x:p-u/2-l,textAlign:"right"}:{x:p+u/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=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function u(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function p(t,e){var n=h(t,e),i=parseFloat(u(t,"borderTopWidth"))||0,r=parseFloat(u(t,"paddingTop"))||0,a=parseFloat(u(t,"paddingBottom"))||0,o=parseFloat(u(t,"borderBottomWidth"))||0,s=parseFloat(u(t,"marginTop"))||0,c=parseFloat(u(t,"marginBottom"))||0;return n+i+o+r+a+s+c}function f(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=f(t,e),i=parseFloat(u(t,"borderLeftWidth"))||0,r=parseFloat(u(t,"paddingLeft"))||0,a=parseFloat(u(t,"paddingRight"))||0,o=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c=parseFloat(u(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 X})),n.d(e,"Circle",(function(){return G})),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 B})),n.d(r,"reserveLast",(function(){return T})),n.d(r,"reserveBoth",(function(){return P})),n.d(r,"equidistance",(function(){return I})),n.d(r,"equidistanceWithReverseBoth",(function(){return E}));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"),u=n("31e6"),h=n("8ea8"),p=n("9778"),f=n("2f5e"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(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"}},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["db"])(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["N"])(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["N"])(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["db"])({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;a0){var n=Object(l["mb"])(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,u=this.getSidePoint(t.point,r),p=this.getSideVector(r,u),f=c?c(t.name,t,e):t.name,d=i.style;d=Object(l["I"])(d)?Object(l["s"])(this.get("theme"),["label","style"],{}):d;var g=Object(l["db"])({x:u.x+a,y:u.y+o,text:f,textAlign:this.getTextAnchor(p),textBaseline:this.getTextBaseline(p)},d);return s&&(g.matrix=Object(h["e"])(u,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["s"])(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,c=o.formatter;if(Object(l["I"])(s)){var u=r.map((function(t){return Object(l["s"])(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["db"])({},a,s(i,e,u));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,u=.5;"start"===n?u=0:"end"===n&&(u=1);var p=this.getTickPoint(u),f=this.getSidePoint(p,i||a+s/2),d=Object(l["db"])({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(l["K"])(g)&&o){var y=this.getAxisVector(p),m=[1,0];v=c["a"].angleTo(y,m,!0)}if(v){var b=Object(h["e"])(f,v);d.matrix=b}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){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}(u["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 C(t){var e=t.attr("matrix");return e&&1!==e[0]}function w(t){var e=C(t)?Object(h["d"])(t.attr("matrix")):0;return e%360}function M(t,e,n,i){var r=!1,a=w(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 S(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,u=1;u1){p=Math.ceil(p);for(var g=0;g2){var o=r[0],s=r[r.length-1];o.get("visible")||(o.show(),S(t,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),S(t,e,!0,i)&&(a=!0))}return a}function L(t,e){Object(l["j"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(h["e"])({x:n,y:i},e);t.attr("matrix",r)}))}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);L(r,c)}return o}function D(){return R}function R(t,e,n,i){return F(t,e,n,(function(){return Object(l["M"])(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 Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(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["N"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l["N"])(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,u=0,h=0;a&&(u=a.style.fontSize,h=a.spacing),c&&(c=c-s-h-u);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["K"])(a.offset)){var f=t.getCanvasBBox(),d=n?f.width:f.height;a.offset=s+d+h+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["K"])(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["I"])(e))s=e(a,n,i);else if(Object(l["O"])(e)){var u=e;c[u.type]&&(s=c[u.type](a,n,i,u.cfg))}else c[e]&&(s=c[e](a,n,i));if("autoRotate"===t){if(s){var h=n.getChildren(),p=this.get("verticalFactor");Object(l["j"])(h,(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),X=Y,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(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),u=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",c.x,c.y],["A",i,r,0,u,h,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["K"])(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 u=this.get("overlapOrder");if(Object(l["j"])(u,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,o)})),i&&Object(l["K"])(i.offset)){var h=t.getCanvasBBox().height;i.offset=a+h+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["I"])(e))a=e(!1,n,i);else if(Object(l["O"])(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 u=n.getChildren(),h=this.get("verticalFactor");Object(l["j"])(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=h>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),G=N},"7dfe":function(t,e){},"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),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r-1},o=a,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;ie[r])return 1;if(t[r]n?n:t},pt=ht,ft=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))},dt=ft,gt=function(t){return f(t,"Number")},vt=gt,yt=(Number.isInteger&&Number.isInteger,1e-5);function mt(t,e,n){return void 0===n&&(n=yt),Math.abs(t-e)i&&(n=a,i=o)}return n}},xt=function(t,e){if(y(t)){for(var n,i=1/0,r=0;re?(i&&(clearTimeout(i),i=null),s=l,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(c,u)),o};return l.cancel=function(){clearTimeout(i),s=0,i=r=a=null},l},Te=function(t){return r(t)?Array.prototype.slice.call(t):[]},Pe={},Ie=function(t){return t=t||"g",Pe[t]?Pe[t]+=1:Pe[t]=1,t+Pe[t]},Ee=function(){};function Le(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}var Fe,De=n("9ab4"),Re=ce((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant;return Fe||(Fe=document.createElement("canvas").getContext("2d")),Fe.font=[a,o,r,n+"px",i].join(" "),Fe.measureText(U(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(De["e"])([t],Tt(e)).join("")})),_e=function(t,e,n,i){void 0===i&&(i="...");var r,a,o=16,s=Re(i,n),c=U(t)?t:Pt(t),l=e,u=[];if(Re(t,n)<=e)return t;while(1){if(r=c.substr(0,o),a=Re(r,n),a+s>l&&a>l)break;if(u.push(r),l-=a,c=c.substr(o),!c)return u.join("")}while(1){if(r=c.substr(0,1),a=Re(r,n),a+s>l)break;if(u.push(r),l-=a,c=c.substr(1),!c)return u.join("")}return""+u.join("")+i},Ye=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}(),Xe=Ye},"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 u})),n.d(e,"c",(function(){return h}));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]),u=Math.max(n[1],i[1],r[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:u,width:s-o,height:u-l}}function u(t,e,n,i){if(e){var r=a({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=o({x:e,y:n});t.attr("matrix",i)}},"917c":function(t,e,n){"use strict";n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return Bl})),n.d(e,"c",(function(){return li})),n.d(e,"d",(function(){return Jn})),n.d(e,"g",(function(){return fi})),n.d(e,"e",(function(){return or})),n.d(e,"a",(function(){return ce})),n.d(e,"f",(function(){return ce})),n.d(e,"m",(function(){return qn})),n.d(e,"p",(function(){return Ri})),n.d(e,"n",(function(){return Ti})),n.d(e,"o",(function(){return fn})),n.d(e,"l",(function(){return de})),n.d(e,"j",(function(){return fe})),n.d(e,"k",(function(){return An})),n.d(e,"h",(function(){return yr}));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,u,h,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"}(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"}(u||(u={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(h||(h={}));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 '"+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 C(t){return"number"===typeof t&&!isNaN(t)}function w(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(C(r)?r:g,g),height:Math.max(C(a)?a:v,v)}}function M(t){var e=t.parentNode;e&&e.removeChild(t)}var S=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["b"])(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}(S["a"]),k=A,B=n("6855"),T=n("eecd"),P=function(t,e){return Object(s["Q"])(e)?e:t.invert(t.scale(e))},I=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=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=Q["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=Q["a"].angleTo(i,[1,0],!0),a=r*this.a;Q["c"].length(i)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];Q["a"].leftRotate(c,c,a);var l=[1,0,0];Q["d"].transformMat3(l,l,c);var u=[l[0],l[1]],h=Q["a"].angleTo(u,i,o0?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);rt.x?t.x:e,n=nt.y?t.y:i,r=r=i&&t<=r}function At(t,e,n){if(Object(s["Q"])(t))return t.padEnd(e,n);if(Object(s["C"])(t)){var i=t.length;if(i=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;et.minX&&this.minYt.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 Pt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function It(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 Et(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function Lt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Ft(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=St(e.x,i.x,r.x)&&St(e.y,i.y,r.y)}else{var a=t.invert(e);n=St(a.x,0,1)&&St(a.y,0,1)}return n}function Dt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Rt(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(),u=t.getRadius();return{type:"path",startState:{path:Ot(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=Ot(l.x,l.y,u+e,s,n);return{path:i}},attrs:{path:Ot(l.x,l.y,u+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 _t(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 Tt.fromRange(o-e,s-e,o+r+e,s+a+e)}var Yt=/^(?:(?!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 Xt(t){var e="linear";return Yt.test(t)?e="timeCat":Object(s["Q"])(t)&&(e="cat"),e}function Nt(t,e,n){var i=e||[];if(Object(s["M"])(t)||Object(s["K"])(Object(s["o"])(i,t))&&Object(s["G"])(n)){var r=Object(q["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(s["yb"])(i,t),c=Object(s["s"])(n,"type",Xt(a[0])),l=Object(q["c"])(c);return new l(Object(o["a"])({field:t,values:a},n))}function Gt(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 zt(t){return t.alias||t.field}function Ht(t,e,n){var i,r=t.values,a=r.length;if(1===a)i=[.5,1];else{var o=1,c=0;Et(e)?e.isTransposed?(o=Object(s["s"])(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 Vt(t){var e=t.values.filter((function(t){return!Object(s["K"])(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(o["d"])(Object(o["d"])([],e,!1),[Object(s["K"])(t.max)?-1/0:t.max],!1))}function Wt(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 Kt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Wt(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["s"])(t,["components","axis"],{});return Object(s["h"])({},Object(s["s"])(n,["common"],{}),Object(s["h"])({},Object(s["s"])(n,[e],{})))}function $t(t,e,n){var i=Object(s["s"])(t,["components","axis"],{});return Object(s["h"])({},Object(s["s"])(i,["common","title"],{}),Object(s["h"])({},Object(s["s"])(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?Q["c"].angle(o,s):-1*Q["c"].angle(o,s),l=c+(e.end-e.start),u=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:u,startAngle:c,endAngle:l}}function te(t,e){return Object(s["D"])(t)?!1!==t&&{}:Object(s["s"])(t,[e])}function ee(t,e){return Object(s["s"])(t,"position",e)}function ne(t,e){return Object(s["s"])(e,["title","text"],zt(t))}var ie=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["M"])(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["K"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=this.parseSpacing(),a=r[0],o=r[1],s=(1+a)/(0===e?1:e)-a,c=(1+o)/(0===t?1:t)-o,l={x:(s+a)*n,y:(c+o)*i},u={x:l.x+s,y:l.y+c};return{start:l,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["s"])(i,"type","rect");if("rect"===a&&r.length){Object(s["K"])(n.axes)&&(n.axes={});var o=n.axes,c=r[0].getXYFields(),l=c[0],u=c[1],h=te(o,l),p=te(o,u);!1!==h&&(n.axes[l]=this.getXAxisOption(l,o,h,e)),!1!==p&&(n.axes[u]=this.getYAxisOption(u,o,p,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["K"])(i)&&n)||e[n]===i}))}},t}(),re={},ae=function(t){return re[Object(s["V"])(t)]},oe=function(t,e){re[Object(s["V"])(t)]=e},se=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}(),ce=se,le=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(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}(ce),ue=le,he={};function pe(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 fe(t){var e=he[t];return Object(s["s"])(e,"ActionClass")}function de(t,e,n){he[t]={ActionClass:e,cfg:n}}function ge(t,e){var n=new ue(e);return n.callback=t,n.name="callback",n}function ve(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i=o[l]?1:0,p=u>Math.PI?1:0,f=n.convert(s),d=Lt(n,f);if(d>=.5)if(u===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,h,v.x,v.y]),c.push(["A",d,d,0,p,h,f.x,f.y])}else c.push(["A",d,d,0,p,h,f.x,f.y]);return c}function xe(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 Oe=function(t,e,n,i){var r,a,o,s,c,l,u,h=[],p=!!i;if(p){o=i[0],s=i[1];for(var f=0,d=t.length;f=e||r.height>=e?r:null}function Be(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function Te(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Pe(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function Ie(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Ee(t){return t&&t.component&&t.component.isList()}function Le(t){return t&&t.component&&t.component.isSlider()}function Fe(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function De(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Be(t,e);if(!i)return;return Ve(t.view,i)}var r=ke(t,e);return r?ze(t.view,r):null}function Re(t,e,n){var i=ke(t,n);if(!i)return null;var r=t.view,a=$e(r,e,{x:i.x,y:i.y}),o=$e(r,e,{x:i.maxX,y:i.maxY}),s={minX:a.x,minY:a.y,maxX:o.x,maxY:o.y};return ze(e,s)}function _e(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(_e(t))})),n}function Ye(t,e,n){var i=_e(t);return i.filter((function(t){return Ne(t,e)===n}))}function Xe(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 Ne(t,e){var n,i=t.getModel(),r=i.data;return n=Object(s["C"])(r)?r[0][e]:r[e],n}function Ge(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function Ze(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Qe(t,e){var n=t.getCoordinate();return n.invert(e)}function $e(t,e,n){var i=Qe(t,n);return e.getCoordinate().convert(i)}function Je(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 tn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(s["j"])(t.views,(function(t){if(n=tn(t,e),n)return!1})),n}var en=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=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["s"])(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=We(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&Ue(i,n):Ue(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}(),nn=en,rn=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}(),an=rn;function on(t,e,n){var i=t.split(":"),r=i[0],a=e.getAction(r)||pe(r,e);if(!a)throw new Error("There is no action named "+r);var o=i[1];return{action:a,methodName:o,arg:n}}function sn(t){var e=t.action,n=t.methodName,i=t.arg;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n](i)}var cn={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},ln=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["b"])(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 nn(t);this.context=e;var n=this.steps;Object(s["j"])(n,(function(t){Object(s["j"])(t,(function(t){if(Object(s["I"])(t.action))t.actionObject={action:ge(t.action,e),methodName:"execute"};else if(Object(s["Q"])(t.action))t.actionObject=on(t.action,e,t.arg);else if(Object(s["C"])(t.action)){var n=t.action,i=Object(s["C"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(s["j"])(n,(function(n,r){t.actionObject.push(on(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===cn.SHOW_ENABLE)return!0;if(t===cn.PROCESSING)return e===cn.START;if(t===cn.START)return e!==cn.PROCESSING;if(t===cn.END)return e===cn.PROCESSING||e===cn.START;if(t===cn.ROLLBACK){if(n[cn.END])return e===cn.END;if(e===cn.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!==cn.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["C"])(a)?Object(s["j"])(a,(function(t){i.event=r,sn(t)})):(i.event=r,sn(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["qb"])(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}(an),un=ln,hn={};function pn(t){return hn[Object(s["V"])(t)]}function fn(t,e){hn[Object(s["V"])(t)]=e}function dn(t,e,n){var i=pn(t);if(!i)return null;if(Object(s["P"])(i)){var r=Object(s["db"])(Object(s["e"])(i),n);return new un(e,r)}var a=i;return new a(e,n)}function gn(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function vn(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 yn(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=gn(t),r=vn(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=Ct(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:Q["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[""+lt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+lt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+lt["TOOLTIP_CSS_CONST"].LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+lt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+lt["TOOLTIP_CSS_CONST"].MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+lt["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 mn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},bn={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},xn=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],On=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],jn=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Cn=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,i=t.subColor,r=void 0===i?"rgba(0,0,0,0.05)":i,a=t.paletteQualitative10,o=void 0===a?xn:a,s=t.paletteQualitative20,c=void 0===s?On:s,l=t.paletteSemanticRed,u=void 0===l?"#F4664A":l,h=t.paletteSemanticGreen,p=void 0===h?"#30BF78":h,f=t.paletteSemanticYellow,d=void 0===f?"#FAAD14":f,g=t.paletteSequence,v=void 0===g?jn:g,y=t.fontFamily,m=void 0===y?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?o[0]:b;return{backgroundColor:n,brandColor:x,subColor:r,paletteQualitative10:o,paletteQualitative20:c,paletteSemanticRed:u,paletteSemanticGreen:p,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:mn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:mn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:mn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:mn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:mn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:mn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:mn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:x,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:mn[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:mn[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:mn[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:mn[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:mn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:mn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:mn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:mn[25],annotationArcBorderColor:mn[15],annotationArcBorder:1,annotationLineBorderColor:mn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:mn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:mn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:mn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:mn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:mn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:bn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:mn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:bn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:mn[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:x,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:bn[100],pointBorderOpacity:1,pointActiveBorderColor:mn[100],pointSelectedBorder:2,pointSelectedBorderColor:mn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:x,hollowPointBorderOpacity:.95,hollowPointFillColor:bn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:mn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:mn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:x,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:x,areaFillOpacity:.25,areaActiveFillColor:x,areaActiveFillOpacity:.5,areaSelectedFillColor:x,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:x,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:mn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:mn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:x,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:mn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:mn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:x,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:bn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:mn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:mn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};Cn();function wn(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(o["c"])(t,["styleSheet"]),r=Cn(n);return Object(s["h"])({},yn(r),i)}var Mn=wn({}),Sn={default:Mn};function An(t){return Object(s["s"])(Sn,Object(s["V"])(t),Sn.default)}function kn(t,e){Sn[Object(s["V"])(t)]=wn(e)}function Bn(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(s["N"])(i,r)}function Tn(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 Pn(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 In=Object(s["ab"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;ar&&(r=s)}return(r-i)/(n-1)}));function En(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),a=e.scales,o=Object(s["I"])(n)||!n?r[0]:n,c=a[o],l=c?c.getText(t[o]):t[o]||o;return Object(s["I"])(n)?n(l,t):l}function Ln(t){var e=Object(s["xb"])(t.attributes);return Object(s["l"])(e,(function(t){return Object(s["f"])(f,t.type)}))}function Fn(t){for(var e,n=Ln(t),i=0,r=n;i=j){if(!S){l=A;break}Object(s["C"])(l)||(l=[]),l.push(A)}}Object(s["C"])(l)&&(l=Pn(l,t,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(M)||jr.max||jMath.abs(r.translate(k[d][o])-j)&&(O=k)}var E=In(n.getXScale());return!l&&Math.abs(r.translate(O[d][o])-j)<=E/2&&(l=O),l}function Yn(t,e,n,i){void 0===n&&(n=""),void 0===i&&(i=!1);var r,a,c=t[d],l=En(c,e,n),u=e.tooltipOption,h=e.theme.defaultColor,p=[];function f(e,n){if(i||!Object(s["K"])(n)&&""!==n){var r={title:l,data:c,mappingData:t,name:e,value:n,color:t.color||h,marker:!0};p.push(r)}}if(Object(s["O"])(u)){var g=u.fields,v=u.callback;if(v){var y=g.map((function(e){return t[d][e]})),m=v.apply(void 0,y),b=Object(o["a"])({data:t[d],mappingData:t,title:l,color:t.color||h,marker:!0},m);p.push(b)}else for(var x=e.scales,O=0,j=g;O');P.appendChild(I);var E=w(P,l,r,a),L=b(d),F=new L.Canvas(Object(o["a"])({container:I,pixelRatio:g,localRefresh:y,supportCSSTransform:C},E));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:u,appendPadding:h,visible:x,options:A,limitInPlot:k,theme:B,syncViewPadding:T})||this,n.onResize=Object(s["g"])((function(){n.forceFit()}),300),n.ele=P,n.canvas=F,n.width=E.width,n.height=E.height,n.autoFit=l,n.localRefresh=y,n.renderer=d,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return Object(o["b"])(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(),M(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=w(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}(si),li=ci,ui=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 hi(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;i1){for(var f=e[0],d=Math.abs(t.y-f[0].y),g=0,v=e;g'+i+"":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 vt(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){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i-1)return;i.push(t),"active"!==t&&"selected"!==t||null===o||void 0===o||o.toFront()}else{if(-1===c)return;i.splice(c,1),"active"!==t&&"selected"!==t||null===o||void 0===o||o.toBack()}var l=r.drawShape(s,a,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,l,i,null):this.syncShapeStyle(o,l,["reset"],null),l.remove(!0);var u={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",u),Object(lt["propagationDelegate"])(this.shape,"statechange",u)},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["s"])(n,[t,"style"],{}),r=i[e]||i;return Object(s["I"])(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["I"])(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 u=this.shape.cfg.name;u?Object(s["Q"])(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",p=this.getAnimateCfg(h);p&&(null===(n=this.geometry)||void 0===n||n.emit(l.BEFORE_DRAW_ANIMATE),ji(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"),u=e.get("clipShape");if(this.syncShapeStyle(c,u,n,i),t.isGroup())for(var h=t.get("children"),p=e.get("children"),f=0;f=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(s["K"])(e)||Object(s["O"])(e))Object(s["O"])(e)&&Object(s["H"])(Object.keys(e),["values"])?Object(s["lb"])(this.attributeOption,t,{fields:e.values}):Object(s["lb"])(this.attributeOption,t,e);else{var i={};Object(s["M"])(e)?i.values=[e]:i.fields=Ni(e),n&&(Object(s["I"])(n)?i.callback=n:i.values=n),Object(s["lb"])(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 s={},c=function(e){if(i.hasOwnProperty(e)){var c=i[e];if(!c)return{value:void 0};var l=Object(o["a"])({},c),u=l.callback,h=l.values,p=l.fields,d=void 0===p?[]:p,g=d.map((function(n){var i=t.scales[n];return i.isCategory&&!s[n]&&f.includes(e)&&(t.groupScales.push(i),s[n]=!0),i}));l.scales=g,"position"!==e&&1===g.length&&"identity"===g[0].type?l.values=g[0].values:u||h||("size"===e?l.values=r.sizes:"shape"===e?l.values=r.shapes[a]||[]:"color"===e&&(g.length?l.values=g[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var v=U(e);n[e]=new v(l)}};for(var l in i){var u=c(l);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter((function(t){return t.isCategory})),i=this.groupData(t),r=[],a=0,o=i.length;aa&&(a=u)}var h=this.scaleDefs,p={};rt.max&&!Object(s["s"])(h,[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;n1)for(var h=0;h0}))}function er(t,e,n){var i=n.data,r=n.origin,a=n.animateCfg,o=n.coordinate,c=Object(s["s"])(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 u=e.getChildByIndex(l);if(u){s.set("data",i),s.set("origin",r),s.set("animateCfg",a),s.set("coordinate",o);var h=Mt(s,u);c?ji(s,c,{toAttrs:h,coordinate:o}):s.attr(h),u.isGroup()&&er(s,u,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 nr=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,a=this.createOffscreenGroup();if(t.length){for(var c=0,l=t;c0||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["C"])(r)&&(r=1===t.content.length?i?rr(r):r.length<=2?r[e.length-1]:rr(r):r[n]),r}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(s["C"])(e.shape)?e.shape[0]:e.shape,l="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var u=wt(e.x,e.y);o.x=u[0],o.y=u[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 h=Object(s["s"])(e,"nextPoints"),p=Object(s["s"])(e,"points");if(h){var f=i.convert(p[1]),d=i.convert(h[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+=" "+a[i.field]:"path"===n&&(o+=" "+a[i.field]+"-"+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 ir({container:e,layout:Object(s["s"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=i,o.animate=!!r&&Oi("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,u=c.callback,h=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(u){var g=l.map((function(t){return r[t]}));if(i=u.apply(void 0,g),Object(s["K"])(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},h),i);Object(s["I"])(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["I"])(b)?v.content=b(r,t,n):Object(s["S"])(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["C"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(s["K"])(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["M"])(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}(),or=ar;function sr(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["d"])([e],r,!1)).join("")}else i=t.mapping(e).join("");return i||n}var cr={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]]}},lr=["line","cross","tick","plus","hyphen"];function ur(t,e){return Object(s["I"])(e)?e(t):Object(s["h"])({},t,e)}function hr(t,e){var n=t.symbol;if(Object(s["Q"])(n)&&-1!==lr.indexOf(n)){var i=Object(s["s"])(t,"style",{}),r=Object(s["s"])(i,"lineWidth",1),a=i.stroke||i.fill||e;t.style=Object(s["h"])({},t.style,{lineWidth:r,stroke:a,fill:null})}}function pr(t){var e=t.symbol;Object(s["Q"])(e)&&cr[e]&&(t.symbol=cr[e])}function fr(t){return t.startsWith(r.LEFT)||t.startsWith(r.RIGHT)?"vertical":"horizontal"}function dr(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var c=a.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=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=sr(l,m,h),O=sr(u,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:p}),C=r;return Object(s["I"])(C)&&(C=C(y,f,Object(o["a"])({name:y,value:m},Object(s["h"])({},i,j)))),j=Object(s["h"])({},i,j,kt(Object(o["a"])({},C),["style"])),hr(j,x),C&&C.style&&(j.style=ur(j.style,C.style)),pr(j),{id:m,name:y,value:m,marker:j,unchecked:b}}))}return[]}function gr(t,e,n){return n.map((function(n,i){var r=e;Object(s["I"])(r)&&(r=r(n.name,i,Object(s["h"])({},t,n)));var a=Object(s["I"])(n.marker)?n.marker(n.name,i,Object(s["h"])({},t,n)):n.marker,o=Object(s["h"])({},t,r,a);return pr(o),n.marker=o,n}))}function vr(t,e){var n=Object(s["s"])(t,["components","legend"],{});return Object(s["h"])({},Object(s["s"])(n,["common"],{}),Object(s["h"])({},Object(s["s"])(n,[e],{})))}var yr={getLegendItems:dr,translate:qi,rotate:Ui,zoom:Zi,transform:Wi,getAngle:Ct,getSectorPath:Ot,polarToCartesian:xt,getDelegationObject:Pe,getTooltipItems:Yn,getMappingValue:sr},mr={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},br={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},xr=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Or=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],jr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Cr=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,i=t.subColor,r=void 0===i?"rgba(255,255,255,0.05)":i,a=t.paletteQualitative10,o=void 0===a?xr:a,s=t.paletteQualitative20,c=void 0===s?Or:s,l=t.paletteSemanticRed,u=void 0===l?"#F4664A":l,h=t.paletteSemanticGreen,p=void 0===h?"#30BF78":h,f=t.paletteSemanticYellow,d=void 0===f?"#FAAD14":f,g=t.paletteSequence,v=void 0===g?jr:g,y=t.fontFamily,m=void 0===y?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?o[0]:b;return{backgroundColor:n,brandColor:x,subColor:r,paletteQualitative10:o,paletteQualitative20:c,paletteSemanticRed:u,paletteSemanticGreen:p,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:br[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:br[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:br[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:br[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:br[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:br[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:br[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:xr[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:br[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:br[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:br[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:br[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:br[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:br[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:mr[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:mr[25],annotationArcBorderColor:br[15],annotationArcBorder:1,annotationLineBorderColor:br[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:br[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:br[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:br[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:br[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:br[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:mr[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:br[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:mr[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:br[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:xr[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:mr[100],pointBorderOpacity:1,pointActiveBorderColor:br[100],pointSelectedBorder:2,pointSelectedBorderColor:br[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:xr[0],hollowPointBorderOpacity:.95,hollowPointFillColor:mr[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:br[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:br[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:xr[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:xr[0],areaFillOpacity:.25,areaActiveFillColor:xr[0],areaActiveFillOpacity:.5,areaSelectedFillColor:xr[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:xr[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:br[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:br[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:xr[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:br[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:br[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:xr[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:mr[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:br[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:br[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},wr=Cr(),Mr=n("53c8"),Sr=n("bfb1");function Ar(t){return!t&&(null===t||void 0===t||isNaN(t))}function kr(t){if(Object(s["C"])(t))return Ar(t[1].y);var e=t.y;return Object(s["C"])(e)?Ar(e[0]):Ar(e)}function Br(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;r0&&(l[0][0]="L")),a=a.concat(l)})),a.push(["Z"])}return a}function Hr(t,e,n,i,r){for(var a=Ir(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,u=Br(c,o,l),h=[],p=0,f=u.length;pr&&(r=e),e=e[0]})));for(var p=this.scales[u],f=0,g=t;fe&&(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 ea(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},o=Object(s["s"])(t,["background","style","radius"]);if(o){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),u=ta(o,Math.min(c,l)),h=u[0],p=u[1],f=u[2],d=u[3];i.push(["M",r.x,a.y+h]),0!==h&&i.push(["A",h,h,0,0,1,r.x+h,a.y]),i.push(["L",a.x-p,a.y]),0!==p&&i.push(["A",p,p,0,0,1,a.x,a.y+p]),i.push(["L",a.x,r.y-f]),0!==f&&i.push(["A",f,f,0,0,1,a.x-f,r.y]),i.push(["L",r.x+d,r.y]),0!==d&&i.push(["A",d,d,0,0,1,r.x,r.y-d])}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 g=n.getCenter(),v=Ct(t,n),y=v.startAngle,m=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};h=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),p=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));i=Ot(g.x,g.y,h,n.startAngle,n.endAngle,p)}else i=Ot(g.x,g.y,n.getRadius(),y,m)}return i}function na(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=Jr(t),o}function ia(t,e,n){var i=[];return Object(s["K"])(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 ra(t,e,n){var i,r,a,o,s=t[0],c=t[1],l=t[2],u=t[3],h=[0,0,0,0],p=h[0],f=h[1],d=h[2],g=h[3];s.yt[1].x?(u=t[0],s=t[1],c=t[2],l=t[3],a=ta(n,Math.min(u.x-s.x,s.y-c.y)),p=a[0],g=a[1],d=a[2],f=a[3]):(o=ta(n,Math.min(u.x-s.x,s.y-c.y)),f=o[0],d=o[1],g=o[2],p=o[3]));var v=[];return v.push(["M",c.x,c.y+p]),0!==p&&v.push(["A",p,p,0,0,1,c.x+p,c.y]),v.push(["L",l.x-f,l.y]),0!==f&&v.push(["A",f,f,0,0,1,l.x,l.y+f]),v.push(["L",u.x,u.y-d]),0!==d&&v.push(["A",d,d,0,0,1,u.x-d,u.y]),v.push(["L",s.x+g,s.y]),0!==g&&v.push(["A",g,g,0,0,1,s.x,s.y-g]),v.push(["L",c.x,c.y+p]),v.push(["z"]),v}Di("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return $r(t)}});Ri("interval","rect",{draw:function(t,e){var n,i=Ir(t,!1,!0),r=e,a=null===t||void 0===t?void 0:t.background;if(a){r=e.addGroup();var s=Er(t),c=ea(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},s),{path:c}),zIndex:-1,name:wi})}n=i.radius&&this.coordinate.isRect?ra(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath(na(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 aa(t,e){var n=t.length,i=t;Object(s["Q"])(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],a=2;ao&&(r=o)}return r}function oa(t,e){if(e){var n=Object(s["q"])(t),i=Object(s["yb"])(n,e);return i.length}return t.length}function sa(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,a=t.beforeMappingData,o=r.length,c=It(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=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=aa(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["K"])(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,C=oa(a,j);if(!Object(s["K"])(u)&&u>=0){var w=u/c;m=(m-w*(C-1))/C}else!Object(s["K"])(l)&&l>=0?(m*=b,m/=C):m/=C;m=m>=0?m:0}if(!Object(s["K"])(h)&&h>=0){var M=h/c;m>M&&(m=M)}if(!Object(s["K"])(p)&&p>=0){var S=p/c;m0&&!Object(s["s"])(n,[i,"min"])&&e.change({min:0}),a<=0&&!Object(s["s"])(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}(Vi),la=ca,ua=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["b"])(e,t),e}(Gr),ha=ua,pa=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],fa=["cross","tick","plus","hyphen","line"];function da(t,e,n,i,r){var a=Ir(e,r,!r,"r"),s=t.parsePoints(e.points),c=s[0];if(e.isStack)c=s[1];else if(s.length>1){for(var l=n.addGroup(),u=0,h=s;u2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=Aa(r[0],r[1],s):(i.fill=i.stroke,n=ka(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=jt((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=Ma(r[1],r[3]),l=Ma(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}}}}),Ri("edge","smooth",{draw:function(t,e){var n=Ir(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Ba(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 Ta=1/3;function Pa(t,e){var n=[];n.push({x:t.x,y:t.y*(1-Ta)+e.y*Ta}),n.push({x:e.x,y:t.y*(1-Ta)+e.y*Ta}),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 Ia(t){var e=t.x,n=t.y,i=t.y0;return Object(s["C"])(n)?n.map((function(t,n){return{x:Object(s["C"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function Ea(t){var e,n,i=t.x,r=t.y,a=t.y0,o=t.size;Object(s["C"])(r)?(e=r[0],n=r[1]):(e=a,n=r);var c=i+o/2,l=i-o/2;return[{x:i,y:e},{x:i,y:n},{x:l,y:e},{x:c,y:e},{x:l,y:n},{x:c,y:n}]}function La(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]]}Ri("edge","vhv",{draw:function(t,e){var n=Ir(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Pa(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}}}}),Ri("interval","funnel",{getPoints:function(t){return t.size=2*t.size,$r(t)},draw:function(t,e){var n=Ir(t,!1,!0),i=this.parsePath(ia(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}}}}),Ri("interval","hollow-rect",{draw:function(t,e){var n=Ir(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=Er(t),s=ea(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(o["a"])(Object(o["a"])({},a),{path:s}),zIndex:-1,name:wi})}var c=this.parsePath(Jr(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}}}}),Ri("interval","line",{getPoints:function(t){return Ia(t)},draw:function(t,e){var n=Ir(t,!0,!1,"lineWidth"),i=kt(Object(o["a"])({},n),["fill"]),r=this.parsePath(Jr(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}}}}),Ri("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,$r(t)},draw:function(t,e){var n=Ir(t,!1,!0),i=this.parsePath(ia(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}}}}),Ri("interval","tick",{getPoints:function(t){return Ea(t)},draw:function(t,e){var n=Ir(t,!0,!1),i=this.parsePath(La(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 Fa=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 Da(t,e){var n=[];return Object(s["j"])(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=Fa(i,a,e);n=n.concat(o)}})),n}function Ra(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function _a(t,e){var n=Br(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(s["j"])(n,(function(t){var n=Da(t,e);i=i.concat(Ra(n))})),Object(o["a"])(Object(o["a"])({},Ir(t,!0,!1,"lineWidth")),{path:i})}function Ya(t){var e=Object(s["C"])(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 Xa(t,e,n){var i,r=n/2;if(Object(s["C"])(e)){var a=Ya(e),o=a.min,c=a.max,l=a.median,u=a.min1,h=a.max1,p=t-r,f=t+r;i=[[p,c],[f,c],[t,c],[t,h],[p,u],[p,h],[f,h],[f,u],[t,u],[t,o],[p,o],[f,o],[p,l],[f,l]]}else{e=Object(s["K"])(e)?.5:e;var d=Ya(t),g=(o=d.min,c=d.max,l=d.median,u=d.min1,h=d.max1,e-r),v=e+r;i=[[o,g],[o,v],[o,e],[u,e],[u,g],[u,v],[h,v],[h,g],[h,e],[c,e],[c,g],[c,v],[l,g],[l,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Na(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 Ga(t){var e=Object(s["C"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return At(n,4,n[n.length-1])}function za(t,e,n){var i=Ga(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 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],["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 Va(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){Ri("line",t,{draw:function(e,n){var i=_a(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Dr(e,t)}})})),Object(s["j"])(fa,(function(t){Ri("point",t,{draw:function(e,n){return da(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:cr[t],style:{r:4.5,stroke:n,fill:null}}}})})),Ri("point","image",{draw:function(t,e){var n=Ir(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var a=e.addGroup(),o=0,s=i;o0?"left":"right");break;case"left":t.x=c,t.y=(r+o)/2,t.textAlign=Object(s["s"])(t,"textAlign",d>0?"left":"right");break;case"bottom":u&&(t.x=(a+c)/2),t.y=o,t.textAlign=Object(s["s"])(t,"textAlign","center"),t.textBaseline=Object(s["s"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":u&&(t.x=(a+c)/2),t.y=(r+o)/2,t.textAlign=Object(s["s"])(t,"textAlign","center"),t.textBaseline=Object(s["s"])(t,"textBaseline","middle");break;case"top":u&&(t.x=(a+c)/2),t.y=r,t.textAlign=Object(s["s"])(t,"textAlign","center"),t.textBaseline=Object(s["s"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(or),qa=Wa,Ka=Math.PI/2,Ua=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(s["M"])(t))n=t;else if(Object(s["Q"])(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["W"])(n,(function(t){if(t&&i){var e=i.scale(Object(s["s"])(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["C"])(t.x)||Object(s["C"])(t.y)?{x:Object(s["C"])(t.x)?t.x[e]:t.x,y:Object(s["C"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Dt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),s=Lt(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+Ka;return n&&(i-=Ka),i&&(i>Ka?i-=Math.PI:i<-Ka&&(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}(or),Za=Ua,Qa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(o["b"])(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(s["h"])({},i,Object(s["s"])(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var i;return e<0&&(i=t,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["C"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(s["C"])(t.x)?t.x[1]:t.x,y:t.y[1]},a=Dt(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=Dt(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"])({},xt(i.x,i.y,r,t)),{angle:t,r:r})},e}(Za),$a=Qa,Ja=4;function to(t,e,n,i,r,a){var o,c=!0,l=i.start,u=i.end,h=Math.min(l.y,u.y),p=Math.abs(l.y-u.y),f=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>f&&(f=t.y),t.yp&&(p=f-h);while(c){g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),p-t.size)})),c=!1,o=g.length;while(o--)if(o>0){var v=g[o-1],y=g[o];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>p&&(v.pos=p-v.size),g.splice(o,1),c=!0)}}o=0,g.forEach((function(t){var i=h+n/2;t.targets.forEach((function(){e[o].y=t.pos+i,i+=n,o++}))}));for(var m={},b=0,x=t;b0){var l=14,u=o+r,h=2*u+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=h/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})),to(e,t,l,p,c,n)}))}Object(s["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=xt(c.x,c.y,o,n),r=xt(c.x,c.y,o+e/2,n),a=t.x+Object(s["s"])(t,"offsetX",0),l=t.y+Object(s["s"])(t,"offsetY",0),u={x:a-Math.cos(n)*Ja,y:l-Math.sin(n)*Ja};Object(s["O"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+i.x,i.y+" Q"+r.x,r.y+" "+u.x,u.y].join(",")}}))}}function no(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,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>l&&(l=t.y),t.yc&&(c=l-o);while(a){h.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),c-t.size),t.pos=Math.max(0,t.pos)})),a=!1,r=h.length;while(r--)if(r>0){var p=h[r-1],f=h[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),h.splice(r,1),a=!0)}}r=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var io=4;function ro(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,a=t.offset,o=xt(n.x,n.y,i,r),c=t.x+Object(s["s"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+Object(s["s"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),u={x:c-Math.cos(r)*io,y:l-Math.sin(r)*io},h=t.labelLine.smooth,p=[],f=u.x-n.x,d=u.y-n.y,g=Math.atan(d/f);if(f<0&&(g+=Math.PI),!1===h){Object(s["O"])(t.labelLine)||(t.labelLine={});var v=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&u.y>o.y&&(v=1),r>=0&&ro.y&&(v=1),r>=Math.PI/2&&ru.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&o.y>u.y&&(v=1);var y=a/2>4?4:Math.max(a/2-1,0),m=xt(n.x,n.y,i+y,r),b=xt(n.x,n.y,i+a/2,g),x=0;p.push("M "+o.x+" "+o.y),p.push("L "+m.x+" "+m.y),p.push("A "+n.x+" "+n.y+" 0 "+x+" "+v+" "+b.x+" "+b.y),p.push("L "+u.x+" "+u.y)}else{m=xt(n.x,n.y,i+(a/2>4?4:Math.max(a/2-1,0)),r);var O=o.xMath.pow(Math.E,-16)&&p.push.apply(p,["C",u.x+4*O,u.y,2*m.x-o.x,2*m.y-o.y,o.x,o.y]),p.push("L "+o.x+" "+o.y)}t.labelLine.path=p.join(" ")}}function ao(t,e,n,i){var r=Object(s["l"])(t,(function(t){return!Object(s["K"])(t)})),a=e[0]&&e[0].get("coordinate");if(a){for(var o=a.getCenter(),c=a.getRadius(),l={},u=0,h=e;un&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["j"])(t,(function(t,e){e+1>n&&(l[t.id].set("visible",!1),t.invisible=!0)}))),no(t,f,j)})),Object(s["j"])(y,(function(t,e){Object(s["j"])(t,(function(t){var n=e===v,i=l[t.id],r=i.getChildByIndex(0);if(r){var s=c+d,u=t.y-o.y,h=Math.pow(s,2),p=Math.pow(u,2),f=h-p>0?h-p:0,g=Math.sqrt(f),y=Math.abs(Math.cos(t.angle)*s);t.x=n?o.x+Math.max(g,y):o.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),ro(t,a)}))}))}}}var oo=4,so=4,co=4;function lo(t,e,n){var i=e.getCenter(),r=e.getRadius(),a={x:t.x-(n?co:-co),y:t.y},o=xt(i.x,i.y,r+oo,t.angle),c={x:a.x,y:a.y},l={x:o.x,y:o.y},u=xt(i.x,i.y,r,t.angle),h="";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.y0&&t.angleo.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.ya.x||t.x===a.x&&t.y>a.y,i=Object(s["K"])(t.offsetX)?so:t.offsetX,r=xt(a.x,a.y,o+oo,t.angle),l=f+i;t.x=a.x+(n?1:-1)*(o+l),t.y=r.y}}));var d=r.start,g=r.end,v="left",y="right",m=Object(s["w"])(t,(function(t){return t.xb&&(b=Math.min(e,Math.abs(d.y-g.y)))}));var x={minX:d.x,maxX:g.x,minY:a.y-b/2,maxY:a.y+b/2};Object(s["j"])(m,(function(t,e){var n=b/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["j"])(t,(function(t,e){e>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),no(t,p,x)}));var O=x.minY,j=x.maxY;Object(s["j"])(m,(function(t,e){var n=e===y;Object(s["j"])(t,(function(t){var e=Object(s["s"])(c,t&&[t.id]);if(e)if(t.yj)e.set("visible",!1);else{var i=e.getChildByIndex(0),a=i.getCanvasBBox(),o={x:n?a.x:a.maxX,y:a.y+a.height/2};qi(i,t.x-o.x,t.y-o.y),t.labelLine&&lo(t,r,n)}}))}))}}function ho(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,u=o.maxY,h=o.x,p=o.y,f=o.width,d=o.height,g=h,v=p;(sr?g=r-f:l>r&&(g-=l-r),c>a?v=a-d:u>a&&(v-=u-a),g===h&&v===p||qi(t,g-h,v-p)}))}function po(t,e,n,i){Object(s["j"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minXr.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var fo=100,go=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 vo(t,e,n){void 0===n&&(n=fo);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),u=-r,h=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(h),Math.abs(p))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 jo(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 Co(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?[jo(e[0],n,e[0]),jo(e[1],n,e[0]),jo(e[2],n,e[0]),jo(e[3],n,e[0])]:e}function wo(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(xo([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function Mo(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=a.height:o.width>=a.width}function Do(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return Fo(t,e,r)}))}function Ro(t,e,n){var i=t.coordinate,r=Tt.fromObject(n.getBBox()),a=Qi(e);i.isTransposed?a.attr({x:r.minX+r.width/2,textAlign:"center"}):a.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function _o(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=Do(a,e,n);o&&n.forEach((function(t,n){var i=e[n];Ro(a,i,t)}))}}}function Yo(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 Xo(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,c=Yo(e),l=a.getXYFields()[0],u=[],h=[],p=Object(s["w"])(c,(function(t){return t.get("data")[l]})),f=Object(s["ub"])(Object(s["W"])(c,(function(t){return t.get("data")[l]})));c.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,t))};Object(s["mb"])(f)>0&&(o=f.shift(),d(p[o])),Object(s["mb"])(f)>0&&(o=f.pop(),d(p[o])),Object(s["j"])(f.reverse(),(function(t){d(p[t])}));while(h.length>0){var g=h.shift();g.get("visible")&&(tr(g,u)?g.set("visible",!1):u.push(g))}}}}function No(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function Go(t,e,n){return t.some((function(t){return n(t,e)}))}function zo(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 Ho(t,e){return Go(t,e,(function(t,e){var n=Qi(t),i=Qi(e);return zo(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Vo(t,e,n,i,r){var a,o;if(0!==n.length){var c=null===(a=n[0])||void 0===a?void 0:a.get("element"),l=null===c||void 0===c?void 0:c.geometry;if(l&&"point"===l.type){var u=l.getXYFields(),h=u[0],p=u[1],f=Object(s["w"])(e,(function(t){return t.get("data")[h]})),d=[],g=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(s["W"])(Object(s["T"])(f).reverse(),(function(t){var e=No(l,f[t]);while(e.length){var n=e.shift(),i=Qi(n);if(Go(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))i.set("visible",!1);else{var r=Ho(d,n),a=!1;r&&(i.attr("y",i.attr("y")+2*g),a=Ho(d,n)),a?i.set("visible",!1):d.push(n)}}}))}}}function Wo(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function qo(t,e,n){return t.some((function(t){return n(t,e)}))}function Ko(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 Uo(t,e){return qo(t,e,(function(t,e){var n=Qi(t),i=Qi(e);return Ko(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Zo(t,e,n,i,r){var a,o;if(0!==n.length){var c=null===(a=n[0])||void 0===a?void 0:a.get("element"),l=null===c||void 0===c?void 0:c.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var u=l.getXYFields(),h=u[0],p=u[1],f=Object(s["w"])(e,(function(t){return t.get("data")[h]})),d=[],g=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(s["W"])(Object(s["T"])(f).reverse(),(function(t){var e=Wo(l,f[t]);while(e.length){var n=e.shift(),i=Qi(n);if(qo(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))i.set("visible",!1);else{var r=Uo(d,n),a=!1;r&&(i.attr("y",i.attr("y")+2*g),a=Uo(d,n)),a?i.set("visible",!1):d.push(n)}}}))}}}function Qo(){return Po||(Po=document.createElement("canvas").getContext("2d")),Po}var $o=Object(s["ab"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant,c=Qo();return c.font=[a,o,r,n+"px",i].join(" "),c.measureText(Object(s["Q"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(o["d"])([t],Object(s["xb"])(e),!0).join("")})),Jo=function(t,e,n){var i,r=16,a=$o("...",n);i=Object(s["Q"])(t)?t:Object(s["tb"])(t);var o,c,l=e,u=[];if($o(t,n)<=e)return t;while(1){if(o=i.substr(0,r),c=$o(o,n),c+a>l&&c>l)break;if(u.push(o),l-=c,i=i.substr(r),!i)return u.join("")}while(1){if(o=i.substr(0,1),c=$o(o,n),c+a>l)break;if(u.push(o),l-=c,i=i.substr(1),!i)return u.join("")}return u.join("")+"..."};function ts(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 u=_t(l,c),h=u.minX,p=u.minY,f=u.maxX,d=u.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,u=e.y,g=e.width,v=e.height,y=l,m=u;if(a.indexOf("left")>=0&&(n=0&&(i=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!==u){var b=y-l;if("translate"===o)qi(t,b,m-u);else if("ellipsis"===o){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(s["hb"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=Jo(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}function es(t,e,n){var i={fillOpacity:Object(s["K"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(s["K"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(s["K"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function ns(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 is(t,e,n){var i,r=e[0],a=e[1];return t.applyToMatrix([r,a,1]),"x"===n?(t.setMatrix(Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,1],["t",r,a]])),i=Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,1],["t",r,a]])):"y"===n?(t.setMatrix(Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",1,.01],["t",r,a]])),i=Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",1,100],["t",r,a]])):"xy"===n&&(t.setMatrix(Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]])),i=Q["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,100],["t",r,a]])),i}function rs(t,e,n,i,r){var a,o,s=n.start,c=n.end,l=n.getWidth(),u=n.getHeight();"y"===r?(a=s.x+l/2,o=i.ys.x?i.x:s.x,o=s.y+u/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 h=is(t,[a,o],r);t.animate({matrix:h},e)}function as(t,e,n){var i=n.coordinate,r=n.minYPoint;rs(t,e,i,r,"x")}function os(t,e,n){var i=n.coordinate,r=n.minYPoint;rs(t,e,i,r,"y")}function ss(t,e,n){var i=n.coordinate,r=n.minYPoint;rs(t,e,i,r,"xy")}function cs(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function ls(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 us(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=Q["a"].transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(c),t.animate({matrix:Q["a"].transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function hs(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=Q["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(c),t.animate({matrix:Q["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function ps(t,e){var n,i=Object(Mr["getArcParams"])(t,e),r=i.startAngle,a=i.endAngle;return!Object(s["N"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(s["N"])(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(n=[a,r],r=n[0],a=n[1]),Object(s["N"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(s["N"])(a,-.5*Math.PI)&&(a=1.5*Math.PI),{startAngle:r,endAngle:a}}function fs(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 ds(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],o=r.length>1?r[1]:r[0],c=t.indexOf(a),l=t.indexOf(o),u=fs(t[c-1]),h=fs(t[l-1]),p=ps(u,a),f=p.startAngle,d=p.endAngle,g=ps(h,o),v=g.startAngle,y=g.endAngle;Object(s["N"])(f,v)&&Object(s["N"])(d,y)?(n=f,i=d):(n=Math.min(f,v),i=Math.max(d,y));var m=a[1],b=r[r.length-1][1];return m=0;a--)for(var o=this.getFacetsByLevel(t,a),s=0,c=o;s=n){var r=i.parsePosition([t[c],t[o.field]]);r&&p.push(r)}if(t[c]===h)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["K"])(e))return null;if("arc"===t){var l=e,u=l.start,h=l.end,p=Object(o["c"])(l,["start","end"]),f=this.parsePosition(u),d=this.parsePosition(h),g=Dt(r,f),v=Dt(r,d);g>v&&(v=2*Math.PI+v),c=Object(o["a"])(Object(o["a"])({},p),{center:r.getCenter(),radius:Lt(r,f),startAngle:g,endAngle:v})}else if("image"===t){var y=e;u=y.start,h=y.end,p=Object(o["c"])(y,["start","end"]);c=Object(o["a"])(Object(o["a"])({},p),{start:this.parsePosition(u),end:this.parsePosition(h),src:e.src})}else if("line"===t){var m=e;u=m.start,h=m.end,p=Object(o["c"])(m,["start","end"]);c=Object(o["a"])(Object(o["a"])({},p),{start:this.parsePosition(u),end:this.parsePosition(h),text:Object(s["s"])(e,"text",null)})}else if("region"===t){var b=e;u=b.start,h=b.end,p=Object(o["c"])(b,["start","end"]);c=Object(o["a"])(Object(o["a"])({},p),{start:this.parsePosition(u),end:this.parsePosition(h)})}else if("text"===t){var x=this.view.getData(),O=e,j=O.position,C=O.content,w=(p=Object(o["c"])(O,["position","content"]),C);Object(s["I"])(C)&&(w=C(x)),c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.parsePosition(j)),p),{content:w})}else if("dataMarker"===t){var M=e,S=(j=M.position,M.point),A=M.line,k=M.text,B=M.autoAdjust,T=M.direction;p=Object(o["c"])(M,["position","point","line","text","autoAdjust","direction"]);c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},p),this.parsePosition(j)),{coordinateBBox:this.getCoordinateBBox(),point:S,line:A,text:k,autoAdjust:B,direction:T})}else if("dataRegion"===t){var P=e,I=(u=P.start,h=P.end,P.region),E=(k=P.text,P.lineLength);p=Object(o["c"])(P,["start","end","region","text","lineLength"]);c=Object(o["a"])(Object(o["a"])({},p),{points:this.getRegionPoints(u,h),region:I,text:k,lineLength:E})}else if("regionFilter"===t){var L=e,F=(u=L.start,h=L.end,L.apply),D=L.color,R=(p=Object(o["c"])(L,["start","end","apply","color"]),this.view.geometries),_=[],Y=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return Y(t)})):_.push(t))};Object(s["j"])(R,(function(t){F?Object(s["f"])(F,t.type)&&Object(s["j"])(t.elements,(function(t){Y(t.shape)})):Object(s["j"])(t.elements,(function(t){Y(t.shape)}))})),c=Object(o["a"])(Object(o["a"])({},p),{color:D,shapes:_,start:this.parsePosition(u),end:this.parsePosition(h)})}else if("shape"===t){var X=e,N=X.render,G=Object(o["c"])(X,["render"]),z=function(t){if(Object(s["I"])(e.render))return N(t,i.view,{parsePosition:i.parsePosition.bind(i)})};c=Object(o["a"])(Object(o["a"])({},G),{render:z})}else if("html"===t){var H=e,V=H.html,W=(j=H.position,G=Object(o["c"])(H,["html","position"]),function(t){return Object(s["I"])(V)?V(t,i.view):V});c=Object(o["a"])(Object(o["a"])(Object(o["a"])({},G),this.parsePosition(j)),{parent:a.get("el").parentNode,html:W})}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["s"])(e,"animate",q.animate),q.animateOption=Object(s["h"])({},yi,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return Object(s["s"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(s["s"])(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);kt(r,["container"]),e.component.update(r),Object(s["A"])(Rs,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(s["A"])(Rs,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}(ui),Ys=_s;function Xs(t,e){var n=Object(s["h"])({},Object(s["s"])(t,["components","axis","common"]),Object(s["s"])(t,["components","axis",e]));return Object(s["s"])(n,["grid"],{})}function Ns(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 Gs(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,u=(c+l)/2;return"x"===r?o.push({points:[t.convert({x:i?l:u,y:0}),t.convert({x:i?l:u,y:1})]}):o.push({points:Object(s["W"])(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:u})}))}),n}),c[0]),o}function zs(t,e){var n=Object(s["s"])(e,"grid");if(null===n)return!1;var i=Object(s["s"])(t,"grid");return!(void 0===n&&null===i)}var Hs=["container"],Vs=Object(o["a"])(Object(o["a"])({},yi),{appear:null}),Ws=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["b"])(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,u=c.scale,h=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===l?i=e.isTransposed?Kt(e,o):Jt(e):"y"===l&&(i=e.isTransposed?Jt(e):Kt(e,o)):i=Kt(e,o);else if(s===a.GRID)if(e.isPolar){var p=void 0;p=e.isTransposed?"x"===l?Gs(e,t.view.getYScales()[0],u,h,l):Ns(e,u,l,h):"x"===l?Ns(e,u,l,h):Gs(e,t.view.getXScale(),u,h,l),i={items:p,center:t.view.getCoordinate().getCenter()}}else i={items:Ns(e,u,l,h)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.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=te(this.option,e.field);if(!1!==n){var a=ee(n,r.BOTTOM),o=i.BG,c="x",l=this.view.getCoordinate(),u=this.getId("axis",e.field),h=this.getId("grid",e.field);if(l.isRect){var p=this.cache.get(u);if(p){var f=this.getLineAxisCfg(e,n,a);kt(f,Hs),p.component.update(f),t.set(u,p)}else p=this.createLineAxis(e,n,o,a,c),this.cache.set(u,p),t.set(u,p);var d=this.cache.get(h);if(d){f=this.getLineGridCfg(e,n,a,c);kt(f,Hs),d.component.update(f),t.set(h,d)}else d=this.createLineGrid(e,n,o,a,c),d&&(this.cache.set(h,d),t.set(h,d))}else if(l.isPolar){p=this.cache.get(u);if(p){f=l.isTransposed?this.getLineAxisCfg(e,n,r.RADIUS):this.getCircleAxisCfg(e,n,a);kt(f,Hs),p.component.update(f),t.set(u,p)}else{if(l.isTransposed){if(Object(s["S"])(n))return;p=this.createLineAxis(e,n,o,r.RADIUS,c)}else p=this.createCircleAxis(e,n,o,a,c);this.cache.set(u,p),t.set(u,p)}d=this.cache.get(h);if(d){f=l.isTransposed?this.getCircleGridCfg(e,n,r.RADIUS,c):this.getLineGridCfg(e,n,r.CIRCLE,c);kt(f,Hs),d.component.update(f),t.set(h,d)}else{if(l.isTransposed){if(Object(s["S"])(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(h,d),t.set(h,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=te(e.option,o);if(!1!==c){var l=i.BG,u="y",h=e.getId("axis",o),p=e.getId("grid",o),f=e.view.getCoordinate();if(f.isRect){var d=ee(c,0===a?r.LEFT:r.RIGHT),g=e.cache.get(h);if(g){var v=e.getLineAxisCfg(n,c,d);kt(v,Hs),g.component.update(v),t.set(h,g)}else g=e.createLineAxis(n,c,l,d,u),e.cache.set(h,g),t.set(h,g);var y=e.cache.get(p);if(y){v=e.getLineGridCfg(n,c,d,u);kt(v,Hs),y.component.update(v),t.set(p,y)}else y=e.createLineGrid(n,c,l,d,u),y&&(e.cache.set(p,y),t.set(p,y))}else if(f.isPolar){g=e.cache.get(h);if(g){v=f.isTransposed?e.getCircleAxisCfg(n,c,r.CIRCLE):e.getLineAxisCfg(n,c,r.RADIUS);kt(v,Hs),g.component.update(v),t.set(h,g)}else{if(f.isTransposed){if(Object(s["S"])(c))return;g=e.createCircleAxis(n,c,l,r.CIRCLE,u)}else g=e.createLineAxis(n,c,l,r.RADIUS,u);e.cache.set(h,g),t.set(h,g)}y=e.cache.get(p);if(y){v=f.isTransposed?e.getLineGridCfg(n,c,r.CIRCLE,u):e.getCircleGridCfg(n,c,r.RADIUS,u);kt(v,Hs),y.component.update(v),t.set(p,y)}else{if(f.isTransposed){if(Object(s["S"])(c))return;y=e.createLineGrid(n,c,l,r.CIRCLE,u)}else y=e.createCircleGrid(n,c,l,r.RADIUS,u);y&&(e.cache.set(p,y),t.set(p,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,o){var s={component:new ut(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 pt(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["s"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new ht(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 ft(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["s"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(s["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=Kt(r,n),c=ne(t,e),l=Qt(this.view.getTheme(),n),u=Object(s["s"])(e,["title"])?Object(s["h"])({title:{style:{text:c}}},{title:$t(this.view.getTheme(),n,e.title)},e):e,h=Object(s["h"])(Object(o["a"])(Object(o["a"])({container:i},a),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Zt(a,r.getCenter()):Zt(a,r.getCenter()),theme:l}),l,u),p=this.getAnimateCfg(h),f=p.animate,d=p.animateOption;h.animateOption=d,h.animate=f;var g=Ut(a),v=Object(s["s"])(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?y:m)}return h},e.prototype.getLineGridCfg=function(t,e,n,i){if(zs(Qt(this.view.getTheme(),n),e)){var r=Xs(this.view.getTheme(),n),a=Object(s["h"])({container:Object(s["s"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(s["s"])(e,"grid"),this.getAnimateCfg(e));return a.items=Ns(this.view.getCoordinate(),t,i,Object(s["s"])(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(s["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),c=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(a.endAngle-a.startAngle)!==2*Math.PI||c.pop();var l=ne(t,e),u=Qt(this.view.getTheme(),r.CIRCLE),h=Object(s["s"])(e,["title"])?Object(s["h"])({title:{style:{text:l}}},{title:$t(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:u}),u,h),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(zs(Qt(this.view.getTheme(),n),e)){var a=Xs(this.view.getTheme(),r.RADIUS),o=Object(s["h"])({container:Object(s["s"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(s["s"])(e,"grid"),this.getAnimateCfg(e)),c=Object(s["s"])(o,"alignTick",!0),l="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=Gs(this.view.getCoordinate(),l,t,c,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return t+"-"+e+"-"+n.type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(s["s"])(t,"animate"),animateOption:t&&t.animateOption?Object(s["h"])({},Vs,t.animateOption):Vs}},e}(ui),qs=Ws;function Ks(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 Us(t,e){return Object(s["D"])(t)?!1!==t&&{}:Object(s["s"])(t,[e],t)}function Zs(t){return Object(s["s"])(t,"position",r.BOTTOM)}var Qs=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["b"])(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=fr(i),a=n.get("maxWidthRatio"),o=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,a,o),c=n.get("maxWidth"),l=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,c||0),maxHeight:Math.min(s.maxHeight,l||0)});var u=n.get("padding"),h=n.getLayoutBBox(),p=new Tt(h.x,h.y,h.width,h.height).expand(u),f=Ks(t.view.viewBBox,p,i),d=f[0],g=f[1],v=Ks(t.layoutBBox,p,i),y=v[0],m=v[1],b=0,x=0;i.startsWith("top")||i.startsWith("bottom")?(b=d,x=m):(b=y,x=g),n.setLocation({x:b+u[3],y:x+u[0]}),t.layoutBBox=t.layoutBBox.cut(p,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=Us(t.option,r.field);!1!==l&&(Object(s["s"])(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&&(kt(c,["container"]),o.direction=Zs(l),o.component.update(c),e[a]=!0)}else{var u=t.createFieldLegend(n,i,r);u&&(u.component.init(),t.components.push(u),e[a]=!0)}};if(Object(s["s"])(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);kt(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 u=i.FORE,h=Zs(this.option);this.components.push({id:r,component:l,layer:u,direction:h,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=Us(this.option,n.field),c=i.FORE,l=Zs(o);if(!1!==o&&(Object(s["s"])(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 dt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,kt(i,["value"]));return new gt(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new dt(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["z"])(c).value,max:Object(s["U"])(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 u=this.container,h=Zs(i),p=fr(h),f=Object(s["s"])(i,"title");return f&&(f=Object(s["h"])({text:zt(n)},f)),l.container=u,l.layout=p,l.title=f,l.animateOption=yi,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,a){var o=this.container,c=Object(s["s"])(i,"position",r.BOTTOM),l=vr(this.view.getTheme(),c),u=Object(s["s"])(l,["marker"]),h=Object(s["s"])(i,"marker"),p=fr(c),f=Object(s["s"])(l,["pageNavigator"]),d=Object(s["s"])(i,"pageNavigator"),g=a?gr(u,h,i.items):dr(this.view,t,e,u,h),v=Object(s["s"])(i,"title");v&&(v=Object(s["h"])({text:n?zt(n):""},v));var y=Object(s["s"])(i,"maxWidthRatio"),m=Object(s["s"])(i,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(p,y,m);b.container=o,b.layout=p,b.items=g,b.title=v,b.animateOption=yi,b.pageNavigator=Object(s["h"])({},f,d);var x=this.mergeLegendCfg(b,i,c);x.reversed&&x.items.reverse();var O=Object(s["s"])(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=vr(this.view.getTheme(),i);return Object(s["h"])({},r,t,e)},e.prototype.getId=function(t){return this.name+"-"+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}(ui),$s=Qs,Js=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],i=t[1];n.start=e,n.end=i,n.changeViewData(e,i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(s["qb"])(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["b"])(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["K"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(s["G"])(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],a=(n[1],n[2],n[3]),s=this.slider.component.getLayoutBBox(),c=new Tt(s.x,s.y,Math.min(s.width,e),s.height).expand(n),l=this.getMinMaxText(this.start,this.end),u=l.minText,h=l.maxText,p=Ks(this.view.viewBBox,c,r.BOTTOM),f=(p[0],p[1]),d=Ks(this.view.coordinateBBox,c,r.BOTTOM),g=d[0];d[1];this.slider.component.update(Object(o["a"])(Object(o["a"])({},this.getSliderCfg()),{x:g+a,y:f+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(c,r.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new lt["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["O"])(this.option)){var e=Object(o["a"])({data:this.getData()},Object(s["s"])(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["K"])(t.start)?0:t.start,Object(s["K"])(t.end)?1:t.end),0,1),t.end=Object(s["c"])(Math.max(Object(s["K"])(t.start)?0:t.start,Object(s["K"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,a=i.ticks;return t.reduce((function(t,n){return n[r]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s["s"])(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["yb"])(n,i.field),o=r?a:a.reverse(),c=Object(s["mb"])(n);if(!i||!c)return{};var l=Object(s["mb"])(o),u=Math.floor(t*(l-1)),h=Math.floor(e*(l-1)),p=Object(s["s"])(o,[u]),f=Object(s["s"])(o,[h]),d=this.getSliderCfg().formatter;return d&&(p=d(p,n[u],u),f=d(f,n[h],h)),{minText:p,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(s["mb"])(n);if(i&&r){var a=!0,o=Object(s["yb"])(n,i.field),c=a?o:o.reverse(),l=Object(s["mb"])(c),u=Math.floor(t*(l-1)),h=Math.floor(e*(l-1));this.view.filter(i.field,(function(t,e){var n=c.indexOf(t);return!(n>-1)||St(n,u,h)})),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}(ui),tc=Js,ec=0,nc=8,ic=32,rc=20,ac=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["fb"],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["qb"])(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["b"])(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 Tt(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 u=Ks(this.view.viewBBox,a,r.BOTTOM),h=(u[0],u[1]),p=Ks(this.view.coordinateBBox,a,r.BOTTOM),f=p[0];p[1];c=f,l=h}else{var d=Ks(this.view.viewBBox,a,r.RIGHT),g=(d[0],h=d[1],Ks(this.view.viewBBox,a,r.RIGHT));f=g[0],g[1];c=f,l=h}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["s"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(s["s"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=Object(o["c"])(n,["thumbHighlightColor"]);return{default:Object(s["h"])({},Object(s["s"])(e,["default","style"],{}),r),hover:Object(s["h"])({},Object(s["s"])(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=t[0],r=t[1],a=this.getValidScrollbarCfg().type,o="vertical"!==a,c=Object(s["yb"])(this.data,this.xScaleCfg.field),l=o?c:c.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=l.indexOf(t);return!(e>-1)||St(e,i,r)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new lt["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["yb"])(e,t.field);return Object(s["mb"])(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,u=i.style,h="vertical"!==r,p=a[0],f=a[1],d=a[2],g=a[3],v=h?{x:e.minX+g,y:n.maxY-l-d}:{x:n.maxX-c-f,y:e.minY+p},y=this.getStep(),m=this.getCnt(),b=h?e.width-g-f:e.height-p-d,x=Math.max(b*Object(s["c"])(y/m,0,1),rc);return Object(o["a"])(Object(o["a"])({},this.getThemeOptions()),{x:v.x,y:v.y,size:h?l:c,isHorizontal:h,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:ic,width:nc,height:nc,padding:[0,0,0,0],animate:!0,style:{}};return Object(s["O"])(this.option)&&(t=Object(o["a"])(Object(o["a"])({},t),this.option)),Object(s["O"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[ec,0,ec,0]:[0,ec,0,ec]),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["d"])([],n,!0).reverse()),n},e}(ui),oc=ac,sc={fill:"#CCD6EC",opacity:.3};function cc(t,e,n){var i=zn(t,e,n);if(i.length){i=Object(s["q"])(i);for(var r=0,a=i;r1){for(var g=i[0],v=Math.abs(e.y-g[0].y),y=0,m=i;yf.maxY&&(f=e)):(e.minXf.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(h.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(s["K"])(O)&&(x=Object(s["K"])(x)?m.isLinear?0:.25:x,O=h.isTransposed?x*f.height:x*p.width);var j=void 0,C=void 0,w=void 0,M=void 0;h.isTransposed?(j=v.minX,C=Math.min(f.minY,p.minY)-O,w=v.width,M=d.height+2*O):(j=Math.min(p.minX,f.minX)-O,C=v.minY,w=d.width+2*O,M=v.height),y=[["M",j,C],["L",j+w,C],["L",j+w,C+M],["L",j,C+M],["Z"]]}else{var S=Object(s["z"])(l),A=Object(s["U"])(l),k=Ct(S.getModel(),h).startAngle,B=Ct(A.getModel(),h).endAngle,T=h.getCenter(),P=h.getRadius(),I=h.innerRadius*P;y=Ot(T.x,T.y,P,k,B,I)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var E=Object(s["s"])(t,"style",sc);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(o["a"])(Object(o["a"])({},E),{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}(ce),uc=lc,hc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["b"])(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["s"])(t.view.getOptions(),"tooltip.showDelay",16);if(a-r>o){var c=this.location,l={x:e.x,y:e.y};c&&Object(s["H"])(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}(ce),pc=hc,fc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.showTooltip=function(t,e){var n=Ze(t);Object(s["j"])(n,(function(n){var i=$e(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=Ze(t);Object(s["j"])(e,(function(t){t.hideTooltip()}))},e}(pc),dc=fc,gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["b"])(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["H"])(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["s"])(r,["components","tooltip","domStyles"],{}),c=new vt({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:Object(o["a"])({},Object(s["h"])({},a,(t={},t[lt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[lt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(ce),vc=gc,yc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(o["b"])(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=Xe(t,this.stateName);Object(s["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(ce),mc=yc;function bc(t){return Object(s["s"])(t.get("delegateObject"),"item")}var xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(o["b"])(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=_e(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=tn(i,e),a=Ne(t,e);return!Object(s["K"])(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=Te(this.context);if(e)Ie(this.context)&&this.setStateByElement(e,t);else{var n=Pe(this.context);if(Ee(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=Te(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(mc),Oc=xc,jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["b"])(e,t),e.prototype.active=function(){this.setState()},e}(Oc),Cc=jc,wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(o["b"])(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["I"])(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=Ne(t,r.field);if(!this.cache[a]){var o=Ye(i,r.field,a),c=this.linkGroup,l=c.addGroup();this.cache[a]=l;var u=o.length;Object(s["j"])(o,(function(t,i){if(i=0}),e)},e}(Ac),Kc=qc,Uc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["b"])(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=_e(n);Rc(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Dc(t)},e}(Pc),Zc=Uc,Qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(Ac),$c=Qc,Jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(Oc),tl=Jc,el=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(Pc),nl=el,il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(o["b"])(e,t),e.prototype.getTriggerListInfo=function(){var t=Pe(this.context),e=null;return Ee(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=We(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=tn(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=tn(r,i),o=Ne(e,i),s=a.getText(o);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=Te(this.context);if(n){var i=this.getAllowComponents();Object(s["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Pe(this.context);if(Ee(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}(ce),rl=il,al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["b"])(e,t),e.prototype.active=function(){this.setState()},e}(rl),ol=al,sl="inactive",cl="active";function ll(t){var e=t.getItems();Object(s["j"])(e,(function(e){t.hasState(e,cl)&&t.setItemState(e,cl,!1),t.hasState(e,sl)&&t.setItemState(e,sl,!1)}))}var ul="inactive",hl="active",pl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=hl,e.ignoreItemStates=["unchecked"],e}return Object(o["b"])(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,ul)&&t.setItemState(n,ul,!1),t.setItemState(n,hl,!0)):t.hasState(n,hl)||t.setItemState(n,ul,!0)}));else{var r=t.getItemsByState(hl),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,hl)&&t.setItemState(n,hl,!1),t.setItemState(n,ul,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)ll(t.list);else{var e=this.getAllowComponents();Object(s["j"])(e,(function(t){t.clearItemsState(hl),t.clearItemsState(ul)}))}},e}(rl),fl=pl,dl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(rl),gl=dl,vl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(o["b"])(e,t),e.prototype.unchecked=function(){this.setState()},e}(rl),yl=vl,ml="unchecked",bl="checked",xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=bl,e}return Object(o["b"])(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,ml)&&t.setItemState(n,ml,!1),t.setItemState(n,bl,!0)):t.hasState(n,bl)||t.setItemState(n,ml,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(s["nb"])(e.getItems(),(function(t){return e.hasState(t,ml)}));i||e.hasState(n,ml)?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(ml)}))},e}(rl),Ol=xl,jl=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["b"])(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:"+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}(ce),Cl=jl,wl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(o["b"])(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(s["U"])(this.points),n=0,i=0,r=0;if(t.length){var a=t[0];n=qe(a,e)/2,i=(e.x+a.x)/2,r=(e.y+a.y)/2}return{x:i,y:r,r:n}},e}(Cl),Ml=wl,Sl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o["b"])(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(s["z"])(t),end:Object(s["U"])(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.abs(n.x-e.x),o=Math.abs(n.y-e.y);return{x:i,y:r,width:a,height:o}},e}(Cl),Al=Sl;function kl(t){t.x=Object(s["c"])(t.x,0,1),t.y=Object(s["c"])(t.y,0,1)}var Bl,Tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o["b"])(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),a=r.invert(Object(s["z"])(n)),o=r.invert(Object(s["U"])(n));return this.inPlot&&(kl(a),kl(o)),"x"===i?(t=r.convert({x:a.x,y:0}),e=r.convert({x:o.x,y:1})):(t=r.convert({x:0,y:a.y}),e=r.convert({x:1,y:o.y})),{start:t,end:e}},e}(Al),Pl=Tl,Il=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.getMaskPath=function(){var t=this.points,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},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(Cl),El=Il,Ll=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.getMaskPath=function(){var t=this.points;return Ke(t,!0)},e}(El),Fl=Ll,Dl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(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}(ce),Rl=Dl,_l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(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=Pe(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(Ee(t)){if(i){var r=n.getItemsByState("unchecked"),a=tn(e,i),o=r.map((function(t){return t.name}));o.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!o.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Le(t)){var s=n.getValue(),c=s[0],l=s[1];this.filterView(e,i,(function(t){return t>=c&&t<=l})),e.render(!0)}}},e}(ce),Yl=_l;function Xl(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),o=t.range,s=o[0],c=o[1];if(rc&&(a=c),r===c&&a===c)return null;var l=t.invert(r),u=t.invert(a);if(t.isCategory){var h=t.values.indexOf(l),p=t.values.indexOf(u),f=t.values.slice(h,p+1);return function(t){return f.includes(t)}}return function(t){return t>=l&&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"})(Bl||(Bl={}));var Nl=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["b"])(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(Fe(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(Bl.BEFORE_FILTER,Jn.fromData(a,Bl.BEFORE_FILTER,s));var c=a.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=a.getXScale(),p=Xl(h,"x",l,u);this.filterView(a,h.field,p)}if(this.hasDim("y")){var f=a.getYScales()[0];p=Xl(f,"y",l,u);this.filterView(a,f.field,p)}this.reRender(a,{source:Bl.FILTER}),a.emit(Bl.AFTER_FILTER,Jn.fromData(a,Bl.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Bl.BEFORE_RESET,Jn.fromData(t,Bl.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:Bl.RESET}),t.emit(Bl.AFTER_RESET,Jn.fromData(t,Bl.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(ce),Gl=Nl,zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.filterView=function(t,e,n){var i=Ze(t);Object(s["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Ze(t);Object(s["j"])(e,(function(t){t.render(!0)}))},e}(Gl),Hl=zl,Vl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(e,t),e.prototype.filter=function(){var t=Pe(this.context),e=this.context.view,n=_e(e);if(Fe(this.context)){var i=De(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(Ee(t)){if(a){var o=r.getItemsByState("unchecked"),c=tn(e,a),l=o.map((function(t){return t.name}));Object(s["j"])(n,(function(t){var e=Ne(t,a),n=c.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(Le(t)){var u=r.getValue(),h=u[0],p=u[1];Object(s["j"])(n,(function(t){var e=Ne(t,a);e>=h&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=_e(this.context.view);Object(s["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(ce),Wl=Vl,ql=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(o["b"])(e,t),e.prototype.filter=function(){Fe(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=De(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=Ze(t);Object(s["j"])(a,(function(t){var e=_e(t);Object(s["j"])(e,(function(t){var e=t.getModel().data;Je(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Ze(e);Object(s["j"])(n,(function(e){var n=Re(t.context,e,10),i=_e(e);n&&Object(s["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Ze(this.context.view);Object(s["j"])(t,(function(t){var e=_e(t);Object(s["j"])(e,(function(t){t.show()}))}))},e}(ce),Kl=ql,Ul=10,Zl=5,Ql=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["b"])(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=Vn(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=Q["a"].transform(null,[["t",n.x-r.width-Ul,n.y+r.height+Zl]]);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}(ce),$l=Ql,Jl=4,tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(o["b"])(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}):qe(t,this.startPoint)>Jl&&(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}(ce),eu=tu,nu=5,iu=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["b"])(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=qe(t,e);if(n>nu&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=Q["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}(ce),ru=iu,au="x",ou="y",su=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[au,ou],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(o["b"])(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(au),this.resetDim(ou);var t=this.context.view;t.render(!0)},e}(ce),cu=su,lu=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["b"])(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,u=this.dims;Object(s["j"])(u,(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}(cu),uu=lu,hu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(o["b"])(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,u=s+c,h=u-l,p=h/a;u>l&&p<100&&p>.01&&i.scale(e.field,{nice:!1,min:o-c,max:s+c})},e}(cu),pu=hu;function fu(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var du=1,gu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["b"])(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)||du,a=n.getController("scrollbar"),o=n.getXScale(),c=n.getOptions().data,l=Object(s["mb"])(Object(s["yb"])(c,o.field)),u=Object(s["mb"])(o.values),h=a.getValue(),p=Math.floor((l-u)*h),f=p+(fu(i)?r:-r),d=r/(l-u)/1e4,g=Object(s["c"])(f/(l-u)+d,0,1);a.setValue(g)}},e}(ce),vu=gu;function yu(t){return t.isInPlot()}function mu(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}kn("dark",yn(wr)),x("canvas",Mr),x("svg",Sr),oi("Polygon",ba),oi("Interval",la),oi("Schema",Oa),oi("Path",Gr),oi("Point",va),oi("Line",ha),oi("Area",qr),oi("Edge",Ur),oi("Heatmap",Qr),oi("Violin",wa),Ti("base",or),Ti("interval",qa),Ti("pie",$a),Ti("polar",Za),Ii("overlap",bo),Ii("distribute",eo),Ii("fixed-overlap",mo),Ii("hide-overlap",To),Ii("limit-in-shape",po),Ii("limit-in-canvas",ho),Ii("limit-in-plot",ts),Ii("pie-outer",ao),Ii("adjust-color",Lo),Ii("interval-adjust-position",_o),Ii("interval-hide-overlap",Xo),Ii("point-adjust-position",Vo),Ii("pie-spider",uo),Ii("path-adjust-position",Zo),vi("fade-in",es),vi("fade-out",ns),vi("grow-in-x",as),vi("grow-in-xy",ss),vi("grow-in-y",os),vi("scale-in-x",us),vi("scale-in-y",hs),vi("wave-in",vs),vi("zoom-in",ms),vi("zoom-out",bs),vi("position-update",ls),vi("sector-path-update",gs),vi("path-in",cs),oe("rect",Ps),oe("mirror",Bs),oe("list",Ms),oe("matrix",As),oe("circle",Cs),oe("tree",Es),qn("axis",qs),qn("legend",$s),qn("tooltip",fi),qn("annotation",Ys),qn("slider",tc),qn("scrollbar",oc),de("tooltip",pc),de("sibling-tooltip",dc),de("ellipsis-text",vc),de("element-active",Cc),de("element-single-active",Ec),de("element-range-active",Bc),de("element-highlight",Gc),de("element-highlight-by-x",Wc),de("element-highlight-by-color",Hc),de("element-single-highlight",Zc),de("element-range-highlight",Kc),de("element-sibling-highlight",Kc,{effectSiblings:!0,effectByRecord:!0}),de("element-selected",tl),de("element-single-selected",nl),de("element-range-selected",$c),de("element-link-by-color",Mc),de("active-region",uc),de("list-active",ol),de("list-selected",gl),de("list-highlight",fl),de("list-unchecked",yl),de("list-checked",Ol),de("legend-item-highlight",fl,{componentNames:["legend"]}),de("axis-label-highlight",fl,{componentNames:["axis"]}),de("rect-mask",Al),de("x-rect-mask",Pl,{dim:"x"}),de("y-rect-mask",Pl,{dim:"y"}),de("circle-mask",Ml),de("path-mask",El),de("smooth-path-mask",Fl),de("cursor",Rl),de("data-filter",Yl),de("brush",Gl),de("brush-x",Gl,{dims:["x"]}),de("brush-y",Gl,{dims:["y"]}),de("sibling-filter",Hl),de("sibling-x-filter",Hl),de("sibling-y-filter",Hl),de("element-filter",Wl),de("element-sibling-filter",Kl),de("element-sibling-filter-record",Kl,{byRecord:!0}),de("view-drag",eu),de("view-move",ru),de("scale-translate",uu),de("scale-zoom",pu),de("reset-button",$l,{name:"reset-button",text:"reset"}),de("mousewheel-scroll",vu),fn("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"}]}),fn("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),fn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),fn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),fn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),fn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),fn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:yu,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:yu,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:yu,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"]}]}),fn("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"]}]}),fn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:yu,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:yu,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:yu,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),fn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:yu,action:"path-mask:start"},{trigger:"mousedown",isEnable:yu,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"}]}),fn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),fn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),fn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),fn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),fn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),fn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),fn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return mu(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!mu(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),fn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),fn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},"91da":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return s}));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["C"])(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};var c=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 l(t,e,n){var i=null,r=n;return e=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 p=r-i;if(i0)){t[i]=e[i];break}n=p(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=p(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=p(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}},"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,u=e.dodgePadding,h=e.xDimensionLength,p=e.groupNum,f=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=p,n.defaultSize=f,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["q"](e),i=this.dodgeBy,a=i?r["v"](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.getDistribution(t),s=this.groupData(n,t);return r["j"](s,(function(n,s){var c;c=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(s),e),r["j"](n,(function(e){var n=e[t],r=o[n],s=r.indexOf(i);e[t]=a.getDodgeOffset(c,s,r.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,a=this,o=a.dodgeRatio,s=a.marginRatio,c=a.intervalPadding,l=a.dodgePadding,u=t.pre,h=t.next,p=h-u;if(!r["K"](c)&&r["K"](l)&&c>=0){var f=this.getIntervalOnlyOffset(n,e);i=u+f}else if(!r["K"](l)&&r["K"](c)&&l>=0){f=this.getDodgeOnlyOffset(n,e);i=u+f}else if(!r["K"](c)&&!r["K"](l)&&c>=0&&l>=0){f=this.getIntervalAndDodgeOffset(n,e);i=u+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=(u+h)/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,u=n.minColumnWidth,h=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["K"](h)?d:1/s/t*h,!r["K"](l)){var g=l/o;d=Math.min(d,g)}if(!r["K"](u)){var v=u/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,u=n.minColumnWidth,h=n.columnWidthRatio,p=a/o,f=1*c/(s-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=h?1/s/t*h:d,!r["K"](l)){var g=l/o;d=Math.min(d,g)}if(!r["K"](u)){var v=u/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,u=((.5+e)*l+e*c+.5*s)*o-s/2;return u},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["yb"](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}},"974f":function(t,e){},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["db"])(a,e[r]))})),a}},"9ab4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return c})); /*! ***************************************************************************** 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)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");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;n1&&(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=(u+p)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+f)/2+Math.sin(s)*b+Math.cos(s)*x,C=[(d-b)/n,(g-x)/r],w=[(-1*d-b)/n,(-1*g-x)/r],M=o([1,0],C),S=o(C,w);return a(C,w)<=-1&&(S=Math.PI),a(C,w)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=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:M,endAngle:M+S,xRotation:s,arcFlag:c,sweepFlag:l}}},"9f27":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),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,u,h){var p=e.stroke,f=e.lineWidth,d=n-l,g=i-u,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,u),y.rotateAtPoint(l,u,v),t.set(h?"startArrowShape":"endArrowShape",y)}function u(t,e,n,c,l,u,h){var p=e.startArrow,f=e.endArrow,d=e.stroke,g=e.lineWidth,v=h?p:f,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,O=Object(i["c"])(v,["d","fill","stroke","lineWidth"]),j=n-l,C=c-u,w=s(C,j);y&&(l-=o(w)*y,u-=a(w)*y);var M=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})});M.translate(l,u),M.rotateAtPoint(l,u,w),t.set(h?"startArrowShape":"endArrowShape",M)}function h(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?u(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?u(t,e,n,i,r,a,!1):e.endArrow?l(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"length",(function(){return o})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return p})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return C})),n.d(e,"negate",(function(){return w})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return A})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return B})),n.d(e,"hermite",(function(){return T})),n.d(e,"bezier",(function(){return P})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat4",(function(){return E})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return F})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return R})),n.d(e,"rotateZ",(function(){return _})),n.d(e,"angle",(function(){return Y})),n.d(e,"zero",(function(){return X})),n.d(e,"str",(function(){return N})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return z})),n.d(e,"sub",(function(){return H})),n.d(e,"mul",(function(){return V})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return K})),n.d(e,"len",(function(){return U})),n.d(e,"sqrLen",(function(){return Z})),n.d(e,"forEach",(function(){return Q}));var i=n("c94d");function r(){var t=new i["a"](3);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=new i["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function s(t,e,n){var r=new i["a"](3);return r[0]=t,r[1]=e,r[2]=n,r}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function j(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function C(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=r*c-a*s,t[1]=a*o-i*c,t[2]=i*s-r*o,t}function B(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t}function T(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,c=o*(a-2)+a,l=o*(a-1),u=o*(3-2*a);return t[0]=e[0]*s+n[0]*c+i[0]*l+r[0]*u,t[1]=e[1]*s+n[1]*c+i[1]*l+r[1]*u,t[2]=e[2]*s+n[2]*c+i[2]*l+r[2]*u,t}function P(t,e,n,i,r,a){var o=1-a,s=o*o,c=a*a,l=s*o,u=3*a*s,h=3*c*o,p=c*a;return t[0]=e[0]*l+n[0]*u+i[0]*h+r[0]*p,t[1]=e[1]*l+n[1]*u+i[1]*h+r[1]*p,t[2]=e[2]*l+n[2]*u+i[2]*h+r[2]*p,t}function I(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function E(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t}function L(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t}function F(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=r*l-a*c,h=a*s-i*l,p=i*c-r*s,f=r*p-a*h,d=a*u-i*p,g=i*h-r*u,v=2*o;return u*=v,h*=v,p*=v,f*=2,d*=2,g*=2,t[0]=s+u+f,t[1]=c+h+d,t[2]=l+p+g,t}function D(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function R(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function _(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function Y(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2],c=Math.sqrt(n*n+i*i+r*r),l=Math.sqrt(a*a+o*o+s*s),u=c*l,h=u&&A(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function X(t){return t[0]=0,t[1]=0,t[2]=0,t}function N(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function z(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],c=e[2];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-c)<=i["b"]*Math.max(1,Math.abs(a),Math.abs(c))}var H=h,V=p,W=f,q=O,K=j,U=o,Z=C,Q=function(){var t=r();return function(e,n,i,r,a,o){var s,c;for(n||(n=3),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},a={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s=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 u=r[l];if(u.isGroup())i=c(u,e,n);else if(s(u,e,n)){var h=u,p=o(u,e,n),f=p[0],d=p[1];h.isInShape(f,d)&&(i=u)}if(i)break}return i}var l=n("4799"),u=n("c2ad"),h=n("7326"),p=n("f5e5"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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 u["a"]},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(h["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(h["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(h["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(h["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["K"]})),n.d(e,"d",(function(){return i["I"]})),n.d(e,"h",(function(){return i["Q"]})),n.d(e,"f",(function(){return i["O"]})),n.d(e,"i",(function(){return i["db"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["wb"]}));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 E})),n.d(e,"fillPathByDiff",(function(){return R})),n.d(e,"formatPath",(function(){return X})),n.d(e,"intersection",(function(){return B})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return u})),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["C"])(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),u=e+n*Math.sin(-r*o);a=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,u]]}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},u=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,u=0,h=0;"M"===t[0][0]&&(r=+t[0][1],a=+t[0][2],o=r,u=a,h++,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=h,v=t.length;g1&&(j=Math.sqrt(j),n*=j,i*=j);var C=n*n,w=i*i,M=(a===o?-1:1)*Math.sqrt(Math.abs((C*w-C*O*O-w*x*x)/(C*O*O+w*x*x)));d=M*n*O/i+(t+s)/2,g=M*-i*x/n+(e+c)/2,h=Math.asin(((e-g)/i).toFixed(9)),p=Math.asin(((c-g)/i).toFixed(9)),h=tp&&(h-=2*Math.PI),!o&&p>h&&(p-=2*Math.PI)}var S=p-h;if(Math.abs(S)>v){var A=p,k=s,B=c;p=h+v*(o&&p>h?1:-1),s=d+n*Math.cos(p),c=g+i*Math.sin(p),m=f(s,c,n,i,r,0,o,k,B,[p,A,d,g])}S=p-h;var T=Math.cos(h),P=Math.sin(h),I=Math.cos(p),E=Math.sin(p),L=Math.tan(S/4),F=4/3*n*L,D=4/3*i*L,R=[t,e],_=[t+F*P,e-D*T],Y=[s+F*E,c-D*I],X=[s,c];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,Y,X].concat(m);m=[_,Y,X].concat(m).join().split(",");for(var N=[],G=0,z=m.length;G7){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;m1?1:c<0?0:c;for(var l=c/2,u=12,h=[-.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;d0&&h<1&&p.push(h)}else{var g=l*l-4*u*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--)h=p[x],b=1-h,f[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*o,f[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*a+h*h*h*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.max(r,o)||Math.max(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),u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var h=c/u,p=l/u,f=+h.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:h,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},C=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(" ")}},w=function(t,e){return t=C(t),e=C(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.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},M=function(t,e,n,r,a,o,s,c){Object(i["C"])(t)||(t=[t,e,n,r,a,o,s,c]);var l=b.apply(null,t);return C(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,i,r,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),p=c*c,f=p*c,d=u*t+3*h*c*n+3*l*c*c*r+f*o,g=u*e+3*h*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,C=l*a+c*s,w=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:C},alpha:w}},A=function(t,e,n){var i=M(t),r=M(e);if(!w(i,r))return n?0:[];for(var a=m.apply(0,t),o=m.apply(0,e),s=~~(a/8),c=~~(o/8),l=[],u=[],h={},p=n?0:[],f=0;f=0&&k<=1&&B>=0&&B<=1&&(n?p+=1:p.push({x:A.x,y:A.y,t1:k,t2:B}))}}return p},k=function(t,e,n){var i,r,a,o,s,c,l,u,h,p;t=d(t),e=d(e);for(var f=n?0:[],g=0,v=t.length;g=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 u}var I=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(P(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},E=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=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 h=r-i;if(i0)){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 w})),n.d(e,"RegionFilter",(function(){return S})),n.d(e,"Shape",(function(){return k})),n.d(e,"Html",(function(){return I}));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,u=e.style,h=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:h+"-group",name:p+"-group",attrs:{x:n,y:a}}),x=b.addShape({type:"text",id:h,name:p,attrs:Object(i["a"])({x:0,y:0,text:l},u)}),O=Object(c["c"])(Object(r["s"])(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o["a"])(!v,x,j,y)}if(m){var C=Object(r["s"])(m,"style",{}),w=x.getCanvasBBox(),M=w.minX,S=w.minY,A=w.width,k=w.height,B=b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i["a"])({x:M-O[3],y:S-O[0],width:A+O[1]+O[3],height:k+O[0]+O[2]},C)});B.toBack()}Object(s["c"])(b,n,a),Object(s["b"])(b,f,n,a)}var u=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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:u["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u["a"].fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u["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["Q"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["M"])(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,u=e.autoRotate,h=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:h,autoEllipsis:p,ellipsisPosition:f,background:d,isVertical:v};if(u){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=h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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:u["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u["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"),u=this.get("autoEllipsis"),h=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:u,isVertical:h,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["b"])(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 u=Object(c["e"])(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.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["b"])(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:u["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["b"])(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["b"])(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:u["a"].lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u["a"].textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){Object(r["s"])(this.get("line"),"display")&&this.renderLine(t),Object(r["s"])(this.get("text"),"display")&&this.renderText(t),Object(r["s"])(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=Object(i["c"])(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,h=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:u,autoEllipsis:h,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["s"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,h=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){if(f){if(n+l<=o.minX){var v=o.minX-(n+l);Object(s["c"])(f,f.attr("x")+v,f.attr("y"))}if(n+u>=o.maxX){v=n+u-o.maxX;Object(s["c"])(f,f.attr("x")-v,f.attr("y"))}}if("upward"===e&&i+h<=o.minY||"upward"!==e&&i+p>=o.maxY){var y=void 0,m=void 0;"upward"===e&&i+h<=o.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,a*m]]),Object(s["c"])(f,f.attr("x"),(a+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(r["s"])(this.get("line"),"display"),e=Object(r["s"])(this.get("point"),"style",{}),n=Object(r["s"])(this.get("line"),"style",{}),a=Object(r["s"])(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(r["s"])(this.get("line"),"length",0):0,c="upward"===o?-1:1;return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",0,s*c]]},n),text:Object(i["a"])({x:0,y:(s+2)*c,text:Object(r["s"])(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},a)}},e}(a["a"]),j=O,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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:u["a"].regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u["a"].textColor,fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(r["s"])(this.get("region"),"style",{}),n=(Object(r["s"])(this.get("text"),"style",{}),this.get("lineLength")||0),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 u=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,u)}},e}(a["a"]),w=C,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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"]),S=M,A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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["fb"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["I"])(e)&&e(t)},e}(a["a"]),k=A,B=n("7c8a"),T=n("75ed"),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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:'
    ',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["I"])(e)?e(t):e;Object(r["F"])(n)?t.appendChild(n):Object(r["Q"])(n)&&t.appendChild(Object(B["b"])(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),c=Object(B["d"])(t),l=Object(B["c"])(t),u={x:n,y:i};"middle"===r?u.x-=Math.round(c/2):"right"===r&&(u.x-=Math.round(c)),"middle"===a?u.y-=Math.round(l/2):"bottom"===a&&(u.y-=Math.round(l)),o&&(u.x+=o),s&&(u.y+=s),Object(B["e"])(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(T["a"]),I=P},bb0c: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],u=t[7],h=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*u,n[2]=p*a+f*c+d*h,n[3]=g*i+v*o+y*l,n[4]=g*r+v*s+y*u,n[5]=g*a+v*c+y*h,n[6]=m*i+b*o+x*l,n[7]=m*r+b*s+x*u,n[8]=m*a+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function 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],u=t[8],h=u*o-s*l,p=-u*a+s*c,f=l*a-o*c,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(u*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}))},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 u})),n.d(e,"CROSSHAIR_Y",(function(){return h}));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",u="g2-tooltip-crosshair-x",h="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'})),n}function v(t,e){var n,i,r=p.exec(t),a=Object(h["eb"])(Object(h["sb"])(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';e.innerHTML=n},t}(),C=j,w=function(){function t(t,e){this.cfg={};var n=Object(c["b"])("marker"),i=Object(h["vb"])("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(h["C"])(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}(),M=w,S=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c["b"])("clipPath");this.el=e,this.id=Object(h["vb"])("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=S,k=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,B=function(){function t(t){this.cfg={};var e=Object(c["b"])("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c["b"])("image");e.appendChild(n);var i=Object(h["vb"])("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}(),T=B,P=function(){function t(t){var e=Object(c["b"])("defs"),n=Object(h["vb"])("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;r0){var f=e.getElementId("region-"+l),d=c%2===0;if(Object(r["Q"])(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 u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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),u=e?0:1;i?(a.push(["M",o.x,o.y-c]),a.push(["A",c,c,0,0,u,o.x,o.y+c]),a.push(["A",c,c,0,0,u,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,u,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),h=u,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a}));var i=1e-6,r="undefined"!==typeof Float32Array?Float32Array:Array,a=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},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,u="matrix",h=["zIndex","capture","visible","type"],p=["repeat"],f=":",d="*";function g(t){for(var e=[],n=0;nt.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["db"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["b"])(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;n0?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["C"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;lMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}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,h=o.height,p={minX:s,minY:c,maxX:s+l,maxY:c+h};return p=u(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),h={minX:o,maxX:s,minY:c,maxY:l};return h=u(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.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",h),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 u=n("deef");n.d(e,"Scrollbar",(function(){return u["a"]}));n("be4e"),n("bb31");var h=n("d7ff");n.d(e,"propagationDelegate",(function(){return h["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("a94d");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["fb"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(a["s"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(a["s"])(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(r["a"])(t,"touchmove",e.onMouseMove),Object(r["a"])(t,"touchend",e.onMouseUp),Object(r["a"])(t,"touchcancel",e.onMouseUp)]:[Object(r["a"])(t,"mousemove",e.onMouseMove),Object(r["a"])(t,"mouseup",e.onMouseUp),Object(r["a"])(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var o=e.isMobile?Object(a["s"])(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(a["s"])(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,u=t.clientY,h=i?l-c.left-r-o/2:u-c.top-a-o/2,p=e.validateRange(h);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["b"])(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,u=o.size,h=Object(a["s"])(this.cfg,"size",u),p=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:l,lineCap:s}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,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,u=o.thumbColor,h=Object(a["s"])(this.cfg,"size",s),p=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+i-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+i-h/2,lineWidth:h,stroke:u,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=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t){"string"!==typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=n(r(t.split("/"),(function(t){return!!t})),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),s=o,c=0;c=1;--a)if(e=t.charCodeAt(a),47===e){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=i(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,a=0,o=t.length-1;o>=0;--o){var s=t.charCodeAt(o);if(47!==s)-1===i&&(r=!1,i=o+1),46===s?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},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 u})),n.d(e,"e",(function(){return h})),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["M"])(t)?e=n=r=a=t:Object(i["C"])(t)&&(e=t[0],r=Object(i["K"])(t[1])?t[0]:t[1],a=Object(i["K"])(t[2])?t[0]:t[2],n=Object(i["K"])(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 u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}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)0?Object(i["j"])(u,(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]),u=Math.min(n[0],i[0],r[0],l[0]),h=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]);uo&&(o=h),pc&&(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:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return v})),n.d(e,"Continuous",(function(){return x})),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"),u=n("e546"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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(u["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(u["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(u["c"])(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l["a"]),p=h,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=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.currentPageIndexg&&(g=m),"horizontal"===p?(v&&vx&&(x=e.width)})),O=x,x+=h,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,p+j);var M=Math.floor(this.pageHeight/(p+j));Object(r["j"])(s,(function(t,e){0!==e&&e%M===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["s"])(a.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(i["c"])(c,["size"]),p=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",u,h);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+u/2,text:n,textBaseline:"middle"},Object(r["s"])(a.text,"style"))}),g=d.getBBox();o.x+=g.width+2;var v=this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",u,h);return v.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"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),h=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),p=l.getBBox();l.attr("text",c);var d=l.getBBox();l.attr("x",l.attr("x")-(d.width-p.width)/2),u.attr("opacity",1===this.currentPageIndex?s:a),u.attr("fill",1===this.currentPageIndex?o:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:a),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,a,s){var c=e.x,l=e.y,u={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["a"])({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},u[r])),h},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),v=g,y=1.4,m=.4,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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];rn&&(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]+ca&&(l=a),l0&&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(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+u/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+u/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 u=Math.max(c.width,l.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+u+o,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(p),x=b},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},e635: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("f049"),r=n("c5c4");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=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},u=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function h(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 h([u(o,s,a,0),u(o,s,a,1),u(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=h(i),e},y=function(t){var e=Object(i["Q"])(t)?t.split("-"):t,n=Object(i["W"])(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 u=n.match(s);return Object(i["j"])(u,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")",e}return t};e["a"]={rgb2arr:f,gradient:y,toRGB:Object(i["ab"])(v),toCSSGradient:m}},ea1d:function(t,e,n){"use strict";var i=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function r(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function a(){}var o=.7,s=1/o,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,p=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),v=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),y=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function b(){return this.rgb().formatHex()}function x(){return I(this).formatHsl()}function O(){return this.rgb().formatRgb()}function j(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?C(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?w(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=p.exec(t))?new A(e[1],e[2],e[3],1):(e=f.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?w(e[1],e[2],e[3],e[4]):(e=g.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?P(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?P(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?C(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function C(t){return new A(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,i){return i<=0&&(t=e=n=NaN),new A(t,e,n,i)}function M(t){return t instanceof a||(t=j(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function S(t,e,n,i){return 1===arguments.length?M(t):new A(t,e,n,null==i?1:i)}function A(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function k(){return"#"+T(this.r)+T(this.g)+T(this.b)}function B(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function T(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function P(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new L(t,e,n,i)}function I(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof a||(t=j(t)),!t)return new L;if(t instanceof L)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,c=o-r,l=(o+r)/2;return c?(s=e===o?(n-i)/c+6*(n0&&l<1?0:s,new L(s,c,l,t.opacity)}function E(t,e,n,i){return 1===arguments.length?I(t):new L(t,e,n,null==i?1:i)}function L(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function F(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function D(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}i(a,j,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:x,formatRgb:O,toString:O}),i(A,S,r(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatRgb:B,toString:B})),i(L,E,r(a,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new A(F(t>=240?t-240:t+120,r,i),F(t,r,i),F(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var R=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=ia&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:K(n,i)})),a=Q.lastIndex;return a=0?l:u;h.has(c)||h.set(c,0);var p=h.get(c),f=s+p;return h.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,u=new o;return l.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],l=2*o/a;u.has(s)||u.set(s,l/2);var h=u.get(s);return u.set(s,h+l),Object(i["a"])(Object(i["a"])({},t),(n={},n[c]=h,n))}))}))},e}(a["a"]);e["a"]=s},f2fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return ct})),n.d(e,"c",(function(){return Ct}));var i={};n.r(i),n.d(i,"default",(function(){return H})),n.d(i,"assign",(function(){return j})),n.d(i,"format",(function(){return N})),n.d(i,"parse",(function(){return G})),n.d(i,"defaultI18n",(function(){return A})),n.d(i,"setGlobalDateI18n",(function(){return B})),n.d(i,"setGlobalDateMasks",(function(){return X}));var r=n("8937"),a={};function o(t){return a[t]}function s(t,e){a[t]=e}var c=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r["b"])(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r["W"])(this.ticks,(function(e,n){return Object(r["O"])(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r["K"])(i)||!Object(r["I"])(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r["b"])(this,this.__cfg__),this.setDomain(),Object(r["G"])(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r["Q"])(t)){var n=o(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r["I"])(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(r["M"])(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),l=c,u=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(u["b"])(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),p=h,f=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="[1-9]\\d?",g="\\d\\d",v="\\d{3}",y="\\d{4}",m="[^\\s]+",b=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],i=0,r=t.length;i-1?r:null}};function j(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},k=j({},A),B=function(t){return k=j(k,t)},T=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},P=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length0?"-":"+")+P(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+P(Math.floor(Math.abs(e)/60),2)+":"+P(Math.abs(e)%60,2)}},E=function(t){return+t-1},L=[null,d],F=[null,m],D=["isPm",m,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],R=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],_={D:["day",d],DD:["day",g],Do:["day",d+m,function(t){return parseInt(t,10)}],M:["month",d,E],MM:["month",g,E],YY:["year",g,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",d,void 0,"isPm"],hh:["hour",g,void 0,"isPm"],H:["hour",d],HH:["hour",g],m:["minute",d],mm:["minute",g],s:["second",d],ss:["second",g],YYYY:["year",y],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",g,function(t){return 10*+t}],SSS:["millisecond",v],d:L,dd:L,ddd:F,dddd:F,MMM:["month",m,O("monthNamesShort")],MMMM:["month",m,O("monthNames")],a:D,A:D,ZZ:R,Z:R},Y={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},X=function(t){return j(Y,t)},N=function(t,e,n){if(void 0===e&&(e=Y["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=Y[e]||e;var i=[];e=e.replace(b,(function(t,e){return i.push(e),"@@@"}));var r=j(j({},k),n);return e=e.replace(f,(function(e){return I[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function G(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=Y[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],o=[],s=e.replace(b,(function(t,e){return o.push(T(e)),"@@@"})),c={},l={};s=T(s).replace(f,(function(t){var e=_[t],n=e[0],i=e[1],r=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,r&&(l[r]=!0),a.push(e),"("+i+")"})),Object.keys(l).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return o.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h=j(j({},k),n),p=1;p>>1;t(e[c])>n?s=c:o=c+1}return o}},W="format";function q(t,e){var n=i[W]||H[W];return n(t,e)}function K(t){return Object(r["Q"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["E"])(t)&&(t=t.getTime()),t}var U=1e3,Z=60*U,Q=60*Z,$=24*Q,J=31*$,tt=365*$,et=[["HH:mm:ss",U],["HH:mm:ss",10*U],["HH:mm:ss",30*U],["HH:mm",Z],["HH:mm",10*Z],["HH:mm",30*Z],["HH",Q],["HH",6*Q],["HH",12*Q],["YYYY-MM-DD",$],["YYYY-MM-DD",4*$],["YYYY-WW",7*$],["YYYY-MM",J],["YYYY-MM",4*J],["YYYY-MM",6*J],["YYYY",380*$]];function nt(t,e,n){var i=(e-t)/n,a=V((function(t){return t[1]}))(et,i)-1,o=et[a];return a<0?o=et[0]:a>=et.length&&(o=Object(r["U"])(et)),o}var it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(u["b"])(e,t),e.prototype.translate=function(t){t=K(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["M"])(t)&&t-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):q(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(r["j"])(e,(function(t,n){e[n]=K(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(p),rt=it,at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(u["b"])(e,t),e.prototype.scale=function(t){if(Object(r["K"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,a=this.min;if(i===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(r["z"])(e),i=Object(r["U"])(e);nthis.max&&(this.max=i),Object(r["K"])(this.minLimit)||(this.min=n),Object(r["K"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["u"])(this.values),e=t.min,n=t.max;Object(r["K"])(this.min)&&(this.min=e),Object(r["K"])(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r["l"])(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(l),ot=at,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(u["b"])(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}(ot),ct=st;function lt(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 ut(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ht(t,e,n){Object(r["K"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["j"])(t,(function(t){t>0&&t1&&(i=1),i}var pt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(u["b"])(e,t),e.prototype.invert=function(t){var e,n=this.base,i=ut(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,o=this.positiveMin;if(o){if(0===t)return 0;e=ut(n,o/n);var s=1/(i-e)*a;if(t=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=(lt(i,t)-lt(i,n))/(lt(i,e)-lt(i,n));return r},e}(ot),gt=dt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(u["b"])(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):q(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r["Q"])(n)||Object(r["E"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return K(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(r["K"])(e)&&Object(r["M"])(e)||(this.min=this.translate(this.min)),Object(r["K"])(n)&&Object(r["M"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],a=1/0,o=a,s=0;Object(r["j"])(t,(function(t){var e=K(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s1&&(this.minTickInterval=o-a),Object(r["K"])(e)&&(this.min=a),Object(r["K"])(n)&&(this.max=s)}},e}(ct),yt=vt,mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u["b"])(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),a=Math.floor(i*(n-1));if(a>=n-1)return Object(r["U"])(e);if(a<0)return Object(r["z"])(e);var o=e[a],s=e[a+1],c=a/(n-1),l=(a+1)/(n-1);return o+(i-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(r["U"])(e)!==this.max&&e.push(this.max),Object(r["z"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(r["U"])(e))return 1;var n=0;return Object(r["j"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(ot),bt=mt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u["b"])(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(bt),Ot=xt,jt={};function Ct(t){return jt[t]}function wt(t,e){if(Ct(t))throw new Error("type '"+t+"' existed.");jt[t]=e}var Mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u["b"])(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["M"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(l),St=Mt;function At(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var kt=[1,5,2,2.5,4,3],Bt=100*Number.EPSILON;function Tt(t,e){return(t%e+e)%e}function Pt(t,e,n,i,a,o){var s=Object(r["mb"])(e),c=Object(r["B"])(e,t),l=0,u=Tt(i,o);return(u=0&&(l=1),1-c/(s-1)-n+l}function It(t,e,n){var i=Object(r["mb"])(e),a=Object(r["B"])(e,t),o=1;return 1-a/(i-1)-n+o}function Et(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 Lt(t,e){return t>=e?2-(t-1)/(e-1):1}function Ft(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 Dt(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 Rt(){return 1}function _t(t,e,n,i,a,o){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===a&&(a=kt),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]};var c={score:-2,lmin:0,lmax:0,lstep:0},l=1;while(l<1/0){for(var u=0;uc.score&&(!i||w<=t&&M>=e)&&(c.lmin=w,c.lmax=M,c.lstep=S,c.score=P)}v+=1}f+=1}}l+=1}var I=c.lmax,E=c.lmin,L=c.lstep,F=Math.floor((I-E)/L)+1,D=new Array(F);for(u=0;u=o&&t<=s}));return l.map((function(t){return e[t]}))}return e.slice(o,s+1)}function Xt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new Vt;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}var Nt=5,Gt=Math.sqrt(50),zt=Math.sqrt(10),Ht=Math.sqrt(2),Vt=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=Nt);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],c=this._domain[o];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=qt(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=qt(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=Nt),Wt(this._domain[0],this._domain[this._domain.length-1],t||Nt)},t}();function Wt(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=e0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));while(++s=0?(a>=Gt?10:a>=zt?5:a>=Ht?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Gt?10:a>=zt?5:a>=Ht?2:1)}function Kt(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 Ut(t,e,n){var i=Kt(t,n,"floor"),a=Kt(e,n,"ceil");i=Object(r["p"])(i,n),a=Object(r["p"])(a,n);for(var o=[],s=i;s<=a;s+=n){var c=Object(r["p"])(s,n);o.push(c)}return{min:i,max:a,ticks:o}}function Zt(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(r["K"])(a)?Object(r["K"])(e)?s:e:a,p=Object(r["K"])(o)?Object(r["K"])(n)?c:n:o;if(h>p&&(i=[h,p],p=i[0],h=i[1]),u<=2)return[h,p];for(var f=(p-h)/(u-1),d=[],g=0;g0)e=Math.floor(ut(n,r));else{var c=ht(o,n,a);e=Math.floor(ut(n,c))}for(var l=s-e,u=Math.ceil(l/i),h=[],p=e;p=0?1:-1;return Math.pow(t,e)*n}))}function ne(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 ie(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;a1&&(r*=Math.ceil(s)),i&&rtt)for(var c=se(n),l=Math.ceil(a/tt),u=s;u<=c+l;u+=l)o.push(ce(u));else if(a>J){var h=Math.ceil(a/J),p=le(e),f=ue(e,n);for(u=0;u<=f+h;u+=h)o.push(he(s,u+p))}else if(a>$){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate(),m=Math.ceil(a/$),b=pe(e,n);for(u=0;uQ){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate();var x=d.getHours(),O=Math.ceil(a/Q),j=fe(e,n);for(u=0;u<=j+O;u+=O)o.push(new Date(g,v,m,x+u).getTime())}else if(a>Z){var C=de(e,n),w=Math.ceil(a/Z);for(u=0;u<=C+w;u+=w)o.push(e+u*Z)}else{var M=a;MC?j:C,B=j>C?1:j/C,T=j>C?C/j:1;e.translate(x,O),e.rotate(S),e.scale(B,T),e.arc(0,0,k,w,M,1-A),e.scale(1/B,1/T),e.rotate(-S),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)l=u;else{var P=f.length;l=[f[P-2],f[P-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["bb"])(e),minY:Object(i["bb"])(n),maxX:Object(i["Y"])(r),maxY:Object(i["Y"])(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["q"](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["W"](t,(function(t){return r["W"](t,(function(t){var e,n,l=t[o],u=t[a];if(r["C"](l)){var h=(c-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=r["W"](l,(function(t){return h+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["w"](t,(function(t){return t[i]}));return r["X"](o,(function(t){return e.getDimMaxValue(t,a)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["W"](t,(function(t){return r["s"](t,e,[])})),i=r["q"](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["b"])(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;iMath.PI?1:0,p=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,h,p,u.x,u.y]]}return o},e}(h),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["b"])(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:'
    ',crosshairTpl:'
    ',textTpl:'{content}',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["pb"])(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["y"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),C=j}}]);