/*! For license information please see 13.48d42d2c.chunk.js.LICENSE.txt */ (this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[13,7],{1003:function(t,e,n){"use strict";var r=n(2301);n.d(e,"Annotation",(function(){return r}));var i=n(2303);n.d(e,"Axis",(function(){return i}));var o=n(2304);n.d(e,"Crosshair",(function(){return o}));var a=n(2322);n.d(e,"Grid",(function(){return a}));var c=n(2323);n.d(e,"Legend",(function(){return c}));var s=n(2324);n.d(e,"Tooltip",(function(){return s}));n(1709),n(913),n(1676);var l=n(2305);n.d(e,"Slider",(function(){return l.a}));var u=n(2328);n.d(e,"Scrollbar",(function(){return u.a}));n(2252),n(2253);var f=n(2189);n.d(e,"propagationDelegate",(function(){return f.a}));var h=n(1710);n.d(e,"TOOLTIP_CSS_CONST",(function(){return h}))},1004:function(t,e,n){"use strict";e.a={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},1005:function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return I})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return B})),n.d(e,"f",(function(){return r}));var r={};function i(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function c(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=i(t),r=i(e);return{x:n,y:r,width:o(t)-n,height:o(e)-r}}function l(t,e,n,r){return{minX:i([t,n]),maxX:o([t,n]),minY:i([e,r]),maxY:o([e,r])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(r),n.d(r,"distance",(function(){return a})),n.d(r,"isNumberEqual",(function(){return c})),n.d(r,"getBBoxByArray",(function(){return s})),n.d(r,"getBBoxRange",(function(){return l})),n.d(r,"piMod",(function(){return u}));var f=n(2185),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return a(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var c=(n-t)*(i-t)+(r-e)*(o-e);return c<0?a(t,e,i,o):c>(n-t)*(n-t)+(r-e)*(r-e)?a(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(f.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var c=[-a[1],a[0]];f.normalize(c,c);var s=[i-t,o-e];return Math.abs(f.dot(s,c))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,o){var c,s=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var f=1/u,h=f/10,d=0;d<=u;d++){var p=d*f,g=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=a(l[0],l[1],g[0],g[1]))=0&&b=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function y(t,e,n,r,i,o,a){var c=p(t,n,i,a),s=p(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,c,s],[c,s,u.x,u.y,i,o]]}var m={box:function(t,e,n,r,i,o){var a=g(t,n,i)[0],c=g(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(p(t,n,i,a)),void 0!==c&&u.push(p(e,r,o,c)),s(l,u)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,c,s){if(0===s)return(a(e,n,r,i)+a(r,i,o,c)+a(e,n,o,c))/2;var l=y(e,n,r,i,o,c,.5),u=l[0],f=l[1];return u.push(s-1),f.push(s-1),t.apply(null,u)+t.apply(null,f)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,c){return d([t,n,i],[e,r,o],a,c,p)},pointDistance:function(t,e,n,r,i,o,c,s){var l=this.nearestPoint(t,e,n,r,i,o,c,s);return a(l.x,l.y,c,s)},interpolationAt:p,pointAt:function(t,e,n,r,i,o,a){return{x:p(t,n,i,a),y:p(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return y(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var c=v(t,n,i,a),s=v(e,r,o,a);return u(Math.atan2(s,c))}};function b(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function x(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function O(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,f=[];if(c(s,0))c(l,0)||(i=-u/l)>=0&&i<=1&&f.push(i);else{var h=l*l-4*s*u;c(h,0)?f.push(-l/(2*s)):h>0&&(o=(-l-(a=Math.sqrt(h)))/(2*s),(i=(-l+a)/(2*s))>=0&&i<=1&&f.push(i),o>=0&&o<=1&&f.push(o))}return f}function j(t,e,n,r,i,o,a,c,s){var l=b(t,n,i,a,s),u=b(e,r,o,c,s),f=h.pointAt(t,e,n,r,s),d=h.pointAt(n,r,i,o,s),p=h.pointAt(i,o,a,c,s),g=h.pointAt(f.x,f.y,d.x,d.y,s),v=h.pointAt(d.x,d.y,p.x,p.y,s);return[[t,e,f.x,f.y,g.x,g.y,l,u],[l,u,v.x,v.y,p.x,p.y,a,c]]}function w(t,e,n,r,i,o,c,s,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i0?n:-1*n}var E=function(t,e,n,r,i,o){var a=n,c=r;if(0===a||0===c)return{x:t,y:e};for(var s,l,u=i-t,f=o-e,h=Math.abs(u),d=Math.abs(f),p=a*a,g=c*c,v=Math.PI/4,y=0;y<4;y++){s=a*Math.cos(v),l=c*Math.sin(v);var m=(p-g)*Math.pow(Math.cos(v),3)/a,b=(g-p)*Math.pow(Math.sin(v),3)/c,x=s-m,O=l-b,j=h-m,w=d-b,C=Math.hypot(O,x),E=Math.hypot(w,j);v+=C*Math.asin((x*w-O*j)/(C*E))/Math.sqrt(p+g-s*s-l*l),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+S(s,u),y:e+S(l,f)}};function M(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function k(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function P(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function A(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var I={box:function(t,e,n,r,i,o,a){for(var c=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),s=1/0,l=-1/0,u=[o,a],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var h=c+f;ol&&(l=d)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,y=[o,a];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var m=p+f;ov&&(v=b)}return{x:s,y:g,width:l-s,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,c,s){var l=A(c-t,s-e,-i),u=l[0],f=l[1],h=E(0,0,n,r,u,f),d=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,h.x,h.y);da&&(h=P(n,r,a));var p=A(h.x,h.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,o,c,s,l){var u=this.nearestPoint(t,e,n,r,s,l);return a(u.x,u.y,s,l)},pointAt:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o;return{x:M(t,0,n,r,i,s),y:k(0,e,n,r,i,s)}},tangentAngle:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o,l=function(t,e,n,r,i,o,a,c){return-1*n*Math.cos(i)*Math.sin(c)-r*Math.sin(i)*Math.cos(c)}(0,0,n,r,i,0,0,s),f=function(t,e,n,r,i,o,a,c){return-1*n*Math.sin(i)*Math.sin(c)+r*Math.cos(i)*Math.cos(c)}(0,0,n,r,i,0,0,s);return u(Math.atan2(f,l))}};function F(t){for(var e=0,n=[],r=0;r1||e<0||t.length<2)return null;var n=F(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,c=0;c=o&&e<=o+f){var d=(e-o)/f;a=h.pointAt(l[0],l[1],u[0],u[1],d);break}o+=f}return a}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=F(t),r=n.segments,i=n.totalLength,o=0,a=0,c=0;c=o&&e<=o+f){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=f}return a}function D(t,e,n){for(var r=1/0,i=0;i0){var L=v[0]/2;T.paddingLeft=L,T.paddingRight=L}if(v&&v[1]>0&&!m){var N=v[1]/2;T.paddingTop=N,T.paddingBottom=N}return M&&(T.flex=function(t){return"number"===typeof t?"".concat(t," ").concat(t," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?"0 0 ".concat(t):t}(M),!1!==y||T.minWidth||(T.minWidth=0)),s.createElement("div",Object(i.a)({},P,{style:Object(i.a)(Object(i.a)({},T),k),className:F,ref:e}),E)}));e.a=d},1016:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.s)(t,"fields"),i=Object(r.s)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},1060:function(t,e,n){"use strict";var r=n(563),i=n(2),o=n(967);e.a=function(){var t=i.useState(!1),e=Object(r.a)(t,2),n=e[0],a=e[1];return i.useEffect((function(){a(Object(o.b)())}),[]),n}},1079:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(566),a=n(563),c=n(560),s=n.n(c),l=n(2),u=n(775),f=n(1060),h=n(663),d=n(586),p=n(968),g=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0?L[0]/-2:void 0,R=null!=L[1]&&L[1]>0?L[1]/-2:void 0;if(B&&(D.marginLeft=B,D.marginRight=B),I){var _=Object(a.a)(L,2);D.rowGap=_[1]}else R&&(D.marginTop=R,D.marginBottom=R);var z=Object(a.a)(L,2),V=z[0],H=z[1],K=l.useMemo((function(){return{gutter:[V,H],wrap:j,supportFlexGap:I}}),[V,H,j,I]);return l.createElement(p.a.Provider,{value:K},l.createElement("div",Object(r.a)({},w,{className:N,style:Object(r.a)(Object(r.a)({},D),m),ref:e}),b))})));e.a=v},1080:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return R}));var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return c})),n.d(r,"copy",(function(){return s})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return f})),n.d(r,"transpose",(function(){return h})),n.d(r,"invert",(function(){return d})),n.d(r,"adjoint",(function(){return p})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return v})),n.d(r,"translate",(function(){return y})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return C})),n.d(r,"normalFromMat4",(function(){return S})),n.d(r,"projection",(function(){return E})),n.d(r,"str",(function(){return M})),n.d(r,"frob",(function(){return k})),n.d(r,"add",(function(){return P})),n.d(r,"subtract",(function(){return A})),n.d(r,"multiplyScalar",(function(){return I})),n.d(r,"multiplyScalarAndAdd",(function(){return F})),n.d(r,"exactEquals",(function(){return T})),n.d(r,"equals",(function(){return L})),n.d(r,"mul",(function(){return N})),n.d(r,"sub",(function(){return D}));var i=n(1673);function o(){var t=new i.a(9);return i.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 a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function c(t){var e=new i.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 s(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,r,o,a,c,s,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=c,u[7]=s,u[8]=l,u}function u(t,e,n,r,i,o,a,c,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c,t[7]=s,t[8]=l,t}function f(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function h(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],f=u*a-c*l,h=-u*o+c*s,d=l*o-a*s,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(c*r-i*a)*p,t[3]=h*p,t[4]=(u*n-i*s)*p,t[5]=(-c*n+i*o)*p,t[6]=d*p,t[7]=(-l*n+r*s)*p,t[8]=(a*n-r*o)*p,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8];return t[0]=a*u-c*l,t[1]=i*l-r*u,t[2]=r*c-i*a,t[3]=c*s-o*u,t[4]=n*u-i*s,t[5]=i*o-n*c,t[6]=o*l-a*s,t[7]=r*s-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],c=t[6],s=t[7],l=t[8];return e*(l*o-a*s)+n*(-l*i+a*c)+r*(s*i-o*c)}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*l,t[1]=h*i+d*c+p*u,t[2]=h*o+d*s+p*f,t[3]=g*r+v*a+y*l,t[4]=g*i+v*c+y*u,t[5]=g*o+v*s+y*f,t[6]=m*r+b*a+x*l,t[7]=m*i+b*c+x*u,t[8]=m*o+b*s+x*f,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=c,t[5]=s,t[6]=h*r+d*a+l,t[7]=h*i+d*c+u,t[8]=h*o+d*s+f,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*c,t[2]=d*o+h*s,t[3]=d*a-h*r,t[4]=d*c-h*i,t[5]=d*s-h*o,t[6]=l,t[7]=u,t[8]=f,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function 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),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function 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 w(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 C(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,c=r+r,s=i+i,l=n*a,u=r*a,f=r*c,h=i*a,d=i*c,p=i*s,g=o*a,v=o*c,y=o*s;return t[0]=1-f-p,t[3]=u-y,t[6]=h+v,t[1]=u+y,t[4]=1-l-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-l-f,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*c-r*a,b=n*s-i*a,x=n*l-o*a,O=r*s-i*c,j=r*l-o*c,w=i*l-o*s,C=u*g-f*p,S=u*v-h*p,E=u*y-d*p,M=f*v-h*g,k=f*y-d*g,P=h*y-d*v,A=m*P-b*k+x*M+O*E-j*S+w*C;return A?(A=1/A,t[0]=(c*P-s*k+l*M)*A,t[1]=(s*E-a*P-l*S)*A,t[2]=(a*k-c*E+l*C)*A,t[3]=(i*k-r*P-o*M)*A,t[4]=(n*P-i*E+o*S)*A,t[5]=(r*E-n*k-o*C)*A,t[6]=(g*w-v*j+y*O)*A,t[7]=(v*x-p*w-y*b)*A,t[8]=(p*j-g*x+y*m)*A,t):null}function E(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 M(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 P(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function A(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 I(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function F(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function T(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],r=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=i.b*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=i.b*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-p)<=i.b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-v)<=i.b*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(s-y)<=i.b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(f-x)<=i.b*Math.max(1,Math.abs(f),Math.abs(x))}var N=v,D=A,B=n(2185),R=n(2186)},1139:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return f}));var r=n(916),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function c(t){var e=[0,0,0];return r.d.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function s(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),o=s(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),c=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:c,maxY:u,width:c-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function f(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},1173:function(t,e,n){"use strict";var r=n(1015);e.a=r.a},1174:function(t,e,n){"use strict";var r=n(1079);e.a=r.a},1183:function(t,e,n){"use strict";var r=n(579),i=n(2188),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),c=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):c>1?(r=n[0===a?0:a-1],i=n[a===c-1?c-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==c-1?i-=(i-e)/2:i+=(e-n[c-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.b({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.a,1]}return o},t}();e.a=o},1184:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},1185:function(t,e,n){"use strict";function r(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 i,o,a,c;function s(t){i||(i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,c={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in c||(e="*");var n=c[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function l(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(i){}finally{r=void 0===r?n:r}return r}function u(t,e){var n=function(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderTopWidth"))||0,i=parseFloat(l(t,"paddingTop"))||0,o=parseFloat(l(t,"paddingBottom"))||0;return n+r+(parseFloat(l(t,"borderBottomWidth"))||0)+i+o+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function f(t,e){var n=function(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderLeftWidth"))||0,i=parseFloat(l(t,"paddingLeft"))||0,o=parseFloat(l(t,"paddingRight"))||0,a=parseFloat(l(t,"borderRightWidth"))||0,c=parseFloat(l(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(l(t,"marginLeft"))||0)+c}function h(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 r})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return h}))},1407:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n(579);function i(t){if(Object(r.M)(t))return[t,t,t,t];if(Object(r.C)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}function o(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=i(t),o=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+o[0],r[1]+o[1],r[2]+o[2],r[3]+o[3]]}function a(t){var e=t.map((function(t){return i(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}},1408:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(761),o=n(579),a=n(2216),c=n(618);function s(t){var e=this;return function(n){var s,l=n.options,u=n.chart,f=l.pattern;if(!f)return n;return Object(c.c)({},n,{options:(s={},s[t]=function(n){for(var s,h,d,p=[],g=1;gthis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(c),d=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,p="[^\\s]+",g=/\[([^]*?)\]/gm;function v(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function m(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},w=m({},j),C=function(t){return w=m(w,t)},S=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+E(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+E(Math.floor(Math.abs(e)/60),2)+":"+E(Math.abs(e)%60,2)}},k=function(t){return+t-1},P=[null,"\\d\\d?"],A=[null,p],I=["isPm",p,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],F=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],T={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+p,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",k],MM:["month","\\d\\d",k],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:P,dd:P,ddd:A,dddd:A,MMM:["month",p,y("monthNamesShort")],MMMM:["month",p,y("monthNames")],a:I,A:I,ZZ:F,Z:F},L={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"},N=function(t){return m(L,t)},D=function(t,e,n){if(void 0===e&&(e=L.default),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var r=[];e=(e=L[e]||e).replace(g,(function(t,e){return r.push(e),"@@@"}));var i=m(m({},w),n);return(e=e.replace(d,(function(e){return M[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function B(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=L[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(g,(function(t,e){return o.push(S(e)),"@@@"})),c={},s={};a=S(a).replace(d,(function(t){var e=T[t],n=e[0],r=e[1],o=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,o&&(s[o]=!0),i.push(e),"("+r+")"})),Object.keys(s).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var u,f=m(m({},w),n),h=1;h11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return u}var R={format:D,parse:B,defaultI18n:j,setGlobalDateI18n:C,setGlobalDateMasks:N};function _(t,e){return(r.format||R.format)(t,e)}function z(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var V=36e5,H=24*V,K=31*H,Y=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",V],["HH",6*V],["HH",12*V],["YYYY-MM-DD",H],["YYYY-MM-DD",4*H],["YYYY-WW",7*H],["YYYY-MM",K],["YYYY-MM",4*K],["YYYY-MM",6*K],["YYYY",380*H]];function G(t,e,n){var r,o=(r=function(t){return t[1]},function(t,e,n,o){for(var a=Object(i.K)(n)?0:n,c=Object(i.K)(o)?t.length:o;a>>1;r(t[s])>e?c=s:a=s+1}return a})(Y,(e-t)/n)-1,a=Y[o];return o<0?a=Y[0]:o>=Y.length&&(a=Object(i.U)(Y)),a}var W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return l(e,t),e.prototype.translate=function(t){t=z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(t)&&t-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):_(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.j)(e,(function(t,n){e[n]=z(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(h),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return l(e,t),e.prototype.scale=function(t){if(Object(i.K)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(i.z)(e),r=Object(i.U)(e);nthis.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.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(i.l)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(c),q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return l(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(X);function U(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function $(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function Z(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t1&&(r=1),r}var Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return l(e,t),e.prototype.invert=function(t){var e,n=this.base,r=$(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var c=1/(r-(e=$(n,a/n)))*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(U(r,t)-U(r,n))/(U(r,e)-U(r,n))},e}(X),tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return l(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):_(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return z(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,c=0;Object(i.j)(t,(function(t){var e=z(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),c1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=c)}},e}(q),et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return l(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],c=o/(n-1);return a+(r-c)/((o+1)/(n-1)-c)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(X),nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return l(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(et),rt={};function it(t){return rt[t]}function ot(t,e){if(it(t))throw new Error("type '"+t+"' existed.");rt[t]=e}var at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return l(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(c);function ct(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n===0})),c=Object(i.U)(e);return o&&Object(i.U)(a)!==c&&a.push(c),a}var s=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var f=1===r?s:Math.floor(s/(r-1)),h=[],d=l,p=0;p=u);p++)d=Math.min(l+p*f,u),p===r-1&&o?h.push(e[u]):h.push(e[d]);return h}var st=Math.sqrt(50),lt=Math.sqrt(10),ut=Math.sqrt(2),ft=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),o=0,a=this._domain.length-1,c=this._domain[o],s=this._domain[a];return s0?r=ht(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,t):r<0&&(r=ht(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,t)),r>0?(i[o]=Math.floor(c/r)*r,i[a]=Math.ceil(s/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(c*r)/r,i[a]=Math.floor(s*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,c=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++c=0?(o>=st?10:o>=lt?5:o>=ut?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=st?10:o>=lt?5:o>=ut?2:1)}function dt(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function pt(t,e,n){var r=dt(t,n,"floor"),o=dt(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],c=Math.max((o-r)/(Math.pow(2,12)-1),n),s=r;s<=o;s+=c){var l=Object(i.p)(s,c);a.push(l)}return{min:r,max:o,ticks:a}}function gt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,c=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,f=Object(i.K)(o)?Object(i.K)(e)?c:e:o,h=Object(i.K)(a)?Object(i.K)(n)?s:n:a;if(f>h&&(h=(r=[f,h])[0],f=r[1]),u<=2)return[f,h];for(var d=(h-f)/(u-1),p=[],g=0;g=0&&(l=1),1-s/(c-1)-n+l}function xt(t,e,n){var r=Object(i.mb)(e);return 1-Object(i.B)(e,t)/(r-1)-n+1}function Ot(t,e,n,r,i,o){var a=(t-1)/(o-i),c=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/c,c/a)}function jt(t,e){return t>=e?2-(t-1)/(e-1):1}function wt(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function Ct(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}function St(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=yt),void 0===a&&(a=[.25,.2,.5,.05]);var c=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!c)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===c)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(j=n||5);return{min:t,max:e,ticks:Array(j).fill(null).map((function(e,n){return vt(t+s*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var f=0;fl.score&&(!r||C<=t&&S>=e)&&(l.lmin=C,l.lmax=S,l.lstep=E,l.score=A)}y+=1}p+=1}}u+=1}var I=vt(l.lmax),F=vt(l.lmin),T=vt(l.lstep),L=Math.floor(function(t){return Math.round(1e12*t)/1e12}((I-F)/T))+1,N=new Array(L);N[0]=vt(F);for(f=1;f1&&(i*=Math.ceil(a)),r&&i31536e6)for(var s=kt(n),l=Math.ceil(o/31536e6),u=c;u<=s+l;u+=l)a.push(Pt(u));else if(o>K){var f=Math.ceil(o/K),h=At(e),d=function(t,e){var n=kt(t),r=kt(e),i=At(t);return 12*(r-n)+(At(e)-i)%12}(e,n);for(u=0;u<=d+f;u+=f)a.push(It(c,u+h))}else if(o>H){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(o/H),m=function(t,e){return Math.ceil((e-t)/H)}(e,n);for(u=0;uV){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),O=Math.ceil(o/V),j=function(t,e){return Math.ceil((e-t)/V)}(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(p,g,y,x+u).getTime())}else if(o>6e4){var w=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(o/6e4);for(u=0;u<=w+C;u+=C)a.push(e+6e4*u)}else{var S=o;S<1e3&&(S=1e3);var E=1e3*Math.floor(e/1e3),M=Math.ceil((n-e)/1e3),k=Math.ceil(S/1e3);for(u=0;u=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),a("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,c=$(n,o);if(i>0)e=Math.floor($(n,i));else{var s=Z(a,n,o);e=Math.floor($(n,s))}for(var l=c-e,u=Math.ceil(l/r),f=[],h=e;h=0?1:-1;return Math.pow(t,e)*n}))})),a("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},c=n(1080);var s=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var d=/[a-z]/;function p(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function g(t){var e=h(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var o=[],a=0,c=0,s=0,l=0,u=0,f=e[0];"M"!==f[0]&&"m"!==f[0]||(s=a=+f[1],l=c=+f[2],u++,o[0]=["M",a,c]);r=u;for(var g=e.length;r1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(d*d)+i*i*(h*h),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===c&&(v*=-1),isNaN(v)&&(v=0);var x=i?v*n*d/i:0,O=n?v*-i*h/n:0,j=(s+u)/2+Math.cos(o)*x-Math.sin(o)*O,w=(l+f)/2+Math.sin(o)*x+Math.cos(o)*O,C=[(h-x)/n,(d-O)/i],S=[(-1*h-x)/n,(-1*d-O)/i],E=m([1,0],C),M=m(C,S);return y(C,S)<=-1&&(M=Math.PI),y(C,S)>=1&&(M=0),0===c&&M>0&&(M-=2*Math.PI),1===c&&M<0&&(M+=2*Math.PI),{cx:j,cy:w,rx:b(t,[u,f])?0:n,ry:b(t,[u,f])?0:i,startAngle:E,endAngle:E+M,xRotation:o,arcFlag:a,sweepFlag:c}}function O(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function j(t){for(var e=[],n=null,r=null,i=null,o=0,c=(t=a(t)).length,s=0;s=e&&t<=n};function C(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function S(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function E(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o0!==C(c[1]-n)>0&&C(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}function M(t){for(var e=[],n=t.length,r=0;r1){var a=t[0],c=t[n-1];e.push({from:{x:c[0],y:c[1]},to:{x:a[0],y:a[1]}})}return e}function k(t,e){var n=!1;return Object(r.j)(t,(function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,c=e.y-t.y,s=r.x-n.x,l=r.y-n.y,u=a*l-c*s,f=null;if(u*u>.001*(a*a+c*c)*(s*s+l*l)){var h=(i*l-o*s)/u,d=(i*c-o*a)/u;w(h,0,1)&&w(d,0,1)&&(f={x:t.x+h*a,y:t.y+h*c})}return f}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function P(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 A(t,e){if(t.length<2||e.length<2)return!1;var n,i,o=P(t),a=P(e);if(n=o,(i=a).minX>n.maxX||i.maxXn.maxY||i.maxY=1e12&&!a||"t"===a?(v+=d.abbreviations.trillion,e/=1e12):c<1e12&&c>=1e9&&!a||"b"===a?(v+=d.abbreviations.billion,e/=1e9):c<1e9&&c>=1e6&&!a||"m"===a?(v+=d.abbreviations.million,e/=1e6):(c<1e6&&c>=1e3&&!a||"k"===a)&&(v+=d.abbreviations.thousand,e/=1e3)),t._.includes(n,"[.]")&&(g=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],l=n.split(".")[1],f=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(t._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),y=t._.toFixed(e,l[0].length+l[1].length,i,l[1].length)):y=t._.toFixed(e,l.length,i),s=y.split(".")[0],y=t._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",g&&0===Number(y.slice(1))&&(y="")):s=t._.toFixed(e,0,i),v&&!a&&Number(s)>=1e3&&v!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion}if(t._.includes(s,"-")&&(s=s.slice(1),m=!0),s.length0;b--)s="0"+s;return f>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),h=s+y+(v||""),p?h=(p&&m?"(":"")+h+(p&&m?")":""):u>=0?h=0===u?(m?"-":"+")+h:h+(m?"-":"+"):m&&(h="-"+h),h},stringToNumber:function(t){var e,n,i,a=r[o.currentLocale],c=t,s={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&t===o.zeroFormat)n=0;else if(o.nullFormat&&t===o.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==a.delimiters.decimal&&(t=t.replace(/\./g,"").replace(a.delimiters.decimal,".")),s)if(i=new RegExp("[^a-zA-Z]"+a.abbreviations[e]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),c.match(i)){n*=Math.pow(10,s[e]);break}n*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),n*=Number(t)}return n},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return"number"===typeof t&&isNaN(t)})),includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,n){return t.slice(0,n)+e+t.slice(n)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof e)throw new TypeError(e+" is not a function");var n,r=Object(t),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;or?t:r}),1)},toFixed:function(t,e,n,r){var i,o,a,c,s=t.toString().split("."),l=e-(r||0);return i=2===s.length?Math.min(Math.max(s[1].length,l),e):l,a=Math.pow(10,i),c=(n(t+"e+"+i)/a).toFixed(i),r>e-i&&(o=new RegExp("\\.?0{1,"+(r-(e-i))+"}$"),c=c.replace(o,"")),c}},t.options=o,t.formats=n,t.locales=r,t.locale=function(t){return t&&(o.currentLocale=t.toLowerCase()),o.currentLocale},t.localeData=function(t){if(!t)return r[o.currentLocale];if(t=t.toLowerCase(),!r[t])throw new Error("Unknown locale : "+t);return r[t]},t.reset=function(){for(var t in i)o[t]=i[t]},t.zeroFormat=function(t){o.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){o.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){o.defaultFormat="string"===typeof t?t:"0.0"},t.register=function(t,e,n){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=n,n},t.validate=function(e,n){var r,i,o,a,c,s,l,u;if("string"!==typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{l=t.localeData(n)}catch(f){l=t.localeData(t.locale())}return o=l.currency.symbol,c=l.abbreviations,r=l.delimiters.decimal,i="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(u=e.match(/^[^\d]+/))||(e=e.substr(1),u[0]===o))&&(null===(u=e.match(/[^\d]+$/))||(e=e.slice(0,-1),u[0]===c.thousand||u[0]===c.million||u[0]===c.billion||u[0]===c.trillion))&&(s=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&!((a=e.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(s):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(s)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(s)&&!!a[1].match(/^\d+$/)))},t.fn=a.prototype={clone:function(){return t(this)},format:function(e,r){var i,a,c,s=this._value,l=e||o.defaultFormat;if(r=r||Math.round,0===s&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===s&&null!==o.nullFormat)a=o.nullFormat;else{for(i in n)if(l.match(n[i].regexps.format)){c=n[i].format;break}a=(c=c||t._.numberToFormat)(s,l,r)}return a},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([this._value,t],(function(t,e,r,i){return t+Math.round(n*e)}),0)/n,this},subtract:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([t],(function(t,e,r,i){return t-Math.round(n*e)}),Math.round(this._value*n))/n,this},multiply:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)*Math.round(n*o)/Math.round(o*o)}),1),this},divide:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)/Math.round(n*o)})),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var i,o=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}}),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter((function(t){return e.suffixes.indexOf(t)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,c,s,l=t._.includes(i,"ib")?n:e,u=t._.includes(i," b")||t._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(c=Math.pow(l.base,a),s=Math.pow(l.base,a+1),null===r||0===r||r>=c&&r0&&(r/=c);break}return t._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=t._.stringToNumber(r);if(a){for(i=e.suffixes.length-1;i>=0;i--){if(t._.includes(r,e.suffixes[i])){o=Math.pow(e.base,i);break}if(t._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var i,o,a=t.locales[t.options.currentLocale],c={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=t._.numberToFormat(e,n,r),e>=0?(c.before=c.before.replace(/[\-\(]/,""),c.after=c.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(c.before,"-")&&!t._.includes(c.before,"(")&&(c.before="-"+c.before),o=0;o=0;o--)switch(c.after[o]){case"$":i=o===c.after.length-1?i+a.currency.symbol:t._.insert(i,a.currency.symbol,-(c.after.length-(1+o)));break;case" ":i=o===c.after.length-1?i+" ":t._.insert(i," ",-(c.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var i=("number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),t._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(e){var n=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([r,Math.pow(10,i)],(function(e,n,r,i){var o=t._.correctionFactor(e,n);return e*o*(n*o)/(o*o)}),1)}}),t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var i=t.locales[t.options.currentLocale],o=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(e),t._.numberToFormat(e,n,r)+o}}),t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var i,o=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}}),t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,n){var r=Math.floor(t/60/60),i=Math.floor((t-60*r*60)/60),o=Math.round(t-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}}),t})?r.call(e,n,e,t):r)||(t.exports=i)},1444:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o=n(1680);function a(t,e,n,a){var c=Object(i.ib)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,c=r[e];return a=Object(o.b)(c)?a+c:a,t.set(i,a),t}),new Map);return Object(i.W)(t,(function(t){var i,s=t[e],l=t[n],u=Object(o.b)(s)&&0!==c.get(l)?s/c.get(l):0;return Object(r.a)(Object(r.a)({},t),((i={})[a]=u,i))}))}function c(t,e,n,a){var c=Object(i.ib)(t,(function(t,r){var a=Object(i.ib)(n,(function(t,e){return""+t+r[e]}),""),c=t.has(a)?t.get(a):0,s=r[e];return c=Object(o.b)(s)?c+s:c,t.set(a,c),t}),new Map);return Object(i.W)(t,(function(t){var s,l=t[e],u=Object(i.ib)(n,(function(e,n){return""+e+t[n]}),""),f=Object(o.b)(l)&&0!==c.get(u)?l/c.get(u):0;return Object(r.a)(Object(r.a)({},t),((s={})[a]=f,s))}))}function s(t,e,n,r,i){return i?a(t,e,n,r):t}},1445:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return f}));var r=n(800),i=n(618),o=n(818),a=n(1682),c=n(1446),s=n(1681);function l(t){var e=t.chart,n=t.options,r=n.data,s=n.color,l=n.areaStyle,u=n.point,f=n.line,h=null===u||void 0===u?void 0:u.state,d=Object(c.a)(r);e.data(d);var p=Object(i.c)({},t,{options:{xField:a.c,yField:a.d,area:{color:s,style:l},line:f,point:u}}),g=Object(i.c)({},p,{options:{tooltip:!1}}),v=Object(i.c)({},p,{options:{tooltip:!1,state:h}});return Object(o.a)(p),Object(o.d)(g),Object(o.e)(v),e.axis(!1),e.legend(!1),t}function u(t){var e,n,o=t.options,l=o.xAxis,u=o.yAxis,f=o.data,h=Object(c.a)(f);return Object(i.f)(Object(r.g)(((e={})[a.c]=l,e[a.d]=u,e),((n={})[a.c]={type:"cat"},n[a.d]=Object(s.a)(h,a.d),n)))(t)}function f(t){return Object(i.f)(Object(r.f)("areaStyle"),l,u,r.l,r.k,r.a,Object(r.b)())(t)}},1446:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t){return Object(r.W)(t||[],(function(t,e){return{x:""+e,y:t}}))}},1447:function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,c=-1,s=a.length,l=t.value&&(r-e)/t.value;++cO){var w=j/y.length,C=Math.max(1,Math.ceil(O/w)-1),S=y.slice(0,C)+"...";x.attr("text",S)}}}}(t,e,n)}var h={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},d=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};Object(a.o)(h.hover,{start:d(h.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(a.o)(h.click,{start:d(h.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var p=n(818),g=n(1408),v=n(2326),y=n(1444);function m(t){var e=t.options,n=e.legend,i=e.seriesField,o=e.isStack;return i?!1!==n&&(n=Object(r.a)({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function b(t){var e=t.chart,n=t.options,i=n.data,o=n.columnStyle,a=n.color,s=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,f=n.isStack,h=n.xField,d=n.yField,g=n.seriesField,v=n.groupField,m=n.tooltip,b=n.shape,x=l&&u&&f?Object(y.b)(i,d,[h,v],d):Object(y.a)(i,d,h,d,l),O=[];f&&g&&!u?x.forEach((function(t){var e=O.find((function(e){return e[h]===t[h]&&e[g]===t[g]}));e?e[d]+=t[d]||0:O.push(Object(r.a)({},t))})):O=x,e.data(O);var j=l?Object(r.a)({formatter:function(t){return{name:u&&f?t[g]+" - "+t[v]:t[g]||t[h],value:(100*Number(t[d])).toFixed(2)+"%"}}},m):m,w=Object(c.c)({},t,{options:{data:O,widthRatio:s,tooltip:j,interval:{shape:b,style:o,color:a}}});return Object(p.c)(w),w}function x(t){var e,n,i=t.options,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,f=i.data,h=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(c.f)(Object(o.g)(((e={})[l]=a,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=Object(r.a)(Object(r.a)({},Object(c.b)(f,u)),h),n)))(t)}function O(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function j(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function w(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=n.isRange,s=Object(c.d)(e,"interval");if(i){var l=i.callback,u=Object(r.c)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(r.a)({layout:(null===u||void 0===u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(c.A)(a?Object(r.a)({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},u):u))})}else s.label(!1);return t}function C(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,s=n.isStack,l=n.groupField,u=n.data,f=n.xField,h=n.yField,d=n.seriesField;if(!1===o)e.tooltip(!1);else{var p=o;if(a&&s){var g=(null===p||void 0===p?void 0:p.formatter)||function(t){return{name:t[d]+" - "+t[l],value:t[h]}};p=Object(r.a)(Object(r.a)({},p),{customItems:function(t){var e=[];return Object(i.j)(t,(function(t){Object(i.l)(u,(function(e){return Object(i.J)(e,Object(c.t)(t.data,[f,d]))})).forEach((function(n){e.push(Object(r.a)(Object(r.a)(Object(r.a)({},t),{value:n[h],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(p)}return t}function S(t,e){void 0===e&&(e=!1);var n,r,s,u,p=t.options,y=p.seriesField;return Object(c.f)(m,o.k,Object(g.a)("columnStyle"),o.j,Object(o.m)("rect"),b,x,O,j,C,o.i,o.h,w,v.a,o.c,o.a,Object(o.b)(),(r=p.yField,void 0===(s=!e)&&(s=!0),void 0===(u=!!y)&&(u=!1),function(t){var e=t.options,n=t.chart,o=e.conversionTag,h=e.theme;return o&&!u&&(n.theme(Object(c.c)({},Object(i.O)(h)?h:Object(a.k)(h),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var a=t.addGroup({id:n.id+"-conversion-tag-group",name:"conversion-tag-group"}),c=Object(i.m)(n.geometries,(function(t){return"interval"===t.type})),u={view:e,geometry:c,group:a,field:r,horizontal:s,options:l(o,s)},h=c.elements;Object(i.j)(h,(function(t,e){e>0&&f(u,h[e-1],t)}))}})),t}),(void 0===(n=!p.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(h.hover),e.removeInteraction(h.click)};if(!n&&r){var o=r.trigger||"hover";i(),e.interaction(h[o],{start:d(o,r.style)})}else i();return t}),o.e)(t)}},1673:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},1674:function(t,e,n){"use strict";var r=n(2187);n.d(e,"getAdjust",(function(){return r.getAdjust}));n(1183);var i=n(2451),o=n(2452),a=n(2453),c=n(2454);n(1708);Object(r.registerAdjust)("Dodge",i.a),Object(r.registerAdjust)("Jitter",o.a),Object(r.registerAdjust)("Stack",a.a),Object(r.registerAdjust)("Symmetric",c.a)},1675:function(t,e,n){"use strict";var r=n(579),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,s=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var u,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=function(t){if("#"===t[0]&&7===t.length)return t;u||(u=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}()),u.style.color=t;var e=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return e=l(i.exec(e)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.a={rgb2arr:f,gradient:function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return f(-1===t.indexOf("#")?d(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],c=i===r?a:t[i+1];return l([s(a,c,o,0),s(a,c,o,1),s(a,c,o,2)])}(n,t)}},toRGB:Object(r.ab)(d),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(s=o.exec(t))[1]+90;n=s[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var s;e="radial-gradient(",n=(s=a.exec(t))[4]}var l=n.match(c);return Object(r.j)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},1676:function(t,e,n){"use strict";var r=n(825),i=n(1185),o=n(579),a=n(918),c=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),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.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(o.h)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(1709).a);e.a=c},1677:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(579),i=n(618),o=n(2192),a={};function c(t,e){a[t]=e}function s(t){return{get:function(e,n){return Object(i.y)(Object(r.s)(a[t],e)||Object(r.s)(a[o.a.locale],e)||Object(r.s)(a["en-US"],e)||e,n)}}}},1678:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var r,i=n(613);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n=r&&t<=i}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},1681:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n(613),i=n(579),o=n(1678),a=n(2190);function c(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(i.s)(t,[e]);return Object(i.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.s)(t,[e])>=0})),o=n.every((function(t){return Object(i.s)(t,[e])<=0}));return r?{min:0}:o?{max:0}:{}}function s(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var c=[],s={},l=-1;return t.forEach((function(t){var u=t[e],f=t[n],h=t[i],d=Object(a.a)(t,o);s[u]||(s[u]=Object(r.a)({id:++l,name:u},d)),s[f]||(s[f]=Object(r.a)({id:++l,name:f},d)),c.push(Object(r.a)({source:s[u].id,target:s[f].id,value:h},d))})),{nodes:Object.values(s).sort((function(t,e){return t.id-e.id})),links:c}}function l(t,e){var n=Object(i.l)(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return Object(o.b)(o.a.WARN,n.length===t.length,"illegal data existed in chart data."),n}},1682:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o="x",a="y",c={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.s)(e,[0,"data","y"],0)},containerTpl:'
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},s={appendPadding:2,tooltip:Object(r.a)({},c),animation:{}}},1683:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return s}));var r=n(579),i="nodeIndex",o="childNodeCount",a="nodeAncestor";function c(t,e){var n=t.field,i=t.fields;if(Object(r.Q)(n))return n;if(Object(r.C)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),Object(r.Q)(i))return i;if(Object(r.C)(i)&&i.length)return i[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function s(t){var e,n,c=[];t&&t.each?t.each((function(t){var s,l;t.parent!==e?(e=t.parent,n=0):n+=1;var u=Object(r.l)(((null===(s=t.ancestors)||void 0===s?void 0:s.call(t))||[]).map((function(t){return c.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n0&&t.charCodeAt(e)<128?1:2}function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o=19968&&s<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.j)(t,(function(t){var n=t.getBBox().width;e=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,c=0;a"},key:(0===s?"top":"bottom")+"-statistic"},Object(o.t)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var s=e.statistic;[s.title,s.content].forEach((function(e){if(e){var s=Object(i.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.a)({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),u=o.views[0].getCoordinate(),f=u.getCenter(),h=u.getRadius(),d=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*h,p=f.y+d-l.y.start-parseFloat(Object(i.s)(s,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;c(t,Object(r.a)({width:g+"px",transform:"translate(-50%, "+p+"px)"},a(s)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?Object(i.Q)(y)?y:""+y:"
"}},Object(o.t)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},1712:function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"a",(function(){return v}));var r=n(613),i=n(579),o=n(800),a=n(618),c=n(818),s=n(1681);function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,s=n.lineStyle,l=n.lineShape,u=n.point,f=n.area,h=n.seriesField,d=null===u||void 0===u?void 0:u.state,p=null===f||void 0===f?void 0:f.state;e.data(i);var g=Object(a.c)({},t,{options:{shapeField:h,line:{color:o,style:s,shape:l},point:u&&Object(r.a)({color:o,shape:"circle"},u),area:f&&Object(r.a)({color:o},f),label:void 0}}),v=Object(a.c)({},g,{options:{tooltip:!1,state:d}}),y=Object(a.c)({},g,{options:{tooltip:!1,state:p}});return Object(c.d)(g),Object(c.e)(v),Object(c.a)(y),t}function u(t){var e,n,r=t.options,i=r.xAxis,c=r.yAxis,l=r.xField,u=r.yField,f=r.data;return Object(a.f)(Object(o.g)(((e={})[l]=i,e[u]=c,e),((n={})[l]={type:"cat"},n[u]=Object(s.a)(f,u),n)))(t)}function f(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;Object(i.C)(r)||(r=[r]);var o=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,c=Object(a.d)(e,"line");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[o],callback:s,cfg:Object(r.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.A)(l))})}else c.label(!1);return t}function g(t){var e=t.chart;return t.options.isStack&&Object(i.j)(e.geometries,(function(t){t.adjust("stack")})),t}function v(t){return Object(a.f)(l,u,g,o.k,f,h,d,o.l,p,o.i,o.h,o.c,o.a,Object(o.b)(),o.e)(t)}},1713:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(579),o=n(732),a=n(618),c=n(2309),s=n(1409),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s.a},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c.a},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(a.i)(this.chart);Object(i.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a.i)(this.chart),e=[];return Object(i.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(i.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=s.b,e.PERCENT_FIELD=s.d,e.TOTAL_PERCENT_FIELD=s.e,e}(o.b)},1714:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(613),i=n(761),o=n(579),a=n(2191),c={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},s="hierarchy-data-transform-params",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=c,e}return Object(r.b)(e,t),e.prototype.click=function(){var t=Object(o.s)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===r&&(o={x:t.start.x,y:t.start.y});var a=i.h.transform(null,[["t",o.x+0,o.y+n.height+5]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o.mb)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(o.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(r.a)({data:t.data},t[s]));e.changeData(i);for(var a=[],c=t;c;){var l=c.data;a.unshift({id:l.name+"_"+c.height+"_"+c.depth,name:l.name,children:n(Object(r.a)({data:l},t[s]))}),c=c.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o.U)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(o.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a.a)(this.breadCrumbCfg,null===e||void 0===e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:"drilldown-bread-crumb"});var i=0;n.forEach((function(a,c){var s=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:"drilldown-bread-crumb_"+a.name+"_text",attrs:Object(r.a)(Object(r.a)({text:0!==c||Object(o.K)(e.rootText)?a.name:e.rootText},e.textStyle),{x:i,y:0})}),l=s.getBBox();if(i+=l.width+4,s.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(o.U)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(a)}})),s.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.U)(n))||void 0===r?void 0:r.id)?s.attr(e.activeTextStyle):s.attr({cursor:"default"})})),s.on("mouseleave",(function(){s.attr(e.textStyle)})),c=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(c)throw o}}}}},1716:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n(1447),i=n(1684),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,c){for(var s,l,u,f,h,d,p,g,v,y,m,b=[],x=e.children,O=0,j=0,w=x.length,C=e.value;Op&&(p=l),m=h*h*y,(g=Math.max(p/m,m/d))>v){h-=l;break}v=g}b.push(s={value:h,dice:u1?e:1)},n}(o)},1717:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var r=n(723);function i(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}var o=n(1715);function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(M){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=l;var f={};function h(){}function d(){}function p(){}var g={};s(g,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(S([])));y&&y!==e&&n.call(y,i)&&(g=y);var m=p.prototype=h.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,c){var s=u(t[i],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var c=a().mark(s);function s(){var t,e,n,r,i,o;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){a.next=8;break}return a.next=5,t;case 5:if(r=t.children)for(i=0,o=r.length;i=0;--o)s.push(r=i[o]=new p(i[o])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(d)}function u(t){return t.children}function f(t){return Array.isArray(t)?t[1]:null}function h(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function d(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function p(t){this.data=t,this.depth=this.height=0,this.parent=null}p.prototype=l.prototype=Object(r.a)({constructor:p,count:function(){return this.eachAfter(i)},each:function(t,e){var n,r=-1,i=Object(o.a)(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;t.call(e,a,++r,this)}}catch(c){i.e(c)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],c=[],s=-1;o=a.pop();)if(c.push(o),n=o.children)for(r=0,i=n.length;r=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=Object(o.a)(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(t.call(e,a,++r,this))return a}}catch(c){i.e(c)}finally{i.f()}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return l(this).eachBefore(h)}},Symbol.iterator,s)},2182:function(t,e,n){},2183:function(t,e,n){},2184:function(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function P(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function A(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function F(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function T(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function N(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),c=Math.cos(r);return t[0]=i*c-o*a+n[0],t[1]=i*a+o*c+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),c=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(c,-1),1))}function B(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function _(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var V=j,H=u,K=f,Y=h,G=x,W=O,X=w,q=function(){var t=i();return function(e,n,r,i,o,a){var c,s;for(n||(n=2),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,c=r;c0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],c=n[1],s=n[2];return t[0]=i*s-o*c,t[1]=o*a-r*s,t[2]=r*c-i*a,t}function P(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function A(t,e,n,r,i,o){var a=o*o,c=a*(2*o-3)+1,s=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*c+n[0]*s+r[0]*l+i[0]*u,t[1]=e[1]*c+n[1]*s+r[1]*l+i[1]*u,t[2]=e[2]*c+n[2]*s+r[2]*l+i[2]*u,t}function I(t,e,n,r,i,o){var a=1-o,c=a*a,s=o*o,l=c*a,u=3*o*c,f=3*s*a,h=s*o;return t[0]=e[0]*l+n[0]*u+r[0]*f+i[0]*h,t[1]=e[1]*l+n[1]*u+r[1]*f+i[1]*h,t[2]=e[2]*l+n[2]*u+r[2]*f+i[2]*h,t}function F(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],c=e[0],s=e[1],l=e[2],u=i*l-o*s,f=o*c-r*l,h=r*s-i*c,d=i*h-o*f,p=o*u-r*h,g=r*f-i*u,v=2*a;return u*=v,f*=v,h*=v,d*=2,p*=2,g*=2,t[0]=c+u+d,t[1]=s+f+p,t[2]=l+h+g,t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],c=e[2],s=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+c*c),l=s&&M(t,e)/s;return Math.acos(Math.min(Math.max(l,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function H(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function K(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],c=e[1],s=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-c)<=r.b*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-s)<=r.b*Math.max(1,Math.abs(o),Math.abs(s))}var Y=f,G=h,W=d,X=O,q=j,U=a,$=w,Z=function(){var t=i();return function(e,n,r,i,o,a){var c,s;for(n||(n=3),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,c=r;c(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*c-o*s,n.y=t.y-r*s+o*c):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*c-o*s,n.y=e.y+r*s+o*c)):(n.x=e.x+n.r,n.y=e.y)}function a(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function c(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function s(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(u=(t=Object(r.a)(t)).length))return 0;var e,n,l,u,f,h,d,p,g,v,y;if((e=t[0]).x=0,e.y=0,!(u>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(u>2))return e.r+n.r;o(n,e,l=t[2]),e=new s(e),n=new s(n),l=new s(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(d=3;d0&&n*n>r*r+i*i}function c(t,e){for(var n=0;n0}function c(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,c=a.x,s=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(c-i,2)+Math.pow(s-o,2))0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(h.b)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(h.b)(t),n):e},n};function m(t,e){return t.parent===e.parent?1:2}function b(t){var e=t.children;return e?e[0]:t.t}function x(t){var e=t.children;return e?e[e.length-1]:t.t}function O(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function j(t,e,n){return t.a.parent===e.parent?t.a:n}function w(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}w.prototype=Object.create(c.a.prototype);var C=function(){var t=m,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,o,a=new w(t,0),c=[a];e=c.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)c.push(n=e.children[i]=new w(r[i],i)),n.parent=e;return(a.parent=new w(null,0)).children=[a],a}(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(c);else{var l=i,u=i,f=i;i.eachBefore((function(t){t.xu.x&&(u=t),t.depth>f.depth&&(f=t)}));var h=l===u?1:t(l,u)/2,d=h-l.x,p=e/(u.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,c=n,s=o.parent.children[0],l=o.m,u=a.m,f=c.m,h=s.m;c=x(c),o=b(o),c&&o;)s=b(s),(a=x(a)).a=e,(i=c.z+f-o.z-l+t(c._,o._))>0&&(O(j(c,e,r),e,i),l+=i,u+=i),f+=c.m,l+=o.m,h+=s.m,u+=a.m;c&&!x(a)&&(a.t=c,a.m+=f-u),o&&!b(s)&&(s.t=o,s.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},S=n(2292),E=function(t,e,n,r,i){var o,a,c=t.children,s=c.length,l=new Array(s+1);for(l[0]=a=o=0;o=n-1){var u=c[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}var f=l[e],h=r/2+f,d=e+1,p=n-1;for(;d>>1;l[g]s-o){var m=r?(i*y+a*v)/r:a;t(e,d,v,i,o,m,s),t(d,n,y,m,o,a,s)}else{var b=r?(o*y+s*v)/r:s;t(e,d,v,i,o,a,b),t(d,n,y,i,b,a,s)}}(0,s,t.value,e,n,r,i)},M=n(1447),k=n(1684),P=function(t,e,n,r,i){(1&t.depth?k.a:M.a)(t,e,n,r,i)},A=n(1716),I=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,c,s,l,u,f=-1,h=a.length,d=t.value;++f1?e:1)},n}(A.b)},2216:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(618);function i(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function o(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=i();return n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(r,r),n}function a(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function c(t,e,n){var r=t+e;return n?2*r:r}function s(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function l(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}var u={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function f(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,c=e.stroke,s=e.fillOpacity;t.beginPath(),t.globalAlpha=s,t.fillStyle=o,t.strokeStyle=c,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}var h={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function d(t){var e=Object(r.c)({},h,t),n=e.spacing,c=e.rotation,s=e.lineWidth,u=n+s||1,f=n+s||1,d="\n M 0 0 L "+u+" 0\n M 0 "+f+" L "+u+" "+f+"\n ",p=o(u,f),g=p.getContext("2d");a(g,e,u,f),function(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}(g,e,d);var v=g.createPattern(p,"repeat");if(v){var y=l(i(),c);v.setTransform(y)}return v}var p={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function g(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,c=e.lineWidth,s=e.fillOpacity;t.globalAlpha=s,t.strokeStyle=i,t.lineWidth=c,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function v(t){var e,n=t.type,h=t.cfg;switch(n){case"dot":e=function(t){var e=Object(r.c)({},u,t),n=e.size,h=e.padding,d=e.isStagger,p=e.rotation,g=c(n,h,d),v=s(g,d),y=o(g,g),m=y.getContext("2d");a(m,e,g);for(var b=0,x=v;b0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;s.push(["M",u,e]);for(var f=0,h=0;h0&&s<1&&(d=(h-f)/a/(s/(1-s)+1-1/a));for(var p=d/(1-s)*s,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=i.h.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,O=b;O
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},l={appendPadding:2,tooltip:Object(r.a)({},s),animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return l},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.b)({chart:e,options:n}),e.changeData(Object(o.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2228:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(732),o=n(1446),a=n(1445),c=n(1682),s={appendPadding:2,tooltip:Object(r.a)({},c.b),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.b)({chart:e,options:n}),e.changeData(Object(o.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2229:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(761),o=n(732),a=n(2200),c=n(2282),s={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(a.a)(t)),Object(c.b)({chart:this.chart,options:this.options},!0),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c.a},e}(o.b)},2250:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a0?n:e:e<0?e:n;case"outer":return n=12,Object(r.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function c(t,e){return Object(r.k)(Object(i.u)(t,e),(function(t){return 0===t[e]}))}},2274:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(613),i=n(761),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(r.d)(e):Object(r.d)(o);return i.h.transform(n,t)}},2275:function(t,e,n){"use strict";var r=n(761);Object(r.o)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},2276:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(618),i=n(800),o=n(818),a=n(1445);n.d(e,"b",(function(){return a.b}));var c=n(1446),s=n(1682);function l(t){var e=t.chart,n=t.options,i=n.data,a=n.color,l=n.lineStyle,u=n.point,f=null===u||void 0===u?void 0:u.state,h=Object(c.a)(i);e.data(h);var d=Object(r.c)({},t,{options:{xField:s.c,yField:s.d,line:{color:a,style:l},point:u}}),p=Object(r.c)({},d,{options:{tooltip:!1,state:f}});return Object(o.d)(d),Object(o.e)(p),e.axis(!1),e.legend(!1),t}function u(t){return Object(r.f)(l,a.b,i.k,i.l,i.a,Object(i.b)())(t)}},2277:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(800),i=n(618),o=n(818),a=n(1682),c=n(1446),s=n(1445);function l(t){var e=t.chart,n=t.options,r=n.data,s=n.color,l=n.columnStyle,u=n.columnWidthRatio,f=Object(c.a)(r);e.data(f);var h=Object(i.c)({},t,{options:{xField:a.c,yField:a.d,widthRatio:u,interval:{style:l,color:s}}});return Object(o.c)(h),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function u(t){return Object(i.f)(r.k,Object(r.f)("columnStyle"),l,s.b,r.l,r.a,Object(r.b)())(t)}n.d(e,"b",(function(){return s.b}))},2278:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(579);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function o(t,e,n,o,a){var c=Object(r.e)(t);Object(r.ob)(c,e);var s=Object(r.yb)(c,e),l=Object(r.u)(s),u=l.max-l.min,f=n;if(!n&&o&&(f=o>1?u/(o-1):l.max),!n&&!o){var h=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(s);f=u/h}var d={},p=Object(r.w)(c,a);Object(r.G)(p)?Object(r.j)(c,(function(t){var n=i(t[e],f,o),a=n[0]+"-"+n[1];Object(r.y)(d,a)||(d[a]={range:n,count:0}),d[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.j)(p[t],(function(n){var c=i(n[e],f,o),s=c[0]+"-"+c[1]+"-"+t;Object(r.y)(d,s)||(d[s]={range:c,count:0},d[s][a]=t),d[s].count+=1}))}));var g=[];return Object(r.j)(d,(function(t){g.push(t)})),g}},2279:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(613),i=n(800),o=n(1408),a=n(618),c=n(818),s=n(2278),l=n(2280);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,u=n.binWidth,f=n.color,h=n.stackField,d=n.legend,p=n.columnStyle,g=Object(s.a)(r,i,u,o,h);e.data(g);var v=Object(a.c)({},t,{options:{xField:l.b,yField:l.c,seriesField:h,isStack:!0,interval:{color:f,style:p}}});return Object(c.c)(v),d&&h&&e.legend(h,d),t}function f(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(a.f)(Object(i.g)(((e={})[l.b]=r,e[l.c]=o,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(l.b,!1):e.axis(l.b,r),!1===i?e.axis(l.c,!1):e.axis(l.c,i),t}function d(t){var e=t.chart,n=t.options.label,i=Object(a.d)(e,"interval");if(n){var o=n.callback,c=Object(r.c)(n,["callback"]);i.label({fields:[l.c],callback:o,cfg:Object(a.A)(c)})}else i.label(!1);return t}function p(t){return Object(a.f)(i.k,Object(o.a)("columnStyle"),u,f,h,i.j,d,i.l,i.c,i.a)(t)}},2280:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n(732),i=n(618),o="range",a="count",c=Object(i.c)({},r.b.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},2281:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=["#FAAD14","#E8EDF3"],i={percent:.2,color:r,animation:{}}},2282:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n(613),i=n(579),o=n(618),a=n(800),c=n(2199);function s(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function l(t,e){var n=t.chart,a=t.options,c=a.innerRadius,s=a.statistic,l=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),c&&s){var f=Object(i.s)(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=s.content;h&&(h=Object(o.c)({},h,{content:Object(i.K)(h.content)?f(l):h.content})),Object(o.w)(n,{statistic:Object(r.a)(Object(r.a)({},s),{content:h}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function u(t){return Object(o.f)(c.b,Object(a.g)({}),s,l,a.a,a.k,Object(a.b)())(t)}},2283:function(t,e,n){!function(t){"use strict";function e(t){for(var e=new Array(t),n=0;nl+c*a*u||f>=g)p=a;else{if(Math.abs(d)<=-s*u)return a;d*(p-h)>=0&&(p=h),h=a,g=f}return 0}a=a||1,c=c||1e-6,s=s||.1;for(var v=0;v<10;++v){if(o(i.x,1,r.x,a,e),f=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),f>l+c*a*u||v&&f>=h)return g(p,a,h);if(Math.abs(d)<=-s*u)return a;if(d>=0)return g(a,p,f);h=f,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),c=t(n),s=n-e;if(a*c>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===c)return n;for(var l=0;l=0&&(e=u),Math.abs(s)=g[p-1].fx){var k=!1;if(O.fx>M.fx?(o(j,1+h,x,-h,M),j.fx=t(j),j.fx=1)break;for(v=1;v
',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){return(100*Object(i.s)(e,[0,"data",l.d],0)).toFixed(2)+"%"}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(s.f)(o.k,o.a,f,h,p,d,o.c,Object(o.b)(),g)(t)}},2294:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(579),i=n(2207);function o(t){var e;return[(e={},e[i.d]=Object(r.c)(t,0,1),e)]}function a(t,e){var n=Object(r.s)(e,["ticks"],[]);return function(t,e){return t.map((function(n,r){var o;return(o={})[i.f]=n-(t[r-1]||0),o[i.e]=""+r,o[i.d]=e,o})).filter((function(t){return!!t[i.f]}))}(Object(r.mb)(n)?n:[0,Object(r.c)(t,0,1),1],t)}},2295:function(t,e,n){"use strict";var r=n(613),i=n(618);!function(t){function e(e,n,r,o){var a=t.call(this,e,Object(i.c)({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=r,a}Object(r.b)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(n(732).b)},2296:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(579),i=n(618),o=n(1712),a=n(2271),c=n(1450),s=n(2270),l=n(2268),u=n(2293),f=n(2276),h=n(2277),d=n(1445),p=n(2282),g=n(2199),v=n(2327),y=n(2279),m=n(2309),b=n(2284),x=n(2219),O=n(2195),j=n(2226),w=n(2225),C=n(2224),S=n(2222),E=n(2196),M=n(2228),k=n(2227),P=n(2229),A=n(2198),I=n(2221),F=n(2197),T=n(1713),L=n(2201),N={line:o.a,pie:a.a,column:c.a,bar:s.a,area:l.a,gauge:u.a,"tiny-line":f.a,"tiny-column":h.a,"tiny-area":d.a,"ring-progress":p.a,progress:g.a,scatter:v.a,histogram:y.a,funnel:m.a,stock:b.a},D={line:x.a,pie:O.a,column:w.a,bar:j.a,area:C.a,gauge:S.a,"tiny-line":E.a,"tiny-column":k.a,"tiny-area":M.a,"ring-progress":P.a,progress:A.a,scatter:I.a,histogram:F.a,funnel:T.a,stock:L.a},B={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function R(t,e,n){var o=D[t];o?(0,N[t])({chart:e,options:Object(i.c)({},o.getDefaultOptions(),Object(r.s)(B,t,{}),n)}):console.error("could not find "+t+" plot")}},2297:function(t,e,n){"use strict";var r,i=n(1688);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(r||(r={}));!function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){var t,e;return t=r.STABLE,e="MultiView",console.warn(t===r.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===r.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===r.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type."),i.a},enumerable:!1,configurable:!0})}()},2299:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(818),s=n(618),l=n(1675),u={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(t=e/255*255/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}};function f(t,e,n){void 0===n&&(n="normal");var r,i=(r=function(t){if(!u[t])throw new Error("unknown blend mode "+t);return u[t]}(n),function(t,e){var n=[];return n[0]=r(t[0],e[0]),n[1]=r(t[1],e[1]),n[2]=r(t[2],e[2]),n})(h(t),h(e)),o=h(t),a=o[0],c=o[1],s=o[2],l=o[3],f=h(e),d=f[0],p=f[1],g=f[2],v=f[3],y=Number((l+v*(1-l)).toFixed(2));return"rgba("+Math.round((l*(1-v)*(a/255)+l*v*(i[0]/255)+(1-l)*v*(d/255))/y*255)+", "+Math.round((l*(1-v)*(c/255)+l*v*(i[1]/255)+(1-l)*v*(p/255))/y*255)+", "+Math.round((l*(1-v)*(s/255)+l*v*(i[2]/255)+(1-l)*v*(g/255))/y*255)+", "+y+")"}function h(t){var e,n=t.replace("/s+/g","");return"string"!==typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=l.a.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):l.a.rgb2arr(l.a.toRGB(n)).concat([1])}var d=n(2283);function p(t,e){var n,r=function(t){for(var e=[],n=0;ne[n].radius+1e-10)return!1;return!0}(e,t)})),o=0,a=0,c=[];if(i.length>1){var s=b(i);for(n=0;n-1){var y=t[f.parentIndex[p]],x=Math.atan2(f.x-y.x,f.y-y.y),O=Math.atan2(u.x-y.x,u.y-y.y),j=O-x;j<0&&(j+=2*Math.PI);var w=O-j/2,C=v(h,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});C>2*y.radius&&(C=2*y.radius),(null===d||d.width>C)&&(d={circle:y,width:C,p1:f,p2:u})}null!==d&&(c.push(d),o+=g(d.circle.radius,d.width),u=f)}}else{var S=t[0];for(n=1;nMath.abs(S.radius-t[n].radius)){E=!0;break}E?o=a=0:(o=S.radius*S.radius*Math.PI,c.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=c,e.innerPoints=i,e.intersectionPoints=r),o+a}function g(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function v(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function y(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return g(t,t-(n*n-e*e+t*t)/(2*n))+g(e,r)}function m(t,e){var n=v(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),c=t.x+o*(e.x-t.x)/n,s=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:c+l,y:s-u},{x:c-l,y:s+u}]}function b(t){for(var e={x:0,y:0},n=0;n=Math.min(i[u].size,i[f].size)&&(l=0),o[u].push({set:f,size:s.size,weight:l}),o[f].push({set:u,size:s.size,weight:l})}var h=[];for(n in o)if(o.hasOwnProperty(n)){var d=0;for(a=0;a=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],o={};for(n=0;n=Math.min(e[o].size,e[a].size)?s=1:t.size<=1e-10&&(s=-1),i[o][a]=i[a][o]=s})),{distances:r,constraints:i}}(t,i,o),s=c.distances,l=c.constraints,u=Object(d.norm2)(s.map(d.norm2))/s.length;s=s.map((function(t){return t.map((function(t){return t/u}))}));var f,h,p=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i0&&p<=f||h<0&&p>=f||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(c-u),e[2*s]+=4*g*(l-a),e[2*s+1]+=4*g*(u-c))}return o}(t,e,s,l)};for(n=0;n=a&&(o=r[n],a=c)}var s=Object(d.nelderMead)((function(n){return-1*C({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s[0],y:s[1]},u=!0;for(n=0;nt[n].radius){u=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return n}var M={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]},k=Object(o.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var c=e[r].map((function(t){return i.get(t)}));i.set(e.id,c.slice(1).reduce((function(t,e){return f(t,e,n)}),c[0]))}})),i}),(function(){for(var t=[],e=0;ee?1:-1})),e=0;ec;i.push("\nA",c,c,0,s?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}(e.map((function(t){return f[t]})));/[zZ]$/.test(r)||(r+=" Z"),t.path=r;var i=h[n]||{x:0,y:0};Object(o.b)(t,i)})),u}var A=n(761),I=n(1411);Object(A.p)("schema","venn",{draw:function(t,e){var n=t.data,i=Object(I.c)(n.path),o=function(t){return Object(s.c)({},t.defaultStyle,{fill:t.color},t.style)}(t),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:Object(r.a)(Object(r.a)({},o),{path:i}),name:"venn-path"});var c=t.customInfo,l=c.offsetX,u=c.offsetY,f=A.h.transform(null,[["t",l,u]]);return a.setMatrix(f),a},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,c=a.offsetX,s=a.offsetY;return{content:t.content[n],x:i+c,y:o+s}},e}(A.e);function T(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}Object(A.n)("venn",F);var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(A.j)("element-active")),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(A.j)("element-highlight")),D=Object(A.j)("element-selected"),B=Object(A.j)("element-single-selected"),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(D),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(B);Object(A.l)("venn-element-active",L),Object(A.l)("venn-element-highlight",N),Object(A.l)("venn-element-selected",R),Object(A.l)("venn-element-single-selected",_),Object(A.o)("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Object(A.o)("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Object(A.o)("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Object(A.o)("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Object(A.o)("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Object(A.o)("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});function z(t,e,n){var r=t.chart,i=t.options,a=i.blendMode,c=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,f=n;Object(o.C)(f)||(f=e.filter((function(t){return 1===t[c].length})).length<=10?l:u);var h=k(f,e,a,c);return function(t){return h.get(t)||f[0]}}function V(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,a=n.padding,c=Object(s.s)(i);return!1!==r&&(c=Object(s.g)(i,Object(o.s)(r,"position"),40)),e.appendPadding=Object(s.x)([c,a]),t}function H(t){var e=t.options.data;e||(Object(s.r)(s.a.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),e=[]);var n=e.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=e.filter((function(t){var e=t.sets;return function(t,e){for(var n=0;nr)throw new Error("circular link");i=o,o=new Set}if(e)for(var c=Math.max(p(n,(function(t){return t.depth}))+1,0),s=void 0,l=0;ln)throw new Error("circular link");r=i,i=new Set}}(h),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(p(e,(function(t){return t.depth}))+1,0),o=(a-i-s)/(r-1),c=new Array(r).fill(0).map((function(){return[]})),l=0,u=e;l0){var m=(u/f-l.y0)*e;l.y0+=m,l.y1+=m,L(l)}}void 0===n&&a.sort(y),a.length&&I(a,r)}}function A(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,c=o;a0){var v=(l/u-s.y0)*e;s.y0+=v,s.y1+=v,L(s)}}void 0===n&&o.sort(y),o.length&&I(o,r)}}function I(e,n){var r=e.length>>1,i=e[r];T(e,i.y0-t,r-1,n),F(e,i.y1+t,r+1,n),T(e,c,e.length-1,n),F(e,o,0,n)}function F(e,n,r,i){for(;r1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function T(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function L(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,o=n;i "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=I(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Object(a.e)(this.chart,"nodes"),o=Object(a.e)(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return B},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(o.b)},2301:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return h})),n.d(e,"Arc",(function(){return d})),n.d(e,"Region",(function(){return p})),n.d(e,"Image",(function(){return g})),n.d(e,"DataMarker",(function(){return v})),n.d(e,"DataRegion",(function(){return y})),n.d(e,"RegionFilter",(function(){return m})),n.d(e,"Shape",(function(){return b})),n.d(e,"Html",(function(){return O}));var r=n(825),i=n(579),o=n(913),a=n(1698),c=n(1139),s=n(918);function l(t,e){var n=e.x,o=e.y,l=e.content,u=e.style,f=e.id,h=e.name,d=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:f,name:h,attrs:Object(r.a)({x:0,y:0,text:l},u)}),O=Object(s.c)(Object(i.s)(m,"padding",0));if(p&&g){var j=p-(O[1]+O[3]);Object(a.a)(!v,x,j,y)}if(m){var w=Object(i.s)(m,"style",{}),C=x.getCanvasBBox(),S=C.minX,E=C.minY,M=C.width,k=C.height;b.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:Object(r.a)({x:S-O[3],y:E-O[0],width:M+O[1]+O[3],height:k+O[0]+O[2]},w)}).toBack()}Object(c.c)(b,n,o),Object(c.b)(b,d,n,o)}var u=n(1004),f=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:"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"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.a)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.Q)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.M)(n)?n:1)>1||r<0)&&(r=1),{x:Object(s.g)(t.x,e.x,r),y:Object(s.g)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,o=e.content,a=e.style,c=e.offsetX,s=e.offsetY,u=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,d=e.ellipsisPosition,p=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,r,i),m=y.x+c,b=y.y+s,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:o,style:a,maxLength:f,autoEllipsis:h,ellipsisPosition:d,background:p,isVertical:v};if(u){var O=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(o.a),h=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:"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,r=e.y,i=this.get("content"),o=this.get("style");l(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");Object(c.c)(t,n,r),Object(c.b)(t,i,n,r)}},e}(o.a),d=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:"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,r=t.startAngle,i=t.endAngle,o=Object(s.e)(e,n,r),a=Object(s.e)(e,n,i),c=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r===2*Math.PI){var u=Object(s.e)(e,n,r+Math.PI);l.push(["A",n,n,0,c,1,u.x,u.y]),l.push(["A",n,n,0,c,1,a.x,a.y])}else l.push(["A",n,n,0,c,1,a.x,a.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(r.a)({path:e},n)})},e}(o.a),p=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:"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"),i=this.get("style"),o=Object(s.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(o.a),g=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:"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"),i=Object(s.k)({start:t,end:e}),o=this.get("src");return Object(r.a)({x:i.x,y:i.y,img:o,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.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(i.s)(this.get("line"),"display")&&this.renderLine(t),Object(i.s)(this.get("text"),"display")&&this.renderText(t),Object(i.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,i=e.y,o=e.text,a=Object(r.c)(e,["x","y","text"]),c=this.get("text"),s=c.background,u=c.maxLength,f=c.autoEllipsis,h=c.isVertival,d=c.ellipsisPosition;l(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:s,maxLength:u,autoEllipsis:f,isVertival:h,ellipsisPosition:d})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.s)(this.get("line"),"length",0),a=this.get("coordinateBBox"),s=t.getBBox(),l=s.minX,u=s.maxX,f=s.minY,h=s.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(d){if(n+l<=a.minX){var v=a.minX-(n+l);Object(c.c)(d,d.attr("x")+v,d.attr("y"))}if(n+u>=a.maxX){v=n+u-a.maxX;Object(c.c)(d,d.attr("x")-v,d.attr("y"))}}if("upward"===e&&r+f<=a.minY||"upward"!==e&&r+h>=a.maxY){var y=void 0,m=void 0;"upward"===e&&r+f<=a.minY?(y="top",m=1):(y="bottom",m=-1),p.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*m]]),Object(c.c)(d,d.attr("x"),(o+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(i.s)(this.get("line"),"display"),e=Object(i.s)(this.get("point"),"style",{}),n=Object(i.s)(this.get("line"),"style",{}),o=Object(i.s)(this.get("text"),"style",{}),a=this.get("direction"),c=t?Object(i.s)(this.get("line"),"length",0):0,s="upward"===a?-1:1;return{point:Object(r.a)({x:0,y:0},e),line:Object(r.a)({path:[["M",0,0],["L",0,c*s]]},n),text:Object(r.a)({x:0,y:(c+2)*s,text:Object(i.s)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.a),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.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(i.s)(this.get("region"),"style",{}),n=(Object(i.s)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(s.j)(o),c=[];c.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){c.push(["L",t.x,t.y])})),c.push(["L",o[o.length-1].x,o[o.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({path:c},e)}),l(t,Object(r.a)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text")))}},e}(o.a),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.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"),r=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.j)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.e)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=Object(s.k)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.a),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"shape",draw:i.fb})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.I)(e)&&e(t)},e}(o.a),x=n(1185),O=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:"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(s.a)(t);var n=Object(i.I)(e)?e(t):e;if(Object(i.F)(n))t.appendChild(n);else if(Object(i.Q)(n)||Object(i.M)(n)){var r=Object(x.b)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),c=this.get("offsetY"),s=Object(x.d)(t),l=Object(x.c)(t),u={x:n,y:r};"middle"===i?u.x-=Math.round(s/2):"right"===i&&(u.x-=Math.round(s)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),c&&(u.y+=c),Object(x.e)(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(n(1676).a)},2302:function(t,e,n){"use strict";var r,i,o=n(613),a=n(732),c=n(618),s=n(579),l=n(800),u=n(1444),f=n(1679);!function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}));var h={nice:!0,label:{autoHide:!0,autoRotate:!1}},d=Object(o.a)(Object(o.a)({},h),{position:"left"}),p=Object(o.a)(Object(o.a)({},h),{position:"right",grid:null});function g(t){return Object(s.s)(t,"geometry")===i.Line}function v(t){return Object(s.s)(t,"geometry")===i.Column}function y(t,e,n){return v(n)?Object(c.c)({},{geometry:i.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):Object(o.a)({geometry:i.Line},n)}function m(t,e){var n=t[0],r=t[1];return Object(s.C)(e)?[e[0],e[1]]:[Object(s.s)(e,n),Object(s.s)(e,r)]}function b(t,e){return e===r.Left?!1!==t&&Object(c.c)({},d,t):e===r.Right?!1!==t&&Object(c.c)({},p,t):t}var x=n(761);function O(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(s.s)(i,"marker"),a=Object(c.d)(e,g(n)?"line":"interval");if(!n.seriesField){var l=Object(s.s)(e,"options.scales."+r+".alias")||r,u=a.getAttribute("color"),f=e.getTheme().defaultColor;return u&&(f=x.h.getMappingValue(u,l,Object(s.s)(u,["values",0],f))),[{value:r,name:l,marker:(Object(s.I)(o)?o:!Object(s.G)(o)&&Object(c.c)({},{style:{stroke:f,fill:f}},o))||(g(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:f}}:{symbol:"square",style:{fill:f}}),isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return Object(s.ib)(h,(function(t,n){var r=x.h.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}var j=n(818),w=n(1450);var C=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(s.mb)(i);if(o&&a){var l=Object(s.yb)(i,o.field),u=l,f=Object(s.mb)(u),h=Math.floor(n*(f-1)),d=Math.floor(r*(f-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||Object(c.o)(e,h,d)})),t.getRootView().render(!0)}};function S(t){var e,n=t.options,r=n.geometryOptions,o=void 0===r?[]:r,a=n.xField,l=n.yField,u=Object(s.k)(o,(function(t){var e=t.geometry;return e===i.Line||void 0===e}));return Object(c.c)({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},e),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:m(l,n.yAxis),geometryOptions:[y(0,l[0],o[0]),y(0,l[1],o[1])],annotations:m(l,n.annotations)}})}function E(t){var e,n,r=t.chart,i=t.options.geometryOptions,o={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:"left-axes-view"},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:"right-axes-view"}].sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function M(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.geometryOptions,l=n.data,h=n.tooltip;return[Object(o.a)(Object(o.a)({},a[0]),{id:"left-axes-view",data:l[0],yField:i[0]}),Object(o.a)(Object(o.a)({},a[1]),{id:"right-axes-view",data:l[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,a=t.yField,l=v(t)&&t.isPercent,d=l?Object(u.c)(i,a,r,a):i,p=Object(f.a)(e,n).data(d),y=l?Object(o.a)({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},h):h;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,a=r.color,l=r.seriesField,u=r.groupField,f=r.isGroup,h=["xField","yField"];if(g(r)){Object(j.d)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{line:{color:r.color,style:r.lineStyle}})})),Object(j.e)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{point:r.point&&Object(o.a)({color:a,shape:"circle"},r.point)})}));var d=[];f&&d.push({type:"dodge",dodgeBy:u||l,customOffset:0}),i&&d.push({type:"stack"}),d.length&&Object(s.j)(n.geometries,(function(t){t.adjust(d)}))}v(r)&&Object(w.a)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{widthRatio:r.columnWidthRatio,interval:Object(o.a)(Object(o.a)({},Object(c.t)(r,["color"])),{style:r.columnStyle})})}))}({chart:p,options:{xField:r,yField:a,tooltip:y,geometryOption:t}})})),t}function k(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(s.j)(r,(function(t,e){var r=Object(f.a)(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var a=r.getGroupScales(),c=Object(s.s)(a,[0,"values","length"],1),l=i.slice(o,o+c).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=c}})),n.render(!0)})),t}function P(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,u=i.yField;return Object(l.g)(((e={})[s]=o,e[u[0]]=a[0],e))(Object(c.c)({},t,{chart:Object(f.a)(r,"left-axes-view")})),Object(l.g)(((n={})[s]=o,n[u[1]]=a[1],n))(Object(c.c)({},t,{chart:Object(f.a)(r,"right-axes-view")})),t}function A(t){var e=t.chart,n=t.options,i=Object(f.a)(e,"left-axes-view"),o=Object(f.a)(e,"right-axes-view"),a=n.xField,c=n.yField,s=n.xAxis,l=n.yAxis;return e.axis(a,!1),e.axis(c[0],!1),e.axis(c[1],!1),i.axis(a,s),i.axis(c[0],b(l[0],r.Left)),o.axis(a,!1),o.axis(c[1],b(l[1],r.Right)),t}function I(t){var e=t.chart,n=t.options.tooltip,r=Object(f.a)(e,"left-axes-view"),i=Object(f.a)(e,"right-axes-view");return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function F(t){var e=t.chart;return Object(l.c)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.c)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),t}function T(t){var e=t.chart,n=t.options.annotations,r=Object(s.s)(n,[0]),i=Object(s.s)(n,[1]);return Object(l.b)(r)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view"),options:{annotations:r}})),Object(l.b)(i)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view"),options:{annotations:i}})),t}function L(t){var e=t.chart;return Object(l.k)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.k)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),Object(l.k)(t),t}function N(t){var e=t.chart;return Object(l.a)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.a)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),t}function D(t){var e=t.chart,n=t.options.yAxis;return Object(l.e)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view"),options:{yAxis:n[0]}})),Object(l.e)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view"),options:{yAxis:n[1]}})),t}function B(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,l=Object(f.a)(e,"left-axes-view"),u=Object(f.a)(e,"right-axes-view");if(!1===r)e.legend(!1);else if(Object(s.O)(r)&&!0===r.custom)e.legend(r);else{var h=Object(s.s)(i,[0,"legend"],r),d=Object(s.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?O({view:l,geometryOption:i[0],yField:o[0],legend:h}):[],n=a[1].length?O({view:u,geometryOption:i[1],yField:o[1],legend:d}):[];e.legend(Object(c.c)({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&l.legend(i[0].seriesField,h),i[1].seriesField&&u.legend(i[1].seriesField,d),e.on("legend-item:click",(function(t){var n=Object(s.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,c=r.viewId;if(a){if(Object(s.n)(o,(function(t){return t===i}))>-1){var l=Object(s.s)(Object(f.a)(e,c),"geometries");Object(s.j)(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(s.s)(e.getController("legend"),"option.items",[]);Object(s.j)(e.views,(function(t){var n=t.getGroupScales();Object(s.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(s.m)(u,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function R(t){var e=t.chart,n=t.options.slider,r=Object(f.a)(e,"left-axes-view"),i=Object(f.a)(e,"right-axes-view");return n&&(r.option("slider",n),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,r=e.originValue;Object(s.H)(n,r)||C(i,n)})),e.once("afterpaint",(function(){if(!Object(s.D)(n)){var t=n.start,e=n.end;(t||e)&&C(i,[t,e])}}))),t}function _(t){return Object(c.f)(S,E,L,M,P,A,D,I,F,T,N,k,B,R)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(o.b)(e,t),e.prototype.getDefaultOptions=function(){return Object(c.c)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return _}}(a.b)},2303:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return D})),n.d(e,"Circle",(function(){return B})),n.d(e,"Base",(function(){return p}));var r={};n.r(r),n.d(r,"getDefault",(function(){return y})),n.d(r,"ellipsisHead",(function(){return m})),n.d(r,"ellipsisTail",(function(){return b})),n.d(r,"ellipsisMiddle",(function(){return x}));var i={};n.r(i),n.d(i,"getDefault",(function(){return E})),n.d(i,"reserveFirst",(function(){return M})),n.d(i,"reserveLast",(function(){return k})),n.d(i,"reserveBoth",(function(){return P})),n.d(i,"equidistance",(function(){return A})),n.d(i,"equidistanceWithReverseBoth",(function(){return I}));var o={};n.r(o),n.d(o,"getDefault",(function(){return T})),n.d(o,"fixedAngle",(function(){return L})),n.d(o,"unfixedAngle",(function(){return N}));var a={};n.r(a),n.d(a,"autoHide",(function(){return i})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return r}));var c=n(825),s=n(916),l=n(579),u=n(913),f=n(1139),h=n(2251),d=n(1004),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.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:d.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:d.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:d.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:d.a.textColor,fontFamily:d.a.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:d.a.textColor,textBaseline:"middle",fontFamily:d.a.fontFamily,textAlign:"center"},iconStyle:{fill:d.a.descriptionIconFill,stroke:d.a.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:d.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,r){t[r]&&n.push(r)})),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.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[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=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),Object(l.j)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var c=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:c,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o0){var n=Object(l.mb)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r===0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,o=r.offsetX,a=r.offsetY,c=r.rotate,s=r.formatter,u=this.getSidePoint(t.point,i),h=this.getSideVector(i,u),d=s?s(t.name,t,e):t.name,p=r.style;p=Object(l.I)(p)?Object(l.s)(this.get("theme"),["label","style"],{}):p;var g=Object(l.db)({x:u.x+o,y:u.y+a,text:d,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},p);return c&&(g.matrix=Object(f.e)(u,c)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(l.j)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),o=Object(l.s)(this.get("theme"),["label","style"],{}),a=this.get("label"),c=a.style,s=a.formatter;if(Object(l.I)(c)){var u=i.map((function(t){return Object(l.s)(t.get("delegateObject"),"tick")}));Object(l.j)(i,(function(t,e){var n=t.get("delegateObject").tick,r=s?s(n.name,n,e):n.name,i=Object(l.db)({},o,c(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,c=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var h=this.getTickPoint(u),d=this.getSidePoint(h,r||o+c/2),p=Object(l.db)({x:d.x,y:d.y,text:t.text},e),g=t.rotate,v=g;if(Object(l.K)(g)&&a){var y=this.getAxisVector(h);v=s.a.angleTo(y,[1,0],!0)}if(v){var m=Object(f.e)(d,v);p.matrix=m}return p},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),i=e.getBBox(),o=i.maxX,a=i.maxY,s=i.height,l=this.get("title").iconStyle,u=s/2,f=u/6,h=o+4,d=a-s/2,p=[h+u,d-u],g=p[0],v=p[1],y=[g+u,v+u],m=y[0],b=y[1],x=[g,b+u],O=x[0],j=x[1],w=[h,v+u],C=w[0],S=w[1],E=[h+u,d-s/4],M=E[0],k=E[1],P=[M,k+f],A=P[0],I=P[1],F=[A,I+f],T=F[0],L=F[1],N=[T,L+3*u/4],D=N[0],B=N[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(c.a)({path:[["M",g,v],["A",u,u,0,0,1,m,b],["A",u,u,0,0,1,O,j],["A",u,u,0,0,1,C,S],["A",u,u,0,0,1,g,v],["M",M,k],["L",A,I],["M",T,L],["L",D,B]],lineWidth:f,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:d-s/2,width:s,height:s,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Object(h.a)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),c=e.findById(a);if(c){var s=Object(h.a)(t,"tickLine",n);s&&c.attr(s)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var c=Object(h.a)(t,"label",n);c&&i.attr(c)}if(a){var s=Object(h.a)(t,"tickLine",n);s&&a.attr(s)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(u.a),g=n(1698);function v(t,e,n,r){var i=e.getChildren(),o=!1;return Object(l.j)(i,(function(e){var i=Object(g.a)(t,e,n,r);o=o||i})),o}function y(){return b}function m(t,e,n){return v(t,e,n,"head")}function b(t,e,n){return v(t,e,n,"tail")}function x(t,e,n){return v(t,e,n,"middle")}var O=n(918);function j(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(f.d)(t.attr("matrix")):0)%360}function w(t,e,n,r){var i=!1,o=j(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),c=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var s=Math.abs(Math.cos(o));i=Object(O.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}else{s=Math.abs(Math.sin(o));i=Object(O.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}return i}function C(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var c=o.length,s=o[0],l=1;l1){h=Math.ceil(h);for(var p=0;p2){var a=i[0],c=i[i.length-1];a.get("visible")||(a.show(),C(t,e,!1,r)&&(o=!0)),c.get("visible")||(c.show(),C(t,e,!0,r)&&(o=!0))}return o}function F(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Object(g.b)(i),a=!1;t?a=!!n&&o>n:a=o>Math.abs(i[1].attr("x")-i[0].attr("x"));a&&function(t,e){Object(l.j)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(f.e)({x:n,y:r},e);t.attr("matrix",i)}))}(i,r(n,o));return a}function T(){return L}function L(t,e,n,r){return F(t,e,n,(function(){return Object(l.M)(r)?r:t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate}))}function N(t,e,n){return F(t,e,n,(function(e,n){if(!e)return t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.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"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),c=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:c,width:a-i,height:c-o}},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.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=s.c.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return s.c.scale([0,0],i,t*r)},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(),r=this.isHorizontal();if(n||r){var i=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),c=i.offset,s=a,u=0,f=0;o&&(u=o.style.fontSize,f=o.spacing),s&&(s=s-c-f-u);var h=this.get("overlapOrder");if(Object(l.j)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,s)})),o&&Object(l.K)(o.offset)){var d=t.getCanvasBBox(),p=n?d.width:d.height;o.offset=c+p+f+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,r){var i=this,o=this.isVertical(),c=!1,s=a[t];if(!0===e){this.get("label");c=s.getDefault()(o,n,r)}else if(Object(l.I)(e))c=e(o,n,r);else if(Object(l.O)(e)){var u=e;s[u.type]&&(c=s[u.type](o,n,r,u.cfg))}else s[e]&&(c=s[e](o,n,r));if("autoRotate"===t){if(c){var f=n.getChildren(),h=this.get("verticalFactor");Object(l.j)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(l.j)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(p),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.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,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),c=[];if(Math.abs(a-o)===2*Math.PI)c=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var s=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,f=o>a?0:1;c=[["M",e,n],["L",s.x,s.y],["A",r,i,0,u,f,l.x,l.y],["L",e,n]]}return c},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),o=s.c.length(r);return s.c.scale(r,r,i*t/o),r},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"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,a=i,c=0,s=0;r&&(c=r.style.fontSize,s=r.spacing),a&&(a=a-o-s-c);var u=this.get("overlapOrder");if(Object(l.j)(u,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&Object(l.K)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+s+c/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,c=a[t];if(r>0)if(!0===e)o=c.getDefault()(!1,n,r);else if(Object(l.I)(e))o=e(!1,n,r);else if(Object(l.O)(e)){var s=e;c[s.type]&&(o=c[s.type](!1,n,r,s.cfg))}else c[e]&&(o=c[e](!1,n,r));if("autoRotate"===t){if(o){var u=n.getChildren(),f=this.get("verticalFactor");Object(l.j)(u,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);Object(l.j)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(p)},2304:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return h})),n.d(e,"Base",(function(){return u})),n.d(e,"Html",(function(){return v}));var r,i=n(825),o=n(918),a=n(579),c=n(913),s=n(1139),l=n(1004),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),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.a.fontFamily}},textBackground:{padding:5,style:{stroke:l.a.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!Object(a.K)(o)){var c=this.getTextPoint(),l=null;if(r){var u=this.getRotateAngle();l=Object(s.e)(c,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(i.a)(Object(i.a)(Object(i.a)({},c),{text:o,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(i.a)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),c=Object(o.c)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(i.a)({x:a.x-c[3],y:a.y-c[0],width:a.width+c[1]+c[3],height:a.height+c[0]+c[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(c.a),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),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return Object(o.f)(e,n,i,a)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(u),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),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,a=r.radius,c=r.startAngle,s=r.endAngle,l="start"===e?c:s,u=this.getRotateAngle()-Math.PI,f=Object(o.e)(i,a,l),h=Math.cos(u)*n,d=Math.sin(u)*n;return{x:f.x+h,y:f.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=null;if(i-r===2*Math.PI){var c=e.x,s=e.y;a=[["M",c,s-n],["A",n,n,0,1,1,c,s+n],["A",n,n,0,1,1,c,s-n],["Z"]]}else{var l=Object(o.e)(e,n,r),u=Object(o.e)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;a=[["M",l.x,l.y],["A",n,n,0,f,h,u.x,u.y]]}return a},e}(u),d=n(1185),p=n(1676),g=((r={})["g2-crosshair"]={position:"relative"},r["g2-crosshair-line"]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r["g2-crosshair-text"]={position:"absolute",color:l.a.textColor,fontFamily:l.a.fontFamily},r),v=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:"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:"g2-crosshair",defaultStyles:g,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(d.b)(e);t.appendChild(n),this.applyStyle("g2-crosshair-line",n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return Object(o.f)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=Object(a.pb)(this.get("textTpl"),t);e=Object(d.b)(i),r.appendChild(e),this.applyStyle("g2-crosshair-text",e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?Object(d.e)(t,{width:"1px",height:Object(o.l)(Math.abs(n.y-e.y))}):Object(d.e)(t,{height:"1px",width:Object(o.l)(Math.abs(n.x-e.x))}),Object(d.e)(t,{top:Object(o.l)(i),left:Object(o.l)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}Object(d.e)(t,{top:Object(o.l)(r.y),left:Object(o.l)(r.x)})}},e.prototype.updateInner=function(e){Object(a.y)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(p.a)},2305:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(825),i=n(579),o=n(913),a={opacity:0},c={stroke:"#C5C5C5",strokeOpacity:.85},s={fill:"#CACED4",opacity:.85},l=n(1411),u=n(1410);function f(t){return function(t){return Object(i.W)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function h(t,e,n,r){void 0===r&&(r=!0);var o=new u.b({values:t}),a=new u.a({values:Object(i.W)(t,(function(t,e){return e}))}),c=Object(i.W)(t,(function(t,r){return[a.scale(r)*e,n-o.scale(t)*n]}));return r?function(t){if(t.length<=2)return f(t);var e=[];Object(i.j)(t,(function(t){Object(i.H)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l.a)(e,!1),r=Object(i.z)(t),o=r[0],a=r[1];return n.unshift(["M",o,a]),n}(c):f(c)}function d(t,e,n,i){var o=Object(r.d)(t),a=function(t,e){var n=new u.b({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var p=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:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:c,areaStyle:s})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,a=e.smooth,c=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:i},s)});var f=h(o,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.a)({path:f},l)}),c){var p=d(f,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.a)({path:p},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),g={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},v=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:"handler",x:0,y:0,width:10,height:24,style:g})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,c=i.radius,s=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:c,opacity:s,cursor:l}});var u=1/3*n,f=2/3*n,h=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:h,x2:u,y2:d,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:d,stroke:a,cursor:l}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(o.a),y={fill:"#416180",opacity:.05},m={fill:"#5B8FF9",opacity:.15,cursor:"move"},b={width:10,height:24},x={textBaseline:"middle",fill:"#000",opacity:.45},O=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=Object(i.s)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.s)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var o=Object(i.s)(t,"touches.0.pageX",t.pageX),a=Object(i.s)(t,"touches.0.pageY",t.pageY),c=o-e.prevX,s=e.adjustOffsetRange(c/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit("sliderchange",[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(r.b)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),o=Object(i.c)(n,t,e),a=Object(i.c)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(i.C)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.c)(t[0],e.min,e.max),end:Object(i.c)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:y,foregroundStyle:m,handlerStyle:b,textStyle:x}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.a)({},e);Object(i.K)(n)||(a.start=Object(i.c)(n,0,1)),Object(i.K)(o)||(a.end=Object(i.c)(o,0,1)),t.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(i.c)(this.get("start"),0,1)),this.set("end",Object(i.c)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),o=e.height,a=e.trendCfg,c=void 0===a?{}:a,s=e.minText,l=e.maxText,u=e.backgroundStyle,f=void 0===u?{}:u,h=e.foregroundStyle,d=void 0===h?{}:h,y=e.textStyle,m=void 0===y?{}:y,b=Object(i.h)({},g,this.cfg.handlerStyle);Object(i.mb)(Object(i.s)(c,"data"))&&(this.trend=this.addComponent(t,Object(r.a)({component:p,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:o},f)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.a)({y:o/2,textAlign:"right",text:s,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.a)({y:o/2,textAlign:"left",text:l,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.a)({y:0,height:o},d)});var x=Object(i.s)(b,"width",10),O=Object(i.s)(b,"height",24);this.minHandler=this.addComponent(t,{component:v,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-O)/2,width:x,height:O,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:v,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-O)/2,width:x,height:O,cursor:"ew-resize",style:b})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,o=r.start,a=r.end,c=r.width,s=r.minText,l=r.maxText,u=r.handlerStyle,f=r.height,h=o*c,d=a*c;this.trend&&(this.trend.update({width:c,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",h),t.attr("width",d-h);var p=Object(i.s)(u,"width",10);e.attr("text",s),n.attr("text",l);var g=this._dodgeText([h,d],e,n),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:h-p/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.j)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.j)(y,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":i=0-n,o=1-r;return Math.min(o,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,o,a=this.cfg,c=a.handlerStyle,s=a.width,l=Object(i.s)(c,"width",10),u=t[0],f=t[1],h=!1;u>f&&(u=(r=[f,u])[0],f=r[1],e=(o=[n,e])[0],n=o[1],h=!0);var d=e.getBBox(),p=n.getBBox(),g=d.width>u-2?{x:u+l/2+2,textAlign:"left"}:{x:u-l/2-2,textAlign:"right"},v=p.width>s-f-2?{x:f-l/2-2,textAlign:"right"}:{x:f+l/2+2,textAlign:"left"};return h?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.a)},2306:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(618),s=n(818),l=n(1407),u={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function f(t,e){return function(t,e){var n=function(){var t=[256,256],e=p,n=v,r=g,i=y,o=m,a=j,c=Math.random,s=[],l=1/0,u=d,f=g,h=C,M={};function k(e,n,r){for(var i,o,s,l,u,f=n.x,h=n.y,d=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),g=c()<.5?1:-1,v=-g;(i=p(v+=g))&&(o=~~i[0],s=~~i[1],!(Math.min(Math.abs(o),Math.abs(s))>=d));)if(n.x=f+o,n.y=h+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!x(n,e,t[0]))&&(!r||(u=r,(l=n).x+l.x1>u[0].x&&l.x+l.x0u[0].y&&l.y+l.y0>5,b=t[0]>>5,O=n.x-(m<<4),j=127&O,w=32-j,C=n.y1-n.y0,S=void 0,E=(n.y+n.y0)*b+(O>>5),M=0;M>>j:0);E+=b}return delete n.sprite,!0}return!1}return M.start=function(){var a=t[0],d=t[1],p=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(h()),g=M.board?M.board:w((t[0]>>5)*t[1]),v=s.length,y=[],m=s.map((function(t,a,c){return t.text=u.call(this,t,a,c),t.font=e.call(this,t,a,c),t.style=f.call(this,t,a,c),t.weight=r.call(this,t,a,c),t.rotate=i.call(this,t,a,c),t.size=~~n.call(this,t,a,c),t.padding=o.call(this,t,a,c),t})).sort((function(t,e){return e.size-t.size})),x=-1,j=M.board?[{x:0,y:0},{x:a,y:d}]:null;return function(){var e=Date.now();for(;Date.now()-e>1,n.y=d*(c()+.5)>>1,b(p,n,m,x),n.hasText&&k(g,n,j)&&(y.push(n),j?M.hasImage||O(j,n):j=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}M._tags=y,M._bounds=j}(),M},M.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=w((r>>5)*i);n.width=r,n.height=i;var c=n.getContext("2d");c.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var s=c.getImageData(0,0,r,i).data,l=0;l>5),h=l*r+u<<2,d=s[h]>=250&&s[h+1]>=250&&s[h+2]>=250?1<<31-u%32:0;a[f]|=d}M.board=a,M.hasImage=!0}},M.timeInterval=function(t){l=null==t?1/0:t},M.words=function(t){s=t},M.size=function(e){t=[+e[0],+e[1]]},M.font=function(t){e=S(t)},M.fontWeight=function(t){r=S(t)},M.rotate=function(t){i=S(t)},M.spiral=function(t){a=E[t]||t},M.fontSize=function(t){n=S(t)},M.padding=function(t){o=S(t)},M.random=function(t){c=S(t)},M}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(o.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,a=i[0],c=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:a,y:c,opacity:0}),r}(t,e=Object(o.b)({},u,e))}var h=Math.PI/180;function d(t){return t.text}function p(){return"serif"}function g(){return"normal"}function v(t){return t.value}function y(){return 90*~~(2*Math.random())}function m(){return 1}function b(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,c=0,s=0,l=n.length;for(--r;++r>5<<5,f=~~Math.max(Math.abs(v+y),Math.abs(v-y))}else u=u+31>>5<<5;if(f>s&&(s=f),a+u>=2048&&(a=0,c+=s,s=0),c+f>=2048)break;i.translate((a+(u>>1))/o,(c+(f>>1))/o),e.rotate&&i.rotate(e.rotate*h),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=f,e.xoff=a,e.yoff=c,e.x1=u>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var b=i.getImageData(0,0,2048/o,2048/o).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var O=(u=e.width)>>5,j=(f=e.y1-e.y0,0);j>5),M=b[2048*(c+S)+(a+j)<<2]?1<<31-j%32:0;x[E]|=M,w|=M}w?C=S:(e.y0++,f--,S--,c++)}e.y1=e.y0+C,e.sprite=x.slice(0,(e.y1-e.y0)*O)}}}function x(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),c=127&a,s=32-c,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),f=0;f>>c:0))&e[u+h])return!0;u+=n}return!1}function O(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function j(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function w(t){for(var e=[],n=-1;++n0&&t.depth>s)return null;for(var v=t.data.name,y=Object(r.a)({},t);y.depth>1;)v=(null===(o=y.parent.data)||void 0===o?void 0:o.name)+" / "+v,y=y.parent;var m=Object(r.a)(Object(r.a)(Object(r.a)({},Object(l.t)(t.data,Object(r.d)(i||[],[c.field]))),((e={}).path=v,e["ancestor-node"]=y.data.name,e)),t);f&&(m[f]=t.data[f]||(null===(u=null===(a=t.parent)||void 0===a?void 0:a.data)||void 0===u?void 0:u[f])),n&&(m[n]=t.data[n]||(null===(p=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===p?void 0:p[n])),m.ext=c,m[d.b]={hierarchyConfig:c,colorField:n,rawFields:i},g.push(m)})),g}function x(t){var e,n=t.chart,i=t.options,o=i.color,s=i.colorField,u=void 0===s?"ancestor-node":s,h=i.sunburstStyle,d=i.rawFields,p=void 0===d?[]:d,g=b(i);return n.data(g),h&&(e=function(t){return Object(l.c)({},{fillOpacity:Math.pow(.85,t.depth)},Object(a.I)(h)?h(t):h)}),Object(c.f)(Object(l.c)({},t,{options:{xField:"x",yField:"y",seriesField:u,rawFields:Object(a.ub)(Object(r.d)(f,p)),polygon:{color:o,style:e}}})),t}function O(t){return t.chart.axis(!1),t}function j(t){var e=t.chart,n=t.options.label,i=Object(l.d)(e,"polygon");if(n){var o=n.fields,a=void 0===o?["name"]:o,c=n.callback,s=Object(r.c)(n,["fields","callback"]);i.label({fields:a,callback:c,cfg:Object(l.A)(s)})}else i.label(!1);return t}function w(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function C(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return Object(l.f)(Object(s.g)({},((e={}).value=Object(a.s)(i,Object(a.s)(r,["field"],"value")),e)))(t)}function S(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var i=n;Object(a.s)(n,"fields")||(i=Object(l.c)({},{customItems:function(t){return t.map((function(t){var n=Object(a.s)(e.getOptions(),"scales"),i=Object(a.s)(n,["path","formatter"],(function(t){return t})),o=Object(a.s)(n,["value","formatter"],(function(t){return t}));return Object(r.a)(Object(r.a)({},t),{name:i(t.data.path),value:o(t.data.value)})}))}},i)),e.tooltip(i)}return t}function E(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(l.c)({},t,{interactions:Object(r.d)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:b}}])}):t}function M(t){var e=t.chart,n=t.options,r=n.drilldown;return Object(s.c)({chart:e,options:E(n)}),(null===r||void 0===r?void 0:r.enabled)&&(e.appendPadding=Object(u.a)(e.appendPadding,Object(a.s)(r,["breadCrumb","position"]))),t}function k(t){return Object(l.f)(s.k,Object(s.f)("sunburstStyle"),x,O,C,s.d,w,S,j,M,s.a,Object(s.b)())(t)}n(2206),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return h},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return k},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD=o.b}(i.b)},2308:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(2193),c=n(800),s=n(618),l=n(1407),u=n(2289),f=n(1717),h=n(1683),d={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};var p=n(1714);function g(t){var e=t.data,n=t.hierarchyConfig,i=t.rawFields,a=void 0===i?[]:i,c=t.enableDrillDown,l=function(t,e){var n,r=(e=Object(o.b)({},d,e)).as;if(!Object(o.C)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=Object(h.e)(e)}catch(l){console.warn(l)}var i=function(t){return u.a().size(e.size).padding(e.padding)(f.c(t).sum((function(t){return t[n]})).sort(e.sort))}(t),a=r[0],c=r[1],s=r[2];return i.each((function(t){t[a]=t.x,t[c]=t.y,t[s]=t.r})),Object(h.d)(i)}(e,Object(r.a)(Object(r.a)({},n),{field:"value",as:["x","y","r"]})),g=[];return l.forEach((function(t){for(var e,i=t.data.name,o=Object(r.a)({},t);o.depth>1;)i=(null===(e=o.parent.data)||void 0===e?void 0:e.name)+" / "+i,o=o.parent;if(c&&t.depth>2)return null;var l=Object(s.c)({},t.data,Object(r.a)(Object(r.a)(Object(r.a)({},Object(s.t)(t.data,a)),{path:i}),t));l.ext=n,l[p.b]={hierarchyConfig:n,rawFields:a,enableDrillDown:c},g.push(l)})),g}function v(t,e,n){var r=Object(l.c)([t,e]),i=r[0],o=r[1],a=r[2],c=r[3],s=n.width-(c+o),u=n.height-(i+a),f=Math.min(s,u),h=(s-f)/2,d=(u-f)/2;return{finalPadding:[i+d,o+h,a+d,c+h],finalSize:f<0?0:f}}var y=["x","y","r","name","value","path","depth"],m={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}};function b(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(s.c)({options:{size:function(t){return t.r*n}}},t)}function x(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,a=e.appendPadding,c=e.drilldown,s=a;if(null===c||void 0===c?void 0:c.enabled){var u=Object(l.a)(n.appendPadding,Object(o.s)(c,["breadCrumb","position"]));s=Object(l.c)([u,a])}var f=v(i,s,r).finalPadding;return n.padding=f,n.appendPadding=0,t}function O(t){var e=t.chart,n=t.options,i=e.padding,o=e.appendPadding,c=n.color,l=n.colorField,u=n.pointStyle,f=n.hierarchyConfig,h=n.sizeField,d=n.rawFields,p=void 0===d?[]:d,m=n.drilldown,b=g({data:n.data,hierarchyConfig:f,enableDrillDown:null===m||void 0===m?void 0:m.enabled,rawFields:p});e.data(b);var x=v(i,o,e.viewBBox).finalSize,O=function(t){return t.r*x};return h&&(O=function(t){return t[h]*x}),Object(a.a)(Object(s.c)({},t,{options:{xField:"x",yField:"y",seriesField:l,sizeField:h,rawFields:Object(r.d)(y,p),point:{color:c,style:u,shape:"circle",size:O}}})),t}function j(t){return Object(s.f)(Object(c.g)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function w(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var i=n;Object(o.s)(n,"fields")||(i=Object(s.c)({},{customItems:function(t){return t.map((function(t){var n=Object(o.s)(e.getOptions(),"scales"),i=Object(o.s)(n,["name","formatter"],(function(t){return t})),a=Object(o.s)(n,["value","formatter"],(function(t){return t}));return Object(r.a)(Object(r.a)({},t),{name:i(t.data.name),value:a(t.data.value)})}))}},i)),e.tooltip(i)}return t}function C(t){return t.chart.axis(!1),t}function S(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(s.c)({},t,{interactions:Object(r.d)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:g,enableDrillDown:!0}}])}):t}function E(t){var e=t.chart,n=t.options;return Object(c.c)({chart:e,options:S(n)}),t}function M(t){return Object(s.f)(Object(c.f)("pointStyle"),b,x,c.k,j,O,C,c.d,w,E,c.a,Object(c.b)())(t)}n(2206),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return m},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return M},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(i.b)},2309:function(t,e,n){"use strict";n.d(e,"a",(function(){return T}));var r=n(579),i=n(800),o=n(1677),a=n(618),c=n(2269),s=n(613),l=n(1016),u=n(964),f=n(1409);function h(t,e,n){var i=n.yField,o=n.maxSize,a=n.minSize,c=Object(r.s)(Object(r.Z)(e,i),[i]),s=Object(r.M)(o)?o:1,l=Object(r.M)(a)?a:0;return Object(r.W)(t,(function(e,n){var o=(e[i]||0)/c;return e[f.d]=o,e[f.c]=(s-l)*o+l,e[f.b]=[Object(r.s)(t,[n-1,i]),e[i]],e}))}function d(t){return function(e){var n=e.chart,i=e.options.conversionTag,o=n.getOptions().data;if(i){var a=i.formatter;o.forEach((function(e,c){if(!(c<=0||Number.isNaN(e[f.c]))){var l=t(e,c,o,{top:!0,text:{content:Object(r.I)(a)?a(e,o):a,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(s.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(l)}}))}return e}}function p(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=h(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(o),t}function g(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,c=n.color,s=n.tooltip,h=n.label,d=n.shape,p=void 0===d?"funnel":d,g=n.funnelStyle,v=n.state,y=Object(l.a)(s,[i,o]),m=y.fields,b=y.formatter;return Object(u.a)({chart:e,options:{type:"interval",xField:i,yField:f.c,colorField:i,tooltipFields:Object(r.C)(m)&&m.concat([f.d,f.b]),mapping:{shape:p,tooltip:b,color:c,style:g},label:h,state:v}}),Object(a.d)(t.chart,"interval").adjust("symmetric"),t}function v(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function y(t){var e=t.options.maxSize;return d((function(t,n,r,i){var o=e-(e-t[f.c])/2;return Object(s.a)(Object(s.a)({},i),{start:[n-.5,o],end:[n-.5,o+.05]})}))(t),t}function m(t){return Object(a.f)(p,g,v,y)(t)}function b(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function x(t){var e=t.chart,n=t.options,i=n.data,o=n.xField,c=n.yField,s=n.color,d=n.compareField,p=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state,O=n.showFacetTitle;return e.facet("mirror",{fields:[d],transpose:!p,padding:p?0:[32,0,0,0],showTitle:O,eachView:function(t,e){var n=p?e.rowIndex:e.columnIndex;p||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var O=h(e.data,i,{yField:c,maxSize:v,minSize:y});t.data(O);var j=Object(l.a)(g,[o,c,d]),w=j.fields,C=j.formatter,S=p?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(u.a)({chart:t,options:{type:"interval",xField:o,yField:f.c,colorField:o,tooltipFields:Object(r.C)(w)&&w.concat([f.d,f.b]),mapping:{shape:"funnel",tooltip:C,color:s,style:b},label:!1!==m&&Object(a.c)({},S,m),state:x}})}}),t}function O(t){var e=t.chart,n=t.options,r=n.conversionTag,i=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){d((function(t,n,o,c){var s=0===e?-1:1;return Object(a.c)({},c,{start:[n-.5,t[f.c]],end:[n-.5,t[f.c]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?s*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(Object(a.c)({},{chart:t,options:n}))}))})),t}function j(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function w(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){m(Object(a.c)({},t,{chart:e,options:{data:n.data}}))}}),t}function C(t){var e=t.chart,n=t.options,i=n.data,o=void 0===i?[]:i,a=n.yField,c=Object(r.ib)(o,(function(t,e){return t+(e[a]||0)}),0),s=Object(r.Z)(o,a)[a],l=Object(r.W)(o,(function(t,e){var n=[],i=[];if(t[f.e]=(t[a]||0)/c,e){var l=o[e-1][f.f],u=o[e-1][f.g];n[0]=l[3],i[0]=u[3],n[1]=l[2],i[1]=u[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t[f.e],n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t[f.f]=n,t[f.g]=i,t[f.d]=(t[a]||0)/s,t[f.b]=[Object(r.s)(o,[e-1,a]),t[a]],t}));return e.data(l),t}function S(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,a=n.color,c=n.tooltip,s=n.label,h=n.funnelStyle,d=n.state,p=Object(l.a)(c,[i,o]),g=p.fields,v=p.formatter;return Object(u.a)({chart:e,options:{type:"polygon",xField:f.f,yField:f.g,colorField:i,tooltipFields:Object(r.C)(g)&&g.concat([f.d,f.b]),label:s,state:d,mapping:{tooltip:v,color:a,style:h}}}),t}function E(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function M(t){return d((function(t,e,n,r){return Object(s.a)(Object(s.a)({},r),{start:[t[f.f][1],t[f.g][1]],end:[t[f.f][1]+.05,t[f.g][1]]})}))(t),t}function k(t){var e,n=t.options,i=n.compareField,s=n.xField,l=n.yField,u=n.locale,h=n.funnelStyle,d=n.data,p=Object(o.a)(u),g={label:i?{fields:[s,l,i,f.d,f.b],formatter:function(t){return""+t[l]}}:{fields:[s,l,f.d,f.b],offset:0,position:"middle",formatter:function(t){return t[s]+" "+t[l]}},tooltip:{title:s,formatter:function(t){return{name:t[s],value:t[l]}}},conversionTag:{formatter:function(t){return p.get(["conversionTag","label"])+": "+c.a.apply(void 0,t[f.b])}}};return(i||h)&&(e=function(t){return Object(a.c)({},i&&{lineWidth:1,stroke:"#fff"},Object(r.I)(h)?h(t):h)}),Object(a.c)({options:g},t,{options:{funnelStyle:e,data:Object(r.e)(d)}})}function P(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?function(t){return Object(a.f)(j,w)(t)}(t):n?function(t){return Object(a.f)(b,x,O)(t)}(t):r?function(t){return Object(a.f)(C,S,E,M)(t)}(t):m(t)}function A(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,c=n.xField,s=n.yField;return Object(a.f)(Object(i.g)(((e={})[c]=r,e[s]=o,e)))(t)}function I(t){return t.chart.axis(!1),t}function F(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function T(t){return Object(a.f)(k,P,A,I,i.l,i.c,F,i.a,i.k,Object(i.b)())(t)}},2310:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(618),c=n(800),s=n(964),l=n(1016);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.type,c=n.xField,u=n.yField,f=n.colorField,h=n.sizeField,d=n.sizeRatio,p=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===i&&(m="heatmap");var b=Object(l.a)(v,[c,u,f]),x=b.fields,O=b.formatter,j=1;return(d||0===d)&&(p||h?d<0||d>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):j=d:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(s.a)(Object(a.c)({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:h||"",label:void 0,mapping:{tooltip:O,shape:p&&(h?function(t){var e=r.map((function(t){return t[h]})),n=Math.min.apply(Math,e),i=Math.max.apply(Math,e);return[p,(Object(o.s)(t,h)-n)/(i-n),j]}:function(){return[p,1,j]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,s=n.yField;return Object(a.f)(Object(c.g)(((e={})[o]=r,e[s]=i,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,c=!1!==r;return i&&e.legend(i,!!c&&r),o&&e.legend(o,void 0===a?r:a),c||a||e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.colorField,c=n.type,s=Object(a.d)(e,"density"===c?"heatmap":"polygon");if(i){if(o){var l=i.callback,u=Object(r.c)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(a.A)(u)})}}else s.label(!1);return t}function g(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}function v(t){return Object(a.f)(c.k,Object(c.f)("heatmapStyle"),f,g,u,h,d,c.l,p,Object(c.b)(),c.c,c.a,c.j)(t)}var y=Object(a.c)({},i.b.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}}),m=n(761);Object(m.p)("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,c=this.parsePoints(t.points),s=Math.abs(c[2].x-c[1].x),l=Math.abs(c[1].y-c[0].y),u=Math.min(s,l)/2,f=Number(t.shape[1]),h=Number(t.shape[2]),d=u*Math.sqrt(h)*Math.sqrt(f),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:Object(r.a)(Object(r.a)(Object(r.a)({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:p})})}}),Object(m.p)("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,c=this.parsePoints(t.points),s=Math.abs(c[2].x-c[1].x),l=Math.abs(c[1].y-c[0].y),u=Math.min(s,l),f=Number(t.shape[1]),h=Number(t.shape[2]),d=u*Math.sqrt(h)*Math.sqrt(f),p=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:Object(r.a)(Object(r.a)(Object(r.a)({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:p})})}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return y},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(i.b)},2311:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(818),s=n(618),l=n(1184),u=n(2464),f=n.n(u);function h(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");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 d(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function p(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),c=.5*Math.exp(2*a/3),s=.5*Math.sqrt(a*c*(i-c)/i);o-i/2<0&&(s*=-1),p(t,e,Math.max(n,Math.floor(e-o*c/i+s)),Math.min(r,Math.floor(e+(i-o)*c/i+s)))}var l=t[e],u=n,f=r;for(d(t,n,e),t[r]>l&&d(t,n,r);ul;)f--}t[n]===l?d(t,n,f):d(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function g(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r0?g:v},b=Object(l.c)({},t,{options:{xField:i,yField:u,seriesField:i,rawFields:[a,"$$diffField$$","$$isTotal$$",u],widthRatio:d,interval:{style:p,shape:"waterfall",color:m}}});return Object(c.c)(b).ext.geometry.customInfo({leaderLine:f}),t}function v(t){var e,n,r=t.options,i=r.xAxis,c=r.yAxis,s=r.xField,f=r.yField,h=r.meta,d=Object(l.c)({},{alias:f},Object(o.s)(h,f));return Object(l.f)(Object(a.g)(((e={})[s]=i,e[f]=c,e[u]=c,e),Object(l.c)({},h,((n={})[u]=d,n.$$diffField$$=d,n.$$absoluteField$$=d,n))))(t)}function y(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(u,!1)):(e.axis(a,i),e.axis(u,i)),t}function m(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,a=n.risingFill,c=n.fallingFill,u=n.locale,f=Object(s.a)(u);if(!1===r)e.legend(!1);else{var h=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:c}}}];i&&h.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Object(l.c)({},{r:5},Object(o.s)(i,"style"))}}),e.legend(Object(l.c)({},{custom:!0,position:"top",items:h},r)),e.removeInteraction("legend-filter")}return t}function b(t){var e=t.chart,n=t.options,i=n.label,o=n.labelMode,a=n.xField,c=Object(l.d)(e,"interval");if(i){var s=i.callback,u=Object(r.c)(i,["callback"]);c.label({fields:"absolute"===o?["$$absoluteField$$",a]:["$$diffField$$",a],callback:s,cfg:Object(l.A)(u)})}else c.label(!1);return t}function x(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.xField,a=n.yField;if(!1!==i){e.tooltip(Object(r.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var c=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?c.tooltip(o+"*"+a,i.formatter):c.tooltip(a)}else e.tooltip(!1);return t}function O(t){return Object(l.f)(p,a.k,g,v,y,m,x,b,a.j,a.c,a.a,Object(a.b)())(t)}Object(d.p)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,a=t.nextPoints,c=e.addGroup(),s=this.parsePath(function(t){for(var e=[],n=0;n0){var c=this.view.geometries[0],s=c.dataArray,l=a[0].name,u=[];return s.forEach((function(t){t.forEach((function(t){var e=p.h.getTooltipItems(t,c)[0];if(!i&&e&&e.name===l){var n=Object(g.K)(o)?l:o;u.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}else if(i&&e){n=Object(g.K)(o)?e.name||l:o;u.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}}))})),u}return[]},e}(p.g);Object(p.m)("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(p.a);Object(p.l)("radar-tooltip",y),Object(p.o)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(r.b)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.c)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return d}}(i.b)},2315:function(t,e,n){"use strict";var r,i=n(613),o=n(732),a=n(579),c=n(800),s=n(818),l=n(618),u=n(1184),f=Object(l.c)({},o.b.getDefaultOptions(),{meta:(r={},r.$$range$$={min:0,alias:"low-q1-median-q3-high"},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),h=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],c=e[3],s=e[4];n=Object(a.W)(t,(function(t){return t.$$range$$=[t[r],t[i],t[o],t[c],t[s]],t}))}return n};function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,c=n.color,u=n.tooltip,f=n.boxStyle;e.data(h(n.data,i));var d=Object(a.C)(i)?"$$range$$":i,p=i?Object(a.C)(i)?i:[i]:[],g=u;!1!==g&&(g=Object(l.c)({},{fields:Object(a.C)(i)?i:[]},g));var v=Object(s.g)(Object(l.c)({},t,{options:{xField:r,yField:d,seriesField:o,tooltip:g,rawFields:p,label:!1,schema:{shape:"box",color:c,style:f}}})).ext;return o&&v.geometry.adjust("dodge"),t}function p(t){var e=t.chart,n=t.options,r=n.xField,o=n.data,a=n.outliersField,c=n.outliersStyle,l=n.padding,u=n.label;if(!a)return t;var f=e.createView({padding:l,id:"outliers_view"}),h=o.reduce((function(t,e){return e[a].forEach((function(n){var r;return t.push(Object(i.a)(Object(i.a)({},e),((r={})[a]=n,r)))})),t}),[]);return f.data(h),Object(s.e)({chart:f,options:{xField:r,yField:a,point:{shape:"circle",style:c},label:u}}),f.axis(!1),t}function g(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,s=i.xField,f=i.yField,h=i.outliersField,d=Array.isArray(f)?"$$range$$":f,p={};if(h){(e={})[h]={sync:"$$y_outliers$$",nice:!0},e[d]={sync:"$$y_outliers$$",nice:!0},p=e}var g=Object(l.c)(p,o,((n={})[s]=Object(l.t)(a,u.a),n[d]=Object(l.t)(c,u.a),n));return r.scale(g),t}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=Array.isArray(a)?"$$range$$":a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis("$$range$$",!1):e.axis(c,i),t}function y(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}function m(t){return Object(l.f)(d,p,g,v,y,c.l,c.c,c.a,c.k)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(i.b)(e,t),e.getDefaultOptions=function(){return f},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(h(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return m}}(o.b)},2316:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(618),s=n(818);function l(t,e,n){return t.length>1?e+"_"+n:""+e}function u(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,c=[],s=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var s,l=0===o?r:a[o]-a[o-1];c.push(((s={rKey:i+"_"+o})[n]=n?t[n]:String(e),s[i]=l,s))}));var u=[t[r]].flat();u.forEach((function(i,o){var a;c.push(((a={mKey:l(u,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var f=[t[o]].flat();f.forEach((function(r,i){var a;c.push(((a={tKey:l(f,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),s.push(t[i],t[r],t[o])}));var u=Math.min.apply(Math,s.flat(1/0)),f=Math.max.apply(Math,s.flat(1/0));return u=u>0?0:u,"vertical"===a&&c.reverse(),{min:u,max:f,ds:c}}function f(t){var e=t.chart,n=t.options,i=n.bulletStyle,a=n.targetField,l=n.rangeField,f=n.measureField,h=n.xField,d=n.color,p=n.layout,g=n.size,v=n.label,y=u(n),m=y.min,b=y.max,x=y.ds;e.data(x);var O=Object(c.c)({},t,{options:{xField:h,yField:l,seriesField:"rKey",isStack:!0,label:Object(o.s)(v,"range"),interval:{color:Object(o.s)(d,"range"),style:Object(o.s)(i,"range"),size:Object(o.s)(g,"range")}}});Object(s.c)(O),e.geometries[0].tooltip(!1);var j=Object(c.c)({},t,{options:{xField:h,yField:f,seriesField:"mKey",isStack:!0,label:Object(o.s)(v,"measure"),interval:{color:Object(o.s)(d,"measure"),style:Object(o.s)(i,"measure"),size:Object(o.s)(g,"measure")}}});Object(s.c)(j);var w=Object(c.c)({},t,{options:{xField:h,yField:a,seriesField:"tKey",label:Object(o.s)(v,"target"),point:{color:Object(o.s)(d,"target"),style:Object(o.s)(i,"target"),size:Object(o.I)(Object(o.s)(g,"target"))?function(t){return Object(o.s)(g,"target")(t)/2}:Object(o.s)(g,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(s.e)(w),"horizontal"===p&&e.coordinate().transpose(),Object(r.a)(Object(r.a)({},t),{ext:{data:{min:m,max:b}}})}function h(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,s=r.yAxis,l=r.targetField,u=r.rangeField,f=r.measureField,h=r.xField,d=i.data;return Object(c.f)(Object(a.g)(((e={})[h]=o,e[f]=s,e),((n={})[f]={min:null===d||void 0===d?void 0:d.min,max:null===d||void 0===d?void 0:d.max,sync:!0},n[l]={sync:""+f},n[u]={sync:""+f},n)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,c=n.rangeField,s=n.targetField;return e.axis(""+c,!1),e.axis(""+s,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function p(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function g(t){var e=t.chart,n=t.options,i=n.label,a=n.measureField,s=n.targetField,l=n.rangeField,u=e.geometries,f=u[0],h=u[1],d=u[2];return Object(o.s)(i,"range")?f.label(""+l,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.range))):f.label(!1),Object(o.s)(i,"measure")?h.label(""+a,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.measure))):h.label(!1),Object(o.s)(i,"target")?d.label(""+s,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.target))):d.label(!1),t}function v(t){Object(c.f)(f,h,d,p,a.k,g,a.l,a.c,a.a)(t)}var y=Object(c.c)({},i.b.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t});var e=u(this.options),n=e.min,r=e.max,i=e.ds;h({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(i.b)},2317:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(800),a=n(618),c=n(818),s=n(1408);function l(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function u(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,s=n.colorField,l=n.type,u=n.xField,f=n.yField,h=n.data,d=Object(a.u)(h,f);e.data(d);var p=Object(a.c)({},t,{options:{tooltip:o,seriesField:s,interval:{style:r,color:i,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(c.c)(p),"line"===l&&Object(c.e)({chart:e,options:{xField:u,yField:f,seriesField:s,point:{shape:"circle",color:i}}}),t}function f(t){var e,n=t.options,i=n.yField,c=n.xField,s=n.data,u=n.isStack,f=n.isGroup,h=n.colorField,d=n.maxAngle,p=u&&!f&&h?function(t,e,n){var i=[];return t.forEach((function(t){var o=i.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:i.push(Object(r.a)({},t))})),i}(s,c,i):s,g=Object(a.u)(p,i);return Object(a.f)(Object(o.g)(((e={})[i]={min:0,max:l(d,i,g)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,c=Object(a.d)(e,"interval");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[o],callback:s,cfg:Object(r.a)(Object(r.a)({},Object(a.A)(l)),{type:"polar"})})}else c.label(!1);return t}function g(t){return Object(a.f)(Object(s.a)("barStyle"),u,f,d,h,o.c,o.a,o.k,o.l,o.d,Object(o.b)(),p)(t)}var v=Object(a.c)({},i.b.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t}),f({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return g}}(i.b)},2318:function(t,e,n){"use strict";var r=n(613),i=n(761),o=n(732),a=n(618),c=n(579),s=n(800),l=n(818);function u(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(c.w)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],f=void 0===u?[]:u;return i?[l.reverse(),f.reverse()]:[l,f]}function f(t){return"vertical"!==t}function h(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,c=t.__axisPosition,s=c.layout,l=c.position;if(f(s)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),f(s)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!f(s)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!f(s)&&"top"===l){u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function d(t){var e,n,r=t.chart,i=t.options,o=i.data,c=i.xField,s=i.yField,h=i.color,d=i.barStyle,p=i.widthRatio,g=i.legend,v=i.layout,y=u(c,s,"series-field-key",o,f(v));g?r.legend("series-field-key",g):!1===g&&r.legend(!1);var m=y[0],b=y[1];f(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().transpose(),e.data(m),n.data(b)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:"first-axes-view"}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y"),e.data(m),n.data(b));var x=Object(a.c)({},t,{chart:e,options:{widthRatio:p,xField:c,yField:s[0],seriesField:"series-field-key",interval:{color:h,style:d}}});Object(l.c)(x);var O=Object(a.c)({},t,{chart:n,options:{xField:c,yField:s[1],seriesField:"series-field-key",widthRatio:p,interval:{color:h,style:d}}});return Object(l.c)(O),t}function p(t){var e,n,r,i=t.options,o=t.chart,l=i.xAxis,u=i.yAxis,f=i.xField,h=i.yField,d=Object(a.e)(o,"first-axes-view"),p=Object(a.e)(o,"second-axes-view"),g={};return Object(c.T)((null===i||void 0===i?void 0:i.meta)||{}).map((function(t){Object(c.s)(null===i||void 0===i?void 0:i.meta,[t,"alias"])&&(g[t]=i.meta[t].alias)})),o.scale(((e={})["series-field-key"]={sync:!0,formatter:function(t){return Object(c.s)(g,t,t)}},e)),Object(s.g)(((n={})[f]=l,n[h[0]]=u[h[0]],n))(Object(a.c)({},t,{chart:d})),Object(s.g)(((r={})[f]=l,r[h[1]]=u[h[1]],r))(Object(a.c)({},t,{chart:p})),t}function g(t){var e=t.chart,n=t.options,i=n.xAxis,o=n.yAxis,c=n.xField,s=n.yField,l=n.layout,u=Object(a.e)(e,"first-axes-view"),h=Object(a.e)(e,"second-axes-view");return"bottom"===(null===i||void 0===i?void 0:i.position)?h.axis(c,Object(r.a)(Object(r.a)({},i),{label:{formatter:function(){return""}}})):h.axis(c,!1),!1===i?u.axis(c,!1):u.axis(c,Object(r.a)({position:f(l)?"top":"bottom"},i)),!1===o?(u.axis(s[0],!1),h.axis(s[1],!1)):(u.axis(s[0],o[s[0]]),h.axis(s[1],o[s[1]])),e.__axisPosition={position:u.getOptions().axes[c].position,layout:l},t}function v(t){var e=t.chart;return Object(s.c)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.c)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),t}function y(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Object(s.e)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view"),options:{yAxis:i[r[0]]}})),Object(s.e)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view"),options:{yAxis:i[r[1]]}})),t}function m(t){var e=t.chart;return Object(s.k)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.k)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),Object(s.k)(t),t}function b(t){var e=t.chart;return Object(s.a)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.a)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),t}function x(t){var e,n,i=this,o=t.chart,c=t.options,s=c.label,l=c.yField,u=c.layout,h=Object(a.e)(o,"first-axes-view"),d=Object(a.e)(o,"second-axes-view"),p=Object(a.d)(h,"interval"),g=Object(a.d)(d,"interval");if(s){var v=s.callback,y=Object(r.c)(s,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var m=Object(r.a)({},y);if(f(u)){var b=(null===(e=m.style)||void 0===e?void 0:e.textAlign)||("middle"===y.position?"center":"left");y.style=Object(a.c)({},y.style,{textAlign:b});m.style=Object(a.c)({},m.style,{textAlign:{left:"right",right:"left",center:"center"}[b]})}else{var x={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof y.position?y.position=x[y.position]:"function"===typeof y.position&&(y.position=function(){for(var t=[],e=0;e=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,c=r-1;c>=0;c--)a+=t[c].width+2*i;var s=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,f=n.maxY=u+o;n.x=[s,l,l,s],n.y=[u,u,f,f]}))}else{var c=1/n;t.forEach((function(t,n){t.x=(n+.5)*c,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(o.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],c=t[o];if(a&&c){var s=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-s)/a.value*a.width,f=u+l/a.value*a.width;r[i]-=l;var h=r[o],d=n.targetWeight(e),p=c.minX+(c.value-h)/c.value*c.width,g=p+d/c.value*c.width;r[o]-=d;var v=n.y;e.x=[u,f,p,g],e.y=[v,v,v,v],e.source=a,e.target=c}}))}else e.forEach((function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)}));return e}(r,a,n)}}var f={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(o.s)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function h(t){var e=t.options,n=e.data,i=e.sourceField,o=e.targetField,a=e.weightField,s=e.nodePaddingRatio,l=e.nodeWidthRatio,f=e.rawFields,h=void 0===f?[]:f,d=u({weight:!0,nodePaddingRatio:s,nodeWidthRatio:l},Object(c.z)(n,i,o,a)),p=d.nodes,g=d.links,v=p.map((function(t){return Object(r.a)(Object(r.a)({},Object(c.t)(t,Object(r.d)(["id","x","y","name"],h))),{isNode:!0})})),y=g.map((function(t){return Object(r.a)(Object(r.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(c.t)(t,Object(r.d)(["x","y","value"],h))),{isNode:!1})}));return Object(r.a)(Object(r.a)({},t),{ext:Object(r.a)(Object(r.a)({},t.ext),{chordData:{nodesData:v,edgesData:y}})})}function d(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function p(t){return t.chart.axis(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function y(t){return t.chart.coordinate("polar").reflect("y"),t}function m(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,c=e.createView();return c.data(r),Object(s.f)({chart:c,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function b(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(r);var c={xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o};return Object(s.b)({chart:a,options:c}),t}function x(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),Object(o.j)(Object(c.j)(e),(function(t){t.animate(n)})),t}function O(t){return Object(c.f)(a.k,h,y,d,p,g,v,b,m,a.c,a.j,x)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return f},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O}}(i.b)},2320:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(1184),s=n(618),l=n(2296),u=n(964);function f(t){var e=t.chart,n=t.options,i=n.type,a=n.data,f=n.fields,h=n.eachView,d=Object(o.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(a),e.facet(i,Object(r.a)(Object(r.a)({},d),{fields:f,eachView:function(t,e){var n=h(t,e);if(n.geometries)!function(t,e){var n=e.data,i=e.coordinate,a=e.interactions,l=e.annotations,f=e.animation,h=e.tooltip,d=e.axes,p=e.meta,g=e.geometries;n&&t.data(n);var v={};d&&Object(o.j)(d,(function(t,e){v[e]=Object(s.t)(t,c.a)})),v=Object(s.c)({},p,v),t.scale(v),i&&t.coordinate(i),!1===d?t.axis(!1):Object(o.j)(d,(function(e,n){t.axis(n,e)})),Object(o.j)(g,(function(e){var n=Object(u.a)({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(o.j)(a,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(o.j)(l,(function(e){t.annotation()[e.type](Object(r.a)({},e))})),"boolean"===typeof f?t.animate(!1):(t.animate(!0),Object(o.j)(t.geometries,(function(t){t.animate(f)}))),h?(t.interaction("tooltip"),t.tooltip(h)):!1===h&&t.removeInteraction("tooltip")}(t,n);else{var i=n,a=i.options;a.tooltip&&t.interaction("tooltip"),Object(l.a)(i.type,t,a)}}})),t}function h(t){var e=t.chart,n=t.options,i=n.axes,a=n.meta,l=n.tooltip,u=n.coordinate,f=n.theme,h=n.legend,d=n.interactions,p=n.annotations,g={};return i&&Object(o.j)(i,(function(t,e){g[e]=Object(s.t)(t,c.a)})),g=Object(s.c)({},a,g),e.scale(g),e.coordinate(u),i?Object(o.j)(i,(function(t,n){e.axis(n,t)})):e.axis(!1),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip"),e.legend(h),f&&e.theme(f),Object(o.j)(d,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(o.j)(p,(function(t){e.annotation()[t.type](Object(r.a)({},t))})),t}function d(t){return Object(s.f)(a.k,f,h)(t)}var p={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return p},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d}}(i.b)},2321:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(761),i=n(613),o=n(579),a=n(2274),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getActiveElements=function(){var t=r.h.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,i=t.item,o=n.get("field");if(o)return e.geometries[0].elements.filter((function(t){return t.getModel().data[o]===i.value}))}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter((function(t){return e.find((function(e){return Object(o.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,i){var o=n[i],c=e.geometry.coordinate;if(c.isPolar&&c.isTransposed){var s=r.h.getAngle(e.getModel(),c),l=(s.startAngle+s.endAngle)/2,u=t,f=u*Math.cos(l),h=u*Math.sin(l);e.shape.setMatrix(Object(a.a)([["t",f,h]])),o.setMatrix(Object(a.a)([["t",f,h]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(r.a),s=n(1711);var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,i=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var a=Object(o.s)(i,["data","data"]);if(i.type.match("legend-item")){var c=r.h.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(c&&l){var u=c.item;a=n.getData().find((function(t){return t[l]===u.value}))}}if(a){var f=Object(o.s)(t,"annotations",[]),h=Object(o.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(o.j)(f,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Object(s.b)(n,{statistic:h,plotType:"pie"},a),n.render(!0)}var d=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}(this.context);d&&d.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(o.j)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(r.a),u="pie-statistic";Object(r.l)(u,l),Object(r.o)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(r.l)("pie-legend",c),Object(r.o)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},2322:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return s})),n.d(e,"Line",(function(){return l}));var r=n(825),i=n(579),o=n(913),a=n(1004),c=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:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.a.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;Object(i.j)(r,(function(c,s){var l=c.id||s;if(n){var u=e.getPathStyle();u=Object(i.I)(u)?u(c,s,r):u;var f=e.getElementId("line-"+l),h=e.getGridPath(c.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:Object(i.db)({path:h},u)})}if(o&&s>0){var d=e.getElementId("region-"+l),p=s%2===0;if(Object(i.Q)(o))p&&e.drawAlternateRegion(d,t,a.points,c.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(d,t,a.points,c.points,g)}}a=c}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.a);var s=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),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),c=t[0],s=function(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}(a.x,a.y,c.x,c.y),l=e?0:1;r?(o.push(["M",a.x,a.y-s]),o.push(["A",s,s,0,0,l,a.x,a.y+s]),o.push(["A",s,s,0,0,l,a.x,a.y-s]),o.push(["Z"])):Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",s,s,0,0,l,t.x,t.y])}))}else Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),r&&o.push(["Z"]);return o},e}(c),l=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),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.j)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c)},2323:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return g})),n.d(e,"Continuous",(function(){return v})),n.d(e,"Base",(function(){return f}));var r=n(825),i=n(579),o=n(1698),a=n(1139),c=n(2251),s=n(1004),l=n(913),u=n(918),f=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:"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"),r=this.get("maxHeight"),i=e.width,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Object(u.b)(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},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(),i=Object(u.c)(e.padding),o=Object(r.a)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.a)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+i})},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),h={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s.a.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},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"===h?(v&&vx&&(x=e.width)})),O=x,x+=f,s&&(x=Math.min(s,x),O=Math.min(s,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,d+j);var S=Math.floor(this.pageHeight/(d+j));Object(i.j)(c,(function(t,e){0!==e&&e%S===0&&(m+=1,y.x+=x,y.y=o),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:d}}),y.y+=d+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+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"===a&&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,o){var a={x:0,y:0},c=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=Object(i.s)(o.marker,"style",{}),l=s.size,u=void 0===l?12:l,f=Object(r.c)(s,["size"]),h=this.drawArrow(c,a,"navigation-arrow-left","horizontal"===e?"up":"left",u,f);h.on("click",this.onNavigationBack);var d=h.getBBox();a.x+=d.width+2;var p=this.addShape(c,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.a)({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(i.s)(o.text,"style"))}).getBBox();return a.x+=p.width+2,this.drawArrow(c,a,"navigation-arrow-right","horizontal"===e?"down":"right",u,f).on("click",this.onNavigationAfter),c},e.prototype.updateNavigation=function(t){var e=Object(i.h)({},h,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,o=e.inactiveFill,a=e.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,s=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),u=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");s.attr("text",c),l.attr("opacity",1===this.currentPageIndex?a:r),l.attr("fill",1===this.currentPageIndex?o:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),u.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:r),u.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:n),u.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=l.getBBox().maxX+2;s.attr("x",f),f+=s.getBBox().width+2,this.updateArrowPath(u,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,c){var s=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.a)({size:o,direction:i,path:[["M",s+o/2,l],["L",s,l+o],["L",s+o,l+o],["Z"]],cursor:"pointer"},c)});return u.attr("matrix",Object(a.e)({x:s+o/2,y:l+o/2},p[i])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,c=i.direction,s=Object(a.e)({x:n+o/2,y:r+o/2},p[c]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return Object(a.f)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Object(i.j)(n,(function(e){var n=e.get("name").split("-")[2],i=Object(c.a)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(f),v=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),{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:s.a.textColor,textBaseline:"middle",fontFamily:s.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:s.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),r=e.getCurrentValue()[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 r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],c=e.getRange(),s=i-r;s<0?o[0]+s>c.min?e.setValue([o[0]+s,o[1]+s]):e.setValue([c.min,c.min+a]):s>0&&(s>0&&o[1]+so&&(l=o),l0&&this.changeRailLength(r,o,n[o]-u)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox(),u=c.height;this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+s.width+a,r.y),e.attr({x:r.x+s.width+c.width+2*a,y:r.y+u/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+c.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+c.height+a}),e.attr({x:r.x+c.width,y:r.y+c.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox();if(this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a),e.attr({x:r.x,y:r.y+s.height+c.height+2*a});else if("right"===o)t.attr({x:r.x+c.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+c.width+a,y:r.y+c.height});else{var u=Math.max(s.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),e.attr({x:r.x,y:r.y+c.height})}},e}(f)},2324:function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return d}));var r,i=n(825),o=n(1675),a=n(1185),c=n(579),s=n(1676),l=n(918),u=n(1710),f=n(1004),h=((r={})[""+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:f.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+u.TITLE_CLASS]={marginBottom:"4px"},r[""+u.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+u.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+u.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+u.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+u.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+u.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r);var d=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:"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:h})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),Object(a.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(a.e)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&Object(a.e)(n,{display:e}),r&&Object(a.e)(r,{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():(function(t,e){var n=!1;return Object(c.j)(e,(function(e){if(Object(c.y)(t,e))return n=!0,!1})),n}(e,["title","showTitle"])&&this.resetTitle(),Object(c.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"),r=this.get("offset"),i=this.getOffset(),o=i.offsetX,c=i.offsetY,s=this.get("position"),u=this.get("region"),f=this.getContainer(),h=this.getBBox(),d=h.width,p=h.height;u&&(t=Object(l.k)(u));var g=function(t,e,n,r,i,o,a){var c=function(t,e,n,r,i,o){var a=t,c=e;switch(o){case"left":a=t-r-n,c=e-i/2;break;case"right":a=t+n,c=e-i/2;break;case"top":a=t-r/2,c=e-i-n;break;case"bottom":a=t-r/2,c=e+n;break;default:a=t+n,c=e-i-n}return{x:a,y:c}}(t,e,n,r,i,o);if(a){var s=function(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}(c.x,c.y,r,i,a);"auto"===o?(s.right&&(c.x=Math.max(0,t-r-n)),s.top&&(c.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(s.left&&(c.x=a.x),s.right&&(c.x=a.x+a.width-r),"top"===o&&s.top&&(c.y=e+n),"bottom"===o&&s.bottom&&(c.y=e-i-n)):(s.top&&(c.y=a.y),s.bottom&&(c.y=a.y+a.height-i),"left"===o&&s.left&&(c.x=t+n),"right"===o&&s.right&&(c.x=t-r-n))}return c}(e,n,r,d,p,s,t);Object(a.e)(f,{left:Object(l.l)(g.x+o),top:Object(l.l)(g.y+c)}),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(c.F)(n)?n:Object(a.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");this.get("showTitle")&&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),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.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),r=this.get(t);"x"===t?Object(a.e)(n,{left:Object(l.l)(r),top:Object(l.l)(e.y),height:Object(l.l)(e.height)}):Object(a.e)(n,{top:Object(l.l)(r),left:Object(l.l)(e.x),width:Object(l.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=u[r],o=this.get(e),c=this.get("parent");return o||(o=Object(a.b)(this.get(n)),this.applyStyle(i,o),c.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(c.j)(t,(function(t){var r=o.a.toCSSGradient(t.color),s=Object(i.a)(Object(i.a)({},t),{color:r}),l=Object(c.pb)(e,s),u=Object(a.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}(s.a)},2325:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(618),c=n(800),s=n(818);function l(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.color;return e.data(r),Object(a.f)(s.c)(Object(a.c)({},t,{options:{marginRatio:1,interval:{style:i,color:o}}})),t}function u(t){var e=t.chart,n=t.options,i=n.label,c=n.xField,s=Object(a.d)(e,"interval");if(!1===i)s.label(!1);else if(Object(o.O)(i)){var l=i.callback,u=i.fields,f=Object(r.c)(i,["callback","fields"]),h=f.offset,d=f.layout;(void 0===h||h>=0)&&(d=d?Object(o.C)(d)?d:[d]:[],f.layout=Object(o.l)(d,(function(t){return"limit-in-shape"!==t.type})),f.layout.length||delete f.layout),s.label({fields:u||[c],callback:l,cfg:Object(a.A)(f)})}else Object(a.r)(a.a.WARN,null===i,"the label option must be an Object."),s.label({fields:[c]});return t}function f(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,s=n.yField;return Object(a.f)(Object(c.g)(((e={})[o]=r,e[s]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function g(t){Object(a.f)(Object(c.f)("sectorStyle"),l,d,u,h,p,f,c.l,c.c,c.a,c.k,Object(c.b)(),c.j)(t)}var v=Object(a.c)({},i.b.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return g}}(i.b)},2326:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(579),i=n(761),o=n(613),a=n(618),c={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}},s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(o.a)({name:"button"},c),e}return Object(o.b)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(r.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return Object(a.c)(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:Object(o.a)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=Object(a.s)(r.padding),c=t.addShape({type:"rect",name:"button-rect",attrs:Object(o.a)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return c.toBack(),t.on("mouseenter",(function(){var t;c.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;c.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),c},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.h.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},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}(i.a);function l(t){return t.isInPlot()}function u(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush:filter","brush:end",a+"-mask:end",a+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush-x:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush-x:filter","brush-x:end",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush-y:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush-y:filter","brush-y:end",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};default:return{}}}Object(i.l)("brush-reset-button",s,{name:"brush-reset-button"}),Object(i.o)("filter-action",{}),Object(i.o)("brush",u("brush")),Object(i.o)("brush-highlight",u("brush-highlight")),Object(i.o)("brush-x",u("brush-x","x-rect")),Object(i.o)("brush-y",u("brush-y","y-rect")),Object(i.o)("brush-x-highlight",u("brush-x-highlight","x-rect")),Object(i.o)("brush-y-highlight",u("brush-y-highlight","y-rect"));var f=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function h(t){var e=t.options,n=e.brush,i=Object(r.l)(e.interactions||[],(function(t){return-1===f.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(f.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var r={type:t,enable:e};n&&(r.cfg=u(t,n.type,n)),i.push(r)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&i.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(a.c)({},t,{options:{interactions:i}})}},2327: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 O}));var r=n(613),i=n(579),o=n(618),a=n(818),c=n(2326),s=n(800),l=n(2463),u={exp:l.regressionExp,linear:l.regressionLinear,loess:l.regressionLoess,log:l.regressionLog,poly:l.regressionPoly,pow:l.regressionPow,quad:l.regressionQuad};var f=function(t){var e,n=t.options,r=n.xField,a=n.yField,c=n.data,s=n.regressionLine,l=s.type,f=void 0===l?"linear":l,h=s.algorithm;h?e=Object(i.C)(h)?h:h(c):e=u[f]().x((function(t){return t[r]})).y((function(t){return t[a]}))(c);return function(t,e){var n=e.view,r=e.options,i=r.xField,a=r.yField,c=n.getScaleByField(i),s=n.getScaleByField(a),l=t.map((function(t){return n.getCoordinate().convert({x:c.scale(t[0]),y:s.scale(t[1])})}));return Object(o.m)(l,!1)}(e,t)};function h(t){var e=t.data,n=void 0===e?[]:e,a=t.xField,c=t.yField;if(n.length){for(var s=!0,l=!0,u=n[0],f=void 0,h=1;h0,h=u>0;function d(t,e){var n=Object(i.s)(o,[t]);function r(t){return Object(i.s)(n,t)}var a={};return"x"===e?(Object(i.M)(l)&&(Object(i.M)(r("min"))||(a.min=f?0:2*l),Object(i.M)(r("max"))||(a.max=f?2*l:0)),a):(Object(i.M)(u)&&(Object(i.M)(r("min"))||(a.min=h?0:2*u),Object(i.M)(r("max"))||(a.max=h?2*u:0)),a)}return Object(r.a)(Object(r.a)({},o),((e={})[a]=Object(r.a)(Object(r.a)({},o[a]),d(a,"x")),e[c]=Object(r.a)(Object(r.a)({},o[c]),d(c,"y")),e))}(t),d);return Object(o.c)({},t,{meta:p})}return t}function d(t){var e=t.chart,n=t.options,c=n.data,s=n.type,l=n.color,u=n.shape,f=n.pointStyle,h=n.shapeField,d=n.colorField,p=n.xField,g=n.yField,v=n.sizeField,y=n.size,m=n.tooltip;v&&(y||(y=[2,8]),Object(i.M)(y)&&(y=[y,y])),m&&!m.fields&&(m=Object(r.a)(Object(r.a)({},m),{fields:[p,g,d,v,h]})),e.data(c),Object(a.e)(Object(o.c)({},t,{options:{seriesField:d,point:{color:l,shape:u,size:y,style:f},tooltip:m}}));var b=Object(o.d)(e,"point");return s&&b.adjust(s),t}function p(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,c=n.yField,l=h(n);return Object(o.f)(Object(s.g)(((e={})[a]=r,e[c]=i,e)))(Object(o.c)({},t,{options:l}))}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,c=n.shapeLegend,s=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(c?e.legend(o,c):e.legend(o,!1!==c&&r)),a&&e.legend(a,s||!1),l||c||s||e.legend(!1),t}function y(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,c=Object(o.d)(e,"point");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[a],callback:s,cfg:Object(o.A)(l)})}else c.label(!1);return t}function m(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,a=void 0===i?0:i,c=e.yBaseline,l=void 0===c?0:c,u=e.labels,f=e.regionStyle,h=e.lineStyle,d=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(a,l);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(r.a)(Object(r.a)({type:"region",top:!1},d.regionStyle[e].position),{style:Object(o.c)({},d.regionStyle[e].style,null===f||void 0===f?void 0:f[e])}),Object(r.a)({type:"text",top:!0},Object(o.c)({},d.labelStyle[e],null===u||void 0===u?void 0:u[e])))})),n.push({type:"line",top:!1,start:["min",l],end:["max",l],style:Object(o.c)({},d.lineStyle,h)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:Object(o.c)({},d.lineStyle,h)})}return Object(o.f)(Object(s.b)(n))(t)}function b(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var o=i.style,a=i.top,c=void 0!==a&&a,s={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:c,render:function(t,i){var a=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),c=f({view:i,options:e});a.addShape("path",{name:"regression-line",attrs:Object(r.a)(Object(r.a)({path:c},s),o)})}})}return t}function x(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function O(t){return Object(o.f)(d,p,g,v,x,y,c.a,s.i,s.h,s.c,m,s.a,s.k,b)(t)}},2328:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(825),i=n(1185),o=n(579),a=n(913),c={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}},s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.fb,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.s)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.s)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(i.a)(t,"touchmove",e.onMouseMove),Object(i.a)(t,"touchend",e.onMouseUp),Object(i.a)(t,"touchcancel",e.onMouseUp)]:[Object(i.a)(t,"mousemove",e.onMouseMove),Object(i.a)(t,"mouseup",e.onMouseUp),Object(i.a)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?Object(o.s)(t,"touches.0.clientX"):t.clientX,c=e.isMobile?Object(o.s)(t,"touches.0.clientY"):t.clientY,s=r?a:c,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,c=e.getContainerDOM().getBoundingClientRect(),s=t.clientX,l=t.clientY,u=r?s-c.left-i-a/2:l-c.top-o-a/2,f=e.validateRange(u);e.updateThumbOffset(f)},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(r.b)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.c)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(o.c)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.c)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.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,r=e.theme,i=void 0===r?{default:{}}:r,a=Object(o.h)({},c,i).default,s=a.lineCap,l=a.trackColor,u=a.size,f=Object(o.s)(this.cfg,"size",u),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:l,lineCap:s}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:l,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=Object(o.h)({},c,i).default,s=a.size,l=a.lineCap,u=a.thumbColor,f=Object(o.s)(this.cfg,"size",s),h=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+r-f/2,lineWidth:f,stroke:u,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=0)r=l+this.getIntervalOnlyOffset(n,e);else if(!i.K(s)&&i.K(c)&&s>=0){r=l+this.getDodgeOnlyOffset(n,e)}else if(!i.K(c)&&!i.K(s)&&c>=0&&s>=0){r=l+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*o/n,d=a*h;r=(l+u)/2+(.5*(f-n*h-(n-1)*d)+((e+1)*h+e*d)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,f=n.columnWidthRatio,h=o/a,d=(1-(c-1)*h)/c*s/(t-1),p=((1-h*(c-1))/c-d*(t-1))/t;if(p=i.K(f)?p:1/c/t*f,!i.K(l)){var g=l/a;p=Math.min(p,g)}if(!i.K(u)){var v=u/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*(d=((1-(c-1)*h)/c-t*p)/(t-1))+.5*h)*c-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,f=n.columnWidthRatio,h=o/a,d=1*s/(c-1),p=((1-d*(c-1))/c-h*(t-1))/t;if(p=f?1/c/t*f:p,!i.K(l)){var g=l/a;p=Math.min(p,g)}if(!i.K(u)){var v=u/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*h+.5*(d=(1-(p*t+h*(t-1))*c)/(c-1)))*c-d/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,o=this.groupNum,a=n/i,c=r/i;return((.5+e)*(((1-a*(o-1))/o-c*(t-1))/t)+e*c+.5*a)*o-a/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.j(e,(function(e,n){var o=i.yb(e,t);o.length||o.push(0),i.j(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(1183).a);e.a=a},2452:function(t,e,n){"use strict";var r=n(784),i=n(579),o=n(2188);var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.j(o,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.c;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.j(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(1183).a);e.a=a},2453:function(t,e,n){"use strict";var r=n(784),i=n(579),o=n(1183),a=i.a,c=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,c=e.size,s=void 0===c?10:c,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=s,n.reverseOrder=u,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,o=this.reverseOrder?this.reverse(t):t,c=new a,s=new a;return o.map((function(t){return t.map((function(t){var o,a=i.s(t,e,0),l=i.s(t,[n]),u=a.toString();if(l=i.C(l)?l[1]:l,!i.K(l)){var f=l>=0?c:s;f.has(u)||f.set(u,0);var h=f.get(u),d=l+h;return f.set(u,d),Object(r.a)(Object(r.a)({},t),((o={})[n]=[h,d],o))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,i=this.height,o=this.reverseOrder,c=o?this.reverse(t):t,s=new a;return c.map((function(t){return t.map((function(t){var o,a=e.size,c=t[n],l=2*a/i;s.has(c)||s.set(c,l/2);var u=s.get(c);return s.set(c,u+l),Object(r.a)(Object(r.a)({},t),((o={}).y=u,o))}))}))},e}(o.a);e.a=c},2454:function(t,e,n){"use strict";var r=n(784),i=n(579),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.q(t),n=this.xField,o=this.yField,a=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(a).map((function(t){return a[t]})));return i.W(t,(function(t){return i.W(t,(function(t){var e,s,l=t[o],u=t[n];if(i.C(l)){var f=(c-a[u])/2;return Object(r.a)(Object(r.a)({},t),((e={})[o]=i.W(l,(function(t){return f+t})),e))}var h=(c-l)/2;return Object(r.a)(Object(r.a)({},t),((s={})[o]=[h,l+h],s))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,o=i.w(t,(function(t){return t[n]}));return i.X(o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.W(t,(function(t){return i.s(t,e,[])})),r=i.q(n);return Math.max.apply(Math,r)},e}(n(1183).a);e.a=o},2455:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},2456:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}}},2457:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(2458);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)};e.ver="1.0.1"},2458:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var r,i=(r=n(2459))&&r.__esModule?r:{default:r},o=n(2460),a=n(2255);var c={};e.getSensor=function(t){var e=t.getAttribute(a.SizeSensorId);if(e&&c[e])return c[e];var n=(0,i.default)();t.setAttribute(a.SizeSensorId,n);var r=(0,o.createSensor)(t);return c[n]=r,r};e.removeSensor=function(t){var e=t.element.getAttribute(a.SizeSensorId);t.element.removeAttribute(a.SizeSensorId),t.destroy(),e&&c[e]&&delete c[e]}},2459:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1;e.default=function(){return"".concat(r++)}},2460:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(2461),i=n(2462),o="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},2461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(2254))&&r.__esModule?r:{default:r},o=n(2255);e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),a=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=void 0,n=[])};return{element:t,bind:function(i){e||(e=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",r),r()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",o.SensorClassName),e.setAttribute("tabindex",o.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===n.indexOf(i)&&n.push(i)},destroy:a,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&a()}}}},2462:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(2254))&&r.__esModule?r:{default:r};e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),o=function(){e.disconnect(),n=[],e=void 0};return{element:t,bind:function(i){e||(e=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e}()),-1===n.indexOf(i)&&n.push(i)},destroy:o,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}}},2463:function(t,e,n){!function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,c=t.length,s=new Float64Array(c),l=new Float64Array(c),u=0,f=0,h=0;hi&&(t.splice(a+1,0,h),r=!0)}return r}}function c(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function s(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var s=0,l=0,u=0,f=0,h=0,d=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++s,l+=(e-l)/s,u+=(n-u)/s,f+=(e*n-f)/s,h+=(e*e-h)/s,t||(ep&&(p=e))}));var g=e(c(l,u,f,h),2),v=g[0],y=g[1],m=function(t){return y*t+v},b=[[d,m(d)],[p,m(p)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=i(a,n,o,u,m),b}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(o=t,a):o},a}function l(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function u(t){return(t=1-t*t*t)*t*t}function f(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function h(){var t,o=function(t){return t[0]},c=function(t){return t[1]};function s(s){var l,u,f,h,d=e(n(s,o,c),4),p=d[0],g=d[1],v=d[2],y=d[3],m=p.length,b=0,x=0,O=0,j=0,w=0;for(l=0;lM&&(M=e))}));var k=O-b*b,P=b*k-x*x,A=(w*b-j*x)/P,I=(j*k-w*x)/P,F=-A*b,T=function(t){return A*(t-=v)*t+I*t+F+y},L=a(E,M,T);return L.a=A,L.b=I-2*A*v,L.c=F-I*v+A*v*v+y,L.predict=T,L.rSquared=i(s,o,c,C,T),L}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(o=t,s):o},s.y=function(t){return arguments.length?(c=t,s):c},s}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function s(s){var l=0,u=0,f=0,h=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(s,n,o,(function(e,n){var r=Math.log(n),i=e*n;++l,u+=(n-u)/l,h+=(i-h)/l,p+=(e*i-p)/l,f+=(n*r-f)/l,d+=(i*r-d)/l,t||(ev&&(v=e))}));var y=e(c(h/u,f/u,d/u,p/u),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},O=a(g,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=i(s,n,o,u,x),O}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(n=t,s):n},s.y=function(t){return arguments.length?(o=t,s):o},s},t.regressionLinear=s,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function o(o){for(var a=e(n(o,t,r,!0),4),s=a[0],h=a[1],d=a[2],p=a[3],g=s.length,v=Math.max(2,~~(i*g)),y=new Float64Array(g),m=new Float64Array(g),b=new Float64Array(g).fill(1),x=-1;++x<=2;){for(var O=[0,v-1],j=0;js[S]-w?C:S,M=0,k=0,P=0,A=0,I=0,F=1/Math.abs(s[E]-w||1),T=C;T<=S;++T){var L=s[T],N=h[T],D=u(Math.abs(w-L)*F)*b[T],B=L*D;M+=D,k+=B,P+=N*D,A+=N*B,I+=L*B}var R=e(c(k/M,P/M,A/M,I/M),2),_=R[0],z=R[1];y[j]=_+z*w,m[j]=Math.abs(h[j]-y[j]),f(s,j+1,O)}if(2===x)break;var V=l(m);if(Math.abs(V)<1e-12)break;for(var H,K,Y=0;Y=1?1e-12:(K=1-H*H)*K}return function(t,e,n,r){for(var i,o=t.length,a=[],c=0,s=0,l=[];cv&&(v=e))}));var m=e(c(f,h,d,p),2),b=m[0],x=m[1],O=function(t){return x*Math.log(t)/y+b},j=a(g,v,O);return j.a=x,j.b=b,j.predict=O,j.rSquared=i(l,n,o,h,O),j}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(o=t,l):o},l.base=function(t){return arguments.length?(s=t,l):s},l},t.regressionPoly=function(){var t,o=function(t){return t[0]},c=function(t){return t[1]},l=3;function u(u){if(1===l){var f=s().x(o).y(c).domain(t)(u);return f.coefficients=[f.b,f.a],delete f.a,delete f.b,f}if(2===l){var d=h().x(o).y(c).domain(t)(u);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var p,g,v,y,m,b=e(n(u,o,c),4),x=b[0],O=b[1],j=b[2],w=b[3],C=x.length,S=[],E=[],M=l+1,k=0,P=0,A=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(r(u,o,c,(function(e,n){++P,k+=(n-k)/P,t||(eI&&(I=e))})),p=0;pMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r=0;--i)for(a=e[i],c=1,s[i]+=a,o=1;o<=i;++o)c*=(i+1-o)/o,s[i-o]+=a*Math.pow(n,o)*c;return s[0]+=r,s}(M,F,-j,w),L.predict=T,L.rSquared=i(u,o,c,k,T),L}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(c=t,u):c},u.order=function(t){return arguments.length?(l=t,u):l},u},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function s(s){var l=0,u=0,f=0,h=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(s,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++l,u+=(r-u)/l,f+=(i-f)/l,h+=(r*i-h)/l,d+=(r*r-d)/l,p+=(n-p)/l,t||(ev&&(v=e))}));var y=e(c(u,f,h,d),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},O=a(g,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=i(s,n,o,p,x),O}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(n=t,s):n},s.y=function(t){return arguments.length?(o=t,s):o},s},t.regressionQuad=h,Object.defineProperty(t,"__esModule",{value:!0})}(e)},2464:function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,o=n(2465);function a(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=o.isNumber(e.width)?e.width:2,a=o.isNumber(e.size)?e.size:50,c=o.isNumber(e.min)?e.min:(n=!0,o.findMinMulti(t)),s=o.isNumber(e.max)?e.max:(r=!0,o.findMaxMulti(t)),l=(s-c)/(a-1);return n&&(c-=2*i*l),r&&(s+=2*i*l),{min:c,max:s}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=o.isNumber(e.size)?e.size:50,r=o.isNumber(e.width)?e.width:2,c=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),s=c.min,l=c.max-s,u=l/(n-1);if(0===l)return[{x:s,y:1}];for(var f=[],h=0;h=f.length)){var n=Math.max(e-r,0),i=e,a=Math.min(e+r,f.length-1),c=n-(e-r),l=e+r-a,h=d[-r-1+c]||0,y=d[-r-1+l]||0,m=p/(p-h-y);c>0&&(v+=m*(c-1)*g);var b=Math.max(0,e-r+1);o.inside(0,f.length-1,b)&&(f[b].y+=1*m*g),o.inside(0,f.length-1,i+1)&&(f[i+1].y-=2*m*g),o.inside(0,f.length-1,a+1)&&(f[a+1].y+=1*m*g)}}));var y=v,m=0,b=0;return f.forEach((function(t){m+=t.y,y+=m,t.y=y,b+=y})),b>0&&f.forEach((function(t){t.y/=b})),f},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/r,Math.pow(2,e)}}},2465:function(t,e,n){"use strict";var r=t.exports;t.exports.isNumber=function(t){return"number"===typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n=18&&(r=h.createRoot)}catch(G){}function g(t){var e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===typeof e&&(e.usingClientEntryPoint=t)}var v="__rc_react_root__";function y(t,e){r?function(t,e){g(!0);var n=e[v]||r(e);g(!1),n.render(t),e[v]=n}(t,e):function(t,e){p(t,e)}(t,e)}var m=function(t,e){var n=document.createElement("div");return"tooltip"===e&&(n.className="g2-tooltip"),y(t,n),n},b=function(t,e){return{}.toString.call(t)==="[object ".concat(e,"]")},x=function t(e){return e&&"object"===typeof e?(Array.isArray(e)?n=e.map((function(e){return t(e)})):(n={},Object.keys(e).forEach((function(r){return n[r]=t(e[r])}))),n):e;var n},O=function(t,e){for(var n=t,r=0;r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}var Y=localStorage.getItem("token");"Bearer ".concat(Y),e.default=function(){var t=localStorage.getItem("token"),e={headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}},n=Object(a.useState)([]),r=Object(o.a)(n,2),s=r[0],l=r[1],u=function(){var t=Object(i.a)(K().mark((function t(){var n,r;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="".concat(L.R,"/api/project/list"),t.next=3,D.a.get(n,e).then((function(t){return t})).catch((function(t){return t.response}));case 3:200!==(r=t.sent).data.code&&z.NotificationManager.error("Belum ada data proyek!","Failed"),console.log("res ",r.data.data),l(r.data.data);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=[{title:"Project",dataIndex:"nama",key:"nama",render:function(t){return c.a.createElement("a",null,t)}},{title:"Planned Interval",dataIndex:"plannedInterval",key:"plannedInterval"},{title:"Planned Cost",dataIndex:"plannedCost",key:"plannedCost",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Actual Cost",dataIndex:"actualCost",key:"actualCost",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Cost Variance",dataIndex:"costVariance",key:"costVariance",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Cost Health",dataIndex:"costHealth",key:"costHealth",render:function(t){return"on-budget"==t?c.a.createElement(H.a,{color:"success"},"On Budget"):"warning"==t?c.a.createElement(H.a,{color:"warning"},"Warning"):c.a.createElement(H.a,{color:"danger"},"Danger")}},{title:"Progress",dataIndex:"progress",key:"progress"}];return Object(a.useEffect)((function(){u()}),[]),c.a.createElement(c.a.Fragment,null,c.a.createElement(B.a,{gutter:[16,16]},c.a.createElement(R.a,{span:24},c.a.createElement(_.default,{columns:f,dataSource:s}))))}},578:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(2),i=r.isValidElement;function o(t,e,n){return i(t)?r.cloneElement(t,"function"===typeof n?n(t.props||{}):n):e}function a(t,e){return o(t,t,e)}},579:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"A",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"u",(function(){return C})),n.d(e,"ib",(function(){return k})),n.d(e,"jb",(function(){return P})),n.d(e,"ob",(function(){return I})),n.d(e,"ub",(function(){return F})),n.d(e,"yb",(function(){return T})),n.d(e,"z",(function(){return L})),n.d(e,"U",(function(){return N})),n.d(e,"l",(function(){return o})),n.d(e,"k",(function(){return D})),n.d(e,"nb",(function(){return B})),n.d(e,"v",(function(){return V})),n.d(e,"w",(function(){return _})),n.d(e,"x",(function(){return z})),n.d(e,"c",(function(){return H})),n.d(e,"p",(function(){return K})),n.d(e,"N",(function(){return G})),n.d(e,"Y",(function(){return j})),n.d(e,"Z",(function(){return W})),n.d(e,"bb",(function(){return w})),n.d(e,"cb",(function(){return X})),n.d(e,"eb",(function(){return q})),n.d(e,"sb",(function(){return $})),n.d(e,"r",(function(){return Z})),n.d(e,"y",(function(){return Q})),n.d(e,"T",(function(){return p})),n.d(e,"J",(function(){return g})),n.d(e,"xb",(function(){return J})),n.d(e,"V",(function(){return et})),n.d(e,"pb",(function(){return nt})),n.d(e,"wb",(function(){return rt})),n.d(e,"C",(function(){return f})),n.d(e,"D",(function(){return at})),n.d(e,"E",(function(){return ct})),n.d(e,"I",(function(){return l})),n.d(e,"K",(function(){return u})),n.d(e,"L",(function(){return st})),n.d(e,"M",(function(){return Y})),n.d(e,"O",(function(){return h})),n.d(e,"P",(function(){return y})),n.d(e,"Q",(function(){return A})),n.d(e,"R",(function(){return s})),n.d(e,"S",(function(){return ft})),n.d(e,"F",(function(){return ht})),n.d(e,"kb",(function(){return dt})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return yt})),n.d(e,"g",(function(){return mt})),n.d(e,"ab",(function(){return bt})),n.d(e,"h",(function(){return Ot})),n.d(e,"j",(function(){return d})),n.d(e,"B",(function(){return jt})),n.d(e,"G",(function(){return Ct})),n.d(e,"H",(function(){return St})),n.d(e,"W",(function(){return Et})),n.d(e,"X",(function(){return kt})),n.d(e,"db",(function(){return vt})),n.d(e,"b",(function(){return vt})),n.d(e,"s",(function(){return Pt})),n.d(e,"lb",(function(){return At})),n.d(e,"hb",(function(){return Ft})),n.d(e,"gb",(function(){return Tt})),n.d(e,"qb",(function(){return Lt})),n.d(e,"rb",(function(){return Nt})),n.d(e,"tb",(function(){return tt})),n.d(e,"vb",(function(){return Bt})),n.d(e,"fb",(function(){return Rt})),n.d(e,"mb",(function(){return _t})),n.d(e,"t",(function(){return Ht})),n.d(e,"a",(function(){return Kt}));var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;ie[i])return 1;if(t[i]n?n:t},K=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},Y=function(t){return s(t,"Number")};Number.isInteger&&Number.isInteger;function G(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)r&&(n=o,r=a)}return n}},X=function(t,e){if(f(t)){for(var n,r=1/0,i=0;ie?(r&&(clearTimeout(r),r=null),c=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return l.cancel=function(){clearTimeout(r),c=0,r=i=o=null},l},Nt=function(t){return r(t)?Array.prototype.slice.call(t):[]},Dt={},Bt=function(t){return Dt[t=t||"g"]?Dt[t]+=1:Dt[t]=1,t+Dt[t]},Rt=function(){};function _t(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}Object.create;var zt;Object.create;var Vt=bt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return zt||(zt=document.createElement("canvas").getContext("2d")),zt.font=[o,a,i,n+"px",r].join(" "),zt.measureText(A(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),function(){for(var t=0,e=0,n=arguments.length;es&&o>s);)if(l.push(i),s-=o,!(c=c.substr(16)))return l.join("");for(;i=c.substr(0,1),!((o=Vt(i,n))+a>s);)if(l.push(i),s-=o,!(c=c.substr(1)))return l.join("");return""+l.join("")+r},Kt=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}()},583:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return h}));var r=n(23),i=n(650),o=n(575),a=n(2),c=a.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=a.createContext(null),l=function(t){var e=Object(o.a)(t,["prefixCls"]);return a.createElement(i.c,Object(r.a)({},e))},u=a.createContext({prefixCls:""}),f=a.createContext({}),h=function(t){var e=t.children,n=t.status,i=t.override,o=Object(a.useContext)(f),c=Object(a.useMemo)((function(){var t=Object(r.a)({},o);return i&&delete t.isFormItemInput,n&&(delete t.status,delete t.hasFeedback,delete t.feedbackIcon),t}),[n,i,o]);return a.createElement(f.Provider,{value:c},e)}},593:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(559),i="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function o(t,e){return 0===t.indexOf(e)}function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var a={};return Object.keys(t).forEach((function(n){(e.aria&&("role"===n||o(n,"aria-"))||e.data&&o(n,"data-")||e.attr&&i.includes(n))&&(a[n]=t[n])})),a}},594:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(561),i=n(560),o=n.n(i),a=n(586);Object(a.a)("warning","error","");function c(t,e,n){var i;return o()((i={},Object(r.a)(i,"".concat(t,"-status-success"),"success"===e),Object(r.a)(i,"".concat(t,"-status-warning"),"warning"===e),Object(r.a)(i,"".concat(t,"-status-error"),"error"===e),Object(r.a)(i,"".concat(t,"-status-validating"),"validating"===e),Object(r.a)(i,"".concat(t,"-has-feedback"),n),i))}var s=function(t,e){return e||t}},595:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r=n(23),i=n(570),o=n(571),a=n(572),c=n(573),s=n(2),l=n(671),u=n(617).a,f=function(t){Object(a.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"getLocale",value:function(){var t=this.props,e=t.componentName,n=t.defaultLocale||u[null!==e&&void 0!==e?e:"global"],i=this.context,o=e&&i?i[e]:{};return Object(r.a)(Object(r.a)({},n instanceof Function?n():n),o||{})}},{key:"getLocaleCode",value:function(){var t=this.context,e=t&&t.locale;return t&&t.exist&&!e?u.locale:e}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);function h(t,e){var n=s.useContext(l.a);return[s.useMemo((function(){var i=e||u[t||"global"],o=t&&n?n[t]:{};return Object(r.a)(Object(r.a)({},"function"===typeof i?i():i),o||{})}),[t,e,n])]}f.defaultProps={componentName:"global"},f.contextType=l.a},597:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CloseCircleFilled";e.a=i.forwardRef(c)},598:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return s}));var r=n(586),i=function(){return{height:0,opacity:0}},o=function(t){return{height:t.scrollHeight,opacity:1}},a=function(t,e){return!0===(null===e||void 0===e?void 0:e.deadline)||"height"===e.propertyName},c={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:function(t){return{height:t?t.offsetHeight:0}},onLeaveActive:i,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500},s=(Object(r.a)("bottomLeft","bottomRight","topLeft","topRight"),function(t){return void 0===t||"topLeft"!==t&&"topRight"!==t?"slide-up":"slide-down"}),l=function(t,e,n){return void 0!==n?n:"".concat(t,"-").concat(e)};e.a=c},599:function(t,e){t.exports=function(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(e),s=0;s1&&(O.motionAppear=!1);var j=O.onVisibleChanged;return O.onVisibleChanged=function(t){return g.current||t||b(!0),null===j||void 0===j?void 0:j(t)},m?null:l.createElement(E,{mode:"inline",locked:!g.current},l.createElement(ht.b,Object(r.a)({visible:x},O,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(t){var n=t.className,r=t.style;return l.createElement(rt,{id:e,className:n,style:r},a)})))}var pt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gt=["active"],vt=function(t){var e,n=t.style,a=t.className,u=t.title,h=t.eventKey,d=(t.warnKey,t.disabled),p=t.internalPopupClose,g=t.children,y=t.itemIcon,m=t.expandIcon,b=t.popupClassName,x=t.popupOffset,O=t.onClick,j=t.onMouseEnter,w=t.onMouseLeave,C=t.onTitleClick,k=t.onTitleMouseEnter,F=t.onTitleMouseLeave,T=Object(s.a)(t,pt),L=z(h),N=l.useContext(S),R=N.prefixCls,_=N.mode,H=N.openKeys,K=N.disabled,Y=N.overflowDisabled,G=N.activeKey,W=N.selectedKeys,X=N.itemIcon,q=N.expandIcon,U=N.onItemClick,$=N.onOpenChange,Z=N.onActive,Q=l.useContext(V)._internalRenderSubMenuItem,tt=l.useContext(B).isSubPathKey,et=D(),nt="".concat(R,"-submenu"),it=K||d,ot=l.useRef(),at=l.useRef();var ct=y||X,st=m||q,lt=H.includes(h),ut=!Y&<,ht=tt(W,h),vt=M(h,it,k,F),yt=vt.active,mt=Object(s.a)(vt,gt),bt=l.useState(!1),xt=Object(c.a)(bt,2),Ot=xt[0],jt=xt[1],wt=function(t){it||jt(t)},Ct=l.useMemo((function(){return yt||"inline"!==_&&(Ot||tt([G],h))}),[_,yt,G,Ot,h,tt]),St=I(et.length),Et=J((function(t){null===O||void 0===O||O(P(t)),U(t)})),Mt=L&&"".concat(L,"-popup"),kt=l.createElement("div",Object(r.a)({role:"menuitem",style:St,className:"".concat(nt,"-title"),tabIndex:it?null:-1,ref:ot,title:"string"===typeof u?u:null,"data-menu-id":Y&&L?null:L,"aria-expanded":ut,"aria-haspopup":!0,"aria-controls":Mt,"aria-disabled":it,onClick:function(t){it||(null===C||void 0===C||C({key:h,domEvent:t}),"inline"===_&&$(h,!lt))},onFocus:function(){Z(h)}},mt),u,l.createElement(A,{icon:"horizontal"!==_?st:null,props:Object(o.a)(Object(o.a)({},t),{},{isOpen:ut,isSubMenu:!0})},l.createElement("i",{className:"".concat(nt,"-arrow")}))),Pt=l.useRef(_);if("inline"!==_&&(Pt.current=et.length>1?"vertical":_),!Y){var At=Pt.current;kt=l.createElement(ft,{mode:At,prefixCls:nt,visible:!p&&ut&&"inline"!==_,popupClassName:b,popupOffset:x,popup:l.createElement(E,{mode:"horizontal"===At?"vertical":At},l.createElement(rt,{id:Mt,ref:at},g)),disabled:it,onVisibleChange:function(t){"inline"!==_&&$(h,t)}},kt)}var It=l.createElement(v.a.Item,Object(r.a)({role:"none"},T,{component:"li",style:n,className:f()(nt,"".concat(nt,"-").concat(_),a,(e={},Object(i.a)(e,"".concat(nt,"-open"),ut),Object(i.a)(e,"".concat(nt,"-active"),Ct),Object(i.a)(e,"".concat(nt,"-selected"),ht),Object(i.a)(e,"".concat(nt,"-disabled"),it),e)),onMouseEnter:function(t){wt(!0),null===j||void 0===j||j({key:h,domEvent:t})},onMouseLeave:function(t){wt(!1),null===w||void 0===w||w({key:h,domEvent:t})}}),kt,!Y&&l.createElement(dt,{id:Mt,open:ut,keyPath:et},g));return Q&&(It=Q(It,t,{selected:ht,active:Ct,open:ut,disabled:it})),l.createElement(E,{onItemClick:Et,mode:"horizontal"===_?"vertical":_,itemIcon:ct,expandIcon:st},It)};function yt(t){var e,n=t.eventKey,r=t.children,i=D(n),o=Z(r,i),a=L();return l.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),e=a?o:l.createElement(vt,t,o),l.createElement(N.Provider,{value:i},e)}var mt=n(724),bt=O.a.LEFT,xt=O.a.RIGHT,Ot=O.a.UP,jt=O.a.DOWN,wt=O.a.ENTER,Ct=O.a.ESC,St=O.a.HOME,Et=O.a.END,Mt=[Ot,jt,bt,xt];function kt(t,e){return Object(mt.a)(t,!0).filter((function(t){return e.has(t)}))}function Pt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)return null;var i=kt(t,e),o=i.length,a=i.findIndex((function(t){return n===t}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function At(t,e,n,r,o,a,c,s,u,f){var h=l.useRef(),d=l.useRef();d.current=e;var p=function(){ot.a.cancel(h.current)};return l.useEffect((function(){return function(){p()}}),[]),function(l){var g=l.which;if([].concat(Mt,[wt,Ct,St,Et]).includes(g)){var v,y,m,b=function(){return v=new Set,y=new Map,m=new Map,a().forEach((function(t){var e=document.querySelector("[data-menu-id='".concat(_(r,t),"']"));e&&(v.add(e),m.set(e,t),y.set(t,e))})),v};b();var x=function(t,e){for(var n=t||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}(y.get(e),v),O=m.get(x),j=function(t,e,n,r){var o,a,c,s;if("inline"===t&&r===wt)return{inlineTrigger:!0};var l=(o={},Object(i.a)(o,Ot,"prev"),Object(i.a)(o,jt,"next"),o),u=(a={},Object(i.a)(a,bt,n?"next":"prev"),Object(i.a)(a,xt,n?"prev":"next"),Object(i.a)(a,jt,"children"),Object(i.a)(a,wt,"children"),a),f=(c={},Object(i.a)(c,Ot,"prev"),Object(i.a)(c,jt,"next"),Object(i.a)(c,wt,"children"),Object(i.a)(c,Ct,"parent"),Object(i.a)(c,bt,n?"children":"parent"),Object(i.a)(c,xt,n?"parent":"children"),c);switch(null===(s={inline:l,horizontal:u,vertical:f,inlineSub:l,horizontalSub:f,verticalSub:f}["".concat(t).concat(e?"":"Sub")])||void 0===s?void 0:s[r]){case"prev":return{offset:-1,sibling:!0};case"next":return{offset:1,sibling:!0};case"parent":return{offset:-1,sibling:!1};case"children":return{offset:1,sibling:!1};default:return null}}(t,1===c(O,!0).length,n,g);if(!j&&g!==St&&g!==Et)return;(Mt.includes(g)||[St,Et].includes(g))&&l.preventDefault();var w=function(t){if(t){var e=t,n=t.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(e=n);var r=m.get(t);s(r),p(),h.current=Object(ot.a)((function(){d.current===r&&e.focus()}))}};if([St,Et].includes(g)||j.sibling||!x){var C,S,E=kt(C=x&&"inline"!==t?function(t){for(var e=t;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(x):o.current,v);S=g===St?E[0]:g===Et?E[E.length-1]:Pt(C,v,x,j.offset),w(S)}else if(j.inlineTrigger)u(O);else if(j.offset>0)u(O,!0),p(),h.current=Object(ot.a)((function(){b();var t=x.getAttribute("aria-controls"),e=Pt(document.getElementById(t),v);w(e)}),5);else if(j.offset<0){var M=c(O,!0),k=M[M.length-2],P=y.get(k);u(k,!1),w(P)}}null===f||void 0===f||f(l)}}var It=Math.random().toFixed(5).toString().slice(2),Ft=0;var Tt="__RC_UTIL_PATH_SPLIT__",Lt=function(t){return t.join(Tt)};function Nt(){var t=l.useState({}),e=Object(c.a)(t,2)[1],n=Object(l.useRef)(new Map),r=Object(l.useRef)(new Map),i=l.useState([]),o=Object(c.a)(i,2),s=o[0],u=o[1],f=Object(l.useRef)(0),h=Object(l.useRef)(!1),d=Object(l.useCallback)((function(t,i){var o=Lt(i);r.current.set(o,t),n.current.set(t,o),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(h.current||e({}))},Promise.resolve().then(a)}),[]),p=Object(l.useCallback)((function(t,e){var i=Lt(e);r.current.delete(i),n.current.delete(t)}),[]),g=Object(l.useCallback)((function(t){u(t)}),[]),v=Object(l.useCallback)((function(t,e){var r=n.current.get(t)||"",i=r.split(Tt);return e&&s.includes(i[0])&&i.unshift("rc-menu-more"),i}),[s]),y=Object(l.useCallback)((function(t,e){return t.some((function(t){return v(t,!0).includes(e)}))}),[v]),m=Object(l.useCallback)((function(t){var e="".concat(n.current.get(t)).concat(Tt),i=new Set;return Object(a.a)(r.current.keys()).forEach((function(t){t.startsWith(e)&&i.add(r.current.get(t))})),i}),[]);return l.useEffect((function(){return function(){h.current=!0}}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:v,getKeys:function(){var t=Object(a.a)(n.current.keys());return s.length&&t.push("rc-menu-more"),t},getSubPathKeys:m}}var Dt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Bt=[],Rt=["className","title","eventKey","children"],_t=["children"],zt=function(t){var e=t.className,n=t.title,i=(t.eventKey,t.children),o=Object(s.a)(t,Rt),a=l.useContext(S).prefixCls,c="".concat(a,"-item-group");return l.createElement("li",Object(r.a)({},o,{onClick:function(t){return t.stopPropagation()},className:f()(c,e)}),l.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),l.createElement("ul",{className:"".concat(c,"-list")},i))};function Vt(t){var e=t.children,n=Object(s.a)(t,_t),r=Z(e,D(n.eventKey));return L()?r:l.createElement(zt,Object(j.a)(n,["warnKey"]),r)}function Ht(t){var e=t.className,n=t.style,r=l.useContext(S).prefixCls;return L()?null:l.createElement("li",{className:f()("".concat(r,"-item-divider"),e),style:n})}var Kt=D,Yt=l.forwardRef((function(t,e){var n,u,h=t.prefixCls,g=void 0===h?"rc-menu":h,y=t.rootClassName,m=t.style,b=t.className,x=t.tabIndex,O=void 0===x?0:x,j=t.items,w=t.children,C=t.direction,S=t.id,M=t.mode,k=void 0===M?"vertical":M,A=t.inlineCollapsed,I=t.disabled,F=t.disabledOverflow,L=t.subMenuOpenDelay,N=void 0===L?.1:L,D=t.subMenuCloseDelay,z=void 0===D?.1:D,H=t.forceSubMenuRender,K=t.defaultOpenKeys,Y=t.openKeys,G=t.activeKey,W=t.defaultActiveFirst,q=t.selectable,U=void 0===q||q,$=t.multiple,Z=void 0!==$&&$,tt=t.defaultSelectedKeys,et=t.selectedKeys,nt=t.onSelect,rt=t.onDeselect,it=t.inlineIndent,ot=void 0===it?24:it,at=t.motion,ct=t.defaultMotions,st=t.triggerSubMenuAction,lt=void 0===st?"hover":st,ut=t.builtinPlacements,ft=t.itemIcon,ht=t.expandIcon,dt=t.overflowedIndicator,pt=void 0===dt?"...":dt,gt=t.overflowedIndicatorPopupClassName,vt=t.getPopupContainer,mt=t.onClick,bt=t.onOpenChange,xt=t.onKeyDown,Ot=(t.openAnimation,t.openTransitionName,t._internalRenderMenuItem),jt=t._internalRenderSubMenuItem,wt=Object(s.a)(t,Dt),Ct=l.useMemo((function(){return Q(w,j,Bt)}),[w,j]),St=l.useState(!1),Et=Object(c.a)(St,2),Mt=Et[0],kt=Et[1],Pt=l.useRef(),Tt=function(t){var e=Object(p.a)(t,{value:t}),n=Object(c.a)(e,2),r=n[0],i=n[1];return l.useEffect((function(){Ft+=1;var t="".concat(It,"-").concat(Ft);i("rc-menu-uuid-".concat(t))}),[]),r}(S),Lt="rtl"===C;var Rt=l.useMemo((function(){return"inline"!==k&&"vertical"!==k||!A?[k,!1]:["vertical",A]}),[k,A]),_t=Object(c.a)(Rt,2),zt=_t[0],Vt=_t[1],Ht=l.useState(0),Kt=Object(c.a)(Ht,2),Yt=Kt[0],Gt=Kt[1],Wt=Yt>=Ct.length-1||"horizontal"!==zt||F,Xt=Object(p.a)(K,{value:Y,postState:function(t){return t||Bt}}),qt=Object(c.a)(Xt,2),Ut=qt[0],$t=qt[1],Zt=function(t){$t(t),null===bt||void 0===bt||bt(t)},Qt=l.useState(Ut),Jt=Object(c.a)(Qt,2),te=Jt[0],ee=Jt[1],ne="inline"===zt,re=l.useRef(!1);l.useEffect((function(){ne&&ee(Ut)}),[Ut]),l.useEffect((function(){re.current?ne?$t(te):Zt(Bt):re.current=!0}),[ne]);var ie=Nt(),oe=ie.registerPath,ae=ie.unregisterPath,ce=ie.refreshOverflowKeys,se=ie.isSubPathKey,le=ie.getKeyPath,ue=ie.getKeys,fe=ie.getSubPathKeys,he=l.useMemo((function(){return{registerPath:oe,unregisterPath:ae}}),[oe,ae]),de=l.useMemo((function(){return{isSubPathKey:se}}),[se]);l.useEffect((function(){ce(Wt?Bt:Ct.slice(Yt+1).map((function(t){return t.key})))}),[Yt,Wt]);var pe=Object(p.a)(G||W&&(null===(n=Ct[0])||void 0===n?void 0:n.key),{value:G}),ge=Object(c.a)(pe,2),ve=ge[0],ye=ge[1],me=J((function(t){ye(t)})),be=J((function(){ye(void 0)}));Object(l.useImperativeHandle)(e,(function(){return{list:Pt.current,focus:function(t){var e,n,r,i,o=null!==ve&&void 0!==ve?ve:null===(e=Ct.find((function(t){return!t.props.disabled})))||void 0===e?void 0:e.key;o&&(null===(n=Pt.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(_(Tt,o),"']")))||void 0===r||null===(i=r.focus)||void 0===i||i.call(r,t))}}}));var xe=Object(p.a)(tt||[],{value:et,postState:function(t){return Array.isArray(t)?t:null===t||void 0===t?Bt:[t]}}),Oe=Object(c.a)(xe,2),je=Oe[0],we=Oe[1],Ce=J((function(t){null===mt||void 0===mt||mt(P(t)),function(t){if(U){var e,n=t.key,r=je.includes(n);e=Z?r?je.filter((function(t){return t!==n})):[].concat(Object(a.a)(je),[n]):[n],we(e);var i=Object(o.a)(Object(o.a)({},t),{},{selectedKeys:e});r?null===rt||void 0===rt||rt(i):null===nt||void 0===nt||nt(i)}!Z&&Ut.length&&"inline"!==zt&&Zt(Bt)}(t)})),Se=J((function(t,e){var n=Ut.filter((function(e){return e!==t}));if(e)n.push(t);else if("inline"!==zt){var r=fe(t);n=n.filter((function(t){return!r.has(t)}))}d()(Ut,n)||Zt(n)})),Ee=J(vt),Me=At(zt,ve,Lt,Tt,Pt,ue,le,ye,(function(t,e){var n=null!==e&&void 0!==e?e:!Ut.includes(t);Se(t,n)}),xt);l.useEffect((function(){kt(!0)}),[]);var ke=l.useMemo((function(){return{_internalRenderMenuItem:Ot,_internalRenderSubMenuItem:jt}}),[Ot,jt]),Pe="horizontal"!==zt||F?Ct:Ct.map((function(t,e){return l.createElement(E,{key:t.key,overflowDisabled:e>Yt},t)})),Ae=l.createElement(v.a,Object(r.a)({id:S,ref:Pt,prefixCls:"".concat(g,"-overflow"),component:"ul",itemComponent:X,className:f()(g,"".concat(g,"-root"),"".concat(g,"-").concat(zt),b,(u={},Object(i.a)(u,"".concat(g,"-inline-collapsed"),Vt),Object(i.a)(u,"".concat(g,"-rtl"),Lt),u),y),dir:C,style:m,role:"menu",tabIndex:O,data:Pe,renderRawItem:function(t){return t},renderRawRest:function(t){var e=t.length,n=e?Ct.slice(-e):null;return l.createElement(yt,{eventKey:"rc-menu-more",title:pt,disabled:Wt,internalPopupClose:0===e,popupClassName:gt},n)},maxCount:"horizontal"!==zt||F?v.a.INVALIDATE:v.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(t){Gt(t)},onKeyDown:Me},wt));return l.createElement(V.Provider,{value:ke},l.createElement(R.Provider,{value:Tt},l.createElement(E,{prefixCls:g,rootClassName:y,mode:zt,openKeys:Ut,rtl:Lt,disabled:I,motion:Mt?at:null,defaultMotions:Mt?ct:null,activeKey:ve,onActive:me,onInactive:be,selectedKeys:je,inlineIndent:ot,subMenuOpenDelay:N,subMenuCloseDelay:z,forceSubMenuRender:H,builtinPlacements:ut,triggerSubMenuAction:lt,getPopupContainer:Ee,itemIcon:ft,expandIcon:ht,onItemClick:Ce,onOpenChange:Se},l.createElement(B.Provider,{value:de},Ae),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(T.Provider,{value:he},Ct)))))}));Yt.Item=X,Yt.SubMenu=yt,Yt.ItemGroup=Vt,Yt.Divider=Ht;e.g=Yt},612:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CloseOutlined";e.a=i.forwardRef(c)},613:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c}));var r=function(t,e){return(r=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])})(t,e)};function i(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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(d,g){for(var v,y=Object(u.g)(r?r.pos:"0",g),m=h(d[s],y),b=0;b1&&void 0!==arguments[1]?arguments[1]:{},n=e.initWrapper,r=e.processEntity,i=e.onProcessFinished,o=e.externalGetKey,a=e.childrenPropName,c=e.fieldNames,s=arguments.length>2?arguments[2]:void 0,l=o||s,u={},f={},d={posEntities:u,keyEntities:f};return n&&(d=n(d)||d),v(t,(function(t){var e=t.node,n=t.index,i=t.pos,o=t.key,a=t.parentPos,c=t.level,s={node:e,nodes:t.nodes,index:n,key:o,pos:i,level:c},l=h(o,i);u[i]=s,f[l]=s,s.parent=u[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}),{externalGetKey:l,childrenPropName:a,fieldNames:c}),i&&i(d),d}function m(t,e){var n=e.expandedKeys,r=e.selectedKeys,i=e.loadedKeys,o=e.loadingKeys,a=e.checkedKeys,c=e.halfCheckedKeys,s=e.dragOverNodeKey,l=e.dropPosition,u=e.keyEntities[t];return{eventKey:t,expanded:-1!==n.indexOf(t),selected:-1!==r.indexOf(t),loaded:-1!==i.indexOf(t),loading:-1!==o.indexOf(t),checked:-1!==a.indexOf(t),halfChecked:-1!==c.indexOf(t),pos:String(u?u.pos:""),dragOver:s===t&&0===l,dragOverGapTop:s===t&&-1===l,dragOverGapBottom:s===t&&1===l}}function b(t){var e=t.data,n=t.expanded,r=t.selected,i=t.checked,a=t.loaded,c=t.loading,s=t.halfChecked,u=t.dragOver,f=t.dragOverGapTop,h=t.dragOverGapBottom,d=t.pos,p=t.active,g=t.eventKey,v=Object(o.a)(Object(o.a)({},e),{},{expanded:n,selected:r,checked:i,loaded:a,loading:c,halfChecked:s,dragOver:u,dragOverGapTop:f,dragOverGapBottom:h,pos:d,active:p,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),v}},616:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="SearchOutlined";e.a=i.forwardRef(c)},617:function(t,e,n){"use strict";var r=n(623),i=n(670),o=n(601),a=n(621),c="${label} is not a valid ${type}",s={locale:"en",Pagination:r.a,DatePicker:o.a,TimePicker:a.a,Calendar:i.a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};e.a=s},618:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e1&&void 0!==arguments[1]?arguments[1]:1,n=p++,r=e;function i(){(r-=1)<=0?(t(),delete g[n]):g[n]=Object(d.a)(i)}return g[n]=Object(d.a)(i),n}v.cancel=function(t){void 0!==t&&(d.a.cancel(g[t]),delete g[t])},v.ids=g;var y,m=n(578);function b(t){return!t||null===t.offsetParent||t.hidden}function x(t){var e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(e&&e[1]&&e[2]&&e[3])||!(e[1]===e[2]&&e[2]===e[3])}var O=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(){var t;return Object(i.a)(this,n),(t=e.apply(this,arguments)).containerRef=f.createRef(),t.animationStart=!1,t.destroyed=!1,t.onClick=function(e,n){var r,i,o=t.props,c=o.insertExtraNode;if(!(o.disabled||!e||b(e)||e.className.indexOf("-leave")>=0)){t.extraNode=document.createElement("div");var s=Object(a.a)(t).extraNode,u=t.context.getPrefixCls;s.className="".concat(u(""),"-click-animating-node");var f=t.getAttributeName();if(e.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&x(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var h=(null===(r=e.getRootNode)||void 0===r?void 0:r.call(e))||e.ownerDocument,d=h instanceof Document?h.body:null!==(i=h.firstChild)&&void 0!==i?i:h;y=Object(l.a)("\n [".concat(u(""),"-click-animating-without-extra-node='true']::after, .").concat(u(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:t.csp,attachTo:d})}c&&e.appendChild(s),["transition","animation"].forEach((function(n){e.addEventListener("".concat(n,"start"),t.onTransitionStart),e.addEventListener("".concat(n,"end"),t.onTransitionEnd)}))}},t.onTransitionStart=function(e){if(!t.destroyed){var n=t.containerRef.current;e&&e.target===n&&!t.animationStart&&t.resetEffect(n)}},t.onTransitionEnd=function(e){e&&"fadeEffect"===e.animationName&&t.resetEffect(e.target)},t.bindAnimationEvent=function(e){if(e&&e.getAttribute&&!e.getAttribute("disabled")&&!(e.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!b(n.target)){t.resetEffect(e);var r=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");t.clickWaveTimeoutId=window.setTimeout((function(){return t.onClick(e,r)}),0),v.cancel(t.animationStartId),t.animationStart=!0,t.animationStartId=v((function(){t.animationStart=!1}),10)}};return e.addEventListener("click",n,!0),{cancel:function(){e.removeEventListener("click",n,!0)}}}},t.renderWave=function(e){var n=e.csp,r=t.props.children;if(t.csp=n,!f.isValidElement(r))return r;var i=t.containerRef;return Object(u.c)(r)&&(i=Object(u.a)(r.ref,t.containerRef)),Object(m.a)(r,{ref:i})},t}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var t=this.containerRef.current;t&&1===t.nodeType&&(this.instance=this.bindAnimationEvent(t))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var t=this.context.getPrefixCls,e=this.props.insertExtraNode;return"".concat(t(""),e?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(t){var e=this;if(t&&t!==this.extraNode&&t instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();t.setAttribute(r,"false"),y&&(y.innerHTML=""),n&&this.extraNode&&t.contains(this.extraNode)&&t.removeChild(this.extraNode),["transition","animation"].forEach((function(n){t.removeEventListener("".concat(n,"start"),e.onTransitionStart),t.removeEventListener("".concat(n,"end"),e.onTransitionEnd)}))}}},{key:"render",value:function(){return f.createElement(h.a,null,this.renderWave)}}]),n}(f.Component);O.contextType=h.b;var j=Object(f.forwardRef)((function(t,e){return f.createElement(O,Object(r.a)({ref:e},t))}));e.a=j},637:function(t,e,n){"use strict";n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return F})),n.d(e,"d",(function(){return T}));var r=n(561),i=n(23),o=n(566),a=n(597),c=n(560),s=n.n(c),l=n(2),u=n.n(l);function f(t){return!(!t.addonBefore&&!t.addonAfter)}function h(t){return!!(t.prefix||t.suffix||t.allowClear)}function d(t,e,n,r){if(n){var i=e;if("click"===e.type){var o=t.cloneNode(!0);return i=Object.create(e,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(i)}if(void 0!==r)return i=Object.create(e,{target:{value:t},currentTarget:{value:t}}),t.value=r,void n(i);n(i)}}function p(t){return"undefined"===typeof t||null===t?"":String(t)}var g=function(t){var e=t.inputElement,n=t.prefixCls,i=t.prefix,a=t.suffix,c=t.addonBefore,d=t.addonAfter,p=t.className,g=t.style,v=t.affixWrapperClassName,y=t.groupClassName,m=t.wrapperClassName,b=t.disabled,x=t.readOnly,O=t.focused,j=t.triggerFocus,w=t.allowClear,C=t.value,S=t.handleReset,E=t.hidden,M=Object(l.useRef)(null),k=Object(l.cloneElement)(e,{value:C,hidden:E});if(h(t)){var P,A="".concat(n,"-affix-wrapper"),I=s()(A,(P={},Object(r.a)(P,"".concat(A,"-disabled"),b),Object(r.a)(P,"".concat(A,"-focused"),O),Object(r.a)(P,"".concat(A,"-readonly"),x),Object(r.a)(P,"".concat(A,"-input-with-clear-btn"),a&&w&&C),P),!f(t)&&p,v),F=(a||w)&&u.a.createElement("span",{className:"".concat(n,"-suffix")},function(){var t;if(!w)return null;var e=!b&&!x&&C,i="".concat(n,"-clear-icon"),c="object"===Object(o.a)(w)&&(null===w||void 0===w?void 0:w.clearIcon)?w.clearIcon:"\u2716";return u.a.createElement("span",{onClick:S,onMouseDown:function(t){return t.preventDefault()},className:s()(i,(t={},Object(r.a)(t,"".concat(i,"-hidden"),!e),Object(r.a)(t,"".concat(i,"-has-suffix"),!!a),t)),role:"button",tabIndex:-1},c)}(),a);k=u.a.createElement("span",{className:I,style:g,hidden:!f(t)&&E,onMouseDown:function(t){var e;(null===(e=M.current)||void 0===e?void 0:e.contains(t.target))&&(null===j||void 0===j||j())},ref:M},i&&u.a.createElement("span",{className:"".concat(n,"-prefix")},i),Object(l.cloneElement)(e,{style:null,value:C,hidden:null}),F)}if(f(t)){var T="".concat(n,"-group"),L="".concat(T,"-addon"),N=s()("".concat(n,"-wrapper"),T,m),D=s()("".concat(n,"-group-wrapper"),p,y);return u.a.createElement("span",{className:D,style:g,hidden:E},u.a.createElement("span",{className:N},c&&u.a.createElement("span",{className:L},c),Object(l.cloneElement)(k,{style:null,hidden:null}),d&&u.a.createElement("span",{className:L},d)))}return k},v=n(565),y=n(559),m=n(563),b=n(567),x=n(575),O=n(577),j=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],w=Object(l.forwardRef)((function(t,e){var n=t.autoComplete,i=t.onChange,a=t.onFocus,c=t.onBlur,w=t.onPressEnter,C=t.onKeyDown,S=t.prefixCls,E=void 0===S?"rc-input":S,M=t.disabled,k=t.htmlSize,P=t.className,A=t.maxLength,I=t.suffix,F=t.showCount,T=t.type,L=void 0===T?"text":T,N=t.inputClassName,D=Object(b.a)(t,j),B=Object(O.a)(t.defaultValue,{value:t.value}),R=Object(m.a)(B,2),_=R[0],z=R[1],V=Object(l.useState)(!1),H=Object(m.a)(V,2),K=H[0],Y=H[1],G=Object(l.useRef)(null),W=function(t){G.current&&function(t,e){if(t){t.focus(e);var n=(e||{}).cursor;if(n){var r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}}(G.current,t)};Object(l.useImperativeHandle)(e,(function(){return{focus:W,blur:function(){var t;null===(t=G.current)||void 0===t||t.blur()},setSelectionRange:function(t,e,n){var r;null===(r=G.current)||void 0===r||r.setSelectionRange(t,e,n)},select:function(){var t;null===(t=G.current)||void 0===t||t.select()},input:G.current}})),Object(l.useEffect)((function(){Y((function(t){return(!t||!M)&&t}))}),[M]);var X=function(e){void 0===t.value&&z(e.target.value),G.current&&d(G.current,e,i)},q=function(t){w&&"Enter"===t.key&&w(t),null===C||void 0===C||C(t)},U=function(t){Y(!0),null===a||void 0===a||a(t)},$=function(t){Y(!1),null===c||void 0===c||c(t)};return u.a.createElement(g,Object(y.a)(Object(y.a)({},D),{},{prefixCls:E,className:P,inputElement:function(){var e=Object(x.a)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return u.a.createElement("input",Object(y.a)(Object(y.a)({autoComplete:n},e),{},{onChange:X,onFocus:U,onBlur:$,onKeyDown:q,className:s()(E,Object(r.a)({},"".concat(E,"-disabled"),M),N,!f(t)&&!h(t)&&P),ref:G,size:k,type:L}))}(),handleReset:function(t){z(""),W(),G.current&&d(G.current,t,i)},value:p(_),focused:K,triggerFocus:W,suffix:function(){var t=Number(A)>0;if(I||F){var e=Object(v.a)(p(_)).length,n="object"===Object(o.a)(F)?F.formatter({count:e,maxLength:A}):"".concat(e).concat(t?" / ".concat(A):"");return u.a.createElement(u.a.Fragment,null,!!F&&u.a.createElement("span",{className:s()("".concat(E,"-show-count-suffix"),Object(r.a)({},"".concat(E,"-show-count-has-suffix"),!!I))},n),I)}return null}(),disabled:M}))})),C=n(588),S=n(775),E=n(591),M=n(587),k=n(583),P=n(594);var A=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:Y,arrowContent:f.createElement("span",{className:"".concat(D,"-arrow-content"),style:_}),motion:{motionName:Object(x.c)(B,"zoom-big-fast",t.transitionName),motionDeadline:1e3}}),R?Object(j.a)(z,{className:H}):z)}));E.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};e.default=E},643:function(t,e,n){"use strict";var r=n(2),i=n(652),o=n(663);e.a=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=Object(r.useRef)({}),n=Object(i.a)();return Object(r.useEffect)((function(){var r=o.a.subscribe((function(r){e.current=r,t&&n()}));return function(){return o.a.unsubscribe(r)}}),[]),e.current}},645:function(t,e,n){"use strict";var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(2),s=n(775),l=n(595),u=function(){var t=(0,c.useContext(s.b).getPrefixCls)("empty-img-default");return c.createElement("svg",{className:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{className:"".concat(t,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{className:"".concat(t,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),c.createElement("path",{className:"".concat(t,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),c.createElement("path",{className:"".concat(t,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),c.createElement("path",{className:"".concat(t,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),c.createElement("path",{className:"".concat(t,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),c.createElement("g",{className:"".concat(t,"-g"),transform:"translate(149.65 15.383)"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var t=(0,c.useContext(s.b).getPrefixCls)("empty-img-simple");return c.createElement("svg",{className:t,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{className:"".concat(t,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{className:"".concat(t,"-g"),fillRule:"nonzero"},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(t,"-path")}))))},h=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);it.length)&&(e=t.length);for(var n=0,r=new Array(e);nn},t}return e=c,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(t){t.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var t=this.state,e=t.dragging,n=t.visible,i=this.props.prefixCls,a=this.getSpinHeight(),c=this.getTop(),s=this.showScroll(),l=s&&n;return r.createElement("div",{ref:this.scrollbarRef,className:o()("".concat(i,"-scrollbar"),p({},"".concat(i,"-scrollbar-show"),s)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:l?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:o()("".concat(i,"-scrollbar-thumb"),p({},"".concat(i,"-scrollbar-thumb-moving"),e)),style:{width:"100%",height:a,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&v(e.prototype,n),i&&v(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component);function w(t){var e=t.children,n=t.setRef,i=r.useCallback((function(t){n(t)}),[]);return r.cloneElement(e,{ref:i})}var C=n(764);function S(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1],r=t<0&&a.current.top||t>0&&a.current.bottom;return e&&r?(clearTimeout(i.current),n.current=!1):r&&!n.current||o(),!n.current&&r}};var D=n(603);var B=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function R(){return(R=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var G=[],W={overflowY:"auto",overflowAnchor:"none"};function X(t,e){var n=t.prefixCls,i=void 0===n?"rc-virtual-list":n,a=t.className,c=t.height,s=t.itemHeight,l=t.fullHeight,u=void 0===l||l,d=t.style,p=t.data,g=t.children,v=t.itemKey,y=t.virtual,m=t.component,b=void 0===m?"div":m,x=t.onScroll,O=t.onVisibleChange,S=Y(t,B),k=!(!1===y||!c||!s),A=k&&p&&s*p.length>c,I=H(Object(r.useState)(0),2),T=I[0],_=I[1],K=H(Object(r.useState)(!1),2),X=K[0],q=K[1],U=o()(i,a),$=p||G,Z=Object(r.useRef)(),Q=Object(r.useRef)(),J=Object(r.useRef)(),tt=r.useCallback((function(t){return"function"===typeof v?v(t):null===t||void 0===t?void 0:t[v]}),[v]),et={getKey:tt};function nt(t){_((function(e){var n=function(t){var e=t;Number.isNaN(yt.current)||(e=Math.min(e,yt.current));return e=Math.max(e,0)}("function"===typeof t?t(e):t);return Z.current.scrollTop=n,n}))}var rt=Object(r.useRef)({start:0,end:$.length}),it=Object(r.useRef)(),ot=H(F($,tt),1)[0];it.current=ot;var at=H(function(t,e,n){var i=M(r.useState(0),2),o=i[0],a=i[1],c=Object(r.useRef)(new Map),s=Object(r.useRef)(new E),l=Object(r.useRef)();function u(){h.a.cancel(l.current)}function f(){u(),l.current=Object(h.a)((function(){c.current.forEach((function(t,e){if(t&&t.offsetParent){var n=Object(C.a)(t),r=n.offsetHeight;s.current.get(e)!==r&&s.current.set(e,n.offsetHeight)}})),a((function(t){return t+1}))}))}return Object(r.useEffect)((function(){return u}),[]),[function(r,i){var o=t(r),a=c.current.get(o);i?(c.current.set(o,i),f()):c.current.delete(o),!a!==!i&&(i?null===e||void 0===e||e(r):null===n||void 0===n||n(r))},f,s.current,o]}(tt,null,null),4),ct=at[0],st=at[1],lt=at[2],ut=at[3],ft=r.useMemo((function(){if(!k)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var t;if(!A)return{scrollHeight:(null===(t=Q.current)||void 0===t?void 0:t.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var e,n,r,i=0,o=$.length,a=0;a=T&&void 0===e&&(e=a,n=i),h>T+c&&void 0===r&&(r=a),i=h}return void 0===e&&(e=0,n=0),void 0===r&&(r=$.length-1),{scrollHeight:i,start:e,end:r=Math.min(r+1,$.length),offset:n}}),[A,k,T,$,ut,c]),ht=ft.scrollHeight,dt=ft.start,pt=ft.end,gt=ft.offset;rt.current.start=dt,rt.current.end=pt;var vt=ht-c,yt=Object(r.useRef)(vt);yt.current=vt;var mt=T<=0,bt=T>=vt,xt=N(mt,bt);var Ot=H(function(t,e,n,i){var o=Object(r.useRef)(0),a=Object(r.useRef)(null),c=Object(r.useRef)(null),s=Object(r.useRef)(!1),l=N(e,n);return[function(e){if(t){h.a.cancel(a.current);var n=e.deltaY;o.current+=n,c.current=n,l(n)||(L||e.preventDefault(),a.current=Object(h.a)((function(){var t=s.current?10:1;i(o.current*t),o.current=0})))}},function(e){t&&(s.current=e.detail===c.current)}]}(k,mt,bt,(function(t){nt((function(e){return e+t}))})),2),jt=Ot[0],wt=Ot[1];!function(t,e,n){var i,o=Object(r.useRef)(!1),a=Object(r.useRef)(0),c=Object(r.useRef)(null),s=Object(r.useRef)(null),l=function(t){if(o.current){var e=Math.ceil(t.touches[0].pageY),r=a.current-e;a.current=e,n(r)&&t.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=14/15,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){o.current=!1,i()},f=function(t){i(),1!==t.touches.length||o.current||(o.current=!0,a.current=Math.ceil(t.touches[0].pageY),c.current=t.target,c.current.addEventListener("touchmove",l),c.current.addEventListener("touchend",u))};i=function(){c.current&&(c.current.removeEventListener("touchmove",l),c.current.removeEventListener("touchend",u))},Object(D.a)((function(){return t&&e.current.addEventListener("touchstart",f),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("touchstart",f),i(),clearInterval(s.current)}}),[t])}(k,Z,(function(t,e){return!xt(t,e)&&(jt({preventDefault:function(){},deltaY:t}),!0)})),Object(D.a)((function(){function t(t){k&&t.preventDefault()}return Z.current.addEventListener("wheel",jt),Z.current.addEventListener("DOMMouseScroll",wt),Z.current.addEventListener("MozMousePixelScroll",t),function(){Z.current&&(Z.current.removeEventListener("wheel",jt),Z.current.removeEventListener("DOMMouseScroll",wt),Z.current.removeEventListener("MozMousePixelScroll",t))}}),[k]);var Ct=function(t,e,n,i,o,a,c,s){var l=r.useRef();return function(r){if(null!==r&&void 0!==r){if(h.a.cancel(l.current),"number"===typeof r)c(r);else if(r&&"object"===P(r)){var u,f=r.align;u="index"in r?r.index:e.findIndex((function(t){return o(t)===r.key}));var d=r.offset,p=void 0===d?0:d;!function r(s,d){if(!(s<0)&&t.current){var g=t.current.clientHeight,v=!1,y=d;if(g){for(var m=d||f,b=0,x=0,O=0,j=Math.min(e.length,u),w=0;w<=j;w+=1){var C=o(e[w]);x=b;var S=n.get(C);b=O=x+(void 0===S?i:S),w===u&&void 0===S&&(v=!0)}var E=null;switch(m){case"top":E=x-p;break;case"bottom":E=O-g+p;break;default:var M=t.current.scrollTop;xM+g&&(y="bottom")}null!==E&&E!==t.current.scrollTop&&c(E)}l.current=Object(h.a)((function(){v&&a(),r(s-1,y)}))}}(3)}}else s()}}(Z,$,lt,s,tt,st,nt,(function(){var t;null===(t=J.current)||void 0===t||t.delayHidden()}));r.useImperativeHandle(e,(function(){return{scrollTo:Ct}})),Object(D.a)((function(){if(O){var t=$.slice(dt,pt+1);O(t,$)}}),[dt,pt,$]);var St=function(t,e,n,i,o,a){var c=a.getKey;return t.slice(e,n+1).map((function(t,n){var a=o(t,e+n,{}),s=c(t);return r.createElement(w,{key:s,setRef:function(e){return i(t,e)}},a)}))}($,dt,pt,ct,g,et),Et=null;return c&&(Et=z(V({},u?"height":"maxHeight",c),W),k&&(Et.overflowY="hidden",X&&(Et.pointerEvents="none"))),r.createElement("div",R({style:z(z({},d),{},{position:"relative"}),className:U},S),r.createElement(b,{className:"".concat(i,"-holder"),style:Et,ref:Z,onScroll:function(t){var e=t.currentTarget.scrollTop;e!==T&&nt(e),null===x||void 0===x||x(t)}},r.createElement(f,{prefixCls:i,height:ht,offset:gt,onInnerResize:st,ref:Q},St)),k&&r.createElement(j,{ref:J,prefixCls:i,scrollTop:T,height:c,scrollHeight:ht,count:$.length,onScroll:function(t){nt(t)},onStartMove:function(){q(!0)},onStopMove:function(){q(!1)}}))}var q=r.forwardRef(X);q.displayName="List";var U=q;e.a=U},650:function(t,e,n){"use strict";n.d(e,"a",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"g",(function(){return lt})),n.d(e,"c",(function(){return ft})),n.d(e,"b",(function(){return m})),n.d(e,"e",(function(){return et})),n.d(e,"h",(function(){return vt}));var r=n(2),i=n(23),o=n(567),a=n(561),c=n(559),s=n(565),l=n(570),u=n(571),f=n(582),h=n(572),d=n(573),p=n(589),g=n(568),v="RC_FORM_INTERNAL_HOOKS",y=function(){Object(g.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},m=r.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}});function b(t){return void 0===t||null===t?[]:Array.isArray(t)?t:[t]}var x=n(748),O=n(754),j=n(669),w="'${name}' is not a valid ${type}",C={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},S=n(566);function E(t,e){for(var n=t,r=0;r3&&void 0!==arguments[3]&&arguments[3];return e.length&&r&&void 0===n&&!E(t,e.slice(0,-1))?t:k(t,e,n,r)}function A(t){return Array.isArray(t)?function(t){return t.map((function(t){return A(t)}))}(t):"object"===Object(S.a)(t)&&null!==t?function(t){if(Object.getPrototypeOf(t)===Object.prototype){var e={};for(var n in t)e[n]=A(t[n]);return e}return t}(t):t}var I=A;function F(t){return b(t)}function T(t,e){return E(t,e)}function L(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=P(t,e,n,r);return i}function N(t,e){var n={};return e.forEach((function(e){var r=T(t,e);n=L(n,e,r)})),n}function D(t,e){return t&&t.some((function(t){return z(t,e)}))}function B(t){return"object"===Object(S.a)(t)&&null!==t&&Object.getPrototypeOf(t)===Object.prototype}function R(t,e){var n=Array.isArray(t)?Object(s.a)(t):Object(c.a)({},t);return e?(Object.keys(e).forEach((function(t){var r=n[t],i=e[t],o=B(r)&&B(i);n[t]=o?R(r,i||{}):I(i)})),n):n}function _(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=r||n<0||n>=r)return t;var i=t[e],o=e-n;return o>0?[].concat(Object(s.a)(t.slice(0,n)),[i],Object(s.a)(t.slice(n,e)),Object(s.a)(t.slice(e+1,r))):o<0?[].concat(Object(s.a)(t.slice(0,e)),Object(s.a)(t.slice(e+1,n+1)),[i],Object(s.a)(t.slice(n+1,r))):t}var K=j.a;function Y(t,e){return t.replace(/\$\{\w+\}/g,(function(t){var n=t.slice(2,-1);return e[n]}))}function G(t,e,n,r,i){return W.apply(this,arguments)}function W(){return(W=Object(O.a)(Object(x.a)().mark((function t(e,n,i,o,l){var u,f,h,d,p,g,v,y,m;return Object(x.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(u=Object(c.a)({},i)).ruleIndex,u.validator&&(f=u.validator,u.validator=function(){try{return f.apply(void 0,arguments)}catch(t){return console.error(t),Promise.reject("CODE_LOGIC_ERROR")}}),h=null,u&&"array"===u.type&&u.defaultField&&(h=u.defaultField,delete u.defaultField),d=new K(Object(a.a)({},e,[u])),p=_({},C,o.validateMessages),d.messages(p),g=[],t.prev=9,t.next=12,Promise.resolve(d.validate(Object(a.a)({},e,n),Object(c.a)({},o)));case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(9),t.t0.errors&&(g=t.t0.errors.map((function(t,e){var n=t.message,i="CODE_LOGIC_ERROR"===n?p.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(e)}):i})));case 17:if(g.length||!h){t.next=22;break}return t.next=20,Promise.all(n.map((function(t,n){return G("".concat(e,".").concat(n),t,h,o,l)})));case 20:return v=t.sent,t.abrupt("return",v.reduce((function(t,e){return[].concat(Object(s.a)(t),Object(s.a)(e))}),[]));case 22:return y=Object(c.a)(Object(c.a)({},i),{},{name:e,enum:(i.enum||[]).join(", ")},l),m=g.map((function(t){return"string"===typeof t?Y(t,y):t})),t.abrupt("return",m);case 25:case"end":return t.stop()}}),t,null,[[9,14]])})))).apply(this,arguments)}function X(t,e,n,r,i,o){var a,s=t.join("."),l=n.map((function(t,e){var n=t.validator,r=Object(c.a)(Object(c.a)({},t),{},{ruleIndex:e});return n&&(r.validator=function(t,e,r){var i=!1,o=n(t,e,(function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:Z;if(i.validatePromise===r){i.validatePromise=null;var e=[],n=[];t.forEach((function(t){var r=t.rule.warningOnly,i=t.errors,o=void 0===i?Z:i;r?n.push.apply(n,Object(s.a)(o)):e.push.apply(e,Object(s.a)(o))})),i.errors=e,i.warnings=n,i.triggerMetaEvent(),i.reRender()}})),h}));return i.validatePromise=r,i.dirty=!0,i.errors=Z,i.warnings=Z,i.triggerMetaEvent(),i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(v).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()}},i.getOnlyChild=function(t){if("function"===typeof t){var e=i.getMeta();return Object(c.a)(Object(c.a)({},i.getOnlyChild(t(i.getControlled(),e,i.props.fieldContext))),{},{isFunction:!0})}var n=Object(p.a)(t);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(t){var e=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return T(t||e(!0),n)},i.getControlled=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.props,n=e.trigger,r=e.validateTrigger,o=e.getValueFromEvent,s=e.normalize,l=e.valuePropName,u=e.getValueProps,f=e.fieldContext,h=void 0!==r?r:f.validateTrigger,d=i.getNamePath(),p=f.getInternalHooks,g=f.getFieldsValue,y=p(v),m=y.dispatch,x=i.getValue(),O=u||function(t){return Object(a.a)({},l,t)},j=t[n],w=Object(c.a)(Object(c.a)({},t),O(x));w[n]=function(){var t;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var e=arguments.length,n=new Array(e),r=0;r=0&&e<=n.length?(u.keys=[].concat(Object(s.a)(u.keys.slice(0,e)),[u.id],Object(s.a)(u.keys.slice(e))),o([].concat(Object(s.a)(n.slice(0,e)),[t],Object(s.a)(n.slice(e))))):(u.keys=[].concat(Object(s.a)(u.keys),[u.id]),o([].concat(Object(s.a)(n),[t]))),u.id+=1},remove:function(t){var e=c(),n=new Set(Array.isArray(t)?t:[t]);n.size<=0||(u.keys=u.keys.filter((function(t,e){return!n.has(e)})),o(e.filter((function(t,e){return!n.has(e)}))))},move:function(t,e){if(t!==e){var n=c();t<0||t>=n.length||e<0||e>=n.length||(u.keys=H(u.keys,t,e),o(H(n,t,e)))}}},d=r||[];return Array.isArray(d)||(d=[]),i(d.map((function(t,e){var n=u.keys[e];return void 0===n&&(u.keys[e]=u.id,n=u.keys[e],u.id+=1),{name:e,key:n,isListField:!0}})),h,e)}))))},rt=n(563);var it="__@field_split__";function ot(t){return t.map((function(t){return"".concat(Object(S.a)(t),":").concat(t)})).join(it)}var at=function(){function t(){Object(l.a)(this,t),this.kvs=new Map}return Object(u.a)(t,[{key:"set",value:function(t,e){this.kvs.set(ot(t),e)}},{key:"get",value:function(t){return this.kvs.get(ot(t))}},{key:"update",value:function(t,e){var n=e(this.get(t));n?this.set(t,n):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(ot(t))}},{key:"map",value:function(t){return Object(s.a)(this.kvs.entries()).map((function(e){var n=Object(rt.a)(e,2),r=n[0],i=n[1],o=r.split(it);return t({key:o.map((function(t){var e=t.match(/^([^:]*):(.*)$/),n=Object(rt.a)(e,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var t={};return this.map((function(e){var n=e.key,r=e.value;return t[n.join(".")]=r,null})),t}}]),t}(),ct=["name","errors"],st=Object(u.a)((function t(e){var n=this;Object(l.a)(this,t),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(t){return t===v?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(g.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(t){n.subscribable=t},this.prevWithoutPreserves=null,this.setInitialValues=function(t,e){if(n.initialValues=t||{},e){var r,i=_({},t,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(e){var n=e.key;i=L(i,n,T(t,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}},this.destroyForm=function(){var t=new at;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t},this.getInitialValue=function(t){var e=T(n.initialValues,t);return t.length?I(e):e},this.setCallbacks=function(t){n.callbacks=t},this.setValidateMessages=function(t){n.validateMessages=t},this.setPreserve=function(t){n.preserve=t},this.watchList=[],this.registerWatch=function(t){return n.watchList.push(t),function(){n.watchList=n.watchList.filter((function(e){return e!==t}))}},this.notifyWatch=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var e=n.getFieldsValue();n.watchList.forEach((function(n){n(e,t)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(t){n.store=t},this.getFieldEntities=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?n.fieldEntities.filter((function(t){return t.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new at;return n.getFieldEntities(t).forEach((function(t){var n=t.getNamePath();e.set(n,t)})),e},this.getFieldEntitiesForNamePathList=function(t){if(!t)return n.getFieldEntities(!0);var e=n.getFieldsMap(!0);return t.map((function(t){var n=F(t);return e.get(n)||{INVALIDATE_NAME_PATH:F(t)}}))},this.getFieldsValue=function(t,e){if(n.warningUnhooked(),!0===t&&!e)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(t)?t:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(t||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(e){var a="getMeta"in n?n.getMeta():null;e(a)&&i.push(o)}else i.push(o)})),N(n.store,i.map(F))},this.getFieldValue=function(t){n.warningUnhooked();var e=F(t);return T(n.store,e)},this.getFieldsError=function(t){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(t).map((function(e,n){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:F(t[n]),errors:[],warnings:[]}}))},this.getFieldError=function(t){n.warningUnhooked();var e=F(t);return n.getFieldsError([e])[0].errors},this.getFieldWarning=function(t){n.warningUnhooked();var e=F(t);return n.getFieldsError([e])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var t=arguments.length,e=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=new at,r=n.getFieldEntities(!0);r.forEach((function(t){var n=t.props.initialValue,r=t.getNamePath();if(void 0!==n){var i=e.get(r)||new Set;i.add({entity:t,value:n}),e.set(r,i)}}));var i,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))Object(g.a)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=e.get(i);if(o&&o.size>1)Object(g.a)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);t.skipExist&&void 0!==a||n.updateStore(L(n.store,i,Object(s.a)(o)[0].value))}}}}))};t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach((function(t){var n,r=e.get(t);r&&(n=i).push.apply(n,Object(s.a)(Object(s.a)(r).map((function(t){return t.entity}))))}))):i=r,o(i)},this.resetFields=function(t){n.warningUnhooked();var e=n.store;if(!t)return n.updateStore(_({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(e,null,{type:"reset"}),void n.notifyWatch();var r=t.map(F);r.forEach((function(t){var e=n.getInitialValue(t);n.updateStore(L(n.store,t,e))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(e,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(t){n.warningUnhooked();var e=n.store,r=[];t.forEach((function(t){var i=t.name,a=(t.errors,Object(o.a)(t,ct)),c=F(i);r.push(c),"value"in a&&n.updateStore(L(n.store,c,a.value)),n.notifyObservers(e,[c],{type:"setField",data:t})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(t){var e=t.getNamePath(),r=t.getMeta(),i=Object(c.a)(Object(c.a)({},r),{},{name:e,value:n.getFieldValue(e)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))},this.initEntityValue=function(t){var e=t.props.initialValue;if(void 0!==e){var r=t.getNamePath();void 0===T(n.store,r)&&n.updateStore(L(n.store,r,e))}},this.isMergedPreserve=function(t){var e=void 0!==t?t:n.preserve;return null===e||void 0===e||e},this.registerField=function(t){n.fieldEntities.push(t);var e=t.getNamePath();if(n.notifyWatch([e]),void 0!==t.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[t],skipExist:!0}),n.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(e){return e!==t})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(e);if(e.length&&n.getFieldValue(e)!==a&&n.fieldEntities.every((function(t){return!z(t.getNamePath(),e)}))){var c=n.store;n.updateStore(L(c,e,a,!0)),n.notifyObservers(c,[e],{type:"remove"}),n.triggerDependenciesUpdate(c,e)}}n.notifyWatch([e])}},this.dispatch=function(t){switch(t.type){case"updateValue":var e=t.namePath,r=t.value;n.updateValue(e,r);break;case"validateField":var i=t.namePath,o=t.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(t,e,r){if(n.subscribable){var i=Object(c.a)(Object(c.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(t,e,i)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(t,e){var r=n.getDependencyChildrenFields(e);return r.length&&n.validateFields(r),n.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[e].concat(Object(s.a)(r))}),r},this.updateValue=function(t,e){var r=F(t),i=n.store;n.updateStore(L(n.store,r,e)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(N(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(s.a)(o)))},this.setFieldsValue=function(t){n.warningUnhooked();var e=n.store;if(t){var r=_(n.store,t);n.updateStore(r)}n.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.getDependencyChildrenFields=function(t){var e=new Set,r=[],i=new at;n.getFieldEntities().forEach((function(t){(t.props.dependencies||[]).forEach((function(e){var n=F(e);i.update(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(t),e}))}))}));return function t(n){(i.get(n)||new Set).forEach((function(n){if(!e.has(n)){e.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),t(i))}}))}(t),r},this.triggerOnFieldsChange=function(t,e){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(e){var o=new at;e.forEach((function(t){var e=t.name,n=t.errors;o.set(e,n)})),i.forEach((function(t){t.errors=o.get(t.name)||t.errors}))}r(i.filter((function(e){var n=e.name;return D(t,n)})),i)}},this.validateFields=function(t,e){n.warningUnhooked();var r=!!t,i=r?t.map(F):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null===e||void 0===e?void 0:e.recursive)&&r){var l=a.getNamePath();l.every((function(e,n){return t[n]===e||void 0===t[n]}))&&i.push(l)}if(a.props.rules&&a.props.rules.length){var u=a.getNamePath();if(!r||D(i,u)){var f=a.validateRules(Object(c.a)({validateMessages:Object(c.a)(Object(c.a)({},C),n.validateMessages)},e));o.push(f.then((function(){return{name:u,errors:[],warnings:[]}})).catch((function(t){var e=[],n=[];return t.forEach((function(t){var r=t.rule.warningOnly,i=t.errors;r?n.push.apply(n,Object(s.a)(i)):e.push.apply(e,Object(s.a)(i))})),e.length?Promise.reject({name:u,errors:e,warnings:n}):{name:u,errors:e,warnings:n}})))}}}));var a=function(t){var e=!1,n=t.length,r=[];return t.length?new Promise((function(i,o){t.forEach((function(t,a){t.catch((function(t){return e=!0,t})).then((function(t){n-=1,r[a]=t,n>0||(e&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(t){return t})).then((function(t){var e=t.map((function(t){return t.name}));n.notifyObservers(n.store,e,{type:"validateFinish"}),n.triggerOnFieldsChange(e,t)}));var l=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(t){var e=t.filter((function(t){return t&&t.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:e,outOfDate:n.lastValidatePromise!==a})}));return l.catch((function(t){return t})),l},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(t){var e=n.callbacks.onFinish;if(e)try{e(t)}catch(r){console.error(r)}})).catch((function(t){var e=n.callbacks.onFinishFailed;e&&e(t)}))},this.forceRootUpdate=e}));var lt=function(t){var e=r.useRef(),n=r.useState({}),i=Object(rt.a)(n,2)[1];if(!e.current)if(t)e.current=t;else{var o=new st((function(){i({})}));e.current=o.getForm()}return[e.current]},ut=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ft=function(t){var e=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,s=r.useContext(ut),l=r.useRef({});return r.createElement(ut.Provider,{value:Object(c.a)(Object(c.a)({},s),{},{validateMessages:Object(c.a)(Object(c.a)({},s.validateMessages),e),triggerFormChange:function(t,e){n&&n(t,{changedFields:e,forms:l.current}),s.triggerFormChange(t,e)},triggerFormFinish:function(t,e){i&&i(t,{values:e,forms:l.current}),s.triggerFormFinish(t,e)},registerForm:function(t,e){t&&(l.current=Object(c.a)(Object(c.a)({},l.current),{},Object(a.a)({},t,e))),s.registerForm(t,e)},unregisterForm:function(t){var e=Object(c.a)({},l.current);delete e[t],l.current=e,s.unregisterForm(t)}})},o)},ht=ut,dt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],pt=function(t,e){var n=t.name,a=t.initialValues,l=t.fields,u=t.form,f=t.preserve,h=t.children,d=t.component,p=void 0===d?"form":d,g=t.validateMessages,y=t.validateTrigger,b=void 0===y?"onChange":y,x=t.onValuesChange,O=t.onFieldsChange,j=t.onFinish,w=t.onFinishFailed,C=Object(o.a)(t,dt),E=r.useContext(ht),M=lt(u),k=Object(rt.a)(M,1)[0],P=k.getInternalHooks(v),A=P.useSubscribe,I=P.setInitialValues,F=P.setCallbacks,T=P.setValidateMessages,L=P.setPreserve,N=P.destroyForm;r.useImperativeHandle(e,(function(){return k})),r.useEffect((function(){return E.registerForm(n,k),function(){E.unregisterForm(n)}}),[E,k,n]),T(Object(c.a)(Object(c.a)({},E.validateMessages),g)),F({onValuesChange:x,onFieldsChange:function(t){if(E.triggerFormChange(n,t),O){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=Object(r.useState)(),i=Object(rt.a)(n,2),o=i[0],a=i[1],c=Object(r.useMemo)((function(){return gt(o)}),[o]),s=Object(r.useRef)(c);s.current=c;var l=Object(r.useContext)(m),u=e||l,f=u&&u._init,h=F(t),d=Object(r.useRef)(h);return d.current=h,Object(r.useEffect)((function(){if(f){var t=u.getFieldsValue,e=(0,(0,u.getInternalHooks)(v).registerWatch)((function(t){var e=T(t,d.current),n=gt(e);s.current!==n&&(s.current=n,a(e))})),n=T(t(),d.current);return a(n),e}}),[]),o},yt=r.forwardRef(pt);yt.FormProvider=ft,yt.Field=tt,yt.List=nt,yt.useForm=lt,yt.useWatch=vt;e.f=yt},651:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(23),i=n(634),o={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function s(t){return"boolean"===typeof t?t?o:a:Object(r.a)(Object(r.a)({},a),t)}function l(t){var e=t.arrowWidth,n=void 0===e?4:e,o=t.horizontalArrowShift,a=void 0===o?16:o,l=t.verticalArrowShift,u=void 0===l?8:l,f=t.autoAdjustOverflow,h=t.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,u+n]}};return Object.keys(d).forEach((function(t){d[t]=h?Object(r.a)(Object(r.a)({},d[t]),{overflow:s(f),targetOffset:c}):Object(r.a)(Object(r.a)({},i.a[t]),{overflow:s(f)}),d[t].ignoreShake=!0})),d}},652:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(563),i=n(2);function o(){var t=i.useReducer((function(t){return t+1}),0);return Object(r.a)(t,2)[1]}},656:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(646);function i(t,e){if(t){if("string"===typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},657:function(t,e,n){"use strict";n.d(e,"c",(function(){return ct})),n.d(e,"b",(function(){return ot})),n.d(e,"a",(function(){return U})),n.d(e,"e",(function(){return G}));var r=n(23),i=n(565),o=n(561),a=n(559),c=n(563),s=n(567),l=n(566),u=n(577),f=n(568),h=n(2),d=n(560),p=n.n(d),g=n(576),v=n(750),y=n(588),m=n(603),b=n(610);function x(t,e){var n,r=t.key;return"value"in t&&(n=t.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(e)}function O(t,e){var n=t||{};return{label:n.label||(e?"children":"label"),value:n.value||"value",options:n.options||"options"}}function j(t){var e=Object(a.a)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(f.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var w=n(607),C=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(t,e){var n=t.prefixCls,i=(t.disabled,t.visible),c=t.children,l=t.popupElement,u=t.containerWidth,f=t.animation,d=t.transitionName,g=t.dropdownStyle,v=t.dropdownClassName,y=t.direction,m=void 0===y?"ltr":y,b=t.placement,x=t.dropdownMatchSelectWidth,O=t.dropdownRender,j=t.dropdownAlign,S=t.getPopupContainer,E=t.empty,M=t.getTriggerDOMNode,k=t.onPopupVisibleChange,P=t.onPopupMouseEnter,A=Object(s.a)(t,C),I="".concat(n,"-dropdown"),F=l;O&&(F=O(l));var T=h.useMemo((function(){return function(t){var e=!0===t?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}}(x)}),[x]),L=f?"".concat(I,"-").concat(f):d,N=h.useRef(null);h.useImperativeHandle(e,(function(){return{getPopupElement:function(){return N.current}}}));var D=Object(a.a)({minWidth:u},g);return"number"===typeof x?D.width=x:x&&(D.width=u),h.createElement(w.a,Object(r.a)({},A,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===m?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:I,popupTransitionName:L,popup:h.createElement("div",{ref:N,onMouseEnter:P},F),popupAlign:j,popupVisible:i,getPopupContainer:S,popupClassName:p()(v,Object(o.a)({},"".concat(I,"-empty"),E)),popupStyle:D,getTriggerDOMNode:M,onPopupVisibleChange:k}),c)},E=h.forwardRef(S);E.displayName="SelectTrigger";var M=E,k=n(593),P=n(639),A=function(t){var e,n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.onMouseDown,a=t.onClick,c=t.children;return e="function"===typeof r?r(i):r,h.createElement("span",{className:n,onMouseDown:function(t){t.preventDefault(),o&&o(t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==e?e:h.createElement("span",{className:p()(n.split(/\s+/).map((function(t){return"".concat(t,"-icon")})))},c))},I=function(t,e){var n,r,i=t.prefixCls,o=t.id,c=t.inputElement,s=t.disabled,l=t.tabIndex,u=t.autoFocus,d=t.autoComplete,g=t.editable,v=t.activeDescendantId,m=t.value,b=t.maxLength,x=t.onKeyDown,O=t.onMouseDown,j=t.onChange,w=t.onPaste,C=t.onCompositionStart,S=t.onCompositionEnd,E=t.open,M=t.attrs,k=c||h.createElement("input",null),P=k,A=P.ref,I=P.props,F=I.onKeyDown,T=I.onChange,L=I.onMouseDown,N=I.onCompositionStart,D=I.onCompositionEnd,B=I.style;return Object(f.c)(!("maxLength"in k.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),k=h.cloneElement(k,Object(a.a)(Object(a.a)(Object(a.a)({type:"search"},I),{},{id:o,ref:Object(y.a)(e,A),disabled:s,tabIndex:l,autoComplete:d||"off",autoFocus:u,className:p()("".concat(i,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":v},M),{},{value:g?m:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:Object(a.a)(Object(a.a)({},B),{},{opacity:g?null:0}),onKeyDown:function(t){x(t),F&&F(t)},onMouseDown:function(t){O(t),L&&L(t)},onChange:function(t){j(t),T&&T(t)},onCompositionStart:function(t){C(t),N&&N(t)},onCompositionEnd:function(t){S(t),D&&D(t)},onPaste:w}))},F=h.forwardRef(I);F.displayName="Input";var T=F;function L(t){return Array.isArray(t)?t:void 0!==t?[t]:[]}var N="undefined"!==typeof window&&window.document&&window.document.documentElement;function D(t){var e;return null!==(e=t.key)&&void 0!==e?e:t.value}var B=function(t){t.preventDefault(),t.stopPropagation()},R=function(t){var e,n,r=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,u=t.inputRef,f=t.placeholder,d=t.disabled,g=t.mode,v=t.showSearch,y=t.autoFocus,m=t.autoComplete,b=t.activeDescendantId,x=t.tabIndex,O=t.removeIcon,j=t.maxTagCount,w=t.maxTagTextLength,C=t.maxTagPlaceholder,S=void 0===C?function(t){return"+ ".concat(t.length," ...")}:C,E=t.tagRender,M=t.onToggleOpen,I=t.onRemove,F=t.onInputChange,L=t.onInputPaste,R=t.onInputKeyDown,_=t.onInputMouseDown,z=t.onInputCompositionStart,V=t.onInputCompositionEnd,H=h.useRef(null),K=Object(h.useState)(0),Y=Object(c.a)(K,2),G=Y[0],W=Y[1],X=Object(h.useState)(!1),q=Object(c.a)(X,2),U=q[0],$=q[1],Z="".concat(i,"-selection"),Q=s||"tags"===g?l:"",J="tags"===g||v&&(s||U);function tt(t,e,n,r,i){return h.createElement("span",{className:p()("".concat(Z,"-item"),Object(o.a)({},"".concat(Z,"-item-disabled"),n)),title:"string"===typeof t||"number"===typeof t?t.toString():void 0},h.createElement("span",{className:"".concat(Z,"-item-content")},e),r&&h.createElement(A,{className:"".concat(Z,"-item-remove"),onMouseDown:B,onClick:i,customizeIcon:O},"\xd7"))}e=function(){W(H.current.scrollWidth)},n=[Q],N?h.useLayoutEffect(e,n):h.useEffect(e,n);var et=h.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},h.createElement(T,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:d,autoFocus:y,autoComplete:m,editable:J,activeDescendantId:b,value:Q,onKeyDown:R,onMouseDown:_,onChange:F,onPaste:L,onCompositionStart:z,onCompositionEnd:V,tabIndex:x,attrs:Object(k.a)(t,!0)}),h.createElement("span",{ref:H,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},Q,"\xa0")),nt=h.createElement(P.a,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:function(t){var e=t.disabled,n=t.label,r=t.value,i=!d&&!e,o=n;if("number"===typeof w&&("string"===typeof n||"number"===typeof n)){var a=String(o);a.length>w&&(o="".concat(a.slice(0,w),"..."))}var c=function(e){e&&e.stopPropagation(),I(t)};return"function"===typeof E?function(t,e,n,r,i){return h.createElement("span",{onMouseDown:function(t){B(t),M(!s)}},E({label:e,value:t,disabled:n,closable:r,onClose:i}))}(r,o,e,i,c):tt(n,o,e,i,c)},renderRest:function(t){var e="function"===typeof S?S(t):S;return tt(e,e,!1)},suffix:et,itemKey:D,maxCount:j});return h.createElement(h.Fragment,null,nt,!a.length&&!Q&&h.createElement("span",{className:"".concat(Z,"-placeholder")},f))},_=function(t){var e=t.inputElement,n=t.prefixCls,r=t.id,i=t.inputRef,o=t.disabled,a=t.autoFocus,s=t.autoComplete,l=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,p=t.placeholder,g=t.tabIndex,v=t.showSearch,y=t.searchValue,m=t.activeValue,b=t.maxLength,x=t.onInputKeyDown,O=t.onInputMouseDown,j=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,S=t.onInputCompositionEnd,E=h.useState(!1),M=Object(c.a)(E,2),P=M[0],A=M[1],I="combobox"===u,F=I||v,L=d[0],N=y||"";I&&m&&!P&&(N=m),h.useEffect((function(){I&&A(!1)}),[I,m]);var D=!("combobox"!==u&&!f&&!v)&&!!N,B=!L||"string"!==typeof L.label&&"number"!==typeof L.label?void 0:L.label.toString();return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(T,{ref:i,prefixCls:n,id:r,open:f,inputElement:e,disabled:o,autoFocus:a,autoComplete:s,editable:F,activeDescendantId:l,value:N,onKeyDown:x,onMouseDown:O,onChange:function(t){A(!0),j(t)},onPaste:w,onCompositionStart:C,onCompositionEnd:S,tabIndex:g,attrs:Object(k.a)(t,!0),maxLength:I?b:void 0})),!I&&L&&!D&&h.createElement("span",{className:"".concat(n,"-selection-item"),title:B},L.label),function(){if(L)return null;var t=D?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:t},p)}())};function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=h.useRef(null),n=h.useRef(null);function r(r){(r||null===e.current)&&(e.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){e.current=null}),t)}return h.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return e.current},r]}var V=function(t,e){var n=Object(h.useRef)(null),i=Object(h.useRef)(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,f=t.onSearch,d=t.onSearchSubmit,p=t.onToggleOpen,v=t.onInputKeyDown,y=t.domRef;h.useImperativeHandle(e,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var m=z(0),b=Object(c.a)(m,2),x=b[0],O=b[1],j=Object(h.useRef)(null),w=function(t){!1!==f(t,!0,i.current)&&p(!0)},C={inputRef:n,onInputKeyDown:function(t){var e,n=t.which;n!==g.a.UP&&n!==g.a.DOWN||t.preventDefault(),v&&v(t),n!==g.a.ENTER||"tags"!==s||i.current||a||null===d||void 0===d||d(t.target.value),e=n,[g.a.ESC,g.a.SHIFT,g.a.BACKSPACE,g.a.TAB,g.a.WIN_KEY,g.a.ALT,g.a.META,g.a.WIN_KEY_RIGHT,g.a.CTRL,g.a.SEMICOLON,g.a.EQUALS,g.a.CAPS_LOCK,g.a.CONTEXT_MENU,g.a.F1,g.a.F2,g.a.F3,g.a.F4,g.a.F5,g.a.F6,g.a.F7,g.a.F8,g.a.F9,g.a.F10,g.a.F11,g.a.F12].includes(e)||p(!0)},onInputMouseDown:function(){O(!0)},onInputChange:function(t){var e=t.target.value;if(u&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");e=e.replace(n,j.current)}j.current=null,w(e)},onInputPaste:function(t){var e=t.clipboardData.getData("text");j.current=e},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(t){i.current=!1,"combobox"!==s&&w(t.target.value)}},S="multiple"===s||"tags"===s?h.createElement(R,Object(r.a)({},t,C)):h.createElement(_,Object(r.a)({},t,C));return h.createElement("div",{ref:y,className:"".concat(o,"-selector"),onClick:function(t){t.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(t){var e=x();t.target===n.current||e||t.preventDefault(),("combobox"===s||l&&e)&&a||(a&&f("",!0,!1),p())}},S)},H=h.forwardRef(V);H.displayName="Selector";var K=H;var Y=h.createContext(null);function G(){return h.useContext(Y)}var W=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(t){return"tags"===t||"multiple"===t}var U=h.forwardRef((function(t,e){var n,f,d=t.id,x=t.prefixCls,O=t.className,j=t.showSearch,w=t.tagRender,C=t.direction,S=t.omitDomProps,E=t.displayValues,k=t.onDisplayValuesChange,P=t.emptyOptions,I=t.notFoundContent,F=void 0===I?"Not Found":I,T=t.onClear,L=t.mode,N=t.disabled,D=t.loading,B=t.getInputElement,R=t.getRawInputElement,_=t.open,V=t.defaultOpen,H=t.onDropdownVisibleChange,G=t.activeValue,U=t.onActiveValueChange,$=t.activeDescendantId,Z=t.searchValue,Q=t.onSearch,J=t.onSearchSplit,tt=t.tokenSeparators,et=t.allowClear,nt=t.showArrow,rt=t.inputIcon,it=t.clearIcon,ot=t.OptionList,at=t.animation,ct=t.transitionName,st=t.dropdownStyle,lt=t.dropdownClassName,ut=t.dropdownMatchSelectWidth,ft=t.dropdownRender,ht=t.dropdownAlign,dt=t.placement,pt=t.getPopupContainer,gt=t.showAction,vt=void 0===gt?[]:gt,yt=t.onFocus,mt=t.onBlur,bt=t.onKeyUp,xt=t.onKeyDown,Ot=t.onMouseDown,jt=Object(s.a)(t,W),wt=q(L),Ct=(void 0!==j?j:wt)||"combobox"===L,St=Object(a.a)({},jt);X.forEach((function(t){delete St[t]})),null===S||void 0===S||S.forEach((function(t){delete St[t]}));var Et=h.useState(!1),Mt=Object(c.a)(Et,2),kt=Mt[0],Pt=Mt[1];h.useEffect((function(){Pt(Object(v.a)())}),[]);var At=h.useRef(null),It=h.useRef(null),Ft=h.useRef(null),Tt=h.useRef(null),Lt=h.useRef(null),Nt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=h.useState(!1),n=Object(c.a)(e,2),r=n[0],i=n[1],o=h.useRef(null),a=function(){window.clearTimeout(o.current)};h.useEffect((function(){return a}),[]);var s=function(e,n){a(),o.current=window.setTimeout((function(){i(e),n&&n()}),t)};return[r,s,a]}(),Dt=Object(c.a)(Nt,3),Bt=Dt[0],Rt=Dt[1],_t=Dt[2];h.useImperativeHandle(e,(function(){var t,e;return{focus:null===(t=Tt.current)||void 0===t?void 0:t.focus,blur:null===(e=Tt.current)||void 0===e?void 0:e.blur,scrollTo:function(t){var e;return null===(e=Lt.current)||void 0===e?void 0:e.scrollTo(t)}}}));var zt=h.useMemo((function(){var t;if("combobox"!==L)return Z;var e=null===(t=E[0])||void 0===t?void 0:t.value;return"string"===typeof e||"number"===typeof e?String(e):""}),[Z,L,E]),Vt="combobox"===L&&"function"===typeof B&&B()||null,Ht="function"===typeof R&&R(),Kt=Object(y.d)(It,null===Ht||void 0===Ht||null===(n=Ht.props)||void 0===n?void 0:n.ref),Yt=Object(u.a)(void 0,{defaultValue:V,value:_}),Gt=Object(c.a)(Yt,2),Wt=Gt[0],Xt=Gt[1],qt=Wt,Ut=!F&&P;(N||Ut&&qt&&"combobox"===L)&&(qt=!1);var $t=!Ut&&qt,Zt=h.useCallback((function(t){var e=void 0!==t?t:!qt;qt===e||N||(Xt(e),null===H||void 0===H||H(e))}),[N,qt,Xt,H]),Qt=h.useMemo((function(){return(tt||[]).some((function(t){return["\n","\r\n"].includes(t)}))}),[tt]),Jt=function(t,e,n){var r=!0,o=t;null===U||void 0===U||U(null);var a=n?null:function(t,e){if(!e||!e.length)return null;var n=!1,r=function t(e,r){var o=Object(b.a)(r),a=o[0],c=o.slice(1);if(!a)return[e];var s=e.split(a);return n=n||s.length>1,s.reduce((function(e,n){return[].concat(Object(i.a)(e),Object(i.a)(t(n,c)))}),[]).filter((function(t){return t}))}(t,e);return n?r:null}(t,tt);return"combobox"!==L&&a&&(o="",null===J||void 0===J||J(a),Zt(!1),r=!1),Q&&zt!==o&&Q(o,{source:e?"typing":"effect"}),r};h.useEffect((function(){qt||wt||"combobox"===L||Jt("",!1,!1)}),[qt]),h.useEffect((function(){Wt&&N&&Xt(!1),N&&Rt(!1)}),[N]);var te=z(),ee=Object(c.a)(te,2),ne=ee[0],re=ee[1],ie=h.useRef(!1),oe=[];h.useEffect((function(){return function(){oe.forEach((function(t){return clearTimeout(t)})),oe.splice(0,oe.length)}}),[]);var ae,ce=h.useState(null),se=Object(c.a)(ce,2),le=se[0],ue=se[1],fe=h.useState({}),he=Object(c.a)(fe,2)[1];Object(m.a)((function(){if($t){var t,e=Math.ceil(null===(t=At.current)||void 0===t?void 0:t.offsetWidth);le===e||Number.isNaN(e)||ue(e)}}),[$t]),Ht&&(ae=function(t){Zt(t)}),function(t,e,n,r){var i=h.useRef(null);i.current={open:e,triggerOpen:n,customizedTrigger:r},h.useEffect((function(){function e(e){var n;if(!(null===(n=i.current)||void 0===n?void 0:n.customizedTrigger)){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&t().filter((function(t){return t})).every((function(t){return!t.contains(r)&&t!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var t;return[At.current,null===(t=Ft.current)||void 0===t?void 0:t.getPopupElement()]}),$t,Zt,!!Ht);var de,pe,ge=h.useMemo((function(){return Object(a.a)(Object(a.a)({},t),{},{notFoundContent:F,open:qt,triggerOpen:$t,id:d,showSearch:Ct,multiple:wt,toggleOpen:Zt})}),[t,F,$t,qt,d,Ct,wt,Zt]),ve=void 0!==nt?nt:D||!wt&&"combobox"!==L;ve&&(de=h.createElement(A,{className:p()("".concat(x,"-arrow"),Object(o.a)({},"".concat(x,"-arrow-loading"),D)),customizeIcon:rt,customizeIconProps:{loading:D,searchValue:zt,open:qt,focused:Bt,showSearch:Ct}}));!N&&et&&(E.length||zt)&&(pe=h.createElement(A,{className:"".concat(x,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),k([],{type:"clear",values:E}),Jt("",!1,!1)},customizeIcon:it},"\xd7"));var ye,me=h.createElement(ot,{ref:Lt}),be=p()(x,O,(f={},Object(o.a)(f,"".concat(x,"-focused"),Bt),Object(o.a)(f,"".concat(x,"-multiple"),wt),Object(o.a)(f,"".concat(x,"-single"),!wt),Object(o.a)(f,"".concat(x,"-allow-clear"),et),Object(o.a)(f,"".concat(x,"-show-arrow"),ve),Object(o.a)(f,"".concat(x,"-disabled"),N),Object(o.a)(f,"".concat(x,"-loading"),D),Object(o.a)(f,"".concat(x,"-open"),qt),Object(o.a)(f,"".concat(x,"-customize-input"),Vt),Object(o.a)(f,"".concat(x,"-show-search"),Ct),f)),xe=h.createElement(M,{ref:Ft,disabled:N,prefixCls:x,visible:$t,popupElement:me,containerWidth:le,animation:at,transitionName:ct,dropdownStyle:st,dropdownClassName:lt,direction:C,dropdownMatchSelectWidth:ut,dropdownRender:ft,dropdownAlign:ht,placement:dt,getPopupContainer:pt,empty:P,getTriggerDOMNode:function(){return It.current},onPopupVisibleChange:ae,onPopupMouseEnter:function(){he({})}},Ht?h.cloneElement(Ht,{ref:Kt}):h.createElement(K,Object(r.a)({},t,{domRef:It,prefixCls:x,inputElement:Vt,ref:Tt,id:d,showSearch:Ct,mode:L,activeDescendantId:$,tagRender:w,values:E,open:qt,onToggleOpen:Zt,activeValue:G,searchValue:zt,onSearch:Jt,onSearchSubmit:function(t){t&&t.trim()&&Q(t,{source:"submit"})},onRemove:function(t){var e=E.filter((function(e){return e!==t}));k(e,{type:"remove",values:[t]})},tokenWithEnter:Qt})));return ye=Ht?xe:h.createElement("div",Object(r.a)({className:be},St,{ref:At,onMouseDown:function(t){var e,n=t.target,r=null===(e=Ft.current)||void 0===e?void 0:e.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var t,e=oe.indexOf(i);(-1!==e&&oe.splice(e,1),_t(),kt||r.contains(document.activeElement))||(null===(t=Tt.current)||void 0===t||t.focus())}));oe.push(i)}for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c=0;c-=1){var s=o[c];if(!s.disabled){o.splice(c,1),a=s;break}}a&&k(o,{type:"remove",values:[a]})}for(var l=arguments.length,u=new Array(l>1?l-1:0),f=1;f1?e-1:0),r=1;r1&&void 0!==arguments[1]&&arguments[1];return Object(Q.a)(t).map((function(t,n){if(!h.isValidElement(t)||!t.type)return null;var r=t.type.isSelectOptGroup,i=t.key,o=t.props,c=o.children,l=Object(s.a)(o,tt);return e||!r?et(t):Object(a.a)(Object(a.a)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:nt(c)})})).filter((function(t){return t}))}function rt(t){var e=h.useRef();return e.current=t,h.useCallback((function(){return e.current.apply(e,arguments)}),[])}var it=function(){return null};it.isSelectOptGroup=!0;var ot=it,at=function(){return null};at.isSelectOption=!0;var ct=at,st=n(575),lt=n(620),ut=n(647);var ft=h.createContext(null),ht=["disabled","title","children","style","className"];function dt(t){return"string"===typeof t||"number"===typeof t}var pt=function(t,e){var n=G(),a=n.prefixCls,l=n.id,u=n.open,f=n.multiple,d=n.mode,v=n.searchValue,y=n.toggleOpen,m=n.notFoundContent,b=n.onPopupScroll,x=h.useContext(ft),O=x.flattenOptions,j=x.onActiveValue,w=x.defaultActiveFirstOption,C=x.onSelect,S=x.menuItemSelectedIcon,E=x.rawValues,M=x.fieldNames,P=x.virtual,I=x.listHeight,F=x.listItemHeight,T="".concat(a,"-item"),L=Object(lt.a)((function(){return O}),[u,O],(function(t,e){return e[0]&&t[1]!==e[1]})),N=h.useRef(null),D=function(t){t.preventDefault()},B=function(t){N.current&&N.current.scrollTo("number"===typeof t?{index:t}:t)},R=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=L.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];H(t);var n={source:e?"keyboard":"mouse"},r=L[t];r?j(r.value,t,n):j(null,-1,n)};Object(h.useEffect)((function(){K(!1!==w?R(0):-1)}),[L.length,v]);var Y=h.useCallback((function(t){return E.has(t)&&"combobox"!==d}),[d,Object(i.a)(E).toString()]);Object(h.useEffect)((function(){var t,e=setTimeout((function(){if(!f&&u&&1===E.size){var t=Array.from(E)[0],e=L.findIndex((function(e){return e.data.value===t}));-1!==e&&(K(e),B(e))}}));u&&(null===(t=N.current)||void 0===t||t.scrollTo(void 0));return function(){return clearTimeout(e)}}),[u,v]);var W=function(t){void 0!==t&&C(t,{selected:!E.has(t)}),f||y(!1)};if(h.useImperativeHandle(e,(function(){return{onKeyDown:function(t){var e=t.which,n=t.ctrlKey;switch(e){case g.a.N:case g.a.P:case g.a.UP:case g.a.DOWN:var r=0;if(e===g.a.UP?r=-1:e===g.a.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(e===g.a.N?r=1:e===g.a.P&&(r=-1)),0!==r){var i=R(V+r,r);B(i),K(i,!0)}break;case g.a.ENTER:var o=L[V];o&&!o.data.disabled?W(o.value):W(void 0),u&&t.preventDefault();break;case g.a.ESC:y(!1),u&&t.stopPropagation()}},onKeyUp:function(){},scrollTo:function(t){B(t)}}})),0===L.length)return h.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(T,"-empty"),onMouseDown:D},m);var X=Object.keys(M).map((function(t){return M[t]})),q=function(t){return t.label},U=function(t){var e=L[t];if(!e)return null;var n=e.data||{},i=n.value,o=e.group,a=Object(k.a)(n,!0),c=q(e);return e?h.createElement("div",Object(r.a)({"aria-label":"string"!==typeof c||o?null:c},a,{key:t,role:o?"presentation":"option",id:"".concat(l,"_list_").concat(t),"aria-selected":Y(i)}),i):null};return h.createElement(h.Fragment,null,h.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},U(V-1),U(V),U(V+1)),h.createElement(ut.a,{itemKey:"key",ref:N,data:L,height:I,itemHeight:F,fullHeight:!1,onMouseDown:D,onScroll:b,virtual:P},(function(t,e){var n,i=t.group,a=t.groupOption,c=t.data,l=t.label,u=t.value,f=c.key;if(i){var d,g=null!==(d=c.title)&&void 0!==d?d:dt(l)?l.toString():void 0;return h.createElement("div",{className:p()(T,"".concat(T,"-group")),title:g},void 0!==l?l:f)}var v=c.disabled,y=c.title,m=(c.children,c.style),b=c.className,x=Object(s.a)(c,ht),O=Object(st.a)(x,X),j=Y(u),w="".concat(T,"-option"),C=p()(T,w,b,(n={},Object(o.a)(n,"".concat(w,"-grouped"),a),Object(o.a)(n,"".concat(w,"-active"),V===e&&!v),Object(o.a)(n,"".concat(w,"-disabled"),v),Object(o.a)(n,"".concat(w,"-selected"),j),n)),E=q(t),M=!S||"function"===typeof S||j,P="number"===typeof E?E:E||u,I=dt(P)?P.toString():void 0;return void 0!==y&&(I=y),h.createElement("div",Object(r.a)({},Object(k.a)(O),{"aria-selected":j,className:C,title:I,onMouseMove:function(){V===e||v||K(e)},onClick:function(){v||W(u)},style:m}),h.createElement("div",{className:"".concat(w,"-content")},P),h.isValidElement(S)||j,M&&h.createElement(A,{className:"".concat(T,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:j}},j?"\u2713":null))})))},gt=h.forwardRef(pt);gt.displayName="OptionList";var vt=gt;var yt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],mt=["inputValue"];var bt=h.forwardRef((function(t,e){var n=t.id,f=t.mode,d=t.prefixCls,p=void 0===d?"rc-select":d,g=t.backfill,v=t.fieldNames,y=t.inputValue,m=t.searchValue,b=t.onSearch,w=t.autoClearSearchValue,C=void 0===w||w,S=t.onSelect,E=t.onDeselect,M=t.dropdownMatchSelectWidth,k=void 0===M||M,P=t.filterOption,A=t.filterSort,I=t.optionFilterProp,F=t.optionLabelProp,T=t.options,N=t.children,D=t.defaultActiveFirstOption,B=t.menuItemSelectedIcon,R=t.virtual,_=t.listHeight,z=void 0===_?200:_,V=t.listItemHeight,H=void 0===V?20:V,K=t.value,Y=t.defaultValue,G=t.labelInValue,W=t.onChange,X=Object(s.a)(t,yt),Q=Object(Z.a)(n),J=q(f),tt=!(T||!N),et=h.useMemo((function(){return(void 0!==P||"combobox"!==f)&&P}),[P,f]),it=h.useMemo((function(){return O(v,tt)}),[JSON.stringify(v),tt]),ot=Object(u.a)("",{value:void 0!==m?m:y,postState:function(t){return t||""}}),at=Object(c.a)(ot,2),ct=at[0],st=at[1],lt=function(t,e,n,r,i){return h.useMemo((function(){var o=t;!t&&(o=nt(e));var a=new Map,c=new Map,s=function(t,e,n){n&&"string"===typeof n&&t.set(e[n],e)};return function t(e){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,i=[],o=O(n,!1),a=o.label,c=o.value,s=o.options;function l(t,e){t.forEach((function(t){var n=t[a];if(e||!(s in t)){var o=t[c];i.push({key:x(t,i.length),groupOption:e,data:t,label:n,value:o})}else{var u=n;void 0===u&&r&&(u=t.label),i.push({key:x(t,i.length),group:!0,data:t,label:u}),l(t[s],!0)}}))}return l(t,!1),i}(It,{fieldNames:it,childrenAsData:tt})}),[It,it,tt]),Tt=function(t){var e=pt(t);if(Ot(e),W&&(e.length!==Ct.length||e.some((function(t,e){var n;return(null===(n=Ct[e])||void 0===n?void 0:n.value)!==(null===t||void 0===t?void 0:t.value)})))){var n=G?e:e.map((function(t){return t.value})),r=e.map((function(t){return j(St(t.value))}));W(J?n:n[0],J?r:r[0])}},Lt=h.useState(null),Nt=Object(c.a)(Lt,2),Dt=Nt[0],Bt=Nt[1],Rt=h.useState(0),_t=Object(c.a)(Rt,2),zt=_t[0],Vt=_t[1],Ht=void 0!==D?D:"combobox"!==f,Kt=h.useCallback((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,i=void 0===r?"keyboard":r;Vt(e),g&&"combobox"===f&&null!==t&&"keyboard"===i&&Bt(String(t))}),[g,f]),Yt=function(t,e){var n=function(){var e,n=St(t);return[G?{label:null===n||void 0===n?void 0:n[it.label],value:t,key:null!==(e=null===n||void 0===n?void 0:n.key)&&void 0!==e?e:t}:t,j(n)]};if(e&&S){var r=n(),i=Object(c.a)(r,2),o=i[0],a=i[1];S(o,a)}else if(!e&&E){var s=n(),l=Object(c.a)(s,2),u=l[0],f=l[1];E(u,f)}},Gt=rt((function(t,e){var n,r=!J||e.selected;n=r?J?[].concat(Object(i.a)(Ct),[t]):[t]:Ct.filter((function(e){return e.value!==t})),Tt(n),Yt(t,r),"combobox"===f?Bt(""):q&&!C||(st(""),Bt(""))})),Wt=h.useMemo((function(){var t=!1!==R&&!1!==k;return Object(a.a)(Object(a.a)({},lt),{},{flattenOptions:Ft,onActiveValue:Kt,defaultActiveFirstOption:Ht,onSelect:Gt,menuItemSelectedIcon:B,rawValues:Mt,fieldNames:it,virtual:t,listHeight:z,listItemHeight:H,childrenAsData:tt})}),[lt,Ft,Kt,Ht,Gt,B,Mt,it,R,k,z,H,tt]);return h.createElement(ft.Provider,{value:Wt},h.createElement(U,Object(r.a)({},X,{id:Q,prefixCls:p,ref:e,omitDomProps:mt,mode:f,displayValues:Et,onDisplayValuesChange:function(t,e){Tt(t),"remove"!==e.type&&"clear"!==e.type||e.values.forEach((function(t){Yt(t.value,!1)}))},searchValue:ct,onSearch:function(t,e){if(st(t),Bt(null),"submit"!==e.source)"blur"!==e.source&&("combobox"===f&&Tt(t),null===b||void 0===b||b(t));else{var n=(t||"").trim();if(n){var r=Array.from(new Set([].concat(Object(i.a)(Mt),[n])));Tt(r),Yt(n,!0),st("")}}},onSearchSplit:function(t){var e=t;"tags"!==f&&(e=t.map((function(t){var e=ht.get(t);return null===e||void 0===e?void 0:e.value})).filter((function(t){return void 0!==t})));var n=Array.from(new Set([].concat(Object(i.a)(Mt),Object(i.a)(e))));Tt(n),n.forEach((function(t){Yt(t,!0)}))},dropdownMatchSelectWidth:k,OptionList:vt,emptyOptions:!Ft.length,activeValue:Dt,activeDescendantId:"".concat(Q,"_list_").concat(zt)})))}));bt.Option=ct,bt.OptGroup=ot;var xt=bt;e.d=xt},658:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CheckOutlined";e.a=i.forwardRef(c)},659:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"f",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"e",(function(){return v}));var r=n(565),i=n(566),o=(n(23),n(567),n(2),n(568));n(635);function a(t,e){if(!t)return[];var n=t.slice(),r=n.indexOf(e);return r>=0&&n.splice(r,1),n}function c(t,e){var n=(t||[]).slice();return-1===n.indexOf(e)&&n.push(e),n}function s(t){return t.split("-")}function l(t,e){return"".concat(t,"-").concat(e)}function u(t){return t&&t.type&&t.type.isTreeNode}function f(t,e){var n=[];return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){var r=e.key,i=e.children;n.push(r),t(i)}))}(e[t].children),n}function h(t){if(t.parent){var e=s(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function d(t,e,n,r,i,o,a,c,l,u){var f,d=t.clientX,p=t.clientY,g=t.target.getBoundingClientRect(),v=g.top,y=g.height,m=(("rtl"===u?-1:1)*(((null===i||void 0===i?void 0:i.x)||0)-d)-12)/r,b=c[n.props.eventKey];if(p-1.5?o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1:o({dragNode:k,dropNode:P,dropPosition:0})?S=0:o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1:o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===S?null:(null===(f=b.parent)||void 0===f?void 0:f.key)||null,dropAllowed:A}}function p(t,e){if(t)return e.multiple?t.slice():t.length?[t[0]]:t}function g(t){if(!t)return null;var e;if(Array.isArray(t))e={checkedKeys:t,halfCheckedKeys:void 0};else{if("object"!==Object(i.a)(t))return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;e={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0}}return e}function v(t,e){var n=new Set;return(t||[]).forEach((function(t){!function t(r){if(!n.has(r)){var i=e[r];if(i){n.add(r);var o=i.parent;i.node.disabled||o&&t(o.key)}}}(t)})),Object(r.a)(n)}},661:function(t,e,n){"use strict";n.r(e);var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(657),s=n(575),l=n(2),u=n(775),f=n(631),h=n(591),d=n(587),p=n(583),g=n(598),v=n(594),y=n(668),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=1},subscribe:function(t){return c.size||this.register(),s+=1,c.set(s,t),t(l),s},unsubscribe:function(t){c.delete(t),c.size||this.unregister()},unregister:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],r=t.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),c.clear()},register:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],o=function(n){var o=n.matches;t.dispatch(Object(i.a)(Object(i.a)({},l),Object(r.a)({},e,o)))},c=window.matchMedia(n);c.addListener(o),t.matchHandlers[n]={mql:c,listener:o},o(c)}))}};e.a=u},664:function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r=n(23),i=n(561),o=n(563),a=n(566),c=n(560),s=n.n(c),l=n(575),u=n(2),f=n.n(u),h=n(775),d=n(591),p=n(587),g=n(578),v=n(586),y=n(636),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i1?e-1:0),r=1;r=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}break;default:return t}}));return a}return t}function d(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t}(e)||"string"!==typeof t||t))}function p(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var c=r;r+=1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,j=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,w={integer:function(t){return w.number(t)&&parseInt(t,10)===t},float:function(t){return w.number(t)&&!w.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===typeof t&&!w.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&t.length<=320&&!!t.match(O)},url:function(t){return"string"===typeof t&&t.length<=2048&&!!t.match(function(){if(b)return b;var t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":""},e="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+e+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+e+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+e+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+e+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+e+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+e+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+e+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+e+"$)|(?:^"+r+"$)"),o=new RegExp("^"+e+"$"),a=new RegExp("^"+r+"$"),c=function(n){return n&&n.exact?i:new RegExp("(?:"+t(n)+e+t(n)+")|(?:"+t(n)+r+t(n)+")","g")};c.v4=function(n){return n&&n.exact?o:new RegExp(""+t(n)+e+t(n),"g")},c.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var s=c.v4().source,l=c.v6().source;return b=new RegExp("(?:^"+("(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+s+"|"+l+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?')+"$)","i")}())},hex:function(t){return"string"===typeof t&&!!t.match(j)}},C={required:x,whitespace:function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(h(i.messages.whitespace,t.fullField))},type:function(t,e,n,r,i){if(t.required&&void 0===e)x(t,e,n,r,i);else{var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?w[o](e)||r.push(h(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&r.push(h(i.messages.types[o],t.fullField,t.type))}},range:function(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,c="number"===typeof t.max,s=e,l=null,u="number"===typeof e,f="string"===typeof e,d=Array.isArray(e);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=e.length),f&&(s=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==t.len&&r.push(h(i.messages[l].len,t.fullField,t.len)):a&&!c&&st.max?r.push(h(i.messages[l].max,t.fullField,t.max)):a&&c&&(st.max)&&r.push(h(i.messages[l].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t.enum=Array.isArray(t.enum)?t.enum:[],-1===t.enum.indexOf(e)&&r.push(h(i.messages.enum,t.fullField,t.enum.join(", ")))},pattern:function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(h(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){new RegExp(t.pattern).test(e)||r.push(h(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},S=function(t,e,n,r,i){var o=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,o)&&!t.required)return n();C.required(t,e,r,a,i,o),d(e,o)||C.type(t,e,r,a,i)}n(a)},E={string:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"string")&&!t.required)return n();C.required(t,e,r,o,i,"string"),d(e,"string")||(C.type(t,e,r,o,i),C.range(t,e,r,o,i),C.pattern(t,e,r,o,i),!0===t.whitespace&&C.whitespace(t,e,r,o,i))}n(o)},method:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},number:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(""===e&&(e=void 0),d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},boolean:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},regexp:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),d(e)||C.type(t,e,r,o,i)}n(o)},integer:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},float:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},array:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if((void 0===e||null===e)&&!t.required)return n();C.required(t,e,r,o,i,"array"),void 0!==e&&null!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},object:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},enum:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.enum(t,e,r,o,i)}n(o)},pattern:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"string")&&!t.required)return n();C.required(t,e,r,o,i),d(e,"string")||C.pattern(t,e,r,o,i)}n(o)},date:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"date")&&!t.required)return n();var a;if(C.required(t,e,r,o,i),!d(e,"date"))a=e instanceof Date?e:new Date(e),C.type(t,a,r,o,i),a&&C.range(t,a.getTime(),r,o,i)}n(o)},url:S,hex:S,email:S,required:function(t,e,n,r,i){var o=[],a=Array.isArray(e)?"array":typeof e;C.required(t,e,r,o,i,a),n(o)},any:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i)}n(o)}};function M(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var k=M(),P=function(){function t(t){this.rules=null,this._messages=k,this.define(t)}var e=t.prototype;return e.define=function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof t||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach((function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]}))},e.messages=function(t){return t&&(this._messages=m(M(),t)),this._messages},e.validate=function(e,n,i){var o=this;void 0===n&&(n={}),void 0===i&&(i=function(){});var a=e,c=n,s=i;if("function"===typeof c&&(s=c,c={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,a),Promise.resolve(a);if(c.messages){var l=this.messages();l===k&&(l=M()),m(l,c.messages),c.messages=l}else c.messages=this.messages();var u={};(c.keys||Object.keys(this.rules)).forEach((function(t){var n=o.rules[t],i=a[t];n.forEach((function(n){var c=n;"function"===typeof c.transform&&(a===e&&(a=r({},a)),i=a[t]=c.transform(i)),(c="function"===typeof c?{validator:c}:r({},c)).validator=o.getValidationMethod(c),c.validator&&(c.field=t,c.fullField=c.fullField||t,c.type=o.getType(c),u[t]=u[t]||[],u[t].push({rule:c,value:i,source:a,field:t}))}))}));var d={};return v(u,c,(function(e,n){var i,o=e.rule,s=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function l(t,e){return r({},e,{fullField:o.fullField+"."+t,fullFields:o.fullFields?[].concat(o.fullFields,[t]):[t]})}function u(i){void 0===i&&(i=[]);var u=Array.isArray(i)?i:[i];!c.suppressWarning&&u.length&&t.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var f=u.map(y(o,a));if(c.first&&f.length)return d[o.field]=1,n(f);if(s){if(o.required&&!e.value)return void 0!==o.message?f=[].concat(o.message).map(y(o,a)):c.error&&(f=[c.error(o,h(c.messages.required,o.field))]),n(f);var p={};o.defaultField&&Object.keys(e.value).map((function(t){p[t]=o.defaultField})),p=r({},p,e.rule.fields);var g={};Object.keys(p).forEach((function(t){var e=p[t],n=Array.isArray(e)?e:[e];g[t]=n.map(l.bind(null,t))}));var v=new t(g);v.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),v.validate(e.value,e.rule.options||c,(function(t){var e=[];f&&f.length&&e.push.apply(e,f),t&&t.length&&e.push.apply(e,t),n(e.length?e:null)}))}else n(f)}if(s=s&&(o.required||!o.required&&e.value),o.field=e.field,o.asyncValidator)i=o.asyncValidator(o,e.value,u,e.source,c);else if(o.validator){try{i=o.validator(o,e.value,u,e.source,c)}catch(f){null==console.error||console.error(f),c.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===i?u():!1===i?u("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(t){return u(t)}))}),(function(t){!function(t){var e=[],n={};function r(t){var n;Array.isArray(t)?e=(n=e).concat.apply(n,t):e.push(t)}for(var i=0;i0&&(o=T().map((function(t){return s.createElement(j,{prefixCls:L,key:t.value.toString(),disabled:"disabled"in t?t.disabled:x.disabled,value:t.value,checked:-1!==M.indexOf(t.value),onChange:t.onChange,className:"".concat(N,"-item"),style:t.style},t.label)})));var B={toggleOption:function(t){var e=M.indexOf(t.value),n=Object(f.a)(M);-1===e?n.push(t.value):n.splice(e,1),"value"in x||k(n);var r=T();null===b||void 0===b||b(n.filter((function(t){return-1!==I.indexOf(t)})).sort((function(t,e){return r.findIndex((function(e){return e.value===t}))-r.findIndex((function(t){return t.value===e}))})))},value:M,disabled:x.disabled,name:x.name,registerValue:function(t){F((function(e){return[].concat(Object(f.a)(e),[t])}))},cancelValue:function(t){F((function(e){return e.filter((function(e){return e!==t}))}))}},R=a()(N,Object(r.a)({},"".concat(N,"-rtl"),"rtl"===C),y);return s.createElement("div",Object(i.a)({className:R,style:m},D,{ref:e}),s.createElement(g.Provider,{value:B},o))},y=s.forwardRef(v),m=s.memo(y),b=n(591),x=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0||e.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||i(t.getValidValue()))},t.go=function(e){""!==t.state.goInputText&&(e.keyCode!==b&&"click"!==e.type||(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue())))},t}return Object(d.a)(n,[{key:"getValidValue",value:function(){var t=this.state.goInputText;return!t||isNaN(t)?void 0:Number(t)}},{key:"getPageSizeOptions",value:function(){var t=this.props,e=t.pageSize,n=t.pageSizeOptions;return n.some((function(t){return t.toString()===e.toString()}))?n:n.concat([e.toString()]).sort((function(t,e){return(isNaN(Number(t))?0:Number(t))-(isNaN(Number(e))?0:Number(e))}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.pageSize,r=e.locale,i=e.rootPrefixCls,o=e.changeSize,a=e.quickGo,c=e.goButton,s=e.selectComponentClass,l=e.buildOptionText,u=e.selectPrefixCls,f=e.disabled,h=this.state.goInputText,d="".concat(i,"-options"),p=s,g=null,v=null,m=null;if(!o&&!a)return null;var b=this.getPageSizeOptions();if(o&&p){var x=b.map((function(e,n){return y.a.createElement(p.Option,{key:n,value:e.toString()},(l||t.buildOptionText)(e))}));g=y.a.createElement(p,{disabled:f,prefixCls:u,showSearch:!1,className:"".concat(d,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(t){return t.parentNode},"aria-label":r.page_size,defaultOpen:!1},x)}return a&&(c&&(m="boolean"===typeof c?y.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(d,"-quick-jumper-button")},r.jump_to_confirm):y.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=y.a.createElement("div",{className:"".concat(d,"-quick-jumper")},r.jump_to,y.a.createElement("input",{disabled:f,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,m)),y.a.createElement("li",{className:"".concat(d)},g,v)}}]),n}(y.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=j;function C(){}function S(t){var e=Number(t);return"number"===typeof e&&!isNaN(e)&&isFinite(e)&&Math.floor(e)===e}function E(t,e,n){var r="undefined"===typeof t?e.pageSize:t;return Math.floor((n.total-1)/r)+1}var M=function(t){Object(p.a)(n,t);var e=Object(g.a)(n);function n(t){var r;Object(h.a)(this,n),(r=e.call(this,t)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(E(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(t,e){var n=r.props.prefixCls,i=t||y.a.createElement("button",{type:"button","aria-label":e,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=y.a.createElement(t,Object(f.a)({},r.props))),i},r.savePaginationNode=function(t){r.paginationNode=t},r.isValid=function(t){var e=r.props.total;return S(t)&&t!==r.state.current&&S(e)&&e>0},r.shouldDisplayQuickJumper=function(){var t=r.props,e=t.showQuickJumper;return!(t.total<=r.state.pageSize)&&e},r.handleKeyDown=function(t){t.keyCode!==x&&t.keyCode!==O||t.preventDefault()},r.handleKeyUp=function(t){var e=r.getValidValue(t);e!==r.state.currentInputValue&&r.setState({currentInputValue:e}),t.keyCode===b?r.handleChange(e):t.keyCode===x?r.handleChange(e-1):t.keyCode===O&&r.handleChange(e+1)},r.handleBlur=function(t){var e=r.getValidValue(t);r.handleChange(e)},r.changePageSize=function(t){var e=r.state.current,n=E(t,r.state,r.props);e=e>n?n:e,0===n&&(e=r.state.current),"number"===typeof t&&("pageSize"in r.props||r.setState({pageSize:t}),"current"in r.props||r.setState({current:e,currentInputValue:e})),r.props.onShowSizeChange(e,t),"onChange"in r.props&&r.props.onChange&&r.props.onChange(e,t)},r.handleChange=function(t){var e=r.props,n=e.disabled,i=e.onChange,o=r.state,a=o.pageSize,c=o.current,s=o.currentInputValue;if(r.isValid(t)&&!n){var l=E(void 0,r.state,r.props),u=t;return t>l?u=l:t<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==s&&r.setState({currentInputValue:u}),i(u,a),u}return c},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),i=2;i=n?n:Number(e)}},{key:"getShowSizeChanger",value:function(){var t=this.props,e=t.showSizeChanger,n=t.total,r=t.totalBoundaryShowSizeChanger;return"undefined"!==typeof e?e:n>r}},{key:"renderPrev",value:function(t){var e=this.props,n=e.prevIcon,r=(0,e.itemRender)(t,"prev",this.getItemIcon(n,"prev page")),i=!this.hasPrev();return Object(v.isValidElement)(r)?Object(v.cloneElement)(r,{disabled:i}):r}},{key:"renderNext",value:function(t){var e=this.props,n=e.nextIcon,r=(0,e.itemRender)(t,"next",this.getItemIcon(n,"next page")),i=!this.hasNext();return Object(v.isValidElement)(r)?Object(v.cloneElement)(r,{disabled:i}):r}},{key:"render",value:function(){var t=this,e=this.props,n=e.prefixCls,o=e.className,a=e.style,c=e.disabled,s=e.hideOnSinglePage,l=e.total,f=e.locale,h=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,g=e.showTotal,b=e.simple,x=e.itemRender,O=e.showPrevNextJumpers,j=e.jumpPrevIcon,C=e.jumpNextIcon,S=e.selectComponentClass,M=e.selectPrefixCls,k=e.pageSizeOptions,P=this.state,A=P.current,I=P.pageSize,F=P.currentInputValue;if(!0===s&&l<=I)return null;var T=E(void 0,this.state,this.props),L=[],N=null,D=null,B=null,R=null,_=null,z=h&&h.goButton,V=d?1:2,H=A-1>0?A-1:0,K=A+1=2*V&&3!==A&&(L[0]=Object(v.cloneElement)(L[0],{className:"".concat(n,"-item-after-jump-prev")}),L.unshift(N)),T-A>=2*V&&A!==T-2&&(L[L.length-1]=Object(v.cloneElement)(L[L.length-1],{className:"".concat(n,"-item-before-jump-next")}),L.push(D)),1!==$&&L.unshift(B),Z!==T&&L.push(R)}var tt=null;g&&(tt=y.a.createElement("li",{className:"".concat(n,"-total-text")},g(l,[0===l?0:(A-1)*I+1,A*I>l?l:A*I])));var et=!this.hasPrev()||!T,nt=!this.hasNext()||!T;return y.a.createElement("ul",Object(i.a)({className:u()(n,o,Object(r.a)({},"".concat(n,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},Y),tt,y.a.createElement("li",{title:p?f.prev_page:null,onClick:this.prev,tabIndex:et?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),et)),"aria-disabled":et},this.renderPrev(H)),L,y.a.createElement("li",{title:p?f.next_page:null,onClick:this.next,tabIndex:nt?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),nt)),"aria-disabled":nt},this.renderNext(K)),y.a.createElement(w,{disabled:c,locale:f,rootPrefixCls:n,selectComponentClass:S,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:A,pageSize:I,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n={};if("current"in t&&(n.current=t.current,t.current!==e.current&&(n.currentInputValue=n.current)),"pageSize"in t&&t.pageSize!==e.pageSize){var r=e.current,i=E(t.pageSize,e,t);r=r>i?i:r,"current"in t||(n.current=r,n.currentInputValue=r),n.pageSize=t.pageSize}return n}}]),n}(y.a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:C,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:C,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(t,e,n){return n},totalBoundaryShowSizeChanger:50};var k=M,P=n(623),A=n(775),I=n(643),F=n(595),T=n(661),L=function(t){return v.createElement(T.default,Object(i.a)({},t,{size:"small"}))},N=function(t){return v.createElement(T.default,Object(i.a)({},t,{size:"middle"}))};L.Option=T.default.Option,N.Option=T.default.Option;var D=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0&&void 0!==arguments[0]?arguments[0]:"";return t+=1,"".concat(e).concat(t)}}(),x=h.forwardRef((function(t,e){var n=t.prefixCls,l=t.className,x=t.trigger,O=t.children,j=t.defaultCollapsed,w=void 0!==j&&j,C=t.theme,S=void 0===C?"dark":C,E=t.style,M=void 0===E?{}:E,k=t.collapsible,P=void 0!==k&&k,A=t.reverseArrow,I=void 0!==A&&A,F=t.width,T=void 0===F?200:F,L=t.collapsedWidth,N=void 0===L?80:L,D=t.zeroWidthTriggerStyle,B=t.breakpoint,R=t.onCollapse,_=t.onBreakpoint,z=v(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),V=Object(h.useContext)(g.d).siderHook,H=Object(h.useState)("collapsed"in z?z.collapsed:w),K=Object(o.a)(H,2),Y=K[0],G=K[1],W=Object(h.useState)(!1),X=Object(o.a)(W,2),q=X[0],U=X[1];Object(h.useEffect)((function(){"collapsed"in z&&G(z.collapsed)}),[z.collapsed]);var $=function(t,e){"collapsed"in z||G(t),null===R||void 0===R||R(t,e)},Z=Object(h.useRef)();Z.current=function(t){U(t.matches),null===_||void 0===_||_(t.matches),Y!==t.matches&&$(t.matches,"responsive")},Object(h.useEffect)((function(){function t(t){return Z.current(t)}var e;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&B&&B in y){e=n("(max-width: ".concat(y[B],")"));try{e.addEventListener("change",t)}catch(r){e.addListener(t)}t(e)}}return function(){try{null===e||void 0===e||e.removeEventListener("change",t)}catch(r){null===e||void 0===e||e.removeListener(t)}}}),[B]),Object(h.useEffect)((function(){var t=b("ant-sider-");return V.addSider(t),function(){return V.removeSider(t)}}),[]);var Q=function(){$(!Y,"clickTrigger")},J=Object(h.useContext)(d.b).getPrefixCls,tt=h.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return h.createElement(m.Provider,{value:tt},function(){var t,o=J("layout-sider",n),d=Object(f.a)(z,["collapsed"]),g=Y?N:T,v=p(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(N||0))?h.createElement("span",{onClick:Q,className:u()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(I?"right":"left")),style:D},x||h.createElement(a.a,null)):null,m={expanded:I?h.createElement(s.a,null):h.createElement(c.a,null),collapsed:I?h.createElement(c.a,null):h.createElement(s.a,null)}[Y?"collapsed":"expanded"],b=null!==x?y||h.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:v}},x||m):null,j=Object(i.a)(Object(i.a)({},M),{flex:"0 0 ".concat(v),maxWidth:v,minWidth:v,width:v}),w=u()(o,"".concat(o,"-").concat(S),(t={},Object(r.a)(t,"".concat(o,"-collapsed"),!!Y),Object(r.a)(t,"".concat(o,"-has-trigger"),P&&null!==x&&!y),Object(r.a)(t,"".concat(o,"-below"),!!q),Object(r.a)(t,"".concat(o,"-zero-width"),0===parseFloat(v)),t),l);return h.createElement("aside",Object(i.a)({className:w},d,{style:j,ref:e}),h.createElement("div",{className:"".concat(o,"-children")},O),P||q&&y?b:null)}())}));e.b=x},723:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},724:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(565),i=n(719);function o(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(i.a)(t)){var n=t.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||t.isContentEditable||"a"===n&&!!t.getAttribute("href"),o=t.getAttribute("tabindex"),a=Number(o),c=null;return o&&!Number.isNaN(a)?c=a:r&&null===c&&(c=0),r&&t.disabled&&(c=null),null!==c&&(c>=0||e&&c<0)}return!1}function a(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(r.a)(t.querySelectorAll("*")).filter((function(t){return o(t,e)}));return o(t,e)&&n.unshift(t),n}},726:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(646);var i=n(656);function o(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},727:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(567),a=n(559),c=n(570),s=n(571),l=n(572),u=n(573),f=n(2),h=n.n(f),d=n(560),p=n.n(d),g=function(t){Object(l.a)(n,t);var e=Object(u.a)(n);function n(t){var r;Object(c.a)(this,n),(r=e.call(this,t)).handleChange=function(t){var e=r.props,n=e.disabled,i=e.onChange;n||("checked"in r.props||r.setState({checked:t.target.checked}),i&&i({target:Object(a.a)(Object(a.a)({},r.props),{},{checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},r.saveInput=function(t){r.input=t};var i="checked"in t?t.checked:t.defaultChecked;return r.state={checked:i},r}return Object(s.a)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,a=e.className,c=e.style,s=e.name,l=e.id,u=e.type,f=e.disabled,d=e.readOnly,g=e.tabIndex,v=e.onClick,y=e.onFocus,m=e.onBlur,b=e.onKeyDown,x=e.onKeyPress,O=e.onKeyUp,j=e.autoFocus,w=e.value,C=e.required,S=Object(o.a)(e,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),E=Object.keys(S).reduce((function(t,e){return"aria-"!==e.substr(0,5)&&"data-"!==e.substr(0,5)&&"role"!==e||(t[e]=S[e]),t}),{}),M=this.state.checked,k=p()(n,a,(t={},Object(i.a)(t,"".concat(n,"-checked"),M),Object(i.a)(t,"".concat(n,"-disabled"),f),t));return h.a.createElement("span",{className:k,style:c},h.a.createElement("input",Object(r.a)({name:s,id:l,type:u,required:C,readOnly:d,disabled:f,tabIndex:g,className:"".concat(n,"-input"),checked:!!M,onClick:v,onFocus:y,onBlur:m,onKeyUp:O,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:j,ref:this.saveInput,value:w},E)),h.a.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return"checked"in t?Object(a.a)(Object(a.a)({},e),{},{checked:t.checked}):null}}]),n}(f.Component);g.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},e.a=g},730:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(568);function i(t,e){var n=new Set;return t.forEach((function(t){e.has(t)||n.add(t)})),n}function o(t){var e=t||{},n=e.disabled,r=e.disableCheckbox,i=e.checkable;return!(!n&&!r)||!1===i}function a(t,e,n,a){var c,s=[];c=a||o;var l=new Set(t.filter((function(t){var e=!!n[t];return e||s.push(t),e}))),u=new Map,f=0;return Object.keys(n).forEach((function(t){var e=n[t],r=e.level,i=u.get(r);i||(i=new Set,u.set(r,i)),i.add(e),f=Math.max(f,r)})),Object(r.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(t){return"'".concat(t,"'")})).join(", "))),!0===e?function(t,e,n,r){for(var o=new Set(t),a=new Set,c=0;c<=n;c+=1){(e.get(c)||new Set).forEach((function(t){var e=t.key,n=t.node,i=t.children,a=void 0===i?[]:i;o.has(e)&&!r(n)&&a.filter((function(t){return!r(t.node)})).forEach((function(t){o.add(t.key)}))}))}for(var s=new Set,l=n;l>=0;l-=1){(e.get(l)||new Set).forEach((function(t){var e=t.parent,n=t.node;if(!r(n)&&t.parent&&!s.has(t.parent.key))if(r(t.parent.node))s.add(e.key);else{var i=!0,c=!1;(e.children||[]).filter((function(t){return!r(t.node)})).forEach((function(t){var e=t.key,n=o.has(e);i&&!n&&(i=!1),c||!n&&!a.has(e)||(c=!0)})),i&&o.add(e.key),c&&a.add(e.key),s.add(e.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(l,u,f,c):function(t,e,n,r,o){for(var a=new Set(t),c=new Set(e),s=0;s<=r;s+=1){(n.get(s)||new Set).forEach((function(t){var e=t.key,n=t.node,r=t.children,i=void 0===r?[]:r;a.has(e)||c.has(e)||o(n)||i.filter((function(t){return!o(t.node)})).forEach((function(t){a.delete(t.key)}))}))}c=new Set;for(var l=new Set,u=r;u>=0;u-=1){(n.get(u)||new Set).forEach((function(t){var e=t.parent,n=t.node;if(!o(n)&&t.parent&&!l.has(t.parent.key))if(o(t.parent.node))l.add(e.key);else{var r=!0,i=!1;(e.children||[]).filter((function(t){return!o(t.node)})).forEach((function(t){var e=t.key,n=a.has(e);r&&!n&&(r=!1),i||!n&&!c.has(e)||(i=!0)})),r||a.delete(e.key),i&&c.add(e.key),l.add(e.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(c,a))}}(l,e.halfCheckedKeys,u,f,c)}},731:function(t,e,n){"use strict";n.d(e,"l",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"n",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"h",(function(){return y}));n(726);var r=n(736),i=["geom","password","id","username","created_date","created_by","modified_date","modified_by","updated_by","updated_date","updated_at","session_login","company","buffer_radius","group_sales","OBJECTID","fcm_token","key","planning_id","subproyek_id","user_id","created_at","_type","satuan_id","m_planning_nama","m_planning_target","m_satuan_description","m_subproyek_akhir_proyek","m_subproyek_area_kerja","m_subproyek_biaya","m_subproyek_biaya_actual","m_subproyek_color_progress","m_subproyek_jumlah_pekerja","m_subproyek_ket_progress","m_subproyek_lokasi_kantor","m_subproyek_mulai_proyek","m_subproyek_nama","m_subproyek_persentase_progress_actual","m_subproyek_persentase_progress_plan","m_users_email","m_users_username","m_planning_address","m_planning_jumlah_titik","m_planning_target_planning","m_satuan_name","m_subproyek_pic","m_users_gender","m_users_name","m_users_phone_number"],o=["created_date","modified_date","birth_date","datesend","wptime","tanggal","mulai_tugas","akhir_tugas"],a="DD-MM-YYYY",c=function(t){var e="";if(t.includes("_")){for(var n=t.split("_"),r=0;rusername":{label:"Username",type:"text",valueSources:["value"]},"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->email":{label:"Email",type:"text",valueSources:["value"]},"properties->address":{label:"Address",type:"text",valueSources:["value"]},"properties->phone_number":{label:"Phone Number",type:"number",valueSources:["value"]},"properties->type_sales":{label:"Type Sales",type:"select",valueSources:["value"],fieldSettings:{listValues:[{value:"B2B",title:"B2B"},{value:"B2C",title:"B2C"}]}}},l={"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->buffer_radius":{label:"Buffer Radius",type:"number",fieldSettings:{min:1},valueSources:["value"]},"properties->address":{label:"Address",type:"text",valueSources:["value"]},"properties->income":{label:"Income",type:"number",valueSources:["value"]},"properties->store_manager":{label:"Store Manager",type:"text",valueSources:["value"]}},u={"properties->company":{label:"Company",type:"text",valueSources:["value"]},"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->employes":{label:"Employe",type:"text",valueSources:["value"]},"properties->address":{label:"Alamat",type:"text",valueSources:["value"]}},f=function t(e){return e.map((function(e,n){return e.subproyeks&&e.subproyeks.length>0?Object(r.a)({children:t(e.subproyeks),title:e.nama,key:Math.random(),id:e.id},e):Object(r.a)({title:e.nama,key:Math.random()},e)}))},h=function(t,e){var n=t.replace(/[^,\d]/g,"").toString().split(","),r=n[0].length%3,i=n[0].substr(0,r),o=n[0].substr(r).match(/\d{3}/gi);return o&&(i+=(r?".":"")+o.join(".")),i=void 0!=n[1]?i+","+n[1]:i,void 0==e?i:i?"Rp. "+i:""},d=function(t){var e=t.replace(/[^,\d]/g,"").toString().split(","),n=e[0].length%3,r=e[0].substr(0,n),i=e[0].substr(n).match(/\d{3}/gi);return i&&(r+=(n?".":"")+i.join(".")),r=void 0!=e[1]?r+","+e[1]:r},p=function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},g=function(){var t=Object.prototype.toString,e=function(t){return t},n=function(t){var e=null!=t&&"object"===typeof t&&this.prop in t;return this.parser(e?t[this.prop]:t)};return function(r,i){return r instanceof Array&&r.length?("[object Object]"!==t.call(i)&&(i={}),"function"!==typeof i.parser&&(i.parser=e),i.desc=i.desc?-1:1,r.sort((function(t,e){return t=n.call(i,t),e=n.call(i,e),i.desc*(te))}))):[]}}(),v=function(t){var e=t;return"fom"!==t&&"fot"!==t&&"po"!==t||(e=t.toUpperCase()),e},y=function(t){var e=t.toString().split(".");return"Rp. "+e[0].replace(/\B(?=(\d{3})+(?!\d))/g,".")+(e[1]?","+e[1]:"")}},732:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var r=n(613),i=n(761),o=n(579),a=n(2184),c=n(2457),s=n(618),l=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],u=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"===typeof e?document.getElementById(e):e,r.options=Object(s.c)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(r.b)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.defaultInteractions;this.chart=new i.c(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(s.t)(this.options,l)),{defaultInteractions:o})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(s.k)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(s.c)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(s.i)(this.chart);Object(o.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(s.i)(this.chart),e=[];return Object(o.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(r.d)(t),i=e.getController("annotation"),o=i.getComponents().map((function(t){return t.extra}));i.clear(!0);for(var a=function(t){var e=o[t],r=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==r&&(e=Object(s.c)({},e,n[r]),n.splice(r,1)),i.annotation(e)},c=0;c0&&(k=f.map((function(t){return"string"===typeof t||"number"===typeof t?l.createElement(p.a,{key:t.toString(),prefixCls:E,disabled:m,value:t,checked:b===t},t):l.createElement(p.a,{key:"radio-group-value-options-".concat(t.value),prefixCls:E,disabled:t.disabled||m,value:t.value,checked:b===t.value,style:t.style},t.label)})));var P=O||v,A=c()(M,"".concat(M,"-").concat(y),(n={},Object(i.a)(n,"".concat(M,"-").concat(P),P),Object(i.a)(n,"".concat(M,"-rtl"),"rtl"===g),n),u);return l.createElement("div",Object(r.a)({},Object(h.a)(t),{className:A,style:j,onMouseEnter:C,onMouseLeave:S,id:w,ref:e}),k)}())}));e.a=l.memo(g)},746:function(t,e,n){"use strict";n.r(e);var r=n(23),i=n(561),o=n(560),a=n.n(o),c=n(2),s=n(775),l=n(583),u=function(t){var e,n=Object(c.useContext)(s.b),o=n.getPrefixCls,u=n.direction,f=t.prefixCls,h=t.className,d=void 0===h?"":h,p=o("input-group",f),g=a()(p,(e={},Object(i.a)(e,"".concat(p,"-lg"),"large"===t.size),Object(i.a)(e,"".concat(p,"-sm"),"small"===t.size),Object(i.a)(e,"".concat(p,"-compact"),t.compact),Object(i.a)(e,"".concat(p,"-rtl"),"rtl"===u),e),d),v=Object(c.useContext)(l.b),y=Object(c.useMemo)((function(){return Object(r.a)(Object(r.a)({},v),{isFormItemInput:!1})}),[v]);return c.createElement("span",{className:g,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},c.createElement(l.b.Provider,{value:y},t.children))},f=n(637),h=n(563),d=n(762),p=n(738),g=n(575),v=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(c){i={error:c}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i=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,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=Q.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=Q.a.angleTo(r,[1,0],!0),o=i*this.a;Q.c.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,o=this.endAngle;this.isReflect("x")&&(i=(e=[o,i])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];Q.a.leftRotate(a,a,i);var c=[1,0,0];Q.d.transformMat3(c,c,a);var s=[c[0],c[1]],l=Q.a.angleTo(s,r,o0?f:-f;var h=this.invertDim(u,"y"),d={x:0,y:0};return d.x=this.isTransposed?h:f,d.y=this.isTransposed?f:h,d},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)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);it.x?t.x:e,n=nt.y?t.y:r,i=i=r&&t<=i}function Ot(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function jt(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=d(t),a=o.next();!a.done;a=o.next()){var c=a.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var wt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;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 Ct(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 St(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Et(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Mt(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var c=t.startAngle,s=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:vt(l.x,l.y,u+e,c,c)},endState:function(t){var n=(s-c)*t+c;return{path:vt(l.x,l.y,u+e,c,n)}},attrs:{path:vt(l.x,l.y,u+e,c,s)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}var kt=/^(?:(?!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 Pt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&M.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function At(t,e,n){var r=e||[];if(Object(b.M)(t)||Object(b.K)(Object(b.o)(r,t))&&Object(b.G)(n))return new(Object(G.c)("identity"))({field:t.toString(),values:[t]});var i=Object(b.yb)(r,t),o=Object(b.s)(n,"type",function(t){var e="linear";return kt.test(t)?e="timeCat":Object(b.Q)(t)&&(e="cat"),e}(i[0]));return new(Object(G.c)(o))(l({field:t,values:i},n))}function It(t){return t.alias||t.field}function Ft(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var o=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e===2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/i*Object(b.s)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/i]:[o=1/i/2,1-o]}return r}function Tt(t){var e=t.values.filter((function(t){return!Object(b.K)(t)&&!isNaN(t)}));return Math.max.apply(Math,g(g([],p(e),!1),[Object(b.K)(t.max)?-1/0:t.max],!1))}function Lt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case y.TOP:e={x:0,y:1},n={x:1,y:1};break;case y.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case y.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case y.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function Nt(t){var e=t.start,n=t.end;return e.x===n.x}function Dt(t,e){var n=t.start,r=t.end;return Nt(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function Bt(t,e){var n=Object(b.s)(t,["components","axis"],{});return Object(b.h)({},Object(b.s)(n,["common"],{}),Object(b.h)({},Object(b.s)(n,[e],{})))}function Rt(t,e,n){var r=Object(b.s)(t,["components","axis"],{});return Object(b.h)({},Object(b.s)(r,["common","title"],{}),Object(b.h)({},Object(b.s)(r,[e,"title"],{})),n)}function _t(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],c=[1,0],s=o.y>r.y?Q.c.angle(a,c):-1*Q.c.angle(a,c),l=s+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:s,endAngle:l}}function zt(t,e){return Object(b.D)(t)?!1!==t&&{}:Object(b.s)(t,[e])}function Vt(t,e){return Object(b.s)(t,"position",e)}function Ht(t,e){return Object(b.s)(e,["title","text"],It(t))}var Kt=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(b.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,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(v.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(b.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;return this.cfg.spacing.map((function(t,r){return Object(b.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(b.j)(t,(function(t){var i=t[e];Object(b.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=p(this.parseSpacing(),2),o=i[0],a=i[1],c=(1+o)/(0===e?1:e)-o,s=(1+a)/(0===t?1:t)-a,l={x:(c+o)*n,y:(s+a)*r};return{start:l,end:{x:l.x+c,y:l.y+s}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Object(b.s)(r,"type","rect")&&i.length){Object(b.K)(n.axes)&&(n.axes={});var o=n.axes,a=p(i[0].getXYFields(),2),c=a[0],s=a[1],l=zt(o,c),u=zt(o,s);!1!==l&&(n.axes[c]=this.getXAxisOption(c,o,l,e)),!1!==u&&(n.axes[s]=this.getYAxisOption(s,o,u,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(b.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(b.K)(r)&&n)||e[n]===r}))}},t}(),Yt={},Gt=function(t,e){Yt[Object(b.V)(t)]=e},Wt=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(b.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(Wt),qt={};function Ut(t){var e=qt[t];return Object(b.s)(e,"ActionClass")}function $t(t,e,n){qt[t]={ActionClass:e,cfg:n}}function Zt(t,e){var n=new Xt(e);return n.callback=t,n.name="callback",n}function Qt(t,e){for(var n=[t[0]],r=1,i=t.length;r=a[l]?1:0,h=u>Math.PI?1:0,d=n.convert(c),p=St(n,d);if(p>=.5)if(u===2*Math.PI){var g={x:(c.x+a.x)/2,y:(c.y+a.y)/2},v=n.convert(g);s.push(["A",p,p,0,h,f,v.x,v.y]),s.push(["A",p,p,0,h,f,d.x,d.y])}else s.push(["A",p,p,0,h,f,d.x,d.y]);return s}(n,r,t)):o.push(Qt(a,t));break;case"a":o.push(Jt(a,t));break;case"z":default:o.push(a)}})),function(t){Object(b.j)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(o),o}var ie=n(1411);function oe(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function ae(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function ce(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function se(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function le(t){return t&&t.component&&t.component.isList()}function ue(t){return t&&t.component&&t.component.isSlider()}function fe(t){var e=t.event.target;return e&&"mask"===e.get("name")}function he(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return function(t,e){var n=pe(t),r=me(e);return n.filter((function(t){var e,n,i=t.shape;if("path"===i.get("type"))e=me(i.attr("path"));else{var o=i.getCanvasBBox();e=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return Object(ie.b)(r,e)}))}(t.view,n)}var r=oe(t,e);return r?ye(t.view,r):null}function de(t,e,n){var r=oe(t,n);if(!r)return null;var i=t.view,o=we(i,e,{x:r.x,y:r.y}),a=we(i,e,{x:r.maxX,y:r.maxY});return ye(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function pe(t){var e=t.geometries,n=[];return Object(b.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(b.j)(t.views,(function(t){n=n.concat(pe(t))})),n}function ge(t,e){var n=t.geometries,r=[];return Object(b.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function ve(t,e){var n=t.getModel().data;return Object(b.C)(n)?n[0][e]:n[e]}function ye(t,e){var n=pe(t),r=[];return Object(b.j)(n,(function(t){var n,i,o=t.shape.getCanvasBBox();n=e,(i=o).minX>n.maxX||i.maxXn.maxY||i.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function je(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function we(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function Ce(t,e,n,r){var i=!1;return Object(b.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function Se(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(b.j)(t.views,(function(t){if(n=Se(t,e))return!1})),n}var Ee=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return Object(b.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=be(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&Oe(r,n):Oe(r,n)}))},t.prototype.destroy=function(){Object(b.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Me=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}();function ke(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||function(t,e){var n=qt[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Pe(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Ae="start",Ie="showEnable",Fe="end",Te="rollback",Le="processing",Ne=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return s(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(b.j)(this.steps,(function(e,n){Object(b.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(b.j)(this.steps,(function(e,n){Object(b.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new Ee(t);this.context=e;var n=this.steps;Object(b.j)(n,(function(t){Object(b.j)(t,(function(t){if(Object(b.I)(t.action))t.actionObject={action:Zt(t.action,e),methodName:"execute"};else if(Object(b.Q)(t.action))t.actionObject=ke(t.action,e,t.arg);else if(Object(b.C)(t.action)){var n=t.action,r=Object(b.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(b.j)(n,(function(n,i){t.actionObject.push(ke(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Ie)return!0;if(t===Le)return e===Ae;if(t===Ae)return e!==Le;if(t===Fe)return e===Le||e===Ae;if(t===Te){if(n[Fe])return e===Fe;if(e===Ae)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!==Ie&&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,r=this.context,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var c=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(b.C)(o)?Object(b.j)(o,(function(t){r.event=i,Pe(t)})):(r.event=i,Pe(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(b.g)(c,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(b.qb)(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=c}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Me),De={};function Be(t,e){De[Object(b.V)(t)]=e}function Re(t,e,n){var r=function(t){return De[Object(b.V)(t)]}(t);if(!r)return null;if(Object(b.P)(r)){var i=Object(b.db)(Object(b.e)(r),n);return new Ne(e,i)}return new r(e,n)}function _e(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}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},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}}(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 r=mt(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),a=7.5*Math.sin(i);return{matrix:Q.a.transform(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:l(l({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:l(l({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:l(l({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:l(l({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:l(l({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:l(l({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:l(l({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:l(l({},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:r,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(b.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(b.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,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:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(ot.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(ot.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(ot.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(ot.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(ot.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 ze="#000",Ve="#595959",He="#8C8C8C",Ke="#BFBFBF",Ye="#D9D9D9",Ge="#F0F0F0",We="#FFFFFF",Xe="#D9D9D9",qe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ue=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],$e=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ze=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?qe:e,r=t.paletteQualitative20,i=void 0===r?Ue:r,o=t.brandColor,a=void 0===o?n[0]:o;return l(l({},{backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:$e,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ke,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ve,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Xe,axisTickLineBorderColor:Ke,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Ye,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:He,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Ye,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:He,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ve,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:ze,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ze,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:He,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Ye,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:He,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ge,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ke,annotationArcBorderColor:Ye,annotationArcBorder:1,annotationLineBorderColor:Ke,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ve,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ze,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ke,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ve,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ve,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:We,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ve,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:We,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ke,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:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:We,pointBorderOpacity:1,pointActiveBorderColor:ze,pointSelectedBorder:2,pointSelectedBorderColor:ze,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:We,hollowPointActiveBorder:1,hollowPointActiveBorderColor:ze,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ze,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ze,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ze,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ze,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ze,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:We,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ze,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ze,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)};Ze();function Qe(t){var e=t.styleSheet,n=void 0===e?{}:e,r=u(t,["styleSheet"]),i=Ze(n);return Object(b.h)({},_e(i),r)}var Je={default:Qe({})};function tn(t){return Object(b.s)(Je,Object(b.V)(t),Je.default)}function en(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(b.N)(r,i)}function nn(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),c=i.invert(a.y);return Object(b.m)(t,(function(t){var e=t._origin;return e[o][0]<=c&&e[o][1]>=c}))||t[t.length-1]}var rn=Object(b.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;oi&&(i=c)}return(i-r)/(n-1)}));function on(t){var e,n,r,i=function(t){var e=Object(b.xb)(t.attributes);return Object(b.l)(e,(function(t){return Object(b.f)(M,t.type)}))}(t);try{for(var o=d(i),a=o.next();!a.done;a=o.next()){var c=a.value,s=c.getScale(c.type);if(s&&s.isLinear)if("cat"!==Pt(s,Object(b.s)(t.scaleDefs,s.field),c.type,t.type)){r=s;break}}}catch(f){e={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var l=t.getXScale(),u=t.getYScale();return r||u||l}function an(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,c=o.field,s=null;if("heatmap"===r||"point"===r){for(var l=n.coordinate.invert(t),u=i.invert(l.x),f=o.invert(l.y),h=1/0,d=0;d(1+o)/2&&(c=a),r.translate(r.invert(c))}(t,n),O=y._origin[a],j=y._origin[c],w=m._origin[a],C=o.isLinear&&Object(b.C)(j);if(Object(b.C)(O)){for(d=0;d=x){if(!C){s=A;break}Object(b.C)(s)||(s=[]),s.push(A)}}Object(b.C)(s)&&(s=nn(s,t,n))}else{var S=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(w)||xi.max||xMath.abs(i.translate(S._origin[a])-x)&&(m=S)}var I=rn(n.getXScale());return!s&&Math.abs(i.translate(m._origin[a])-x)<=I/2&&(s=m),s}function cn(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,c=t._origin,s=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,o=Object(b.I)(n)||!n?r[0]:n,a=i[o],c=a?a.getText(t[o]):t[o]||o;return Object(b.I)(n)?n(c,t):c}(c,e,n),u=e.tooltipOption,f=e.theme.defaultColor,h=[];function v(e,n){if(r||!Object(b.K)(n)&&""!==n){var i={title:s,data:c,mappingData:t,name:e,value:n,color:t.color||f,marker:!0};h.push(i)}}if(Object(b.O)(u)){var y=u.fields,m=u.callback;if(m){var x=y.map((function(e){return t._origin[e]})),O=m.apply(void 0,g([],p(x),!1)),j=l({data:t._origin,mappingData:t,title:s,color:t.color||f,marker:!0},O);h.push(j)}else{var w=e.scales;try{for(var C=d(y),S=C.next();!S.done;S=C.next()){var E=S.value;if(!Object(b.K)(c[E])){var M=w[E];v(It(M),a=M.getText(c[E]))}}}catch(P){i={error:P}}finally{try{S&&!S.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}}}else{var k=on(e);a=function(t,e){var n=t[e.field];return Object(b.C)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(c,k),v(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}return It(on(e))}(c,e),a)}return h}function sn(t,e,n,r){var i,o,a=r.showNil,c=[],s=t.dataArray;if(!Object(b.G)(s)){t.sort(s);try{for(var l=d(s),u=l.next();!u.done;u=l.next()){var f=an(e,u.value,t);if(f){var h=t.getElementId(f),p=t.elementsMap[h];if("heatmap"===t.type||p.visible){var g=cn(f,t,n,a);g.length&&c.push(g)}}}}catch(v){i={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}return c}function ln(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var c=cn(a.get("origin").mappingData,t,n,i);c.length&&o.push(c)}return o}function un(t,e,n){var r,i,o=[],a=t.geometries,c=n.shared,s=n.title,l=n.reversed;try{for(var u=d(a),f=u.next();!f.done;f=u.next()){var h=f.value;if(h.visible&&!1!==h.tooltipOption){var p=h.type,g=void 0;(g=["point","edge","polygon"].includes(p)?ln(h,e,s,n):["area","line","path","heatmap"].includes(p)||!1!==c?sn(h,e,s,n):ln(h,e,s,n)).length&&(l&&g.reverse(),o.push(g))}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return o}function fn(t){void 0===t&&(t=0);var e=Object(b.C)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=g(g([],p(e),!1),p(e),!1);break;case 3:e=g(g([],p(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var hn={};function dn(t,e){hn[t]=e}var pn=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(b.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=l({start:t,end:e},i),c=function(t){return rt[t.toLowerCase()]}(o?"polar":r);return this.coordinate=new c(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return l({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(b.j)(n,(function(n){var r,i=p(n),o=i[0],a=i.slice(1);(!!Object(b.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,g([],p(a),!1))}))},t}(),gn=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,r){return new t(e,new L.e(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function vn(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}var yn=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,c={type:a.type};a.isCategory&&(c.values=a.values),i=Object(b.h)(c,o.scaleDef,n)}var s=At(t,e,i);return this.cacheScale(s,n,r),s},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,c=[];Object(b.j)(r,(function(t){var e=n.getScale(t);a=Object(b.M)(e.max)?Math.max(a,e.max):a,o=Object(b.M)(e.min)?Math.min(o,e.min):o,Object(b.j)(e.values,(function(t){c.includes(t)||c.push(t)}))})),Object(b.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:c});else if(i.isCategory){var s=i.range,l=n.getScaleMeta(r);c&&!Object(b.s)(l,["scaleDef","range"])&&(s=Ft(Object(b.h)({},i,{values:c}),t,e)),i.change({values:c,range:s})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(!function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(b.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,r=e.field,i=Object(b.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),mn=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=p(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=p(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case y.TOP:case y.TOP_LEFT:case y.TOP_RIGHT:this.top+=r;break;case y.RIGHT:case y.RIGHT_TOP:case y.RIGHT_BOTTOM:this.right+=n;break;case y.BOTTOM:case y.BOTTOM_LEFT:case y.BOTTOM_RIGHT:this.bottom+=r;break;case y.LEFT:case y.LEFT_TOP:case y.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,g([void 0],p(this.getPadding()),!1)))},t}();function bn(t){var e=t.padding;if(!function(t){return!Object(b.M)(t)&&!Object(b.C)(t)}(e))return new(mn.bind.apply(mn,g([void 0],p(fn(e)),!1)));var n=t.viewBBox,r=new mn,i=[],o=[],a=[];return Object(b.j)(t.getComponents(),(function(t){var e=t.type;e===m.AXIS?i.push(t):[m.LEGEND,m.SLIDER,m.SCROLLBAR].includes(e)?o.push(t):e!==m.GRID&&e!==m.TOOLTIP&&a.push(t)})),Object(b.j)(i,(function(t){var e=t.component.getLayoutBBox(),i=new wt(e.x,e.y,e.width,e.height).exceed(n);r.max(i)})),Object(b.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new wt(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(b.j)(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new wt(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function xn(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var On=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(hn),n.scalePool=new yn,n.layoutFunc=vn,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Object(b.vb)("view"):r,o=e.parent,a=e.canvas,c=e.backgroundGroup,s=e.middleGroup,u=e.foregroundGroup,f=e.region,h=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=e.padding,p=e.appendPadding,g=e.theme,v=e.options,y=e.limitInPlot,m=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=c,n.middleGroup=s,n.foregroundGroup=u,n.region=h,n.padding=d,n.appendPadding=p,n.options=l(l({},n.options),v),n.limitInPlot=y,n.id=i,n.syncViewPadding=m,n.themeObject=Object(b.O)(g)?Object(b.h)({},tn("default"),Qe(g)):tn(g),n.init(),n}return s(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(x.BEFORE_RENDER,gn.fromData(this,x.BEFORE_RENDER,e)),this.paint(t),this.emit(x.AFTER_RENDER,gn.fromData(this,x.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(x.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n');T.appendChild(L);var N=F(T,c,i,o),D=new(function(t){var e=k[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}(h).Canvas)(l({container:L,pixelRatio:d,localRefresh:g,supportCSSTransform:x},N));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:E}),middleGroup:D.addGroup({zIndex:S}),foregroundGroup:D.addGroup({zIndex:C}),padding:s,appendPadding:u,visible:y,options:w,limitInPlot:M,theme:P,syncViewPadding:I})||this).onResize=Object(b.g)((function(){n.forceFit()}),300),n.ele=T,n.canvas=D,n.width=N.width,n.height=N.height,n.autoFit=c,n.localRefresh=g,n.renderer=h,n.wrapperElement=L,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(j),n}return s(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(b.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(x.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(x.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(),function(t){var e=t.parentNode;e&&e.removeChild(t)}(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=F(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(A.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}(On),Cn=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(b.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}();var Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return s(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",gn.fromData(e,"tooltip:show",l({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,c=o.showMarkers,s=o.showCrosshairs,u=o.showContent,f=o.marker,h=this.items,d=this.title;if(Object(b.H)(d,r)&&Object(b.H)(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",gn.fromData(e,"tooltip:change",l({items:n,title:r},t))),(Object(b.I)(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(b.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),c&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=r,s){var p=Object(b.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(p?t:i,o)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",gn.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null===t||void 0===t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,c=this.findItemsFromView(this.view,t);if(c.length){c=Object(b.q)(c);try{for(var s=d(c),l=s.next();!l.done;l=s.next()){var u=l.value;try{for(var f=(r=void 0,d(u)),h=f.next();!h.done;h=f.next()){var p=h.value,g=p.mappingData,v=g.x,y=g.y;p.x=Object(b.C)(v)?v[v.length-1]:v,p.y=Object(b.C)(y)?y[y.length-1]:y}}catch(S){r={error:S}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(E){e={error:E}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&c.length>1){var m=c[0],x=Math.abs(t.y-m[0].y);try{for(var O=d(c),j=O.next();!j.done;j=O.next()){var w=j.value,C=Math.abs(t.y-w[0].y);C<=x&&(m=w,x=C)}}catch(M){o={error:M}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}c=[m]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(b.m)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r'+r+"":r}})},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(),r=new ht(l(l({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var c=d(t),s=c.next();!s.done;s=c.next()){var u=s.value,f=u.x,h=u.y;if(a||(null===i||void 0===i?void 0:i.getClip())){var p=Mt(o.getCoordinate()),g=p.type,v=p.attrs;null===i||void 0===i||i.setClip({type:g,attrs:v})}else null===i||void 0===i||i.setClip(void 0);var y=l(l({fill:u.color,symbol:"circle",shadowColor:u.color},e),{x:f,y:h});i.addShape("marker",{attrs:y})}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(b.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=Et(i,t),a=i.getCenter(),c=i.getRadius();r=gt(a.x,a.y,c,o),n=a}var s=Object(b.h)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(b.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete s.type;var l=this.xCrosshair;l?l.update(s):(l=new ot.Crosshair.Line(s)).init(),l.render(),l.show(),this.xCrosshair=l},e.prototype.renderYCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:St(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=Object(b.h)({container:this.getTooltipCrosshairsGroup()},n,Object(b.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?i.isRect&&"circle"===c.get("type")||!i.isRect&&"line"===c.get("type")?(c=new ot.Crosshair[r](n)).init():c.update(n):(c=new ot.Crosshair[r](n)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(b.s)(n,["crosshairs","text"]),i=Object(b.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),c=o[0],s=a.getXScale(),l=a.getYScales()[0],u=void 0,f=void 0;if(i){var h=this.view.getCoordinate().invert(e);u=s.invert(h.x),f=l.invert(h.y)}else u=c.data[s.field],f=c.data[l.field];var d="x"===t?u:f;return Object(b.I)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=un(t,e,this.getTooltipCfg());try{for(var o=d(t.views),a=o.next();!a.done;a=o.next()){var c=a.value;i=i.concat(this.findItemsFromView(c,e))}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(b.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(Cn),En={};function Mn(t){return En[t.toLowerCase()]}function kn(t,e){En[t.toLowerCase()]=e}var Pn={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},An={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},In={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Fn(t,e,n){var r=An[t];return r&&(Object(b.I)(r)&&(r=r(e)),r=Object(b.h)({},Pn,r),n)?r[n]:r}function Tn(t,e,n){var r=Object(b.s)(t.get("origin"),"data","_origin"),i=e.animation,o=function(t,e){return{delay:Object(b.I)(t.delay)?t.delay(e):t.delay,easing:Object(b.I)(t.easing)?t.easing(e):t.easing,duration:Object(b.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(i){var a=Mn(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Ln=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,c=e.visible,s=void 0===c||c;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=s,n.elementIndex=a,n}return s(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var r=this.getAnimateCfg("leave");r?Tn(n,r,{coordinate:e.coordinate,toAttrs:l({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,a=n.shape,c=n.shapeType,s=r.indexOf(t);if(e){if(s>-1)return;r.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===s)return;if(r.splice(s,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,f=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(f):a.set("zIndex",f)}}var h=i.drawShape(c,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,h,r,null):this.syncShapeStyle(a,h,["reset"],null),h.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(ot.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(b.j)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,i=n.defaultShapeType,o=n.theme[t]||n.theme[i];this.statesStyle=Object(b.h)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(b.s)(n,[t,"style"],{}),i=r[e]||r;return Object(b.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?l(l({},r),{callback:function(){var t;Object(b.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(O.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this.shapeFactory,i=this.container,o=this.shapeType;if(this.shape=r.drawShape(o,t,i),this.shape){this.setShapeInfo(this.shape,t);var a=this.shape.cfg.name;a?Object(b.Q)(a)&&(this.shape.cfg.name=["element",a]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=e?"enter":"appear",s=this.getAnimateCfg(c);s&&(null===(n=this.geometry)||void 0===n||n.emit(O.BEFORE_DRAW_ANIMATE),Tn(this.shape,s,{coordinate:r.coordinate,toAttrs:l({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var c=t.get("clipShape"),s=e.get("clipShape");if(this.syncShapeStyle(c,s,n,r),t.isGroup())for(var l=t.get("children"),u=e.get("children"),f=0;f=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(b.K)(e)||Object(b.O)(e))Object(b.O)(e)&&Object(b.H)(Object.keys(e),["values"])?Object(b.lb)(this.attributeOption,t,{fields:e.values}):Object(b.lb)(this.attributeOption,t,e);else{var r={};Object(b.M)(e)?r.values=[e]:r.fields=Wn(e),n&&(Object(b.I)(n)?r.callback=n:r.values=n),Object(b.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,i=this.shapeType;this.groupScales=[];var o={},a=function(a){if(n.hasOwnProperty(a)){var c=n[a];if(!c)return{value:void 0};var s=l({},c),u=s.callback,f=s.values,h=s.fields,d=(void 0===h?[]:h).map((function(e){var n=t.scales[e];!o[e]&&M.includes(a)&&("cat"===Pt(n,Object(b.s)(t.scaleDefs,e),a,t.type)&&(t.groupScales.push(n),o[e]=!0));return n}));s.scales=d,"position"!==a&&1===d.length&&"identity"===d[0].type?s.values=d[0].values:u||f||("size"===a?s.values=r.sizes:"shape"===a?s.values=r.shapes[i]||[]:"color"===a&&(d.length?s.values=d[0].values.length<=10?r.colors10:r.colors20:s.values=r.colors10));var p=X(a);e[a]=new p(s)}};for(var c in n){var s=a(c);if("object"===typeof s)return s.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),o=[],a=0,c=i.length;ao&&(o=l)}var u=this.scaleDefs,f={};it.max&&!Object(b.s)(u,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var u=0;u0}))}var er=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),f(this,void 0,void 0,(function(){var r,i,o,a,c,s,u,f,p=this;return h(this,(function(h){switch(h.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=d(t),a=o.next();!a.done;a=o.next())(c=a.value)&&(r[c.id]=this.renderLabel(c,i))}catch(g){u={error:g}}finally{try{a&&!a.done&&(f=o.return)&&f.call(o)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,r)];case 1:h.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),h.label=2;case 2:return s=this.shapesMap,Object(b.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(s[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),c=t.get("animateCfg"),u=s[e];!function t(e,n,r){var i=r.data,o=r.origin,a=r.animateCfg,c=r.coordinate,s=Object(b.s)(a,"update");e.set("data",i),e.set("origin",o),e.set("animateCfg",a),e.set("coordinate",c),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(l,u){var f=n.getChildByIndex(u);if(f){l.set("data",i),l.set("origin",o),l.set("animateCfg",a),l.set("coordinate",c);var h=bt(l,f);s?Tn(l,s,{toAttrs:h,coordinate:c}):l.attr(h),f.isGroup()&&t(l,f,r)}else e.removeChild(l),l.remove(!0)})),Object(b.j)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}(u,r[e],{data:i,origin:o,animateCfg:c,coordinate:a}),r[e]=u}else{if(p.container.destroyed)return;p.container.add(t);var f=Object(b.s)(t.get("animateCfg"),n?"enter":"appear");f&&Tn(t,f,{toAttrs:l({},t.attr()),coordinate:t.get("coordinate")})}delete s[e]}})),Object(b.j)(s,(function(t){var e=Object(b.s)(t.get("animateCfg"),"leave");e?Tn(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,o=t.data,a=t.mappingData,c=t.coordinate,s=t.animate,u=t.content,f={id:r,elementId:i,data:o,origin:l(l({},a),{data:a._origin}),coordinate:c},h=e.addGroup(l({name:"label",animateCfg:!1!==this.animate&&null!==s&&!1!==s&&Object(b.h)({},this.animate,s)},f));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var d=u.getCanvasBBox(),p=d.width,g=d.height,v=Object(b.s)(t,"textAlign","left"),y=t.x;"center"===v?y-=p/2:"right"!==v&&"end"!==v||(y-=p),$n(u,y,t.y-g/2),n=u,h.add(u)}else{var m=Object(b.s)(t,["style","fill"]);n=h.addShape("text",l({attrs:l(l({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(b.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(b.L)(m)?t.color:m})},f))}return t.rotate&&Zn(n,t.rotate),h},t.prototype.doLayout=function(t,e,n){return f(this,void 0,void 0,(function(){var r,i=this;return h(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(b.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o,a=(o=Object(b.s)(r,"type",""),Dn[o.toLowerCase()]);if(a){var c=[],s=[];return Object(b.j)(n,(function(t,n){c.push(t),s.push(e[t.get("elementId")])})),a(t,c,s,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(b.j)(t,(function(t){var n=Object(b.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(b.s)(t,"labelLine",{}),a=t.id,c=o.path;if(!c){var s=gt(r.x,r.y,i,t.angle);c=[["M",s.x,s.y],["L",t.x,t.y]]}var u=e[a];u.destroyed||u.addShape("path",{capture:!1,attrs:l({path:c,stroke:t.color?t.color:Object(b.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(b.j)(t,(function(t){var n=Object(b.s)(t,"coordinate"),r=Object(b.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var c=Jn(o,t,r.padding),s=c.rotation,f=u(c,["rotation"]),h=o.addShape("rect",{attrs:l(l({},f),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(h.setZIndex(-1),s){var d=a.getMatrix();h.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(b.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(b.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function nr(t){var e=0;return Object(b.j)(t,(function(t){e+=t})),e/t.length}var rr=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(b.j)(t,(function(t,i){var o=r[i];if(!o||Object(b.K)(t.x)||Object(b.K)(t.y))n.push(null);else{var a=Object(b.C)(o.content)?o.content:[o.content];o.content=a;var c=a.length;Object(b.j)(a,(function(r,i){if(Object(b.K)(r)||""===r)n.push(null);else{var a=l(l({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,c)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),f(this,void 0,void 0,(function(){var n,r,i;return h(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(b.s)(i,"innerLabels",{}):Object(b.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(b.h)({},n,i.innerLabels,t):Object(b.h)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,c={x:0,y:0};return c[o]=e>0||1===n?r*a:r*a*-1,c},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(b.C)(i)&&(i=1===t.content.length?r?nr(i):i.length<=2?i[e.length-1]:nr(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(b.C)(e.shape)?e.shape[0]:e.shape,s="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var l=function(t,e){if(Object(b.M)(t)&&Object(b.M)(e))return[t,e];if(e=e,dt(t=t)||dt(e))return[pt(t),pt(e)];for(var n,r,i=-1,o=0,a=0,c=t.length-1,s=0;++i1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new er({container:e,layout:Object(b.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&Fn("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,c=a.fields,s=a.callback,u=a.cfg,f=c.map((function(t){return i[t]})),h=[];return Object(b.j)(t,(function(t,n){var r,i=t._origin,a=e.getLabelText(i,f);if(s){var d=c.map((function(t){return i[t]}));if(r=s.apply(void 0,g([],p(d),!1)),Object(b.K)(r))return void h.push(null)}var v=l(l({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},u),r);Object(b.I)(v.position)&&(v.position=v.position(i,t,n));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);(v=Object(b.h)({},m,v)).offset=e.getLabelOffset(v.offset||0);var x=v.content;Object(b.I)(x)?v.content=x(i,t,n):Object(b.S)(x)&&(v.content=a[0]),h.push(v)})),h},t.prototype.getLabelText=function(t,e){var n=[];return Object(b.j)(e,(function(e){var r=t[e.field];r=Object(b.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(b.K)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(b.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(b.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(b.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function ir(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,g([e],p(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var or={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},ar=["line","cross","tick","plus","hyphen"];function cr(t){var e=t.symbol;Object(b.Q)(e)&&or[e]&&(t.symbol=or[e])}function sr(t){return t.startsWith(y.LEFT)||t.startsWith(y.RIGHT)?"vertical":"horizontal"}function lr(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,c=e.getAttribute("color"),s=e.getAttribute("shape"),u=t.getTheme().defaultColor,f=e.coordinate.isPolar;return o.getTicks().map((function(n,h){var d,p=n.text,g=n.value,v=p,y=o.invert(g),m=0===t.filterFieldData(a,[(d={},d[a]=y,d)]).length;Object(b.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=y,e)]).length||(m=!0)}));var x,O,j=ir(c,y,u),w=ir(s,y,"point"),C=e.getShapeMarker(w,{color:j,isInPolar:f}),S=i;return Object(b.I)(S)&&(S=S(v,h,l({name:v,value:y},Object(b.h)({},r,C)))),function(t,e){var n=t.symbol;if(Object(b.Q)(n)&&-1!==ar.indexOf(n)){var r=Object(b.s)(t,"style",{}),i=Object(b.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(b.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}(C=Object(b.h)({},r,C,Ot(l({},S),["style"])),j),S&&S.style&&(C.style=(x=C.style,O=S.style,Object(b.I)(O)?O(x):Object(b.h)({},x,O))),cr(C),{id:y,name:v,value:y,marker:C,unchecked:m}}))}return[]}function ur(t,e){var n=Object(b.s)(t,["components","legend"],{});return Object(b.h)({},Object(b.s)(n,["common"],{}),Object(b.h)({},Object(b.s)(n,[e],{})))}function fr(t){return!t&&(null===t||void 0===t||isNaN(t))}function hr(t){if(Object(b.C)(t))return fr(t[1].y);var e=t.y;return Object(b.C)(e)?fr(e[0]):fr(e)}function dr(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 r=[],i=0,o=t.length;i=t&&i<=t+n&&o>=e&&o<=e+r}function Hr(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<.5*Math.PI?(r={x:s.minX,y:s.minY},i={x:s.maxX,y:s.maxY}):.5*Math.PI<=a&&a1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(h*h)+r*r*(f*f),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*h/r:0,y=n?g*-r*f/n:0,m=(c+l)/2+Math.cos(i)*v-Math.sin(i)*y,x=(s+u)/2+Math.sin(i)*v+Math.cos(i)*y,O=[(f-v)/n,(h-y)/r],j=[(-1*f-v)/n,(-1*h-y)/r],w=Qr([1,0],O),C=Qr(O,j);return Zr(O,j)<=-1&&(C=Math.PI),Zr(O,j)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:m,cy:x,rx:Kr(t,[l,u])?0:n,ry:Kr(t,[l,u])?0:r,startAngle:w,endAngle:w+C,xRotation:i,arcFlag:o,sweepFlag:a}}var ti=Math.sin,ei=Math.cos,ni=Math.atan2,ri=Math.PI;function ii(t,e,n,r,i,o,a){var c=e.stroke,s=e.lineWidth,l=ni(r-o,n-i),u=new _i({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*ei(ri/6)+","+10*ti(ri/6)+" L0,0 L"+10*ei(ri/6)+",-"+10*ti(ri/6),stroke:c,lineWidth:s}});u.translate(i,o),u.rotateAtPoint(i,o,l),t.set(a?"startArrowShape":"endArrowShape",u)}function oi(t,e,n,r,i,o,a){var c=e.startArrow,s=e.endArrow,l=e.stroke,u=e.lineWidth,f=a?c:s,h=f.d,d=f.fill,p=f.stroke,g=f.lineWidth,v=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ix?b:x,E=b>x?1:b/x,M=b>x?x/b:1;e.translate(y,m),e.rotate(w),e.scale(E,M),e.arc(0,0,S,O,j,1-C),e.scale(1/E,1/M),e.rotate(-w),e.translate(-y,-m)}break;case"Z":e.closePath()}if("Z"===h)c=s;else{var k=f.length;c=[f[k-2],f[k-1]]}}}}function vi(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 yi(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),c=a&&!(!a.width||!a.height);o&&c?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:c&&(e=a)}return e}var mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.onCanvasChange=function(t){vi(this,t)},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),ui(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(b.j)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=Object(b.bb)(e),o=Object(b.Y)(e),a=Object(b.bb)(n),c=Object(b.Y)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:c,width:o-i,height:c-a};var s=this.cfg.canvas;if(s){var l=s.getViewRange();this.set("isInView",Hr(r,l))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),ui(t,this),this._applyClip(t,this.getClip()),fi(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(L.b),bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return mi},e.prototype.onCanvasChange=function(t){vi(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(L.h)(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:c}},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(),ui(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);if(!Hr(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),ui(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=Hr(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,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(b.K)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(b.K)(i)||1===i||(t.globalAlpha=i),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(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(L.c),xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,c=o.y,s=o.r,l=i/2,u=zr(a,c,t,e);return r&&n?u<=s+l:r?u<=s:!!n&&(u>=s-l&&u<=s+l)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(bi);function Oi(t,e,n,r){return t/(n*n)+e/(r*r)}var ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,c=o.x,s=o.y,l=o.rx,u=o.ry,f=(t-c)*(t-c),h=(e-s)*(e-s);return r&&n?Oi(f,h,l+a,u+a)<=1:r?Oi(f,h,l,u)<=1:!!n&&(Oi(f,h,l-a,u-a)>=1&&Oi(f,h,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,c=i>o?1:i/o,s=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(c,s),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(bi);function wi(t){return t instanceof HTMLElement&&Object(b.Q)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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(b.Q)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):wi(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"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,r=e.y,i=e.width,o=e.height,a=e.sx,c=e.sy,s=e.swidth,l=e.sheight,u=e.img;(u instanceof Image||wi(u))&&(Object(b.K)(a)||Object(b.K)(c)||Object(b.K)(s)||Object(b.K)(l)?t.drawImage(u,n,r,i,o):t.drawImage(u,a,c,s,l,n,r,i,o))},e}(bi),Si=n(1005);function Ei(t,e,n,r,i,o,a){var c=Math.min(t,n),s=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return o>=c-f&&o<=s+f&&a>=l-f&&a<=u+f&&Si.c.pointToLine(t,e,n,r,o,a)<=i/2}var Mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=t.startArrow,a=t.endArrow;o&&ci(this,t,r,i,e,n),a&&si(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return Ei(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,c=e.endArrow,s={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(s=ai(n,r,i,o,e.startArrow.d)),c&&c.d&&(l=ai(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+s.dx,r+s.dy),t.lineTo(i-l.dx,o-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,r=t.x2,i=t.y2;return Si.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return Si.c.pointAt(n,r,i,o,t)},e}(bi),ki={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 r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},Pi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(b.K)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",c=this._getR(r);if(Object(b.I)(a))n=(t=a)(i,o,c),n=Object(ie.d)(n);else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,c)}return n},e.prototype.createPath=function(t){gi(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=ki,e}(bi);function Ai(t,e,n){var r=Object(L.i)();return t.createPath(r),r.isPointInPath(e,n)}function Ii(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Fi(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Ti(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o0!==Ii(c[1]-n)>0&&Ii(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}var Li=n(2186);function Ni(t,e,n,r,i,o,a,c){var s=(Math.atan2(c-e,a-t)+2*Math.PI)%(2*Math.PI);if(si)return!1;var l={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return zr(l.x,l.y,a,c)<=o/2}var Di=Q.a.transform;var Bi=_r({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,c=0;cy?v:y,w=Di(null,[["t",-p,-g],["r",-x],["s",1/(v>y?1:v/y),1/(v>y?y/v:1)]]);Li.transformMat3(O,O,w),o=Ni(0,0,j,m,b,e,O[0],O[1])}if(o)break}}return o}},L.f);function Ri(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(Object(b.K)(o)||Object(b.K)(n))return null;var a=o.length,c=i[n+1];return Si.b.pointAt(o[a-2],o[a-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Bi.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],c=this.get("curve");c&&(Object(b.j)(c,(function(t,e){n=c[e+1],r=t.length,n&&(i+=Si.b.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?(Object(b.j)(c,(function(s,l){n=c[l+1],r=s.length,n&&((t=[])[0]=o/i,e=Si.b.length(s[r-2],s[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[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 r=e[n-2].currentPoint,i=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(bi);function zi(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Si.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,i=0,o=[];Object(b.j)(t,(function(a,c){t[c+1]&&((n=[])[0]=i/e,r=Si.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(bi);var Ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,c=o.y,s=o.width,l=o.height,u=o.radius;if(u){var f=!1;return n&&(f=function(t,e,n,r,i,o,a,c){return Ei(t+i,e,t+n-i,e,o,a,c)||Ei(t+n,e+i,t+n,e+r-i,o,a,c)||Ei(t+n-i,e+r,t+i,e+r,o,a,c)||Ei(t,e+r-i,t,e+i,o,a,c)||Ni(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,c)||Ni(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,c)||Ni(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,c)||Ni(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,c)}(a,c,s,l,u,i,t,e)),!f&&r&&(f=Ai(this,t,e)),f}var h=i/2;return r&&n?Vr(a-h,c-h,s+h,l+h,t,e):r?Vr(a,c,s,l,t,e):n?function(t,e,n,r,i,o,a){var c=i/2;return Vr(t-c,e-c,n,i,o,a)||Vr(t+n-c,e-c,i,r,o,a)||Vr(t+c,e+r-c,n,i,o,a)||Vr(t-c,e+c,i,r,o,a)}(a,c,s,l,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var c=function(t){var e=0,n=0,r=0,i=0;return Object(b.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),s=c[0],l=c[1],u=c[2],f=c[3];t.moveTo(n+s,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+f,r+o),0!==f&&t.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+s),0!==s&&t.arc(n+s,r+s,s,Math.PI,1.5*Math.PI),t.closePath()}},e}(bi),Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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(L.g)(t)},e.prototype._setText=function(t){var e=null;Object(b.Q)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),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 r,i=this.attrs,o=i.textBaseline,a=i.x,c=i.y,s=1*i.fontSize,l=this._getSpaceingY(),u=Object(L.j)(i.text,i.fontSize,i.lineHeight);Object(b.j)(e,(function(e,i){r=c+i*(l+s)-u+s,"middle"===o&&(r+=u-s-(u-s)/2),"top"===o&&(r+=u-s),Object(b.K)(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var a=n.text;Object(b.K)(a)||(e?t.fillText(a,r,i):t.strokeText(a,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(b.K)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(b.K)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(bi);function Gi(t,e,n){var r=t.getTotalMatrix();if(r){var i=function(t,e){if(e){var n=Object(L.k)(e);return Object(L.m)(n,t)}return t}([e,n,1],r);return[i[0],i[1]]}return[e,n]}function Wi(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(L.l)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Gi(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}var Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(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 r},e.prototype.getGroupBase=function(){return mi},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);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 r=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!Wi(e,n,r))return null;for(var i=null,o=e.getChildren(),a=o.length-1;a>=0;a--){var c=o[a];if(c.isGroup())i=t(c,n,r);else if(Wi(c,n,r)){var s=c,l=Gi(c,n,r),u=l[0],f=l[1];s.isInShape(u,f)&&(i=c)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return Object(b.j)(t,(function(t){var o=yi(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:Object(b.bb)(e),minY:Object(b.bb)(n),maxX:Object(b.Y)(r),maxY:Object(b.Y)(i)}}(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=function(t,e){return t&&e&&Hr(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}(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(b.d)(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),ui(t,this),fi(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),ui(t,this),hi(this,n,r),fi(t,n,r),t.restore()):e.length&&function t(e){for(var n=0;ne)n.insertBefore(t,i);else if(o0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),s&&u.setAttribute(Ji.strokeOpacity,s),l&&u.setAttribute(Ji.lineWidth,l))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(Ji[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(Ji[e],"url(#"+i+")")}else r.setAttribute(Ji[e],n);else r.setAttribute(Ji[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,c=r.shadowColor;(i||o||a||c)&&function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&ro(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(L.c),lo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),uo=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 $i(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(b.j)(e||n,(function(t,e){Ji[e]&&r.setAttribute(Ji[e],t)})),"function"===typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(so),fo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),ho=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(b.j)(e||r,(function(t,e){"img"===e?n._setImage(r.img):Ji[e]&&i.setAttribute(Ji[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(b.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(b.Q)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.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",r.toDataURL())}},e}(so),po=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(b.O)(e)?t.addArrow(n,Ji[i]):t.getDefaultArrow(n,Ji[i]);r.setAttribute(Ji[i],"url(#"+o+")")}else r.removeAttribute(Ji[i]);else Ji[i]&&r.setAttribute(Ji[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return Si.c.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return Si.c.pointAt(n,r,i,o,t)},e}(so),go={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},vo={get:function(t){return go[t]},register:function(t,e){go[t]=e},remove:function(t){delete go[t]},getAll:function(){return go}},yo=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 $i(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(b.C)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=Object(b.I)(o)?o:vo.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=vo,e}(so),mo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(b.j)(e||r,(function(e,o){if("path"===o&&Object(b.C)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(b.O)(e)?t.addArrow(r,Ji[o]):t.getDefaultArrow(r,Ji[o]);i.setAttribute(Ji[o],"url(#"+a+")")}else i.removeAttribute(Ji[o]);else Ji[o]&&i.setAttribute(Ji[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(so),bo=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 $i(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"points"===e&&Object(b.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),xo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-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(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"points"===e&&Object(b.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Ji[e]&&r.setAttribute(Ji[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.K)(e)?(this.set("totalLength",Si.d.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),Object(b.j)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Si.c.pointAt(r[n][0],r[n][1],r[n+1][0],r[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,r,i=0,o=[];Object(b.j)(t,(function(a,c){t[c+1]&&((n=[])[0]=i/e,r=Si.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(so);var Oo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(b.j)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&Ji[e]&&i.setAttribute(Ji[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var a=function(t){var e=0,n=0,r=0,i=0;return Object(b.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Object(b.C)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(so),jo=n(2250),wo={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Co={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},So={left:"left",start:"left",center:"middle",right:"end",end:"end"},Eo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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,r=this.attr(),i=this.get("el");this._setFont(),Object(b.j)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?ro(n):Ji[e]&&i.setAttribute(Ji[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=Object(jo.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",Co[n]||"alphabetic"):t.setAttribute("alignment-baseline",wo[n]||"baseline"),t.setAttribute("text-anchor",So[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),c=a.length-1,s="";Object(b.j)(a,(function(t,e){0===e?"alphabetic"===o?s+=''+t+"":"top"===o?s+=''+t+"":"middle"===o?s+=''+t+"":"bottom"===o?s+=''+t+"":"hanging"===o&&(s+=''+t+""):s+=''+t+""})),e.innerHTML=s}else e.innerHTML=t;else e.innerHTML=""},e}(so),Mo=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ko=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Po=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Ao(t){var e=t.match(Po);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(b.j)(e,(function(t){t=t.split(":"),n+=''})),n}var Io=function(){function t(t){this.cfg={};var e=null,n=Object(b.vb)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=Mo.exec(t),o=Object(b.eb)(Object(b.sb)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o';e.innerHTML=n},t}(),No=function(){function t(t,e){this.cfg={};var n=to("marker"),r=Object(b.vb)("marker_");n.setAttribute("id",r);var i=to("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),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,r=this.cfg.path,i=this.cfg.d;Object(b.C)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),Do=function(){function t(t){this.type="clip",this.cfg={};var e=to("clipPath");this.el=e,this.id=Object(b.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}(),Bo=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ro=function(){function t(t){this.cfg={};var e=to("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=to("image");e.appendChild(n);var r=Object(b.vb)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=Bo.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),_o=function(){function t(t){var e=to("defs"),n=Object(b.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,r=null,i=0;i0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Yo(t,e,n,r,i){for(var o=vr(t,e,!e,"lineWidth"),a=t.connectNulls,c=t.isInCircle,s=dr(t.points,a,t.showSinglePoint),l=[],u=0,f=s.length;ur&&(r=i),i=e[0]})));var p=this.scales[f];try{for(var g=d(t),v=g.next();!v.done;v=g.next()){var y=v.value,m=this.getDrawCfg(y),b=m.x,x=m.y,O=p.scale(y._origin[f]);this.drawGrayScaleBlurredCircle(b-c.x,x-s.y,n+r,O,h)}}catch(C){i={error:C}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var j=h.getImageData(0,0,l,u);this.clearShadowCanvasCtx(),this.colorize(j),h.putImageData(j,0,0);var w=this.getImageShape();w.attr("x",c.x),w.attr("y",s.y),w.attr("width",l),w.attr("height",u),w.attr("img",h.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;ie&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function Qo(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(b.s)(t,["background","style","radius"]);if(a){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,s=n.isTransposed?n.getWidth():n.getHeight(),l=p(Zo(a,Math.min(c,s)),4),u=l[0],f=l[1],h=l[2],d=l[3],g=n.isTransposed&&n.isReflect("y"),v=g?0:1,y=function(t){return g?-t:t};r.push(["M",i.x,o.y+y(u)]),0!==u&&r.push(["A",u,u,0,0,v,i.x+u,o.y]),r.push(["L",o.x-f,o.y]),0!==f&&r.push(["A",f,f,0,0,v,o.x,o.y+y(f)]),r.push(["L",o.x,i.y-y(h)]),0!==h&&r.push(["A",h,h,0,0,v,o.x-h,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,v,i.x,i.y-y(d)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var m=n.getCenter(),x=mt(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};u=Math.sqrt(w(m.x-e[0].x)+w(m.y-e[0].y)),f=Math.sqrt(w(m.x-e[2].x)+w(m.y-e[2].y));r=vt(m.x,m.y,u,n.startAngle,n.endAngle,f)}else r=vt(m.x,m.y,n.getRadius(),O,j)}return r}function Jo(t,e,n){var r=[];return Object(b.K)(e)?n?r.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"]):r.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"]):r.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"]),r}function ta(t,e){return[e,t]}Hn("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Uo(t)}});Kn("interval","rect",{draw:function(t,e){var n,r=vr(t,!1,!0),i=e,o=null===t||void 0===t?void 0:t.background;if(o){i=e.addGroup({name:"interval-group"});var a=yr(t),c=Qo(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:l(l({},a),{path:c}),zIndex:-1,name:"element-background"})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,o,a,c,s,l,u=p(g([],p(t),!1),4),f=u[0],h=u[1],d=u[2],v=u[3],y=p("number"===typeof n?Array(4).fill(n):n,4),m=y[0],b=y[1],x=y[2],O=y[3];e.isTransposed&&(h=(r=p(ta(h,v),2))[0],v=r[1]),e.isReflect("y")&&(f=(i=p(ta(f,h),2))[0],h=i[1],d=(o=p(ta(d,v),2))[0],v=o[1]),e.isReflect("x")&&(f=(a=p(ta(f,v),2))[0],v=a[1],h=(c=p(ta(h,d),2))[0],d=c[1]);var j=[],w=function(t){return Math.abs(t)};return m=(s=p(Zo([m,b,x,O],Math.min(w(v.x-f.x),w(h.y-f.y))).map((function(t){return w(t)})),4))[0],b=s[1],x=s[2],O=s[3],e.isTransposed&&(m=(l=p([O,m,b,x],4))[0],b=l[1],x=l[2],O=l[3]),f.y1){i.sort();var g=function(t,e){var n=t.length,r=t;Object(b.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;oa&&(i=a)}return i}(i,r);a=(r.max-r.min)/g,i.length>a&&(a=i.length)}var v=r.range,y=1/a,m=1;(n.isPolar?m=n.isTransposed&&a>1?d:p:(r.isLinear&&(y*=v[1]-v[0]),m=h),!Object(b.K)(s)&&s>=0)?y=(1-(a-1)*(s/c))/a:y*=m;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(b.q)(t);return Object(b.yb)(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!Object(b.K)(l)&&l>=0)y=(y-l/c*(x-1))/x;else!Object(b.K)(s)&&s>=0?(y*=m,y/=x):y/=x;y=y>=0?y:0}if(!Object(b.K)(u)&&u>=0){var O=u/c;y>O&&(y=O)}if(!Object(b.K)(f)&&f>=0){var j=f/c;y0&&!Object(b.s)(n,[r,"min"])&&e.change({min:0}),o<=0&&!Object(b.s)(n,[r,"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}(qn),ra=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return s(e,t),e}(Ho),ia=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function oa(t,e,n,r,i){var o,a,c=vr(e,i,!i,"r"),s=t.parsePoints(e.points),u=s[0];if(e.isStack)u=s[1];else if(s.length>1){var f=n.addGroup();try{for(var h=d(s),p=h.next();!p.done;p=h.next()){var g=p.value;f.addShape({type:"marker",attrs:l(l(l({},c),{symbol:or[r]||r}),g)})}}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return f}return n.addShape({type:"marker",attrs:l(l(l({},c),{symbol:or[r]||r}),u)})}Hn("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return mr(t)}});Object(b.j)(ia,(function(t){Kn("point","hollow-".concat(t),{draw:function(e,n){return oa(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:or[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var aa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return s(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return l(l({},n),{isStack:!!this.getAdjust("stack")})},e}(qn);Hn("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(b.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});Kn("polygon","polygon",{draw:function(t,e){if(!Object(b.G)(t.points)){var n=vr(t,!0,!0),r=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var r=fa(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],a):(r.fill=r.stroke,n=function(t,e){var n=fa(t[1],e),r=fa(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:l(l({},r),{path:n})})}if("normal"===o)return n=yt(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:l(l({},r),{path:n})});var c=ua(i[1],i[3]),s=ua(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],c,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],s,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:l(l({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Kn("edge","smooth",{draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=ua(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:l(l({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});Kn("edge","vhv",{draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(b.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:l(l({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Kn("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Uo(t)},draw:function(t,e){var n=vr(t,!1,!0),r=this.parsePath(Jo(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("interval","hollow-rect",{draw:function(t,e){var n=vr(t,!0,!1),r=e,i=null===t||void 0===t?void 0:t.background;if(i){r=e.addGroup();var o=yr(t),a=Qo(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:l(l({},o),{path:a}),zIndex:-1,name:"element-background"})}var c=this.parsePath($o(t.points)),s=r.addShape("path",{attrs:l(l({},n),{path:c}),name:"interval"});return i?r:s},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Kn("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,r=t.y0;return Object(b.C)(n)?n.map((function(t,n){return{x:Object(b.C)(e)?e[n]:e,y:t}})):[{x:e,y:r},{x:e,y:n}]}(t)},draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=Ot(l({},n),["fill"]),i=this.parsePath($o(t.points,!1));return e.addShape("path",{attrs:l(l({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Kn("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Uo(t)},draw:function(t,e){var n=vr(t,!1,!0),r=this.parsePath(Jo(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("interval","tick",{getPoints:function(t){return function(t){var e,n,r,i=t.x,o=t.y,a=t.y0,c=t.size;Object(b.C)(o)?(n=(e=p(o,2))[0],r=e[1]):(n=a,r=o);var s=i+c/2,l=i-c/2;return[{x:i,y:n},{x:i,y:r},{x:l,y:n},{x:s,y:n},{x:l,y:r},{x:s,y:r}]}(t)},draw:function(t,e){var n,r=vr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:l(l({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function ha(t,e){var n=dr(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(b.j)(n,(function(t){var n=function(t,e){var n=[];return Object(b.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,c=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:c}];break;case"hvh":var s=(a+i)/2;r=[{x:s,y:o},{x:s,y:c}];break;case"vhv":var l=(o+c)/2;r=[{x:i,y:l},{x:a,y:l}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),l(l({},vr(t,!0,!1,"lineWidth")),{path:r})}function da(t){var e=Object(b.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function pa(t,e,n){var r,i=n/2;if(Object(b.C)(e)){var o=da(e),a=o.min,c=o.max,s=o.median,l=o.min1,u=t-i,f=t+i;r=[[u,c],[f,c],[t,c],[t,h=o.max1],[u,l],[u,h],[f,h],[f,l],[t,l],[t,a],[u,a],[f,a],[u,s],[f,s]]}else{e=Object(b.K)(e)?.5:e;var h,d=da(t),p=(a=d.min,c=d.max,s=d.median,e-i),g=e+i;r=[[a,p],[a,g],[a,e],[l=d.min1,e],[l,p],[l,g],[h=d.max1,g],[h,p],[h,e],[c,e],[c,p],[c,g],[s,p],[s,g]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function ga(t){var e=(Object(b.C)(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Object(b.Q)(t))return t.padEnd(e,n);if(Object(b.C)(t)){var r=t.length;if(r1){var c=e.addGroup();try{for(var s=d(o),l=s.next();!l.done;l=s.next()){var u=l.value;c.addShape("image",{attrs:{x:u.x-i/2,y:u.y-i,width:i,height:i,img:t.shape[1]}})}}catch(f){n={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(b.j)(ia,(function(t){Kn("point",t,{draw:function(e,n){return oa(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:or[t]||t,style:{r:4.5,fill:n}}}})})),Kn("schema","box",{getPoints:function(t){return pa(t.x,t.y,t.size)},draw:function(t,e){var n,r=vr(t,!0,!1),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:l(l({},r),{path:i,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=pa(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}}),Kn("schema","candle",{getPoints:function(t){return va(t.x,t.y,t.size)},draw:function(t,e){var n,r=vr(t,!0,!0),i=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:l(l({},r),{path:i,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=va(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),Kn("polygon","square",{draw:function(t,e){if(!Object(b.G)(t.points)){var n=vr(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:l(l({},n),ya(r,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("violin","smooth",{draw:function(t,e){var n=vr(t,!0,!0),r=this.parsePath(gr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Kn("violin","hollow",{draw:function(t,e){var n=vr(t,!0,!1),r=this.parsePath(pr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Kn("violin","hollow-smooth",{draw:function(t,e){var n=vr(t,!0,!1),r=this.parsePath(gr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),c=this.getCoordinate(),s=c.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=l(l({},a),((o={})[s]=a[s]*u,o)),c.isReflect("x")&&(a=l(l({},a),{x:-1*a.x})),c.isReflect("y")&&(a=l(l({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(b.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,c,s=this.getCoordinate(),l=s.isTransposed,u=e.points,f=s.convert(u[0]),h=s.convert(u[2]),d=this.getLabelValueDir(e),p=Object(b.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===p||"pyramid"===p){var g=Object(b.s)(e,"nextPoints"),v=Object(b.s)(e,"points");if(g){var y=s.convert(v[0]),m=s.convert(v[1]),x=s.convert(g[0]),O=s.convert(g[1]);l?(i=Math.min(x.y,y.y),a=Math.max(x.y,y.y),o=(m.x+O.x)/2,c=(y.x+x.x)/2):(i=Math.min((m.y+O.y)/2,(y.y+x.y)/2),a=Math.max((m.y+O.y)/2,(y.y+x.y)/2),o=O.x,c=y.x)}else i=Math.min(h.y,f.y),a=Math.max(h.y,f.y),o=h.x,c=f.x}else i=Math.min(h.y,f.y),a=Math.max(h.y,f.y),o=h.x,c=f.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=c,t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign",d>0?"left":"right");break;case"bottom":l&&(t.x=(o+c)/2),t.y=a,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(t.x=(o+c)/2),t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline","middle");break;case"top":l&&(t.x=(o+c)/2),t.y=i,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline",d>0?"bottom":"top")}},e}(rr),ba=Math.PI/2,xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(b.M)(t))n=t;else if(Object(b.Q)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(b.W)(n,(function(t){if(t&&r){var e=r.scale(Object(b.s)(t.data,r.field));return l(l({},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 r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,c=this.getPointAngle(r),s=t.labelEmit,l=this.getCirclePoint(c,a,r,s);return 0===l.r?l.content="":(l.content=o,l.angle=c,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(c,a,s):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(b.C)(t.x)||Object(b.C)(t.y)?{x:Object(b.C)(t.x)?t.x[e]:t.x,y:Object(b.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Et(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=St(i,n);if(0===a)return l(l({},o),{r:a});var c=t;i.isTransposed&&a>e&&!r?c=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(c),y:o.y+a*Math.sin(c),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+ba;return n&&(r-=ba),r&&(r>ba?r-=Math.PI:r<-ba&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(b.j)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(rr),Oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return s(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(b.h)({},r,Object(b.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 r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:Object(b.C)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Object(b.C)(t.x)?t.x[1]:t.x,y:t.y[1]},o=Et(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=Et(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return l(l({},gt(r.x,r.y,i,t)),{angle:t,r:i})},e}(xa);function ja(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,c=n.maxY,s=Math.abs(a-c),l=0,u=Number.MIN_VALUE,f=r.map((function(t){return t.y>l&&(l=t.y),t.ys&&(s=l-a);o;)for(f.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),s-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=f.length;i--;)if(i>0){var h=f[i-1],d=f[i];h.pos+h.size>d.pos&&(h.size+=d.size,h.targets=h.targets.concat(d.targets),h.pos+h.size>s&&(h.pos=s-h.size),f.splice(i,1),o=!0)}i=0,f.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var wa=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),c=r;c<=i;c+=1)if(n[c]){if(c===r||c===i){for(var s=o;s<=a;s++)if(n[c][s]){e=!1;break}}else if(n[c][o]||n[c][a]){e=!1;break}}else n[c]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var c=i;c<=o;c+=this.yGap)e[a][c]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Ca(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,c={x:e,y:n,textAlign:"center"};switch(r){case 0:c.y-=a+1,c.x+=1,c.textAlign="left";break;case 1:c.y-=a+1,c.x-=1,c.textAlign="right";break;case 2:c.y+=a+1,c.x-=1,c.textAlign="right";break;case 3:c.y+=a+1,c.x+=1,c.textAlign="left";break;case 5:c.y-=2*a+2;break;case 6:c.y+=2*a+2;break;case 7:c.x+=o+1,c.textAlign="left";break;case 8:c.x-=o+1,c.textAlign="right"}return t.attr(c),t.getCanvasBBox()}function Sa(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function Ea(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function Ma(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?[Ea(e[0],n,e[0]),Ea(e[1],n,e[0]),Ea(e[2],n,e[0]),Ea(e[3],n,e[0])]:e}function ka(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,g([],p(n),!1)),max:Math.max.apply(Math,g([],p(n),!1))}}function Pa(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{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}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(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=o.height:a.width>=o.width}(t,e,i)}))}function _a(t,e,n){return t.some((function(t){return n(t,e)}))}function za(t,e){return _a(t,e,(function(t,e){var n,r,i,o=Qn(t),a=Qn(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function Va(t,e,n){return t.some((function(t){return n(t,e)}))}function Ha(t,e){return Va(t,e,(function(t,e){var n,r,i,o=Qn(t),a=Qn(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}var Ka=Object(b.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,c=(Da||(Da=document.createElement("canvas").getContext("2d")),Da);return c.font=[o,a,i,"".concat(n,"px"),r].join(" "),c.measureText(Object(b.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),g([t],p(Object(b.xb)(e)),!1).join("")}));function Ya(t,e,n,r,i){var o,a,c=n.start,s=n.end,l=n.getWidth(),u=n.getHeight();"y"===i?(o=c.x+l/2,a=r.yc.x?r.x:c.x,a=c.y+u/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(c.x+s.x)/2,a=(c.y+s.y)/2));var f=function(t,e,n){var r,i=p(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}(t,[o,a],i);t.animate({matrix:f},e)}function Ga(t,e){var n,r=Jr(t,e),i=r.startAngle,o=r.endAngle;return!Object(b.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(b.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=p([o,i],2))[0],o=n[1]),Object(b.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(b.N)(o,-.5*Math.PI)&&!Object(b.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Wa(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 Xa(t){var e,n,r,i=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],a=i.length>1?i[1]:i[0],c=t.indexOf(o),s=t.indexOf(a),l=Wa(t[c-1]),u=Wa(t[s-1]),f=Ga(l,o),h=f.startAngle,d=f.endAngle,g=Ga(u,a),v=g.startAngle,y=g.endAngle;Object(b.N)(h,v)&&Object(b.N)(d,y)?(n=h,r=d):(n=Math.min(h,v),r=Math.max(d,y));var m=o[1],x=i[i.length-1][1];return m=0;a--){var c=this.getFacetsByLevel(t,a);try{for(var s=(e=void 0,d(c)),l=s.next();!l.done;l=s.next()){var u=l.value;this.isLeaf(u)||(u.originColIndex=u.columnIndex,u.columnIndex=this.getRegionIndex(u.children),u.columnValuesLength=i.length)}}catch(f){e={error:f}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length=n){var i=r.parsePosition([t[c],t[a.field]]);i&&f.push(i)}if(t[c]===u)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),c=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(b.K)(e))return null;var c=e.start,s=e.end,f=e.position,h=this.parsePosition(c),d=this.parsePosition(s),p=this.parsePosition(f);if(!(!["arc","image","line","region","regionFilter"].includes(t)||h&&d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if("arc"===t){var g=e,v=(g.start,g.end,u(g,["start","end"])),y=Et(i,h),m=Et(i,d);y>m&&(m=2*Math.PI+m),a=l(l({},v),{center:i.getCenter(),radius:St(i,h),startAngle:y,endAngle:m})}else if("image"===t){var x=e;x.start,x.end,v=u(x,["start","end"]);a=l(l({},v),{start:h,end:d,src:e.src})}else if("line"===t){var O=e;O.start,O.end,v=u(O,["start","end"]);a=l(l({},v),{start:h,end:d,text:Object(b.s)(e,"text",null)})}else if("region"===t){var j=e;j.start,j.end,v=u(j,["start","end"]);a=l(l({},v),{start:h,end:d})}else if("text"===t){var w=this.view.getData(),C=e,S=(C.position,C.content),E=(v=u(C,["position","content"]),S);Object(b.I)(S)&&(E=S(w)),a=l(l(l({},p),v),{content:E})}else if("dataMarker"===t){var M=e,k=(M.position,M.point),P=M.line,A=M.text,I=M.autoAdjust,F=M.direction;v=u(M,["position","point","line","text","autoAdjust","direction"]);a=l(l(l({},v),p),{coordinateBBox:this.getCoordinateBBox(),point:k,line:P,text:A,autoAdjust:I,direction:F})}else if("dataRegion"===t){var T=e,L=T.start,N=T.end,D=T.region,B=(A=T.text,T.lineLength);v=u(T,["start","end","region","text","lineLength"]);a=l(l({},v),{points:this.getRegionPoints(L,N),region:D,text:A,lineLength:B})}else if("regionFilter"===t){var R=e,_=(R.start,R.end,R.apply),z=R.color,V=(v=u(R,["start","end","apply","color"]),this.view.geometries),H=[],K=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};Object(b.j)(V,(function(t){_?Object(b.f)(_,t.type)&&Object(b.j)(t.elements,(function(t){K(t.shape)})):Object(b.j)(t.elements,(function(t){K(t.shape)}))})),a=l(l({},v),{color:z,shapes:H,start:h,end:d})}else if("shape"===t){var Y=e,G=Y.render,W=u(Y,["render"]);a=l(l({},W),{render:function(t){if(Object(b.I)(e.render))return G(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var X=e,q=X.html;X.position,W=u(X,["html","position"]);a=l(l(l({},W),p),{parent:o.get("el").parentNode,html:function(t){return Object(b.I)(q)?q(t,r.view):q}})}var U=Object(b.h)({},n,l(l({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(U.container=this.getComponentContainer(U)),U.animate=this.view.getOptions().animate&&U.animate&&Object(b.s)(e,"animate",U.animate),U.animateOption=Object(b.h)({},Pn,U.animateOption,e.animateOption),U},e.prototype.isTop=function(t){return Object(b.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(b.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,r=this.getAnnotationTheme(n),i=this.getAnnotationCfg(n,t,r);i&&Ot(i,["container"]),e.component.update(l(l({},i||{}),{visible:!!i})),Object(b.A)(oc,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(b.A)(oc,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,r){Object(b.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Cn);function cc(t,e){var n=Object(b.h)({},Object(b.s)(t,["components","axis","common"]),Object(b.s)(t,["components","axis",e]));return Object(b.s)(n,["grid"],{})}function sc(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var c=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]});else if(a){var s=(e.value+c)/2;i.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})]})}return o}),o[0]),i}function lc(t,e,n,r,i){var o=e.values.length,a=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,s=n.value,l=(c+s)/2;return"x"===i?a.push({points:[t.convert({x:r?s:l,y:0}),t.convert({x:r?s:l,y:1})]}):a.push({points:Object(b.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?s:l})}))}),n}),c[0]),a}function uc(t,e){var n=Object(b.s)(e,"grid");if(null===n)return!1;var r=Object(b.s)(t,"grid");return!(void 0===n&&null===r)}var fc=["container"],hc=l(l({},Pn),{appear:null}),dc=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(v.BG).addGroup(),n.gridForeContainer=n.view.getLayer(v.FORE).addGroup(),n.axisContainer=n.view.getLayer(v.BG).addGroup(),n.axisForeContainer=n.view.getLayer(v.FORE).addGroup(),n}return s(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(b.j)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,a=n.type,c=n.extra,s=c.dim,l=c.scale,u=c.alignTick;if(a===m.AXIS)e.isPolar?"x"===s?r=e.isTransposed?Lt(e,o):_t(e):"y"===s&&(r=e.isTransposed?_t(e):Lt(e,o)):r=Lt(e,o);else if(a===m.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===s?lc(e,t.view.getYScales()[0],l,u,s):sc(e,l,s,u):"x"===s?sc(e,l,s,u):lc(e,t.view.getXScale(),l,u,s),center:t.view.getCoordinate().getCenter()}}else r={items:sc(e,l,s,u)};i.update(r)}))},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,r){t.has(r)?e.set(r,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=zt(this.option,e.field);if(!1!==n){var r=Vt(n,y.BOTTOM),i=v.BG,o=this.view.getCoordinate(),a=this.getId("axis",e.field),c=this.getId("grid",e.field);if(o.isRect){if(s=this.cache.get(a))Ot(u=this.getLineAxisCfg(e,n,r),fc),s.component.update(u),t.set(a,s);else s=this.createLineAxis(e,n,i,r,"x"),this.cache.set(a,s),t.set(a,s);if(l=this.cache.get(c))Ot(u=this.getLineGridCfg(e,n,r,"x"),fc),l.component.update(u),t.set(c,l);else(l=this.createLineGrid(e,n,i,r,"x"))&&(this.cache.set(c,l),t.set(c,l))}else if(o.isPolar){var s,l;if(s=this.cache.get(a)){Ot(u=o.isTransposed?this.getLineAxisCfg(e,n,y.RADIUS):this.getCircleAxisCfg(e,n,r),fc),s.component.update(u),t.set(a,s)}else{if(o.isTransposed){if(Object(b.S)(n))return;s=this.createLineAxis(e,n,i,y.RADIUS,"x")}else s=this.createCircleAxis(e,n,i,r,"x");this.cache.set(a,s),t.set(a,s)}if(l=this.cache.get(c)){var u;Ot(u=o.isTransposed?this.getCircleGridCfg(e,n,y.RADIUS,"x"):this.getLineGridCfg(e,n,y.CIRCLE,"x"),fc),l.component.update(u),t.set(c,l)}else{if(o.isTransposed){if(Object(b.S)(n))return;l=this.createCircleGrid(e,n,i,y.RADIUS,"x")}else l=this.createLineGrid(e,n,i,y.CIRCLE,"x");l&&(this.cache.set(c,l),t.set(c,l))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(b.j)(n,(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=zt(e.option,i);if(!1!==o){var a=v.BG,c=e.getId("axis",i),s=e.getId("grid",i),l=e.view.getCoordinate();if(l.isRect){var u=Vt(o,0===r?y.LEFT:y.RIGHT);if(f=e.cache.get(c))Ot(d=e.getLineAxisCfg(n,o,u),fc),f.component.update(d),t.set(c,f);else f=e.createLineAxis(n,o,a,u,"y"),e.cache.set(c,f),t.set(c,f);if(h=e.cache.get(s))Ot(d=e.getLineGridCfg(n,o,u,"y"),fc),h.component.update(d),t.set(s,h);else(h=e.createLineGrid(n,o,a,u,"y"))&&(e.cache.set(s,h),t.set(s,h))}else if(l.isPolar){var f,h;if(f=e.cache.get(c)){Ot(d=l.isTransposed?e.getCircleAxisCfg(n,o,y.CIRCLE):e.getLineAxisCfg(n,o,y.RADIUS),fc),f.component.update(d),t.set(c,f)}else{if(l.isTransposed){if(Object(b.S)(o))return;f=e.createCircleAxis(n,o,a,y.CIRCLE,"y")}else f=e.createLineAxis(n,o,a,y.RADIUS,"y");e.cache.set(c,f),t.set(c,f)}if(h=e.cache.get(s)){var d;Ot(d=l.isTransposed?e.getLineGridCfg(n,o,y.CIRCLE,"y"):e.getCircleGridCfg(n,o,y.RADIUS,"y"),fc),h.component.update(d),t.set(s,h)}else{if(l.isTransposed){if(Object(b.S)(o))return;h=e.createLineGrid(n,o,a,y.CIRCLE,"y")}else h=e.createCircleGrid(n,o,a,y.RADIUS,"y");h&&(e.cache.set(s,h),t.set(s,h))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new at(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===y.RADIUS?y.NONE:r,type:m.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new st(o),layer:n,direction:y.NONE,type:m.GRID,extra:{dim:i,scale:t,alignTick:Object(b.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new ct(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:m.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new lt(o),layer:n,direction:y.NONE,type:m.GRID,extra:{dim:i,scale:t,alignTick:Object(b.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(b.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=Lt(i,n),a=Ht(t,e),c=Bt(this.view.getTheme(),n),s=Object(b.s)(e,["title"])?Object(b.h)({title:{style:{text:a}}},{title:Rt(this.view.getTheme(),n,e.title)},e):e,u=Object(b.h)(l(l({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Dt(o,i.getCenter()):Dt(o,i.getCenter()),theme:c}),c,s),f=this.getAnimateCfg(u),h=f.animate,d=f.animateOption;u.animateOption=d,u.animate=h;var p=Nt(o),g=Object(b.s)(u,"verticalLimitLength",p?1/3:.5);if(g<=1){var v=this.view.getCanvas().get("width"),y=this.view.getCanvas().get("height");u.verticalLimitLength=g*(p?v:y)}return u},e.prototype.getLineGridCfg=function(t,e,n,r){if(uc(Bt(this.view.getTheme(),n),e)){var i=cc(this.view.getTheme(),n),o=Object(b.h)({container:Object(b.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(b.s)(e,"grid"),this.getAnimateCfg(e));return o.items=sc(this.view.getCoordinate(),t,r,Object(b.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(b.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.pop();var a=Ht(t,e),c=Bt(this.view.getTheme(),y.CIRCLE),s=Object(b.s)(e,["title"])?Object(b.h)({title:{style:{text:a}}},{title:Rt(this.view.getTheme(),n,e.title)},e):e,u=Object(b.h)(l(l({container:r},_t(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:c}),c,s),f=this.getAnimateCfg(u),h=f.animate,d=f.animateOption;return u.animate=h,u.animateOption=d,u},e.prototype.getCircleGridCfg=function(t,e,n,r){if(uc(Bt(this.view.getTheme(),n),e)){var i=cc(this.view.getTheme(),y.RADIUS),o=Object(b.h)({container:Object(b.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(b.s)(e,"grid"),this.getAnimateCfg(e)),a=Object(b.s)(o,"alignTick",!0),c="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=lc(this.view.getCoordinate(),c,t,a,r),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(b.s)(t,"animate"),animateOption:t&&t.animateOption?Object(b.h)({},hc,t.animateOption):hc}},e}(Cn);function pc(t,e,n){return n===y.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===y.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===y.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===y.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===y.TOP_LEFT||n===y.LEFT_TOP?[t.tl.x,t.tl.y]:n===y.TOP_RIGHT||n===y.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===y.BOTTOM_LEFT||n===y.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===y.BOTTOM_RIGHT||n===y.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function gc(t,e){return Object(b.D)(t)?!1!==t&&{}:Object(b.s)(t,[e],t)}function vc(t){return Object(b.s)(t,"position",y.BOTTOM)}var yc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(v.FORE).addGroup(),n}return s(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(b.j)(this.components,(function(e){var n=e.component,r=e.direction,i=sr(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(i,o,a),s=n.get("maxWidth"),l=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,s||0),maxHeight:Math.min(c.maxHeight,l||0)});var u=n.get("padding"),f=n.getLayoutBBox(),h=new wt(f.x,f.y,f.width,f.height).expand(u),d=p(pc(t.view.viewBBox,h,r),2),g=d[0],v=d[1],y=p(pc(t.layoutBBox,h,r),2),m=y[0],b=y[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=v),n.setLocation({x:x+u[3],y:O+u[0]}),t.layoutBBox=t.layoutBBox.cut(h,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(b.s)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var i=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Ot(i,["container"]),r.component.update(i),e[n]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var a=v.FORE,c=vc(this.option);this.components.push({id:n,component:o,layer:a,direction:c,type:m.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var c=void 0,s=gc(t.option,i.field);!1!==s&&(Object(b.s)(s,"custom")?c=t.getCategoryCfg(n,r,i,s,!0):i.isLinear?c=t.getContinuousCfg(n,r,i,s):i.isCategory&&(c=t.getCategoryCfg(n,r,i,s))),c&&(Ot(c,["container"]),a.direction=vc(s),a.component.update(c),e[o]=!0)}else{var l=t.createFieldLegend(n,r,i);l&&(l.component.init(),t.components.push(l),e[o]=!0)}}));var s=[];Object(b.j)(this.getComponents(),(function(t){e[t.id]?s.push(t):t.component.destroy()})),this.components=s},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(b.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(b.j)(e,(function(e){var r=e.getGroupAttributes();Object(b.j)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,i=gc(this.option,n.field),o=v.FORE,a=vc(i);if(!1!==i&&(Object(b.s)(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:m.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new ut(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,Ot(r,["value"]));return new ft(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new ut(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(b.m)(i,(function(t){return 0===t.value})),a=Object(b.m)(i,(function(t){return 1===t.value})),c=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||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 s={min:Object(b.z)(c).value,max:Object(b.U)(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(s.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(s.colors=c.map((function(t){return t.attrValue})));var l=this.container,u=sr(vc(r)),f=Object(b.s)(r,"title");return f&&(f=Object(b.h)({text:It(n)},f)),s.container=l,s.layout=u,s.title=f,s.animateOption=Pn,this.mergeLegendCfg(s,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=Object(b.s)(r,"position",y.BOTTOM),c=ur(this.view.getTheme(),a),s=Object(b.s)(c,["marker"]),l=Object(b.s)(r,"marker"),u=sr(a),f=Object(b.s)(c,["pageNavigator"]),h=Object(b.s)(r,"pageNavigator"),d=i?function(t,e,n){return n.map((function(n,r){var i=e;Object(b.I)(i)&&(i=i(n.name,r,Object(b.h)({},t,n)));var o=Object(b.I)(n.marker)?n.marker(n.name,r,Object(b.h)({},t,n)):n.marker,a=Object(b.h)({},t,i,o);return cr(a),n.marker=a,n}))}(s,l,r.items):lr(this.view,t,e,s,l),p=Object(b.s)(r,"title");p&&(p=Object(b.h)({text:n?It(n):""},p));var g=Object(b.s)(r,"maxWidthRatio"),v=Object(b.s)(r,"maxHeightRatio"),m=this.getCategoryLegendSizeCfg(u,g,v);m.container=o,m.layout=u,m.items=d,m.title=p,m.animateOption=Pn,m.pageNavigator=Object(b.h)({},f,h);var x=this.mergeLegendCfg(m,r,a);x.reversed&&x.items.reverse();var O=Object(b.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=ur(this.view.getTheme(),r);return Object(b.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(b.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Cn),mc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=b.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=p(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=Object(b.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(x.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(x.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return s(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(x.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(x.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(b.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(b.G)(r)?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"),r=p(n,4),i=r[0],o=(r[1],r[2],r[3]),a=this.slider.component.getLayoutBBox(),c=new wt(a.x,a.y,Math.min(a.width,e),a.height).expand(n),s=this.getMinMaxText(this.start,this.end),u=s.minText,f=s.maxText,h=p(pc(this.view.viewBBox,c,y.BOTTOM),2),d=(h[0],h[1]),g=p(pc(this.view.coordinateBBox,c,y.BOTTOM),2),v=g[0];g[1];this.slider.component.update(l(l({},this.getSliderCfg()),{x:v+o,y:d+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:f})),this.view.viewBBox=this.view.viewBBox.cut(c,y.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new ot.Slider(l({container:this.container},t));return e.init(),{component:e,layer:v.FORE,direction:y.BOTTOM,type:m.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=l(l({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}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(b.O)(this.option)){var e=l({data:this.getData()},Object(b.s)(this.option,"trendCfg",{}));t=Object(b.h)({},t,this.getThemeOptions(),this.option),t=l(l({},t),{trendCfg:e})}return t.start=Object(b.c)(Math.min(Object(b.K)(t.start)?0:t.start,Object(b.K)(t.end)?1:t.end),0,1),t.end=Object(b.c)(Math.max(Object(b.K)(t.start)?0:t.start,Object(b.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=p(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,o=r.ticks;return t.reduce((function(t,n){return n[i]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(b.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(b.yb)(n,r.field);r.isLinear&&(i=i.sort());var o=i,a=Object(b.mb)(n);if(!r||!a)return{};var c=Object(b.mb)(o),s=Math.round(t*(c-1)),l=Math.round(e*(c-1)),u=Object(b.s)(o,[s]),f=Object(b.s)(o,[l]),h=this.getSliderCfg().formatter;return h&&(u=h(u,n[s],s),f=h(f,n[l],l)),{minText:u,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(b.mb)(n);if(r&&i){var o=Object(b.yb)(n,r.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,c=a,s=Object(b.mb)(c),l=Math.round(t*(s-1)),u=Math.round(e*(s-1));this.view.filter(r.field,(function(t,e){var n=c.indexOf(t);return!(n>-1)||xt(n,l,u)})),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}(Cn),bc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=b.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(b.c)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=Object(b.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(x.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(x.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return s(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(x.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(x.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"),r=this.scrollbar.component.getLayoutBBox(),i=new wt(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,c=void 0;if(o.isHorizontal){var s=p(pc(this.view.viewBBox,i,y.BOTTOM),2),u=(s[0],s[1]),f=p(pc(this.view.coordinateBBox,i,y.BOTTOM),2),h=f[0];f[1];a=h,c=u}else{var d=p(pc(this.view.viewBBox,i,y.RIGHT),2),g=(d[0],u=d[1],p(pc(this.view.viewBBox,i,y.RIGHT),2));h=g[0],g[1];a=h,c=u}a+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(l(l({},o),{x:a,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(l(l({},o),{x:a,y:c})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?y.BOTTOM:y.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(b.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(b.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=u(n,["thumbHighlightColor"]);return{default:Object(b.h)({},Object(b.s)(e,["default","style"],{}),i),hover:Object(b.h)({},Object(b.s)(e,["hover","style"],{}),{thumbColor:r})}},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(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(b.c)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,r=p(t,2),i=r[0],o=r[1],a="vertical"!==this.getValidScrollbarCfg().type,c=Object(b.yb)(this.data,this.xScaleCfg.field),s=this.view.getXScale().isLinear?c.sort((function(t,e){return Number(t)-Number(e)})):c,l=a?s:s.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=l.indexOf(t);return!(e>-1)||xt(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new ot.Scrollbar(l(l({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:v.FORE,direction:t?y.BOTTOM:y.RIGHT,type:m.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?l(l({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):l({},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,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(b.yb)(e,t.field);return Object(b.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,c=r.height,s=r.style,u="vertical"!==i,f=p(o,4),h=f[0],d=f[1],g=f[2],v=f[3],y=u?{x:e.minX+v,y:n.maxY-c-g}:{x:n.maxX-a-d,y:e.minY+h},m=this.getStep(),x=this.getCnt(),O=u?e.width-v-d:e.height-h-g,j=Math.max(O*Object(b.c)(m/x,0,1),20);return l(l({},this.getThemeOptions()),{x:y.x,y:y.y,size:u?c:a,isHorizontal:u,trackLen:O,thumbLen:j,thumbOffset:0,theme:this.getScrollbarTheme(s)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(b.O)(this.option)&&(t=l(l({},t),this.option)),Object(b.O)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),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=g([],p(n),!1).reverse()),n},e}(Cn),xc={fill:"#CCD6EC",opacity:.3};function Oc(t,e,n){var r,i,o,a,c,s,l=function(t,e,n){var r,i,o=un(t,e,n);try{for(var a=d(t.views),c=a.next();!c.done;c=a.next()){var s=c.value;o=o.concat(un(s,e,n))}}catch(l){r={error:l}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,e,n);if(l.length){l=Object(b.q)(l);try{for(var u=d(l),f=u.next();!f.done;f=u.next()){var h=f.value;try{for(var p=(o=void 0,d(h)),g=p.next();!g.done;g=p.next()){var v=g.value,y=v.mappingData,m=y.x,x=y.y;v.x=Object(b.C)(m)?m[m.length-1]:m,v.y=Object(b.C)(x)?x[x.length-1]:x}}catch(M){o={error:M}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}catch(k){r={error:k}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}if(!1===n.shared&&l.length>1){var O=l[0],j=Math.abs(e.y-O[0].y);try{for(var w=d(l),C=w.next();!C.done;C=w.next()){var S=C.value,E=Math.abs(e.y-S[0].y);E<=j&&(O=S,j=E)}}catch(P){c={error:P}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(c)throw c.error}}l=[O]}return Object(b.ub)(Object(b.q)(l))}return[]}var jc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=Oc(e,{x:n.x,y:n.y},r);if(!Object(b.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],c=[],s=e.geometries;if(Object(b.j)(s,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));c=c.concat(e)}})),c.length){var u=e.getCoordinate(),f=c[0].shape.getCanvasBBox(),h=c[0].shape.getCanvasBBox(),d=f;Object(b.j)(c,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minYh.maxY&&(h=e)):(e.minXh.maxX&&(h=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 p=e.backgroundGroup,g=e.coordinateBBox,v=void 0;if(u.isRect){var y=e.getXScale(),m=t||{},x=m.appendRatio,O=m.appendWidth;Object(b.K)(O)&&(x=Object(b.K)(x)?y.isLinear?0:.25:x,O=u.isTransposed?x*h.height:x*f.width);var j=void 0,w=void 0,C=void 0,S=void 0;u.isTransposed?(j=g.minX,w=Math.min(h.minY,f.minY)-O,C=g.width,S=d.height+2*O):(j=Math.min(f.minX,h.minX)-O,w=g.minY,C=d.width+2*O,S=g.height),v=[["M",j,w],["L",j+C,w],["L",j+C,w+S],["L",j,w+S],["Z"]]}else{var E=Object(b.z)(c),M=Object(b.U)(c),k=mt(E.getModel(),u).startAngle,P=mt(M.getModel(),u).endAngle,A=u.getCenter(),I=u.getRadius(),F=u.innerRadius*I;v=vt(A.x,A.y,I,k,P,F)}if(this.regionPath)this.regionPath.attr("path",v),this.regionPath.show();else{var T=Object(b.s)(t,"style",xc);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:l(l({},T),{path:v})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(Wt),wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Object(b.s)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Object(b.H)(o,a)||this.showTooltip(n,a),this.timeStamp=i,this.location=a}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(Wt),Cc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.showTooltip=function(t,e){var n=je(t);Object(b.j)(n,(function(n){var r=we(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=je(t);Object(b.j)(e,(function(t){t.hideTooltip()}))},e}(wc),Sc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,i={x:t.x,y:t.y};r&&Object(b.H)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(l({title:n},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,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(b.s)(i,["components","tooltip","domStyles"],{}),a=new ht({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:l({},Object(b.h)({},o,(t={},t[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Wt),Ec=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return s(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=ge(t,this.stateName);Object(b.j)(n,(function(t){e.setElementState(t,!1)}))},e}(Wt);function Mc(t){return Object(b.s)(t.get("delegateObject"),"item")}var kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return s(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=pe(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=Se(this.context.view,e),i=ve(t,e);return!Object(b.K)(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(b.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=ae(this.context);if(e)se(this.context)&&this.setStateByElement(e,t);else{var n=ce(this.context);if(le(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Mc(o.fromShape)===Mc(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=ae(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Ec),Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(kc),Ac=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return s(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:l(l({},Object(b.h)({},i,Object(b.I)(r)?r(i,e):r)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var o=ve(t,i.field);if(!this.cache[o]){var a=function(t,e,n){return pe(t).filter((function(t){return ve(t,e)===n}))}(r,i.field,o),c=this.linkGroup.addGroup();this.cache[o]=c;var s=a.length;Object(b.j)(a,(function(t,r){if(r=0}),e)},e}(Ic),Yc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){Dc(pe(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){Nc(this.context.view)},e}(Tc),Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(Ic),Wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(kc),Xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(Tc),qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return s(e,t),e.prototype.getTriggerListInfo=function(){var t=ce(this.context),e=null;return le(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=be(this.context.view),n=[];return Object(b.j)(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(b.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 r=Se(this.context.view,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=Se(this.context.view,r),o=ve(e,r),a=i.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=ae(this.context);if(n){var r=this.getAllowComponents();Object(b.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=ce(this.context);if(le(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(b.j)(i,(function(i){i.name===e&&r.setItemState(t,i,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,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(Wt),Uc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(qc);var $c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return s(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 r=t.getItems();if(n)Object(b.j)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),o=!0;Object(b.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(b.j)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)!function(t){var e=t.getItems();Object(b.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}(t.list);else{var e=this.getAllowComponents();Object(b.j)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(qc),Zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(qc),Qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return s(e,t),e.prototype.unchecked=function(){this.setState()},e}(qc),Jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return s(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 r=t.getItems();n&&Object(b.j)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(b.nb)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(b.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(qc),ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,c,s=this.getTriggerListInfo();if(null===s||void 0===s?void 0:s.item){var l=s.list,u=s.item,f=l.getItems(),h=f.filter((function(t){return!l.hasState(t,"unchecked")})),p=f.filter((function(t){return l.hasState(t,"unchecked")})),g=h[0];if(f.length===h.length)try{for(var v=d(f),y=v.next();!y.done;y=v.next()){var m=y.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(S){t={error:S}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(f.length-p.length===1)if(g.id===u.id)try{for(var b=d(f),x=b.next();!x.done;x=b.next()){m=x.value;l.setItemState(m,"unchecked",!1)}}catch(E){n={error:E}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=d(f),j=O.next();!j.done;j=O.next()){m=j.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(M){i={error:M}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=d(f),C=w.next();!C.done;C=w.next()){m=C.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(k){a={error:k}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}}},e}(qc),es="legend-radio-tip",ns=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&Object(b.H)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),i=r.x,o=r.y;this.tooltip.update(l(l({title:n.get("tip")},t),{x:t.x+i,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(es)&&document.body.removeChild(document.getElementById(es));var n=new ht({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:es});n.init(),n.setCapture(!1),this.tooltip=n},e}(qc),rs=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 s(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:l({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(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,r=t.y-e.y,i=this.points;Object(b.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(b.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}(Wt),is=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return s(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(b.U)(this.points),n=0,r=0,i=0;if(t.length){var o=t[0];n=xe(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}},e}(rs),os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return s(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(b.z)(t),end:Object(b.U)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(rs);function as(t){t.x=Object(b.c)(t.x,0,1),t.y=Object(b.c)(t.y,0,1)}var cs,ss=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return s(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,i=this.context.view.getCoordinate(),o=i.invert(Object(b.z)(n)),a=i.invert(Object(b.U)(n));return this.inPlot&&(as(o),as(a)),"x"===r?(t=i.convert({x:o.x,y:0}),e=i.convert({x:a.x,y:1})):(t=i.convert({x:0,y:o.y}),e=i.convert({x:1,y:a.y})),{start:t,end:e}},e}(os),ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(b.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}(rs),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return ee(t,!1);var n=t[0],r=[];Object(b.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=te(r,e,null);return i.unshift(["M",n.x,n.y]),i}(this.points,!0)},e}(ls),fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Wt),hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(b.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=ce(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(le(t)){if(r){var i=n.getItemsByState("unchecked"),o=Se(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(ue(t)){var c=p(n.getValue(),2),s=c[0],l=c[1];this.filterView(e,r,(function(t){return t>=s&&t<=l})),e.render(!0)}}},e}(Wt);function ds(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=p(t.range,2),c=a[0],s=a[1];if(is&&(o=s),i===s&&o===s)return null;var l=t.invert(i),u=t.invert(o);if(t.isCategory){var f=t.values.indexOf(l),h=t.values.indexOf(u),d=t.values.slice(f,h+1);return function(t){return d.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"}(cs||(cs={}));var ps=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 s(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.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,i=r.view,o={view:i,event:r.event,dims:this.dims};i.emit(cs.BEFORE_FILTER,gn.fromData(i,cs.BEFORE_FILTER,o));var a=i.getCoordinate(),c=a.invert(e),s=a.invert(t);if(this.hasDim("x")){var l=i.getXScale(),u=ds(l,"x",c,s);this.filterView(i,l.field,u)}if(this.hasDim("y")){var f=i.getYScales()[0];u=ds(f,"y",c,s);this.filterView(i,f.field,u)}this.reRender(i,{source:cs.FILTER}),i.emit(cs.AFTER_FILTER,gn.fromData(i,cs.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(cs.BEFORE_RESET,gn.fromData(t,cs.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:cs.RESET}),t.emit(cs.AFTER_RESET,gn.fromData(t,cs.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Wt),gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filterView=function(t,e,n){var r=je(t);Object(b.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=je(t);Object(b.j)(e,(function(t){t.render(!0)}))},e}(ps),vs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filter=function(){var t=ce(this.context),e=this.context.view,n=pe(e);if(fe(this.context)){var r=he(this.context,10);r&&Object(b.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(le(t)){if(o){var a=i.getItemsByState("unchecked"),c=Se(e,o),s=a.map((function(t){return t.name}));Object(b.j)(n,(function(t){var e=ve(t,o),n=c.getText(e);s.indexOf(n)>=0?t.hide():t.show()}))}}else if(ue(t)){var l=p(i.getValue(),2),u=l[0],f=l[1];Object(b.j)(n,(function(t){var e=ve(t,o);e>=u&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=pe(this.context.view);Object(b.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Wt),ys=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return s(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=he(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=je(t);Object(b.j)(o,(function(t){var e=pe(t);Object(b.j)(e,(function(t){var e=t.getModel().data;Ce(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=je(this.context.view);Object(b.j)(e,(function(e){var n=de(t.context,e,10),r=pe(e);n&&Object(b.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=je(this.context.view);Object(b.j)(t,(function(t){var e=pe(t);Object(b.j)(e,(function(t){t.show()}))}))},e}(Wt),ms=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 s(e,t),e.prototype.getButtonCfg=function(){return Object(b.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:l({text:t.text},t.textStyle)}).getBBox(),r=fn(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:l({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=Q.a.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(Wt),bs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return s(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}):xe(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(Wt),xs=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 s(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if(xe(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=Q.a.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.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}(Wt),Os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return s(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(Wt),js=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return s(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(b.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},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(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,c=o.y-i.y,s=this.context.view,l=this.dims;Object(b.j)(l,(function(e){t.translateDim(e,{x:-1*a,y:-1*c})})),s.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 r=this.context.view,i=this.startCache[t],o=i.min,a=i.max,c=a-o,s=n[t]*c;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+s,max:a+s})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Os),ws=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return s(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(b.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 r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],o=i.max-i.min,a=e.min,c=e.max,s=n*o,l=a-s,u=c+s,f=(u-l)/o;u>l&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:a-s,max:c+s})},e}(Os);var Cs,Ss,Es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null===t||void 0===t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),c=n.getOptions().data,s=Object(b.mb)(Object(b.yb)(c,a.field)),l=Object(b.mb)(a.values),u=o.getValue(),f=Math.floor((s-l)*u)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?i:-i),h=i/(s-l)/1e4,d=Object(b.c)(f/(s-l)+h,0,1);o.setValue(d)}},e}(Wt),Ms=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.show=function(){var t=this.context,e=ce(t).axis.cfg.title,n=e.description,r=e.text,i=e.descriptionTooltipStyle,o=t.event,a=o.x,c=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n
    \n
    \n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(n,"\n
    \n
    \n ")},x:a,y:c}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},r=new ht({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:l({},Object(b.h)({},(t={},t[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(Wt);function ks(t){return t.isInPlot()}function Ps(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Cs="dark",Ss=_e(Dr),Je[Object(b.V)(Cs)]=Qe(Ss),P("canvas",i),P("svg",a),jn("Polygon",ca),jn("Interval",na),jn("Schema",sa),jn("Path",Ho),jn("Point",aa),jn("Line",ra),jn("Area",Wo),jn("Edge",Xo),jn("Heatmap",qo),jn("Violin",la),Bn("base",rr),Bn("interval",ma),Bn("pie",Oa),Bn("polar",xa),Rn("overlap",(function(t,e,n,r){var i=new wa;Object(b.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,c=0;c<=8;c++){var s=Ca(e,r,o,c);if(i.hasGap(s)){i.fillGap(s),a=!0;break}}a||t.remove(!0)})),i.destroy()})),Rn("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),c=o.getCenter();if(i>0){var s=2*(a+i)+28,l={start:o.start,end:o.end},u=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?u[0].push(t):u[1].push(t))})),u.forEach((function(t,n){var r=s/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,o){var a,c,s,l=!0,u=r.start,f=r.end,h=Math.min(u.y,f.y),p=Math.abs(u.y-f.y),g=0,v=Number.MIN_VALUE,y=e.map((function(t){return t.y>g&&(g=t.y),t.yp&&(p=g-h);l;)for(y.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),p-t.size)})),l=!1,s=y.length;s--;)if(s>0){var m=y[s-1],x=y[s];m.pos+m.size>x.pos&&(m.size+=x.size,m.targets=m.targets.concat(x.targets),m.pos+m.size>p&&(m.pos=p-m.size),y.splice(s,1),l=!0)}s=0,y.forEach((function(t){var r=h+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));var O={};try{for(var j=d(t),w=j.next();!w.done;w=j.next()){var C=w.value;O[C.get("id")]=C}}catch(S){a={error:S}}finally{try{w&&!w.done&&(c=j.return)&&c.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(ei.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),Rn("limit-in-canvas",(function(t,e,n,r){Object(b.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),c=a.minX,s=a.minY,l=a.maxX,u=a.maxY,f=a.x,h=a.y,d=a.width,p=a.height,g=f,v=h;(ci?g=i-d:l>i&&(g-=l-i),s>o?v=o-p:u>o&&(v-=u-o),g===f&&v===h||$n(t,g-f,v-h)}))})),Rn("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var o=(null===i||void 0===i?void 0:i.direction)||["top","right","bottom","left"],a=(null===i||void 0===i?void 0:i.action)||"translate",c=(null===i||void 0===i?void 0:i.margin)||0,s=e[0].get("coordinate");if(s){var l=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),c=Math.min(n.y,r.y);return wt.fromRange(a-e,c-e,a+i+e,c+o+e)}(s,c),u=l.minX,f=l.minY,h=l.maxX,d=l.maxY;Object(b.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,c=e.maxY,s=e.x,l=e.y,p=e.width,g=e.height,v=s,y=l;if(o.indexOf("left")>=0&&(n=0&&(r=0&&(n>h?v=h-p:i>h&&(v-=i-h)),o.indexOf("bottom")>=0&&(r>d?y=d-g:c>d&&(y-=c-d)),v!==s||y!==l){var m=v-s;if("translate"===a)$n(t,m,y-l);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(b.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=Ka("...",n);r=Object(b.Q)(t)?t:Object(b.tb)(t);var o,a,c=e,s=[];if(Ka(t,n)<=e)return t;for(;o=r.substr(0,16),!((a=Ka(o,n))+i>c&&a>c);)if(s.push(o),c-=a,!(r=r.substr(16)))return s.join("");for(;o=r.substr(0,1),!((a=Ka(o,n))+i>c);)if(s.push(o),c-=a,!(r=r.substr(1)))return s.join("");return"".concat(s.join(""),"...")}(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",r)}))}else t.hide()}}))}}})),Rn("pie-outer",(function(t,e,n,r){var i,o,a=Object(b.l)(t,(function(t){return!Object(b.K)(t)})),c=e[0]&&e[0].get("coordinate");if(c){var s=c.getCenter(),l=c.getRadius(),u={};try{for(var f=d(e),h=f.next();!h.done;h=f.next()){var p=h.value;u[p.get("id")]=p}}catch(C){i={error:C}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var g=Object(b.s)(a[0],"labelHeight",14),v=Object(b.s)(a[0],"offset",0);if(!(v<=0)){var y=Object(b.w)(a,(function(t){return t.xn&&(t.sort((function(t,e){return e.percent-t.percent})),Object(b.j)(t,(function(t,e){e+1>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),ja(t,g,w)})),Object(b.j)(y,(function(t,e){Object(b.j)(t,(function(t){var n="right"===e,r=u[t.id].getChildByIndex(0);if(r){var i=l+v,o=t.y-s.y,a=Math.pow(i,2),f=Math.pow(o,2),h=a-f>0?a-f:0,d=Math.sqrt(h),p=Math.abs(Math.cos(t.angle)*i);t.x=n?s.x+Math.max(d,p):s.x-Math.max(d,p)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=gt(n.x,n.y,r,i),c=t.x+Object(b.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),s=t.y+Object(b.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),l={x:c-4*Math.cos(i),y:s-4*Math.sin(i)},u=t.labelLine.smooth,f=[],h=l.x-n.x,d=l.y-n.y,p=Math.atan(d/h);if(h<0&&(p+=Math.PI),!1===u){Object(b.O)(t.labelLine)||(t.labelLine={});var g=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&l.y>a.y&&(g=1),i>=0&&ia.y&&(g=1),i>=Math.PI/2&&il.y&&(g=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>l.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),y=gt(n.x,n.y,r+v,i),m=gt(n.x,n.y,r+o/2,p);f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(y.x," ").concat(y.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(g," ").concat(m.x," ").concat(m.y)),f.push("L ".concat(l.x," ").concat(l.y))}else{y=gt(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var x=a.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",l.x+4*x,l.y,2*y.x-a.x,2*y.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}(t,c)}))}))}}})),Rn("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},o=i.fillColorLight,a=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),c=wt.fromObject(t.getBBox()),s=wt.fromObject(i.getCanvasBBox()),l=!c.contains(s),u=function(t){var e=_.a.toRGB(t).toUpperCase();if(Ba[e])return Ba[e];var n=p(_.a.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));l?i.attr(r.overflowLabels.style):u?o&&i.attr("fill",o):a&&i.attr("fill",a)}))}})),Rn("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type)Ra(o,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=wt.fromObject(n.getBBox()),o=Qn(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(o,r,t)}))}})),Rn("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type){var a,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(b.j)(t,(function(t,r){r%n===0?e.push(t):t.set("visible",!1)})),e}(e),s=p(o.getXYFields(),1)[0],l=[],u=[],f=Object(b.w)(c,(function(t){return t.get("data")[s]})),h=Object(b.ub)(Object(b.W)(c,(function(t){return t.get("data")[s]})));c.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&u.push(t.pop()),u.push.apply(u,g([],p(t),!1)))};for(Object(b.mb)(h)>0&&(a=h.shift(),d(f[a])),Object(b.mb)(h)>0&&(a=h.pop(),d(f[a])),Object(b.j)(h.reverse(),(function(t){d(f[t])}));u.length>0;){var v=u.shift();v.get("visible")&&(tr(v,l)?v.set("visible",!1):l.push(v))}}}})),Rn("point-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var c=null===(o=n[0])||void 0===o?void 0:o.get("element"),s=null===c||void 0===c?void 0:c.geometry;if(s&&"point"===s.type){var l=p(s.getXYFields(),2),u=l[0],f=l[1],h=Object(b.w)(e,(function(t){return t.get("data")[u]})),d=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(b.W)(Object(b.T)(h).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],r=[],i=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return i.length>0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,g([],p(i),!1)),r}(s,h[t]);e.length;){var n=e.shift(),r=Qn(n);if(_a(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;za(d,n)&&(r.attr("y",r.attr("y")+2*v),i=za(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),Rn("pie-spider",(function(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var c=a.getCenter(),s=a.getRadius(),l={};try{for(var u=d(e),f=u.next();!f.done;f=u.next()){var h=f.value;l[h.get("id")]=h}}catch(C){i={error:C}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var p=Object(b.s)(t[0],"labelHeight",14),g=Math.max(Object(b.s)(t[0],"offset",0),4);Object(b.j)(t,(function(t){if(t&&Object(b.s)(l,[t.id])){var e=t.x>c.x||t.x===c.x&&t.y>c.y,n=Object(b.K)(t.offsetX)?4:t.offsetX,r=gt(c.x,c.y,s+4,t.angle),i=g+n;t.x=c.x+(e?1:-1)*(s+i),t.y=r.y}}));var v=a.start,y=a.end,m=Object(b.w)(t,(function(t){return t.xx&&(x=Math.min(e,Math.abs(v.y-y.y)))}));var O={minX:v.x,maxX:y.x,minY:c.y-x/2,maxY:c.y+x/2};Object(b.j)(m,(function(t,e){var n=x/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(b.j)(t,(function(t,e){e>n&&(l[t.id].set("visible",!1),t.invisible=!0)}))),ja(t,p,O)}));var j=O.minY,w=O.maxY;Object(b.j)(m,(function(t,e){var n="right"===e;Object(b.j)(t,(function(t){var e=Object(b.s)(l,t&&[t.id]);if(e)if(t.yw)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,c=i.y+i.height/2;$n(r,t.x-o,t.y-c),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},c=gt(i.x,i.y,o+4,t.angle),s={x:a.x,y:a.y},l={x:c.x,y:c.y},u=gt(i.x,i.y,o,t.angle);if(a.y!==c.y){var f=n?4:-4;s.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(c.x,a.x-f),a.y0&&t.anglec.y?l.y=s.y:(l.y=c.y,l.x=Math.max(l.x,s.x-f))),t.angle>Math.PI/2&&(s.x=Math.min(c.x,a.x-f),a.y>c.y?l.y=s.y:(l.y=c.y,l.x=Math.min(l.x,s.x-f))),t.angle<-Math.PI/2&&(s.x=Math.min(c.x,a.x-f),a.y0&&r.push(i.shift()),i.length>0&&r.push(i.pop()),r.push.apply(r,g([],p(i),!1)),r}(s,h[t]);e.length;){var n=e.shift(),r=Qn(n);if(Va(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;Ha(d,n)&&(r.attr("y",r.attr("y")+2*v),i=Ha(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),kn("fade-in",(function(t,e,n){var r={fillOpacity:Object(b.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(b.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(b.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),kn("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)})),kn("grow-in-x",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"x")})),kn("grow-in-xy",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"xy")})),kn("grow-in-y",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"y")})),kn("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,a=(r.minY+r.maxY)/2;t.applyToMatrix([o,a,1]);var c=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(c),t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),kn("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,c=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,c,1]);var s=Q.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,.01],["t",o,c]]);t.setMatrix(s),t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,100],["t",o,c]])},e)})),kn("wave-in",(function(t,e,n){var r=Mt(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,c=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),c.animate(a,l(l({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),c.remove(!0)}}))})),kn("zoom-in",(function(t,e,n){qa(t,e,"zoomIn")})),kn("zoom-out",(function(t,e,n){qa(t,e,"zoomOut")})),kn("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)})),kn("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var c=Xa(o),s=c.startAngle,u=c.endAngle,f=c.radius,h=c.innerRadius,d=Xa(t.attr("path")),p=d.startAngle,g=d.endAngle,v=i.getCenter(),y=s-p,m=u-g;0!==y||0!==m?t.animate((function(t){var e=p+t*y,n=g+t*m;return l(l({},r),{path:Object(b.H)(a,["M","A","A","Z"])?yt(v.x,v.y,f,e,n):vt(v.x,v.y,f,e,n,h)})}),l(l({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}})),kn("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),Gt("rect",ec),Gt("mirror",tc),Gt("list",Qa),Gt("matrix",Ja),Gt("circle",Za),Gt("tree",nc),dn("axis",dc),dn("legend",yc),dn("tooltip",Sn),dn("annotation",ac),dn("slider",mc),dn("scrollbar",bc),$t("tooltip",wc),$t("sibling-tooltip",Cc),$t("ellipsis-text",Sc),$t("element-active",Pc),$t("element-single-active",Lc),$t("element-range-active",Fc),$t("element-highlight",zc),$t("element-highlight-by-x",Hc),$t("element-highlight-by-color",Vc),$t("element-single-highlight",Yc),$t("element-range-highlight",Kc),$t("element-sibling-highlight",Kc,{effectSiblings:!0,effectByRecord:!0}),$t("element-selected",Wc),$t("element-single-selected",Xc),$t("element-range-selected",Gc),$t("element-link-by-color",Ac),$t("active-region",jc),$t("list-active",Uc),$t("list-selected",Zc),$t("list-highlight",$c),$t("list-unchecked",Qc),$t("list-checked",Jc),$t("list-focus",ts),$t("list-radio",ns),$t("legend-item-highlight",$c,{componentNames:["legend"]}),$t("axis-label-highlight",$c,{componentNames:["axis"]}),$t("axis-description",Ms),$t("rect-mask",os),$t("x-rect-mask",ss,{dim:"x"}),$t("y-rect-mask",ss,{dim:"y"}),$t("circle-mask",is),$t("path-mask",ls),$t("smooth-path-mask",us),$t("cursor",fs),$t("data-filter",hs),$t("brush",ps),$t("brush-x",ps,{dims:["x"]}),$t("brush-y",ps,{dims:["y"]}),$t("sibling-filter",gs),$t("sibling-x-filter",gs),$t("sibling-y-filter",gs),$t("element-filter",vs),$t("element-sibling-filter",ys),$t("element-sibling-filter-record",ys,{byRecord:!0}),$t("view-drag",bs),$t("view-move",xs),$t("scale-translate",js),$t("scale-zoom",ws),$t("reset-button",ms,{name:"reset-button",text:"reset"}),$t("mousewheel-scroll",Es),Be("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"}]}),Be("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Be("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Be("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Be("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Be("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Be("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ks,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ks,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"]}]}),Be("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"]}]}),Be("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ks,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ks,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Be("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:"path-mask:start"},{trigger:"mousedown",isEnable:ks,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"}]}),Be("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Be("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Be("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Be("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Be("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"]}]}),Be("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Be("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Be("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ps(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ps(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Be("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Be("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},762:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="EyeInvisibleOutlined";e.a=i.forwardRef(c)},763:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="BarsOutlined";e.a=i.forwardRef(c)},765:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(648),i=function(t){if(Object(r.a)()&&window.document.documentElement){var e=Array.isArray(t)?t:[t],n=window.document.documentElement;return e.some((function(t){return t in n.style}))}return!1};function o(t,e){return Array.isArray(t)||void 0===e?i(t):function(t,e){if(!i(t))return!1;var n=document.createElement("div"),r=n.style[t];return n.style[t]=e,n.style[t]!==r}(t,e)}},766:function(t,e,n){"use strict";var r=n(566),i=n(561),o=n(23),a=n(563),c=n(565),s=n(560),l=n.n(s),u=n(770),f=n(577),h=n(575),d=n(2),p=n(775),g=n(591),v=n(587),y=n(583),m=n(594),b=n(570),x=n(571),O=n(572),j=n(573),w=n(597),C=n(578),S=n(586),E=Object(S.a)("text","input");var M=function(t){Object(O.a)(n,t);var e=Object(j.a)(n);function n(){return Object(b.a)(this,n),e.apply(this,arguments)}return Object(x.a)(n,[{key:"renderClearIcon",value:function(t){var e,n=this.props,r=n.value,o=n.disabled,a=n.readOnly,c=n.handleReset,s=n.suffix,u=!o&&!a&&r,f="".concat(t,"-clear-icon");return d.createElement(w.a,{onClick:c,onMouseDown:function(t){return t.preventDefault()},className:l()((e={},Object(i.a)(e,"".concat(f,"-hidden"),!u),Object(i.a)(e,"".concat(f,"-has-suffix"),!!s),e),f),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(t,e,n){var r,o=this.props,a=o.value,c=o.allowClear,s=o.className,u=o.style,f=o.direction,h=o.bordered,p=o.hidden,g=o.status,v=n.status,y=n.hasFeedback;if(!c)return Object(C.a)(e,{value:a});var b,x=l()("".concat(t,"-affix-wrapper"),"".concat(t,"-affix-wrapper-textarea-with-clear-btn"),Object(m.b)("".concat(t,"-affix-wrapper"),Object(m.a)(v,g),y),(r={},Object(i.a)(r,"".concat(t,"-affix-wrapper-rtl"),"rtl"===f),Object(i.a)(r,"".concat(t,"-affix-wrapper-borderless"),!h),Object(i.a)(r,"".concat(s),!((b=this.props).addonBefore||b.addonAfter)&&s),r));return d.createElement("span",{className:x,style:u,hidden:p},Object(C.a)(e,{style:null,value:a}),this.renderClearIcon(t))}},{key:"render",value:function(){var t=this;return d.createElement(y.b.Consumer,null,(function(e){var n=t.props,r=n.prefixCls,i=n.inputType,o=n.element;if(i===E[0])return t.renderTextAreaWithClearIcon(r,o,e)}))}}]),n}(d.Component),k=n(637),P=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ir&&(i=e),i}var F=d.forwardRef((function(t,e){var n,s=t.prefixCls,b=t.bordered,x=void 0===b||b,O=t.showCount,j=void 0!==O&&O,w=t.maxLength,C=t.className,S=t.style,E=t.size,F=t.disabled,T=t.onCompositionStart,L=t.onCompositionEnd,N=t.onChange,D=t.status,B=P(t,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),R=d.useContext(p.b),_=R.getPrefixCls,z=R.direction,V=d.useContext(v.b),H=d.useContext(g.b),K=F||H,Y=d.useContext(y.b),G=Y.status,W=Y.hasFeedback,X=Y.isFormItemInput,q=Y.feedbackIcon,U=Object(m.a)(G,D),$=d.useRef(null),Z=d.useRef(null),Q=d.useState(!1),J=Object(a.a)(Q,2),tt=J[0],et=J[1],nt=d.useRef(),rt=d.useRef(0),it=Object(f.a)(B.defaultValue,{value:B.value}),ot=Object(a.a)(it,2),at=ot[0],ct=ot[1],st=B.hidden,lt=function(t,e){void 0===B.value&&(ct(t),null===e||void 0===e||e())},ut=Number(w)>0,ft=_("input",s);d.useImperativeHandle(e,(function(){var t;return{resizableTextArea:null===(t=$.current)||void 0===t?void 0:t.resizableTextArea,focus:function(t){var e,n;Object(k.d)(null===(n=null===(e=$.current)||void 0===e?void 0:e.resizableTextArea)||void 0===n?void 0:n.textArea,t)},blur:function(){var t;return null===(t=$.current)||void 0===t?void 0:t.blur()}}}));var ht=d.createElement(u.a,Object(o.a)({},Object(h.a)(B,["allowClear"]),{disabled:K,className:l()((n={},Object(i.a)(n,"".concat(ft,"-borderless"),!x),Object(i.a)(n,C,C&&!j),Object(i.a)(n,"".concat(ft,"-sm"),"small"===V||"small"===E),Object(i.a)(n,"".concat(ft,"-lg"),"large"===V||"large"===E),n),Object(m.b)(ft,U)),style:j?void 0:S,prefixCls:ft,onCompositionStart:function(t){et(!0),nt.current=at,rt.current=t.currentTarget.selectionStart,null===T||void 0===T||T(t)},onChange:function(t){var e=t.target.value;!tt&&ut&&(e=I(t.target.selectionStart>=w+1||t.target.selectionStart===e.length||!t.target.selectionStart,at,e,w));lt(e),Object(k.c)(t.currentTarget,t,N,e)},onCompositionEnd:function(t){var e;et(!1);var n=t.currentTarget.value;ut&&(n=I(rt.current>=w+1||rt.current===(null===(e=nt.current)||void 0===e?void 0:e.length),nt.current,n,w));n!==at&&(lt(n),Object(k.c)(t.currentTarget,t,N,n)),null===L||void 0===L||L(t)},ref:$})),dt=Object(k.b)(at);tt||!ut||null!==B.value&&void 0!==B.value||(dt=A(dt,w));var pt=d.createElement(M,Object(o.a)({disabled:K},B,{prefixCls:ft,direction:z,inputType:"text",value:dt,element:ht,handleReset:function(t){var e,n,r;lt(""),null===(e=$.current)||void 0===e||e.focus(),Object(k.c)(null===(r=null===(n=$.current)||void 0===n?void 0:n.resizableTextArea)||void 0===r?void 0:r.textArea,t,N)},ref:Z,bordered:x,status:D,style:j?void 0:S}));if(j||W){var gt,vt=Object(c.a)(dt).length,yt="";return yt="object"===Object(r.a)(j)?j.formatter({count:vt,maxLength:w}):"".concat(vt).concat(ut?" / ".concat(w):""),d.createElement("div",{hidden:st,className:l()("".concat(ft,"-textarea"),(gt={},Object(i.a)(gt,"".concat(ft,"-textarea-rtl"),"rtl"===z),Object(i.a)(gt,"".concat(ft,"-textarea-show-count"),j),Object(i.a)(gt,"".concat(ft,"-textarea-in-form-item"),X),gt),Object(m.b)("".concat(ft,"-textarea"),U,W),C),style:S,"data-count":yt},pt,W&&d.createElement("span",{className:"".concat(ft,"-textarea-suffix")},q))}return pt}));e.a=F},768:function(t,e,n){"use strict";n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return y})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return b}));var r=n(565),i=n(561),o=n(563),a=n(23),c=n(560),s=n.n(c),l=n(2),u=n(775),f=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i0),Object(i.a)(n,"".concat(y,"-rtl"),"rtl"===c),n),m),C=l.useMemo((function(){return{siderHook:{addSider:function(t){v((function(e){return[].concat(Object(r.a)(e),[t])}))},removeSider:function(t){v((function(e){return e.filter((function(e){return e!==t}))}))}}}}),[]);return l.createElement(h.Provider,{value:C},l.createElement(O,Object(a.a)({ref:e,className:w},j),b))})),v=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p),m=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p),b=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);e.e=v},770:function(t,e,n){"use strict";var r,i=n(23),o=n(570),a=n(571),c=n(572),s=n(573),l=n(2),u=n(559),f=n(561),h=n(615),d=n(575),p=n(560),g=n.n(p),v="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],m={};function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&m[n])return m[n];var r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(t){return"".concat(t,":").concat(r.getPropertyValue(t))})).join(";"),s={sizingStyle:c,paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(m[n]=s),s}var x,O=n(599),j=n.n(O);!function(t){t[t.NONE=0]="NONE",t[t.RESIZING=1]="RESIZING",t[t.RESIZED=2]="RESIZED"}(x||(x={}));var w=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(t){var a;return Object(o.a)(this,n),(a=e.call(this,t)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(t){a.textArea=t},a.handleResize=function(t){var e=a.state.resizeStatus,n=a.props,r=n.autoSize,i=n.onResize;e===x.NONE&&("function"===typeof i&&i(t),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var t=a.props.autoSize;if(t&&a.textArea){var e=t.minRows,n=t.maxRows,i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),t.getAttribute("wrap")?r.setAttribute("wrap",t.getAttribute("wrap")):r.removeAttribute("wrap");var o=b(t,e),a=o.paddingSize,c=o.borderSize,s=o.boxSizing,l=o.sizingStyle;r.setAttribute("style","".concat(l,";").concat(v)),r.value=t.value||t.placeholder||"";var u,f=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,d=r.scrollHeight;if("border-box"===s?d+=c:"content-box"===s&&(d-=a),null!==n||null!==i){r.value=" ";var p=r.scrollHeight-a;null!==n&&(f=p*n,"border-box"===s&&(f=f+a+c),d=Math.max(f,d)),null!==i&&(h=p*i,"border-box"===s&&(h=h+a+c),u=d>h?"":"hidden",d=Math.min(h,d))}return{height:d,minHeight:f,maxHeight:h,overflowY:u,resize:"none"}}(a.textArea,!1,e,n);a.setState({textareaStyles:i,resizeStatus:x.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:x.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:x.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var t=a.props,e=t.prefixCls,n=void 0===e?"rc-textarea":e,r=t.autoSize,o=t.onResize,c=t.className,s=t.disabled,p=a.state,v=p.textareaStyles,y=p.resizeStatus,m=Object(d.a)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=g()(n,c,Object(f.a)({},"".concat(n,"-disabled"),s));"value"in m&&(m.value=m.value||"");var O=Object(u.a)(Object(u.a)(Object(u.a)({},a.props.style),v),y===x.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(h.a,{onResize:a.handleResize,disabled:!(r||o)},l.createElement("textarea",Object(i.a)({},m,{className:b,style:O,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:x.NONE},a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(t){t.value===this.props.value&&j()(t.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var t=this.textArea.selectionStart,e=this.textArea.selectionEnd;this.textArea.setSelectionRange(t,e)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component),C=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(t){var r;Object(o.a)(this,n),(r=e.call(this,t)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(t){r.resizableTextArea=t},r.handleChange=function(t){var e=r.props.onChange;r.setValue(t.target.value,(function(){r.resizableTextArea.resizeTextarea()})),e&&e(t)},r.handleKeyDown=function(t){var e=r.props,n=e.onPressEnter,i=e.onKeyDown;13===t.keyCode&&n&&n(t),i&&i(t)};var i="undefined"===typeof t.value||null===t.value?t.defaultValue:t.value;return r.state={value:i},r}return Object(a.a)(n,[{key:"setValue",value:function(t,e){"value"in this.props||this.setState({value:t},e)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(w,Object(i.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(t){return"value"in t?{value:t.value}:null}}]),n}(l.Component);e.a=C},771:function(t,e,n){"use strict";var r=n(23),i=n(566),o=n(563),a=n(561),c=n(608),s=n(560),l=n.n(s),u=n(753),f=n(728),h=n(577),d=n(2),p=n(775),g=n(672),v=n(651),y=n(578),m=n(586),b=n(684),x=n(606),O=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=0?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")}(),trigger:F,overlay:function(){var e,n=t.overlay;return e="function"===typeof n?n():n,e=d.Children.only("string"===typeof e?d.createElement("span",null,e):e),d.createElement(g.a,{prefixCls:"".concat(P,"-menu"),expandIcon:d.createElement("span",{className:"".concat(P,"-menu-submenu-arrow")},d.createElement(c.a,{className:"".concat(P,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:z,validator:function(t){t.mode}},e)},placement:function(){var e=t.placement;return e?e.includes("Center")?e.slice(0,e.indexOf("Center")):e:"rtl"===b?"bottomRight":"bottomLeft"}(),onVisibleChange:B}),I)});S.Button=C,S.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var E=e.a=S},776:function(t,e,n){"use strict";n.r(e);var r,i=n(561),o=n(566),a=n(23),c=n(794),s=n(560),l=n.n(s),u=n(812),f=n(2),h=n.n(f),d=n(775),p=n(598),g=n(565),v=n(563),y=n(735),m=n(798),b=n(799),x=n(659),O=n(614);function j(t,e){t.forEach((function(t){var n=t.key,r=t.children;!1!==e(n,t)&&j(r||[],e)}))}function w(t){var e=t.treeData,n=t.expandedKeys,i=t.startKey,o=t.endKey,a=[],c=r.None;if(i&&i===o)return[i];if(!i||!o)return[];return j(e,(function(t){if(c===r.End)return!1;if(function(t){return t===i||t===o}(t)){if(a.push(t),c===r.None)c=r.Start;else if(c===r.Start)return c=r.End,!1}else c===r.Start&&a.push(t);return-1!==n.indexOf(t)})),a}function C(t,e){var n=Object(g.a)(e),r=[];return j(t,(function(t,e){var i=n.indexOf(t);return-1!==i&&(r.push(e),n.splice(i,1)),!!n.length})),r}!function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End"}(r||(r={}));var S=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=e||n<0||v&&t-p>=u}function O(){var t=i();if(x(t))return j(t);h=setTimeout(O,function(t){var n=e-(t-d);return v?c(n,u-(t-p)):n}(t))}function j(t){return h=void 0,y&&s?m(t):(s=l=void 0,f)}function w(){var t=i(),n=x(t);if(s=arguments,l=this,d=t,n){if(void 0===h)return b(d);if(v)return clearTimeout(h),h=setTimeout(O,e),m(d)}return void 0===h&&(h=setTimeout(O,e)),f}return e=o(e)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=l=h=void 0},w.flush=function(){return void 0===h?f:j(i())},w}},781:function(t,e,n){var r=n(836),i=n(791);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},784:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length,r=e.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(t,e){var n=new Map;t.forEach((function(t){n.set(t,!0)}));var r=e.filter((function(t){return!n.has(t)}));return 1===r.length?r[0]:null}return n ").concat(e);return e}(E)),d.createElement("div",null,d.createElement("input",{style:F,disabled:!1===S||h,tabIndex:!1!==S?k:null,onKeyDown:N,onFocus:D,onBlur:z,value:"",onChange:T,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),d.createElement(C.a,Object(r.a)({},Y,{data:gt,itemKey:_,height:m,fullHeight:!1,virtual:x,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:G,onVisibleChange:function(t,e){var n=new Set(t);e.filter((function(t){return!n.has(t)})).some((function(t){return _(t)===L}))&&pt()}}),(function(t){var e=t.pos,n=Object(r.a)({},t.data),i=t.title,o=t.key,a=t.isStart,c=t.isEnd,s=Object(O.f)(o,e);delete n.key,delete n.children;var l=Object(O.g)(s,vt);return d.createElement(P,Object(r.a)({},n,l,{title:i,active:!!E&&o===E.key,pos:e,data:t.data,isStart:a,isEnd:c,motion:y,motionNodes:o===L?ct:null,motionType:ft,onMotionStart:H,onMotionEnd:pt,treeNodeRequiredProps:vt,onMouseMove:function(){V(null)}}))})))}));z.displayName="NodeList";var V=z,H=n(730);var K=function(t){Object(f.a)(n,t);var e=Object(h.a)(n);function n(){var t;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],o=t.state,c=o.dragChildrenKeys,s=o.dropPosition,l=o.dropTargetKey,u=o.dropTargetPos,f=o.dropAllowed;if(f){var h=t.props.onDrop;if(t.setState({dragOverNodeKey:null}),t.cleanDragState(),null!==l){var d=Object(a.a)(Object(a.a)({},Object(O.g)(l,t.getTreeNodeRequiredProps())),{},{active:(null===(r=t.getActiveItem())||void 0===r?void 0:r.key)===l,data:t.state.keyEntities[l].node}),p=-1!==c.indexOf(l);Object(g.a)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=Object(x.j)(u),y={event:e,node:Object(O.b)(d),dragNode:t.dragNode?Object(O.b)(t.dragNode.props):null,dragNodesKeys:[t.dragNode.props.eventKey].concat(c),dropToGap:0!==s,dropPosition:s+Number(v[v.length-1])};i||null===h||void 0===h||h(y),t.dragNode=null}}},t.cleanDragState=function(){null!==t.state.draggingNodeKey&&t.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),t.dragStartMousePosition=null,t.currentMouseOverDroppableNodeKey=null},t.triggerExpandActionExpand=function(e,n){var r=t.state,i=r.expandedKeys,o=r.flattenNodes,c=n.expanded,s=n.key;if(!(n.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=o.filter((function(t){return t.key===s}))[0],u=Object(O.b)(Object(a.a)(Object(a.a)({},Object(O.g)(s,t.getTreeNodeRequiredProps())),{},{data:l.data}));t.setExpandedKeys(c?Object(x.b)(i,s):Object(x.a)(i,s)),t.onNodeExpand(e,u)}},t.onNodeClick=function(e,n){var r=t.props,i=r.onClick;"click"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===i||void 0===i||i(e,n)},t.onNodeDoubleClick=function(e,n){var r=t.props,i=r.onDoubleClick;"doubleClick"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===i||void 0===i||i(e,n)},t.onNodeSelect=function(e,n){var r=t.state.selectedKeys,i=t.state,o=i.keyEntities,a=i.fieldNames,c=t.props,s=c.onSelect,l=c.multiple,u=n.selected,f=n[a.key],h=!u,d=(r=h?l?Object(x.a)(r,f):[f]:Object(x.b)(r,f)).map((function(t){var e=o[t];return e?e.node:null})).filter((function(t){return t}));t.setUncontrolledState({selectedKeys:r}),null===s||void 0===s||s(r,{event:"select",selected:h,node:n,selectedNodes:d,nativeEvent:e.nativeEvent})},t.onNodeCheck=function(e,n,r){var i,o=t.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,u=t.props,f=u.checkStrictly,h=u.onCheck,d=n.key,p={event:"check",node:n,checked:r,nativeEvent:e.nativeEvent};if(f){var g=r?Object(x.a)(s,d):Object(x.b)(s,d);i={checked:g,halfChecked:Object(x.b)(l,d)},p.checkedNodes=g.map((function(t){return a[t]})).filter((function(t){return t})).map((function(t){return t.node})),t.setUncontrolledState({checkedKeys:g})}else{var v=Object(H.a)([].concat(Object(c.a)(s),[d]),!0,a),y=v.checkedKeys,m=v.halfCheckedKeys;if(!r){var b=new Set(y);b.delete(d);var O=Object(H.a)(Array.from(b),{checked:!1,halfCheckedKeys:m},a);y=O.checkedKeys,m=O.halfCheckedKeys}i=y,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=m,y.forEach((function(t){var e=a[t];if(e){var n=e.node,r=e.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),t.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:m})}null===h||void 0===h||h(i,p)},t.onNodeLoad=function(e){var n=e.key,r=new Promise((function(r,i){t.setState((function(o){var a=o.loadedKeys,c=void 0===a?[]:a,s=o.loadingKeys,l=void 0===s?[]:s,u=t.props,f=u.loadData,h=u.onLoad;return f&&-1===c.indexOf(n)&&-1===l.indexOf(n)?(f(e).then((function(){var i=t.state.loadedKeys,o=Object(x.a)(i,n);null===h||void 0===h||h(o,{event:"load",node:e}),t.setUncontrolledState({loadedKeys:o}),t.setState((function(t){return{loadingKeys:Object(x.b)(t.loadingKeys,n)}})),r()})).catch((function(e){if(t.setState((function(t){return{loadingKeys:Object(x.b)(t.loadingKeys,n)}})),t.loadingRetryTimes[n]=(t.loadingRetryTimes[n]||0)+1,t.loadingRetryTimes[n]>=10){var o=t.state.loadedKeys;Object(g.a)(!1,"Retry for `loadData` many times but still failed. No more retry."),t.setUncontrolledState({loadedKeys:Object(x.a)(o,n)}),r()}i(e)})),{loadingKeys:Object(x.a)(l,n)}):null}))}));return r.catch((function(){})),r},t.onNodeMouseEnter=function(e,n){var r=t.props.onMouseEnter;null===r||void 0===r||r({event:e,node:n})},t.onNodeMouseLeave=function(e,n){var r=t.props.onMouseLeave;null===r||void 0===r||r({event:e,node:n})},t.onNodeContextMenu=function(e,n){var r=t.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:n}))},t.onFocus=function(){var e=t.props.onFocus;t.setState({focused:!0});for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.destroyed){var i=!1,o=!0,c={};Object.keys(e).forEach((function(n){n in t.props?o=!1:(i=!0,c[n]=e[n])})),!i||n&&!o||t.setState(Object(a.a)(Object(a.a)({},c),r))}},t.scrollTo=function(e){t.listRef.current.scrollTo(e)},t}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var t=this.props.activeKey;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var t,e,n=this.state,a=n.focused,c=n.flattenNodes,s=n.keyEntities,l=n.draggingNodeKey,u=n.activeKey,f=n.dropLevelOffset,h=n.dropContainerKey,p=n.dropTargetKey,g=n.dropPosition,y=n.dragOverNodeKey,x=n.indent,O=this.props,j=O.prefixCls,w=O.className,C=O.style,S=O.showLine,E=O.focusable,M=O.tabIndex,k=void 0===M?0:M,P=O.selectable,A=O.showIcon,I=O.icon,F=O.switcherIcon,T=O.draggable,L=O.checkable,N=O.checkStrictly,D=O.disabled,B=O.motion,R=O.loadData,_=O.filterTreeNode,z=O.height,H=O.itemHeight,K=O.virtual,Y=O.titleRender,G=O.dropIndicatorRender,W=O.onContextMenu,X=O.onScroll,q=O.direction,U=O.rootClassName,$=O.rootStyle,Z=Object(v.a)(this.props,{aria:!0,data:!0});return T&&(e="object"===Object(o.a)(T)?T:"function"===typeof T?{nodeDraggable:T}:{}),d.createElement(b.a.Provider,{value:{prefixCls:j,selectable:P,showIcon:A,icon:I,switcherIcon:F,draggable:e,draggingNodeKey:l,checkable:L,checkStrictly:N,disabled:D,keyEntities:s,dropLevelOffset:f,dropContainerKey:h,dropTargetKey:p,dropPosition:g,dragOverNodeKey:y,indent:x,direction:q,dropIndicatorRender:G,loadData:R,filterTreeNode:_,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:m()(j,w,U,(t={},Object(i.a)(t,"".concat(j,"-show-line"),S),Object(i.a)(t,"".concat(j,"-focused"),a),Object(i.a)(t,"".concat(j,"-active-focused"),null!==u),t)),style:$},d.createElement(V,Object(r.a)({ref:this.listRef,prefixCls:j,style:C,data:c,disabled:D,selectable:P,checkable:!!L,motion:B,dragging:null!==l,height:z,itemHeight:H,virtual:K,focusable:E,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:X},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n,r=e.prevProps,o={prevProps:t};function c(e){return!r&&e in t||r&&r[e]!==t[e]}var s=e.fieldNames;if(c("fieldNames")&&(s=Object(O.d)(t.fieldNames),o.fieldNames=s),c("treeData")?n=t.treeData:c("children")&&(Object(g.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(O.c)(t.children)),n){o.treeData=n;var l=Object(O.a)(n,{fieldNames:s});o.keyEntities=Object(a.a)(Object(i.a)({},L,D),l.keyEntities)}var u,f=o.keyEntities||e.keyEntities;if(c("expandedKeys")||r&&c("autoExpandParent"))o.expandedKeys=t.autoExpandParent||!r&&t.defaultExpandParent?Object(x.e)(t.expandedKeys,f):t.expandedKeys;else if(!r&&t.defaultExpandAll){var h=Object(a.a)({},f);delete h[L],o.expandedKeys=Object.keys(h).map((function(t){return h[t].key}))}else!r&&t.defaultExpandedKeys&&(o.expandedKeys=t.autoExpandParent||t.defaultExpandParent?Object(x.e)(t.defaultExpandedKeys,f):t.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var d=Object(O.e)(n||e.treeData,o.expandedKeys||e.expandedKeys,s);o.flattenNodes=d}if((t.selectable&&(c("selectedKeys")?o.selectedKeys=Object(x.d)(t.selectedKeys,t):!r&&t.defaultSelectedKeys&&(o.selectedKeys=Object(x.d)(t.defaultSelectedKeys,t))),t.checkable)&&(c("checkedKeys")?u=Object(x.i)(t.checkedKeys)||{}:!r&&t.defaultCheckedKeys?u=Object(x.i)(t.defaultCheckedKeys)||{}:n&&(u=Object(x.i)(t.checkedKeys)||{checkedKeys:e.checkedKeys,halfCheckedKeys:e.halfCheckedKeys}),u)){var p=u,v=p.checkedKeys,y=void 0===v?[]:v,m=p.halfCheckedKeys,b=void 0===m?[]:m;if(!t.checkStrictly){var j=Object(H.a)(y,!0,f);y=j.checkedKeys,b=j.halfCheckedKeys}o.checkedKeys=y,o.halfCheckedKeys=b}return c("loadedKeys")&&(o.loadedKeys=t.loadedKeys),o}}]),n}(d.Component);K.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(t){var e=t.dropPosition,n=t.dropLevelOffset,r=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return d.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1},K.TreeNode=E.a;var Y=K;e.b=Y},814:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(581);function i(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e}var o=n(805);function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getContainer,a=void 0===n?function(){return window}:n,c=e.callback,s=e.duration,l=void 0===s?450:s,u=a(),f=Object(o.a)(u,!0),h=Date.now(),d=function e(){var n=Date.now()-h,a=i(n>l?l:n,f,t,l);Object(o.b)(u)?u.scrollTo(window.pageXOffset,a):u instanceof HTMLDocument||"HTMLDocument"===u.constructor.name?u.documentElement.scrollTop=a:u.scrollTop=a,n=n}(n,d||1,null===t||void 0===t?void 0:t.startRow,null===t||void 0===t?void 0:t.endRow);return{onHover:null===t||void 0===t?void 0:t.onHover,hovering:e}})),g=p.onHover,y=p.hovering;return f.createElement(R,Object(a.a)({},t,{colSpan:h,rowSpan:d,hovering:y,ref:e,onHover:g}))}));_.displayName="WrappedCell";var z=_,V=f.createContext(null);function H(t,e,n,r,i){var o,a,c=n[t]||{},s=n[e]||{};"left"===c.fixed?o=r.left[t]:"right"===s.fixed&&(a=r.right[e]);var l=!1,u=!1,f=!1,h=!1,d=n[e+1],p=n[t-1];if("rtl"===i){if(void 0!==o)h=!(p&&"left"===p.fixed);else if(void 0!==a){f=!(d&&"right"===d.fixed)}}else if(void 0!==o){l=!(d&&"left"===d.fixed)}else if(void 0!==a){u=!(p&&"right"===p.fixed)}return{fixLeft:o,fixRight:a,lastFixLeft:l,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}function K(t){var e,n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,c=t.cellComponent,s=t.onHeaderRow,l=t.index,u=f.useContext(V),h=u.prefixCls,d=u.direction;s&&(e=s(n.map((function(t){return t.column})),l));var p=E(n.map((function(t){return t.column})));return f.createElement(o,e,n.map((function(t,e){var n,o=t.column,s=H(t.colStart,t.colEnd,i,r,d);return o&&o.onHeaderCell&&(n=t.column.onHeaderCell(o)),f.createElement(z,Object(a.a)({},t,{ellipsis:o.ellipsis,align:o.align,component:c,prefixCls:h,key:p[e]},s,{additionalProps:n,rowType:"header"}))})))}K.displayName="HeaderRow";var Y=K;var G=function(t){var e=t.stickyOffsets,n=t.columns,r=t.flattenColumns,i=t.onHeaderRow,o=f.useContext(V),a=o.prefixCls,c=o.getComponent,s=f.useMemo((function(){return function(t){var e=[];!function t(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e[i]=e[i]||[];var o=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,c=n.children;return c&&c.length>0&&(a=t(c,o,i+1).reduce((function(t,e){return t+e}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,e[i].push(r),o+=a,a}));return a}(t,0);for(var n=e.length,r=function(t){e[t].forEach((function(e){"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-t)}))},i=0;i1?n-1:0),o=1;o0?[].concat(Object(u.a)(t),Object(u.a)(ut(i).map((function(t){return Object(l.a)({fixed:r},t)})))):[].concat(Object(u.a)(t),[Object(l.a)(Object(l.a)({},e),{},{fixed:r})])}),[])}var ft=function(t,e){var n=t.prefixCls,r=t.columns,o=t.children,a=t.expandable,c=t.expandedKeys,s=t.getRowKey,u=t.onTriggerExpand,h=t.expandIcon,d=t.rowExpandable,p=t.expandIconColumnIndex,g=t.direction,v=t.expandRowByClick,y=t.columnWidth,m=t.fixed,b=f.useMemo((function(){return r||lt(o)}),[r,o]),x=f.useMemo((function(){if(a){var t,e=b.slice();if(!e.includes(at)){var r=p||0;r>=0&&e.splice(r,0,at)}0;var o=e.indexOf(at);e=e.filter((function(t,e){return t!==at||e===o}));var l,g=b[o];l="left"!==m&&!m||p?"right"!==m&&!m||p!==b.length?g?g.fixed:null:"right":"left";var x=(t={},Object(i.a)(t,ot,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Object(i.a)(t,"title",""),Object(i.a)(t,"fixed",l),Object(i.a)(t,"className","".concat(n,"-row-expand-icon-cell")),Object(i.a)(t,"width",y),Object(i.a)(t,"render",(function(t,e,r){var i=s(e,r),o=c.has(i),a=!d||d(e),l=h({prefixCls:n,expanded:o,expandable:a,record:e,onExpand:u});return v?f.createElement("span",{onClick:function(t){return t.stopPropagation()}},l):l})),t);return e.map((function(t){return t===at?x:t}))}return b.filter((function(t){return t!==at}))}),[a,b,s,c,h,g]),O=f.useMemo((function(){var t=x;return e&&(t=e(t)),t.length||(t=[{render:function(){return null}}]),t}),[e,x,g]),w=f.useMemo((function(){return"rtl"===g?function(t){return t.map((function(t){var e=t.fixed,n=Object(j.a)(t,st),r=e;return"left"===e?r="right":"right"===e&&(r="left"),Object(l.a)({fixed:r},n)}))}(ut(O)):ut(O)}),[O,g]);return[O,w]};function ht(t){var e=Object(f.useRef)(t),n=Object(f.useState)({}),r=Object(o.a)(n,2)[1],i=Object(f.useRef)(null),a=Object(f.useRef)([]);return Object(f.useEffect)((function(){return function(){i.current=null}}),[]),[e.current,function(t){a.current.push(t);var n=Promise.resolve();i.current=n,n.then((function(){if(i.current===n){var t=a.current,o=e.current;a.current=[],t.forEach((function(t){e.current=t(e.current)})),i.current=null,o!==e.current&&r({})}}))}]}var dt=function(t,e,n){return Object(f.useMemo)((function(){for(var r=[],i=[],o=0,a=0,c=0;c=0;o-=1){var c=e[o],s=n&&n[o],l=s&&s[ot];if(c||l||i){var u=l||{},h=(u.columnType,Object(j.a)(u,pt));r.unshift(f.createElement("col",Object(a.a)({key:o,style:{width:c}},h))),i=!0}}return f.createElement("colgroup",null,r)};var vt=function(t){var e=t.className,n=t.children;return f.createElement("div",{className:e},n)},yt=f.createContext({});var mt=["children"];function bt(t){return t.children}bt.Row=function(t){var e=t.children,n=Object(j.a)(t,mt);return f.createElement("tr",n,e)},bt.Cell=function(t){var e=t.className,n=t.index,r=t.children,i=t.colSpan,o=void 0===i?1:i,c=t.rowSpan,s=t.align,l=f.useContext(V),u=l.prefixCls,h=l.direction,d=f.useContext(yt),p=d.scrollColumnIndex,g=d.stickyOffsets,v=n+o-1+1===p?o+1:o,y=H(n,n+v-1,d.flattenColumns,g,h);return f.createElement(z,Object(a.a)({className:e,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:c,render:function(){return r}},y))};var xt=bt;var Ot=function(t){var e=t.children,n=t.stickyOffsets,r=t.flattenColumns,i=f.useContext(V).prefixCls,o=r.length-1,a=r[o],c=f.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null===a||void 0===a?void 0:a.scrollbar)?o:null}}),[a,r,o,n]);return f.createElement(yt.Provider,{value:c},f.createElement("tfoot",{className:"".concat(i,"-summary")},e))},jt=xt;function wt(t){var e,n=t.prefixCls,r=t.record,o=t.onExpand,a=t.expanded,c=t.expandable,l="".concat(n,"-row-expand-icon");if(!c)return f.createElement("span",{className:s()(l,"".concat(n,"-row-spaced"))});return f.createElement("span",{className:s()(l,(e={},Object(i.a)(e,"".concat(n,"-row-expanded"),a),Object(i.a)(e,"".concat(n,"-row-collapsed"),!a),e)),onClick:function(t){o(r,t),t.stopPropagation()}})}var Ct=n(841),St=n(756),Et=function(t,e){var n,r,a=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,h=t.container,d=f.useContext(V).prefixCls,p=(null===(n=a.current)||void 0===n?void 0:n.scrollWidth)||0,g=(null===(r=a.current)||void 0===r?void 0:r.clientWidth)||0,v=p&&g*(g/p),y=f.useRef(),m=ht({scrollLeft:0,isHiddenScrollBar:!1}),x=Object(o.a)(m,2),O=x[0],j=x[1],w=f.useRef({delta:0,x:0}),C=f.useState(!1),S=Object(o.a)(C,2),E=S[0],M=S[1],k=function(){M(!1)},P=function(t){var e,n=(t||(null===(e=window)||void 0===e?void 0:e.event)).buttons;if(E&&0!==n){var r=w.current.x+t.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+v>=g&&(r=g-v),c({scrollLeft:r/g*(p+2)}),w.current.x=t.pageX}else E&&M(!1)},A=function(){if(a.current){var t=Object(St.b)(a.current).top,e=t+a.current.offsetHeight,n=h===window?document.documentElement.scrollTop+window.innerHeight:Object(St.b)(h).top+h.clientHeight;e-Object(b.a)()<=n||t>=n-u?j((function(t){return Object(l.a)(Object(l.a)({},t),{},{isHiddenScrollBar:!0})})):j((function(t){return Object(l.a)(Object(l.a)({},t),{},{isHiddenScrollBar:!1})}))}},I=function(t){j((function(e){return Object(l.a)(Object(l.a)({},e),{},{scrollLeft:t/p*g||0})}))};return f.useImperativeHandle(e,(function(){return{setScrollLeft:I}})),f.useEffect((function(){var t=Object(Ct.a)(document.body,"mouseup",k,!1),e=Object(Ct.a)(document.body,"mousemove",P,!1);return A(),function(){t.remove(),e.remove()}}),[v,E]),f.useEffect((function(){var t=Object(Ct.a)(h,"scroll",A,!1),e=Object(Ct.a)(window,"resize",A,!1);return function(){t.remove(),e.remove()}}),[h]),f.useEffect((function(){O.isHiddenScrollBar||j((function(t){var e=a.current;return e?Object(l.a)(Object(l.a)({},t),{},{scrollLeft:e.scrollLeft/e.scrollWidth*e.clientWidth}):t}))}),[O.isHiddenScrollBar]),p<=g||!v||O.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(b.a)(),width:g,bottom:u},className:"".concat(d,"-sticky-scroll")},f.createElement("div",{onMouseDown:function(t){t.persist(),w.current.delta=t.pageX-O.scrollLeft,w.current.x=0,M(!0),t.preventDefault()},ref:y,className:s()("".concat(d,"-sticky-scroll-bar"),Object(i.a)({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(O.scrollLeft,"px, 0, 0)")}}))},Mt=f.forwardRef(Et),kt=n(648),Pt=Object(kt.a)()?window:null;var At=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var It=f.forwardRef((function(t,e){var n=t.className,r=t.noData,o=t.columns,a=t.flattenColumns,c=t.colWidths,h=t.columCount,d=t.stickyOffsets,p=t.direction,g=t.fixHeader,v=t.stickyTopOffset,y=t.stickyBottomOffset,m=t.stickyClassName,b=t.onScroll,x=t.maxContentScroll,O=t.children,C=Object(j.a)(t,At),S=f.useContext(V),E=S.prefixCls,M=S.scrollbarSize,k=S.isSticky,P=k&&!g?0:M,A=f.useRef(null),I=f.useCallback((function(t){Object(w.b)(e,t),Object(w.b)(A,t)}),[]);f.useEffect((function(){var t;function e(t){var e=t.currentTarget,n=t.deltaX;n&&(b({currentTarget:e,scrollLeft:e.scrollLeft+n}),t.preventDefault())}return null===(t=A.current)||void 0===t||t.addEventListener("wheel",e),function(){var t;null===(t=A.current)||void 0===t||t.removeEventListener("wheel",e)}}),[]);var F=f.useMemo((function(){return a.every((function(t){return t.width>=0}))}),[a]),T=a[a.length-1],L={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},N=Object(f.useMemo)((function(){return P?[].concat(Object(u.a)(o),[L]):o}),[P,o]),D=Object(f.useMemo)((function(){return P?[].concat(Object(u.a)(a),[L]):a}),[P,a]),B=Object(f.useMemo)((function(){var t=d.right,e=d.left;return Object(l.a)(Object(l.a)({},d),{},{left:"rtl"===p?[].concat(Object(u.a)(e.map((function(t){return t+P}))),[0]):e,right:"rtl"===p?t:[].concat(Object(u.a)(t.map((function(t){return t+P}))),[0]),isSticky:k})}),[P,d,k]),R=function(t,e){return Object(f.useMemo)((function(){for(var n=[],r=0;r0)):(ie(o>0),se(o0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},e=t.confirm,n=t.closeDropdown;e&&$([]),n&&A(!1),X(""),D(w?(C||[]).map((function(t){return String(t)})):[])},J=s()(Object(i.a)({},"".concat(c,"-menu-without-submenu"),!(a.filters||[]).some((function(t){return t.children})))),tt=function(t){if(t.target.checked){var e=be(null===a||void 0===a?void 0:a.filters).map((function(t){return String(t)}));D(e)}else D([])},et=function t(e){return(e.filters||[]).map((function(e,n){var r=String(e.value),i={title:e.text,key:void 0!==e.value?r:n};return e.children&&(i.children=t({filters:e.children})),i}))};if("function"===typeof a.filterDropdown)U=a.filterDropdown({prefixCls:"".concat(c,"-custom"),setSelectedKeys:function(t){return B({selectedKeys:t})},selectedKeys:N(),confirm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0},e=t.closeDropdown;e&&A(!1),$(N())},clearFilters:Q,filters:a.filters,visible:I});else if(a.filterDropdown)U=a.filterDropdown;else{var nt=N()||[];U=f.createElement(f.Fragment,null,0===(a.filters||[]).length?f.createElement(oe.a,{image:oe.a.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?f.createElement(f.Fragment,null,f.createElement(de,{filterSearch:g,value:W,onChange:q,tablePrefixCls:n,locale:m}),f.createElement("div",{className:"".concat(n,"-filter-dropdown-tree")},u?f.createElement(re.default,{checked:nt.length===be(a.filters).length,indeterminate:nt.length>0&&nt.length0?s:t}),v=Math.ceil((s||t)/g.pageSize);g.current>v&&(g.current=v||1);var y=function(t,e){p({current:null!==t&&void 0!==t?t:1,pageSize:e||g.pageSize})};return!1===e?[{},function(){}]:[Object(a.a)(Object(a.a)({},g),{onChange:function(t,r){var i;e&&(null===(i=e.onChange)||void 0===i||i.call(e,t,r)),y(t,r),n(t,r||(null===g||void 0===g?void 0:g.pageSize))}}),y]}var Se=n(610),Ee=n(632),Me=n(659),ke=n(730),Pe=n(614),Ae=n(577),Ie={},Fe=[];function Te(t,e){var n=t||{},c=n.preserveSelectedRowKeys,s=n.selectedRowKeys,l=n.defaultSelectedRowKeys,h=n.getCheckboxProps,d=n.onChange,p=n.onSelect,g=n.onSelectAll,v=n.onSelectInvert,y=n.onSelectNone,m=n.onSelectMultiple,b=n.columnWidth,x=n.type,O=n.selections,j=n.fixed,w=n.renderCell,C=n.hideSelectAll,S=n.checkStrictly,E=void 0===S||S,M=e.prefixCls,k=e.data,P=e.pageData,A=e.getRecordByKey,I=e.getRowKey,F=e.expandType,T=e.childrenColumnName,L=e.locale,N=e.getPopupContainer,D=Object(Ae.a)(s||l||Fe,{value:s}),B=Object(o.a)(D,2),R=B[0],_=B[1],z=f.useRef(new Map),V=Object(f.useCallback)((function(t){if(c){var e=new Map;t.forEach((function(t){var n=A(t);!n&&z.current.has(t)&&(n=z.current.get(t)),e.set(t,n)})),z.current=e}}),[A,c]);f.useEffect((function(){V(R)}),[R]);var H=Object(f.useMemo)((function(){return E?{keyEntities:null}:Object(Pe.a)(k,{externalGetKey:I,childrenPropName:T})}),[k,I,E,T]).keyEntities,K=Object(f.useMemo)((function(){return function t(e,n){var i=[];return(e||[]).forEach((function(e){i.push(e),e&&"object"===Object(r.a)(e)&&n in e&&(i=[].concat(Object(u.a)(i),Object(u.a)(t(e[n],n))))})),i}(P,T)}),[P,T]),Y=Object(f.useMemo)((function(){var t=new Map;return K.forEach((function(e,n){var r=I(e,n),i=(h?h(e):null)||{};t.set(r,i)})),t}),[K,I,h]),G=Object(f.useCallback)((function(t){var e;return!!(null===(e=Y.get(I(t)))||void 0===e?void 0:e.disabled)}),[Y,I]),W=Object(f.useMemo)((function(){if(E)return[R||[],[]];var t=Object(ke.a)(R,!0,H,G);return[t.checkedKeys||[],t.halfCheckedKeys]}),[R,E,H,G]),X=Object(o.a)(W,2),q=X[0],U=X[1],$=Object(f.useMemo)((function(){var t="radio"===x?q.slice(0,1):q;return new Set(t)}),[q,x]),Z=Object(f.useMemo)((function(){return"radio"===x?new Set:new Set(U)}),[U,x]),Q=Object(f.useState)(null),J=Object(o.a)(Q,2),tt=J[0],et=J[1];f.useEffect((function(){t||_(Fe)}),[!!t]);var nt=Object(f.useCallback)((function(t,e){var n,r;V(t),c?(n=t,r=t.map((function(t){return z.current.get(t)}))):(n=[],r=[],t.forEach((function(t){var e=A(t);void 0!==e&&(n.push(t),r.push(e))}))),_(n),null===d||void 0===d||d(n,r,{type:e})}),[_,A,d,c]),rt=Object(f.useCallback)((function(t,e,n,r){if(p){var i=n.map((function(t){return A(t)}));p(A(t),e,i,r)}nt(n,"single")}),[p,A,nt]),it=Object(f.useMemo)((function(){return!O||C?null:(!0===O?["SELECT_ALL","SELECT_INVERT","SELECT_NONE"]:O).map((function(t){return"SELECT_ALL"===t?{key:"all",text:L.selectionAll,onSelect:function(){nt(k.map((function(t,e){return I(t,e)})).filter((function(t){var e=Y.get(t);return!(null===e||void 0===e?void 0:e.disabled)||$.has(t)})),"all")}}:"SELECT_INVERT"===t?{key:"invert",text:L.selectInvert,onSelect:function(){var t=new Set($);P.forEach((function(e,n){var r=I(e,n),i=Y.get(r);(null===i||void 0===i?void 0:i.disabled)||(t.has(r)?t.delete(r):t.add(r))}));var e=Array.from(t);v&&v(e),nt(e,"invert")}}:"SELECT_NONE"===t?{key:"none",text:L.selectNone,onSelect:function(){null===y||void 0===y||y(),nt(Array.from($).filter((function(t){var e=Y.get(t);return null===e||void 0===e?void 0:e.disabled})),"none")}}:t})).map((function(t){return Object(a.a)(Object(a.a)({},t),{onSelect:function(){for(var e,n,r=arguments.length,i=new Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],r=Object(a.a)(Object(a.a)({},ct),t);n&&(ct.resetPagination(),r.pagination.current&&(r.pagination.current=1),v&&v.onChange&&v.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&rt.body.current&&Object(Wt.a)(0,{getContainer:function(){return rt.body.current}}),null===w||void 0===w||w(r.pagination,r.filters,r.sorter,{currentDataSource:Oe(Ke(U,r.sorterStates,et),r.filterStates),action:e})},ut=Ye({prefixCls:Z,mergedColumns:_,onSorterChange:function(t,e){st({sorter:t,sorterStates:e},"sort",!1)},sortDirections:F||["ascend","descend"],tableLocale:q,showSorterTooltip:N}),ft=Object(o.a)(ut,4),ht=ft[0],dt=ft[1],pt=ft[2],gt=ft[3],vt=f.useMemo((function(){return Ke(U,dt,et)}),[U,dt]);ct.sorter=gt(),ct.sorterStates=dt;var yt=je({prefixCls:Z,locale:q,dropdownPrefixCls:Q,mergedColumns:_,onFilterChange:function(t,e){st({filters:t,filterStates:e},"filter",!0)},getPopupContainer:C}),mt=Object(o.a)(yt,3),bt=mt[0],xt=mt[1],Ot=mt[2],jt=Oe(vt,xt);ct.filters=Ot(),ct.filterStates=xt;var wt=Ge(f.useMemo((function(){return Object(a.a)({},pt)}),[pt])),Ct=Object(o.a)(wt,1)[0],St=Ce(jt.length,v,(function(t,e){st({pagination:Object(a.a)(Object(a.a)({},ct.pagination),{current:t,pageSize:e})},"paginate")})),Et=Object(o.a)(St,2),Mt=Et[0],kt=Et[1];ct.pagination=!1===v?{}:function(t,e){var n={current:e.current,pageSize:e.pageSize},i=t&&"object"===Object(r.a)(t)?t:{};return Object.keys(i).forEach((function(t){var r=e[t];"function"!==typeof r&&(n[t]=r)})),n}(v,Mt),ct.resetPagination=kt;var Pt=f.useMemo((function(){if(!1===v||!Mt.pageSize)return jt;var t=Mt.current,e=void 0===t?1:t,n=Mt.total,r=Mt.pageSize,i=void 0===r?10:r;return jt.lengthi?jt.slice((e-1)*i,e*i):jt:jt.slice((e-1)*i,e*i)}),[!!v,jt,Mt&&Mt.current,Mt&&Mt.pageSize,Mt&&Mt.total]),At=Te(y,{prefixCls:Z,data:jt,pageData:Pt,getRowKey:it,getRecordByKey:at,expandType:nt,childrenColumnName:et,locale:q,getPopupContainer:C}),It=Object(o.a)(At,2),Ft=It[0],Tt=It[1];J.__PARENT_RENDER_ICON__=J.expandIcon,J.expandIcon=J.expandIcon||E||Ut(q),"nest"===nt&&void 0===J.expandIconColumnIndex?J.expandIconColumnIndex=y?1:0:J.expandIconColumnIndex>0&&y&&(J.expandIconColumnIndex-=1),"number"!==typeof J.indentSize&&(J.indentSize="number"===typeof A?A:15);var Lt,Nt,Dt,Xt=f.useCallback((function(t){return Ct(Ft(bt(ht(t))))}),[ht,bt,Ft]);if(!1!==v&&(null===Mt||void 0===Mt?void 0:Mt.total)){var qt;qt=Mt.size?Mt.size:"small"===X||"middle"===X?"small":void 0;var $t=function(t){return f.createElement(Yt.a,Object(a.a)({},Mt,{className:s()("".concat(Z,"-pagination ").concat(Z,"-pagination-").concat(t),Mt.className),size:qt}))},Zt="rtl"===W?"left":"right",Qt=Mt.position;if(null!==Qt&&Array.isArray(Qt)){var Jt=Qt.find((function(t){return-1!==t.indexOf("top")})),te=Qt.find((function(t){return-1!==t.indexOf("bottom")})),ee=Qt.every((function(t){return"none"==="".concat(t)}));Jt||te||ee||(Nt=$t(Zt)),Jt&&(Lt=$t(Jt.toLowerCase().replace("top",""))),te&&(Nt=$t(te.toLowerCase().replace("bottom","")))}else Nt=$t(Zt)}"boolean"===typeof S?Dt={spinning:S}:"object"===Object(r.a)(S)&&(Dt=Object(a.a)({spinning:!0},S));var ne=s()("".concat(Z,"-wrapper"),Object(i.a)({},"".concat(Z,"-wrapper-rtl"),"rtl"===W),l);return f.createElement("div",{ref:e,className:ne,style:u},f.createElement(Gt.default,Object(a.a)({spinning:!1},Dt),Lt,f.createElement(Bt,Object(a.a)({},z,{columns:_,direction:W,expandable:J,prefixCls:Z,className:s()((n={},Object(i.a)(n,"".concat(Z,"-middle"),"middle"===X),Object(i.a)(n,"".concat(Z,"-small"),"small"===X),Object(i.a)(n,"".concat(Z,"-bordered"),d),Object(i.a)(n,"".concat(Z,"-empty"),0===U.length),n)),data:Pt,rowKey:it,rowClassName:function(t,e,n){var r;return r="function"===typeof b?s()(b(t,e,n)):s()(b),s()(Object(i.a)({},"".concat(Z,"-row-selected"),Tt.has(it(t,e))),r)},emptyText:T&&T.emptyText||(G||zt.a)("Table"),internalHooks:"rc-table-internal-hook",internalRefs:rt,transformColumns:Xt})),Nt))}var qe=f.forwardRef(Xe);qe.defaultProps={rowKey:"key"},qe.SELECTION_COLUMN=Ie,qe.EXPAND_COLUMN=Bt.EXPAND_COLUMN,qe.SELECTION_ALL="SELECT_ALL",qe.SELECTION_INVERT="SELECT_INVERT",qe.SELECTION_NONE="SELECT_NONE",qe.Column=Xt,qe.ColumnGroup=qt,qe.Summary=jt;var Ue=qe;e.default=Ue},875:function(t,e,n){"use strict";n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return X})),n.d(e,"a",(function(){return cn})),n.d(e,"b",(function(){return sn})),n.d(e,"c",(function(){return ln})),n.d(e,"f",(function(){return r})),n.d(e,"h",(function(){return hn})),n.d(e,"n",(function(){return fn})),n.d(e,"j",(function(){return xn})),n.d(e,"g",(function(){return On})),n.d(e,"l",(function(){return W})),n.d(e,"m",(function(){return $})),n.d(e,"k",(function(){return Z})),n.d(e,"i",(function(){return bn})),n.d(e,"o",(function(){return $e}));var r={};n.r(r),n.d(r,"catmullRomToBezier",(function(){return u})),n.d(r,"fillPath",(function(){return F})),n.d(r,"fillPathByDiff",(function(){return N})),n.d(r,"formatPath",(function(){return R})),n.d(r,"intersection",(function(){return P})),n.d(r,"parsePathArray",(function(){return m})),n.d(r,"parsePathString",(function(){return l})),n.d(r,"pathToAbsolute",(function(){return h})),n.d(r,"pathToCurve",(function(){return v})),n.d(r,"rectPath",(function(){return C}));var i={};n.r(i),n.d(i,"easeLinear",(function(){return ve})),n.d(i,"easeQuad",(function(){return be})),n.d(i,"easeQuadIn",(function(){return ye})),n.d(i,"easeQuadOut",(function(){return me})),n.d(i,"easeQuadInOut",(function(){return be})),n.d(i,"easeCubic",(function(){return je})),n.d(i,"easeCubicIn",(function(){return xe})),n.d(i,"easeCubicOut",(function(){return Oe})),n.d(i,"easeCubicInOut",(function(){return je})),n.d(i,"easePoly",(function(){return Se})),n.d(i,"easePolyIn",(function(){return we})),n.d(i,"easePolyOut",(function(){return Ce})),n.d(i,"easePolyInOut",(function(){return Se})),n.d(i,"easeSin",(function(){return Ae})),n.d(i,"easeSinIn",(function(){return ke})),n.d(i,"easeSinOut",(function(){return Pe})),n.d(i,"easeSinInOut",(function(){return Ae})),n.d(i,"easeExp",(function(){return Le})),n.d(i,"easeExpIn",(function(){return Fe})),n.d(i,"easeExpOut",(function(){return Te})),n.d(i,"easeExpInOut",(function(){return Le})),n.d(i,"easeCircle",(function(){return Be})),n.d(i,"easeCircleIn",(function(){return Ne})),n.d(i,"easeCircleOut",(function(){return De})),n.d(i,"easeCircleInOut",(function(){return Be})),n.d(i,"easeBounce",(function(){return ze})),n.d(i,"easeBounceIn",(function(){return _e})),n.d(i,"easeBounceOut",(function(){return ze})),n.d(i,"easeBounceInOut",(function(){return Ve})),n.d(i,"easeBack",(function(){return Ye})),n.d(i,"easeBackIn",(function(){return He})),n.d(i,"easeBackOut",(function(){return Ke})),n.d(i,"easeBackInOut",(function(){return Ye})),n.d(i,"easeElastic",(function(){return Xe})),n.d(i,"easeElasticIn",(function(){return We})),n.d(i,"easeElasticOut",(function(){return Xe})),n.d(i,"easeElasticInOut",(function(){return qe}));var o=n(579),a="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",c=new RegExp("([a-z])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),s=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+a+"]*,?["+a+"]*","ig"),l=function(t){if(!t)return null;if(Object(o.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(c,(function(r,i,o){var a=[],c=i.toLowerCase();if(o.replace(s,(function(t,e){e&&a.push(+e)})),"m"===c&&a.length>2&&(n.push([i].concat(a.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===a.length&&n.push([i,a[0]]),"r"===c)n.push([i].concat(a));else for(;a.length>=e[c]&&(n.push([i].concat(a.splice(0,e[c]))),e[c]););return t})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},f=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,c=t+n*Math.cos(-r*a),s=t+n*Math.cos(-i*a);o=[["M",c,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,s,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},h=function(t){if(!(t=l(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,s=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],s++,r[0]=["M",i,o]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=s,v=t.length;g1&&(r*=j=Math.sqrt(j),i*=j);var w=r*r,C=i*i,S=(a===c?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));p=S*r*O/i+(e+s)/2,g=S*-i*x/r+(n+l)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),h=ed&&(h-=2*Math.PI),!c&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var M=d,k=s,P=l;d=h+v*(c&&d>h?1:-1),m=t(s=p+r*Math.cos(d),l=g+i*Math.sin(d),r,i,o,0,c,k,P,[d,M,p,g])}E=d-h;var A=Math.cos(h),I=Math.sin(h),F=Math.cos(d),T=Math.sin(d),L=Math.tan(E/4),N=4/3*r*L,D=4/3*i*L,B=[e,n],R=[e+N*I,n-D*A],_=[s+N*T,l-D*F],z=[s,l];if(R[0]=2*B[0]-R[0],R[1]=2*B[1]-R[1],u)return[R,_,z].concat(m);for(var V=[],H=0,K=(m=[R,_,z].concat(m).join().split(",")).length;H7){t[e].shift();for(var o=t[e];o.length;)c[e]="A",i&&(s[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,o,a,c){t&&e&&"M"===t[c][0]&&"M"!==e[c][0]&&(e.splice(c,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[c][1],o.y=t[c][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:s<0?0:s)/2,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var p=l*u[d]+l,g=b(p,t,n,i,a),v=b(p,e,r,o,c),y=g*g+v*v;h+=f[d]*Math.sqrt(y)}return l*h},O=function(t,e,n,r,i,o,a,c){for(var s,l,u,f,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,s=-3*t+9*n-9*i+3*a,u=3*n-3*t):(l=6*e-12*r+6*o,s=-3*e+9*r-9*o+3*c,u=3*r-3*e),Math.abs(s)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-u/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*u*s,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*s);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*s);m>0&&m<1&&h.push(m)}}for(var b,x=h.length,O=x;x--;)b=1-(f=h[x]),d[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*a,d[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*o+f*f*f*c;return d[0][O]=t,d[1][O]=e,d[0][O+1]=a,d[1][O+1]=c,d[0].length=d[1].length=O+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},j=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,c))){var s=(t-n)*(o-c)-(e-r)*(i-a);if(s){var l=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/s,u=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/s,f=+l.toFixed(2),h=+u.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,a).toFixed(2)||f>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,c).toFixed(2)||h>+Math.max(o,c).toFixed(2)))return{x:l,y:u}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},C=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=m,o},S=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:C(t,e,n,r),vb:[t,e,n,r].join(" ")}},E=function(t,e,n,r,i,a,c,s){Object(o.C)(t)||(t=[t,e,n,r,i,a,c,s]);var l=O.apply(null,t);return S(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},M=function(t,e,n,r,i,o,a,c,s){var l=1-s,u=Math.pow(l,3),f=Math.pow(l,2),h=s*s,d=h*s,p=t+2*s*(n-t)+h*(i-2*n+t),g=e+2*s*(r-e)+h*(o-2*r+e),v=n+2*s*(i-n)+h*(a-2*i+n),y=r+2*s*(o-r)+h*(c-2*o+r);return{x:u*t+3*f*s*n+3*l*s*s*i+d*a,y:u*e+3*f*s*r+3*l*s*s*o+d*c,m:{x:p,y:g},n:{x:v,y:y},start:{x:l*t+s*n,y:l*e+s*r},end:{x:l*i+s*a,y:l*o+s*c},alpha:90-180*Math.atan2(p-v,g-y)/Math.PI}},k=function(t,e,n){if(!function(t,e){return t=S(t),e=S(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(E(t),E(e)))return n?0:[];for(var r=~~(x.apply(0,t)/8),i=~~(x.apply(0,e)/8),o=[],a=[],c={},s=n?0:[],l=0;l=0&&b<=1&&O>=0&&O<=1&&(n?s+=1:s.push({x:m.x,y:m.y,t1:b,t2:O}))}}return s},P=function(t,e){return function(t,e,n){var r,i,o,a,c,s,l,u,f,h;t=v(t),e=v(e);for(var d=n?0:[],p=0,g=t.length;p=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])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},F=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;s--)a=o[s].index,"add"===o[s].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var f=i-(r=t.length);if(r0)){t[r]=e[r];break}n=D(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=D(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=D(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},_=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),z=function(t,e){return(z=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])})(t,e)};function V(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}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var H=n(2184);function K(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var Y="undefined"!==typeof window&&"undefined"!==typeof window.document;function G(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function W(t){return t.cfg.visible&&t.cfg.capture}var X=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.db)(r,e),n}return V(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}(H.a),q=n(2250);function U(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*l,n[1]=h*i+d*c+p*u,n[2]=h*o+d*s+p*f,n[3]=g*r+v*a+y*l,n[4]=g*i+v*c+y*u,n[5]=g*o+v*s+y*f,n[6]=m*r+b*a+x*l,n[7]=m*i+b*c+x*u,n[8]=m*o+b*s+x*f,n}function $(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function Z(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],c=t[5],s=t[6],l=t[7],u=t[8],f=u*a-c*l,h=-u*o+c*s,d=l*o-a*s,p=n*f+r*h+i*d;return p?(p=1/p,e[0]=f*p,e[1]=(-u*r+i*l)*p,e[2]=(c*r-i*a)*p,e[3]=h*p,e[4]=(u*n-i*s)*p,e[5]=(-c*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*s)*p,e[8]=(a*n-r*o)*p,e):null}var Q=n(916).a.transform,J=["zIndex","capture","visible","type"],tt=["repeat"];function et(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function nt(t,e){var n={},r=e.attr();return Object(o.j)(t,(function(t,e){-1!==tt.indexOf(e)||Object(o.H)(r[e],t)||(n[e]=t)})),n}function rt(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,a=Object.prototype.hasOwnProperty;return Object(o.j)(t,(function(t){n+rt.delay&&Object(o.j)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var it=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(o.db)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return V(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?r=rt(r,b):n.addAnimator(this),r.push(b),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(o.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(o.j)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(o.j)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var a=function(t){var a=i[t],s=a.get("name");if(s){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&n&&G(a,n))return"break";Object(o.C)(s)?Object(o.j)(s,(function(t){r.emitDelegateEvent(a,t,e)})):c.emitDelegateEvent(a,s,e)}},c=this,s=0;s0)}));return c.length>0?(Object(o.j)(c,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Object(o.bb)(i),e=Object(o.Y)(i),n=Object(o.bb)(a),r=Object(o.Y)(a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],a=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.j)(c,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Object(o.bb)(i),e=Object(o.Y)(i),n=Object(o.bb)(a),r=Object(o.Y)(a)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(o.j)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var a=t[o];if(W(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),K(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(o.j)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o.j)(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.j)(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}(it),lt=0,ut=0,ft=0,ht=0,dt=0,pt=0,gt="object"===typeof performance&&performance.now?performance:Date,vt="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function yt(){return dt||(vt(mt),dt=gt.now()+pt)}function mt(){dt=0}function bt(){this._call=this._time=this._next=null}function xt(t,e,n){var r=new bt;return r.restart(t,e,n),r}function Ot(){dt=(ht=gt.now())+pt,lt=ut=0;try{!function(){yt(),++lt;for(var t,e=at;e;)(t=dt-e._time)>=0&&e._call.call(null,t),e=e._next;--lt}()}finally{lt=0,function(){var t,e,n=at,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:at=e);ct=t,wt(r)}(),dt=0}}function jt(){var t=gt.now(),e=t-ht;e>1e3&&(pt-=e,ht=t)}function wt(t){lt||(ut&&(ut=clearTimeout(ut)),t-dt>24?(t<1/0&&(ut=setTimeout(Ot,t-gt.now()-pt)),ft&&(ft=clearInterval(ft))):(ft||(ht=gt.now(),ft=setInterval(jt,1e3)),lt=1,vt(Ot)))}bt.prototype=xt.prototype={constructor:bt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?yt():+n)+(null==e?0:+e),this._next||ct===this||(ct?ct._next=this:at=this,ct=this),this._call=t,this._time=n,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};var Ct=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function St(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Et(){}var Mt="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3,8})$/,It=new RegExp("^rgb\\("+[Mt,Mt,Mt]+"\\)$"),Ft=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),Tt=new RegExp("^rgba\\("+[Mt,Mt,Mt,kt]+"\\)$"),Lt=new RegExp("^rgba\\("+[Pt,Pt,Pt,kt]+"\\)$"),Nt=new RegExp("^hsl\\("+[kt,Pt,Pt]+"\\)$"),Dt=new RegExp("^hsla\\("+[kt,Pt,Pt,kt]+"\\)$"),Bt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Rt(){return this.rgb().formatHex()}function _t(){return this.rgb().formatRgb()}function zt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=At.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Vt(e):3===n?new Gt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ht(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ht(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=It.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Ft.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Tt.exec(t))?Ht(e[1],e[2],e[3],e[4]):(e=Lt.exec(t))?Ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,1):(e=Dt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,e[4]):Bt.hasOwnProperty(t)?Vt(Bt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Vt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Ht(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gt(t,e,n,r)}function Kt(t){return t instanceof Et||(t=zt(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Yt(t,e,n,r){return 1===arguments.length?Kt(t):new Gt(t,e,n,null==r?1:r)}function Gt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Wt(){return"#"+qt(this.r)+qt(this.g)+qt(this.b)}function Xt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function qt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ut(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zt(t,e,n,r)}function $t(t){if(t instanceof Zt)return new Zt(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=zt(t)),!t)return new Zt;if(t instanceof Zt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=e===o?(n-r)/c+6*(n0&&s<1?0:a,new Zt(a,c,s,t.opacity)}function Zt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Qt(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 Jt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Ct(Et,zt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Rt,formatHex:Rt,formatHsl:function(){return $t(this).formatHsl()},formatRgb:_t,toString:_t}),Ct(Gt,Yt,St(Et,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Gt(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:Wt,formatHex:Wt,formatRgb:Xt,toString:Xt})),Ct(Zt,(function(t,e,n,r){return 1===arguments.length?$t(t):new Zt(t,e,n,null==r?1:r)}),St(Et,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Zt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zt(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,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Gt(Qt(t>=240?t-240:t+120,i,r),Qt(t,i,r),Qt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var te=function(t){return function(){return t}};function ee(t,e){return function(n){return t+n*e}}function ne(t){return 1===(t=+t)?re:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):te(isNaN(e)?n:e)}}function re(t,e){var n=e-t;return n?ee(t,n):te(isNaN(t)?e:t)}var ie=function t(e){var n=ne(e);function r(t,e){var r=n((t=Yt(t)).r,(e=Yt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=re(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function oe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),c=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,c=ro&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:ue(n,r)})),o=de.lastIndex;return op.length?(d=l(a[h]),p=l(i[h]),p=N(p,d),p=R(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=l(a[h]),p=l(i[h]),p=R(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),r[h]=[];for(var g=0;g0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Qe(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}r.canvas.get("autoDraw")||r.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}(),tn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function en(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function nn(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&G(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var rn=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){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(o.j)(tn,(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.j)(tn,(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,r,i,o){var a=new _(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var c=this.canvas;c.get("el").style.cursor=r.attr("cursor")||c.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,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 r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var c=this.mousedownShape,s=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,u=a.clientY-t.clientY;s>120||l*l+u*u>40?c&&c.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!c&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,en(r,t,a);for(var c=r.getParent();c;)c.emitDelegation(t,a),a.propagationStopped||nn(c,t,a),a.propagationPath.push(c),c=c.getParent()}else{en(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),on=Object(q.a)(),an=on&&"firefox"===on.name,cn=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return V(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.Q)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new rn({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Je(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");Y&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");Y&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(an&&!Object(o.K)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(o.K)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,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").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(st),sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(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(),r=0;r=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,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=$(e,[t.minX,t.minY]),c=$(e,[t.maxX,t.minY]),s=$(e,[t.minX,t.maxY]),l=$(e,[t.maxX,t.maxY]);n=Math.min(a[0],c[0],s[0],l[0]),i=Math.max(a[0],c[0],s[0],l[0]),r=Math.min(a[1],c[1],s[1],l[1]),o=Math.max(a[1],c[1],s[1],l[1])}var u=this.attrs;if(u.shadowColor){var f=u.shadowBlur,h=void 0===f?0:f,d=u.shadowOffsetX,p=void 0===d?0:d,g=u.shadowOffsetY,v=void 0===g?0:g,y=n-h+p,m=i+h+p,b=r-h+v,x=o+h+v;n=Math.min(n,y),i=Math.max(i,m),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-r}},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"),r=this.get("endArrowShape"),i=[t,e,1],o=(i=this.invertFromMatrix(i))[0],a=i[1],c=this._isInBBox(o,a);if(this.isOnlyHitBox())return c;if(c&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(it),un=new Map;function fn(t,e){un.set(t,e)}function hn(t){return un.get(t)}var dn=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},pn=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}},gn=n(1005);function vn(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 yn(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=vn(e,n.getCanvasBBox())),r&&(e=vn(e,r.getCanvasBBox())),e}var mn=null;function bn(){if(!mn){var t=document.createElement("canvas");t.width=1,t.height=1,mn=t.getContext("2d")}return mn}function xn(t,e,n){var r=1;return Object(o.Q)(t)&&(r=t.split("\n").length),r>1?e*r+function(t,e){return e?e-t:.14*t}(e,n)*(r-1):e}function On(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var jn=n(1411);function wn(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),c=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((a+c-s)/(2*Math.sqrt(a)*Math.sqrt(c)));if(!l||0===Math.sin(l)||Object(o.N)(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(f-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}fn("rect",dn),fn("image",dn),fn("circle",pn),fn("marker",pn),fn("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},918:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"f",(function(){return v}));var r=n(579);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function c(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function s(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function f(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var h=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(r.j)(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=d(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],r[0],i[0],l[0]),f=Math.max(n[0],r[0],i[0],l[0]),h=Math.min(n[1],r[1],i[1],l[1]),p=Math.max(n[1],r[1],i[1],l[1]);ua&&(a=f),hs&&(s=p)}})):(o=0,a=0,c=0,s=0),e=l(o,c,a-o,s-c)}else e=t.getBBox();return i?function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}(e,i):e}function p(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function g(t){return t+"px"}function v(t,e,n,r){var i=r/function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},964:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o=n(618);function a(t,e){var n=t.type,o=t.xField,a=t.yField,c=t.colorField,s=t.shapeField,l=t.sizeField,u=t.styleField,f=t.rawFields,h=void 0===f?[]:f,d=[];if("color"===e)d=Object(r.d)([c||o],h);else if("shape"===e)d=Object(r.d)([s||o],h);else if("size"===e)d=Object(r.d)([l||o],h);else{d=Object(r.d)([o,a,c,s,l,u],h);var p=["x","y","color","shape","size","style"].indexOf(e),g=d[p];d.splice(p,1),d.unshift(g)}var v=Object(i.ub)(d.filter((function(t){return!!t}))),y="line"===n&&[o,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:y}}function c(t,e){if(e)return function(){for(var n=[],r=0;r