(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45f6bd2a"],{"083a":function(t,e,n){"use strict";var r=n("0d51"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw new i("Cannot delete property "+r(e)+" of "+r(t))}},"0c9b":function(t,e,n){"use strict";var r=function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"el-fade-in"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.toTopShow,expression:"toTopShow"}],staticClass:"page-up",on:{click:t.scrollToTop}},[e("van-icon",{staticStyle:{margin:"10%"},attrs:{name:"back-top",color:"#f9fafb",size:"2rem"}})],1)])},i=[],o={name:"pageup",data:function(){return{toTopShow:!0}},created:function(){},mounted:function(){this.$nextTick((function(){window.addEventListener("scroll",this.handleScroll,!0)}))},destroyed:function(){window.removeEventListener("scroll",this.handleScroll,!0)},methods:{handleScroll:function(){this.scrollTop=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,this.scrollTop>0?this.toTopShow=!0:this.toTopShow=!1},scrollToTop:function(){var t=null,e=this;cancelAnimationFrame(t),t=requestAnimationFrame((function n(){e.scrollTop>1e3||e.scrollTop>1e3&&e.scrollTop<=5e3||e.scrollTop>200&&e.scrollTop<=1e3||e.scrollTop>50&&e.scrollTop<=200||e.scrollTop>0&&e.scrollTop<=50?(e.scrollTop-=0,document.documentElement.scrollTop=0,window.pageYOffset=0,document.body.scrollTop=0,t=requestAnimationFrame(n)):(cancelAnimationFrame(t),e.toTopShow=!1)}))}}},a=o,s=(n("9d9b"),n("2877")),l=Object(s["a"])(a,r,i,!1,null,"03d30358",null);e["a"]=l.exports},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,i=[],o=e;ol?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},3375:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d401"),n("4de4"),n("4160"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("25f0"),n("4d90"),n("5319"),n("159b");function r(t,e){var n,r={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(var i in r)n=new RegExp("("+i+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?r[i]:r[i].padStart(n[1].length,"0")));return t}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return m})),n.d(e,"lift",(function(){return x})),n.d(e,"toHex",(function(){return w})),n.d(e,"fastLerp",(function(){return S})),n.d(e,"fastMapToColor",(function(){return O})),n.d(e,"lerp",(function(){return M})),n.d(e,"mapToColor",(function(){return T})),n.d(e,"modifyHSL",(function(){return C})),n.d(e,"modifyAlpha",(function(){return k})),n.d(e,"stringify",(function(){return I})),n.d(e,"lum",(function(){return D})),n.d(e,"random",(function(){return A})),n.d(e,"liftColor",(function(){return P}));var r=n("d51b"),i=n("6d8b"),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t=Math.round(t),t<0?0:t>360?360:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function f(t,e,n){return t+(e-t)*n}function p(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new r["a"](20),v=null;function y(t,e){v&&d(v,e),v=g.put(t,v||e.slice())}function m(t,e){if(t){e=e||[];var n=g.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in o)return d(e,o[r]),y(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===i){var l=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?p(e,+h[0],+h[1],+h[2],1):p(e,0,0,0,1);f=c(h.pop());case"rgb":return h.length>=3?(p(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?f:c(h[3])),y(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==h.length?void p(e,0,0,0,1):(h[3]=c(h[3]),_(h,e),y(t,e),e);case"hsl":return 3!==h.length?void p(e,0,0,0,1):(_(h,e),y(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===i||5===i){var v=parseInt(r.slice(1,4),16);return v>=0&&v<=4095?(p(e,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===i?parseInt(r.slice(4),16)/15:1),y(t,e),e):void p(e,0,0,0,1)}if(7===i||9===i){v=parseInt(r.slice(1,7),16);return v>=0&&v<=16777215?(p(e,(16711680&v)>>16,(65280&v)>>8,255&v,9===i?parseInt(r.slice(7),16)/255:1),y(t,e),e):void p(e,0,0,0,1)}}}}function _(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return e=e||[],p(e,a(255*h(s,o,n+1/3)),a(255*h(s,o,n)),a(255*h(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function x(t,e){var n=m(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return I(n,4===n.length?"rgba":"rgb")}}function w(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=e[i],u=e[o],c=r-i;return n[0]=a(f(s[0],u[0],c)),n[1]=a(f(s[1],u[1],c)),n[2]=a(f(s[2],u[2],c)),n[3]=l(f(s[3],u[3],c)),n}}var O=S;function M(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),s=m(e[i]),u=m(e[o]),c=r-i,h=I([a(f(s[0],u[0],c)),a(f(s[1],u[1],c)),a(f(s[2],u[2],c)),l(f(s[3],u[3],c))],"rgba");return n?{color:h,leftIndex:i,rightIndex:o,value:r}:h}}var T=M;function C(t,e,n,r){var i=m(t);if(t)return i=b(i),null!=e&&(i[0]=s(e)),null!=n&&(i[1]=c(n)),null!=r&&(i[2]=c(r)),I(_(i),"rgba")}function k(t,e){var n=m(t);if(n&&null!=e)return n[3]=l(e),I(n,"rgba")}function I(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function A(){return I([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var j=new r["a"](100);function P(t){if(Object(i["isString"])(t)){var e=j.get(t);return e||(e=x(t,-.1),j.put(t,e)),e}if(Object(i["isGradientObject"])(t)){var n=Object(i["extend"])({},t);return n.colorStops=Object(i["map"])(t.colorStops,(function(t){return{offset:t.offset,color:x(t.color,-.1)}})),n}return t}},4662:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("09fe"),n("4d75"),n("e3b3"),n("8270"),n("786d"),n("504b")},"4c10":function(t,e,n){"use strict";n.d(e,"g",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"k",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"b",(function(){return d}));var r=n("1808");function i(t){return Object(r["a"])({url:"orders",method:"get",params:t})}function o(t){return Object(r["a"])({url:"orders/".concat(t),method:"get"})}function a(t){return Object(r["a"])({url:"orders/".concat(t),method:"delete"})}function s(t,e){return Object(r["a"])({url:"orders/".concat(t,"/allot"),method:"post",data:e})}function l(t,e){return Object(r["a"])({url:"orders/".concat(t,"/allot"),method:"put",data:e})}function u(t,e){return Object(r["a"])({url:"orders/".concat(t,"/check"),method:"post",data:e})}function c(t){return Object(r["a"])({url:"orders/".concat(t,"/complete"),method:"post"})}function h(t,e){return Object(r["a"])({url:"orders/".concat(t,"/issue"),method:"post",data:e})}function f(t,e){return Object(r["a"])({url:"orders/".concat(t,"/suspend"),method:"post",data:e})}function p(t){return Object(r["a"])({url:"workorders",method:"get",params:t})}function d(t,e){return Object(r["a"])({url:"extension/".concat(t,"/check"),method:"post",data:e})}},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return _})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return S})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return M})),n.d(e,"mixin",(function(){return T})),n.d(e,"isArrayLike",(function(){return C})),n.d(e,"each",(function(){return k})),n.d(e,"map",(function(){return I})),n.d(e,"reduce",(function(){return D})),n.d(e,"filter",(function(){return A})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return P})),n.d(e,"bind",(function(){return R})),n.d(e,"curry",(function(){return E})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return z})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return H})),n.d(e,"isBuiltInObject",(function(){return W})),n.d(e,"isTypedArray",(function(){return G})),n.d(e,"isDom",(function(){return U})),n.d(e,"isGradientObject",(function(){return Y})),n.d(e,"isImagePatternObject",(function(){return q})),n.d(e,"isRegExp",(function(){return X})),n.d(e,"eqNaN",(function(){return Z})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return $})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return ut})),n.d(e,"createHashMap",(function(){return ct})),n.d(e,"concatArray",(function(){return ht})),n.d(e,"createObject",(function(){return ft})),n.d(e,"disableUserSelect",(function(){return pt})),n.d(e,"hasOwn",(function(){return dt})),n.d(e,"noop",(function(){return gt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return vt}));var r=n("726e"),i=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,p=f?f.prototype:null,d="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e=0)u=l*n.length;else for(var f=0;f */ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,p=t[e+h];for(h+=f,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=d,a/=256,u-=8);t[n+p-d]|=128*g}},"9d0a":function(t,e,n){"use strict";var r="Servicer-Storage";e["a"]={get:function(t){var e=window.localStorage.getItem(r+"_"+t);return e?window.JSON.parse(e):""},set:function(t,e){window.localStorage.setItem(r+"_"+t,window.JSON.stringify(e))},del:function(t,e){window.localStorage.removeItem(r+"_"+t)}}},"9d9b":function(t,e,n){"use strict";n("daa2")},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),u=n("3511"),c=n("65f0"),h=n("8418"),f=n("083a"),p=n("1dde"),d=p("splice"),g=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(t,e){var n,r,p,d,y,m,_=i(this),b=s(_),x=o(t,b),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=b-x):(n=w-2,r=v(g(a(e),0),b-x)),u(b+n-r),p=c(_,r),d=0;db-r+n;d--)f(_,d-1)}else if(n>r)for(d=b-r;d>x;d--)y=d+r-1,m=d+n-1,y in _?_[m]=_[y]:f(_,m);for(d=0;d * @license MIT */ var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),u.alloc(+t)}function b(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return j(this,e,n);case"ascii":return R(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,t,e,n);case"utf8":case"utf-8":return T(this,t,e,n);case"ascii":return C(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(t){var e=t.length;if(e<=P)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function H(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function W(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(t,e,n,r,o){return o||W(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||W(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):H(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):H(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):H(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return G(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return G(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray(q(t))}function tt(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},daa2:function(t,e,n){},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e5ad:function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"create",(function(){return T})),n.d(r,"copy",(function(){return C})),n.d(r,"clone",(function(){return k})),n.d(r,"set",(function(){return I})),n.d(r,"add",(function(){return D})),n.d(r,"scaleAndAdd",(function(){return A})),n.d(r,"sub",(function(){return j})),n.d(r,"len",(function(){return P})),n.d(r,"length",(function(){return L})),n.d(r,"lenSquare",(function(){return R})),n.d(r,"lengthSquare",(function(){return E})),n.d(r,"mul",(function(){return N})),n.d(r,"div",(function(){return B})),n.d(r,"dot",(function(){return F})),n.d(r,"scale",(function(){return z})),n.d(r,"normalize",(function(){return V})),n.d(r,"distance",(function(){return H})),n.d(r,"dist",(function(){return W})),n.d(r,"distanceSquare",(function(){return G})),n.d(r,"distSquare",(function(){return U})),n.d(r,"negate",(function(){return Y})),n.d(r,"lerp",(function(){return q})),n.d(r,"applyTransform",(function(){return X})),n.d(r,"min",(function(){return Z})),n.d(r,"max",(function(){return K}));var i={};n.r(i),n.d(i,"create",(function(){return Dt})),n.d(i,"identity",(function(){return At})),n.d(i,"copy",(function(){return jt})),n.d(i,"mul",(function(){return Pt})),n.d(i,"translate",(function(){return Lt})),n.d(i,"rotate",(function(){return Rt})),n.d(i,"scale",(function(){return Et})),n.d(i,"invert",(function(){return Nt})),n.d(i,"clone",(function(){return Bt}));var o={};n.r(o),n.d(o,"init",(function(){return Qr})),n.d(o,"dispose",(function(){return Jr})),n.d(o,"disposeAll",(function(){return ti})),n.d(o,"getInstance",(function(){return ei})),n.d(o,"registerPainter",(function(){return ni})),n.d(o,"getElementSSRData",(function(){return ri})),n.d(o,"registerSSRDataGetter",(function(){return ii})),n.d(o,"version",(function(){return oi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return cu})),n.d(a,"initProps",(function(){return hu})),n.d(a,"removeElement",(function(){return pu})),n.d(a,"removeElementWithFadeOut",(function(){return gu})),n.d(a,"isElementRemoved",(function(){return fu})),n.d(a,"extendShape",(function(){return gv})),n.d(a,"extendPath",(function(){return yv})),n.d(a,"registerShape",(function(){return mv})),n.d(a,"getShapeClass",(function(){return _v})),n.d(a,"makePath",(function(){return bv})),n.d(a,"makeImage",(function(){return xv})),n.d(a,"mergePath",(function(){return Sv})),n.d(a,"resizePath",(function(){return Ov})),n.d(a,"subPixelOptimizeLine",(function(){return Mv})),n.d(a,"subPixelOptimizeRect",(function(){return Tv})),n.d(a,"subPixelOptimize",(function(){return Cv})),n.d(a,"getTransform",(function(){return kv})),n.d(a,"applyTransform",(function(){return Iv})),n.d(a,"transformDirection",(function(){return Dv})),n.d(a,"groupTransition",(function(){return Pv})),n.d(a,"clipPointsByRect",(function(){return Lv})),n.d(a,"clipRectByRect",(function(){return Rv})),n.d(a,"createIcon",(function(){return Ev})),n.d(a,"linePolygonIntersect",(function(){return Nv})),n.d(a,"lineLineIntersect",(function(){return Bv})),n.d(a,"setTooltipConfig",(function(){return Vv})),n.d(a,"traverseElements",(function(){return Wv})),n.d(a,"Group",(function(){return Ur})),n.d(a,"Image",(function(){return xs})),n.d(a,"Text",(function(){return Xs})),n.d(a,"Circle",(function(){return ig})),n.d(a,"Ellipse",(function(){return sg})),n.d(a,"Sector",(function(){return Mg})),n.d(a,"Ring",(function(){return kg})),n.d(a,"Polygon",(function(){return Pg})),n.d(a,"Polyline",(function(){return Eg})),n.d(a,"Rect",(function(){return Ds})),n.d(a,"Line",(function(){return zg})),n.d(a,"BezierCurve",(function(){return Ug})),n.d(a,"Arc",(function(){return Xg})),n.d(a,"IncrementalDisplayable",(function(){return hv})),n.d(a,"CompoundPath",(function(){return Kg})),n.d(a,"LinearGradient",(function(){return tv})),n.d(a,"RadialGradient",(function(){return nv})),n.d(a,"BoundingRect",(function(){return Kt})),n.d(a,"OrientedBoundingRect",(function(){return lv})),n.d(a,"Point",(function(){return zt})),n.d(a,"Path",(function(){return ps}));var s={};n.r(s),n.d(s,"createList",(function(){return lS})),n.d(s,"getLayoutRect",(function(){return rh})),n.d(s,"createDimensions",(function(){return Ax})),n.d(s,"dataStack",(function(){return uS})),n.d(s,"createSymbol",(function(){return cm})),n.d(s,"createScale",(function(){return cS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return hS})),n.d(s,"getECData",(function(){return Zs})),n.d(s,"enableHoverEmphasis",(function(){return Xl})),n.d(s,"createTextStyle",(function(){return fS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return ui})),n.d(l,"round",(function(){return hi})),n.d(l,"asc",(function(){return fi})),n.d(l,"getPrecision",(function(){return pi})),n.d(l,"getPrecisionSafe",(function(){return di})),n.d(l,"getPixelPrecision",(function(){return gi})),n.d(l,"getPercentWithPrecision",(function(){return vi})),n.d(l,"MAX_SAFE_INTEGER",(function(){return _i})),n.d(l,"remRadian",(function(){return bi})),n.d(l,"isRadianAroundZero",(function(){return xi})),n.d(l,"parseDate",(function(){return Si})),n.d(l,"quantity",(function(){return Oi})),n.d(l,"quantityExponent",(function(){return Mi})),n.d(l,"nice",(function(){return Ti})),n.d(l,"quantile",(function(){return Ci})),n.d(l,"reformIntervals",(function(){return ki})),n.d(l,"isNumeric",(function(){return Di})),n.d(l,"numericToNumber",(function(){return Ii}));var u={};n.r(u),n.d(u,"parse",(function(){return Si})),n.d(u,"format",(function(){return Sc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return gv})),n.d(c,"extendPath",(function(){return yv})),n.d(c,"makePath",(function(){return bv})),n.d(c,"makeImage",(function(){return xv})),n.d(c,"mergePath",(function(){return Sv})),n.d(c,"resizePath",(function(){return Ov})),n.d(c,"createIcon",(function(){return Ev})),n.d(c,"updateProps",(function(){return cu})),n.d(c,"initProps",(function(){return hu})),n.d(c,"getTransform",(function(){return kv})),n.d(c,"clipPointsByRect",(function(){return Lv})),n.d(c,"clipRectByRect",(function(){return Rv})),n.d(c,"registerShape",(function(){return mv})),n.d(c,"getShapeClass",(function(){return _v})),n.d(c,"Group",(function(){return Ur})),n.d(c,"Image",(function(){return xs})),n.d(c,"Text",(function(){return Xs})),n.d(c,"Circle",(function(){return ig})),n.d(c,"Ellipse",(function(){return sg})),n.d(c,"Sector",(function(){return Mg})),n.d(c,"Ring",(function(){return kg})),n.d(c,"Polygon",(function(){return Pg})),n.d(c,"Polyline",(function(){return Eg})),n.d(c,"Rect",(function(){return Ds})),n.d(c,"Line",(function(){return zg})),n.d(c,"BezierCurve",(function(){return Ug})),n.d(c,"Arc",(function(){return Xg})),n.d(c,"IncrementalDisplayable",(function(){return hv})),n.d(c,"CompoundPath",(function(){return Kg})),n.d(c,"LinearGradient",(function(){return tv})),n.d(c,"RadialGradient",(function(){return nv})),n.d(c,"BoundingRect",(function(){return Kt}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Vc})),n.d(h,"toCamelCase",(function(){return Hc})),n.d(h,"normalizeCssArray",(function(){return Wc})),n.d(h,"encodeHTML",(function(){return dt})),n.d(h,"formatTpl",(function(){return qc})),n.d(h,"getTooltipMarker",(function(){return Xc})),n.d(h,"formatTime",(function(){return Zc})),n.d(h,"capitalFirst",(function(){return Kc})),n.d(h,"truncateText",(function(){return Bo})),n.d(h,"getTextRect",(function(){return kS}));var f={};n.r(f),n.d(f,"map",(function(){return M["map"]})),n.d(f,"each",(function(){return M["each"]})),n.d(f,"indexOf",(function(){return M["indexOf"]})),n.d(f,"inherits",(function(){return M["inherits"]})),n.d(f,"reduce",(function(){return M["reduce"]})),n.d(f,"filter",(function(){return M["filter"]})),n.d(f,"bind",(function(){return M["bind"]})),n.d(f,"curry",(function(){return M["curry"]})),n.d(f,"isArray",(function(){return M["isArray"]})),n.d(f,"isString",(function(){return M["isString"]})),n.d(f,"isObject",(function(){return M["isObject"]})),n.d(f,"isFunction",(function(){return M["isFunction"]})),n.d(f,"extend",(function(){return M["extend"]})),n.d(f,"defaults",(function(){return M["defaults"]})),n.d(f,"clone",(function(){return M["clone"]})),n.d(f,"merge",(function(){return M["merge"]}));var p={};n.r(p),n.d(p,"version",(function(){return c_})),n.d(p,"dependencies",(function(){return h_})),n.d(p,"PRIORITY",(function(){return k_})),n.d(p,"init",(function(){return wb})),n.d(p,"connect",(function(){return Sb})),n.d(p,"disconnect",(function(){return Ob})),n.d(p,"disConnect",(function(){return Mb})),n.d(p,"dispose",(function(){return Tb})),n.d(p,"getInstanceByDom",(function(){return Cb})),n.d(p,"getInstanceById",(function(){return kb})),n.d(p,"registerTheme",(function(){return Ib})),n.d(p,"registerPreprocessor",(function(){return Db})),n.d(p,"registerProcessor",(function(){return Ab})),n.d(p,"registerPostInit",(function(){return jb})),n.d(p,"registerPostUpdate",(function(){return Pb})),n.d(p,"registerUpdateLifecycle",(function(){return Lb})),n.d(p,"registerAction",(function(){return Rb})),n.d(p,"registerCoordinateSystem",(function(){return Eb})),n.d(p,"getCoordinateSystemDimensions",(function(){return Nb})),n.d(p,"registerLocale",(function(){return oc})),n.d(p,"registerLayout",(function(){return Bb})),n.d(p,"registerVisual",(function(){return Fb})),n.d(p,"registerLoading",(function(){return Hb})),n.d(p,"setCanvasCreator",(function(){return Wb})),n.d(p,"registerMap",(function(){return Gb})),n.d(p,"getMap",(function(){return Ub})),n.d(p,"registerTransform",(function(){return Yb})),n.d(p,"dataTool",(function(){return qb})),n.d(p,"zrender",(function(){return o})),n.d(p,"matrix",(function(){return i})),n.d(p,"vector",(function(){return r})),n.d(p,"zrUtil",(function(){return M})),n.d(p,"color",(function(){return sn})),n.d(p,"throttle",(function(){return ny})),n.d(p,"helper",(function(){return s})),n.d(p,"use",(function(){return Kb})),n.d(p,"setPlatformAPI",(function(){return br["d"]})),n.d(p,"parseGeoJSON",(function(){return CS})),n.d(p,"parseGeoJson",(function(){return CS})),n.d(p,"number",(function(){return l})),n.d(p,"time",(function(){return u})),n.d(p,"graphic",(function(){return c})),n.d(p,"format",(function(){return h})),n.d(p,"util",(function(){return f})),n.d(p,"env",(function(){return O["a"]})),n.d(p,"List",(function(){return Dx})),n.d(p,"Model",(function(){return Uu})),n.d(p,"Axis",(function(){return ZS})),n.d(p,"ComponentModel",(function(){return hh})),n.d(p,"ComponentView",(function(){return jd})),n.d(p,"SeriesModel",(function(){return Dd})),n.d(p,"ChartView",(function(){return Qv})),n.d(p,"innerDrawElementOnCanvas",(function(){return Ym})),n.d(p,"extendComponentModel",(function(){return KS})),n.d(p,"extendComponentView",(function(){return $S})),n.d(p,"extendSeriesModel",(function(){return QS})),n.d(p,"extendChartView",(function(){return JS}));var d=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-container-top"},[e("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无订单"}}),e("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"immediate-check":!1,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadOrderList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.orderList,(function(n,r){return e("div",{key:r,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow rounded relative -top-16"},[e("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2"},[e("span",[e("span",{staticClass:"font-bold"},[t._v("工单编号:")]),t._v(t._s(n.order_no))]),e("span",{class:"text-"+n.state_color+" rounded-sm",staticStyle:{width:"3.8rem",height:"100%","text-align":"center",border:"1px solid","border-radius":"5%"}},[t._v(t._s(n.state_name))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("时间:")]),t._v(t._s(n.created_at))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("申请人:")]),t._v(t._s(n.link_name))]),e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("联系电话:")]),e("span",{staticClass:"flex items-center"},[e("span",{staticClass:"pr-2"},[t._v(t._s(n.link_phone))]),e("a",{staticClass:"flex",attrs:{href:"tel:"+n.link_phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)])]),e("div",{staticClass:"pb-1 text-red-600"},[e("span",{staticClass:"font-bold"},[t._v("是否保修:")]),e("span",[t._v(t._s(n.warranty_period))])]),n.leader?e("div",{staticClass:"pb-1 flex items-center text-green-600"},[e("span",{staticClass:"font-bold"},[t._v("工程队长:")]),e("span",{staticClass:"flex items-center"},[e("span",[t._v(t._s(n.leader_info.username))]),n.leader_info.phone?e("span",{staticClass:"flex items-center"},[t._v("("+t._s(n.leader_info.phone)+")"),e("a",{staticClass:"flex items-center",attrs:{href:"tel:"+n.leader_info.phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),n.recent_visit_time?e("div",{staticClass:"pb-1 text-yellow-600"},[e("span",{staticClass:"font-semibold"},[t._v("预计回访:")]),t._v(t._s(n.recent_visit_time))]):t._e(),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报修地址:")]),t._v(t._s(n.address))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障类型:")]),t._v(t._s(n.type))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障描述:")]),t._v(t._s(n.content))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("故障图片:")])]),e("div",{staticClass:"pb-1"}),e("div",{staticClass:"text-right"},[n.auth.check?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingCheck,type:"primary",size:"small"},on:{click:function(e){return t.handleCheck(n.id)}}},[t._v("审核通过")]):t._e(),n.auth.allot?e("van-button",{staticClass:"ml-2",attrs:{type:"info",size:"small",to:"/orders/"+n.id+"/allot"}},[t._v("分配工单")]):t._e(),n.auth.re_allot?e("van-button",{staticClass:"ml-2",attrs:{type:"info",size:"small",to:"/orders/"+n.id+"/allot"}},[t._v("重新分配")]):t._e(),n.auth.delete?e("van-button",{staticClass:"ml-2",attrs:{loading:t.loadingDelete,type:"danger",size:"small"},on:{click:function(e){return t.handleDelete(n.id)}}},[t._v("删除工单")]):t._e(),n.auth.complete?e("van-button",{staticClass:"ml-2",attrs:{type:"danger",size:"small"},on:{click:function(e){return t.handleComplete(n.id)}}},[t._v("完结工单")]):t._e()],1)])})),0),e("ScrollTop"),e("van-popup",{attrs:{closeable:"",round:"",position:"bottom"},model:{value:t.checkShow,callback:function(e){t.checkShow=e},expression:"checkShow"}},[e("div",{staticClass:"mt-2 text-center leading-10 text-lg"},[t._v("审核通过")]),e("van-field",{attrs:{label:"业主维修时间",placeholder:"请输入业主维修时间"},model:{value:t.checkFrom.remark,callback:function(e){t.$set(t.checkFrom,"remark",e)},expression:"checkFrom.remark"}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:function(e){return t.checkCheck(t.checkFrom.id)}}},[t._v("提交")])],1)],1)},g=[],v=(n("4662"),n("28a2")),y=(n("c975"),n("14d9"),n("a434"),n("e25e"),n("4c10")),m=n("ad7b"),_=n("9d0a"),b=n("ec1b"),x=n.n(b),w=function(t,e){return w=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])},w(t,e)};function S(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}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var O=n("22d1"),M=n("6d8b");function T(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function C(t,e){return t[0]=e[0],t[1]=e[1],t}function k(t){return[t[0],t[1]]}function I(t,e,n){return t[0]=e,t[1]=n,t}function D(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function A(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function j(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function P(t){return Math.sqrt(R(t))}var L=P;function R(t){return t[0]*t[0]+t[1]*t[1]}var E=R;function N(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function B(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function F(t,e){return t[0]*e[0]+t[1]*e[1]}function z(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function V(t,e){var n=P(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function H(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var W=H;function G(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var U=G;function Y(t,e){return t[0]=-e[0],t[1]=-e[1],t}function q(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function X(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 Z(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function K(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var $=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),Q=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new $(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new $(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new $(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new $(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new $(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),J=Q,tt=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function ct(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,p=c.top;a.push(f,p),l=l&&o&&f===o[h]&&p===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?it(s,a):it(a,s))}function ht(t){return"CANVAS"===t.nodeName.toUpperCase()}var ft=/([&<>"'])/g,pt={"&":"&","<":"<",">":">",'"':""","'":"'"};function dt(t){return null==t?"":(t+"").replace(ft,(function(t,e){return pt[e]}))}var gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vt=[],yt=O["a"].browser.firefox&&+O["a"].browser.version.split(".")[0]<39;function mt(t,e,n,r){return n=n||{},r?_t(t,e,n):yt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):_t(t,e,n),n}function _t(t,e,n){if(O["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(ht(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(lt(vt,t,r,i))return n.zrX=vt[0],void(n.zrY=vt[1])}n.zrX=n.zrY=0}function bt(t){return t||window.event}function xt(t,e,n){if(e=bt(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&mt(t,o,e,n)}else{mt(t,e,e,n);var a=wt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&>.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function wt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function St(t,e,n,r){t.addEventListener(e,n,r)}function Ot(t,e,n,r){t.removeEventListener(e,n,r)}var Mt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Tt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o1&&r&&r.length>1){var o=Ct(r)/Ct(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=kt(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function Dt(){return[1,0,0,1,0,0]}function At(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function jt(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}function Pt(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function Lt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Rt(t,e,n,r){void 0===r&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),h=Math.cos(n);return t[0]=i*h+s*c,t[1]=-i*c+s*h,t[2]=o*h+l*c,t[3]=-o*c+h*l,t[4]=h*(a-r[0])+c*(u-r[1])+r[0],t[5]=h*(u-r[1])-c*(a-r[0])+r[1],t}function Et(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Nt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function Bt(t){var e=Dt();return jt(e,t),e}var Ft=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),zt=Ft,Vt=Math.min,Ht=Math.max,Wt=new zt,Gt=new zt,Ut=new zt,Yt=new zt,qt=new zt,Xt=new zt,Zt=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=Vt(t.x,this.x),n=Vt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ht(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ht(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=Dt();return Lt(i,i,[-e.x,-e.y]),Et(i,i,[n,r]),Lt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(od&&(d=_,gd&&(d=b,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Wt.x=Ut.x=n.x,Wt.y=Yt.y=n.y,Gt.x=Yt.x=n.x+n.width,Gt.y=Ut.y=n.y+n.height,Wt.transform(r),Yt.transform(r),Gt.transform(r),Ut.transform(r),e.x=Vt(Wt.x,Gt.x,Ut.x,Yt.x),e.y=Vt(Wt.y,Gt.y,Ut.y,Yt.y);var l=Ht(Wt.x,Gt.x,Ut.x,Yt.x),u=Ht(Wt.y,Gt.y,Ut.y,Yt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Kt=Zt,$t="silent";function Qt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Jt}}function Jt(){Mt(this.event)}var te=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return S(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(et),ee=function(){function t(t,e){this.x=t,this.y=e}return t}(),ne=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],re=new Kt(0,0,0,0),ie=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new ee(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new te,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new J(a),a}return S(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M["each"](ne,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=se(this,e,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new ee(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ee(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Qt(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new ee(t,e);if(ae(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Kt(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(re.copy(c.getBoundingRect()),c.transform&&re.applyTransform(c.transform),re.intersect(l)&&o.push(c))}if(o.length)for(var h=4,f=Math.PI/12,p=2*Math.PI,d=0;d=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=oe(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==$t)){e.target=a;break}}}function se(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}M["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){ie.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=se(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||W(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var le=ie,ue=32,ce=7;function he(t){var e=0;while(t>=ue)e|=1&t,t>>=1;return t+e}function fe(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i=0)i++;return i-e}function pe(t,e,n){n--;while(e>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function ge(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function ve(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ye(t,e){var n,r,i=ce,o=0,a=[];function s(t,e){n[o]=t,r[o]=e,o+=1}function l(){while(o>1){var t=o-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]r[t+1])break;c(t)}}function u(){while(o>1){var t=o-2;t>0&&r[t-1]=ce||p>=ce);if(d)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l=0;l--)t[p+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=a[c--],1===--s){y=!0;break}if(v=s-ge(t[u],a,0,s,s-1,e),0!==v){for(h-=v,c-=v,s-=v,p=h+1,f=c+1,l=0;l=ce||v>=ce);if(y)break;d<0&&(d=0),d+=2}if(i=d,i<1&&(i=1),1===s){for(h-=r,u-=r,p=h+1,f=u+1,l=r-1;l>=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else{if(0===s)throw new Error;for(f=h-(s-1),l=0;l=0;l--)t[p+l]=t[f+l];t[h]=a[c]}else for(f=h-(s-1),l=0;ls&&(l=s),de(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var _e=1,be=2,xe=4,we=!1;function Se(){we||(we=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Oe(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Me,Te=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Oe}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Se(),u.z=0),isNaN(u.z2)&&(Se(),u.z2=0),isNaN(u.zlevel)&&(Se(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ce=Te;Me=O["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var ke=Me,Ie={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ie.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ie.bounceIn(2*t):.5*Ie.bounceOut(2*t-1)+.5}},De=Ie,Ae=Math.pow,je=Math.sqrt,Pe=1e-8,Le=1e-4,Re=je(3),Ee=1/3,Ne=T(),Be=T(),Fe=T();function ze(t){return t>-Pe&&tPe||t<-Pe}function He(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function We(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Ge(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,p=0;if(ze(c)&&ze(h))if(ze(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[p++]=d)}else{var g=h*h-4*c*f;if(ze(g)){var v=h/c,y=(d=-s/a+v,-v/2);d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var m=je(g),_=c*s+1.5*a*(-h+m),b=c*s+1.5*a*(-h-m);_=_<0?-Ae(-_,Ee):Ae(_,Ee),b=b<0?-Ae(-b,Ee):Ae(b,Ee);d=(-s-(_+b))/(3*a);d>=0&&d<=1&&(o[p++]=d)}else{var x=(2*c*s-3*a*h)/(2*je(c*c*c)),w=Math.acos(x)/3,S=je(c),O=Math.cos(w),M=(d=(-s-2*S*O)/(3*a),y=(-s+S*(O+Re*Math.sin(w)))/(3*a),(-s+S*(O-Re*Math.sin(w)))/(3*a));d>=0&&d<=1&&(o[p++]=d),y>=0&&y<=1&&(o[p++]=y),M>=0&&M<=1&&(o[p++]=M)}}return p}function Ue(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(ze(a)){if(Ve(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ze(c))i[0]=-o/(2*a);else if(c>0){var h=je(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Ye(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function qe(t,e,n,r,i,o,a,s,l,u,c){var h,f,p,d,g,v=.005,y=1/0;Ne[0]=l,Ne[1]=u;for(var m=0;m<1;m+=.05)Be[0]=He(t,n,i,a,m),Be[1]=He(e,r,o,s,m),d=U(Ne,Be),d=0&&d=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ze(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=je(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Qe(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function Je(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function tn(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Ne[0]=a,Ne[1]=s;for(var f=0;f<1;f+=.05){Be[0]=Ze(t,n,i,f),Be[1]=Ze(e,r,o,f);var p=U(Ne,Be);p=0&&p=1?1:Ge(0,r,o,1,t,s)&&He(0,i,a,1,s[0])}}}var on=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||M["noop"],this.ondestroy=t.ondestroy||M["noop"],this.onrestart=t.onrestart||M["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(M["isFunction"])(t)?t:De[t]||rn(t)},t}(),an=on,sn=n("41ef"),ln=n("7a29"),un=Array.prototype.slice;function cn(t,e,n){return(e-t)*n+t}function hn(t,e,n,r){for(var i=e.length,o=0;or?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=Tn,s=e;if(Object(M["isArrayLike"])(e)){var l=_n(e);a=l,(1===l&&!Object(M["isNumber"])(e[0])||2===l&&!Object(M["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(M["isNumber"])(e)&&!Object(M["eqNaN"])(e))a=bn;else if(Object(M["isString"])(e))if(isNaN(+e)){var u=sn["parse"](e);u&&(s=u,a=Sn)}else a=bn;else if(Object(M["isGradientObject"])(e)){var c=Object(M["extend"])({},s);c.colorStops=Object(M["map"])(e.colorStops,(function(t){return{offset:t.offset,color:sn["parse"](t.color)}})),Object(ln["a"])(e)?a=On:Object(ln["b"])(e)&&(a=Mn),s=c}0===i?this.valType=a:a===this.valType&&a!==Tn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(M["isFunction"])(n)?n:De[n]||rn(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=kn(r),l=Cn(r),u=0;u=0;n--)if(l[n].percent<=e)break;n=p(n,u-2)}else{for(n=f;ne)break;n=p(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,v=0===g?1:p((e-r.percent)/g,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:h?In:t[c];if(!kn(s)&&!h||y||(y=this._additiveValue=[]),this.discrete)t[c]=v<1?r.rawValue:i.rawValue;else if(kn(s))s===xn?hn(y,r[a],i[a],v):fn(y,r[a],i[a],v);else if(Cn(s)){var m=r[a],_=i[a],b=s===On;t[c]={type:b?"linear":"radial",x:cn(m.x,_.x,v),y:cn(m.y,_.y,v),colorStops:Object(M["map"])(m.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:cn(t.offset,n.offset,v),color:mn(hn([],t.color,n.color,v))}})),global:_.global},b?(t[c].x2=cn(m.x2,_.x2,v),t[c].y2=cn(m.y2,_.y2,v)):t[c].r=cn(m.r,_.r,v)}else if(h)hn(y,r[a],i[a],v),o||(t[c]=mn(y));else{var x=cn(r[a],i[a],v);o?this._additiveValue=x:t[c]=x}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===bn?t[n]=t[n]+r:e===Sn?(sn["parse"](t[n],In),pn(In,In,r,1),t[n]=mn(In)):e===xn?pn(t[n],t[n],r,1):e===wn&&dn(t[n],t[n],r,1)},t}(),An=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(M["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(M["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,yn(l),r),this._trackKeys.push(a)}s.addKeyframe(t,yn(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),jn=An;function Pn(){return(new Date).getTime()}var Ln=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return S(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Pn()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(ke(e),!t._paused&&t.update())}this._running=!0,ke(e)},e.prototype.start=function(){this._running||(this._time=Pn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Pn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Pn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new jn(t,e.loop);return this.addAnimator(n),n},e}(et),Rn=Ln,En=300,Nn=O["a"].domSupported,Bn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=M["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),Fn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},zn=!1;function Vn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Hn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Wn(t){t&&(t.zrByTouch=!0)}function Gn(t,e){return xt(t.dom,new Yn(t,e),!0)}function Un(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Yn=function(){function t(t,e){this.stopPropagation=M["noop"],this.stopImmediatePropagation=M["noop"],this.preventDefault=M["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),qn={mousedown:function(t){t=xt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=xt(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=xt(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=xt(this.dom,t);var e=t.toElement||t.relatedTarget;Un(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){zn=!0,t=xt(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){zn||(t=xt(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=xt(this.dom,t),Wn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),qn.mousemove.call(this,t),qn.mousedown.call(this,t)},touchmove:function(t){t=xt(this.dom,t),Wn(t),this.handler.processGesture(t,"change"),qn.mousemove.call(this,t)},touchend:function(t){t=xt(this.dom,t),Wn(t),this.handler.processGesture(t,"end"),qn.mouseup.call(this,t),+new Date-+this.__lastTouchMomentur||t<-ur}var hr=[],fr=[],pr=Dt(),dr=Math.abs,gr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return cr(this.rotation)||cr(this.x)||cr(this.y)||cr(this.scaleX-1)||cr(this.scaleY-1)||cr(this.skewX)||cr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Dt(),e?this.getLocalTransform(n):lr(n),t&&(e?Pt(n,t,n):jt(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(lr(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(hr);var n=hr[0]<0?-1:1,r=hr[1]<0?-1:1,i=((hr[0]-n)*e+n)/hr[0]||0,o=((hr[1]-r)*e+r)/hr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Dt(),Nt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Dt(),Pt(fr,t.invTransform,e),e=fr);var n=this.originX,r=this.originY;(n||r)&&(pr[4]=n,pr[5]=r,Pt(fr,e,pr),fr[4]-=n,fr[5]-=r,e=fr),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&X(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&X(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&dr(t[0]-1)>1e-10&&dr(t[3]-1)>1e-10?Math.sqrt(dr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){yr(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var p=n+a,d=r+s;e[4]=-p*i-h*d*o,e[5]=-d*o-f*p*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&Rt(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),vr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yr(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function Ir(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=kr(r[0],n.width),u+=kr(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var Dr="__zr_normal__",Ar=vr.concat(["ignore"]),jr=Object(M["reduce"])(vr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Pr={},Lr=new Kt(0,0,0,0),Rr=function(){function t(t){this.id=Object(M["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=Lr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pr,n,u):Ir(Pr,n,u),i.x=Pr.x,i.y=Pr.y,o=Pr.align,a=Pr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=kr(c[0],u.width),f=kr(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],l||(i.originX=-p[0],i.originY=-p[1]));var d=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;d&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=_e,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ar:or},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(sn["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(sn["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(M["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(M["isObject"])(t))for(var n=t,r=Object(M["keys"])(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(Dr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===Dr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(M["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_e),l}Object(M["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_e)}else this.clearStates()},t.prototype.isSilent=function(){var t=this.silent,e=this.parent;while(!t&&e){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(M["indexOf"])(r,t),o=Object(M["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f0||i.force&&!a.length){var O=void 0,T=void 0,C=void 0;if(s){T={},f&&(O={});for(b=0;b<_;b++){y=g[b];T[y]=n[y],f?O[y]=r[y]:n[y]=r[y]}}else if(f){C={};for(b=0;b<_;b++){y=g[b];C[y]=yn(n[y]),Fr(n,r,y)}}x=new jn(n,!1,!1,h?Object(M["filter"])(d,(function(t){return t.targetName===e})):null);x.targetName=e,i.scope&&(x.scope=i.scope),f&&O&&x.whenWithKeys(0,O,g),C&&x.whenWithKeys(0,C,g),x.whenWithKeys(null==u?500:u,s?T:r,g).delay(c||0),t.addAnimator(x,e),a.push(x)}}Object(M["mixin"])(Rr,et),Object(M["mixin"])(Rr,mr);var Wr=Rr,Gr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return S(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=M["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=M["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function ci(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return M["isString"](t)?li(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function hi(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),si),t=(+t).toFixed(e),n?t:+t}function fi(t){return t.sort((function(t,e){return t-e})),t}function pi(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return di(t)}function di(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function gi(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function vi(t,e,n){if(!t[e])return 0;var r=yi(t,n);return r[e]||0}function yi(t,e){var n=M["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=M["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=M["map"](i,(function(t){return Math.floor(t)})),s=M["reduce"](a,(function(t,e){return t+e}),0),l=M["map"](i,(function(t,e){return t-a[e]}));while(su&&(u=l[h],c=h);++a[c],l[c]=0,++s}return M["map"](a,(function(t){return t/r}))}function mi(t,e){var n=Math.max(pi(t),pi(e)),r=t+e;return n>si?r:hi(r,n)}var _i=9007199254740991;function bi(t){var e=2*Math.PI;return(t%e+e)%e}function xi(t){return t>-ai&&t=10&&e++,e}function Ti(t,e){var n,r=Mi(t),i=Math.pow(10,r),o=t/i;return n=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function Ci(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function ki(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r=0||i&&M["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Io=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Do=ko(Io),Ao=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Do(this,t,e)},t}(),jo=new _r["a"](50);function Po(t){if("string"===typeof t){var e=jo.get(t);return e&&e.image}return t}function Lo(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=jo.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!Eo(e)&&o.pending.push(a)):(e=br["c"].loadImage(t,Ro,Ro),e.__zrImageSrc=t,jo.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ro(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=wr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function zo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=wr(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Vo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=wr(t,r)}return""===t&&(t=e.placeholder),t}function Vo(t,e,n,r){for(var i=0,o=0,a=t.length;op&&c){var d=Math.floor(p/l);n=n.slice(0,d)}if(t&&a&&null!=h)for(var g=Fo(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;vl&&qo(n,t.substring(l,u),e,s),qo(n,r[2],e,s,r[1]),l=No.lastIndex}lo){x>0?(m.tokens=m.tokens.slice(0,x),v(m,b,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var I=S.width,D=null==I||"auto"===I;if("string"===typeof I&&"%"===I.charAt(I.length-1))w.percentWidth=I,c.push(w),w.contentWidth=wr(w.text,C);else{if(D){var A=S.backgroundColor,j=A&&A.image;j&&(j=Po(j),Eo(j)&&(w.width=Math.max(w.width,j.width*k/j.height)))}var P=d&&null!=i?i-b:null;null!=P&&P0&&d+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=d}else{var g=$o(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Zo=Object(M["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Ko(t){return!Xo(t)||!!Zo[t]}function $o(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:i+c+p>n)?c?(s||l)&&(d?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=p)):d?(o.push(l),a.push(u),l=f,u=p):(o.push(f),a.push(p)):(c+=p,d?(l+=f,u+=p):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Qo="__zr_style_"+Math.round(10*Math.random()),Jo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Jo[Qo]=!0;var ea=["z","z2","invisible"],na=["invisible"],ra=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype._init=function(e){for(var n=Object(M["keys"])(e),r=0;r1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(pa[0]=ha(i)*n+t,pa[1]=ca(i)*r+e,da[0]=ha(o)*n+t,da[1]=ca(o)*r+e,u(s,pa,da),c(l,pa,da),i%=fa,i<0&&(i+=fa),o%=fa,o<0&&(o+=fa),i>o&&!a?o+=fa:ii&&(ga[0]=ha(p)*n+t,ga[1]=ca(p)*r+e,u(s,ga,s),c(l,ga,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Sa=[],Oa=[],Ma=[],Ta=[],Ca=[],ka=[],Ia=Math.min,Da=Math.max,Aa=Math.cos,ja=Math.sin,Pa=Math.abs,La=Math.PI,Ra=2*La,Ea="undefined"!==typeof Float32Array,Na=[];function Ba(t){var e=Math.round(t/La*1e8)/1e8;return e%2*La}function Fa(t,e){var n=Ba(t[0]);n<0&&(n+=Ra);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ra?i=n+Ra:e&&n-i>=Ra?i=n-Ra:!e&&n>i?i=n+(Ra-Ba(n-i)):e&&n0&&(this._ux=Pa(n/rr/t)||0,this._uy=Pa(n/rr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(wa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Pa(t-this._xi),r=Pa(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(wa.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Na[0]=r,Na[1]=i,Fa(Na,o),r=Na[0],i=Na[1];var a=i-r;return this.addData(wa.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Aa(i)*n+t,this._yi=ja(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(wa.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ea||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ma[0]=Ma[1]=Ca[0]=Ca[1]=Number.MAX_VALUE,Ta[0]=Ta[1]=ka[0]=ka[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;tn||Pa(m)>r||h===e-1)&&(d=Math.sqrt(y*y+m*m),i=g,o=v);break;case wa.C:var _=t[h++],b=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];d=Xe(i,o,_,b,g,v,x,w,10),i=x,o=w;break;case wa.Q:_=t[h++],b=t[h++],g=t[h++],v=t[h++];d=en(i,o,_,b,g,v,10),i=g,o=v;break;case wa.A:var S=t[h++],O=t[h++],M=t[h++],T=t[h++],C=t[h++],k=t[h++],I=k+C;h+=1,p&&(a=Aa(C)*M+S,s=ja(C)*T+O),d=Da(M,T)*Ia(Ra,Math.abs(k)),i=Aa(I)*M+S,o=ja(I)*T+O;break;case wa.R:a=i=t[h++],s=o=t[h++];var D=t[h++],A=t[h++];d=2*D+2*A;break;case wa.Z:y=a-i,m=s-o;d=Math.sqrt(y*y+m*m),i=a,o=s;break}d>=0&&(l[c++]=d,u+=d)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,p=this.data,d=this._ux,g=this._uy,v=this._len,y=e<1,m=0,_=0,b=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x0&&(t.lineTo(h,f),b=0),w){case wa.M:n=i=p[x++],r=o=p[x++],t.moveTo(i,o);break;case wa.L:a=p[x++],s=p[x++];var O=Pa(a-i),M=Pa(s-o);if(O>d||M>g){if(y){var T=l[_++];if(m+T>c){var C=(c-m)/T;t.lineTo(i*(1-C)+a*C,o*(1-C)+s*C);break t}m+=T}t.lineTo(a,s),i=a,o=s,b=0}else{var k=O*O+M*M;k>b&&(h=a,f=s,b=k)}break;case wa.C:var I=p[x++],D=p[x++],A=p[x++],j=p[x++],P=p[x++],L=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Ye(i,I,A,P,C,Sa),Ye(o,D,j,L,C,Oa),t.bezierCurveTo(Sa[1],Oa[1],Sa[2],Oa[2],Sa[3],Oa[3]);break t}m+=T}t.bezierCurveTo(I,D,A,j,P,L),i=P,o=L;break;case wa.Q:I=p[x++],D=p[x++],A=p[x++],j=p[x++];if(y){T=l[_++];if(m+T>c){C=(c-m)/T;Je(i,I,A,C,Sa),Je(o,D,j,C,Oa),t.quadraticCurveTo(Sa[1],Oa[1],Sa[2],Oa[2]);break t}m+=T}t.quadraticCurveTo(I,D,A,j),i=A,o=j;break;case wa.A:var R=p[x++],E=p[x++],N=p[x++],B=p[x++],F=p[x++],z=p[x++],V=p[x++],H=!p[x++],W=N>B?N:B,G=Pa(N-B)>.001,U=F+z,Y=!1;if(y){T=l[_++];m+T>c&&(U=F+z*(c-m)/T,Y=!0),m+=T}if(G&&t.ellipse?t.ellipse(R,E,N,B,V,F,U,H):t.arc(R,E,W,F,U,H),Y)break t;S&&(n=Aa(F)*N+R,r=ja(F)*B+E),i=Aa(U)*N+R,o=ja(U)*B+E;break;case wa.R:n=i=p[x],r=o=p[x+1],a=p[x++],s=p[x++];var q=p[x++],X=p[x++];if(y){T=l[_++];if(m+T>c){var Z=c-m;t.moveTo(a,s),t.lineTo(a+Ia(Z,q),s),Z-=q,Z>0&&t.lineTo(a+q,s+Ia(Z,X)),Z-=X,Z>0&&t.lineTo(a+Da(q-Z,0),s+X),Z-=q,Z>0&&t.lineTo(a,s+Da(X-Z,0));break t}m+=T}t.rect(a,s,q,X);break;case wa.Z:if(y){T=l[_++];if(m+T>c){C=(c-m)/T;t.lineTo(i*(1-C)+n*C,o*(1-C)+r*C);break t}m+=T}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=wa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Va=za;function Ha(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||at+s&&o>n+s||oe+h&&c>r+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>i+h&&u>a+h||ue+u&&l>r+u&&l>o+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=qa);var f=Math.atan2(l,s);return f<0&&(f+=qa),f>=r&&f<=i||f+qa>=r&&f+qa<=i}function Za(t,e,n,r,i,o){if(o>e&&o>r||oi?s:0}var Ka=Va.CMD,$a=2*Math.PI,Qa=1e-4;function Ja(t,e){return Math.abs(t-e)e&&u>r&&u>o&&u>s||u1&&ns(),p=He(e,r,o,s,es[0]),f>1&&(d=He(e,r,o,s,es[1]))),2===f?ve&&s>r&&s>o||s=0&&u<=1){for(var c=0,h=Ze(e,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ts[0]=-l,ts[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=$a-1e-4){r=0,i=$a;var c=o?1:-1;return a>=ts[0]+t&&a<=ts[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=$a,i+=$a);for(var f=0,p=0;p<2;p++){var d=ts[p];if(d+t>a){var g=Math.atan2(s,d);c=o?1:-1;g<0&&(g=$a+g),(g>=r&&g<=i||g+$a>=r&&g+$a<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function as(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,p=0,d=0;d1&&(n||(u+=Za(c,h,f,p,r,i))),v&&(c=s[d],h=s[d+1],f=c,p=h),g){case Ka.M:f=s[d++],p=s[d++],c=f,h=p;break;case Ka.L:if(n){if(Ha(c,h,s[d],s[d+1],e,r,i))return!0}else u+=Za(c,h,s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.C:if(n){if(Wa(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=rs(c,h,s[d++],s[d++],s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.Q:if(n){if(Ga(c,h,s[d++],s[d++],s[d],s[d+1],e,r,i))return!0}else u+=is(c,h,s[d++],s[d++],s[d],s[d+1],r,i)||0;c=s[d++],h=s[d++];break;case Ka.A:var y=s[d++],m=s[d++],_=s[d++],b=s[d++],x=s[d++],w=s[d++];d+=1;var S=!!(1-s[d++]);o=Math.cos(x)*_+y,a=Math.sin(x)*b+m,v?(f=o,p=a):u+=Za(c,h,o,a,r,i);var O=(r-y)*b/_+y;if(n){if(Xa(y,m,b,x,x+w,S,e,O,i))return!0}else u+=os(y,m,b,x,x+w,S,O,i);c=Math.cos(x+w)*_+y,h=Math.sin(x+w)*b+m;break;case Ka.R:f=c=s[d++],p=h=s[d++];var M=s[d++],T=s[d++];if(o=f+M,a=p+T,n){if(Ha(f,p,o,p,e,r,i)||Ha(o,p,o,a,e,r,i)||Ha(o,a,f,a,e,r,i)||Ha(f,a,f,p,e,r,i))return!0}else u+=Za(o,p,o,a,r,i),u+=Za(f,a,f,p,r,i);break;case Ka.Z:if(n){if(Ha(c,h,f,p,e,r,i))return!0}else u+=Za(c,h,f,p,r,i);c=f,h=p;break}}return n||Ja(h,p)||(u+=Za(c,h,f,p,r,i)||0),0!==u}function ss(t,e,n){return as(t,0,!1,e,n)}function ls(t,e,n,r){return as(t,e,!0,n,r)}var us=Object(M["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Jo),cs={style:Object(M["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ta.style)},hs=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),fs=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?or:e>.2?sr:ar}if(t)return ar}return or},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(M["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(sn["lum"])(t,0)0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&xe)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ls(o,a/s,t,e)))return!0}if(this.hasFill())return ss(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=xe,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(M["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&xe)},e.prototype.createStyle=function(t){return Object(M["createObject"])(us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(M["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(M["extend"])({},r.shape),Object(M["extend"])(s,n.shape)):(s=Object(M["extend"])({},i?this.shape:r.shape),Object(M["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(M["extend"])({},this.shape);for(var u={},c=Object(M["keys"])(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(M["createObject"])(ds,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Or(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(sa);gs.prototype.type="tspan";var vs=gs,ys=Object(M["defaults"])({x:0,y:0},Jo),ms={style:Object(M["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ta.style)};function _s(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.createStyle=function(t){return Object(M["createObject"])(ys,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=_s(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ms},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Kt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(sa);bs.prototype.type="image";var xs=bs;function ws(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var Ss=Math.round;function Os(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(Ss(2*r)===Ss(2*i)&&(t.x1=t.x2=Ts(r,s,!0)),Ss(2*o)===Ss(2*a)&&(t.y1=t.y2=Ts(o,s,!0)),t):t}}function Ms(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=Ts(r,s,!0),t.y=Ts(i,s,!0),t.width=Math.max(Ts(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(Ts(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Ts(t,e,n){if(!e)return t;var r=Ss(2*t);return(r+Ss(e))%2===0?r/2:(r+(n?1:-1))/2}var Cs=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ks={},Is=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Cs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=Ms(ks,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?ws(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ps);Is.prototype.type="rect";var Ds=Is,As={fill:"#000"},js=2,Ps={style:Object(M["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},ta.style)},Ls=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=As,n.attr(e),n}return S(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,T=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),C=i.calculatedLineHeight,k=0;k=0&&(k=b[C],"right"===k.align))this._placeToken(k,t,w,g,T,"right",y),S-=k.width,T-=k.width,C--;M+=(r-(M-d)-(v-T)-S)/2;while(O<=C)k=b[O],this._placeToken(k,t,w,g,M+k.width/2,"center",y),M+=k.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&qs(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Us(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var p=this._getOrCreateChild(vs),d=p.createStyle();p.useStyle(d);var g=this._defaultStyle,v=!1,y=0,m=Gs("fill"in s?s.fill:"fill"in e?e.fill:(v=!0,g.fill)),_=Ws("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!v?null:(y=js,g.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;d.text=t.text,d.x=i,d.y=u,b&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=o,d.textBaseline="middle",d.font=t.font||br["a"],d.opacity=Object(M["retrieve3"])(s.opacity,e.opacity,1),Fs(d,s),_&&(d.lineWidth=Object(M["retrieve3"])(s.lineWidth,e.lineWidth,y),d.lineDash=Object(M["retrieve2"])(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=_),m&&(d.fill=m);var x=t.contentWidth,w=t.contentHeight;p.setBoundingRect(new Kt(Mr(d.x,x,d.textAlign),Tr(d.y,w,d.textBaseline),x,w))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,p=t.borderRadius,d=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(Ds),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=p,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(M["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(xs),s.onload=function(){d.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(M["retrieve2"])(t.strokeOpacity,1),v.lineDash=t.borderDash,v.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(M["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return zs(t)&&(e=[t.fontStyle,t.fontWeight,Bs(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(M["trim"])(e)||t.textFont||t.font},e}(sa),Rs={left:!0,right:1,center:1},Es={top:1,bottom:1,middle:1},Ns=["fontStyle","fontWeight","fontSize","fontFamily"];function Bs(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?br["b"]+"px":t+"px":t}function Fs(t,e){for(var n=0;n=0,o=!1;if(t instanceof ps){var a=Js(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(pl(s)||pl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(M["extend"])({},r),u=Object(M["extend"])({},u),u.fill=s):!pl(u.fill)&&pl(s)?(o=!0,r=Object(M["extend"])({},r),u=Object(M["extend"])({},u),u.fill=Object(sn["liftColor"])(s)):!pl(u.stroke)&&pl(l)&&(o||(r=Object(M["extend"])({},r),u=Object(M["extend"])({},u)),u.stroke=Object(sn["liftColor"])(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(M["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:al)}return r}function Ml(t,e,n){if(n&&null==n.z2){n=Object(M["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:sl)}return n}function Tl(t,e,n){var r=Object(M["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:Sl(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(M["extend"])({},n),a=Object(M["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Cl(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return Ol(this,t,e,n);if("blur"===t)return Tl(this,t,n);if("select"===t)return Ml(this,t,n)}return n}function kl(t){t.stateProxy=Cl;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Cl),n&&(n.stateProxy=Cl)}function Il(t,e){!Nl(t,e)&&!t.__highByOuter&&wl(t,gl)}function Dl(t,e){!Nl(t,e)&&!t.__highByOuter&&wl(t,vl)}function Al(t,e){t.__highByOuter|=1<<(e||0),wl(t,gl)}function jl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&wl(t,vl)}function Pl(t){wl(t,yl)}function Ll(t){wl(t,ml)}function Rl(t){wl(t,_l)}function El(t){wl(t,bl)}function Nl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=tl(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){ml(t)})),a&&n.push(i)),o.isBlured=!1})),Object(M["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Fl(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Xl(t,e,n){eu(t,!0),wl(t,kl),$l(t,e,n)}function Zl(t){eu(t,!1)}function Kl(t,e,n,r){r?Zl(t):Xl(t,e,n)}function $l(t,e,n){var r=Zs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Ql=["emphasis","blur","select"],Jl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tu(t,e,n,r){n=n||"itemStyle";for(var i=0;i0){var h=c.duration,f=c.delay,p=c.easing,d={duration:h,delay:f||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,d):e.animateTo(n,d)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function cu(t,e,n,r,i,o){uu("update",t,e,n,r,i,o)}function hu(t,e,n,r,i,o){uu("enter",t,e,n,r,i,o)}function fu(t){if(!t.__zr)return!0;for(var e=0;e=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};M["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),M["each"](c.successor,h?p:f)}M["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,f(t)}}}function Ku(t,e){return M["merge"](M["merge"]({},t,!0),e,!0)}var $u={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Ju="ZH",tc="EN",ec=tc,nc={},rc={},ic=O["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ec).toUpperCase();return t.indexOf(Ju)>-1?Ju:ec}():ec;function oc(t,e){t=t.toUpperCase(),rc[t]=new Uu(e),nc[t]=e}function ac(t){if(Object(M["isString"])(t)){var e=nc[t.toUpperCase()]||{};return t===Ju||t===tc?Object(M["clone"])(e):Object(M["merge"])(Object(M["clone"])(e),Object(M["clone"])(nc[ec]),!1)}return Object(M["merge"])(Object(M["clone"])(t),Object(M["clone"])(nc[ec]),!1)}function sc(t){return rc[t]}function lc(){return rc[ec]}oc(tc,$u),oc(Ju,Qu);var uc=1e3,cc=60*uc,hc=60*cc,fc=24*hc,pc=365*fc,dc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gc="{yyyy}-{MM}-{dd}",vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:gc,hour:gc+" "+dc.hour,minute:gc+" "+dc.minute,second:gc+" "+dc.second,millisecond:dc.none},yc=["year","month","day","hour","minute","second","millisecond"],mc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _c(t,e){return t+="","0000".substr(0,e-t.length)+t}function bc(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function xc(t){return t===bc(t)}function wc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sc(t,e,n,r){var i=Si(t),o=i[Cc(n)](),a=i[kc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Ic(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Dc(n)](),h=(c-1)%12+1,f=i[Ac(n)](),p=i[jc(n)](),d=i[Pc(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=r instanceof Uu?r:sc(r||ic)||lc(),m=y.getModel("time"),_=m.get("month"),b=m.get("monthAbbr"),x=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,_c(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,_c(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_c(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_c(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,_c(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,_c(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,_c(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,_c(d,3)).replace(/{S}/g,d+"")}function Oc(t,e,n,r,i){var o=null;if(M["isString"](n))o=n;else if(M["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=M["extend"]({},dc);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(M["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return Sc(new Date(t.value),o,i,r)}function Mc(t,e){var n=Si(t),r=n[kc(e)]()+1,i=n[Ic(e)](),o=n[Dc(e)](),a=n[Ac(e)](),s=n[jc(e)](),l=n[Pc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,p=f&&1===i,d=p&&1===r;return d?"year":p?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function Tc(t,e,n){var r=M["isNumber"](t)?Si(t):t;switch(e=e||Mc(t,n),e){case"year":return r[Cc(n)]();case"half-year":return r[kc(n)]()>=6?1:0;case"quarter":return Math.floor((r[kc(n)]()+1)/4);case"month":return r[kc(n)]();case"day":return r[Ic(n)]();case"half-day":return r[Dc(n)]()/24;case"hour":return r[Dc(n)]();case"minute":return r[Ac(n)]();case"second":return r[jc(n)]();case"millisecond":return r[Pc(n)]()}}function Cc(t){return t?"getUTCFullYear":"getFullYear"}function kc(t){return t?"getUTCMonth":"getMonth"}function Ic(t){return t?"getUTCDate":"getDate"}function Dc(t){return t?"getUTCHours":"getHours"}function Ac(t){return t?"getUTCMinutes":"getMinutes"}function jc(t){return t?"getUTCSeconds":"getSeconds"}function Pc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Lc(t){return t?"setUTCFullYear":"setFullYear"}function Rc(t){return t?"setUTCMonth":"setMonth"}function Ec(t){return t?"setUTCDate":"setDate"}function Nc(t){return t?"setUTCHours":"setHours"}function Bc(t){return t?"setUTCMinutes":"setMinutes"}function Fc(t){return t?"setUTCSeconds":"setSeconds"}function zc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vc(t){if(!Di(t))return M["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Hc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Wc=M["normalizeCssArray"];function Gc(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&M["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?Si(t):t;if(!isNaN(+l))return Sc(l,r,n);if(s)return"-"}if("ordinal"===e)return M["isStringSafe"](t)?i(t):M["isNumber"](t)&&o(t)?t+"":"-";var u=Ii(t);return o(u)?Vc(u):M["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Uc=["a","b","c","d","e","f","g"],Yc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function qc(t,e,n){M["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Zc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Si(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",_c(a,2)).replace("M",a).replace("yyyy",o).replace("yy",_c(o%100+"",2)).replace("dd",_c(s,2)).replace("d",s).replace("hh",_c(l,2)).replace("h",l).replace("mm",_c(u,2)).replace("m",u).replace("ss",_c(c,2)).replace("s",c).replace("SSS",_c(h,3)),t}function Kc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function $c(t,e){return e=e||"transparent",M["isString"](t)?t:M["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var Qc=M["each"],Jc=["left","right","top","bottom","width","height"],th=[["width","left","right"],["height","top","bottom"]];function eh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),p=e.childAt(u+1),d=p&&p.getBoundingRect();if("horizontal"===t){var g=f.width+(d?-d.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(d?-d.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var nh=eh;M["curry"](eh,"vertical"),M["curry"](eh,"horizontal");function rh(t,e,n){n=Wc(n||0);var r=e.width,i=e.height,o=ci(t.left,r),a=ci(t.top,i),s=ci(t.right,r),l=ci(t.bottom,i),u=ci(t.width,r),c=ci(t.height,i),h=n[2]+n[0],f=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var d=new Kt(o+n[3],a+n[0],u,c);return d.margin=n,d}function ih(t){var e=t.layoutMode||t.constructor.layoutMode;return M["isObject"](e)?e:e?{type:e}:null}function oh(t,e,n){var r=n&&n.ignoreSize;!M["isArray"](r)&&(r=[r,r]);var i=a(th[0],0),o=a(th[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(Qc(n,(function(e){u[e]=t[e]})),Qc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f=0;a--)o=M["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return lo(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Uu);function ch(t){var e=[];return M["each"](uh.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=M["map"](e,(function(t){return yo(t).main})),"dataset"!==t&&M["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}wo(uh,Uu),Co(uh),Xu(uh),Zu(uh,ch);var hh=uh,fh="";"undefined"!==typeof navigator&&(fh=navigator.platform||"");var ph="rgba(0, 0, 0, 0.2)",dh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ph,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ph,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ph,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ph,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ph,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ph,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},gh=Object(M["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),vh="original",yh="arrayRows",mh="objectRows",_h="keyedColumns",bh="typedArray",xh="unknown",wh="column",Sh="row",Oh={Must:1,Might:2,Not:3},Mh=ro();function Th(t){Mh(t).datasetMap=Object(M["createHashMap"])()}function Ch(t,e,n){var r={},i=Ih(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Mh(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(M["each"])(t,(function(e,n){var i=Object(M["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=d(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var r=0;re)return t[r];return t[n-1]}function Bh(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Nh(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function Fh(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var zh,Vh,Hh;"undefined"!==typeof console&&console.warn&&console.log;function Wh(t){0}function Gh(t){throw new Error(t)}var Uh="\0_ec_inner",Yh=1;var qh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Uu(r),this._locale=new Uu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=Qh(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Qh(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Hh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(M["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(M["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=Lh(this,e,Ni(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Hi(a,o,l);to(u,e,hh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],p=0;Object(M["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=hh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(M["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(M["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),p++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,p),"series"===e&&zh(this)}Th(this),Object(M["each"])(t,(function(t,e){null!=t&&(hh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(M["clone"])(t):Object(M["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){hh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),hh.topologicalTravel(o,hh.getAllClassMainTypes(),l,this),this._seriesIndices||zh(this)},e.prototype.getOption=function(){var t=Object(M["clone"])(this.option);return Object(M["each"])(t,(function(e,n){if(hh.hasClass(n)){for(var r=Ni(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ji(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Uh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=e:"max"===n?t<=e:t===e}function ff(t,e){return t.join(",")===e.join(",")}var pf=lf,df=M["each"],gf=M["isObject"],vf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=vf.length;n=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&p>=0&&y>0||"samesign"===l&&p<=0&&y<0){p=mi(p,y),d=y;break}}}return r[0]=p,r[1]=d,r}))}))}var zf,Vf,Hf,Wf,Gf,Uf=function(){function t(t){this.data=t.data||(t.sourceFormat===_h?{}:[]),this.sourceFormat=t.sourceFormat||xh,this.seriesLayoutBy=t.seriesLayoutBy||wh,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;nu&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return pp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function vp(t){var e,n;return M["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function yp(t){return new mp(t)}var mp=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},wp=(function(){function t(t,e){if(!Object(M["isNumber"])(e)){var n="";0,Gh(n)}this._opFn=xp[t],this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){return Object(M["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(Ii(t),this._rvalFloat)}}(),function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(M["isNumber"])(t)?t:Ii(t),r=Object(M["isNumber"])(e)?e:Ii(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(M["isString"])(t),s=Object(M["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return nr?-this._resultLT:0},t}());(function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ii(e)}t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Ii(t)===this._rvalFloat)}return this._isEQ?e:!e}})();var Sp=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return bp(t,e)},t}();function Op(t,e){var n=new Sp,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==wh&&Gh(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(M["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(M["hasOwn"])(l,n)&&Gh(i),l[n]=r}}));else for(var c=0;c65535?Ep:Np}function Hp(){return[1/0,-1/0]}function Wp(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Gp(t,e,n,r,i){var o=zp[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;ug[1]&&(g[1]=d)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(M["map"])(o,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=p,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&y<=h||isNaN(y))&&(s[l++]=d),d++}p=!0}else if(2===i){g=f[r[0]];var m=f[r[1]],_=t[r[1]][0],b=t[r[1]][1];for(v=0;v=c&&y<=h||isNaN(y))&&(x>=_&&x<=b||isNaN(x))&&(s[l++]=d),d++}p=!0}}if(!p)if(1===i)for(v=0;v=c&&y<=h||isNaN(y))&&(s[l++]=w)}else for(v=0;vt[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(v))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(Vp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var p=1;pn&&(n=r,i=_))}T>0&&Tu-p&&(s=u-p,a.length=s);for(var d=0;dc[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return bp(t[r],this._dimensions[r])}Lp={arrayRows:t,objectRows:function(t,e,n,r){return bp(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return bp(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),Yp=Up,qp=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(M["isTypedArray"])(a)?bh:vh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(M["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(M["retrieve2"])(c.sourceHeader,h.sourceHeader),d=Object(M["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||d;t=g?[qf(a,{seriesLayoutBy:f,sourceHeader:p,dimensions:d},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);t=y.sourceList,e=y.upstreamSignList}else{var m=v.get("source",!0);t=[qf(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&Zp(o)}var a=[],s=[];return Object(M["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Zp(n),a.push(e),s.push(t._getVersionSign())})),r?e=Ap(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[Zf(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||n>0&&!t.noHeader;return Object(M["each"])(t.blocks,(function(t){var n=rd(t);n>=e&&(e=n+ +(r&&(!n||ed(t)&&!t.noHeader)))})),e}return 0}function id(t,e,n,r){var i=e.noHeader,o=sd(rd(e)),a=[],s=e.blocks||[];Object(M["assert"])(!s||Object(M["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(M["hasOwn"])(u,l)){var c=new wp(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(M["each"])(s,(function(n,i){var s=e.valueFormatter,l=nd(n)(s?Object(M["extend"])(Object(M["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):ld(a.join(""),i?n:o.html);if(i)return h;var f=Gc(e.header,"ordinal",t.useUTC),p=$p(r,t.renderMode).nameStyle;return"richText"===t.renderMode?hd(t,f,p)+o.richText+h:ld('
'+dt(f)+"
"+h,n)}function od(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(M["isArray"])(t)?t:[t],Object(M["map"])(t,(function(t,e){return Gc(t,Object(M["isArray"])(p)?p[e]:p,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Gc(l,"ordinal",u),p=e.valueType,d=a?[]:c(e.value,e.dataIndex),g=!s||!o,v=!s&&o,y=$p(r,i),m=y.nameStyle,_=y.valueStyle;return"richText"===i?(s?"":h)+(o?"":hd(t,f,m))+(a?"":fd(t,d,g,v,_)):ld((s?"":h)+(o?"":ud(f,!s,m))+(a?"":cd(d,g,v,_)),n)}}function ad(t,e,n,r,i,o){if(t){var a=nd(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function sd(t){return{html:Qp[t],richText:Jp[t]}}function ld(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function ud(t,e,n){var r=e?"margin-left:2px":"";return''+dt(t)+""}function cd(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(M["isArray"])(t)?t:[t],''+Object(M["map"])(t,(function(t){return dt(t)})).join("  ")+""}function hd(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function fd(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(M["isArray"])(e)?e.join(" "):e,o)}function pd(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return $c(r)}function dd(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var gd=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ai()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Xc({color:e,type:t,renderMode:n,markerId:r});return Object(M["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(M["isArray"])(e)?Object(M["each"])(e,(function(t){return Object(M["extend"])(n,t)})):Object(M["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function vd(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(M["isArray"])(h),p=pd(o,a);if(c>1||f&&!c){var d=yd(h,o,a,u,p);e=d.inlineValues,n=d.inlineValueTypes,r=d.blocks,i=d.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=pp(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var v=Qi(o),y=v&&o.name||"",m=l.getName(a),_=s?y:m;return td("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[td("nameValue",{markerType:"item",markerColor:p,name:_,noName:!Object(M["trim"])(_),value:e,valueType:n,dataIndex:a})].concat(r||[])})}function yd(t,e,n,r,i){var o=e.getData(),a=Object(M["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(td("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(M["each"])(r,(function(t){c(pp(o,n,t),t)})):Object(M["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var md=ro();function _d(t,e){return t.getName(e)||t.getId(e)}var bd="__universalTransitionEnabled",xd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return S(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=yp({count:Od,reset:Md}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=md(this).sourceManager=new qp(this);r.prepareSource();var i=this.getInitialData(t,n);Cd(i,this),this.dataTask.context.data=i,md(this).dataBeforeProcessed=i,wd(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=ih(this),r=n?ah(t):{},i=this.subType;hh.hasClass(i)&&(i+="Series"),M["merge"](t,e.getTheme().get(this.subType)),M["merge"](t,this.getDefaultOption()),Bi(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&oh(t,r,n)},e.prototype.mergeOption=function(t,e){t=M["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=ih(this);n&&oh(this.option,t,n);var r=md(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Cd(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,md(this).dataBeforeProcessed=i,wd(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!M["isTypedArray"](t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Eh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[_d(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[bd])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){M["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return hh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(hh);function wd(t){var e=t.name;Qi(t)||(t.name=Sd(t)||e)}function Sd(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return M["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Od(t){return t.model.getRawData().count()}function Md(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Td}function Td(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Cd(t,e){M["each"](M["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,M["curry"](kd,e))}))}function kd(t,e){var n=Id(t);return n&&n.setOutputEnd((e||this).count()),e}function Id(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}M["mixin"](xd,gp),M["mixin"](xd,Eh),wo(xd,hh);var Dd=xd,Ad=function(){function t(){this.group=new Ur,this.uid=qu("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();bo(Ad),Co(Ad);var jd=Ad;function Pd(){var t=ro();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Ld=Va.CMD,Rd=[[],[],[]],Ed=Math.sqrt,Nd=Math.atan2;function Bd(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Ld.M,h=Ld.C,f=Ld.L,p=Ld.R,d=Ld.A,g=Ld.Q;for(i=0,o=0;i1&&(a*=Fd(d),s*=Fd(d));var g=(i===o?-1:1)*Fd((a*a*(s*s)-a*a*(p*p)-s*s*(f*f))/(a*a*(p*p)+s*s*(f*f)))||0,v=g*a*p/s,y=g*-s*f/a,m=(t+n)/2+Vd(h)*v-zd(h)*y,_=(e+r)/2+zd(h)*v+Vd(h)*y,b=Ud([1,0],[(f-v)/a,(p-y)/s]),x=[(f-v)/a,(p-y)/s],w=[(-1*f-v)/a,(-1*p-y)/s],S=Ud(x,w);if(Gd(x,w)<=-1&&(S=Hd),Gd(x,w)>=1&&(S=0),S<0){var O=Math.round(S/Hd*1e6)/1e6;S=2*Hd+O%2*Hd}c.addData(u,m,_,a,s,b,S,h,o)}var qd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zd(t){var e=new Va;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Va.CMD,l=t.match(qd);if(!l)return e;for(var u=0;uD*D+A*A&&(O=T,M=C),{cx:O,cy:M,x0:-c,y0:-h,x1:O*(i/x-1),y1:M*(i/x-1)}}function xg(t){var e;if(Object(M["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function wg(t,e){var n,r=vg(e.r,0),i=vg(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,p=dg(u-l),d=p>ug&&p%ug;if(d>mg&&(p=d),r>mg)if(p>ug-mg)t.moveTo(c+r*hg(l),h+r*cg(l)),t.arc(c,h,r,l,u,!f),i>mg&&(t.moveTo(c+i*hg(u),h+i*cg(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0,S=void 0,O=void 0,M=void 0,T=void 0,C=void 0,k=void 0,I=void 0,D=void 0,A=r*hg(l),j=r*cg(l),P=i*hg(u),L=i*cg(u),R=p>mg;if(R){var E=e.cornerRadius;E&&(n=xg(E),g=n[0],v=n[1],y=n[2],m=n[3]);var N=dg(r-i)/2;if(_=yg(N,y),b=yg(N,m),x=yg(N,g),w=yg(N,v),M=S=vg(_,b),T=O=vg(x,w),(S>mg||O>mg)&&(C=r*hg(u),k=r*cg(u),I=i*hg(l),D=i*cg(l),pmg){var U=yg(y,M),Y=yg(m,M),q=bg(I,D,A,j,r,U,f),X=bg(C,k,P,L,r,Y,f);t.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),M0&&t.arc(c+q.cx,h+q.cy,U,pg(q.y0,q.x0),pg(q.y1,q.x1),!f),t.arc(c,h,r,pg(q.cy+q.y1,q.cx+q.x1),pg(X.cy+X.y1,X.cx+X.x1),!f),Y>0&&t.arc(c+X.cx,h+X.cy,Y,pg(X.y1,X.x1),pg(X.y0,X.x0),!f))}else t.moveTo(c+A,h+j),t.arc(c,h,r,l,u,!f);else t.moveTo(c+A,h+j);if(i>mg&&R)if(T>mg){U=yg(g,T),Y=yg(v,T),q=bg(P,L,C,k,i,-Y,f),X=bg(A,j,I,D,i,-U,f);t.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),T0&&t.arc(c+q.cx,h+q.cy,Y,pg(q.y0,q.x0),pg(q.y1,q.x1),!f),t.arc(c,h,i,pg(q.cy+q.y1,q.cx+q.x1),pg(X.cy+X.y1,X.cx+X.x1),f),U>0&&t.arc(c+X.cx,h+X.cy,U,pg(X.y1,X.x1),pg(X.y0,X.x0),!f))}else t.lineTo(c+P,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+P,h+L)}else t.moveTo(c,h);t.closePath()}}}var Sg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Og=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Sg},e.prototype.buildPath=function(t,e){wg(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ps);Og.prototype.type="sector";var Mg=Og,Tg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Cg=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.getDefaultShape=function(){return new Tg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ps);Cg.prototype.type="ring";var kg=Cg;function Ig(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=t.length;f=2){if(r){var o=Ig(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;siv[1]){if(a=!1,i)return a;var u=Math.abs(iv[0]-rv[1]),c=Math.abs(rv[0]-iv[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Av(t){return!t.isGroup}function jv(t){return null!=t.shape}function Pv(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Av(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),cu(t,i,n,Zs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Av(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return jv(t)&&(e.shape=Object(M["extend"])({},t.shape)),e}}function Lv(t,e){return Object(M["map"])(t,(function(t){var n=t[0];n=fv(n,e.x),n=pv(n,e.x+e.width);var r=t[1];return r=fv(r,e.y),r=pv(r,e.y+e.height),[n,r]}))}function Rv(t,e){var n=fv(t.x,e.x),r=pv(t.x+t.width,e.x+e.width),i=fv(t.y,e.y),o=pv(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Ev(t,e,n){var r=Object(M["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(M["defaults"])(i,n),new xs(r)):bv(t.replace("path://",""),r,n,"center")}function Nv(t,e,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var v=Fv(p,d,c,h)/f;return!(v<0||v>1)}function Fv(t,e,n,r){return t*r-n*e}function zv(t){return t<=1e-6&&t>=-1e-6}function Vv(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(M["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(M["each"])(Object(M["keys"])(l),(function(t){Object(M["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Zs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(M["defaults"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Hv(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Wv(t,e){if(t)if(Object(M["isArray"])(t))for(var n=0;n=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function ry(t,e,n,r){var i=t[e];if(i){var o=i[Jv]||i,a=i[ey],s=i[ty];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=ny(o,n,"debounce"===r),i[Jv]=o,i[ey]=r,i[ty]=n}return i}}function iy(t,e){var n=t[e];n&&n[Jv]&&(n.clear&&n.clear(),t[e]=n[Jv])}var oy=ro(),ay={itemStyle:ko(Vu,!0),lineStyle:ko(Bu,!0)},sy={lineStyle:"stroke",itemStyle:"fill"};function ly(t,e){var n=t.visualStyleMapper||ay[e];return n||(console.warn("Unknown style type '"+e+"'."),ay.itemStyle)}function uy(t,e){var n=t.visualDrawType||sy[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var cy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=ly(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=uy(t,r),u=a[l],c=Object(M["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(M["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(M["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(M["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},hy=new Uu,fy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=ly(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){hy.option=n[r];var a=i(hy),s=t.ensureUniqueItemVisual(e,"style");Object(M["extend"])(s,a),hy.option.decal&&(t.setItemVisual(e,"decal",hy.option.decal),hy.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},py={performRawSeries:!0,overallReset:function(t){var e=Object(M["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),oy(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=oy(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=uy(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},dy=Math.PI;function gy(t,e){e=e||{},M["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ur,r=new Ds({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new Xs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ds({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new Xg({shape:{startAngle:-dy/2,endAngle:-dy/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*dy/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*dy/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var vy=function(){function t(t,e,n,r){this._stageTaskMap=Object(M["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(M["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(M["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(M["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(M["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(M["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||yp({plan:xy,reset:wy,count:My}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||yp({reset:yy});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(M["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function p(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,yp({reset:my,onDirty:by})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(M["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):(c=!1,Object(M["each"])(n.getSeries(),p)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(M["isFunction"])(t)&&(t={overallReset:t,seriesType:Ty(t)}),t.uid=qu("stageHandler"),e&&(t.visualType=e),t},t}();function yy(t){t.overallReset(t.ecModel,t.api,t.payload)}function my(t){return t.overallProgress&&_y}function _y(){this.agent.dirty(),this.getDownstream().dirty()}function by(){this.agent&&this.agent.dirty()}function xy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function wy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Ni(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(M["map"])(e,(function(t,e){return Oy(e)})):Sy}var Sy=Oy(0);function Oy(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Vy=["symbol","symbolSize","symbolRotate","symbolOffset"],Hy=Vy.concat(["symbolKeepAspect"]),Wy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&fm(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function gm(t,e,n){for(var r="radial"===e.type?dm(t,e,n):pm(t,e,n),i=e.colorStops,o=0;o0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(M["isNumber"])(t)?[t]:Object(M["isArray"])(t)?t:null:null}function bm(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&_m(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(M["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var xm=new Va(!0);function wm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Sm(t){return"string"===typeof t&&"none"!==t}function Om(t){var e=t.fill;return null!=e&&"none"!==e}function Mm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Tm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Cm(t,e,n){var r=Lo(e.image,e.__image,n);if(Eo(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*M["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function km(t,e,n,r){var i,o=wm(n),a=Om(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||xm,h=e.__dirty;if(!r){var f=n.fill,p=n.stroke,d=a&&!!f.colorStops,g=o&&!!p.colorStops,v=a&&!!f.image,y=o&&!!p.image,m=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(m=h?gm(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(_=h?gm(t,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),v&&(b=h||!e.__canvasFillPattern?Cm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(x=h||!e.__canvasStrokePattern?Cm(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?t.fillStyle=m:v&&(b?t.fillStyle=b:a=!1),g?t.strokeStyle=_:y&&(x?t.strokeStyle=x:o=!1)}var S,O,M=e.getGlobalScale();c.setScale(M[0],M[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=bm(e),S=i[0],O=i[1]);var T=!0;(u||h&xe)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),T=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),T&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),r||(n.strokeFirst?(o&&Tm(t,n),a&&Mm(t,n)):(a&&Mm(t,n),o&&Tm(t,n))),S&&t.setLineDash([])}function Im(t,e,n){var r=e.__image=Lo(n.image,e.__image,e,e.onload);if(r&&Eo(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function Dm(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||br["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=bm(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(wm(n)&&t.strokeText(i,n.x,n.y),Om(n)&&t.fillText(i,n.x,n.y)):(Om(n)&&t.fillText(i,n.x,n.y),wm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Am=["shadowBlur","shadowOffsetX","shadowOffsetY"],jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Pm(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Gm(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Jo.opacity:a}(r||e.blend!==n.blend)&&(o||(Gm(t,i),o=!0),t.globalCompositeOperation=e.blend||Jo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[I_])if(this._disposed)ub(this.id);else{var r,i,o;if(Object(M["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[I_]=!0,!this._model||e){var a=new pf(this._api),s=this._theme,l=this._model=new Jh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},pb);var u={seriesTransition:o,optionChanged:!0};if(n)this[D_]={silent:r,updateParams:u},this[I_]=!1,this.getZr().wakeUp();else{try{z_(this),W_.update.call(this,null,u)}catch(c){throw this[D_]=null,this[I_]=!1,c}this._ssr||this._zr.flush(),this[D_]=null,this[I_]=!1,q_.call(this,r),X_.call(this,r)}}},e.prototype.setTheme=function(){Wh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||O["a"].hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(O["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(M["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(M["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(M["each"])(r,(function(t){t.group.ignore=!1})),o}ub(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(mb[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(M["each"])(yb,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(M["clone"])(t)),p=o.getDom().getBoundingClientRect();a=r(p.left,a),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:f,left:p.left,top:p.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,p=u-s,d=br["c"].createCanvas(),g=Qr(d,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:p}),e){var v="";return Object(M["each"])(c,(function(t){var e=t.left-a,n=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ds({shape:{x:0,y:0,width:f,height:p},style:{fill:t.connectedBackgroundColor}})),Object(M["each"])(c,(function(t){var e=new xs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),d.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}ub(this.id)},e.prototype.convertToPixel=function(t,e){return G_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return G_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=oo(r,t);return Object(M["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(M["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}ub(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=oo(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?Uy(o,a,e):Yy(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(M["each"])(lb,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&Ky(o,(function(t){var e=Zs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return r=Object(M["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(M["each"])(hb,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(M["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Zy(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?ub(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)ub(this.id);else{this._disposed=!0;var t=this.getDom();t&&uo(this.getDom(),xb,"");var e=this,n=e._api,r=e._model;Object(M["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(M["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete yb[e.id]}},e.prototype.resize=function(t){if(!this[I_])if(this._disposed)ub(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[D_]&&(null==r&&(r=this[D_].silent),n=!0,this[D_]=null),this[I_]=!0;try{n&&z_(this),W_.update.call(this,{type:"resize",animation:Object(M["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[I_]=!1,i}this[I_]=!1,q_.call(this,r),X_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)ub(this.id);else if(Object(M["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),vb[t]){var n=vb[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?ub(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(M["extend"])({},t);return e.type=hb[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)ub(this.id);else if(Object(M["isObject"])(e)||(e={silent:!!e}),cb[t.type]&&this._model)if(this[I_])this._pendingActions.push(t);else{var n=e.silent;Y_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&O["a"].browser.weChat&&this._throttledZrFlush(),q_.call(this,n),X_.call(this,n)}},e.prototype.updateLabelLayout=function(){a_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)ub(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);me(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(M["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;re.get("hoverLayerThreshold")&&!O["a"].node&&!O["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(fu(t))return;if(t instanceof ps&&au(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}z_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),V_(t,!0),V_(t,!1),e.plan()},V_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l=0)){zb.push(n);var o=Ay.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function Hb(t,e){vb[t]=e}function Wb(t){Object(br["d"])({createCanvas:t})}function Gb(t,e,n){var r=u_("registerMap");r&&r(t,e,n)}function Ub(t){var e=u_("getMap");return e&&e(t)}var Yb=Dp;Fb(b_,cy),Fb(S_,fy),Fb(S_,py),Fb(b_,Wy),Fb(S_,Gy),Fb(C_,i_),Db(Nf),Ab(d_,Bf),Hb("default",gy),Rb({type:ll,event:ll,update:ll},M["noop"]),Rb({type:ul,event:ul,update:ul},M["noop"]),Rb({type:cl,event:cl,update:cl},M["noop"]),Rb({type:hl,event:hl,update:hl},M["noop"]),Rb({type:fl,event:fl,update:fl},M["noop"]),Ib("light",Py),Ib("dark",Fy);var qb={},Xb=[],Zb={registerPreprocessor:Db,registerProcessor:Ab,registerPostInit:jb,registerPostUpdate:Pb,registerUpdateLifecycle:Lb,registerAction:Rb,registerCoordinateSystem:Eb,registerLayout:Bb,registerVisual:Fb,registerTransform:Yb,registerLoading:Hb,registerMap:Gb,registerImpl:l_,PRIORITY:k_,ComponentModel:hh,ComponentView:jd,SeriesModel:Dd,ChartView:Qv,registerComponentModel:function(t){hh.registerClass(t)},registerComponentView:function(t){jd.registerClass(t)},registerSeriesModel:function(t){Dd.registerClass(t)},registerChartView:function(t){Qv.registerClass(t)},registerSubTypeDefaulter:function(t,e){hh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ni(t,e)}};function Kb(t){Object(M["isArray"])(t)?Object(M["each"])(t,(function(t){Kb(t)})):Object(M["indexOf"])(Xb,t)>=0||(Xb.push(t),Object(M["isFunction"])(t)&&(t={install:t}),t.install(Zb))}function $b(t){return null==t?0:t.length||1}function Qb(t){return t}var Jb=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Qb,this._newKeyGetter=r||Qb,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f1)for(var a=0;a30}var gx,vx,yx,mx,_x,bx,xx,wx=M["isObject"],Sx=M["map"],Ox="undefined"===typeof Int32Array?Array:Int32Array,Mx="e\0\0",Tx=-1,Cx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kx=["_approximateExtent"],Ix=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;hx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===vh;if(s&&!r.pure)for(var l=[],u=t;u0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),M["isArray"](i)?i=i.slice():wx(i)&&(i=M["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,wx(e)?M["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){wx(t)?M["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?M["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Ks(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){M["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Sx(this.dimensions,this._getDimInfo,this),this.hostModel)),_x(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];M["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(M["slice"](arguments)))})},t.internalField=function(){gx=function(t){var e=t._invertedIndicesMap;M["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new Ox(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Dx=Ix;function Ax(t,e){return jx(t,e).dimensions}function jx(t,e){Yf(t)||(t=Xf(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(M["createHashMap"])(),o=[],a=Lx(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&dx(a),l=r===t.dimensionsDefine,u=l?px(t):fx(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(M["createHashMap"])(c),f=new Bp(a),p=0;p0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Lx(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(M["each"])(e,(function(t){var e;Object(M["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Rx(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}var Ex=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(M["createHashMap"])(),this.categoryAxisMap=Object(M["createHashMap"])(),this.coordSysName=t}return t}();function Nx(t){var e=t.get("coordinateSystem"),n=new Ex(e),r=Bx[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var Bx={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",so).models[0],o=t.getReferringComponents("yAxis",so).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Fx(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Fx(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",so).models[0];e.coordSysDims=["single"],n.set("single",i),Fx(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",so).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Fx(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),Fx(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(M["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),Fx(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function Fx(t){return"category"===t.get("type")}function zx(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;Vx(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(M["each"])(r,(function(t,e){Object(M["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,d=u.type,g=0;Object(M["each"])(r,(function(t){t.coordDim===p&&g++}));var v={name:c,coordDim:p,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:h,coordDim:h,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,d),y.storeDimIndex=o.ensureCalculationDimension(c,d)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Vx(t){return!hx(t.schema)}function Hx(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Wx(t,e){return Hx(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Gx(t,e){var n,r=t.get("coordinateSystem"),i=af.get(r);return e&&e.coordSysDims&&(n=M["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=ix(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function Ux(t,e,n){var r,i;return n&&M["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function Yx(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=Xf(t)):(r=i.getSource(),o=r.sourceFormat===vh);var a=Nx(e),s=Gx(e,a),l=n.useEncodeDefaulter,u=M["isFunction"](l)?l:l?M["curry"](Ch,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=jx(r,c),f=Ux(h.dimensions,n.createInvertedIndices,a),p=o?null:i.getSharedDataStore(h),d=zx(e,{schema:h,store:p}),g=new Dx(h,e);g.setCalculationInfo(d);var v=null!=f&&qx(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:p,null,v),g}function qx(t){if(t.sourceFormat===vh){var e=Xx(t.data||[]);return!M["isArray"](zi(e))}}function Xx(t){var e=0;while(ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Co(Kx);var $x=Kx,Qx=0,Jx=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Qx}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(M["map"])(r,tw);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(M["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(M["createHashMap"])(this.categories))},t}();function tw(t){return Object(M["isObject"])(t)&&null!=t.value?t.value:t+""}var ew=Jx;function nw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=Ti(o/e,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=rw(a),l=i.niceTickExtent=[hi(Math.ceil(t[0]/a)*a,s),hi(Math.floor(t[1]/a)*a,s)];return ow(l,t),i}function rw(t){return pi(t)+2}function iw(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function ow(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),iw(t,0,e),iw(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function aw(t,e){return t>=e[0]&&t<=e[1]}function sw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function lw(t,e){return t*(e[1]-e[0])+e[0]}var uw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new ew({})),Object(M["isArray"])(r)&&(r=new ew({categories:Object(M["map"])(r,(function(t){return Object(M["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return S(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(M["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),aw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),sw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(lw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}($x);$x.registerClass(uw);var cw=uw,hw=hi,fw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return S(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return aw(t,this._extent)},e.prototype.normalize=function(t){return sw(t,this._extent)},e.prototype.scale=function(t){return lw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=rw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:hw(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function bw(t){var e=_w(t),n=[];return Object(M["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var p=ci(t.get("barWidth"),r),d=ci(t.get("barMaxWidth"),r),g=ci(t.get("barMinWidth")||(Ow(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:yw(o),stackId:vw(t)})})),xw(n)}function xw(t){var e={};Object(M["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(M["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(M["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=ci(o,i),l=ci(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(M["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&er&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,p=0;Object(M["each"])(r,(function(t,e){t.width||(t.width=h),f=t,p+=t.width*(1+l)})),f&&(p-=f.width*l);var d=-p/2;Object(M["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:d,width:t.width},d+=t.width*(1+l)}))})),n}function ww(t,e,n){if(t&&e){var r=t[yw(e)];return null!=r&&null!=n?r[vw(n)]:r}}function Sw(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Ow(t){return t.pipelineContext&&t.pipelineContext.large}var Mw=function(t,e,n,r){while(n>>1;t[i][1]n&&(this._approxInterval=n);var o=Cw.length,a=Math.min(Mw(Cw,this._approxInterval,0,o),o-1);this._interval=Cw[a][1],this._minLevelUnit=Cw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(M["isNumber"])(t)?t:+Si(t)},e.prototype.contain=function(t){return aw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return sw(this.parse(t),this._extent)},e.prototype.scale=function(t){return lw(t,this._extent)},e.type="time",e}(pw),Cw=[["second",uc],["minute",cc],["hour",hc],["quarter-day",6*hc],["half-day",12*hc],["day",1.2*fc],["half-week",3.5*fc],["week",7*fc],["month",31*fc],["quarter",95*fc],["half-year",pc/2],["year",pc]];function kw(t,e,n,r){var i=Si(e),o=Si(n),a=function(t){return Tc(i,t,r)===Tc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},p=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return p()}}function Iw(t,e){return t/=fc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Dw(t){var e=30*fc;return t/=e,t>6?6:t>3?3:t>2?2:1}function Aw(t){return t/=hc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function jw(t,e){return t/=e?cc:uc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Pw(t){return Ti(t,!0)}function Lw(t,e,n){var r=new Date(t);switch(bc(e)){case"year":case"month":r[Rc(n)](0);case"day":r[Ec(n)](1);case"hour":r[Nc(n)](0);case"minute":r[Bc(n)](0);case"second":r[Fc(n)](0),r[zc(n)](0)}return r.getTime()}function Rw(t,e,n,r){var i=1e4,o=mc,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u=r[0]&&m<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(v),h>_||t===o[p])break}c=[]}}}var b=Object(M["filter"])(Object(M["map"])(u,(function(t){return Object(M["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),x=[],w=b.length-1;for(p=0;p0)r*=10;var o=[hi(Vw(e[0]/r)*r),hi(zw(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){Bw.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Ww(t)/Ww(this.base),aw(t,this._extent)},e.prototype.normalize=function(t){return t=Ww(t)/Ww(this.base),sw(t,this._extent)},e.prototype.scale=function(t){return t=lw(t,this._extent),Hw(this.base,t)},e.type="log",e}($x),Uw=Gw.prototype;function Yw(t,e){return Fw(t,pi(e))}Uw.getMinorTicks=Bw.getMinorTicks,Uw.getLabel=Bw.getLabel,$x.registerClass(Gw);var qw=Gw,Xw=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[Kw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=Zw[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Zw={min:"_determinedMin",max:"_determinedMax"},Kw={min:"_dataMin",max:"_dataMax"};function $w(t,e,n){var r=t.rawExtentInfo;return r||(r=new Xw(t,e,n),t.rawExtentInfo=r,r)}function Qw(t,e){return null==e?null:Object(M["eqNaN"])(e)?NaN:t.parse(e)}function Jw(t,e){var n=t.type,r=$w(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=mw("bar",a),l=!1;if(M["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=bw(s),c=tS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function tS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=ww(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;M["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;M["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function eS(t,e){var n=e,r=Jw(t,n),i=r.extent,o=n.get("splitNumber");t instanceof qw&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function nS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new cw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Ew({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new($x.getClass(e)||pw)}}function rS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):M["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):M["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(iS(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function iS(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function oS(t){var e=t.get("interval");return null==e?"auto":e}function aS(t){return"category"===t.type&&0===oS(t.getLabelModel())}var sS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function lS(t){return Zx(null,t)}var uS={isDimensionStacked:Hx,enableDataStack:zx,getStackedDimension:Wx};function cS(t,e){var n=e;e instanceof Uu||(n=new Uu(e));var r=nS(n);return r.setExtent(t[0],t[1]),eS(r,n),r}function hS(t){M["mixin"](t,sS)}function fS(t,e){return e=e||{},wu(t,null,null,"normal"!==e.state)}var pS=1e-8;function dS(t,e){return Math.abs(t-e)n&&(t=i,n=a)}if(t)return _S(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(M["each"])(i,(function(e){"polygon"===e.type?mS(e.exterior,n,r,t):Object(M["each"])(e.points,(function(e){mS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new Kt(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function CS(t,e){return t=OS(t),M["map"](M["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new xS(o[0],o.slice(1)));break;case"MultiPolygon":M["each"](r.coordinates,(function(t){t[0]&&i.push(new xS(t[0],t.slice(1)))}));break;case"LineString":i.push(new wS([r.coordinates]));break;case"MultiLineString":i.push(new wS(r.coordinates))}var a=new SS(n[e||"name"],i,n.cp);return a.properties=n,a}))}function kS(t,e,n,r,i,o,a,s){var l=new Xs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var IS=ro();function DS(t,e){var n=M["map"](e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function AS(t){var e=t.getLabelModel().get("customValues");if(e){var n=rS(t);return{labels:DS(t,e).map((function(e){var r={value:e};return{formattedLabel:n(r),rawLabel:t.scale.getLabel(r),tickValue:e}}))}}return"category"===t.type?PS(t):ES(t)}function jS(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:DS(t,n)}:"category"===t.type?RS(t,e):{ticks:M["map"](t.scale.getTicks(),(function(t){return t.value}))}}function PS(t){var e=t.getLabelModel(),n=LS(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function LS(t,e){var n,r,i=NS(t,"labels"),o=oS(e),a=BS(i,o);return a||(M["isFunction"](o)?n=GS(t,o):(r="auto"===o?zS(t):o,n=WS(t,r)),FS(i,o,{labels:n,labelCategoryInterval:r}))}function RS(t,e){var n,r,i=NS(t,"ticks"),o=oS(e),a=BS(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),M["isFunction"](o))n=GS(t,o,!0);else if("auto"===o){var s=LS(t,t.getLabelModel());r=s.labelCategoryInterval,n=M["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=WS(t,r,!0);return FS(i,o,{ticks:n,tickCategoryInterval:r})}function ES(t){var e=t.scale.getTicks(),n=rS(t);return{labels:M["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function NS(t,e){return IS(t)[e]||(IS(t)[e]=[])}function BS(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,p=0;l<=o[1];l+=s){var d=0,g=0,v=Or(n({value:l}),e.font,"center","top");d=1.3*v.width,g=1.3*v.height,f=Math.max(f,d,7),p=Math.max(p,g,7)}var y=f/c,m=p/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),b=IS(t.model),x=t.getExtent(),w=b.lastAutoInterval,S=b.lastTickCount;return null!=w&&null!=S&&Math.abs(w-_)<=1&&Math.abs(S-a)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=a,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function HS(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function WS(t,e,n){var r=rS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=aS(t),f=a.get("showMinLabel")||h,p=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var d=u;d<=o[1];d+=l)g(d);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&d-l!==o[1]&&g(o[1]),s}function GS(t,e,n){var r=t.scale,i=rS(t),o=[];return M["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var US=[0,1],YS=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return gi(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),qS(n,r.count())),ui(t,US,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),qS(n,r.count()));var i=ui(t,n,US,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=jS(this,e),r=n.ticks,i=Object(M["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return XS(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(M["map"])(n,(function(t){return Object(M["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return AS(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return VS(this)},t}();function qS(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function XS(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(M["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=hi(t),e=hi(e),h?t>e:ti&&(i+=tO);var p=Math.atan2(s,a);if(p<0&&(p+=tO),p>=r&&p<=i||p+tO>=r&&p+tO<=i)return l[0]=c,l[1]=h,u-n;var d=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(d-a)*(d-a)+(g-s)*(g-s),_=(v-a)*(v-a)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(_))}function oO(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var p=l*c+u*h,d=p/f;s&&(d=Math.min(Math.max(d,0),1)),d*=f;var g=a[0]=t+d*c,v=a[1]=e+d*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function aO(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var sO=[];function lO(t,e,n){var r=aO(e.x,e.y,e.width,e.height,t.x,t.y,sO);return n.set(sO[0],sO[1]),r}function uO(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,f=t.y,p=0;p0){e=e/180*Math.PI,cO.fromArray(t[0]),hO.fromArray(t[1]),fO.fromArray(t[2]),zt.sub(pO,cO,hO),zt.sub(dO,fO,hO);var n=pO.len(),r=dO.len();if(!(n<.001||r<.001)){pO.scale(1/n),dO.scale(1/r);var i=pO.dot(dO),o=Math.cos(e);if(o1&&zt.copy(yO,fO),yO.toArray(t[1])}}}}function _O(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,cO.fromArray(t[0]),hO.fromArray(t[1]),fO.fromArray(t[2]),zt.sub(pO,hO,cO),zt.sub(dO,fO,hO);var r=pO.len(),i=dO.len();if(!(r<.001||i<.001)){pO.scale(1/r),dO.scale(1/i);var o=pO.dot(e),a=Math.cos(n);if(o=l)zt.copy(yO,fO);else{yO.scaleAndAdd(dO,s/Math.tan(Math.PI/2-c));var h=fO.x!==hO.x?(yO.x-hO.x)/(fO.x-hO.x):(yO.y-hO.y)/(fO.y-hO.y);if(isNaN(h))return;h<0?zt.copy(yO,hO):h>1&&zt.copy(yO,fO)}yO.toArray(t[1])}}}}function bO(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function xO(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=W(r[0],r[1]),o=W(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=q([],r[1],r[0],a/i),l=q([],r[1],r[2],a/o),u=q([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var v,y,m=t[0],_=t[a-1];return b(),v<0&&S(-v,.8),y<0&&S(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&O(-v),y<0&&O(y),u}function b(){v=m.rect[e]-r,y=i-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){f=o[l-1]*h;w(-f,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function TO(t,e,n,r){return MO(t,"x","width",e,n,r)}function CO(t,e,n,r){return MO(t,"y","height",e,n,r)}function kO(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new Kt(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(M["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),cu(n,l,e,s)}else if(n.attr(l),!Au(n).valueAnimation){var h=Object(M["retrieve2"])(n.style.opacity,1);n.style.opacity=0,hu(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};RO(f,l,EO),RO(f,n.states.select,EO)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};RO(p,l,EO),RO(p,n.states.emphasis,EO)}ju(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=LO(r),o=i.oldLayout;var d={points:r.shape.points};o?(r.attr({shape:o}),cu(r,{shape:d},e)):(r.setShape(d),r.style.strokePercent=0,hu(r,{style:{strokePercent:1}},e)),i.oldLayout=d}},t}(),BO=NO,FO=ro();function zO(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=FO(e).labelManager;r||(r=FO(e).labelManager=new BO),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=FO(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function VO(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HO(n,t,e),n.seriesInvolved&&GO(n,t),n}function HO(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(M["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=$O(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(M["each"])(n.getAxes(),Object(M["curry"])(d,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&Object(M["each"])(p.baseAxes,Object(M["curry"])(d,!f||"cross",h)),f&&Object(M["each"])(p.otherAxes,Object(M["curry"])(d,"cross",!1))}}function d(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||KO(h))){null==s&&(s=h.get("triggerTooltip")),h=r?WO(u,c,i,e,r,s):h;var p=h.get("snap"),d=h.get("triggerEmphasis"),g=$O(u.model),v=s||p||"category"===u.type,y=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:d,involveSeries:v,snap:p,useHandle:KO(h),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=UO(o,u);if(null!=m){var _=a[m]||(a[m]={axesInfo:{}});_.axesInfo[g]=y,_.mapper=o[m].mapper,y.linkGroup=_}}}}))}function WO(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(M["each"])(s,(function(t){l[t]=Object(M["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(M["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Uu(l,n,r))}function GO(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(M["each"])(t.coordSysAxesInfo[$O(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function UO(t,e){for(var n=e.model,r=e.dim,i=0;i=0||t===e}function qO(t){var e=XO(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=KO(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),aa)return!0;if(o){var s=XO(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=eM(t).pointerEl=new a[i.type](nM(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=eM(t).labelEl=new Xs(nM(e.label));t.add(i),sM(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=eM(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=eM(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),sM(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Ev(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Mt(t.event)},onmousedown:rM(this._onHandleDragMove,this,0,0),drift:rM(this._onHandleDragMove,this),ondragend:rM(this._onHandleDragEnd,this)}),r.add(i)),uM(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");M["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,ry(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){oM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,lM(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(lM(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(lM(r)),eM(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),iy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function oM(t,e,n,r){aM(eM(n).lastProp,r)||(eM(n).lastProp=r,e?cu(n,r,t):(n.stopAnimation(),n.attr(r)))}function aM(t,e){if(M["isObject"](t)&&M["isObject"](e)){var n=!0;return M["each"](e,(function(e,r){n=n&&aM(t[r],e)})),!!n}return t===e}function sM(t,e){t[e.get(["label","show"])?"show":"hide"]()}function lM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function uM(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var cM=iM,hM=Math.PI,fM=function(){function t(t,e){this.group=new Ur,this.opt=e,this.axisModel=t,Object(M["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ur({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!pM[t]},t.prototype.add=function(t){pM[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=bi(e-t);return xi(o)?(i=n>0?"top":"bottom",r="center"):xi(o-hM)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),pM={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(X(s,s,a),X(l,l,a));var c=Object(M["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new zg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Mv(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(null!=f){var p=e.get(["axisLine","symbolSize"]);Object(M["isString"])(f)&&(f=[f,f]),(Object(M["isString"])(p)||Object(M["isNumber"])(p))&&(p=[p,p]);var d=hm(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],v=p[1];Object(M["each"])([{rotate:t.rotation+Math.PI/2,offset:d[0],r:0},{rotate:t.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=cm(f[r],-g/2,-v/2,g,v,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=bM(n,r,e,t),o=wM(n,r,e,t);if(gM(e,o,i),xM(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=OO(Object(M["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));kO(a)}},axisName:function(t,e,n,r){var i=Object(M["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,p=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,mM(s)?t.labelOffset+l*c:0],d=e.get("nameRotate");null!=d&&(d=d*hM/180),mM(s)?o=fM.innerTextLayout(t.rotation,null!=d?d:t.rotation,l):(o=dM(t.rotation,s,d||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Object(M["retrieve"])(t.nameTruncateMaxWidth,v.maxWidth,a),_=new Xs({x:p[0],y:p[1],rotation:o.rotation,silent:fM.isLabelSilent(e),style:wu(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Vv({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var b=fM.makeAxisEventDataBase(e);b.targetType="axisName",b.name=i,Zs(_).eventData=b}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function dM(t,e,n,r){var i,o,a=bi(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return xi(a-hM/2)?(o=l?"bottom":"top",i="center"):xi(a-1.5*hM)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*hM&&a>hM/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function gM(t,e,n){if(!aS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(vM(o),vM(u)):yM(o,a)&&(r?(vM(a),vM(c)):(vM(o),vM(u))),!1===i?(vM(s),vM(h)):yM(l,s)&&(i?(vM(l),vM(f)):(vM(s),vM(h)))}}function vM(t){t&&(t.ignore=!0)}function yM(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=At([]);return Rt(i,i,-t.rotation),n.applyTransform(Pt([],i,t.getLocalTransform())),r.applyTransform(Pt([],i,e.getLocalTransform())),n.intersect(r)}}function mM(t){return"middle"===t||"center"===t}function _M(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){XM("axisPointer",e)},e.prototype.dispose=function(t,e){XM("axisPointer",e)},e.type="axisPointer",e}(jd),KM=ZM;function $M(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=no(o,t);if(null==a||a<0||M["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,p="x"===h||"radius"===h?1:0,d=o.mapDimension(f),g=[];g[p]=o.get(d,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(M["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var QM=ro();function JM(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(M["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){uT(i)&&(i=$M({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=uT(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||uT(i),f={},p={},d={list:[],map:{}},g={showPointer:Object(M["curry"])(nT,p),showTooltip:Object(M["curry"])(rT,d)};Object(M["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(M["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=sT(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&tT(t,a,g,!1,f)}}))}));var v={};return Object(M["each"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(M["each"])(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,lT(e),lT(t)))),v[t.key]=o}}))})),Object(M["each"])(v,(function(t,e){tT(c[e],t,g,!0,f)})),iT(p,c,f),oT(d,i,t,a),aT(c,a,n),f}}function tT(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=eT(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(M["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function eT(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(M["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var p=t-u,d=Math.abs(p);d<=a&&((d=0&&s<0)&&(a=d,s=p,i=u,o.length=0),Object(M["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function nT(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function rT(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=$O(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function iT(t,e,n){var r=n.axesInfo=[];Object(M["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function oT(t,e,n,r){if(!uT(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function aT(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=QM(r)[i]||{},a=QM(r)[i]={};Object(M["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(M["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(M["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(M["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function sT(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function lT(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function uT(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function cT(t){tM.registerAxisPointerClass("CartesianAxisPointer",NM),t.registerComponentModel(FM),t.registerComponentView(KM),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(M["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=VO(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JM)}var hT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return S(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(hh),fT=hT;function pT(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function dT(t){if(O["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+p+"px";var d=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+r+";"];return'
'}function OT(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=O["a"].transformSupported?","+bT+r:",left"+r+",top"+r),_T+":"+i}function MT(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!O["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=O["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+bT+":"+a+";":[["top",0],["left",0],[gT,a]]}function TT(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(M["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function CT(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=dd(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(OT(i,n)),o&&r.push("background-color:"+o),Object(M["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=Hc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(TT(c)),null!=h&&r.push("padding:"+Wc(h).join("px ")+"px"),r.join(";")+";"}function kT(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&st(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var IT=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,O["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,o=i&&(Object(M["isString"])(i)?document.querySelector(i):Object(M["isDom"])(i)?i:Object(M["isFunction"])(i)&&i(t.getDom()));kT(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=r.handler,n=r.painter.getViewportRoot();xt(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=mT(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=xT+CT(t,!this._firstShow,this._longHide)+MT(i[0],i[1],!0)+"border-color:"+$c(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(M["isString"])(i)&&"item"===n.get("trigger")&&!pT(n)&&(a=ST(n,r,i)),Object(M["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(M["isArray"])(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!O["a"].node&&n.getDom()){var i=FT(r,n);this._ticket="";var o=r.dataByCoordSys,a=GT(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=ET;l.x=r.x,l.y=r.y,l.update(),Zs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=$M(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(FT(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=BT([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a,s=Zs(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,Ky(n,(function(t){return null!=Zs(t).dataIndex?(o=t,!0):null!=Zs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(M["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=BT([e.tooltipOption],r),a=this._renderMode,s=[],l=td("section",{blocks:[],noHeader:!0}),u=[],c=new gd;Object(M["each"])(t,(function(t){Object(M["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=CM(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=td("section",{header:o,noHeader:!Object(M["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(M["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,d=f.getDataParams(p);if(!(d.dataIndex<0)){d.axisDim=t.axisDim,d.axisIndex=t.axisIndex,d.axisType=t.axisType,d.axisId=t.axisId,d.axisValue=iS(e.axis,{value:i}),d.axisValueLabel=o,d.marker=c.makeTooltipMarker("item",$c(d.color),a);var g=vp(f.formatTooltip(p,!0,null)),v=g.frag;if(v){var y=BT([f],r).get("valueFormatter");h.blocks.push(y?Object(M["extend"])({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(d)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),p=ad(l,c,a,f,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var d="richText"===a?"\n\n":"
",g=u.join(d);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Zs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,p=BT([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),d=p.get("trigger");if(null==d||"item"===d){var g=s.getDataParams(l,u),v=new gd;g.marker=v.makeTooltipMarker("item",$c(g.color),h);var y=vp(s.formatTooltip(l,!1,u)),m=p.get("order"),_=p.get("valueFormatter"),b=y.frag,x=b?ad(_?Object(M["extend"])({valueFormatter:_},b):b,v,h,m,r.get("useUTC"),p.get("textStyle")):y.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=Zs(e),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(M["isString"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=Object(M["clone"])(a),a.content=dt(a.content));var u=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:a.content});var h=t.positionDefault,f=BT(u,this._tooltipModel,h?{position:h}:null),p=f.get("content"),d=Math.random()+"",g=new gd;this._showOrMove(f,(function(){var n=Object(M["clone"])(f.get("formatterParams")||{});this._showTooltipContent(f,p,n,d,t.offsetX,t.offsetY,t.position,e,g)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),p=f.color;if(c)if(Object(M["isString"])(c)){var d=t.ecModel.get("useUTC"),g=Object(M["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,v&&(h=Sc(g.axisValue,h,d)),h=qc(h,n,!0)}else if(Object(M["isFunction"])(c)){var y=Object(M["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,y)}else h=c;u.setContent(h,l,t,p,a),u.show(t,p),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(M["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(M["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(M["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(M["isArray"])(e))n=ci(e[0],s),r=ci(e[1],l);else if(Object(M["isObject"])(e)){var p=e;p.width=u[0],p.height=u[1];var d=rh(p,{width:s,height:l});n=d.x,r=d.y,c=null,h=null}else if(Object(M["isString"])(e)&&a){var g=HT(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=zT(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=WT(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=WT(h)?u[1]/2:"bottom"===h?u[1]:0),pT(t)){g=VT(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(M["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(M["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(M["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(M["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!O["a"].node&&e.getDom()&&(iy(this,"_updatePosition"),this._tooltipContent.dispose(),XM("itemTooltip",e))},e.type="tooltip",e}(jd);function BT(t,e,n){var r,i=e.ecModel;n?(r=new Uu(n,i,i),r=new Uu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Uu&&(a=a.get("tooltip",!0)),Object(M["isString"])(a)&&(a={formatter:a}),a&&(r=new Uu(a,r,i)))}return r}function FT(t,e){return t.dispatchAction||Object(M["bind"])(e.dispatchAction,e)}function zT(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function VT(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function HT(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function WT(t){return"center"===t||"middle"===t}function GT(t,e,n){var r=ao(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=lo(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Zs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var UT=NT;function YT(t){Kb(cT),t.registerComponentModel(fT),t.registerComponentView(UT),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},M["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},M["noop"])}var qT=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},XT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return S(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),M["isArray"](e)&&M["each"](e,(function(t,r){M["isString"](t)&&(t={type:t}),e[r]=M["merge"](t,qT(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(hh),ZT=XT;function KT(t,e){var n=Wc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Ds({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var $T=M["curry"],QT=M["each"],JT=Ur,tC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return S(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new JT),this.group.add(this._selectorGroup=new JT),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=rh(l,u,c),f=this.layoutInner(t,i,h,r,a,s),p=rh(M["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KT(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=M["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),QT(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new JT;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var p=f.getData(),d=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(f,a,o,i,e,t,d,v,g,u,r);y.on("click",$T(rC,a,null,r,c)).on("mouseover",$T(oC,f.name,null,r,c)).on("mouseout",$T(aC,f.name,null,r,c)),n.ssr&&y.eachChild((function(t){var e=Zs(t);e.seriesIndex=f.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var h=s.legendVisualProvider;if(!h.containName(a))return;var f=h.indexOfName(a),p=h.getItemVisual(f,"style"),d=h.getItemVisual(f,"legendIcon"),g=Object(sn["parse"])(p.fill);g&&0===g[3]&&(g[3]=.2,p=M["extend"](M["extend"]({},p),{fill:Object(sn["stringify"])(g,"rgba")}));var v=this._createItem(s,a,o,i,e,t,{},p,d,u,r);v.on("click",$T(rC,null,a,r,c)).on("mouseover",$T(oC,null,a,r,c)).on("mouseout",$T(aC,null,a,r,c)),n.ssr&&v.eachChild((function(t){var e=Zs(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();QT(t,(function(t){var r=t.type,i=new Xs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);bu(i,{normal:a,emphasis:s},{defaultText:t.title}),Xl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,f=i.get("itemWidth"),p=i.get("itemHeight"),d=i.isSelected(e),g=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var m=eC(l,r,a,s,h,d,c),_=new JT,b=r.getModel("textStyle");if(!M["isFunction"](t.getLegendIcon)||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(nC({itemWidth:f,itemHeight:p,icon:l,iconRotate:x,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}))}else _.add(t.getLegendIcon({itemWidth:f,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:v}));var w="left"===o?f+5:-5,S=o,O=i.get("formatter"),T=e;M["isString"](O)&&O?T=O.replace("{name}",null!=e?e:""):M["isFunction"](O)&&(T=O(e));var C=d?b.getTextColor():r.get("inactiveColor");_.add(new Xs({style:wu(b,{text:T,x:w,y:p/2,fill:C,align:S,verticalAlign:"middle"},{inheritColor:C})}));var k=new Ds({shape:_.getBoundingRect(),style:{fill:"transparent"}}),I=r.getModel("tooltip");return I.get("show")&&Vv({el:k,componentModel:i,itemName:e,itemTooltipOption:I.option}),_.add(k),_.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(_),Xl(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();nh(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){nh("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),p=t.getOrient().index,d=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=l[d]+f:u[p]+=c[d]+f,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[d]=l[d]+f+c[d],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(jd);function eC(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),QT(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Qm(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=e.getModel("lineStyle"),p=f.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var d=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===d?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=f.get("inactiveColor"),p.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function nC(t){var e=t.icon||"roundRect",n=cm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function rC(t,e,n,r){aC(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),oC(t,e,n,r)}function iC(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],d=[-h.x,-h.y];e||(d[r]=l[s]);var g=[0,0],v=[-f.x,-f.y],y=M["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?v[r]+=n[i]-f[i]:g[r]+=f[i]+y}v[1-r]+=h[o]/2-f[o]/2,l.setPosition(d),u.setPosition(g),c.setPosition(v);var _={x:0,y:0};if(_[i]=p?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],p){var b={x:0,y:0};b[i]=Math.max(n[i]-f[i]-y,0),b[o]=_[o],u.setClipPath(new Ds({shape:b})),u.__rectSize=b[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&cu(l,{x:x.contentPosition[0],y:x.contentPosition[1]},p?t:null),this._updatePageInfoView(t,x),_},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;M["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",M["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=vC[i],a=yC[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var p=m(u);f.contentPosition[i]=-p.s;for(var d=s+1,g=p,v=p,y=null;d<=c;++d)y=m(l[d]),(!y&&v.e>g.s+r||y&&!_(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(d=s-1,g=p,v=p,y=null;d>=-1;--d)y=m(l[d]),y&&_(v,y.s)||!(g.i=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(sC),_C=mC;function bC(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function xC(t){Kb(hC),t.registerComponentModel(dC),t.registerComponentView(_C),bC(t)}function wC(t){Kb(hC),Kb(xC)}var SC=2*Math.PI,OC=Math.PI/180;function MC(t,e){return rh(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function TC(t,e){var n=MC(t,e),r=t.get("center"),i=t.get("radius");M["isArray"](i)||(i=[0,i]);var o,a,s=ci(n.width,e.getWidth()),l=ci(n.height,e.getHeight()),u=Math.min(s,l),c=ci(i[0],u/2),h=ci(i[1],u/2),f=t.coordinateSystem;if(f){var p=f.dataToPoint(r);o=p[0]||0,a=p[1]||0}else M["isArray"](r)||(r=[r,r]),o=ci(r[0],s)+n.x,a=ci(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function CC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=MC(t,n),o=TC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*OC,h=t.get("endAngle"),f=t.get("padAngle")*OC;h="auto"===h?c-SC:-h*OC;var p=t.get("minAngle")*OC,d=p+f,g=0;e.each(r,(function(t){!isNaN(t)&&g++}));var v=e.getSum(r),y=Math.PI/(v||g)*2,m=t.get("clockwise"),_=t.get("roseType"),b=t.get("stillShowZeroSum"),x=e.getDataExtent(r);x[0]=0;var w=m?1:-1,S=[c,h],O=w*f/2;Fa(S,!m),c=S[0],h=S[1];var M=kC(t);M.startAngle=c,M.endAngle=h,M.clockwise=m;var T=Math.abs(h-c),C=T,k=0,I=c;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===v&&b?y:t*y:T/g,rr?(o=I+w*r/2,c=o):(o=I+O,c=i-O),e.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:m,cx:a,cy:s,r0:u,r:_?ui(t,x,[u,l]):l}),I=i}})),Cn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,d=Math.abs(h)t.unconstrainedWidth?null:p:null;r.setStyle("width",d)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function LC(t){return"center"===t.position}function RC(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*DC,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function p(t){t.ignore=!0}function d(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),v=r.getItemModel(t),y=v.getModel("label"),m=y.get("position")||v.get(["emphasis","label","position"]),_=y.get("distanceToLabelLine"),b=y.get("alignTo"),x=ci(y.get("edgeDistance"),u),w=y.get("bleedMargin"),S=v.getModel("labelLine"),O=S.get("length");O=ci(O,u);var T=S.get("length2");if(T=ci(T,u),Math.abs(h.endAngle-h.startAngle)0?"right":"left":j>0?"left":"right"}var V=Math.PI,H=0,W=y.get("rotate");if(Object(M["isNumber"])(W))H=W*(V/180);else if("center"===m)H=0;else if("radial"===W||!0===W){var G=j<0?-A+V:-A;H=G}else if("tangential"===W&&"outside"!==m&&"outer"!==m){var U=Math.atan2(j,P);U<0&&(U=2*V+U);var Y=P>0;Y&&(U=V+U),H=U-V}if(o=!!H,f.x=C,f.y=k,f.rotation=H,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:D});var q=f.states.select;q&&(q.x+=f.x,q.y+=f.y)}else{var X=f.getBoundingRect().clone();X.applyTransform(f.getComputedTransform());var Z=(f.style.margin||0)+2.1;X.y-=Z/2,X.height+=Z,i.push({label:f,labelLine:g,position:m,len:O,len2:T,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new zt(j,P),linePoints:I,textAlign:D,labelDistance:_,labelAlignTo:b,edgeDistance:x,bleedMargin:w,rect:X,unconstrainedWidth:X.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&jC(i,e,n,l,u,f,c,h);for(var g=0;g0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=r.r0}},e.type="pie",e}(Qv),FC=BC;function zC(t,e,n){e=Object(M["isArray"])(e)&&{coordDimensions:e}||Object(M["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=jx(r,e).dimensions,o=new Dx(i,t);return o.initData(r,n),o}var VC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),HC=VC,WC=ro(),GC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new HC(M["bind"](this.getData,this),M["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return zC(this,{coordDimensions:["value"],encodeDefaulter:M["curry"](kh,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=WC(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),i=r.seats=yi(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){Bi(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Dd),UC=GC;function YC(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(M["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function qC(t){t.registerChartView(FC),t.registerSeriesModel(UC),qy("pie",t.registerAction),t.registerLayout(Object(M["curry"])(CC,"pie")),t.registerProcessor(IC("pie")),t.registerProcessor(YC("pie"))}function XC(t,e,n){var r=br["c"].createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var ZC=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||rr,"string"===typeof e?i=XC(e,n,r):M["isObject"](e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(M["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return S(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=XC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Kt(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new Kt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&h.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x0&&t>r[0]){for(s=0;st)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r0?JC:0),this._needsManuallyCompositing),u.__builtin__||M["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&_e&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?M["merge"](n[t],e,!0):n[t]=e;for(var r=0;r0&&(this.updateOrder(t),_["a"].del("updateOrderID")),console.log("activated")},deactivated:function(){console.log("deactivated")},beforeRouteEnter:function(t,e,n){n((function(t){t.$store.commit("keepAlive/add","Home"),console.log(t.$store.state.keepAlive.list)}))},beforeRouteLeave:function(t,e,n){["orderInfo","addVisit","editVisit","orderSuspend","orderIssue","orderAllot"].indexOf(t.name)<0&&(console.log("remove cache"),this.$store.commit("keepAlive/remove","Home")),n()},methods:{loadRepairStatis:function(){var t=this;Object(m["c"])().then((function(e){t.statisRepair=e.data}))},updateOrder:function(t){for(var e=this,n=-1,r=0;r0?e.orderList.splice(n,1,t.data[0]):e.orderList.splice(n,1)})),this.load},preview:function(t,e){Object(v["a"])({images:t,startPosition:e,closeable:!0})},handleDelete:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要删除工单吗?"}).then((function(){e.loadingDelete=!0,Object(y["e"])(t).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingDelete=!1})).catch((function(){e.loadingDelete=!1}))})).catch((function(t){console.log(t)}))},handleComplete:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要完结工单吗?"}).then((function(){e.loadingConfirm=!0,Object(y["d"])(t).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingConfirm=!1})).catch((function(){e.loadingConfirm=!1}))})).catch((function(t){console.log(t)}))},handleCheck:function(t){this.checkFrom={id:t},this.checkShow=!0},checkCheck:function(t){var e=this;this.$dialog.confirm({title:"提示",message:"确认要审核通过吗?"}).then((function(){e.loadingConfirm=!0,Object(y["c"])(t,e.checkFrom).then((function(n){e.$toast("操作成功"),e.updateOrder(t),e.loadingConfirm=!1,e.checkShow=!1})).catch((function(){e.loadingConfirm=!1}))})).catch((function(t){console.log(t)}))},refresh:function(){return this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.orderList=[],this.loadOrderList(),!0},loadOrderList:function(){var t=this;this.loading=!0,Object(y["g"])({tab_index:-1,page:this.page++}).then((function(e){for(var n in t.loading=!1,e.data.length=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(t,e,n,r){return n*(1-Math.pow(2,-10*t/r))*1024/1023+e}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,r.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,r.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,r.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,r.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(t){this.startTime||(this.startTime=t),this.timestamp=t;var e=t-this.startTime;this.remaining=this.localDuration-e,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(e,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(e,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(e/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(e/this.localDuration),this.countDown?this.printVal=this.printValthis.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),e1?this.decimal+e[1]:"",i=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;i.test(n);)n=n.replace(i,"$1"+this.separator+"$2");return this.prefix+n+r+this.suffix}},destroyed:function(){(0,r.cancelAnimationFrame)(this.rAF)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=i.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",i.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=0,i="webkit moz ms o".split(" "),o=void 0,a=void 0;if("undefined"==typeof window)e.requestAnimationFrame=o=function(){},e.cancelAnimationFrame=a=function(){};else{e.requestAnimationFrame=o=window.requestAnimationFrame,e.cancelAnimationFrame=a=window.cancelAnimationFrame;for(var s=void 0,l=0;l